@thecb/components 7.0.2-beta.2 → 7.0.2-beta.4
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
|
@@ -35281,8 +35281,7 @@ var fallbackValues$y = {
|
|
|
35281
35281
|
var NavTab = function NavTab(_ref) {
|
|
35282
35282
|
var path = _ref.path,
|
|
35283
35283
|
label = _ref.label,
|
|
35284
|
-
themeValues = _ref.themeValues
|
|
35285
|
-
minWidth = _ref.minWidth;
|
|
35284
|
+
themeValues = _ref.themeValues;
|
|
35286
35285
|
|
|
35287
35286
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
35288
35287
|
isMobile = _useContext.isMobile;
|
|
@@ -35310,16 +35309,13 @@ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$y);
|
|
|
35310
35309
|
|
|
35311
35310
|
var NavTabs = function NavTabs(_ref) {
|
|
35312
35311
|
var tabsConfig = _ref.tabsConfig,
|
|
35313
|
-
tabGap = _ref.tabGap
|
|
35314
|
-
_ref$tabMinWidth = _ref.tabMinWidth,
|
|
35315
|
-
tabMinWidth = _ref$tabMinWidth === void 0 ? "100px" : _ref$tabMinWidth;
|
|
35312
|
+
tabGap = _ref.tabGap;
|
|
35316
35313
|
|
|
35317
35314
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
35318
35315
|
isMobile = _useContext.isMobile;
|
|
35319
35316
|
|
|
35320
35317
|
var tabs = tabsConfig.map(function (tabConfig) {
|
|
35321
35318
|
return /*#__PURE__*/React__default.createElement(NavTab$1, _extends({
|
|
35322
|
-
minWidth: tabMinWidth,
|
|
35323
35319
|
key: tabConfig.path
|
|
35324
35320
|
}, tabConfig));
|
|
35325
35321
|
});
|
|
@@ -37534,7 +37530,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
37534
37530
|
initial: initiallyOpen ? "open" : "closed",
|
|
37535
37531
|
exit: "closed",
|
|
37536
37532
|
variants: wrapper,
|
|
37537
|
-
extraStyles: "transform-origin: 100% 0; overflow-y: hidden
|
|
37533
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: hidden",
|
|
37538
37534
|
id: "".concat(id, "-content"),
|
|
37539
37535
|
role: "region",
|
|
37540
37536
|
"aria-labelledby": "".concat(id, "-button")
|
|
@@ -37618,7 +37614,7 @@ var Copyable = function Copyable(_ref2) {
|
|
|
37618
37614
|
top: "-65px",
|
|
37619
37615
|
right: "auto",
|
|
37620
37616
|
bottom: "auto",
|
|
37621
|
-
left: "50%"
|
|
37617
|
+
left: "-50%"
|
|
37622
37618
|
};
|
|
37623
37619
|
var popoverArrowPosition = {
|
|
37624
37620
|
arrowTop: "auto",
|
|
@@ -37660,7 +37656,7 @@ var Copyable = function Copyable(_ref2) {
|
|
|
37660
37656
|
position: popoverPosition,
|
|
37661
37657
|
arrowPosition: popoverArrowPosition,
|
|
37662
37658
|
popoverID: popoverID,
|
|
37663
|
-
extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 };
|
|
37659
|
+
extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; ").concat(extraStyles),
|
|
37664
37660
|
triggerText: CopyableText({
|
|
37665
37661
|
text: text,
|
|
37666
37662
|
onClick: onClick
|