PromoCursed/node_modules/.cache/babel-loader/2264b26607e06cb1fc06dbb48f5c55520bb39a4072d9b48dc3aeed08572eeb28.json
2024-08-20 23:25:37 +04:00

1 line
5.8 KiB
JSON

{"ast":null,"code":"import { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nconst genBaseStyle = token => {\n const {\n componentCls,\n colorTextDisabled\n } = token;\n return {\n [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n [componentCls]: {\n outline: 0,\n \"input[type='file']\": {\n cursor: 'pointer'\n }\n },\n [`${componentCls}-select`]: {\n display: 'inline-block'\n },\n [`${componentCls}-disabled`]: {\n color: colorTextDisabled,\n cursor: 'not-allowed'\n }\n })\n };\n};\nexport const prepareComponentToken = token => ({\n actionsColor: token.colorTextDescription\n});\n// ============================== Export ==============================\nexport default genStyleHooks('Upload', token => {\n const {\n fontSizeHeading3,\n fontHeight,\n lineWidth,\n controlHeightLG,\n calc\n } = token;\n const uploadToken = mergeToken(token, {\n uploadThumbnailSize: calc(fontSizeHeading3).mul(2).equal(),\n uploadProgressOffset: calc(calc(fontHeight).div(2)).add(lineWidth).equal(),\n uploadPicCardSize: calc(controlHeightLG).mul(2.55).equal()\n });\n return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n}, prepareComponentToken);","map":{"version":3,"names":["resetComponent","genCollapseMotion","genStyleHooks","mergeToken","genDraggerStyle","genListStyle","genMotionStyle","genPictureCardStyle","genPictureStyle","genRtlStyle","genBaseStyle","token","componentCls","colorTextDisabled","Object","assign","outline","cursor","display","color","prepareComponentToken","actionsColor","colorTextDescription","fontSizeHeading3","fontHeight","lineWidth","controlHeightLG","calc","uploadToken","uploadThumbnailSize","mul","equal","uploadProgressOffset","div","add","uploadPicCardSize"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/upload/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genDraggerStyle from './dragger';\nimport genListStyle from './list';\nimport genMotionStyle from './motion';\nimport { genPictureCardStyle, genPictureStyle } from './picture';\nimport genRtlStyle from './rtl';\nconst genBaseStyle = token => {\n const {\n componentCls,\n colorTextDisabled\n } = token;\n return {\n [`${componentCls}-wrapper`]: Object.assign(Object.assign({}, resetComponent(token)), {\n [componentCls]: {\n outline: 0,\n \"input[type='file']\": {\n cursor: 'pointer'\n }\n },\n [`${componentCls}-select`]: {\n display: 'inline-block'\n },\n [`${componentCls}-disabled`]: {\n color: colorTextDisabled,\n cursor: 'not-allowed'\n }\n })\n };\n};\nexport const prepareComponentToken = token => ({\n actionsColor: token.colorTextDescription\n});\n// ============================== Export ==============================\nexport default genStyleHooks('Upload', token => {\n const {\n fontSizeHeading3,\n fontHeight,\n lineWidth,\n controlHeightLG,\n calc\n } = token;\n const uploadToken = mergeToken(token, {\n uploadThumbnailSize: calc(fontSizeHeading3).mul(2).equal(),\n uploadProgressOffset: calc(calc(fontHeight).div(2)).add(lineWidth).equal(),\n uploadPicCardSize: calc(controlHeightLG).mul(2.55).equal()\n });\n return [genBaseStyle(uploadToken), genDraggerStyle(uploadToken), genPictureStyle(uploadToken), genPictureCardStyle(uploadToken), genListStyle(uploadToken), genMotionStyle(uploadToken), genRtlStyle(uploadToken), genCollapseMotion(uploadToken)];\n}, prepareComponentToken);"],"mappings":"AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,O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