@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.esm.js
CHANGED
|
@@ -24203,6 +24203,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24203
24203
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
24204
24204
|
id: createIdFromString(labelTextWhenNoError)
|
|
24205
24205
|
}, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
24206
|
+
"data-qa": labelTextWhenNoError,
|
|
24206
24207
|
ariaLabelledby: createIdFromString(labelTextWhenNoError),
|
|
24207
24208
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
24208
24209
|
maxHeight: dropdownMaxHeight,
|
|
@@ -24236,7 +24237,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24236
24237
|
weight: themeValues.fontWeight,
|
|
24237
24238
|
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
24238
24239
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|
|
24239
|
-
"aria-live": "polite"
|
|
24240
|
+
"aria-live": "polite",
|
|
24241
|
+
"data-qa": labelTextWhenNoError
|
|
24240
24242
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
|
|
24241
24243
|
};
|
|
24242
24244
|
|
|
@@ -48871,7 +48873,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48871
48873
|
"aria-label": "ACH Payment"
|
|
48872
48874
|
}, /*#__PURE__*/React.createElement(FormInputColumn, null, /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48873
48875
|
labelTextWhenNoError: "Name on checking account",
|
|
48874
|
-
|
|
48876
|
+
"data-qa": "Name on checking account",
|
|
48875
48877
|
errorMessages: nameErrors,
|
|
48876
48878
|
field: fields.name,
|
|
48877
48879
|
fieldActions: actions.fields.name,
|
|
@@ -48882,7 +48884,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48882
48884
|
autocomplete: "name"
|
|
48883
48885
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48884
48886
|
labelTextWhenNoError: "Routing number",
|
|
48885
|
-
|
|
48887
|
+
"data-qa": "Routing number",
|
|
48886
48888
|
errorMessages: routingNumberErrors,
|
|
48887
48889
|
field: fields.routingNumber,
|
|
48888
48890
|
fieldActions: actions.fields.routingNumber,
|
|
@@ -48903,7 +48905,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48903
48905
|
}
|
|
48904
48906
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48905
48907
|
labelTextWhenNoError: "Confirm routing number",
|
|
48906
|
-
|
|
48908
|
+
"data-qa": "Confirm routing number",
|
|
48907
48909
|
errorMessages: confirmRoutingNumberErrors,
|
|
48908
48910
|
field: fields.confirmRoutingNumber,
|
|
48909
48911
|
fieldActions: actions.fields.confirmRoutingNumber,
|
|
@@ -48914,7 +48916,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48914
48916
|
isNum: true
|
|
48915
48917
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48916
48918
|
labelTextWhenNoError: "Account number",
|
|
48917
|
-
|
|
48919
|
+
"data-qa": "Account number",
|
|
48918
48920
|
errorMessages: accountNumberErrors,
|
|
48919
48921
|
field: fields.accountNumber,
|
|
48920
48922
|
fieldActions: actions.fields.accountNumber,
|
|
@@ -48935,7 +48937,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48935
48937
|
}
|
|
48936
48938
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48937
48939
|
labelTextWhenNoError: "Confirm account number",
|
|
48938
|
-
|
|
48940
|
+
"data-qa": "Confirm account number",
|
|
48939
48941
|
errorMessages: confirmAccountNumberErrors,
|
|
48940
48942
|
field: fields.confirmAccountNumber,
|
|
48941
48943
|
fieldActions: actions.fields.confirmAccountNumber,
|
|
@@ -48946,7 +48948,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48946
48948
|
isNum: true
|
|
48947
48949
|
}), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
48948
48950
|
labelTextWhenNoError: "Account type",
|
|
48949
|
-
|
|
48951
|
+
"data-qa": "Account type",
|
|
48950
48952
|
options: [{
|
|
48951
48953
|
text: "Select account type",
|
|
48952
48954
|
value: ""
|
|
@@ -48963,7 +48965,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48963
48965
|
field: fields.accountType
|
|
48964
48966
|
}), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48965
48967
|
title: "Save as Default Payment Method",
|
|
48966
|
-
|
|
48968
|
+
"data-qa": "default-payment-ach",
|
|
48967
48969
|
name: "default-payment-ach",
|
|
48968
48970
|
onChange: toggleCheckbox,
|
|
48969
48971
|
checked: defaultMethod.value,
|
|
@@ -48973,7 +48975,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48973
48975
|
align: "center"
|
|
48974
48976
|
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48975
48977
|
name: "bank checkbox",
|
|
48976
|
-
|
|
48978
|
+
"data-qa": "Save checking account to wallet",
|
|
48977
48979
|
title: "Save checking account to wallet.",
|
|
48978
48980
|
checked: walletCheckboxMarked,
|
|
48979
48981
|
onChange: saveToWallet
|
|
@@ -49089,7 +49091,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49089
49091
|
showErrors: showErrors
|
|
49090
49092
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49091
49093
|
labelTextWhenNoError: "Name on card",
|
|
49092
|
-
|
|
49094
|
+
"data-qa": "Name on card",
|
|
49093
49095
|
errorMessages: nameOnCardErrors,
|
|
49094
49096
|
field: fields.nameOnCard,
|
|
49095
49097
|
fieldActions: actions.fields.nameOnCard,
|
|
@@ -49100,7 +49102,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49100
49102
|
autocomplete: "cc-name"
|
|
49101
49103
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49102
49104
|
labelTextWhenNoError: "Credit card number",
|
|
49103
|
-
|
|
49105
|
+
"data-qa": "Credit card number",
|
|
49104
49106
|
errorMessages: creditCardNumberErrors,
|
|
49105
49107
|
field: fields.creditCardNumber,
|
|
49106
49108
|
fieldActions: actions.fields.creditCardNumber,
|
|
@@ -49116,7 +49118,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49116
49118
|
childGap: isMobile ? "0rem" : "1rem"
|
|
49117
49119
|
}, /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49118
49120
|
labelTextWhenNoError: "Expiration date (MM/YY)",
|
|
49119
|
-
|
|
49121
|
+
"data-qa": "Expiration date",
|
|
49120
49122
|
errorMessages: expirationDateErrors,
|
|
49121
49123
|
field: fields.expirationDate,
|
|
49122
49124
|
fieldActions: actions.fields.expirationDate,
|
|
@@ -49131,7 +49133,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49131
49133
|
autocomplete: "cc-exp"
|
|
49132
49134
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
49133
49135
|
labelTextWhenNoError: "CVV",
|
|
49134
|
-
|
|
49136
|
+
"data-qa": "CVV",
|
|
49135
49137
|
errorMessages: cvvErrors,
|
|
49136
49138
|
field: fields.cvv,
|
|
49137
49139
|
fieldActions: actions.fields.cvv,
|
|
@@ -49149,7 +49151,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49149
49151
|
isNum: isUS,
|
|
49150
49152
|
formatter: isUS ? zipFormat : null,
|
|
49151
49153
|
labelTextWhenNoError: "Zip code",
|
|
49152
|
-
|
|
49154
|
+
"data-qa": "Zip code",
|
|
49153
49155
|
errorMessages: zipCodeErrors,
|
|
49154
49156
|
field: fields.zipCode,
|
|
49155
49157
|
fieldActions: actions.fields.zipCode,
|
|
@@ -49163,7 +49165,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49163
49165
|
align: "center"
|
|
49164
49166
|
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
49165
49167
|
name: "credit card checkbox",
|
|
49166
|
-
|
|
49168
|
+
"data-qa": "Save credit card to wallet",
|
|
49167
49169
|
title: "Save credit card to wallet.",
|
|
49168
49170
|
checked: walletCheckboxMarked,
|
|
49169
49171
|
onChange: saveToWallet
|