61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
import type { FullToken, GenStyleFn, GetDefaultToken } from '../../theme/internal';
|
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
export interface ComponentToken {
|
|
/**
|
|
* @desc 徽标 z-index
|
|
* @descEN z-index of badge
|
|
*/
|
|
indicatorZIndex: number | string;
|
|
/**
|
|
* @desc 徽标高度
|
|
* @descEN Height of badge
|
|
*/
|
|
indicatorHeight: number | string;
|
|
/**
|
|
* @desc 小号徽标高度
|
|
* @descEN Height of small badge
|
|
*/
|
|
indicatorHeightSM: number | string;
|
|
/**
|
|
* @desc 点状徽标尺寸
|
|
* @descEN Size of dot badge
|
|
*/
|
|
dotSize: number;
|
|
/**
|
|
* @desc 徽标文本尺寸
|
|
* @descEN Font size of badge text
|
|
*/
|
|
textFontSize: number;
|
|
/**
|
|
* @desc 小号徽标文本尺寸
|
|
* @descEN Font size of small badge text
|
|
*/
|
|
textFontSizeSM: number;
|
|
/**
|
|
* @desc 徽标文本粗细
|
|
* @descEN Font weight of badge text
|
|
*/
|
|
textFontWeight: number | string;
|
|
/**
|
|
* @desc 状态徽标尺寸
|
|
* @descEN Size of status badge
|
|
*/
|
|
statusSize: number;
|
|
}
|
|
export interface BadgeToken extends FullToken<'Badge'> {
|
|
badgeFontHeight: number;
|
|
badgeTextColor: string;
|
|
badgeColor: string;
|
|
badgeColorHover: string;
|
|
badgeShadowSize: number;
|
|
badgeShadowColor: string;
|
|
badgeProcessingDuration: string;
|
|
badgeRibbonOffset: number;
|
|
badgeRibbonCornerTransform: string;
|
|
badgeRibbonCornerFilter: string;
|
|
}
|
|
export declare const prepareToken: (token: Parameters<GenStyleFn<'Badge'>>[0]) => BadgeToken;
|
|
export declare const prepareComponentToken: GetDefaultToken<'Badge'>;
|
|
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
|
|
export default _default;
|