@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.esm.js
CHANGED
|
@@ -40322,6 +40322,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40322
40322
|
useOrderedList: useOrderedList,
|
|
40323
40323
|
useUnorderedList: useUnorderedList
|
|
40324
40324
|
}, repeat( /*#__PURE__*/React.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
|
|
40325
|
+
var _t$toLowerCase;
|
|
40326
|
+
|
|
40325
40327
|
return /*#__PURE__*/React.createElement(Box, {
|
|
40326
40328
|
key: t,
|
|
40327
40329
|
borderSize: "3px",
|
|
@@ -40335,7 +40337,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40335
40337
|
textAlign: "center",
|
|
40336
40338
|
color: themeValues.textColor,
|
|
40337
40339
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
40338
|
-
extraStyles: "display: block; white-space: nowrap;"
|
|
40340
|
+
extraStyles: "display: block; white-space: nowrap;",
|
|
40341
|
+
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")
|
|
40339
40342
|
}, t));
|
|
40340
40343
|
}), repeat( /*#__PURE__*/React.createElement(Box, null), boxesAfter))));
|
|
40341
40344
|
};
|
|
@@ -45529,19 +45532,27 @@ var Module = function Module(_ref) {
|
|
|
45529
45532
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
45530
45533
|
fontSize = _ref.fontSize,
|
|
45531
45534
|
as = _ref.as,
|
|
45535
|
+
_ref$titleID = _ref.titleID,
|
|
45536
|
+
titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
|
|
45537
|
+
rightTitleContent = _ref.rightTitleContent,
|
|
45532
45538
|
children = _ref.children;
|
|
45533
45539
|
var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
|
|
45534
45540
|
var computedFontSize = fontSize || themedFontSize;
|
|
45535
45541
|
var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
|
|
45536
45542
|
var computedElemType = as || themedElemType;
|
|
45537
|
-
|
|
45543
|
+
var headingText = /*#__PURE__*/React.createElement(Title$1, {
|
|
45538
45544
|
weight: themeValues.fontWeight,
|
|
45539
45545
|
color: themeValues.fontColor,
|
|
45540
45546
|
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
45541
45547
|
textAlign: themeValues.textAlign,
|
|
45542
45548
|
as: computedElemType,
|
|
45543
|
-
extraStyles: "font-size: ".concat(computedFontSize, ";")
|
|
45544
|
-
|
|
45549
|
+
extraStyles: "font-size: ".concat(computedFontSize, ";"),
|
|
45550
|
+
id: titleID
|
|
45551
|
+
}, heading);
|
|
45552
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React.createElement(Cluster, {
|
|
45553
|
+
justify: "center",
|
|
45554
|
+
align: "space-between"
|
|
45555
|
+
}, headingText, rightTitleContent), /*#__PURE__*/React.createElement(Box, {
|
|
45545
45556
|
padding: "0 0 ".concat(spacingBottom)
|
|
45546
45557
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
45547
45558
|
padding: padding,
|