flyonui
Version:
The easiest, free and open-source Tailwind CSS component library with semantic classes.
34 lines (31 loc) • 822 B
text/typescript
export interface IAccessibilityKeyboardHandlers {
onEnter?: () => void
onEsc?: () => void
onSpace?: () => void
onArrow?: (event: KeyboardEvent) => void
onTab?: () => void
onShiftTab?: () => void
onHome?: () => void
onEnd?: () => void
onFirstLetter?: (key: string) => void
[key: string]: ((...args: any[]) => void) | undefined
}
export interface IAccessibilityComponent {
wrapper: HTMLElement
handlers: IAccessibilityKeyboardHandlers
isOpened: boolean
name: string
selector: string
context?: HTMLElement
isRegistered: boolean
}
export interface HSAccessibilityObserver {
registerComponent(
wrapper: HTMLElement,
handlers: IAccessibilityKeyboardHandlers,
isActive?: boolean,
name?: string,
selector?: string,
context?: HTMLElement
): IAccessibilityComponent
}