'use strict';

var XX67R432 = require('./XX67R432.cjs');
var LMDWO4NN = require('./LMDWO4NN.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');

// src/focus-trap/focus-trap.tsx
var TagName = "span";
var useFocusTrap = LMDWO4NN.createHook(
  function useFocusTrap2(props) {
    props = _3YLGPPWQ.__spreadProps(_3YLGPPWQ.__spreadValues({
      "data-focus-trap": "",
      tabIndex: 0,
      "aria-hidden": true
    }, props), {
      style: _3YLGPPWQ.__spreadValues({
        // Prevents unintended scroll jumps.
        position: "fixed",
        top: 0,
        left: 0
      }, props.style)
    });
    props = XX67R432.useVisuallyHidden(props);
    return props;
  }
);
var FocusTrap = LMDWO4NN.forwardRef(function FocusTrap2(props) {
  const htmlProps = useFocusTrap(props);
  return LMDWO4NN.createElement(TagName, htmlProps);
});

exports.FocusTrap = FocusTrap;
exports.useFocusTrap = useFocusTrap;
//# sourceMappingURL=W3VI7GFU.cjs.map
