@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.cjs.js +13 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +13 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/nav-tabs/NavTab.js +1 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +3 -2
- package/src/components/molecules/collapsible-section/index.d.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -35301,7 +35301,7 @@ var NavTab = function NavTab(_ref) {
|
|
|
35301
35301
|
}, /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
35302
35302
|
color: isActive ? themeValues.activeColor : themeValues.linkColor,
|
|
35303
35303
|
to: path,
|
|
35304
|
-
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
|
|
35304
|
+
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 ")
|
|
35305
35305
|
}, label));
|
|
35306
35306
|
};
|
|
35307
35307
|
|
|
@@ -37441,7 +37441,9 @@ 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
|
|
37444
|
+
index = _ref$index === void 0 ? 1 : _ref$index,
|
|
37445
|
+
_ref$overflowY = _ref.overflowY,
|
|
37446
|
+
overflowY = _ref$overflowY === void 0 ? "hidden" : _ref$overflowY;
|
|
37445
37447
|
|
|
37446
37448
|
var handleKeyDown = function handleKeyDown(e) {
|
|
37447
37449
|
if (e.keyCode === 13) {
|
|
@@ -37530,7 +37532,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
37530
37532
|
initial: initiallyOpen ? "open" : "closed",
|
|
37531
37533
|
exit: "closed",
|
|
37532
37534
|
variants: wrapper,
|
|
37533
|
-
extraStyles: "transform-origin: 100% 0; overflow-y:
|
|
37535
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: ".concat(overflowY, ";"),
|
|
37534
37536
|
id: "".concat(id, "-content"),
|
|
37535
37537
|
role: "region",
|
|
37536
37538
|
"aria-labelledby": "".concat(id, "-button")
|
|
@@ -43466,7 +43468,14 @@ var Modal$1 = function Modal(_ref) {
|
|
|
43466
43468
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
43467
43469
|
isMobile = _useContext.isMobile;
|
|
43468
43470
|
|
|
43469
|
-
|
|
43471
|
+
var modalContainerRef = React.useRef(null);
|
|
43472
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
43473
|
+
ref: modalContainerRef
|
|
43474
|
+
}, 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
|
|
43475
|
+
, {
|
|
43476
|
+
focusTrapOptions: {
|
|
43477
|
+
fallbackFocus: modalContainerRef === null || modalContainerRef === void 0 ? void 0 : modalContainerRef.current
|
|
43478
|
+
},
|
|
43470
43479
|
onExit: onExit,
|
|
43471
43480
|
getApplicationNode: getApplicationNode,
|
|
43472
43481
|
titleText: modalHeaderText,
|