@thecb/components 4.0.2 → 4.0.3-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 +38353 -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/.tool-versions +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14347,12 +14347,15 @@ var Heading = function Heading(_ref) {
|
|
|
14347
14347
|
className = _ref.className,
|
|
14348
14348
|
_ref$variant = _ref.variant,
|
|
14349
14349
|
variant = _ref$variant === void 0 ? "h1" : _ref$variant,
|
|
14350
|
+
_ref$as = _ref.as,
|
|
14351
|
+
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
14350
14352
|
dataQa = _ref.dataQa,
|
|
14351
14353
|
children = _ref.children,
|
|
14352
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
|
|
14354
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
14353
14355
|
|
|
14354
14356
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
14355
|
-
|
|
14357
|
+
variant: variant,
|
|
14358
|
+
as: as,
|
|
14356
14359
|
weight: weight,
|
|
14357
14360
|
color: color,
|
|
14358
14361
|
margin: margin,
|
|
@@ -18392,8 +18395,8 @@ var color$5 = {
|
|
|
18392
18395
|
disabled: "".concat(DUSTY_GREY)
|
|
18393
18396
|
};
|
|
18394
18397
|
var labelColor = {
|
|
18395
|
-
"default": "".concat(
|
|
18396
|
-
disabled: "".concat(
|
|
18398
|
+
"default": "".concat(FIREFLY_GREY),
|
|
18399
|
+
disabled: "".concat(FIREFLY_GREY)
|
|
18397
18400
|
};
|
|
18398
18401
|
var borderColor = {
|
|
18399
18402
|
"default": "".concat(GREY_CHATEAU),
|
|
@@ -18990,16 +18993,19 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
18990
18993
|
variant = _ref$variant === void 0 ? "pL" : _ref$variant,
|
|
18991
18994
|
label = _ref.label,
|
|
18992
18995
|
amount = _ref.amount,
|
|
18993
|
-
themeValues = _ref.themeValues
|
|
18996
|
+
themeValues = _ref.themeValues,
|
|
18997
|
+
as = _ref.as;
|
|
18994
18998
|
var LabeledAmountText = variant === "h6" ? Heading$1 : Paragraph$1;
|
|
18995
18999
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
18996
19000
|
direction: "row"
|
|
18997
19001
|
}, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
18998
19002
|
variant: variant,
|
|
19003
|
+
as: as,
|
|
18999
19004
|
weight: themeValues.fontWeight,
|
|
19000
19005
|
extraStyles: "text-align: start; flex: 3;"
|
|
19001
19006
|
}, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
19002
19007
|
variant: variant,
|
|
19008
|
+
as: as,
|
|
19003
19009
|
weight: themeValues.fontWeight,
|
|
19004
19010
|
extraStyles: "text-align: end; flex: 1;"
|
|
19005
19011
|
}, 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, {
|
|
@@ -36665,6 +36670,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
36665
36670
|
label: "Subtotal",
|
|
36666
36671
|
amount: displayCurrency(subtotal)
|
|
36667
36672
|
}), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
36673
|
+
as: "h2",
|
|
36668
36674
|
variant: themeValues.labeledAmountTotal,
|
|
36669
36675
|
label: "Total",
|
|
36670
36676
|
amount: displayCurrency(total)
|
|
@@ -36786,9 +36792,11 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
36786
36792
|
justify: "space-between",
|
|
36787
36793
|
align: "center"
|
|
36788
36794
|
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
36789
|
-
variant: "
|
|
36790
|
-
weight: "700"
|
|
36795
|
+
variant: "h5",
|
|
36796
|
+
weight: "700",
|
|
36797
|
+
as: "h1"
|
|
36791
36798
|
}, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
36799
|
+
as: "h1",
|
|
36792
36800
|
variant: "h3",
|
|
36793
36801
|
weight: "700",
|
|
36794
36802
|
margin: "1rem 0 0 0"
|
|
@@ -37450,7 +37458,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37450
37458
|
src: icon.img,
|
|
37451
37459
|
key: icon.img,
|
|
37452
37460
|
fade: !icon.enabled,
|
|
37453
|
-
isMobile: isMobile
|
|
37461
|
+
isMobile: isMobile,
|
|
37462
|
+
alt: icon.altText
|
|
37454
37463
|
});
|
|
37455
37464
|
})))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
37456
37465
|
initial: false
|