@thecb/components 8.4.11-beta.20 → 8.4.11-beta.22
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 +33 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +33 -23
- 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/address-form/AddressForm.js +7 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +8 -8
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +7 -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
|
|
|
@@ -40380,7 +40382,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40380
40382
|
actions.fields.zip.set("");
|
|
40381
40383
|
}
|
|
40382
40384
|
},
|
|
40383
|
-
showErrors: showErrors
|
|
40385
|
+
showErrors: showErrors,
|
|
40386
|
+
"data-qa": "Country"
|
|
40384
40387
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40385
40388
|
labelTextWhenNoError: "Address",
|
|
40386
40389
|
errorMessages: street1ErrorMessages,
|
|
@@ -40392,7 +40395,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40392
40395
|
return e.key === "Enter" && handleSubmit(e);
|
|
40393
40396
|
},
|
|
40394
40397
|
autocomplete: "address-line1",
|
|
40395
|
-
"aria-label": "Address Line 1"
|
|
40398
|
+
"aria-label": "Address Line 1",
|
|
40399
|
+
"data-qa": "Address Line 1"
|
|
40396
40400
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40397
40401
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40398
40402
|
field: fields.street2,
|
|
@@ -40402,7 +40406,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40402
40406
|
return e.key === "Enter" && handleSubmit(e);
|
|
40403
40407
|
},
|
|
40404
40408
|
autocomplete: "address-line2",
|
|
40405
|
-
"aria-label": "Address Line 2"
|
|
40409
|
+
"aria-label": "Address Line 2",
|
|
40410
|
+
"data-qa": "Address Line 2"
|
|
40406
40411
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40407
40412
|
labelTextWhenNoError: "City",
|
|
40408
40413
|
required: true,
|
|
@@ -40414,7 +40419,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40414
40419
|
return e.key === "Enter" && handleSubmit(e);
|
|
40415
40420
|
},
|
|
40416
40421
|
autocomplete: "city",
|
|
40417
|
-
"aria-label": "City"
|
|
40422
|
+
"aria-label": "City",
|
|
40423
|
+
"data-qa": "City"
|
|
40418
40424
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40419
40425
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40420
40426
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40427,7 +40433,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40427
40433
|
},
|
|
40428
40434
|
"aria-label": isUS ? "State" : "State or Province",
|
|
40429
40435
|
required: true,
|
|
40430
|
-
autocomplete: "administrative-area"
|
|
40436
|
+
autocomplete: "administrative-area",
|
|
40437
|
+
"data-qa": "State or Province"
|
|
40431
40438
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40432
40439
|
isNum: isUS,
|
|
40433
40440
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40441,12 +40448,14 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40441
40448
|
},
|
|
40442
40449
|
"aria-label": "Zip code",
|
|
40443
40450
|
autocomplete: "postal-code",
|
|
40444
|
-
required: true
|
|
40451
|
+
required: true,
|
|
40452
|
+
"data-qa": "Zip code"
|
|
40445
40453
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40446
40454
|
name: "address checkbox",
|
|
40447
40455
|
title: "Save address to wallet",
|
|
40448
40456
|
checked: walletCheckboxMarked,
|
|
40449
|
-
onChange: saveToWallet
|
|
40457
|
+
onChange: saveToWallet,
|
|
40458
|
+
"data-qa": "Save address to wallet"
|
|
40450
40459
|
})));
|
|
40451
40460
|
};
|
|
40452
40461
|
|
|
@@ -48879,7 +48888,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48879
48888
|
"aria-label": "ACH Payment"
|
|
48880
48889
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48881
48890
|
labelTextWhenNoError: "Name on checking account",
|
|
48882
|
-
|
|
48891
|
+
"data-qa": "Name on checking account",
|
|
48883
48892
|
errorMessages: nameErrors,
|
|
48884
48893
|
field: fields.name,
|
|
48885
48894
|
fieldActions: actions.fields.name,
|
|
@@ -48890,7 +48899,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48890
48899
|
autocomplete: "name"
|
|
48891
48900
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48892
48901
|
labelTextWhenNoError: "Routing number",
|
|
48893
|
-
|
|
48902
|
+
"data-qa": "Routing number",
|
|
48894
48903
|
errorMessages: routingNumberErrors,
|
|
48895
48904
|
field: fields.routingNumber,
|
|
48896
48905
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48911,7 +48920,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48911
48920
|
}
|
|
48912
48921
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48913
48922
|
labelTextWhenNoError: "Confirm routing number",
|
|
48914
|
-
|
|
48923
|
+
"data-qa": "Confirm routing number",
|
|
48915
48924
|
errorMessages: confirmRoutingNumberErrors,
|
|
48916
48925
|
field: fields.confirmRoutingNumber,
|
|
48917
48926
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48922,7 +48931,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48922
48931
|
isNum: true
|
|
48923
48932
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48924
48933
|
labelTextWhenNoError: "Account number",
|
|
48925
|
-
|
|
48934
|
+
"data-qa": "Account number",
|
|
48926
48935
|
errorMessages: accountNumberErrors,
|
|
48927
48936
|
field: fields.accountNumber,
|
|
48928
48937
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48943,7 +48952,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48943
48952
|
}
|
|
48944
48953
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48945
48954
|
labelTextWhenNoError: "Confirm account number",
|
|
48946
|
-
|
|
48955
|
+
"data-qa": "Confirm account number",
|
|
48947
48956
|
errorMessages: confirmAccountNumberErrors,
|
|
48948
48957
|
field: fields.confirmAccountNumber,
|
|
48949
48958
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48954,7 +48963,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48954
48963
|
isNum: true
|
|
48955
48964
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48956
48965
|
labelTextWhenNoError: "Account type",
|
|
48957
|
-
|
|
48966
|
+
"data-qa": "Account type",
|
|
48958
48967
|
options: [{
|
|
48959
48968
|
text: "Select account type",
|
|
48960
48969
|
value: ""
|
|
@@ -48971,7 +48980,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48971
48980
|
field: fields.accountType
|
|
48972
48981
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48973
48982
|
title: "Save as Default Payment Method",
|
|
48974
|
-
|
|
48983
|
+
"data-qa": "default-payment-ach",
|
|
48975
48984
|
name: "default-payment-ach",
|
|
48976
48985
|
onChange: toggleCheckbox,
|
|
48977
48986
|
checked: defaultMethod.value,
|
|
@@ -48981,7 +48990,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48981
48990
|
align: "center"
|
|
48982
48991
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48983
48992
|
name: "bank checkbox",
|
|
48984
|
-
|
|
48993
|
+
"data-qa": "Save checking account to wallet",
|
|
48985
48994
|
title: "Save checking account to wallet.",
|
|
48986
48995
|
checked: walletCheckboxMarked,
|
|
48987
48996
|
onChange: saveToWallet
|
|
@@ -49094,10 +49103,11 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49094
49103
|
actions.fields.zipCode.set("");
|
|
49095
49104
|
}
|
|
49096
49105
|
},
|
|
49097
|
-
showErrors: showErrors
|
|
49106
|
+
showErrors: showErrors,
|
|
49107
|
+
"data-qa": "Country"
|
|
49098
49108
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49099
49109
|
labelTextWhenNoError: "Name on card",
|
|
49100
|
-
|
|
49110
|
+
"data-qa": "Name on card",
|
|
49101
49111
|
errorMessages: nameOnCardErrors,
|
|
49102
49112
|
field: fields.nameOnCard,
|
|
49103
49113
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49108,7 +49118,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49108
49118
|
autocomplete: "cc-name"
|
|
49109
49119
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49110
49120
|
labelTextWhenNoError: "Credit card number",
|
|
49111
|
-
|
|
49121
|
+
"data-qa": "Credit card number",
|
|
49112
49122
|
errorMessages: creditCardNumberErrors,
|
|
49113
49123
|
field: fields.creditCardNumber,
|
|
49114
49124
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49124,7 +49134,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49124
49134
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49125
49135
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49126
49136
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49127
|
-
|
|
49137
|
+
"data-qa": "Expiration date",
|
|
49128
49138
|
errorMessages: expirationDateErrors,
|
|
49129
49139
|
field: fields.expirationDate,
|
|
49130
49140
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49139,7 +49149,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49139
49149
|
autocomplete: "cc-exp"
|
|
49140
49150
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49141
49151
|
labelTextWhenNoError: "CVV",
|
|
49142
|
-
|
|
49152
|
+
"data-qa": "CVV",
|
|
49143
49153
|
errorMessages: cvvErrors,
|
|
49144
49154
|
field: fields.cvv,
|
|
49145
49155
|
fieldActions: actions.fields.cvv,
|
|
@@ -49157,7 +49167,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49157
49167
|
isNum: isUS,
|
|
49158
49168
|
formatter: isUS ? zipFormat : null,
|
|
49159
49169
|
labelTextWhenNoError: "Zip code",
|
|
49160
|
-
|
|
49170
|
+
"data-qa": "Zip code",
|
|
49161
49171
|
errorMessages: zipCodeErrors,
|
|
49162
49172
|
field: fields.zipCode,
|
|
49163
49173
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49171,7 +49181,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49171
49181
|
align: "center"
|
|
49172
49182
|
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
49173
49183
|
name: "credit card checkbox",
|
|
49174
|
-
|
|
49184
|
+
"data-qa": "Save credit card to wallet",
|
|
49175
49185
|
title: "Save credit card to wallet.",
|
|
49176
49186
|
checked: walletCheckboxMarked,
|
|
49177
49187
|
onChange: saveToWallet
|