38 lines
1.5 KiB
TypeScript
38 lines
1.5 KiB
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { AliasToken, FullToken, GenStyleFn } from '../../theme/internal';
|
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
export interface ComponentToken {
|
|
/**
|
|
* @desc 提醒框 z-index
|
|
* @descEN z-index of Notification
|
|
*/
|
|
zIndexPopup: number;
|
|
/**
|
|
* @desc 提醒框宽度
|
|
* @descEN Width of Notification
|
|
*/
|
|
width: number | string;
|
|
}
|
|
export interface NotificationToken extends FullToken<'Notification'> {
|
|
animationMaxHeight: number | string;
|
|
notificationBg: string;
|
|
notificationPadding: string;
|
|
notificationPaddingVertical: number;
|
|
notificationPaddingHorizontal: number;
|
|
notificationIconSize: number | string;
|
|
notificationCloseButtonSize: number | string;
|
|
notificationMarginBottom: number;
|
|
notificationMarginEdge: number;
|
|
notificationStackLayer: number;
|
|
notificationProgressBg: string;
|
|
notificationProgressHeight: number;
|
|
}
|
|
export declare const genNoticeStyle: (token: NotificationToken) => CSSObject;
|
|
export declare const prepareComponentToken: (token: AliasToken) => {
|
|
zIndexPopup: number;
|
|
width: number;
|
|
};
|
|
export declare const prepareNotificationToken: (token: Parameters<GenStyleFn<'Notification'>>[0]) => NotificationToken;
|
|
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
|
|
export default _default;
|