@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.6.5-beta.0",
3
+ "version": "10.6.5-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -25,7 +25,9 @@ const PaymentButtonBar = ({
25
25
  hideBackButton = false,
26
26
  buttonGroupStyles,
27
27
  hideAdditionalButton = false,
28
- additionalButton
28
+ additionalButton,
29
+ nextButtonTestId = null,
30
+ backButtonTestId = null
29
31
  }) => {
30
32
  const { isMobile } = useContext(ThemeContext);
31
33
 
@@ -36,7 +38,7 @@ const PaymentButtonBar = ({
36
38
  url={cancelURL}
37
39
  variant={backButtonVariant}
38
40
  extraStyles={isMobile && "flex-grow: 1"}
39
- dataQa={cancelText}
41
+ dataQa={backButtonTestId || cancelText}
40
42
  aria-labelledby={`${kebabCaseString(cancelText)}-button`}
41
43
  role="link"
42
44
  />
@@ -60,7 +62,7 @@ const PaymentButtonBar = ({
60
62
  text={redirectText}
61
63
  variant={forwardButtonVariant}
62
64
  extraStyles={isMobile && "flex-grow: 1"}
63
- dataQa={redirectText}
65
+ dataQa={nextButtonTestId || redirectText}
64
66
  disabled={isForwardButtonDisabled}
65
67
  aria-labelledby={`${kebabCaseString(redirectText)}-button`}
66
68
  role={forwardButtonAriaRole}
@@ -73,7 +75,7 @@ const PaymentButtonBar = ({
73
75
  action={forwardButtonAction}
74
76
  isLoading={forwardButtonLoading}
75
77
  extraStyles={isMobile && "flex-grow: 1"}
76
- dataQa={forwardButtonText}
78
+ dataQa={nextButtonTestId || forwardButtonText}
77
79
  disabled={isForwardButtonDisabled}
78
80
  aria-labelledby={`${kebabCaseString(forwardButtonText)}-button`}
79
81
  role={forwardButtonAriaRole}
@@ -58,6 +58,7 @@ const RadioSection = ({
58
58
  ariaDescribedBy,
59
59
  isSectionRequired = false,
60
60
  groupedSections,
61
+ borderOverride,
61
62
  ...rest
62
63
  }) => {
63
64
  const [focused, setFocused] = useState(null);
@@ -98,7 +99,7 @@ const RadioSection = ({
98
99
  return (
99
100
  <Box
100
101
  padding="1px"
101
- border={`1px solid ${themeValues.borderColor}`}
102
+ border={borderOverride || `1px solid ${themeValues.borderColor}`}
102
103
  borderRadius="4px"
103
104
  extraStyles={containerStyles}
104
105
  role="radiogroup"