@thecb/components 10.7.2-beta.0 → 10.7.2
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 +20 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/wallet-name/WalletName.js +6 -4
- package/src/components/atoms/wallet-name/WalletName.stories.js +26 -1
- package/src/components/atoms/wallet-name/index.d.ts +2 -0
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +6 -4
- package/src/components/molecules/radio-section/RadioSection.js +2 -1
- package/src/components/molecules/toast-notification/ToastNotification.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -39726,7 +39726,11 @@ var WalletName = function WalletName(_ref) {
|
|
|
39726
39726
|
_ref$linkButtonExtraS = _ref.linkButtonExtraStyles,
|
|
39727
39727
|
linkButtonExtraStyles = _ref$linkButtonExtraS === void 0 ? "" : _ref$linkButtonExtraS,
|
|
39728
39728
|
_ref$isLoading = _ref.isLoading,
|
|
39729
|
-
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading
|
|
39729
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
39730
|
+
_ref$dataQa = _ref.dataQa,
|
|
39731
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
39732
|
+
_ref$actionTextPositi = _ref.actionTextPositionMobile,
|
|
39733
|
+
actionTextPositionMobile = _ref$actionTextPositi === void 0 ? "outside" : _ref$actionTextPositi;
|
|
39730
39734
|
var _useContext = useContext(ThemeContext),
|
|
39731
39735
|
isMobile = _useContext.isMobile;
|
|
39732
39736
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Module$1, {
|
|
@@ -39749,17 +39753,18 @@ var WalletName = function WalletName(_ref) {
|
|
|
39749
39753
|
radius: "10",
|
|
39750
39754
|
cx: "12",
|
|
39751
39755
|
cy: "12"
|
|
39752
|
-
})) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), !isMobile && /*#__PURE__*/React.createElement(Box, {
|
|
39756
|
+
})) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), (actionTextPositionMobile === "inside" || !isMobile) && /*#__PURE__*/React.createElement(Box, {
|
|
39753
39757
|
padding: "0"
|
|
39754
39758
|
}, text && /*#__PURE__*/React.createElement(Text$1, {
|
|
39755
39759
|
variant: "pXS"
|
|
39756
39760
|
}, text), (text || actionText) && /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
39757
39761
|
disabled: disableAction,
|
|
39758
39762
|
text: actionText,
|
|
39763
|
+
dataQa: dataQa,
|
|
39759
39764
|
action: action,
|
|
39760
39765
|
variant: "smallGhost",
|
|
39761
39766
|
extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(linkButtonExtraStyles, "\n ")
|
|
39762
|
-
})))), isMobile && /*#__PURE__*/React.createElement(Cluster, {
|
|
39767
|
+
})))), !!isMobile && actionTextPositionMobile === "outside" && /*#__PURE__*/React.createElement(Cluster, {
|
|
39763
39768
|
align: "center",
|
|
39764
39769
|
justify: text || actionText ? "flex-end" : "flex-start",
|
|
39765
39770
|
extraStyles: "margin-top: 0.5rem;"
|
|
@@ -47495,7 +47500,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47495
47500
|
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
47496
47501
|
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
47497
47502
|
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
47498
|
-
additionalButton = _ref.additionalButton
|
|
47503
|
+
additionalButton = _ref.additionalButton,
|
|
47504
|
+
_ref$nextButtonTestId = _ref.nextButtonTestId,
|
|
47505
|
+
nextButtonTestId = _ref$nextButtonTestId === void 0 ? null : _ref$nextButtonTestId,
|
|
47506
|
+
_ref$backButtonTestId = _ref.backButtonTestId,
|
|
47507
|
+
backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
|
|
47499
47508
|
var _useContext = useContext(ThemeContext),
|
|
47500
47509
|
isMobile = _useContext.isMobile;
|
|
47501
47510
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
@@ -47503,7 +47512,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47503
47512
|
url: cancelURL,
|
|
47504
47513
|
variant: backButtonVariant,
|
|
47505
47514
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47506
|
-
dataQa: cancelText,
|
|
47515
|
+
dataQa: backButtonTestId || cancelText,
|
|
47507
47516
|
"aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
|
|
47508
47517
|
role: "link"
|
|
47509
47518
|
}) : backButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
@@ -47520,7 +47529,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47520
47529
|
text: redirectText,
|
|
47521
47530
|
variant: forwardButtonVariant,
|
|
47522
47531
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47523
|
-
dataQa: redirectText,
|
|
47532
|
+
dataQa: nextButtonTestId || redirectText,
|
|
47524
47533
|
disabled: isForwardButtonDisabled,
|
|
47525
47534
|
"aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
|
|
47526
47535
|
role: forwardButtonAriaRole
|
|
@@ -47530,7 +47539,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47530
47539
|
action: forwardButtonAction,
|
|
47531
47540
|
isLoading: forwardButtonLoading,
|
|
47532
47541
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47533
|
-
dataQa: forwardButtonText,
|
|
47542
|
+
dataQa: nextButtonTestId || forwardButtonText,
|
|
47534
47543
|
disabled: isForwardButtonDisabled,
|
|
47535
47544
|
"aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
|
|
47536
47545
|
role: forwardButtonAriaRole
|
|
@@ -49054,7 +49063,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49054
49063
|
}, section.content))));
|
|
49055
49064
|
};
|
|
49056
49065
|
|
|
49057
|
-
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49066
|
+
var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49058
49067
|
|
|
49059
49068
|
/**
|
|
49060
49069
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49102,6 +49111,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49102
49111
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
49103
49112
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49104
49113
|
groupedSections = _ref.groupedSections,
|
|
49114
|
+
borderOverride = _ref.borderOverride,
|
|
49105
49115
|
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
49106
49116
|
var _useState = useState(null),
|
|
49107
49117
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -49134,7 +49144,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49134
49144
|
};
|
|
49135
49145
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
49136
49146
|
padding: "1px",
|
|
49137
|
-
border: "1px solid ".concat(themeValues.borderColor),
|
|
49147
|
+
border: borderOverride || "1px solid ".concat(themeValues.borderColor),
|
|
49138
49148
|
borderRadius: "4px",
|
|
49139
49149
|
extraStyles: containerStyles,
|
|
49140
49150
|
role: "radiogroup",
|
|
@@ -49672,7 +49682,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49672
49682
|
childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
|
|
49673
49683
|
backgroundColor = _ref.backgroundColor,
|
|
49674
49684
|
_ref$role = _ref.role,
|
|
49675
|
-
role = _ref$role === void 0 ? "
|
|
49685
|
+
role = _ref$role === void 0 ? "status" : _ref$role,
|
|
49676
49686
|
_ref$ariaLive = _ref.ariaLive,
|
|
49677
49687
|
ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
|
|
49678
49688
|
screenReaderMessage = _ref.screenReaderMessage,
|