@thecb/components 10.6.5-beta.0 → 10.6.5-beta.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.cjs.js
CHANGED
|
@@ -48550,7 +48550,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
48550
48550
|
buttonGroupStyles = _ref.buttonGroupStyles,
|
|
48551
48551
|
_ref$hideAdditionalBu = _ref.hideAdditionalButton,
|
|
48552
48552
|
hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
|
|
48553
|
-
additionalButton = _ref.additionalButton
|
|
48553
|
+
additionalButton = _ref.additionalButton,
|
|
48554
|
+
_ref$nextButtonTestId = _ref.nextButtonTestId,
|
|
48555
|
+
nextButtonTestId = _ref$nextButtonTestId === void 0 ? null : _ref$nextButtonTestId,
|
|
48556
|
+
_ref$backButtonTestId = _ref.backButtonTestId,
|
|
48557
|
+
backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
|
|
48554
48558
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
48555
48559
|
isMobile = _useContext.isMobile;
|
|
48556
48560
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -48558,7 +48562,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
48558
48562
|
url: cancelURL,
|
|
48559
48563
|
variant: backButtonVariant,
|
|
48560
48564
|
extraStyles: isMobile && "flex-grow: 1",
|
|
48561
|
-
dataQa: cancelText,
|
|
48565
|
+
dataQa: backButtonTestId || cancelText,
|
|
48562
48566
|
"aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
|
|
48563
48567
|
role: "link"
|
|
48564
48568
|
}) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -48575,7 +48579,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
48575
48579
|
text: redirectText,
|
|
48576
48580
|
variant: forwardButtonVariant,
|
|
48577
48581
|
extraStyles: isMobile && "flex-grow: 1",
|
|
48578
|
-
dataQa: redirectText,
|
|
48582
|
+
dataQa: nextButtonTestId || redirectText,
|
|
48579
48583
|
disabled: isForwardButtonDisabled,
|
|
48580
48584
|
"aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
|
|
48581
48585
|
role: forwardButtonAriaRole
|
|
@@ -48585,7 +48589,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
48585
48589
|
action: forwardButtonAction,
|
|
48586
48590
|
isLoading: forwardButtonLoading,
|
|
48587
48591
|
extraStyles: isMobile && "flex-grow: 1",
|
|
48588
|
-
dataQa: forwardButtonText,
|
|
48592
|
+
dataQa: nextButtonTestId || forwardButtonText,
|
|
48589
48593
|
disabled: isForwardButtonDisabled,
|
|
48590
48594
|
"aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
|
|
48591
48595
|
role: forwardButtonAriaRole
|