@thecb/components 8.4.11-beta.24 → 8.4.11-beta.26
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 +37 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +37 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +2 -0
- package/src/components/molecules/address-form/AddressForm.js +4 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +10 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -0
package/dist/index.cjs.js
CHANGED
|
@@ -37953,7 +37953,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
37953
37953
|
errorMessages: errorMessages,
|
|
37954
37954
|
showErrors: showErrors,
|
|
37955
37955
|
"aria-invalid": !!(errorMessages !== null && errorMessages !== void 0 && errorMessages.length),
|
|
37956
|
-
autocompleteValue: autocomplete
|
|
37956
|
+
autocompleteValue: autocomplete,
|
|
37957
|
+
"data-qa": labelTextWhenNoError,
|
|
37958
|
+
dataQa: labelTextWhenNoError
|
|
37957
37959
|
});
|
|
37958
37960
|
};
|
|
37959
37961
|
|
|
@@ -40400,7 +40402,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40400
40402
|
},
|
|
40401
40403
|
autocomplete: "address-line1",
|
|
40402
40404
|
"aria-label": "Address Line 1",
|
|
40403
|
-
"data-qa": "Address Line 1"
|
|
40405
|
+
"data-qa": "Address Line 1",
|
|
40406
|
+
dataQa: "Address Line 1"
|
|
40404
40407
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40405
40408
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40406
40409
|
field: fields.street2,
|
|
@@ -40438,7 +40441,7 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40438
40441
|
"aria-label": isUS ? "State" : "State or Province",
|
|
40439
40442
|
required: true,
|
|
40440
40443
|
autocomplete: "administrative-area",
|
|
40441
|
-
|
|
40444
|
+
dataQa: "State or Province"
|
|
40442
40445
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40443
40446
|
isNum: isUS,
|
|
40444
40447
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40453,13 +40456,15 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40453
40456
|
"aria-label": "Zip code",
|
|
40454
40457
|
autocomplete: "postal-code",
|
|
40455
40458
|
required: true,
|
|
40456
|
-
"data-qa": "Zip code"
|
|
40459
|
+
"data-qa": "Zip code",
|
|
40460
|
+
dataQa: "Zip code"
|
|
40457
40461
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40458
40462
|
name: "address checkbox",
|
|
40459
40463
|
title: "Save address to wallet",
|
|
40460
40464
|
checked: walletCheckboxMarked,
|
|
40461
40465
|
onChange: saveToWallet,
|
|
40462
|
-
"data-qa": "Save address to wallet"
|
|
40466
|
+
"data-qa": "Save address to wallet",
|
|
40467
|
+
dataQa: "Save address to wallet"
|
|
40463
40468
|
})));
|
|
40464
40469
|
};
|
|
40465
40470
|
|
|
@@ -48901,7 +48906,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48901
48906
|
onKeyDown: function onKeyDown(e) {
|
|
48902
48907
|
return e.key === "Enter" && handleSubmit(e);
|
|
48903
48908
|
},
|
|
48904
|
-
autocomplete: "name"
|
|
48909
|
+
autocomplete: "name",
|
|
48910
|
+
dataQa: "Name on checking account"
|
|
48905
48911
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48906
48912
|
labelTextWhenNoError: "Routing number",
|
|
48907
48913
|
"data-qa": "Routing number",
|
|
@@ -48922,7 +48928,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48922
48928
|
},
|
|
48923
48929
|
onKeyDown: function onKeyDown(e) {
|
|
48924
48930
|
return e.key === "Enter" && handleSubmit(e);
|
|
48925
|
-
}
|
|
48931
|
+
},
|
|
48932
|
+
dataQa: "Routing number"
|
|
48926
48933
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48927
48934
|
labelTextWhenNoError: "Confirm routing number",
|
|
48928
48935
|
"data-qa": "Confirm routing number",
|
|
@@ -48933,10 +48940,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48933
48940
|
onKeyDown: function onKeyDown(e) {
|
|
48934
48941
|
return e.key === "Enter" && handleSubmit(e);
|
|
48935
48942
|
},
|
|
48936
|
-
isNum: true
|
|
48943
|
+
isNum: true,
|
|
48944
|
+
dataQa: "Confirm routing number"
|
|
48937
48945
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48938
48946
|
labelTextWhenNoError: "Account number",
|
|
48939
48947
|
"data-qa": "Account number",
|
|
48948
|
+
dataQa: "Account number",
|
|
48940
48949
|
errorMessages: accountNumberErrors,
|
|
48941
48950
|
field: fields.accountNumber,
|
|
48942
48951
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48965,10 +48974,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48965
48974
|
onKeyDown: function onKeyDown(e) {
|
|
48966
48975
|
return e.key === "Enter" && handleSubmit(e);
|
|
48967
48976
|
},
|
|
48968
|
-
isNum: true
|
|
48977
|
+
isNum: true,
|
|
48978
|
+
dataQa: "Confirm account number"
|
|
48969
48979
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48970
48980
|
labelTextWhenNoError: "Account type",
|
|
48971
48981
|
"data-qa": "Account type",
|
|
48982
|
+
dataQa: "Account type",
|
|
48972
48983
|
options: [{
|
|
48973
48984
|
text: "Select account type",
|
|
48974
48985
|
value: ""
|
|
@@ -48989,7 +49000,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48989
49000
|
name: "default-payment-ach",
|
|
48990
49001
|
onChange: toggleCheckbox,
|
|
48991
49002
|
checked: defaultMethod.value,
|
|
48992
|
-
hidden: hideDefaultPayment
|
|
49003
|
+
hidden: hideDefaultPayment,
|
|
49004
|
+
dataQa: "default-payment-ach"
|
|
48993
49005
|
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48994
49006
|
childGap: "4px",
|
|
48995
49007
|
align: "center"
|
|
@@ -49005,7 +49017,9 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
49005
49017
|
version: "v2",
|
|
49006
49018
|
showCheckbox: false,
|
|
49007
49019
|
description: "View",
|
|
49008
|
-
terms: termsContent
|
|
49020
|
+
terms: termsContent,
|
|
49021
|
+
dataQa: "Terms and Conditions",
|
|
49022
|
+
"data-qa": "Terms and Conditions"
|
|
49009
49023
|
})))));
|
|
49010
49024
|
};
|
|
49011
49025
|
|
|
@@ -49109,7 +49123,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49109
49123
|
}
|
|
49110
49124
|
},
|
|
49111
49125
|
showErrors: showErrors,
|
|
49112
|
-
"data-qa": "Country"
|
|
49126
|
+
"data-qa": "Country",
|
|
49127
|
+
dataQa: "Country"
|
|
49113
49128
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49114
49129
|
labelTextWhenNoError: "Name on card",
|
|
49115
49130
|
"data-qa": "Name on card",
|
|
@@ -49120,7 +49135,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49120
49135
|
onKeyDown: function onKeyDown(e) {
|
|
49121
49136
|
return e.key === "Enter" && handleSubmit(e);
|
|
49122
49137
|
},
|
|
49123
|
-
autocomplete: "cc-name"
|
|
49138
|
+
autocomplete: "cc-name",
|
|
49139
|
+
dataQa: "Name on card"
|
|
49124
49140
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49125
49141
|
labelTextWhenNoError: "Credit card number",
|
|
49126
49142
|
"data-qa": "Credit card number",
|
|
@@ -49133,7 +49149,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49133
49149
|
return e.key === "Enter" && handleSubmit(e);
|
|
49134
49150
|
},
|
|
49135
49151
|
isNum: true,
|
|
49136
|
-
autocomplete: "cc-number"
|
|
49152
|
+
autocomplete: "cc-number",
|
|
49153
|
+
dataQa: "Credit card number"
|
|
49137
49154
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
49138
49155
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
49139
49156
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -49151,7 +49168,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49151
49168
|
isNum: true,
|
|
49152
49169
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
49153
49170
|
,
|
|
49154
|
-
autocomplete: "cc-exp"
|
|
49171
|
+
autocomplete: "cc-exp",
|
|
49172
|
+
dataQa: "Expiration date"
|
|
49155
49173
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49156
49174
|
labelTextWhenNoError: "CVV",
|
|
49157
49175
|
"data-qa": "CVV",
|
|
@@ -49164,7 +49182,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49164
49182
|
onKeyDown: function onKeyDown(e) {
|
|
49165
49183
|
return e.key === "Enter" && handleSubmit(e);
|
|
49166
49184
|
},
|
|
49167
|
-
autocomplete: "cc-csc"
|
|
49185
|
+
autocomplete: "cc-csc",
|
|
49186
|
+
dataQa: "CVV"
|
|
49168
49187
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
49169
49188
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
49170
49189
|
width: isMobile ? "100%" : "50%"
|
|
@@ -49180,7 +49199,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49180
49199
|
onKeyDown: function onKeyDown(e) {
|
|
49181
49200
|
return e.key === "Enter" && handleSubmit(e);
|
|
49182
49201
|
},
|
|
49183
|
-
autoComplete: "billing postal-code"
|
|
49202
|
+
autoComplete: "billing postal-code",
|
|
49203
|
+
dataQa: "Zip code"
|
|
49184
49204
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
49185
49205
|
childGap: "4px",
|
|
49186
49206
|
align: "center"
|