@thecb/components 8.4.11-beta.23 → 8.4.11-beta.25
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 +35 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +35 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/address-form/AddressForm.js +4 -0
- 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.esm.js
CHANGED
|
@@ -40392,7 +40392,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40392
40392
|
},
|
|
40393
40393
|
autocomplete: "address-line1",
|
|
40394
40394
|
"aria-label": "Address Line 1",
|
|
40395
|
-
"data-qa": "Address Line 1"
|
|
40395
|
+
"data-qa": "Address Line 1",
|
|
40396
|
+
dataQa: "Address Line 1"
|
|
40396
40397
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40397
40398
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40398
40399
|
field: fields.street2,
|
|
@@ -40430,7 +40431,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40430
40431
|
"aria-label": isUS ? "State" : "State or Province",
|
|
40431
40432
|
required: true,
|
|
40432
40433
|
autocomplete: "administrative-area",
|
|
40433
|
-
"data-qa": "State or Province"
|
|
40434
|
+
"data-qa": "State or Province",
|
|
40435
|
+
dataQa: "State or Province"
|
|
40434
40436
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
40435
40437
|
isNum: isUS,
|
|
40436
40438
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40445,13 +40447,15 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40445
40447
|
"aria-label": "Zip code",
|
|
40446
40448
|
autocomplete: "postal-code",
|
|
40447
40449
|
required: true,
|
|
40448
|
-
"data-qa": "Zip code"
|
|
40450
|
+
"data-qa": "Zip code",
|
|
40451
|
+
dataQa: "Zip code"
|
|
40449
40452
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
40450
40453
|
name: "address checkbox",
|
|
40451
40454
|
title: "Save address to wallet",
|
|
40452
40455
|
checked: walletCheckboxMarked,
|
|
40453
40456
|
onChange: saveToWallet,
|
|
40454
|
-
"data-qa": "Save address to wallet"
|
|
40457
|
+
"data-qa": "Save address to wallet",
|
|
40458
|
+
dataQa: "Save address to wallet"
|
|
40455
40459
|
})));
|
|
40456
40460
|
};
|
|
40457
40461
|
|
|
@@ -48893,7 +48897,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48893
48897
|
onKeyDown: function onKeyDown(e) {
|
|
48894
48898
|
return e.key === "Enter" && handleSubmit(e);
|
|
48895
48899
|
},
|
|
48896
|
-
autocomplete: "name"
|
|
48900
|
+
autocomplete: "name",
|
|
48901
|
+
dataQa: "Name on checking account"
|
|
48897
48902
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48898
48903
|
labelTextWhenNoError: "Routing number",
|
|
48899
48904
|
"data-qa": "Routing number",
|
|
@@ -48914,7 +48919,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48914
48919
|
},
|
|
48915
48920
|
onKeyDown: function onKeyDown(e) {
|
|
48916
48921
|
return e.key === "Enter" && handleSubmit(e);
|
|
48917
|
-
}
|
|
48922
|
+
},
|
|
48923
|
+
dataQa: "Routing number"
|
|
48918
48924
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48919
48925
|
labelTextWhenNoError: "Confirm routing number",
|
|
48920
48926
|
"data-qa": "Confirm routing number",
|
|
@@ -48925,10 +48931,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48925
48931
|
onKeyDown: function onKeyDown(e) {
|
|
48926
48932
|
return e.key === "Enter" && handleSubmit(e);
|
|
48927
48933
|
},
|
|
48928
|
-
isNum: true
|
|
48934
|
+
isNum: true,
|
|
48935
|
+
dataQa: "Confirm routing number"
|
|
48929
48936
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48930
48937
|
labelTextWhenNoError: "Account number",
|
|
48931
48938
|
"data-qa": "Account number",
|
|
48939
|
+
dataQa: "Account number",
|
|
48932
48940
|
errorMessages: accountNumberErrors,
|
|
48933
48941
|
field: fields.accountNumber,
|
|
48934
48942
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48957,10 +48965,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48957
48965
|
onKeyDown: function onKeyDown(e) {
|
|
48958
48966
|
return e.key === "Enter" && handleSubmit(e);
|
|
48959
48967
|
},
|
|
48960
|
-
isNum: true
|
|
48968
|
+
isNum: true,
|
|
48969
|
+
dataQa: "Confirm account number"
|
|
48961
48970
|
}), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
48962
48971
|
labelTextWhenNoError: "Account type",
|
|
48963
48972
|
"data-qa": "Account type",
|
|
48973
|
+
dataQa: "Account type",
|
|
48964
48974
|
options: [{
|
|
48965
48975
|
text: "Select account type",
|
|
48966
48976
|
value: ""
|
|
@@ -48981,7 +48991,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48981
48991
|
name: "default-payment-ach",
|
|
48982
48992
|
onChange: toggleCheckbox,
|
|
48983
48993
|
checked: defaultMethod.value,
|
|
48984
|
-
hidden: hideDefaultPayment
|
|
48994
|
+
hidden: hideDefaultPayment,
|
|
48995
|
+
dataQa: "default-payment-ach"
|
|
48985
48996
|
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
48986
48997
|
childGap: "4px",
|
|
48987
48998
|
align: "center"
|
|
@@ -48997,7 +49008,9 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48997
49008
|
version: "v2",
|
|
48998
49009
|
showCheckbox: false,
|
|
48999
49010
|
description: "View",
|
|
49000
|
-
terms: termsContent
|
|
49011
|
+
terms: termsContent,
|
|
49012
|
+
dataQa: "Terms and Conditions",
|
|
49013
|
+
"data-qa": "Terms and Conditions"
|
|
49001
49014
|
})))));
|
|
49002
49015
|
};
|
|
49003
49016
|
|
|
@@ -49101,7 +49114,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49101
49114
|
}
|
|
49102
49115
|
},
|
|
49103
49116
|
showErrors: showErrors,
|
|
49104
|
-
"data-qa": "Country"
|
|
49117
|
+
"data-qa": "Country",
|
|
49118
|
+
dataQa: "Country"
|
|
49105
49119
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49106
49120
|
labelTextWhenNoError: "Name on card",
|
|
49107
49121
|
"data-qa": "Name on card",
|
|
@@ -49112,7 +49126,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49112
49126
|
onKeyDown: function onKeyDown(e) {
|
|
49113
49127
|
return e.key === "Enter" && handleSubmit(e);
|
|
49114
49128
|
},
|
|
49115
|
-
autocomplete: "cc-name"
|
|
49129
|
+
autocomplete: "cc-name",
|
|
49130
|
+
dataQa: "Name on card"
|
|
49116
49131
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49117
49132
|
labelTextWhenNoError: "Credit card number",
|
|
49118
49133
|
"data-qa": "Credit card number",
|
|
@@ -49125,7 +49140,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49125
49140
|
return e.key === "Enter" && handleSubmit(e);
|
|
49126
49141
|
},
|
|
49127
49142
|
isNum: true,
|
|
49128
|
-
autocomplete: "cc-number"
|
|
49143
|
+
autocomplete: "cc-number",
|
|
49144
|
+
dataQa: "Credit card number"
|
|
49129
49145
|
}), /*#__PURE__*/React.createElement(FormInputRow, {
|
|
49130
49146
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
49131
49147
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -49143,7 +49159,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49143
49159
|
isNum: true,
|
|
49144
49160
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
49145
49161
|
,
|
|
49146
|
-
autocomplete: "cc-exp"
|
|
49162
|
+
autocomplete: "cc-exp",
|
|
49163
|
+
dataQa: "Expiration date"
|
|
49147
49164
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49148
49165
|
labelTextWhenNoError: "CVV",
|
|
49149
49166
|
"data-qa": "CVV",
|
|
@@ -49156,7 +49173,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49156
49173
|
onKeyDown: function onKeyDown(e) {
|
|
49157
49174
|
return e.key === "Enter" && handleSubmit(e);
|
|
49158
49175
|
},
|
|
49159
|
-
autocomplete: "cc-csc"
|
|
49176
|
+
autocomplete: "cc-csc",
|
|
49177
|
+
dataQa: "CVV"
|
|
49160
49178
|
})), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
|
|
49161
49179
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
49162
49180
|
width: isMobile ? "100%" : "50%"
|
|
@@ -49172,7 +49190,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49172
49190
|
onKeyDown: function onKeyDown(e) {
|
|
49173
49191
|
return e.key === "Enter" && handleSubmit(e);
|
|
49174
49192
|
},
|
|
49175
|
-
autoComplete: "billing postal-code"
|
|
49193
|
+
autoComplete: "billing postal-code",
|
|
49194
|
+
dataQa: "Zip code"
|
|
49176
49195
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
49177
49196
|
childGap: "4px",
|
|
49178
49197
|
align: "center"
|