1 line
5.2 KiB
JSON
1 line
5.2 KiB
JSON
|
{"ast":null,"code":"import { genStyleHooks } from '../../theme/internal';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n zIndexPopup,\n colorText,\n colorWarning,\n marginXXS,\n marginXS,\n fontSize,\n fontWeightStrong,\n colorTextHeading\n } = token;\n return {\n [componentCls]: {\n zIndex: zIndexPopup,\n [`&${antCls}-popover`]: {\n fontSize\n },\n [`${componentCls}-message`]: {\n marginBottom: marginXS,\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'start',\n [`> ${componentCls}-message-icon ${iconCls}`]: {\n color: colorWarning,\n fontSize,\n lineHeight: 1,\n marginInlineEnd: marginXS\n },\n [`${componentCls}-title`]: {\n fontWeight: fontWeightStrong,\n color: colorTextHeading,\n '&:only-child': {\n fontWeight: 'normal'\n }\n },\n [`${componentCls}-description`]: {\n marginTop: marginXXS,\n color: colorText\n }\n },\n [`${componentCls}-buttons`]: {\n textAlign: 'end',\n whiteSpace: 'nowrap',\n button: {\n marginInlineStart: marginXS\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n zIndexPopupBase\n } = token;\n return {\n zIndexPopup: zIndexPopupBase + 60\n };\n};\nexport default genStyleHooks('Popconfirm', token => genBaseStyle(token), prepareComponentToken, {\n resetStyle: false\n});","map":{"version":3,"names":["genStyleHooks","genBaseStyle","token","componentCls","iconCls","antCls","zIndexPopup","colorText","colorWarning","marginXXS","marginXS","fontSize","fontWeightStrong","colorTextHeading","zIndex","marginBottom","display","flexWrap","alignItems","color","lineHeight","marginInlineEnd","fontWeight","marginTop","textAlign","whiteSpace","button","marginInlineStart","prepareComponentToken","zIndexPopupBase","resetStyle"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/popconfirm/style/index.js"],"sourcesContent":["import { genStyleHooks } from '../../theme/internal';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n iconCls,\n antCls,\n zIndexPopup,\n colorText,\n colorWarning,\n marginXXS,\n marginXS,\n fontSize,\n fontWeightStrong,\n colorTextHeading\n } = token;\n return {\n [componentCls]: {\n zIndex: zIndexPopup,\n [`&${antCls}-popover`]: {\n fontSize\n },\n [`${componentCls}-message`]: {\n marginBottom: marginXS,\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'start',\n [`> ${componentCls}-message-icon ${iconCls}`]: {\n color: colorWarning,\n fontSize,\n lineHeight: 1,\n marginInlineEnd: marginXS\n },\n [`${componentCls}-title`]: {\n fontWeight: fontWeightStrong,\n color: colorTextHeading,\n '&:only-child': {\n fontWeight: 'normal'\n }\n },\n [`${componentCls}-description`]: {\n marginTop: marginXXS,\n color: colorText\n }\n },\n [`${componentCls}-buttons`]: {\n textAlign: 'end',\n whiteSpace: 'nowrap',\n button: {\n marginInlineStart: marginXS\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const {\n zIndexPopupBase\n } = token;\n return {\n zIndexPopup: zIndexPopupBase + 60\n };\n};\nexport default genStyleHooks('Popconfirm', token => genBaseStyle(token), prepareComponentToken, {\n resetStyle: false\n});"],"mappings":"AAAA,SAASA,aAAa,QAAQ,sBAAsB;AACpD;AACA,MAAMC,YAAY,GAAGC,KAAK,IAAI
|