import { IStatusColor } from '../colors'; import { IComponentSizeSpec } from '../specs'; declare type IButtonType = 'primary' | 'strong' | 'normal' | 'secondary' | 'weak' | 'danger' | 'success' | 'warning' | 'mask'; declare type PartialRecord = { [P in K]?: T; }; export interface IButtonToken { padding: Record; borderRadius: { normal: string; group: string; circle: string; round: string; }; normalBorderRadius?: Record; /** 相邻按钮间距 */ siblingSpacing: Record; typeColor: Record; lightTypeColor: Record; /** 背景色是否使用 background-image */ typeBgImage: PartialRecord; /** plain=false 背景色单独设置 */ typeBgColor: PartialRecord; /** 单独设置每个类型的文字色 */ textColor: PartialRecord; /** 单独设置每个类型的 border 色 */ borderColor: Record; /** 文字按钮的类型色,默认用的 typeColor 可以单独设置 */ inlineButtonTypeColor: PartialRecord; statusOpacity: { normal: number; hover: number; click: number; }; maskStatusOpacity: { hover: number; click: number; }; weakLevels: IStatusColor[]; /** 按钮的默认文字颜色 */ defaultColor: string; /** 蒙层按钮的背景色 */ maskColor: string; lightMaskColor: string; fontSize: Record; lineHeight: Record; sidePadding: number; /** 按钮 z-index 优先级,在 ButtonGroup 中用到 */ zIndexOrder: Record; /** hover的 */ hoverZIndex: number; /** 选中的 */ selectedZIndex: number; /** plain是否代表淡色按钮 **/ plainIsLight: boolean; /** loading 节点的位置 */ loadingPosition: 'suffix' | 'prefix'; /** 主题默认的shape **/ defaultShape: string; /** plain 按钮 hover、click 是否高亮 */ plainColorHighlight: boolean; fontWeight: Record<'bold' | 'normal' | 'lighter', number>; } export {};