@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 +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +4 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +2 -3
- package/src/components/molecules/collapsible-section/index.d.ts +0 -1
- package/src/components/molecules/copyable/Copyable.js +5 -5
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -37433,9 +37433,7 @@ 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
|
|
37437
|
-
_ref$overflowY = _ref.overflowY,
|
|
37438
|
-
overflowY = _ref$overflowY === void 0 ? "hidden" : _ref$overflowY;
|
|
37436
|
+
index = _ref$index === void 0 ? 1 : _ref$index;
|
|
37439
37437
|
|
|
37440
37438
|
var handleKeyDown = function handleKeyDown(e) {
|
|
37441
37439
|
if (e.keyCode === 13) {
|
|
@@ -37443,6 +37441,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
37443
37441
|
}
|
|
37444
37442
|
};
|
|
37445
37443
|
|
|
37444
|
+
useEffect$1(function () {}, [isOpen]);
|
|
37446
37445
|
var numChildren = typeof children === "Array" ? children.length : 1;
|
|
37447
37446
|
var label = name !== "" ? name : !customTitle ? title : "collapsible section";
|
|
37448
37447
|
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);
|
|
@@ -37524,7 +37523,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
37524
37523
|
initial: initiallyOpen ? "open" : "closed",
|
|
37525
37524
|
exit: "closed",
|
|
37526
37525
|
variants: wrapper,
|
|
37527
|
-
extraStyles: "transform-origin: 100% 0; overflow-y: "
|
|
37526
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: hidden",
|
|
37528
37527
|
id: "".concat(id, "-content"),
|
|
37529
37528
|
role: "region",
|
|
37530
37529
|
"aria-labelledby": "".concat(id, "-button")
|
|
@@ -37650,7 +37649,7 @@ var Copyable = function Copyable(_ref2) {
|
|
|
37650
37649
|
position: popoverPosition,
|
|
37651
37650
|
arrowPosition: popoverArrowPosition,
|
|
37652
37651
|
popoverID: popoverID,
|
|
37653
|
-
extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; #Disclosed").concat(popoverID, " { transform: translateX(-50%); }; ").concat(extraStyles),
|
|
37652
|
+
extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; > #Disclosed").concat(popoverID, " { transform: translateX(-50%); }; ").concat(extraStyles),
|
|
37654
37653
|
triggerText: CopyableText({
|
|
37655
37654
|
text: text,
|
|
37656
37655
|
onClick: onClick
|