1 line
5.2 KiB
JSON
1 line
5.2 KiB
JSON
|
{"ast":null,"code":"import { resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nconst genStatisticStyle = token => {\n const {\n componentCls,\n marginXXS,\n padding,\n colorTextDescription,\n titleFontSize,\n colorTextHeading,\n contentFontSize,\n fontFamily\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n [`${componentCls}-title`]: {\n marginBottom: marginXXS,\n color: colorTextDescription,\n fontSize: titleFontSize\n },\n [`${componentCls}-skeleton`]: {\n paddingTop: padding\n },\n [`${componentCls}-content`]: {\n color: colorTextHeading,\n fontSize: contentFontSize,\n fontFamily,\n [`${componentCls}-content-value`]: {\n display: 'inline-block',\n direction: 'ltr'\n },\n [`${componentCls}-content-prefix, ${componentCls}-content-suffix`]: {\n display: 'inline-block'\n },\n [`${componentCls}-content-prefix`]: {\n marginInlineEnd: marginXXS\n },\n [`${componentCls}-content-suffix`]: {\n marginInlineStart: marginXXS\n }\n }\n })\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n fontSizeHeading3,\n fontSize\n } = token;\n return {\n titleFontSize: fontSize,\n contentFontSize: fontSizeHeading3\n };\n};\nexport default genStyleHooks('Statistic', token => {\n const statisticToken = mergeToken(token, {});\n return [genStatisticStyle(statisticToken)];\n}, prepareComponentToken);","map":{"version":3,"names":["resetComponent","genStyleHooks","mergeToken","genStatisticStyle","token","componentCls","marginXXS","padding","colorTextDescription","titleFontSize","colorTextHeading","contentFontSize","fontFamily","Object","assign","marginBottom","color","fontSize","paddingTop","display","direction","marginInlineEnd","marginInlineStart","prepareComponentToken","fontSizeHeading3","statisticToken"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/statistic/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nconst genStatisticStyle = token => {\n const {\n componentCls,\n marginXXS,\n padding,\n colorTextDescription,\n titleFontSize,\n colorTextHeading,\n contentFontSize,\n fontFamily\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n [`${componentCls}-title`]: {\n marginBottom: marginXXS,\n color: colorTextDescription,\n fontSize: titleFontSize\n },\n [`${componentCls}-skeleton`]: {\n paddingTop: padding\n },\n [`${componentCls}-content`]: {\n color: colorTextHeading,\n fontSize: contentFontSize,\n fontFamily,\n [`${componentCls}-content-value`]: {\n display: 'inline-block',\n direction: 'ltr'\n },\n [`${componentCls}-content-prefix, ${componentCls}-content-suffix`]: {\n display: 'inline-block'\n },\n [`${componentCls}-content-prefix`]: {\n marginInlineEnd: marginXXS\n },\n [`${componentCls}-content-suffix`]: {\n marginInlineStart: marginXXS\n }\n }\n })\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n fontSizeHeading3,\n fontSize\n } = token;\n return {\n titleFontSize: fontSize,\n contentFontSize: fontSizeHeading3\n };\n};\nexport default genStyleHooks('Statistic', token => {\n const statisticToken = mergeToken(token, {});\n return [genStatisticStyle(statisticToken)];\n}, prepareComponentToken);"],"mappings":"AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,MAAMC,iBAAiB,GAAGC,KAAK,IAAI;EACjC,MAAM;IACJC,
|