@thecb/components 4.0.6 → 4.0.7-beta.0
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 +21 -12
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +38375 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormLayouts.theme.js +2 -2
- package/src/components/atoms/heading/Heading.js +3 -1
- package/src/components/atoms/labeled-amount/LabeledAmount.js +3 -1
- package/src/components/molecules/module/Module.js +1 -2
- package/src/components/molecules/module/Module.theme.js +1 -1
- package/src/components/molecules/payment-details/PaymentDetails.js +3 -2
- package/src/components/molecules/radio-section/RadioSection.js +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -14339,12 +14339,15 @@ var Heading = function Heading(_ref) {
|
|
|
14339
14339
|
className = _ref.className,
|
|
14340
14340
|
_ref$variant = _ref.variant,
|
|
14341
14341
|
variant = _ref$variant === void 0 ? "h1" : _ref$variant,
|
|
14342
|
+
_ref$as = _ref.as,
|
|
14343
|
+
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
14342
14344
|
dataQa = _ref.dataQa,
|
|
14343
14345
|
children = _ref.children,
|
|
14344
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
|
|
14346
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
14345
14347
|
|
|
14346
14348
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
14347
|
-
|
|
14349
|
+
variant: variant,
|
|
14350
|
+
as: as,
|
|
14348
14351
|
weight: weight,
|
|
14349
14352
|
color: color,
|
|
14350
14353
|
margin: margin,
|
|
@@ -18384,8 +18387,8 @@ var color$5 = {
|
|
|
18384
18387
|
disabled: "".concat(DUSTY_GREY)
|
|
18385
18388
|
};
|
|
18386
18389
|
var labelColor = {
|
|
18387
|
-
"default": "".concat(
|
|
18388
|
-
disabled: "".concat(
|
|
18390
|
+
"default": "".concat(FIREFLY_GREY),
|
|
18391
|
+
disabled: "".concat(FIREFLY_GREY)
|
|
18389
18392
|
};
|
|
18390
18393
|
var borderColor = {
|
|
18391
18394
|
"default": "".concat(GREY_CHATEAU),
|
|
@@ -18989,16 +18992,19 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
18989
18992
|
variant = _ref$variant === void 0 ? "pL" : _ref$variant,
|
|
18990
18993
|
label = _ref.label,
|
|
18991
18994
|
amount = _ref.amount,
|
|
18992
|
-
themeValues = _ref.themeValues
|
|
18995
|
+
themeValues = _ref.themeValues,
|
|
18996
|
+
as = _ref.as;
|
|
18993
18997
|
var LabeledAmountText = variant === "h6" ? Heading$1 : Paragraph$1;
|
|
18994
18998
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
18995
18999
|
direction: "row"
|
|
18996
19000
|
}, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
18997
19001
|
variant: variant,
|
|
19002
|
+
as: as,
|
|
18998
19003
|
weight: themeValues.fontWeight,
|
|
18999
19004
|
extraStyles: "text-align: start; flex: 3;"
|
|
19000
19005
|
}, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
19001
19006
|
variant: variant,
|
|
19007
|
+
as: as,
|
|
19002
19008
|
weight: themeValues.fontWeight,
|
|
19003
19009
|
extraStyles: "text-align: end; flex: 1;"
|
|
19004
19010
|
}, amount));
|
|
@@ -34368,7 +34374,7 @@ var textAlign = {
|
|
|
34368
34374
|
};
|
|
34369
34375
|
var titleType = {
|
|
34370
34376
|
"default": "h5",
|
|
34371
|
-
largeTitle: "
|
|
34377
|
+
largeTitle: "h1"
|
|
34372
34378
|
};
|
|
34373
34379
|
var titleSpacing = {
|
|
34374
34380
|
"default": "0.5rem",
|
|
@@ -34412,12 +34418,11 @@ var Module = function Module(_ref) {
|
|
|
34412
34418
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
34413
34419
|
children = _ref.children;
|
|
34414
34420
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
34415
|
-
variant: variant === "default" ? "h5" : "
|
|
34421
|
+
variant: variant === "default" ? "h5" : "h2",
|
|
34416
34422
|
weight: themeValues.fontWeight,
|
|
34417
34423
|
color: themeValues.fontColor,
|
|
34418
34424
|
margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
|
|
34419
|
-
textAlign: themeValues.textAlign
|
|
34420
|
-
"aria-level": variant === "default" ? "3" : "1"
|
|
34425
|
+
textAlign: themeValues.textAlign
|
|
34421
34426
|
}, heading), /*#__PURE__*/React__default.createElement(Box, {
|
|
34422
34427
|
padding: "0 0 ".concat(spacingBottom)
|
|
34423
34428
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -36687,6 +36692,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
36687
36692
|
label: "Subtotal",
|
|
36688
36693
|
amount: displayCurrency(subtotal)
|
|
36689
36694
|
}), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
36695
|
+
as: "h2",
|
|
36690
36696
|
variant: themeValues.labeledAmountTotal,
|
|
36691
36697
|
label: "Total",
|
|
36692
36698
|
amount: displayCurrency(total)
|
|
@@ -36808,9 +36814,11 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
36808
36814
|
justify: "space-between",
|
|
36809
36815
|
align: "center"
|
|
36810
36816
|
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
36811
|
-
variant: "
|
|
36812
|
-
weight: "700"
|
|
36817
|
+
variant: "h5",
|
|
36818
|
+
weight: "700",
|
|
36819
|
+
as: "h1"
|
|
36813
36820
|
}, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
36821
|
+
as: "h1",
|
|
36814
36822
|
variant: "h3",
|
|
36815
36823
|
weight: "700",
|
|
36816
36824
|
margin: "1rem 0 0 0"
|
|
@@ -37472,7 +37480,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37472
37480
|
src: icon.img,
|
|
37473
37481
|
key: icon.img,
|
|
37474
37482
|
fade: !icon.enabled,
|
|
37475
|
-
isMobile: isMobile
|
|
37483
|
+
isMobile: isMobile,
|
|
37484
|
+
alt: icon.altText
|
|
37476
37485
|
});
|
|
37477
37486
|
})))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
37478
37487
|
initial: false
|