@thecb/components 9.1.2-beta.2 → 9.1.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 +6 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/line-item/LineItem.js +1 -1
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +0 -10
- package/src/util/general.js +0 -4
- /package/src/components/atoms/icons/{ExternalLinkIcon.js → ExternalLinkicon.js} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -6356,9 +6356,6 @@ var titleCaseString = function titleCaseString(string) {
|
|
|
6356
6356
|
return index === 0 || index === string.length - 1 || word.length > 3 ? titleCaseWord(word.toLowerCase()) : word;
|
|
6357
6357
|
}).join(" ");
|
|
6358
6358
|
};
|
|
6359
|
-
var kebabCaseString = function kebabCaseString(string) {
|
|
6360
|
-
return string === null || string === void 0 ? void 0 : string.replaceAll(" ", "-").toLowerCase();
|
|
6361
|
-
};
|
|
6362
6359
|
|
|
6363
6360
|
var general = /*#__PURE__*/Object.freeze({
|
|
6364
6361
|
__proto__: null,
|
|
@@ -6378,8 +6375,7 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6378
6375
|
MOBILE_WIDTH: MOBILE_WIDTH,
|
|
6379
6376
|
throttle: throttle,
|
|
6380
6377
|
titleCaseWord: titleCaseWord,
|
|
6381
|
-
titleCaseString: titleCaseString
|
|
6382
|
-
kebabCaseString: kebabCaseString
|
|
6378
|
+
titleCaseString: titleCaseString
|
|
6383
6379
|
});
|
|
6384
6380
|
|
|
6385
6381
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
|
|
@@ -26631,7 +26627,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
26631
26627
|
};
|
|
26632
26628
|
|
|
26633
26629
|
var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
|
|
26634
|
-
return visibleFields.includes(attr.key) && attr.key !== "description";
|
|
26630
|
+
return (visibleFields === null || visibleFields === void 0 ? void 0 : visibleFields.includes(attr.key)) && attr.key !== "description";
|
|
26635
26631
|
})) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
|
|
26636
26632
|
return /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
26637
26633
|
variant: "pS",
|
|
@@ -47062,8 +47058,6 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47062
47058
|
forwardButtonLoading = _ref.forwardButtonLoading,
|
|
47063
47059
|
_ref$forwardButtonVar = _ref.forwardButtonVariant,
|
|
47064
47060
|
forwardButtonVariant = _ref$forwardButtonVar === void 0 ? "primary" : _ref$forwardButtonVar,
|
|
47065
|
-
_ref$forwardButtonAri = _ref.forwardButtonAriaRole,
|
|
47066
|
-
forwardButtonAriaRole = _ref$forwardButtonAri === void 0 ? "button" : _ref$forwardButtonAri,
|
|
47067
47061
|
_ref$backButtonVarian = _ref.backButtonVariant,
|
|
47068
47062
|
backButtonVariant = _ref$backButtonVarian === void 0 ? "secondary" : _ref$backButtonVarian,
|
|
47069
47063
|
backButtonAction = _ref.backButtonAction,
|
|
@@ -47087,17 +47081,13 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47087
47081
|
url: cancelURL,
|
|
47088
47082
|
variant: backButtonVariant,
|
|
47089
47083
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47090
|
-
dataQa: cancelText
|
|
47091
|
-
"aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
|
|
47092
|
-
role: "link"
|
|
47084
|
+
dataQa: cancelText
|
|
47093
47085
|
}) : backButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47094
47086
|
text: "Back",
|
|
47095
47087
|
variant: backButtonVariant,
|
|
47096
47088
|
action: backButtonAction,
|
|
47097
47089
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47098
|
-
dataQa: "Back"
|
|
47099
|
-
"aria-labelledby": "back-button",
|
|
47100
|
-
role: "link"
|
|
47090
|
+
dataQa: "Back"
|
|
47101
47091
|
});
|
|
47102
47092
|
var forwardButton = !!redirectURL ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
47103
47093
|
url: redirectURL,
|
|
@@ -47105,9 +47095,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47105
47095
|
variant: forwardButtonVariant,
|
|
47106
47096
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47107
47097
|
dataQa: redirectText,
|
|
47108
|
-
disabled: isForwardButtonDisabled
|
|
47109
|
-
"aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
|
|
47110
|
-
role: forwardButtonAriaRole
|
|
47098
|
+
disabled: isForwardButtonDisabled
|
|
47111
47099
|
}) : forwardButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
47112
47100
|
text: forwardButtonText,
|
|
47113
47101
|
variant: forwardButtonVariant,
|
|
@@ -47115,9 +47103,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47115
47103
|
isLoading: forwardButtonLoading,
|
|
47116
47104
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47117
47105
|
dataQa: forwardButtonText,
|
|
47118
|
-
disabled: isForwardButtonDisabled
|
|
47119
|
-
"aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
|
|
47120
|
-
role: forwardButtonAriaRole
|
|
47106
|
+
disabled: isForwardButtonDisabled
|
|
47121
47107
|
});
|
|
47122
47108
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
|
|
47123
47109
|
padding: "1.25rem 0"
|