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

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.20",
3
+ "version": "8.4.11-beta.21",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -65,6 +65,7 @@ const FormSelect = ({
65
65
  </Cluster>
66
66
  </Box>
67
67
  <Dropdown
68
+ data-qa={labelTextWhenNoError}
68
69
  ariaLabelledby={createIdFromString(labelTextWhenNoError)}
69
70
  aria-describedby={createIdFromString(
70
71
  labelTextWhenNoError,
@@ -107,6 +108,7 @@ const FormSelect = ({
107
108
  `}
108
109
  id={createIdFromString(labelTextWhenNoError, "error message")}
109
110
  aria-live="polite"
111
+ data-qa={labelTextWhenNoError}
110
112
  >
111
113
  {(field.hasErrors && field.dirty) || (field.hasErrors && showErrors)
112
114
  ? errorMessages[field.errors[0]]
@@ -69,7 +69,7 @@ const PaymentFormACH = ({
69
69
  <FormInputColumn>
70
70
  <FormInput
71
71
  labelTextWhenNoError="Name on checking account"
72
- dataQa="Name on checking account"
72
+ data-qa={"Name on checking account"}
73
73
  errorMessages={nameErrors}
74
74
  field={fields.name}
75
75
  fieldActions={actions.fields.name}
@@ -79,7 +79,7 @@ const PaymentFormACH = ({
79
79
  />
80
80
  <FormInput
81
81
  labelTextWhenNoError="Routing number"
82
- dataQa="Routing number"
82
+ data-qa={"Routing number"}
83
83
  errorMessages={routingNumberErrors}
84
84
  field={fields.routingNumber}
85
85
  fieldActions={actions.fields.routingNumber}
@@ -99,7 +99,7 @@ const PaymentFormACH = ({
99
99
  />
100
100
  <FormInput
101
101
  labelTextWhenNoError="Confirm routing number"
102
- dataQa="Confirm routing number"
102
+ data-qa={"Confirm routing number"}
103
103
  errorMessages={confirmRoutingNumberErrors}
104
104
  field={fields.confirmRoutingNumber}
105
105
  fieldActions={actions.fields.confirmRoutingNumber}
@@ -109,7 +109,7 @@ const PaymentFormACH = ({
109
109
  />
110
110
  <FormInput
111
111
  labelTextWhenNoError="Account number"
112
- dataQa="Account number"
112
+ data-qa={"Account number"}
113
113
  errorMessages={accountNumberErrors}
114
114
  field={fields.accountNumber}
115
115
  fieldActions={actions.fields.accountNumber}
@@ -130,7 +130,7 @@ const PaymentFormACH = ({
130
130
  />
131
131
  <FormInput
132
132
  labelTextWhenNoError="Confirm account number"
133
- dataQa="Confirm account number"
133
+ data-qa={"Confirm account number"}
134
134
  errorMessages={confirmAccountNumberErrors}
135
135
  field={fields.confirmAccountNumber}
136
136
  fieldActions={actions.fields.confirmAccountNumber}
@@ -141,7 +141,7 @@ const PaymentFormACH = ({
141
141
  {allowBankAccountType && (
142
142
  <FormSelect
143
143
  labelTextWhenNoError="Account type"
144
- dataQa="Account type"
144
+ data-qa={"Account type"}
145
145
  options={[
146
146
  { text: "Select account type", value: "" },
147
147
  { text: "Checking", value: "CHECKING" },
@@ -156,7 +156,7 @@ const PaymentFormACH = ({
156
156
  {!hideDefaultPayment && (
157
157
  <Checkbox
158
158
  title="Save as Default Payment Method"
159
- dataQa="default-payment-ach"
159
+ data-qa={"default-payment-ach"}
160
160
  name="default-payment-ach"
161
161
  onChange={toggleCheckbox}
162
162
  checked={defaultMethod.value}
@@ -168,7 +168,7 @@ const PaymentFormACH = ({
168
168
  {showWalletCheckbox && (
169
169
  <Checkbox
170
170
  name="bank checkbox"
171
- dataQa="Save checking account to wallet"
171
+ data-qa={"Save checking account to wallet"}
172
172
  title="Save checking account to wallet."
173
173
  checked={walletCheckboxMarked}
174
174
  onChange={saveToWallet}
@@ -113,7 +113,7 @@ const PaymentFormCard = ({
113
113
  )}
114
114
  <FormInput
115
115
  labelTextWhenNoError="Name on card"
116
- dataQa="Name on card"
116
+ data-qa={"Name on card"}
117
117
  errorMessages={nameOnCardErrors}
118
118
  field={fields.nameOnCard}
119
119
  fieldActions={actions.fields.nameOnCard}
@@ -123,7 +123,7 @@ const PaymentFormCard = ({
123
123
  />
124
124
  <FormInput
125
125
  labelTextWhenNoError="Credit card number"
126
- dataQa="Credit card number"
126
+ data-qa={"Credit card number"}
127
127
  errorMessages={creditCardNumberErrors}
128
128
  field={fields.creditCardNumber}
129
129
  fieldActions={actions.fields.creditCardNumber}
@@ -139,7 +139,7 @@ const PaymentFormCard = ({
139
139
  >
140
140
  <FormInput
141
141
  labelTextWhenNoError="Expiration date (MM/YY)"
142
- dataQa="Expiration date"
142
+ data-qa={"Expiration date"}
143
143
  errorMessages={expirationDateErrors}
144
144
  field={fields.expirationDate}
145
145
  fieldActions={actions.fields.expirationDate}
@@ -152,7 +152,7 @@ const PaymentFormCard = ({
152
152
  />
153
153
  <FormInput
154
154
  labelTextWhenNoError="CVV"
155
- dataQa="CVV"
155
+ data-qa={"CVV"}
156
156
  errorMessages={cvvErrors}
157
157
  field={fields.cvv}
158
158
  fieldActions={actions.fields.cvv}
@@ -176,7 +176,7 @@ const PaymentFormCard = ({
176
176
  isNum={isUS}
177
177
  formatter={isUS ? zipFormat : null}
178
178
  labelTextWhenNoError="Zip code"
179
- dataQa="Zip code"
179
+ data-qa={"Zip code"}
180
180
  errorMessages={zipCodeErrors}
181
181
  field={fields.zipCode}
182
182
  fieldActions={actions.fields.zipCode}
@@ -191,7 +191,7 @@ const PaymentFormCard = ({
191
191
  {showWalletCheckbox && (
192
192
  <Checkbox
193
193
  name="credit card checkbox"
194
- dataQa="Save credit card to wallet"
194
+ data-qa={"Save credit card to wallet"}
195
195
  title="Save credit card to wallet."
196
196
  checked={walletCheckboxMarked}
197
197
  onChange={saveToWallet}