9 lines
611 B
TypeScript
9 lines
611 B
TypeScript
export type ZIndexContainer = 'Modal' | 'Drawer' | 'Popover' | 'Popconfirm' | 'Tooltip' | 'Tour';
|
|
export type ZIndexConsumer = 'SelectLike' | 'Dropdown' | 'DatePicker' | 'Menu' | 'ImagePreview';
|
|
export declare const CONTAINER_MAX_OFFSET: number;
|
|
export declare const containerBaseZIndexOffset: Record<ZIndexContainer, number>;
|
|
export declare const consumerBaseZIndexOffset: Record<ZIndexConsumer, number>;
|
|
type ReturnResult = [zIndex: number | undefined, contextZIndex: number];
|
|
export declare function useZIndex(componentType: ZIndexContainer | ZIndexConsumer, customZIndex?: number): ReturnResult;
|
|
export {};
|