@thecb/components 7.0.2-beta.1 → 7.0.2-beta.3

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.d.ts CHANGED
@@ -296,6 +296,7 @@ interface CollapsibleSectionProps {
296
296
  sectionGap?: string;
297
297
  name?: string;
298
298
  index?: number;
299
+ overflowY?: string;
299
300
  }
300
301
 
301
302
  declare const CollapsibleSection: React.FC<Expand<CollapsibleSectionProps> &
package/dist/index.esm.js CHANGED
@@ -35293,7 +35293,7 @@ var NavTab = function NavTab(_ref) {
35293
35293
  }, /*#__PURE__*/React.createElement(InternalLink, {
35294
35294
  color: isActive ? themeValues.activeColor : themeValues.linkColor,
35295
35295
  to: path,
35296
- extraStyles: "\n border-bottom: 3px solid transparent;\n font-family: ".concat(themeValues.fontFamily, ";\n text-decoration: none;\n ").concat(isActive && !isMobile ? border : "none", ";\n &:hover {\n text-decoration: none;\n color: ").concat(themeValues.activeColor, ";\n ").concat(isMobile ? "" : "".concat(border), "\n };\n padding: 1.25rem 0.1rem;\n ")
35296
+ extraStyles: "\n border-bottom: 3px solid transparent;\n font-family: ".concat(themeValues.fontFamily, ";\n text-decoration: none;\n ").concat(isActive && !isMobile ? border : "none", ";\n &:hover {\n text-decoration: none;\n color: ").concat(themeValues.activeColor, ";\n ").concat(isMobile ? "" : "".concat(border), "\n };\n padding: 1.25rem 0;\n ")
35297
35297
  }, label));
35298
35298
  };
35299
35299
 
@@ -37433,7 +37433,9 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37433
37433
  _ref$name = _ref.name,
37434
37434
  name = _ref$name === void 0 ? "" : _ref$name,
37435
37435
  _ref$index = _ref.index,
37436
- index = _ref$index === void 0 ? 1 : _ref$index;
37436
+ index = _ref$index === void 0 ? 1 : _ref$index,
37437
+ _ref$overflowY = _ref.overflowY,
37438
+ overflowY = _ref$overflowY === void 0 ? "hidden" : _ref$overflowY;
37437
37439
 
37438
37440
  var handleKeyDown = function handleKeyDown(e) {
37439
37441
  if (e.keyCode === 13) {
@@ -37522,7 +37524,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37522
37524
  initial: initiallyOpen ? "open" : "closed",
37523
37525
  exit: "closed",
37524
37526
  variants: wrapper,
37525
- extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
37527
+ extraStyles: "transform-origin: 100% 0; overflow-y: ".concat(overflowY, ";"),
37526
37528
  id: "".concat(id, "-content"),
37527
37529
  role: "region",
37528
37530
  "aria-labelledby": "".concat(id, "-button")
@@ -43458,7 +43460,14 @@ var Modal$1 = function Modal(_ref) {
43458
43460
  var _useContext = useContext(ThemeContext),
43459
43461
  isMobile = _useContext.isMobile;
43460
43462
 
43461
- return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
43463
+ var modalContainerRef = useRef(null);
43464
+ return /*#__PURE__*/React.createElement("div", {
43465
+ ref: modalContainerRef
43466
+ }, 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
43467
+ , {
43468
+ focusTrapOptions: {
43469
+ fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
43470
+ },
43462
43471
  onExit: onExit,
43463
43472
  getApplicationNode: getApplicationNode,
43464
43473
  titleText: modalHeaderText,