@thecb/components 7.7.8-beta.1 → 7.7.8-beta.2

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
@@ -40330,6 +40330,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
40330
40330
  useOrderedList: useOrderedList,
40331
40331
  useUnorderedList: useUnorderedList
40332
40332
  }, repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
40333
+ var _t$toLowerCase;
40334
+
40333
40335
  return /*#__PURE__*/React__default.createElement(Box, {
40334
40336
  key: t,
40335
40337
  borderSize: "3px",
@@ -40344,7 +40346,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
40344
40346
  color: themeValues.textColor,
40345
40347
  weight: FONT_WEIGHT_SEMIBOLD,
40346
40348
  extraStyles: "display: block; white-space: nowrap;",
40347
- id: "".concat(t, "-tab-text")
40349
+ id: "".concat(t === null || t === void 0 ? void 0 : (_t$toLowerCase = t.toLowerCase()) === null || _t$toLowerCase === void 0 ? void 0 : _t$toLowerCase.replace(/\s/g, "-"), "-tab-text")
40348
40350
  }, t));
40349
40351
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
40350
40352
  };
@@ -45538,19 +45540,27 @@ var Module = function Module(_ref) {
45538
45540
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
45539
45541
  fontSize = _ref.fontSize,
45540
45542
  as = _ref.as,
45543
+ _ref$titleID = _ref.titleID,
45544
+ titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
45545
+ rightTitleContent = _ref.rightTitleContent,
45541
45546
  children = _ref.children;
45542
45547
  var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
45543
45548
  var computedFontSize = fontSize || themedFontSize;
45544
45549
  var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
45545
45550
  var computedElemType = as || themedElemType;
45546
- return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Title$1, {
45551
+ var headingText = /*#__PURE__*/React__default.createElement(Title$1, {
45547
45552
  weight: themeValues.fontWeight,
45548
45553
  color: themeValues.fontColor,
45549
45554
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
45550
45555
  textAlign: themeValues.textAlign,
45551
45556
  as: computedElemType,
45552
- extraStyles: "font-size: ".concat(computedFontSize, ";")
45553
- }, heading), /*#__PURE__*/React__default.createElement(Box, {
45557
+ extraStyles: "font-size: ".concat(computedFontSize, ";"),
45558
+ id: titleID
45559
+ }, heading);
45560
+ return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React__default.createElement(Cluster, {
45561
+ justify: "center",
45562
+ align: "space-between"
45563
+ }, headingText, rightTitleContent), /*#__PURE__*/React__default.createElement(Box, {
45554
45564
  padding: "0 0 ".concat(spacingBottom)
45555
45565
  }, /*#__PURE__*/React__default.createElement(Box, {
45556
45566
  padding: padding,