aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
63 lines • 2.07 kB
TypeScript
/**
* Focus management exports
*/
export { FocusTrap, useFocusTrap } from './FocusTrap';
export type { FocusTrapProps } from './FocusTrap';
export { SkipLinks, MainContent, Navigation, SearchLandmark, useSkipLinks } from './SkipLinks';
export type { SkipLinksProps, SkipLink } from './SkipLinks';
export { ScreenReader, ScreenReaderOnly, LiveRegion, announce, useAnnounce, DescribedBy, LabelledBy, LoadingAnnouncement, ValidationAnnouncement, } from './ScreenReader';
export type { ScreenReaderProps } from './ScreenReader';
/**
* Keyboard navigation utilities
*/
export declare const KEYS: {
readonly ENTER: "Enter";
readonly SPACE: " ";
readonly TAB: "Tab";
readonly ESCAPE: "Escape";
readonly ARROW_UP: "ArrowUp";
readonly ARROW_DOWN: "ArrowDown";
readonly ARROW_LEFT: "ArrowLeft";
readonly ARROW_RIGHT: "ArrowRight";
readonly HOME: "Home";
readonly END: "End";
readonly PAGE_UP: "PageUp";
readonly PAGE_DOWN: "PageDown";
};
/**
* Check if an element is focusable
*/
export declare function isFocusable(element: HTMLElement): boolean;
/**
* Get all focusable elements within a container
*/
export declare function getFocusableElements(container: HTMLElement, selector?: string): HTMLElement[];
/**
* Focus the next focusable element
*/
export declare function focusNext(currentElement: HTMLElement, container?: HTMLElement): void;
/**
* Focus the previous focusable element
*/
export declare function focusPrevious(currentElement: HTMLElement, container?: HTMLElement): void;
/**
* Roving tabindex utilities
*/
export interface RovingTabindexItem {
element: HTMLElement;
index: number;
}
export declare class RovingTabindex {
private items;
private currentIndex;
constructor(container: HTMLElement, selector?: string);
private initialize;
private updateTabindex;
focus(index: number): void;
focusNext(): void;
focusPrevious(): void;
focusFirst(): void;
focusLast(): void;
handleKeyDown(event: KeyboardEvent): void;
}
//# sourceMappingURL=index.d.ts.map