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

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
@@ -37441,9 +37441,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37441
37441
  _ref$name = _ref.name,
37442
37442
  name = _ref$name === void 0 ? "" : _ref$name,
37443
37443
  _ref$index = _ref.index,
37444
- index = _ref$index === void 0 ? 1 : _ref$index,
37445
- _ref$overflowY = _ref.overflowY,
37446
- overflowY = _ref$overflowY === void 0 ? "hidden" : _ref$overflowY;
37444
+ index = _ref$index === void 0 ? 1 : _ref$index;
37447
37445
 
37448
37446
  var handleKeyDown = function handleKeyDown(e) {
37449
37447
  if (e.keyCode === 13) {
@@ -37451,6 +37449,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37451
37449
  }
37452
37450
  };
37453
37451
 
37452
+ React.useEffect(function () {}, [isOpen]);
37454
37453
  var numChildren = typeof children === "Array" ? children.length : 1;
37455
37454
  var label = name !== "" ? name : !customTitle ? title : "collapsible section";
37456
37455
  var id = "".concat(label === null || label === void 0 ? void 0 : (_label$replaceAll = label.replaceAll(" ", "-")) === null || _label$replaceAll === void 0 ? void 0 : _label$replaceAll.toLowerCase(), "-").concat(index);
@@ -37532,7 +37531,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37532
37531
  initial: initiallyOpen ? "open" : "closed",
37533
37532
  exit: "closed",
37534
37533
  variants: wrapper,
37535
- extraStyles: "transform-origin: 100% 0; overflow-y: ".concat(overflowY, ";"),
37534
+ extraStyles: "transform-origin: 100% 0; overflow-y: hidden",
37536
37535
  id: "".concat(id, "-content"),
37537
37536
  role: "region",
37538
37537
  "aria-labelledby": "".concat(id, "-button")
@@ -37658,7 +37657,7 @@ var Copyable = function Copyable(_ref2) {
37658
37657
  position: popoverPosition,
37659
37658
  arrowPosition: popoverArrowPosition,
37660
37659
  popoverID: popoverID,
37661
- extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; #Disclosed").concat(popoverID, " { transform: translateX(-50%); }; ").concat(extraStyles),
37660
+ extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; > #Disclosed").concat(popoverID, " { transform: translateX(-50%); }; ").concat(extraStyles),
37662
37661
  triggerText: CopyableText({
37663
37662
  text: text,
37664
37663
  onClick: onClick