UNPKG

@vuesax-alpha/nightly

Version:
31 lines (28 loc) 808 B
import '../../../utils/index.mjs'; import { onTrapFocusEvent, onReleaseFocusEvent } from '../../../tokens/focus-trap.mjs'; import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs'; const focusTrapProps = buildProps({ loop: { type: Boolean }, trapped: { type: Boolean }, focusTrapEl: { type: definePropType(Object) }, focusStartEl: { type: definePropType([Object, String]), default: "first" } }); const focusTrapEmits = { [onTrapFocusEvent]: (e) => e instanceof Event, [onReleaseFocusEvent]: (e) => e, focusin: (e) => e instanceof Event, focusout: (e) => e instanceof Event, focusoutPrevented: (e) => e, releaseRequested: (e) => e instanceof Event }; export { focusTrapEmits, focusTrapProps }; //# sourceMappingURL=focus-trap.mjs.map