1 line
5.7 KiB
JSON
1 line
5.7 KiB
JSON
{"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 ==============================\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);"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,aAAa,QAAQ,sBAAsB;AACpD,OAAOC,eAAe,MAAM,WAAW;AACvC;AACA,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGF,KAAK;EACT,OAAO;EACP;EACA;EACA;EACA;IACE,CAACC,YAAY,GAAG;MACdE,KAAK,EAAEH,KAAK,CAACI;IACf;EACF,CAAC;EACD;EACA;EACA;EACA;IACE,CAAC,GAAGH,YAAY,WAAW,GAAG,CAAC;MAC7B,CAAC,IAAIC,MAAM,kBAAkB,GAAG;QAC9BG,OAAO,EAAE;MACX;IACF,CAAC,EAAEP,eAAe,CAACE,KAAK,CAAC;EAC3B,CAAC;EACD;EACA;EACA;EACA;IACE,CAAC,GAAGC,YAAY,eAAe,GAAG;MAChCK,SAAS,EAAE;IACb;EACF,CAAC;EACD;EACA;EACA;EACAV,mBAAmB,CAACI,KAAK,CAAC,CAAC;AAC7B,CAAC;AACD;AACA,OAAO,MAAMO,qBAAqB,GAAGP,KAAK,IAAI;EAC5C,MAAMQ,mBAAmB,GAAGC,IAAI,CAACC,KAAK,CAAC,CAACV,KAAK,CAACW,aAAa,GAAGX,KAAK,CAACY,QAAQ,GAAGZ,KAAK,CAACa,UAAU,IAAI,CAAC,CAAC;EACrG,OAAO;IACLT,YAAY,EAAE,GAAG;IACjBU,gBAAgB,EAAE,GAAG;IACrBC,cAAc,EAAE,GAAG;IACnBC,gBAAgB,EAAEhB,KAAK,CAACiB,mBAAmB;IAC3CC,wBAAwB,EAAElB,KAAK,CAACmB,gBAAgB;IAChDC,aAAa,EAAE,GAAGZ,mBAAmB,MAAMR,KAAK,CAACqB,SAAS,IAAI;IAC9DC,WAAW,EAAEtB,KAAK,CAACuB;EACrB,CAAC;AACH,CAAC;AACD,eAAe1B,aAAa,CAAC,UAAU,EAAEG,KAAK,IAAI,CAACD,YAAY,CAACC,KAAK,CAAC,CAAC,EAAEO,qBAAqB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |