@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.esm.js CHANGED
@@ -48542,7 +48542,11 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48542
48542
  buttonGroupStyles = _ref.buttonGroupStyles,
48543
48543
  _ref$hideAdditionalBu = _ref.hideAdditionalButton,
48544
48544
  hideAdditionalButton = _ref$hideAdditionalBu === void 0 ? false : _ref$hideAdditionalBu,
48545
- additionalButton = _ref.additionalButton;
48545
+ additionalButton = _ref.additionalButton,
48546
+ _ref$nextButtonTestId = _ref.nextButtonTestId,
48547
+ nextButtonTestId = _ref$nextButtonTestId === void 0 ? null : _ref$nextButtonTestId,
48548
+ _ref$backButtonTestId = _ref.backButtonTestId,
48549
+ backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
48546
48550
  var _useContext = useContext(ThemeContext),
48547
48551
  isMobile = _useContext.isMobile;
48548
48552
  var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React.createElement(ButtonWithLink, {
@@ -48550,7 +48554,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48550
48554
  url: cancelURL,
48551
48555
  variant: backButtonVariant,
48552
48556
  extraStyles: isMobile && "flex-grow: 1",
48553
- dataQa: cancelText,
48557
+ dataQa: backButtonTestId || cancelText,
48554
48558
  "aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
48555
48559
  role: "link"
48556
48560
  }) : backButtonAction && /*#__PURE__*/React.createElement(ButtonWithAction, {
@@ -48567,7 +48571,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48567
48571
  text: redirectText,
48568
48572
  variant: forwardButtonVariant,
48569
48573
  extraStyles: isMobile && "flex-grow: 1",
48570
- dataQa: redirectText,
48574
+ dataQa: nextButtonTestId || redirectText,
48571
48575
  disabled: isForwardButtonDisabled,
48572
48576
  "aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
48573
48577
  role: forwardButtonAriaRole
@@ -48577,7 +48581,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
48577
48581
  action: forwardButtonAction,
48578
48582
  isLoading: forwardButtonLoading,
48579
48583
  extraStyles: isMobile && "flex-grow: 1",
48580
- dataQa: forwardButtonText,
48584
+ dataQa: nextButtonTestId || forwardButtonText,
48581
48585
  disabled: isForwardButtonDisabled,
48582
48586
  "aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
48583
48587
  role: forwardButtonAriaRole