52 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import type { CSSProperties } from 'react';
import type { FullToken, GlobalToken } from '../../theme/internal';
export interface ComponentToken {
/**
* @desc
* @descEN Width of Cascader
*/
controlWidth: number | string;
/**
* @desc
* @descEN Width of item
*/
controlItemWidth: number | string;
/**
* @desc
* @descEN Height of dropdown
*/
dropdownHeight: number | string;
/**
* @desc
* @descEN Background color of selected item
*/
optionSelectedBg: string;
/**
* @desc
* @descEN Font weight of selected item
*/
optionSelectedFontWeight: CSSProperties['fontWeight'];
/**
* @desc
* @descEN Padding of menu item
*/
optionPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Padding of menu item (single column)
*/
menuPadding: CSSProperties['padding'];
}
export type CascaderToken = FullToken<'Cascader'>;
export declare const prepareComponentToken: (token: GlobalToken) => {
controlWidth: number;
controlItemWidth: number;
dropdownHeight: number;
optionSelectedBg: string;
optionSelectedFontWeight: number;
optionPadding: string;
menuPadding: number;
};
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
export default _default;