1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
{"ast":null,"code":"import { PresetColors } from '../interface';\nexport default function genPresetColor(token, genCss) {\n return PresetColors.reduce((prev, colorKey) => {\n const lightColor = token[`${colorKey}1`];\n const lightBorderColor = token[`${colorKey}3`];\n const darkColor = token[`${colorKey}6`];\n const textColor = token[`${colorKey}7`];\n return Object.assign(Object.assign({}, prev), genCss(colorKey, {\n lightColor,\n lightBorderColor,\n darkColor,\n textColor\n }));\n }, {});\n}","map":{"version":3,"names":["PresetColors","genPresetColor","token","genCss","reduce","prev","colorKey","lightColor","lightBorderColor","darkColor","textColor","Object","assign"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/theme/util/genPresetColor.js"],"sourcesContent":["import { PresetColors } from '../interface';\nexport default function genPresetColor(token, genCss) {\n return PresetColors.reduce((prev, colorKey) => {\n const lightColor = token[`${colorKey}1`];\n const lightBorderColor = token[`${colorKey}3`];\n const darkColor = token[`${colorKey}6`];\n const textColor = token[`${colorKey}7`];\n return Object.assign(Object.assign({}, prev), genCss(colorKey, {\n lightColor,\n lightBorderColor,\n darkColor,\n textColor\n }));\n }, {});\n}"],"mappings":"AAAA,SAASA,YAAY,QAAQ,cAAc;AAC3C,eAAe,SAASC,cAAcA,CAACC,KAAK,EAAEC,MAAM,EAAE;EACpD,OAAOH,YAAY,CAACI,MAAM,CAAC,CAACC,IAAI,EAAEC,QAAQ,KAAK;IAC7C,MAAMC,UAAU,GAAGL,KAAK,CAAC,GAAGI,QAAQ,GAAG,CAAC;IACxC,MAAME,gBAAgB,GAAGN,KAAK,CAAC,GAAGI,QAAQ,GAAG,CAAC;IAC9C,MAAMG,SAAS,GAAGP,KAAK,CAAC,GAAGI,QAAQ,GAAG,CAAC;IACvC,MAAMI,SAAS,GAAGR,KAAK,CAAC,GAAGI,QAAQ,GAAG,CAAC;IACvC,OAAOK,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,IAAI,CAAC,EAAEF,MAAM,CAACG,QAAQ,EAAE;MAC7DC,UAAU;MACVC,gBAAgB;MAChBC,SAAS;MACTC;IACF,CAAC,CAAC,CAAC;EACL,CAAC,EAAE,CAAC,CAAC,CAAC;AACR","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |