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