PromoCursed/node_modules/antd/lib/_util/hooks/useZIndex.d.ts
2024-08-20 23:25:37 +04:00

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 {};