element-plus
Version:
A Component Library for Vue 3
1 lines • 1.01 kB
Source Map (JSON)
{"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/focus-trap/src/tokens.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\n\nexport const FOCUS_ON_MOUNT = 'focus-trap.focus-on-mount'\nexport const FOCUS_ON_UNMOUNT = 'focus-trap.focus-on-unmount'\nexport const FOCUS_ON_MOUNT_OPTS: EventInit = {\n cancelable: true,\n bubbles: false,\n}\n\nexport const ON_MOUNT_FOCUS_EVT = 'mountOnFocus'\nexport const ON_UNMOUNT_FOCUS_EVT = 'unmountOnFocus'\n\nexport type FocusTrapInjectionContext = {\n focusTrapRef: Ref<HTMLElement | undefined>\n onKeydown: (e: KeyboardEvent) => void\n}\n\nexport const FOCUS_TRAP_INJECTION_KEY: InjectionKey<FocusTrapInjectionContext> =\n Symbol('elFocusTrap')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,4BAA4B;AAC9C,MAAC,gBAAgB,GAAG,8BAA8B;AAClD,MAAC,mBAAmB,GAAG;AACnC,EAAE,UAAU,EAAE,IAAI;AAClB,EAAE,OAAO,EAAE,KAAK;AAChB,EAAE;AACU,MAAC,kBAAkB,GAAG,eAAe;AACrC,MAAC,oBAAoB,GAAG,iBAAiB;AACzC,MAAC,wBAAwB,GAAG,MAAM,CAAC,aAAa;;;;"}