PromoCursed/node_modules/.cache/babel-loader/125984c9fe71b8bd8bdc8d724b3a72e10efa3795307429252e149ce10440cc90.json

1 line
1.3 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"import { useToken } from '../../theme/internal';\n/**\n * This hook is only for cssVar to add root className for components.\n * If root ClassName is needed, this hook could be refactored with `-root`\n * @param prefixCls\n */\nconst useCSSVarCls = prefixCls => {\n const [,,,, cssVar] = useToken();\n return cssVar ? `${prefixCls}-css-var` : '';\n};\nexport default useCSSVarCls;","map":{"version":3,"names":["useToken","useCSSVarCls","prefixCls","cssVar"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/config-provider/hooks/useCSSVarCls.js"],"sourcesContent":["import { useToken } from '../../theme/internal';\n/**\n * This hook is only for cssVar to add root className for components.\n * If root ClassName is needed, this hook could be refactored with `-root`\n * @param prefixCls\n */\nconst useCSSVarCls = prefixCls => {\n const [,,,, cssVar] = useToken();\n return cssVar ? `${prefixCls}-css-var` : '';\n};\nexport default useCSSVarCls;"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA,MAAMC,YAAY,GAAGC,SAAS,IAAI;EAChC,MAAM,MAAMC,MAAM,CAAC,GAAGH,QAAQ,CAAC,CAAC;EAChC,OAAOG,MAAM,GAAG,GAAGD,SAAS,UAAU,GAAG,EAAE;AAC7C,CAAC;AACD,eAAeD,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}