@thecb/components 8.4.11-beta.21 → 8.4.11-beta.23

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": "8.4.11-beta.21",
3
+ "version": "8.4.11-beta.23",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -332,6 +332,7 @@ const Dropdown = ({
332
332
  value={inputValue}
333
333
  width="100%"
334
334
  dataQa={placeholder}
335
+ data-qa={placeholder}
335
336
  required={options.required}
336
337
  />
337
338
  <IconWrapper open={isOpen} onClick={onClick}>
@@ -217,6 +217,7 @@ const FormInput = ({
217
217
  formatter={formatter}
218
218
  showErrors={showErrors}
219
219
  dataQa={labelTextWhenNoError}
220
+ data-qa={labelTextWhenNoError}
220
221
  themeValues={themeValues}
221
222
  $customHeight={customHeight}
222
223
  $extraStyles={extraStyles}
@@ -242,6 +243,7 @@ const FormInput = ({
242
243
  field={field}
243
244
  showErrors={showErrors}
244
245
  dataQa={labelTextWhenNoError}
246
+ data-qa={labelTextWhenNoError}
245
247
  themeValues={themeValues}
246
248
  background={background}
247
249
  $customHeight={customHeight}
@@ -256,6 +258,7 @@ const FormInput = ({
256
258
  justify="space-between"
257
259
  aria-live="polite"
258
260
  aria-atomic={true}
261
+ data-qa={"Errors container"}
259
262
  >
260
263
  {(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
261
264
  <Text
@@ -64,6 +64,7 @@ const AddressForm = ({
64
64
  }
65
65
  }}
66
66
  showErrors={showErrors}
67
+ data-qa={"Country"}
67
68
  />
68
69
  <FormInput
69
70
  labelTextWhenNoError="Address"
@@ -75,6 +76,7 @@ const AddressForm = ({
75
76
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
76
77
  autocomplete="address-line1"
77
78
  aria-label="Address Line 1"
79
+ data-qa={"Address Line 1"}
78
80
  />
79
81
  <FormInput
80
82
  labelTextWhenNoError="Apt, Suite, Unit, Floor, etc. (Optional)"
@@ -84,6 +86,7 @@ const AddressForm = ({
84
86
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
85
87
  autocomplete="address-line2"
86
88
  aria-label="Address Line 2"
89
+ data-qa={"Address Line 2"}
87
90
  />
88
91
  <FormInput
89
92
  labelTextWhenNoError="City"
@@ -95,6 +98,7 @@ const AddressForm = ({
95
98
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
96
99
  autocomplete="city"
97
100
  aria-label="City"
101
+ data-qa="City"
98
102
  />
99
103
  <StateProvinceDropdown
100
104
  labelTextWhenNoError={isUS ? "State" : "State or Province"}
@@ -107,6 +111,7 @@ const AddressForm = ({
107
111
  aria-label={isUS ? "State" : "State or Province"}
108
112
  required={true}
109
113
  autocomplete="administrative-area"
114
+ data-qa={"State or Province"}
110
115
  />
111
116
  <FormInput
112
117
  isNum={isUS}
@@ -120,6 +125,7 @@ const AddressForm = ({
120
125
  aria-label="Zip code"
121
126
  autocomplete="postal-code"
122
127
  required={true}
128
+ data-qa={"Zip code"}
123
129
  />
124
130
  {showWalletCheckbox && (
125
131
  <Checkbox
@@ -127,6 +133,7 @@ const AddressForm = ({
127
133
  title="Save address to wallet"
128
134
  checked={walletCheckboxMarked}
129
135
  onChange={saveToWallet}
136
+ data-qa={"Save address to wallet"}
130
137
  />
131
138
  )}
132
139
  </FormInputColumn>
@@ -47,6 +47,7 @@ const EmailForm = ({
47
47
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
48
48
  isEmail
49
49
  autoComplete="email"
50
+ data-qa="Email address"
50
51
  />
51
52
  {showWalletCheckbox && (
52
53
  <Checkbox
@@ -109,6 +109,7 @@ const PaymentFormCard = ({
109
109
  }
110
110
  }}
111
111
  showErrors={showErrors}
112
+ data-qa={"Country"}
112
113
  />
113
114
  )}
114
115
  <FormInput
@@ -42,6 +42,7 @@ const PhoneForm = ({
42
42
  onKeyUp={e => e.key === "Enter" && handleSubmit(e)}
43
43
  autocomplete="tel"
44
44
  isPhone={true}
45
+ data-qa={"Phone number"}
45
46
  />
46
47
  {showWalletCheckbox && (
47
48
  <Checkbox