@thecb/components 7.8.0 → 7.8.1
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
|
@@ -40332,13 +40332,15 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40332
40332
|
maxWidth: "76.5rem"
|
|
40333
40333
|
}, /*#__PURE__*/React__default.createElement(Reel, {
|
|
40334
40334
|
padding: "0",
|
|
40335
|
-
childGap: "
|
|
40335
|
+
childGap: "0",
|
|
40336
40336
|
childWidth: "11rem",
|
|
40337
40337
|
justifyContent: "space-evenly",
|
|
40338
40338
|
disableScroll: true,
|
|
40339
40339
|
useOrderedList: useOrderedList,
|
|
40340
40340
|
useUnorderedList: useUnorderedList
|
|
40341
40341
|
}, repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
|
|
40342
|
+
var _t$toLowerCase;
|
|
40343
|
+
|
|
40342
40344
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40343
40345
|
key: t,
|
|
40344
40346
|
borderSize: "3px",
|
|
@@ -40346,7 +40348,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40346
40348
|
borderWidthOverride: "0 0 3px 0",
|
|
40347
40349
|
extraStyles: "text-align: center; display: block;",
|
|
40348
40350
|
as: "li",
|
|
40349
|
-
"aria-current": highlightIndex == i ? "step" : ""
|
|
40351
|
+
"aria-current": highlightIndex == i ? "step" : "",
|
|
40352
|
+
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")
|
|
40350
40353
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40351
40354
|
variant: "p",
|
|
40352
40355
|
textAlign: "center",
|
|
@@ -40357,7 +40360,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
40357
40360
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
40358
40361
|
};
|
|
40359
40362
|
|
|
40360
|
-
var HighlightTabRow$1 =
|
|
40363
|
+
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$F);
|
|
40361
40364
|
|
|
40362
40365
|
var AccountBillIcon = function AccountBillIcon() {
|
|
40363
40366
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -45546,19 +45549,28 @@ var Module = function Module(_ref) {
|
|
|
45546
45549
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
45547
45550
|
fontSize = _ref.fontSize,
|
|
45548
45551
|
as = _ref.as,
|
|
45552
|
+
_ref$titleID = _ref.titleID,
|
|
45553
|
+
titleID = _ref$titleID === void 0 ? "" : _ref$titleID,
|
|
45554
|
+
rightTitleContent = _ref.rightTitleContent,
|
|
45549
45555
|
children = _ref.children;
|
|
45550
45556
|
var themedFontSize = variant === "small" ? "1.25rem" : variant === "default" ? "1.375rem" : "2rem";
|
|
45551
45557
|
var computedFontSize = fontSize || themedFontSize;
|
|
45552
45558
|
var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
|
|
45553
45559
|
var computedElemType = as || themedElemType;
|
|
45554
|
-
|
|
45560
|
+
var headingText = /*#__PURE__*/React__default.createElement(Title$1, {
|
|
45555
45561
|
weight: themeValues.fontWeight,
|
|
45556
45562
|
color: themeValues.fontColor,
|
|
45557
45563
|
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
45558
45564
|
textAlign: themeValues.textAlign,
|
|
45559
45565
|
as: computedElemType,
|
|
45560
|
-
extraStyles: "font-size: ".concat(computedFontSize, ";")
|
|
45561
|
-
|
|
45566
|
+
extraStyles: "font-size: ".concat(computedFontSize, ";"),
|
|
45567
|
+
id: titleID
|
|
45568
|
+
}, heading);
|
|
45569
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && !rightTitleContent && headingText, heading && rightTitleContent && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
45570
|
+
justify: "space-between",
|
|
45571
|
+
align: "center",
|
|
45572
|
+
nowrap: true
|
|
45573
|
+
}, headingText, rightTitleContent), /*#__PURE__*/React__default.createElement(Box, {
|
|
45562
45574
|
padding: "0 0 ".concat(spacingBottom)
|
|
45563
45575
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45564
45576
|
padding: padding,
|