1 line
2.5 KiB
JSON
1 line
2.5 KiB
JSON
{"ast":null,"code":"import * as React from 'react';\nexport const defaultPrefixCls = 'ant';\nexport const defaultIconPrefixCls = 'anticon';\nexport const Variants = ['outlined', 'borderless', 'filled'];\nconst defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {\n if (customizePrefixCls) {\n return customizePrefixCls;\n }\n return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls;\n};\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.\nexport const ConfigContext = /*#__PURE__*/React.createContext({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n iconPrefixCls: defaultIconPrefixCls\n});\nexport const {\n Consumer: ConfigConsumer\n} = ConfigContext;","map":{"version":3,"names":["React","defaultPrefixCls","defaultIconPrefixCls","Variants","defaultGetPrefixCls","suffixCls","customizePrefixCls","ConfigContext","createContext","getPrefixCls","iconPrefixCls","Consumer","ConfigConsumer"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/config-provider/context.js"],"sourcesContent":["import * as React from 'react';\nexport const defaultPrefixCls = 'ant';\nexport const defaultIconPrefixCls = 'anticon';\nexport const Variants = ['outlined', 'borderless', 'filled'];\nconst defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {\n if (customizePrefixCls) {\n return customizePrefixCls;\n }\n return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls;\n};\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.\nexport const ConfigContext = /*#__PURE__*/React.createContext({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n iconPrefixCls: defaultIconPrefixCls\n});\nexport const {\n Consumer: ConfigConsumer\n} = ConfigContext;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAO,MAAMC,gBAAgB,GAAG,KAAK;AACrC,OAAO,MAAMC,oBAAoB,GAAG,SAAS;AAC7C,OAAO,MAAMC,QAAQ,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC;AAC5D,MAAMC,mBAAmB,GAAGA,CAACC,SAAS,EAAEC,kBAAkB,KAAK;EAC7D,IAAIA,kBAAkB,EAAE;IACtB,OAAOA,kBAAkB;EAC3B;EACA,OAAOD,SAAS,GAAG,GAAGJ,gBAAgB,IAAII,SAAS,EAAE,GAAGJ,gBAAgB;AAC1E,CAAC;AACD;AACA,OAAO,MAAMM,aAAa,GAAG,aAAaP,KAAK,CAACQ,aAAa,CAAC;EAC5D;EACAC,YAAY,EAAEL,mBAAmB;EACjCM,aAAa,EAAER;AACjB,CAAC,CAAC;AACF,OAAO,MAAM;EACXS,QAAQ,EAAEC;AACZ,CAAC,GAAGL,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |