PromoCursed/node_modules/.cache/babel-loader/299046e670b077c6e5fbfdab69eeebe24d1822f2f4f7bdc078f3dd687dbef003.json

1 line
5.7 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"import { genCompactItemStyle } from '../../style/compact-item';\nimport { genStyleHooks } from '../../theme/internal';\nimport getColumnsStyle from './columns';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return [\n // =====================================================\n // == Control ==\n // =====================================================\n {\n [componentCls]: {\n width: token.controlWidth\n }\n },\n // =====================================================\n // == Popup ==\n // =====================================================\n {\n [`${componentCls}-dropdown`]: [{\n [`&${antCls}-select-dropdown`]: {\n padding: 0\n }\n }, getColumnsStyle(token)]\n },\n // =====================================================\n // == RTL ==\n // =====================================================\n {\n [`${componentCls}-dropdown-rtl`]: {\n direction: 'rtl'\n }\n },\n // =====================================================\n // == Space Compact ==\n // =====================================================\n genCompactItemStyle(token)];\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => {\n const itemPaddingVertical = Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2);\n return {\n controlWidth: 184,\n controlItemWidth: 111,\n dropdownHeight: 180,\n optionSelectedBg: token.controlItemBgActive,\n optionSelectedFontWeight: token.fontWeightStrong,\n optionPadding: `${itemPaddingVertical}px ${token.paddingSM}px`,\n menuPadding: token.paddingXXS\n };\n};\nexport default genStyleHooks('Cascader', token => [genBaseStyle(token)], prepareComponentToken);","map":{"version":3,"names":["genCompactItemStyle","genStyleHooks","getColumnsStyle","genBaseStyle","token","componentCls","antCls","width","controlWidth","padding","direction","prepareComponentToken","itemPaddingVertical","Math","round","controlHeight","fontSize","lineHeight","controlItemWidth","dropdownHeight","optionSelectedBg","controlItemBgActive","optionSelectedFontWeight","fontWeightStrong","optionPadding","paddingSM","menuPadding","paddingXXS"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/cascader/style/index.js"],"sourcesContent":["import { genCompactItemStyle } from '../../style/compact-item';\nimport { genStyleHooks } from '../../theme/internal';\nimport getColumnsStyle from './columns';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return [\n // =====================================================\n // == Control ==\n // =====================================================\n {\n [componentCls]: {\n width: token.controlWidth\n }\n },\n // =====================================================\n // == Popup ==\n // =====================================================\n {\n [`${componentCls}-dropdown`]: [{\n [`&${antCls}-select-dropdown`]: {\n padding: 0\n }\n }, getColumnsStyle(token)]\n },\n // =====================================================\n // == RTL ==\n // =====================================================\n {\n [`${componentCls}-dropdown-rtl`]: {\n direction: 'rtl'\n }\n },\n // =====================================================\n // == Space Compact ==\n // =====================================================\n genCompactItemStyle(token)];\n};\n// ============================== Export ===============