@thecb/components 7.0.0-beta.7 → 7.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -43337,18 +43337,17 @@ var Modal$1 = function Modal(_ref) {
43337
43337
  var _useContext = React.useContext(styled.ThemeContext),
43338
43338
  isMobile = _useContext.isMobile;
43339
43339
 
43340
- var modalContainerRef = React.useRef(null); // debugger;
43341
-
43342
- return /*#__PURE__*/React__default.createElement("div", {
43340
+ var modalContainerRef = React.useRef(null);
43341
+ return /*#__PURE__*/React__default.createElement(Box, {
43342
+ padding: "0",
43343
43343
  ref: modalContainerRef
43344
- }, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal // focusTrapPaused={true}
43344
+ }, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal // fallback to resolve Jest unit test errors when tabbable doesn't exist in jsdom https://github.com/focus-trap/focus-trap-react/issues/91
43345
43345
  , {
43346
43346
  initialFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current,
43347
43347
  focusTrapOptions: {
43348
43348
  delayInitialFocus: false,
43349
43349
  fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
43350
- } // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
43351
- ,
43350
+ },
43352
43351
  onExit: onExit,
43353
43352
  getApplicationNode: getApplicationNode,
43354
43353
  titleText: modalHeaderText,