utils.d.ts 506 B

12345678
  1. import type { HTMLAttributes } from 'vue';
  2. declare type Orientation = HTMLAttributes['aria-orientation'];
  3. declare type Direction = 'ltr' | 'rtl';
  4. declare type FocusIntent = 'first' | 'last' | 'prev' | 'next';
  5. export declare const getFocusIntent: (event: KeyboardEvent, orientation?: Orientation, dir?: Direction | undefined) => FocusIntent | undefined;
  6. export declare const reorderArray: <T>(array: T[], atIdx: number) => T[];
  7. export declare const focusFirst: (elements: HTMLElement[]) => void;
  8. export {};