PromoCursed/node_modules/.cache/babel-loader/68e9ed2a154f1fb0ff1f2c110ca3aa819add95291ca2d97cbebac4f5670c2ee5.json

1 line
3.4 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"// Style as status component\nimport { prepareComponentToken, prepareToken } from '.';\nimport { genPresetColor, genSubStyleComponent } from '../../theme/internal';\n// ============================== Preset ==============================\nconst genPresetStyle = token => genPresetColor(token, (colorKey, _ref) => {\n let {\n textColor,\n lightBorderColor,\n lightColor,\n darkColor\n } = _ref;\n return {\n [`${token.componentCls}${token.componentCls}-${colorKey}`]: {\n color: textColor,\n background: lightColor,\n borderColor: lightBorderColor,\n // Inverse color\n '&-inverse': {\n color: token.colorTextLightSolid,\n background: darkColor,\n borderColor: darkColor\n },\n [`&${token.componentCls}-borderless`]: {\n borderColor: 'transparent'\n }\n }\n };\n});\n// ============================== Export ==============================\nexport default genSubStyleComponent(['Tag', 'preset'], token => {\n const tagToken = prepareToken(token);\n return genPresetStyle(tagToken);\n}, prepareComponentToken);","map":{"version":3,"names":["prepareComponentToken","prepareToken","genPresetColor","genSubStyleComponent","genPresetStyle","token","colorKey","_ref","textColor","lightBorderColor","lightColor","darkColor","componentCls","color","background","borderColor","colorTextLightSolid","tagToken"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/tag/style/presetCmp.js"],"sourcesContent":["// Style as status component\nimport { prepareComponentToken, prepareToken } from '.';\nimport { genPresetColor, genSubStyleComponent } from '../../theme/internal';\n// ============================== Preset ==============================\nconst genPresetStyle = token => genPresetColor(token, (colorKey, _ref) => {\n let {\n textColor,\n lightBorderColor,\n lightColor,\n darkColor\n } = _ref;\n return {\n [`${token.componentCls}${token.componentCls}-${colorKey}`]: {\n color: textColor,\n background: lightColor,\n borderColor: lightBorderColor,\n // Inverse color\n '&-inverse': {\n color: token.colorTextLightSolid,\n background: darkColor,\n borderColor: darkColor\n },\n [`&${token.componentCls}-borderless`]: {\n borderColor: 'transparent'\n }\n }\n };\n});\n// ============================== Export ==============================\nexport default genSubStyleComponent(['Tag', 'preset'], token => {\n const tagToken = prepareToken(token);\n return genPresetStyle(tagToken);\n}, prepareComponentToken);"],"mappings":"AAAA;AACA,SAASA,qBAAqB,EAAEC,YAAY,QAAQ,GAAG;AACvD,SAASC,cAAc,EAAEC,oBAAoB,QAAQ,sBAAsB;AAC3E;AACA,MAAMC,cAAc,GAAGC,KAAK,IAAIH,cAAc,CAACG,KAAK,EAAE,CAACC,QAAQ,EAAEC,IAAI,KAAK;EACxE,IAAI;IACFC,SAAS;IACTC,gBAAgB;IAChBC,UAAU;IACVC;EACF,CAAC,GAAGJ,IAAI;EACR,OAAO;IACL,CAAC,GAAGF,KAAK,CAACO,YAAY,GAAGP,KAAK,CAACO,YAAY,IAAIN,QAAQ,EAAE,GAAG;MAC1DO,KAAK,EAAEL,SAAS;MAChBM,UAAU,EAAEJ,UAAU;MACtBK,WAAW,EAAEN,gBAAgB;MAC7B;MACA,WAAW,EAAE;QACXI,KAAK,EAAER,KAAK,CAACW,mBAAmB;QAChCF,UAAU,EAAEH,SAAS;QACrBI,WAAW,EAAEJ;MACf,CAAC;MACD,CAAC,IAAIN,KAAK,CAACO,YAAY,aAAa,GAAG;QACrCG,WAAW,EAAE;MACf;IACF;EACF,CAAC;AACH,CAAC,CAAC;AACF;AACA,eAAeZ,oBAAoB,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAEE,KAAK,IAAI;EAC9D,MAAMY,QAAQ,GAAGhB,YAAY,CAACI,KAAK,CAAC;EACpC,OAAOD,cAAc,CAACa,QAAQ,CAAC;AACjC,CAAC,EAAEjB,qBAAqB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}