123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.genPlaceholderStyle = exports.genInputStyle = exports.genInputSmallStyle = exports.genInputGroupStyle = exports.genBasicInputStyle = exports.genAffixStyle = exports.genActiveStyle = exports.default = void 0;
- Object.defineProperty(exports, "initComponentToken", {
- enumerable: true,
- get: function () {
- return _token.initComponentToken;
- }
- });
- Object.defineProperty(exports, "initInputToken", {
- enumerable: true,
- get: function () {
- return _token.initInputToken;
- }
- });
- exports.useSharedStyle = void 0;
- var _cssinjs = require("@ant-design/cssinjs");
- var _style = require("../../style");
- var _compactItem = require("../../style/compact-item");
- var _internal = require("../../theme/internal");
- var _token = require("./token");
- var _variants = require("./variants");
- const genPlaceholderStyle = color => ({
- // Firefox
- '&::-moz-placeholder': {
- opacity: 1
- },
- '&::placeholder': {
- color,
- userSelect: 'none' // https://github.com/ant-design/ant-design/pull/32639
- },
- '&:placeholder-shown': {
- textOverflow: 'ellipsis'
- }
- });
- exports.genPlaceholderStyle = genPlaceholderStyle;
- const genActiveStyle = token => ({
- borderColor: token.activeBorderColor,
- boxShadow: token.activeShadow,
- outline: 0,
- backgroundColor: token.activeBg
- });
- exports.genActiveStyle = genActiveStyle;
- const genInputLargeStyle = token => {
- const {
- paddingBlockLG,
- lineHeightLG,
- borderRadiusLG,
- paddingInlineLG
- } = token;
- return {
- padding: `${(0, _cssinjs.unit)(paddingBlockLG)} ${(0, _cssinjs.unit)(paddingInlineLG)}`,
- fontSize: token.inputFontSizeLG,
- lineHeight: lineHeightLG,
- borderRadius: borderRadiusLG
- };
- };
- const genInputSmallStyle = token => ({
- padding: `${(0, _cssinjs.unit)(token.paddingBlockSM)} ${(0, _cssinjs.unit)(token.paddingInlineSM)}`,
- fontSize: token.inputFontSizeSM,
- borderRadius: token.borderRadiusSM
- });
- exports.genInputSmallStyle = genInputSmallStyle;
- const genBasicInputStyle = token => Object.assign(Object.assign({
- position: 'relative',
- display: 'inline-block',
- width: '100%',
- minWidth: 0,
- padding: `${(0, _cssinjs.unit)(token.paddingBlock)} ${(0, _cssinjs.unit)(token.paddingInline)}`,
- color: token.colorText,
- fontSize: token.inputFontSize,
- lineHeight: token.lineHeight,
- borderRadius: token.borderRadius,
- transition: `all ${token.motionDurationMid}`
- }, genPlaceholderStyle(token.colorTextPlaceholder)), {
- // Size
- '&-lg': Object.assign({}, genInputLargeStyle(token)),
- '&-sm': Object.assign({}, genInputSmallStyle(token)),
- // RTL
- '&-rtl, &-textarea-rtl': {
- direction: 'rtl'
- }
- });
- exports.genBasicInputStyle = genBasicInputStyle;
- const genInputGroupStyle = token => {
- const {
- componentCls,
- antCls
- } = token;
- return {
- position: 'relative',
- display: 'table',
- width: '100%',
- borderCollapse: 'separate',
- borderSpacing: 0,
- // Undo padding and float of grid classes
- "&[class*='col-']": {
- paddingInlineEnd: token.paddingXS,
- '&:last-child': {
- paddingInlineEnd: 0
- }
- },
- // Sizing options
- [`&-lg ${componentCls}, &-lg > ${componentCls}-group-addon`]: Object.assign({}, genInputLargeStyle(token)),
- [`&-sm ${componentCls}, &-sm > ${componentCls}-group-addon`]: Object.assign({}, genInputSmallStyle(token)),
- // Fix https://github.com/ant-design/ant-design/issues/5754
- [`&-lg ${antCls}-select-single ${antCls}-select-selector`]: {
- height: token.controlHeightLG
- },
- [`&-sm ${antCls}-select-single ${antCls}-select-selector`]: {
- height: token.controlHeightSM
- },
- [`> ${componentCls}`]: {
- display: 'table-cell',
- '&:not(:first-child):not(:last-child)': {
- borderRadius: 0
- }
- },
- [`${componentCls}-group`]: {
- '&-addon, &-wrap': {
- display: 'table-cell',
- width: 1,
- whiteSpace: 'nowrap',
- verticalAlign: 'middle',
- '&:not(:first-child):not(:last-child)': {
- borderRadius: 0
- }
- },
- '&-wrap > *': {
- display: 'block !important'
- },
- '&-addon': {
- position: 'relative',
- padding: `0 ${(0, _cssinjs.unit)(token.paddingInline)}`,
- color: token.colorText,
- fontWeight: 'normal',
- fontSize: token.inputFontSize,
- textAlign: 'center',
- borderRadius: token.borderRadius,
- transition: `all ${token.motionDurationSlow}`,
- lineHeight: 1,
- // Reset Select's style in addon
- [`${antCls}-select`]: {
- margin: `${(0, _cssinjs.unit)(token.calc(token.paddingBlock).add(1).mul(-1).equal())} ${(0, _cssinjs.unit)(token.calc(token.paddingInline).mul(-1).equal())}`,
- [`&${antCls}-select-single:not(${antCls}-select-customize-input):not(${antCls}-pagination-size-changer)`]: {
- [`${antCls}-select-selector`]: {
- backgroundColor: 'inherit',
- border: `${(0, _cssinjs.unit)(token.lineWidth)} ${token.lineType} transparent`,
- boxShadow: 'none'
- }
- }
- },
- // https://github.com/ant-design/ant-design/issues/31333
- [`${antCls}-cascader-picker`]: {
- margin: `-9px ${(0, _cssinjs.unit)(token.calc(token.paddingInline).mul(-1).equal())}`,
- backgroundColor: 'transparent',
- [`${antCls}-cascader-input`]: {
- textAlign: 'start',
- border: 0,
- boxShadow: 'none'
- }
- }
- }
- },
- [componentCls]: {
- width: '100%',
- marginBottom: 0,
- textAlign: 'inherit',
- '&:focus': {
- zIndex: 1,
- // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
- borderInlineEndWidth: 1
- },
- '&:hover': {
- zIndex: 1,
- borderInlineEndWidth: 1,
- [`${componentCls}-search-with-button &`]: {
- zIndex: 0
- }
- }
- },
- // Reset rounded corners
- [`> ${componentCls}:first-child, ${componentCls}-group-addon:first-child`]: {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0,
- // Reset Select's style in addon
- [`${antCls}-select ${antCls}-select-selector`]: {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0
- }
- },
- [`> ${componentCls}-affix-wrapper`]: {
- [`&:not(:first-child) ${componentCls}`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0
- },
- [`&:not(:last-child) ${componentCls}`]: {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0
- }
- },
- [`> ${componentCls}:last-child, ${componentCls}-group-addon:last-child`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0,
- // Reset Select's style in addon
- [`${antCls}-select ${antCls}-select-selector`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0
- }
- },
- [`${componentCls}-affix-wrapper`]: {
- '&:not(:last-child)': {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0,
- [`${componentCls}-search &`]: {
- borderStartStartRadius: token.borderRadius,
- borderEndStartRadius: token.borderRadius
- }
- },
- [`&:not(:first-child), ${componentCls}-search &:not(:first-child)`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0
- }
- },
- [`&${componentCls}-group-compact`]: Object.assign(Object.assign({
- display: 'block'
- }, (0, _style.clearFix)()), {
- [`${componentCls}-group-addon, ${componentCls}-group-wrap, > ${componentCls}`]: {
- '&:not(:first-child):not(:last-child)': {
- borderInlineEndWidth: token.lineWidth,
- '&:hover, &:focus': {
- zIndex: 1
- }
- }
- },
- '& > *': {
- display: 'inline-flex',
- float: 'none',
- verticalAlign: 'top',
- // https://github.com/ant-design/ant-design-pro/issues/139
- borderRadius: 0
- },
- [`
- & > ${componentCls}-affix-wrapper,
- & > ${componentCls}-number-affix-wrapper,
- & > ${antCls}-picker-range
- `]: {
- display: 'inline-flex'
- },
- '& > *:not(:last-child)': {
- marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal(),
- borderInlineEndWidth: token.lineWidth
- },
- // Undo float for .ant-input-group .ant-input
- [componentCls]: {
- float: 'none'
- },
- // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
- [`& > ${antCls}-select > ${antCls}-select-selector,
- & > ${antCls}-select-auto-complete ${componentCls},
- & > ${antCls}-cascader-picker ${componentCls},
- & > ${componentCls}-group-wrapper ${componentCls}`]: {
- borderInlineEndWidth: token.lineWidth,
- borderRadius: 0,
- '&:hover, &:focus': {
- zIndex: 1
- }
- },
- [`& > ${antCls}-select-focused`]: {
- zIndex: 1
- },
- // update z-index for arrow icon
- [`& > ${antCls}-select > ${antCls}-select-arrow`]: {
- zIndex: 1 // https://github.com/ant-design/ant-design/issues/20371
- },
- [`& > *:first-child,
- & > ${antCls}-select:first-child > ${antCls}-select-selector,
- & > ${antCls}-select-auto-complete:first-child ${componentCls},
- & > ${antCls}-cascader-picker:first-child ${componentCls}`]: {
- borderStartStartRadius: token.borderRadius,
- borderEndStartRadius: token.borderRadius
- },
- [`& > *:last-child,
- & > ${antCls}-select:last-child > ${antCls}-select-selector,
- & > ${antCls}-cascader-picker:last-child ${componentCls},
- & > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {
- borderInlineEndWidth: token.lineWidth,
- borderStartEndRadius: token.borderRadius,
- borderEndEndRadius: token.borderRadius
- },
- // https://github.com/ant-design/ant-design/issues/12493
- [`& > ${antCls}-select-auto-complete ${componentCls}`]: {
- verticalAlign: 'top'
- },
- [`${componentCls}-group-wrapper + ${componentCls}-group-wrapper`]: {
- marginInlineStart: token.calc(token.lineWidth).mul(-1).equal(),
- [`${componentCls}-affix-wrapper`]: {
- borderRadius: 0
- }
- },
- [`${componentCls}-group-wrapper:not(:last-child)`]: {
- [`&${componentCls}-search > ${componentCls}-group`]: {
- [`& > ${componentCls}-group-addon > ${componentCls}-search-button`]: {
- borderRadius: 0
- },
- [`& > ${componentCls}`]: {
- borderStartStartRadius: token.borderRadius,
- borderStartEndRadius: 0,
- borderEndEndRadius: 0,
- borderEndStartRadius: token.borderRadius
- }
- }
- }
- })
- };
- };
- exports.genInputGroupStyle = genInputGroupStyle;
- const genInputStyle = token => {
- const {
- componentCls,
- controlHeightSM,
- lineWidth,
- calc
- } = token;
- const FIXED_CHROME_COLOR_HEIGHT = 16;
- const colorSmallPadding = calc(controlHeightSM).sub(calc(lineWidth).mul(2)).sub(FIXED_CHROME_COLOR_HEIGHT).div(2).equal();
- return {
- [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, _style.resetComponent)(token)), genBasicInputStyle(token)), (0, _variants.genOutlinedStyle)(token)), (0, _variants.genFilledStyle)(token)), (0, _variants.genBorderlessStyle)(token)), (0, _variants.genUnderlinedStyle)(token)), {
- '&[type="color"]': {
- height: token.controlHeight,
- [`&${componentCls}-lg`]: {
- height: token.controlHeightLG
- },
- [`&${componentCls}-sm`]: {
- height: controlHeightSM,
- paddingTop: colorSmallPadding,
- paddingBottom: colorSmallPadding
- }
- },
- '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
- appearance: 'none'
- }
- })
- };
- };
- exports.genInputStyle = genInputStyle;
- const genAllowClearStyle = token => {
- const {
- componentCls
- } = token;
- return {
- // ========================= Input =========================
- [`${componentCls}-clear-icon`]: {
- margin: 0,
- padding: 0,
- lineHeight: 0,
- color: token.colorTextQuaternary,
- fontSize: token.fontSizeIcon,
- verticalAlign: -1,
- // https://github.com/ant-design/ant-design/pull/18151
- // https://codesandbox.io/s/wizardly-sun-u10br
- cursor: 'pointer',
- transition: `color ${token.motionDurationSlow}`,
- border: 'none',
- outline: 'none',
- backgroundColor: 'transparent',
- '&:hover': {
- color: token.colorIcon
- },
- '&:active': {
- color: token.colorText
- },
- '&-hidden': {
- visibility: 'hidden'
- },
- '&-has-suffix': {
- margin: `0 ${(0, _cssinjs.unit)(token.inputAffixPadding)}`
- }
- }
- };
- };
- const genAffixStyle = token => {
- const {
- componentCls,
- inputAffixPadding,
- colorTextDescription,
- motionDurationSlow,
- colorIcon,
- colorIconHover,
- iconCls
- } = token;
- const affixCls = `${componentCls}-affix-wrapper`;
- const affixClsDisabled = `${componentCls}-affix-wrapper-disabled`;
- return {
- [affixCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, genBasicInputStyle(token)), {
- display: 'inline-flex',
- [`&:not(${componentCls}-disabled):hover`]: {
- zIndex: 1,
- [`${componentCls}-search-with-button &`]: {
- zIndex: 0
- }
- },
- '&-focused, &:focus': {
- zIndex: 1
- },
- [`> input${componentCls}`]: {
- padding: 0
- },
- [`> input${componentCls}, > textarea${componentCls}`]: {
- fontSize: 'inherit',
- border: 'none',
- borderRadius: 0,
- outline: 'none',
- background: 'transparent',
- color: 'inherit',
- '&::-ms-reveal': {
- display: 'none'
- },
- '&:focus': {
- boxShadow: 'none !important'
- }
- },
- '&::before': {
- display: 'inline-block',
- width: 0,
- visibility: 'hidden',
- content: '"\\a0"'
- },
- [componentCls]: {
- '&-prefix, &-suffix': {
- display: 'flex',
- flex: 'none',
- alignItems: 'center',
- '> *:not(:last-child)': {
- marginInlineEnd: token.paddingXS
- }
- },
- '&-show-count-suffix': {
- color: colorTextDescription,
- direction: 'ltr'
- },
- '&-show-count-has-suffix': {
- marginInlineEnd: token.paddingXXS
- },
- '&-prefix': {
- marginInlineEnd: inputAffixPadding
- },
- '&-suffix': {
- marginInlineStart: inputAffixPadding
- }
- }
- }), genAllowClearStyle(token)), {
- // password
- [`${iconCls}${componentCls}-password-icon`]: {
- color: colorIcon,
- cursor: 'pointer',
- transition: `all ${motionDurationSlow}`,
- '&:hover': {
- color: colorIconHover
- }
- }
- }),
- // 覆盖 affix-wrapper borderRadius!
- [`${componentCls}-underlined`]: {
- borderRadius: 0
- },
- [affixClsDisabled]: {
- // password disabled
- [`${iconCls}${componentCls}-password-icon`]: {
- color: colorIcon,
- cursor: 'not-allowed',
- '&:hover': {
- color: colorIcon
- }
- }
- }
- };
- };
- exports.genAffixStyle = genAffixStyle;
- const genGroupStyle = token => {
- const {
- componentCls,
- borderRadiusLG,
- borderRadiusSM
- } = token;
- return {
- [`${componentCls}-group`]: Object.assign(Object.assign(Object.assign({}, (0, _style.resetComponent)(token)), genInputGroupStyle(token)), {
- '&-rtl': {
- direction: 'rtl'
- },
- '&-wrapper': Object.assign(Object.assign(Object.assign({
- display: 'inline-block',
- width: '100%',
- textAlign: 'start',
- verticalAlign: 'top',
- '&-rtl': {
- direction: 'rtl'
- },
- // Size
- '&-lg': {
- [`${componentCls}-group-addon`]: {
- borderRadius: borderRadiusLG,
- fontSize: token.inputFontSizeLG
- }
- },
- '&-sm': {
- [`${componentCls}-group-addon`]: {
- borderRadius: borderRadiusSM
- }
- }
- }, (0, _variants.genOutlinedGroupStyle)(token)), (0, _variants.genFilledGroupStyle)(token)), {
- // '&-disabled': {
- // [`${componentCls}-group-addon`]: {
- // ...genDisabledStyle(token),
- // },
- // },
- // Fix the issue of using icons in Space Compact mode
- // https://github.com/ant-design/ant-design/issues/42122
- [`&:not(${componentCls}-compact-first-item):not(${componentCls}-compact-last-item)${componentCls}-compact-item`]: {
- [`${componentCls}, ${componentCls}-group-addon`]: {
- borderRadius: 0
- }
- },
- [`&:not(${componentCls}-compact-last-item)${componentCls}-compact-first-item`]: {
- [`${componentCls}, ${componentCls}-group-addon`]: {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0
- }
- },
- [`&:not(${componentCls}-compact-first-item)${componentCls}-compact-last-item`]: {
- [`${componentCls}, ${componentCls}-group-addon`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0
- }
- },
- // Fix the issue of input use show-count param in space compact mode
- // https://github.com/ant-design/ant-design/issues/46872
- [`&:not(${componentCls}-compact-last-item)${componentCls}-compact-item`]: {
- [`${componentCls}-affix-wrapper`]: {
- borderStartEndRadius: 0,
- borderEndEndRadius: 0
- }
- },
- // Fix the issue of input use `addonAfter` param in space compact mode
- // https://github.com/ant-design/ant-design/issues/52483
- [`&:not(${componentCls}-compact-first-item)${componentCls}-compact-item`]: {
- [`${componentCls}-affix-wrapper`]: {
- borderStartStartRadius: 0,
- borderEndStartRadius: 0
- }
- }
- })
- })
- };
- };
- const genSearchInputStyle = token => {
- const {
- componentCls,
- antCls
- } = token;
- const searchPrefixCls = `${componentCls}-search`;
- return {
- [searchPrefixCls]: {
- [componentCls]: {
- '&:not([disabled]):hover, &:not([disabled]):focus': {
- [`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-color-primary):not(${antCls}-btn-variant-text)`]: {
- borderInlineStartColor: token.colorPrimaryHover
- }
- }
- },
- [`${componentCls}-affix-wrapper`]: {
- height: token.controlHeight,
- borderRadius: 0
- },
- // fix slight height diff in Firefox:
- // https://ant.design/components/auto-complete-cn/#auto-complete-demo-certain-category
- [`${componentCls}-lg`]: {
- lineHeight: token.calc(token.lineHeightLG).sub(0.0002).equal()
- },
- [`> ${componentCls}-group`]: {
- [`> ${componentCls}-group-addon:last-child`]: {
- insetInlineStart: -1,
- padding: 0,
- border: 0,
- [`${searchPrefixCls}-button`]: {
- // Fix https://github.com/ant-design/ant-design/issues/47150
- marginInlineEnd: -1,
- borderStartStartRadius: 0,
- borderEndStartRadius: 0,
- boxShadow: 'none'
- },
- [`${searchPrefixCls}-button:not(${antCls}-btn-color-primary)`]: {
- color: token.colorTextDescription,
- '&:not([disabled]):hover': {
- color: token.colorPrimaryHover
- },
- '&:active': {
- color: token.colorPrimaryActive
- },
- [`&${antCls}-btn-loading::before`]: {
- inset: 0
- }
- }
- }
- },
- [`${searchPrefixCls}-button`]: {
- height: token.controlHeight,
- '&:hover, &:focus': {
- zIndex: 1
- }
- },
- '&-large': {
- [`${componentCls}-affix-wrapper, ${searchPrefixCls}-button`]: {
- height: token.controlHeightLG
- }
- },
- '&-small': {
- [`${componentCls}-affix-wrapper, ${searchPrefixCls}-button`]: {
- height: token.controlHeightSM
- }
- },
- '&-rtl': {
- direction: 'rtl'
- },
- // ===================== Compact Item Customized Styles =====================
- [`&${componentCls}-compact-item`]: {
- [`&:not(${componentCls}-compact-last-item)`]: {
- [`${componentCls}-group-addon`]: {
- [`${componentCls}-search-button`]: {
- marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal(),
- borderRadius: 0
- }
- }
- },
- [`&:not(${componentCls}-compact-first-item)`]: {
- [`${componentCls},${componentCls}-affix-wrapper`]: {
- borderRadius: 0
- }
- },
- [`> ${componentCls}-group-addon ${componentCls}-search-button,
- > ${componentCls},
- ${componentCls}-affix-wrapper`]: {
- '&:hover, &:focus, &:active': {
- zIndex: 2
- }
- },
- [`> ${componentCls}-affix-wrapper-focused`]: {
- zIndex: 2
- }
- }
- }
- };
- };
- // ============================== Range ===============================
- const genRangeStyle = token => {
- const {
- componentCls
- } = token;
- return {
- [`${componentCls}-out-of-range`]: {
- [`&, & input, & textarea, ${componentCls}-show-count-suffix, ${componentCls}-data-count`]: {
- color: token.colorError
- }
- }
- };
- };
- // ============================== Export ==============================
- const useSharedStyle = exports.useSharedStyle = (0, _internal.genStyleHooks)(['Input', 'Shared'], token => {
- const inputToken = (0, _internal.mergeToken)(token, (0, _token.initInputToken)(token));
- return [genInputStyle(inputToken), genAffixStyle(inputToken)];
- }, _token.initComponentToken, {
- resetFont: false
- });
- var _default = exports.default = (0, _internal.genStyleHooks)(['Input', 'Component'], token => {
- const inputToken = (0, _internal.mergeToken)(token, (0, _token.initInputToken)(token));
- return [genGroupStyle(inputToken), genSearchInputStyle(inputToken), genRangeStyle(inputToken),
- // =====================================================
- // == Space Compact ==
- // =====================================================
- (0, _compactItem.genCompactItemStyle)(inputToken)];
- }, _token.initComponentToken, {
- resetFont: false
- });
|