1 line
3.1 KiB
JSON
1 line
3.1 KiB
JSON
{"ast":null,"code":"import { TinyColor } from '@ctrl/tinycolor';\nimport { initComponentToken } from '../../input/style/token';\nexport const prepareComponentToken = token => {\n var _a;\n const handleVisible = (_a = token.handleVisible) !== null && _a !== void 0 ? _a : 'auto';\n return Object.assign(Object.assign({}, initComponentToken(token)), {\n controlWidth: 90,\n handleWidth: token.controlHeightSM - token.lineWidth * 2,\n handleFontSize: token.fontSize / 2,\n handleVisible,\n handleActiveBg: token.colorFillAlter,\n handleBg: token.colorBgContainer,\n filledHandleBg: new TinyColor(token.colorFillSecondary).onBackground(token.colorBgContainer).toHexString(),\n handleHoverColor: token.colorPrimary,\n handleBorderColor: token.colorBorder,\n handleOpacity: handleVisible === true ? 1 : 0\n });\n};","map":{"version":3,"names":["TinyColor","initComponentToken","prepareComponentToken","token","_a","handleVisible","Object","assign","controlWidth","handleWidth","controlHeightSM","lineWidth","handleFontSize","fontSize","handleActiveBg","colorFillAlter","handleBg","colorBgContainer","filledHandleBg","colorFillSecondary","onBackground","toHexString","handleHoverColor","colorPrimary","handleBorderColor","colorBorder","handleOpacity"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/input-number/style/token.js"],"sourcesContent":["import { TinyColor } from '@ctrl/tinycolor';\nimport { initComponentToken } from '../../input/style/token';\nexport const prepareComponentToken = token => {\n var _a;\n const handleVisible = (_a = token.handleVisible) !== null && _a !== void 0 ? _a : 'auto';\n return Object.assign(Object.assign({}, initComponentToken(token)), {\n controlWidth: 90,\n handleWidth: token.controlHeightSM - token.lineWidth * 2,\n handleFontSize: token.fontSize / 2,\n handleVisible,\n handleActiveBg: token.colorFillAlter,\n handleBg: token.colorBgContainer,\n filledHandleBg: new TinyColor(token.colorFillSecondary).onBackground(token.colorBgContainer).toHexString(),\n handleHoverColor: token.colorPrimary,\n handleBorderColor: token.colorBorder,\n handleOpacity: handleVisible === true ? 1 : 0\n });\n};"],"mappings":"AAAA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,OAAO,MAAMC,qBAAqB,GAAGC,KAAK,IAAI;EAC5C,IAAIC,EAAE;EACN,MAAMC,aAAa,GAAG,CAACD,EAAE,GAAGD,KAAK,CAACE,aAAa,MAAM,IAAI,IAAID,EAAE,KAAK,KAAK,CAAC,GAAGA,EAAE,GAAG,MAAM;EACxF,OAAOE,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEN,kBAAkB,CAACE,KAAK,CAAC,CAAC,EAAE;IACjEK,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEN,KAAK,CAACO,eAAe,GAAGP,KAAK,CAACQ,SAAS,GAAG,CAAC;IACxDC,cAAc,EAAET,KAAK,CAACU,QAAQ,GAAG,CAAC;IAClCR,aAAa;IACbS,cAAc,EAAEX,KAAK,CAACY,cAAc;IACpCC,QAAQ,EAAEb,KAAK,CAACc,gBAAgB;IAChCC,cAAc,EAAE,IAAIlB,SAAS,CAACG,KAAK,CAACgB,kBAAkB,CAAC,CAACC,YAAY,CAACjB,KAAK,CAACc,gBAAgB,CAAC,CAACI,WAAW,CAAC,CAAC;IAC1GC,gBAAgB,EAAEnB,KAAK,CAACoB,YAAY;IACpCC,iBAAiB,EAAErB,KAAK,CAACsB,WAAW;IACpCC,aAAa,EAAErB,aAAa,KAAK,IAAI,GAAG,CAAC,GAAG;EAC9C,CAAC,CAAC;AACJ,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |