@thecb/components 10.6.5-beta.0 → 10.6.5-beta.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 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
@@ -50109,7 +50113,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
50109
50113
  }, section.content))));
50110
50114
  };
50111
50115
 
50112
- var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
50116
+ var _excluded$E = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
50113
50117
 
50114
50118
  /**
50115
50119
  - The RadioSection component takes either a flat array (via the 'sections'
@@ -50157,6 +50161,7 @@ var RadioSection = function RadioSection(_ref) {
50157
50161
  _ref$isSectionRequire = _ref.isSectionRequired,
50158
50162
  isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
50159
50163
  groupedSections = _ref.groupedSections,
50164
+ borderOverride = _ref.borderOverride,
50160
50165
  rest = _objectWithoutProperties(_ref, _excluded$E);
50161
50166
  var _useState = React.useState(null),
50162
50167
  _useState2 = _slicedToArray(_useState, 2),
@@ -50189,7 +50194,7 @@ var RadioSection = function RadioSection(_ref) {
50189
50194
  };
50190
50195
  return /*#__PURE__*/React__default.createElement(Box, _extends({
50191
50196
  padding: "1px",
50192
- border: "1px solid ".concat(themeValues.borderColor),
50197
+ border: borderOverride || "1px solid ".concat(themeValues.borderColor),
50193
50198
  borderRadius: "4px",
50194
50199
  extraStyles: containerStyles,
50195
50200
  role: "radiogroup",