@cds/core
Version:
Clarity Design System - common components, themes, and utilties
20 lines (19 loc) • 592 B
TypeScript
import { KeyNavigationCode } from '../utils/keycodes.js';
export declare function getNextKeyGridItem(cells: HTMLElement[], rows: HTMLElement[], config: {
code: KeyNavigationCode | string;
ctrlKey: boolean;
dir: string;
}): {
x: number;
y: number;
};
export interface KeyListConfig {
code: KeyNavigationCode;
loop?: boolean;
layout?: 'horizontal' | 'vertical' | 'both';
dir: string | null | undefined;
}
export declare function getNextKeyListItem(item: HTMLElement, items: HTMLElement[], config: KeyListConfig): {
next: number;
previous: number;
};