@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.esm.js CHANGED
@@ -43329,18 +43329,17 @@ var Modal$1 = function Modal(_ref) {
43329
43329
  var _useContext = useContext(ThemeContext),
43330
43330
  isMobile = _useContext.isMobile;
43331
43331
 
43332
- var modalContainerRef = useRef(null); // debugger;
43333
-
43334
- return /*#__PURE__*/React.createElement("div", {
43332
+ var modalContainerRef = useRef(null);
43333
+ return /*#__PURE__*/React.createElement(Box, {
43334
+ padding: "0",
43335
43335
  ref: modalContainerRef
43336
- }, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal // focusTrapPaused={true}
43336
+ }, modalOpen && /*#__PURE__*/React.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
43337
43337
  , {
43338
43338
  initialFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current,
43339
43339
  focusTrapOptions: {
43340
43340
  delayInitialFocus: false,
43341
43341
  fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
43342
- } // fallback to resolve unit test errors https://github.com/focus-trap/focus-trap-react/issues/91
43343
- ,
43342
+ },
43344
43343
  onExit: onExit,
43345
43344
  getApplicationNode: getApplicationNode,
43346
43345
  titleText: modalHeaderText,