@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
17 lines (16 loc) • 593 B
TypeScript
/**
* Keyboard navigation helpers for calendar component
*/
export declare const KEY_DIRECTION_MAP: Record<string, number>;
/**
* Check if a keyboard event should be ignored
*/
export declare function shouldIgnoreKeyboardEvent(target: HTMLElement): boolean;
/**
* Find the next selectable date in a given direction
*/
export declare function findNextSelectableDate(startDate: Date, direction: number, querySelector: (selector: string) => Element | null): Date | null;
/**
* Get the direction for a keyboard event
*/
export declare function getKeyDirection(key: string): number | null;