@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/dist/index.cjs.js +17 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-select/FormSelect.js +2 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +8 -8
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -24211,6 +24211,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24211
24211
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24212
24212
|
id: createIdFromString(labelTextWhenNoError)
|
|
24213
24213
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
24214
|
+
"data-qa": labelTextWhenNoError,
|
|
24214
24215
|
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24215
24216
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24216
24217
|
maxHeight: dropdownMaxHeight,
|
|
@@ -24244,7 +24245,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24244
24245
|
weight: themeValues.fontWeight,
|
|
24245
24246
|
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24246
24247
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24247
|
-
"aria-live": "polite"
|
|
24248
|
+
"aria-live": "polite",
|
|
24249
|
+
"data-qa": labelTextWhenNoError
|
|
24248
24250
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24249
24251
|
};
|
|
24250
24252
|
|
|
@@ -48879,7 +48881,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48879
48881
|
"aria-label": "ACH Payment"
|
|
48880
48882
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48881
48883
|
labelTextWhenNoError: "Name on checking account",
|
|
48882
|
-
|
|
48884
|
+
"data-qa": "Name on checking account",
|
|
48883
48885
|
errorMessages: nameErrors,
|
|
48884
48886
|
field: fields.name,
|
|
48885
48887
|
fieldActions: actions.fields.name,
|
|
@@ -48890,7 +48892,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48890
48892
|
autocomplete: "name"
|
|
48891
48893
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48892
48894
|
labelTextWhenNoError: "Routing number",
|
|
48893
|
-
|
|
48895
|
+
"data-qa": "Routing number",
|
|
48894
48896
|
errorMessages: routingNumberErrors,
|
|
48895
48897
|
field: fields.routingNumber,
|
|
48896
48898
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48911,7 +48913,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48911
48913
|
}
|
|
48912
48914
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48913
48915
|
labelTextWhenNoError: "Confirm routing number",
|
|
48914
|
-
|
|
48916
|
+
"data-qa": "Confirm routing number",
|
|
48915
48917
|
errorMessages: confirmRoutingNumberErrors,
|
|
48916
48918
|
field: fields.confirmRoutingNumber,
|
|
48917
48919
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48922,7 +48924,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48922
48924
|
isNum: true
|
|
48923
48925
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48924
48926
|
labelTextWhenNoError: "Account number",
|
|
48925
|
-
|
|
48927
|
+
"data-qa": "Account number",
|
|
48926
48928
|
errorMessages: accountNumberErrors,
|
|
48927
48929
|
field: fields.accountNumber,
|
|
48928
48930
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48943,7 +48945,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48943
48945
|
}
|
|
48944
48946
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48945
48947
|
labelTextWhenNoError: "Confirm account number",
|
|
48946
|
-
|
|
48948
|
+
"data-qa": "Confirm account number",
|
|
48947
48949
|
errorMessages: confirmAccountNumberErrors,
|
|
48948
48950
|
field: fields.confirmAccountNumber,
|
|
48949
48951
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48954,7 +48956,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48954
48956
|
isNum: true
|
|
48955
48957
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48956
48958
|
labelTextWhenNoError: "Account type",
|
|
48957
|
-
|
|
48959
|
+
"data-qa": "Account type",
|
|
48958
48960
|
options: [{
|
|
48959
48961
|
text: "Select account type",
|
|
48960
48962
|
value: ""
|
|
@@ -48971,7 +48973,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48971
48973
|
field: fields.accountType
|
|
48972
48974
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48973
48975
|
title: "Save as Default Payment Method",
|
|
48974
|
-
|
|
48976
|
+
"data-qa": "default-payment-ach",
|
|
48975
48977
|
name: "default-payment-ach",
|
|
48976
48978
|
onChange: toggleCheckbox,
|
|
48977
48979
|
checked: defaultMethod.value,
|
|
@@ -48981,7 +48983,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48981
48983
|
align: "center"
|
|
48982
48984
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48983
48985
|
name: "bank checkbox",
|
|
48984
|
-
|
|
48986
|
+
"data-qa": "Save checking account to wallet",
|
|
48985
48987
|
title: "Save checking account to wallet.",
|
|
48986
48988
|
checked: walletCheckboxMarked,
|
|
48987
48989
|
onChange: saveToWallet
|
|
@@ -49097,7 +49099,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49097
49099
|
showErrors: showErrors
|
|
49098
49100
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49099
49101
|
labelTextWhenNoError: "Name on card",
|
|
49100
|
-
|
|
49102
|
+
"data-qa": "Name on card",
|
|
49101
49103
|
errorMessages: nameOnCardErrors,
|
|
49102
49104
|
field: fields.nameOnCard,
|
|
49103
49105
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49108,7 +49110,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49108
49110
|
autocomplete: "cc-name"
|
|
49109
49111
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49110
49112
|
labelTextWhenNoError: "Credit card number",
|
|
49111
|
-
|
|
49113
|
+
"data-qa": "Credit card number",
|
|
49112
49114
|
errorMessages: creditCardNumberErrors,
|
|
49113
49115
|
field: fields.creditCardNumber,
|
|
49114
49116
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49124,7 +49126,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49124
49126
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49125
49127
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49126
49128
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49127
|
-
|
|
49129
|
+
"data-qa": "Expiration date",
|
|
49128
49130
|
errorMessages: expirationDateErrors,
|
|
49129
49131
|
field: fields.expirationDate,
|
|
49130
49132
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49139,7 +49141,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49139
49141
|
autocomplete: "cc-exp"
|
|
49140
49142
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49141
49143
|
labelTextWhenNoError: "CVV",
|
|
49142
|
-
|
|
49144
|
+
"data-qa": "CVV",
|
|
49143
49145
|
errorMessages: cvvErrors,
|
|
49144
49146
|
field: fields.cvv,
|
|
49145
49147
|
fieldActions: actions.fields.cvv,
|
|
@@ -49157,7 +49159,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49157
49159
|
isNum: isUS,
|
|
49158
49160
|
formatter: isUS ? zipFormat : null,
|
|
49159
49161
|
labelTextWhenNoError: "Zip code",
|
|
49160
|
-
|
|
49162
|
+
"data-qa": "Zip code",
|
|
49161
49163
|
errorMessages: zipCodeErrors,
|
|
49162
49164
|
field: fields.zipCode,
|
|
49163
49165
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49171,7 +49173,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49171
49173
|
align: "center"
|
|
49172
49174
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49173
49175
|
name: "credit card checkbox",
|
|
49174
|
-
|
|
49176
|
+
"data-qa": "Save credit card to wallet",
|
|
49175
49177
|
title: "Save credit card to wallet.",
|
|
49176
49178
|
checked: walletCheckboxMarked,
|
|
49177
49179
|
onChange: saveToWallet
|