Files
dsProject/dsBase/WebRoot/html/cdn/es/components/focus-trap/src/tokens.d.ts

12 lines
584 B
TypeScript
Raw Normal View History

2025-08-14 15:45:08 +08:00
import type { InjectionKey, Ref } from 'vue';
export declare const FOCUS_ON_MOUNT = "focus-trap.focus-on-mount";
export declare const FOCUS_ON_UNMOUNT = "focus-trap.focus-on-unmount";
export declare const FOCUS_ON_MOUNT_OPTS: EventInit;
export declare const ON_MOUNT_FOCUS_EVT = "mountOnFocus";
export declare const ON_UNMOUNT_FOCUS_EVT = "unmountOnFocus";
export declare type FocusTrapInjectionContext = {
focusTrapRef: Ref<HTMLElement | null>;
onKeydown: (e: KeyboardEvent) => void;
};
export declare const FOCUS_TRAP_INJECTION_KEY: InjectionKey<FocusTrapInjectionContext>;