@thecb/components 7.7.8-beta.0 → 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",
|
|
@@ -40343,7 +40345,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40343
40345
|
textAlign: "center",
|
|
40344
40346
|
color: themeValues.textColor,
|
|
40345
40347
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
40346
|
-
extraStyles: "display: block; white-space: nowrap;"
|
|
40348
|
+
extraStyles: "display: block; white-space: nowrap;",
|
|
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")
|
|
40347
40350
|
}, t));
|
|
40348
40351
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
40349
40352
|
};
|
|
@@ -45537,19 +45540,27 @@ var Module = function Module(_ref) {
|
|
|
45537
45540
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
45538
45541
|
fontSize = _ref.fontSize,
|
|
45539
45542
|
as = _ref.as,
|
|
45543
|
+
_ref$titleID = _ref.titleID,
|
|
45544
|
+
titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
|
|
45545
|
+
rightTitleContent = _ref.rightTitleContent,
|
|
45540
45546
|
children = _ref.children;
|
|
45541
45547
|
var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
|
|
45542
45548
|
var computedFontSize = fontSize || themedFontSize;
|
|
45543
45549
|
var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
|
|
45544
45550
|
var computedElemType = as || themedElemType;
|
|
45545
|
-
|
|
45551
|
+
var headingText = /*#__PURE__*/React__default.createElement(Title$1, {
|
|
45546
45552
|
weight: themeValues.fontWeight,
|
|
45547
45553
|
color: themeValues.fontColor,
|
|
45548
45554
|
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
45549
45555
|
textAlign: themeValues.textAlign,
|
|
45550
45556
|
as: computedElemType,
|
|
45551
|
-
extraStyles: "font-size: ".concat(computedFontSize, ";")
|
|
45552
|
-
|
|
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, {
|
|
45553
45564
|
padding: "0 0 ".concat(spacingBottom)
|
|
45554
45565
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45555
45566
|
padding: padding,
|