@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.d.ts CHANGED
@@ -231,7 +231,6 @@ declare const NavHeader: React.FC<Expand<NavHeaderProps> &
231
231
  interface NavTabsProps {
232
232
  tabsConfig: Array<{ path: string; label: string }>;
233
233
  tabGap?: string;
234
- tabMinWidth?: string;
235
234
  }
236
235
 
237
236
  declare const NavTabs: React.FC<Expand<NavTabsProps> &
package/dist/index.esm.js CHANGED
@@ -35273,8 +35273,7 @@ var fallbackValues$y = {
35273
35273
  var NavTab = function NavTab(_ref) {
35274
35274
  var path = _ref.path,
35275
35275
  label = _ref.label,
35276
- themeValues = _ref.themeValues,
35277
- minWidth = _ref.minWidth;
35276
+ themeValues = _ref.themeValues;
35278
35277
 
35279
35278
  var _useContext = useContext(ThemeContext),
35280
35279
  isMobile = _useContext.isMobile;
@@ -35302,16 +35301,13 @@ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$y);
35302
35301
 
35303
35302
  var NavTabs = function NavTabs(_ref) {
35304
35303
  var tabsConfig = _ref.tabsConfig,
35305
- tabGap = _ref.tabGap,
35306
- _ref$tabMinWidth = _ref.tabMinWidth,
35307
- tabMinWidth = _ref$tabMinWidth === void 0 ? "100px" : _ref$tabMinWidth;
35304
+ tabGap = _ref.tabGap;
35308
35305
 
35309
35306
  var _useContext = useContext(ThemeContext),
35310
35307
  isMobile = _useContext.isMobile;
35311
35308
 
35312
35309
  var tabs = tabsConfig.map(function (tabConfig) {
35313
35310
  return /*#__PURE__*/React.createElement(NavTab$1, _extends({
35314
- minWidth: tabMinWidth,
35315
35311
  key: tabConfig.path
35316
35312
  }, tabConfig));
35317
35313
  });
@@ -37526,7 +37522,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
37526
37522
  initial: initiallyOpen ? "open" : "closed",
37527
37523
  exit: "closed",
37528
37524
  variants: wrapper,
37529
- extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
37525
+ extraStyles: "transform-origin: 100% 0; overflow-y: hidden",
37530
37526
  id: "".concat(id, "-content"),
37531
37527
  role: "region",
37532
37528
  "aria-labelledby": "".concat(id, "-button")
@@ -37610,7 +37606,7 @@ var Copyable = function Copyable(_ref2) {
37610
37606
  top: "-65px",
37611
37607
  right: "auto",
37612
37608
  bottom: "auto",
37613
- left: "50%"
37609
+ left: "-50%"
37614
37610
  };
37615
37611
  var popoverArrowPosition = {
37616
37612
  arrowTop: "auto",
@@ -37652,7 +37648,7 @@ var Copyable = function Copyable(_ref2) {
37652
37648
  position: popoverPosition,
37653
37649
  arrowPosition: popoverArrowPosition,
37654
37650
  popoverID: popoverID,
37655
- extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; #Disclosed").concat(popoverID, " { transform: translateX(-50%); }; ").concat(extraStyles),
37651
+ extraStyles: "> button#btnPopover".concat(popoverID, " { margin: 0 }; ").concat(extraStyles),
37656
37652
  triggerText: CopyableText({
37657
37653
  text: text,
37658
37654
  onClick: onClick