tokens.d.ts 967 B

1234567891011121314151617
  1. import { InjectionKey, Ref } from "vue";
  2. //#region ../../packages/components/focus-trap/src/tokens.d.ts
  3. declare const FOCUS_AFTER_TRAPPED = "focus-trap.focus-after-trapped";
  4. declare const FOCUS_AFTER_RELEASED = "focus-trap.focus-after-released";
  5. declare const FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented";
  6. declare const FOCUS_AFTER_TRAPPED_OPTS: EventInit;
  7. declare const FOCUSOUT_PREVENTED_OPTS: EventInit;
  8. declare const ON_TRAP_FOCUS_EVT = "focusAfterTrapped";
  9. declare const ON_RELEASE_FOCUS_EVT = "focusAfterReleased";
  10. type FocusTrapInjectionContext = {
  11. focusTrapRef: Ref<HTMLElement | undefined>;
  12. onKeydown: (e: KeyboardEvent) => void;
  13. };
  14. declare const FOCUS_TRAP_INJECTION_KEY: InjectionKey<FocusTrapInjectionContext>;
  15. //#endregion
  16. export { FOCUSOUT_PREVENTED, FOCUSOUT_PREVENTED_OPTS, FOCUS_AFTER_RELEASED, FOCUS_AFTER_TRAPPED, FOCUS_AFTER_TRAPPED_OPTS, FOCUS_TRAP_INJECTION_KEY, FocusTrapInjectionContext, ON_RELEASE_FOCUS_EVT, ON_TRAP_FOCUS_EVT };