{"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/focus-trap/src/tokens.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\r\n\r\nexport const FOCUS_AFTER_TRAPPED = 'focus-trap.focus-after-trapped'\r\nexport const FOCUS_AFTER_RELEASED = 'focus-trap.focus-after-released'\r\nexport const FOCUSOUT_PREVENTED = 'focus-trap.focusout-prevented'\r\nexport const FOCUS_AFTER_TRAPPED_OPTS: EventInit = {\r\n  cancelable: true,\r\n  bubbles: false,\r\n}\r\nexport const FOCUSOUT_PREVENTED_OPTS: EventInit = {\r\n  cancelable: true,\r\n  bubbles: false,\r\n}\r\n\r\nexport const ON_TRAP_FOCUS_EVT = 'focusAfterTrapped'\r\nexport const ON_RELEASE_FOCUS_EVT = 'focusAfterReleased'\r\n\r\nexport type FocusTrapInjectionContext = {\r\n  focusTrapRef: Ref<HTMLElement | undefined>\r\n  onKeydown: (e: KeyboardEvent) => void\r\n}\r\n\r\nexport const FOCUS_TRAP_INJECTION_KEY: InjectionKey<FocusTrapInjectionContext> =\r\n  Symbol('sgFocusTrap')\r\n"],"names":[],"mappings":"AAAY,MAAC,mBAAmB,GAAG,iCAAiC;AACxD,MAAC,oBAAoB,GAAG,kCAAkC;AAC1D,MAAC,kBAAkB,GAAG,gCAAgC;AACtD,MAAC,wBAAwB,GAAG;AACxC,EAAE,UAAU,EAAE,IAAI;AAClB,EAAE,OAAO,EAAE,KAAK;AAChB,EAAE;AACU,MAAC,uBAAuB,GAAG;AACvC,EAAE,UAAU,EAAE,IAAI;AAClB,EAAE,OAAO,EAAE,KAAK;AAChB,EAAE;AACU,MAAC,iBAAiB,GAAG,oBAAoB;AACzC,MAAC,oBAAoB,GAAG,qBAAqB;AAC7C,MAAC,wBAAwB,GAAG,MAAM,CAAC,aAAa;;;;"}