1 line
2.1 KiB
JSON
1 line
2.1 KiB
JSON
|
{"ast":null,"code":"/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { isPresetColor } from '../_util/colors';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = classNames({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}","map":{"version":3,"names":["classNames","isPresetColor","parseColor","prefixCls","color","isInternalColor","className","overlayStyle","arrowStyle","background"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/tooltip/util.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { isPresetColor } from '../_util/colors';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = classNames({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}"],"mappings":"AAAA;AACA,OAAOA,UAAU,MAAM,YAAY;AACnC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,OAAO,SAASC,UAAUA,CAACC,SAAS,EAAEC,KAAK,EAAE;EAC3C,MAAMC,eAAe,GAAGJ,aAAa,CAACG,KAAK,CAAC;EAC5C,MAAME,SAAS,GAAGN,UAAU,CAAC;IAC3B,CAAC,GAAGG,SAAS,IAAIC,KAAK,EAAE,GAAGA,KAAK,IAAIC;EACtC,CAAC,CAAC;EACF,MAAME,YAAY,GAAG,CAAC,CAAC;EACvB,MAAMC,UAAU,GAAG,CAAC,CAAC;EACrB,IAAIJ,KAAK,IAAI,CAACC,eAAe,EAAE;IAC7BE,YAAY,CAACE,UAAU,GAAGL,KAAK;IAC/B;IACAI,UAAU,CAAC,+BAA+B,CAAC,GAAGJ,KAAK;EACrD;EACA,OAAO;IACLE,SAAS;IACTC,YAAY;IACZC;EACF,CAAC;AACH","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|