minishouyin/node_modules/antd/lib/select/style/token.d.ts

139 lines
3.8 KiB
TypeScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
import type { CSSProperties } from 'react';
import type { FullToken, GetDefaultToken } from 'antd/es/theme/internal';
export interface MultipleSelectorToken {
/**
* @desc
* @descEN Background color of multiple tag
*/
multipleItemBg: string;
/**
* @desc
* @descEN Border color of multiple tag
*/
multipleItemBorderColor: string;
/**
* @desc
* @descEN Height of multiple tag
*/
multipleItemHeight: number;
/**
* @desc
* @descEN Height of multiple tag with small size
*/
multipleItemHeightSM: number;
/**
* @desc
* @descEN Height of multiple tag with large size
*/
multipleItemHeightLG: number;
/**
* @desc
* @descEN Background color of multiple selector when disabled
*/
multipleSelectorBgDisabled: string;
/**
* @desc
* @descEN Text color of multiple tag when disabled
*/
multipleItemColorDisabled: string;
/**
* @desc
* @descEN Border color of multiple tag when disabled
*/
multipleItemBorderColorDisabled: string;
}
export interface ComponentToken extends MultipleSelectorToken {
/**
* @desc z-index
* @descEN z-index of dropdown
*/
zIndexPopup: number;
/**
* @desc
* @descEN Text color when option is selected
*/
optionSelectedColor: string;
/**
* @desc
* @descEN Font weight when option is selected
*/
optionSelectedFontWeight: CSSProperties['fontWeight'];
/**
* @desc
* @descEN Background color when option is selected
*/
optionSelectedBg: string;
/**
* @desc
* @descEN Background color when option is active
*/
optionActiveBg: string;
/**
* @desc
* @descEN Padding of option
*/
optionPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Font size of option
*/
optionFontSize: number;
/**
* @desc
* @descEN Line height of option
*/
optionLineHeight: CSSProperties['lineHeight'];
/**
* @desc
* @descEN Height of option
*/
optionHeight: number;
/**
* @desc
* @descEN Background color of selector
*/
selectorBg: string;
/**
* @desc
* @descEN Background color of clear button
*/
clearBg: string;
/**
* @desc
* @descEN Height of single selected item with large size
*/
singleItemHeightLG: number;
/**
* @desc
* @descEN Inline end padding of arrow
*/
showArrowPaddingInlineEnd: number;
/**
* @desc
* @descEN Hover border color
*/
hoverBorderColor: string;
/**
* @desc
* @descEN Active border color
*/
activeBorderColor: string;
/**
* @desc outline
* @descEN Active outline color
*/
activeOutlineColor: string;
}
export interface SelectorToken {
selectAffixPadding: number | string;
inputPaddingHorizontalBase: number | string;
multipleSelectItemHeight: number;
selectHeight: number;
}
export interface SelectToken extends FullToken<'Select'>, SelectorToken {
rootPrefixCls: string;
/** @private Used for internal calculation */
INTERNAL_FIXED_ITEM_MARGIN: number;
}
export declare const prepareComponentToken: GetDefaultToken<'Select'>;