PromoCursed/node_modules/.cache/babel-loader/8197ad3b3254144accbc4a63174612ee20ab0168bbeb4ef77f5dc808e3677468.json
2024-08-20 23:25:37 +04:00

1 line
6.4 KiB
JSON

{"ast":null,"code":"import { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genSpaceCompactStyle from './compact';\nconst genSpaceStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return {\n [componentCls]: {\n display: 'inline-flex',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-vertical': {\n flexDirection: 'column'\n },\n '&-align': {\n flexDirection: 'column',\n '&-center': {\n alignItems: 'center'\n },\n '&-start': {\n alignItems: 'flex-start'\n },\n '&-end': {\n alignItems: 'flex-end'\n },\n '&-baseline': {\n alignItems: 'baseline'\n }\n },\n [`${componentCls}-item:empty`]: {\n display: 'none'\n },\n // https://github.com/ant-design/ant-design/issues/47875\n [`${componentCls}-item > ${antCls}-badge-not-a-wrapper:only-child`]: {\n display: 'block'\n }\n }\n };\n};\nconst genSpaceGapStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n '&-gap-row-small': {\n rowGap: token.spaceGapSmallSize\n },\n '&-gap-row-middle': {\n rowGap: token.spaceGapMiddleSize\n },\n '&-gap-row-large': {\n rowGap: token.spaceGapLargeSize\n },\n '&-gap-col-small': {\n columnGap: token.spaceGapSmallSize\n },\n '&-gap-col-middle': {\n columnGap: token.spaceGapMiddleSize\n },\n '&-gap-col-large': {\n columnGap: token.spaceGapLargeSize\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = () => ({});\nexport default genStyleHooks('Space', token => {\n const spaceToken = mergeToken(token, {\n spaceGapSmallSize: token.paddingXS,\n spaceGapMiddleSize: token.padding,\n spaceGapLargeSize: token.paddingLG\n });\n return [genSpaceStyle(spaceToken), genSpaceGapStyle(spaceToken), genSpaceCompactStyle(spaceToken)];\n}, () => ({}), {\n // Space component don't apply extra font style\n // https://github.com/ant-design/ant-design/issues/40315\n resetStyle: false\n});","map":{"version":3,"names":["genStyleHooks","mergeToken","genSpaceCompactStyle","genSpaceStyle","token","componentCls","antCls","display","direction","flexDirection","alignItems","genSpaceGapStyle","rowGap","spaceGapSmallSize","spaceGapMiddleSize","spaceGapLargeSize","columnGap","prepareComponentToken","spaceToken","paddingXS","padding","paddingLG","resetStyle"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/space/style/index.js"],"sourcesContent":["import { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genSpaceCompactStyle from './compact';\nconst genSpaceStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return {\n [componentCls]: {\n display: 'inline-flex',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-vertical': {\n flexDirection: 'column'\n },\n '&-align': {\n flexDirection: 'column',\n '&-center': {\n alignItems: 'center'\n },\n '&-start': {\n alignItems: 'flex-start'\n },\n '&-end': {\n alignItems: 'flex-end'\n },\n '&-baseline': {\n alignItems: 'baseline'\n }\n },\n [`${componentCls}-item:empty`]: {\n display: 'none'\n },\n // https://github.com/ant-design/ant-design/issues/47875\n [`${componentCls}-item > ${antCls}-badge-not-a-wrapper:only-child`]: {\n display: 'block'\n }\n }\n };\n};\nconst genSpaceGapStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n '&-gap-row-small': {\n rowGap: token.spaceGapSmallSize\n },\n '&-gap-row-middle': {\n rowGap: token.spaceGapMiddleSize\n },\n '&-gap-row-large': {\n rowGap: token.spaceGapLargeSize\n },\n '&-gap-col-small': {\n columnGap: token.spaceGapSmallSize\n },\n '&-gap-col-middle': {\n columnGap: token.spaceGapMiddleSize\n },\n '&-gap-col-large': {\n columnGap: token.spaceGapLargeSize\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = () => ({});\nexport default genStyleHooks('Space', token => {\n const spaceToken = mergeToken(token, {\n spaceGapSmallSize: token.paddingXS,\n spaceGapMiddleSize: token.padding,\n spaceGapLargeSize: token.paddingLG\n });\n return [genSpaceStyle(spaceToken), genSpaceGapStyle(spaceToken), genSpaceCompactStyle(spaceToken)];\n}, () => ({}), {\n // Space component don't apply extra font style\n // https://github.com/ant-design/ant-design/issues/40315\n resetStyle: false\n});"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,OAAOC,oBAAoB,MAAM,WAAW;AAC5C,MAAMC,aAAa,GAAGC,KAAK,IAAI;EAC7B,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGF,KAAK;EACT,OAAO;IACL,CAACC,YAAY,GAAG;MACdE,OAAO,EAAE,aAAa;MACtB,OAAO,EAAE;QACPC,SAAS,EAAE;MACb,CAAC;MACD,YAAY,EAAE;QACZC,aAAa,EAAE;MACjB,CAAC;MACD,SAAS,EAAE;QACTA,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE;UACVC,UAAU,EAAE;QACd,CAAC;QACD,SAAS,EAAE;UACTA,UAAU,EAAE;QACd,CAAC;QACD,OAAO,EAAE;UACPA,UAAU,EAAE;QACd,CAAC;QACD,YAAY,EAAE;UACZA,UAAU,EAAE;QACd;MACF,CAAC;MACD,CAAC,GAAGL,YAAY,aAAa,GAAG;QAC9BE,OAAO,EAAE;MACX,CAAC;MACD;MACA,CAAC,GAAGF,YAAY,WAAWC,MAAM,iCAAiC,GAAG;QACnEC,OAAO,EAAE;MACX;IACF;EACF,CAAC;AACH,CAAC;AACD,MAAMI,gBAAgB,GAAGP,KAAK,IAAI;EAChC,MAAM;IACJC;EACF,CAAC,GAAGD,KAAK;EACT,OAAO;IACL,CAACC,YAAY,GAAG;MACd,iBAAiB,EAAE;QACjBO,MAAM,EAAER,KAAK,CAACS;MAChB,CAAC;MACD,kBAAkB,EAAE;QAClBD,MAAM,EAAER,KAAK,CAACU;MAChB,CAAC;MACD,iBAAiB,EAAE;QACjBF,MAAM,EAAER,KAAK,CAACW;MAChB,CAAC;MACD,iBAAiB,EAAE;QACjBC,SAAS,EAAEZ,KAAK,CAACS;MACnB,CAAC;MACD,kBAAkB,EAAE;QAClBG,SAAS,EAAEZ,KAAK,CAACU;MACnB,CAAC;MACD,iBAAiB,EAAE;QACjBE,SAAS,EAAEZ,KAAK,CAACW;MACnB;IACF;EACF,CAAC;AACH,CAAC;AACD;AACA,OAAO,MAAME,qBAAqB,GAAGA,CAAA,MAAO,CAAC,CAAC,CAAC;AAC/C,eAAejB,aAAa,CAAC,OAAO,EAAEI,KAAK,IAAI;EAC7C,MAAMc,UAAU,GAAGjB,UAAU,CAACG,KAAK,EAAE;IACnCS,iBAAiB,EAAET,KAAK,CAACe,SAAS;IAClCL,kBAAkB,EAAEV,KAAK,CAACgB,OAAO;IACjCL,iBAAiB,EAAEX,KAAK,CAACiB;EAC3B,CAAC,CAAC;EACF,OAAO,CAAClB,aAAa,CAACe,UAAU,CAAC,EAAEP,gBAAgB,CAACO,UAAU,CAAC,EAAEhB,oBAAoB,CAACgB,UAAU,CAAC,CAAC;AACpG,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE;EACb;EACA;EACAI,UAAU,EAAE;AACd,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}