@cds/core
Version:
Clarity Design System - common components, themes, and utilties
13 lines (12 loc) • 871 B
TypeScript
export declare function focusable(element: Element): boolean;
/**
* Lists simple focus primitives, any interactive element that does not require advanced keyboard interactions like arrow/navigation
*/
export declare function simpleFocusable(element: Element): boolean;
export declare function getActiveElement(root?: Document | ShadowRoot): Element | null;
export declare function focusElement(element: HTMLElement): void;
export declare function onFocusOut(element: HTMLElement, fn: () => void): void;
export declare function onEscape(element: HTMLElement, fn: () => void): void;
export declare function ignoreFocus(hostEl: HTMLElement): boolean;
export declare function setActiveKeyListItem(items: NodeListOf<HTMLElement> | HTMLElement[], item: HTMLElement): void;
export declare function initializeKeyListItems(items: NodeListOf<HTMLElement> | HTMLElement[]): void;