@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
14 lines (13 loc) • 937 B
TypeScript
export declare const getWrapperElement: () => Element;
interface elementData {
element: Element;
containerClassName: string;
elementRef: React.RefObject<HTMLDivElement>;
}
export declare const getUpdatedZIndex: (ele: elementData) => number | undefined;
export declare const closeOnEscapeKeypress: (event: KeyboardEvent, isTopOverlay: boolean | undefined, onClose: (event: Event) => void) => void;
export declare const getFocusableElements: (container: HTMLElement) => HTMLElement[];
export declare const getAllFocusableElements: (container: HTMLElement, roleHint?: string | undefined) => HTMLElement[];
export declare const handleFocusTrapKeyDown: (event: KeyboardEvent, container: HTMLElement, staticFocusTarget?: HTMLElement | null | undefined) => boolean;
export declare const restoreFocusToElementIfConnected: (element: HTMLElement | null | undefined, closingOverlay?: HTMLElement | null | undefined) => void;
export {};