@thecb/components 8.4.11-beta.21 → 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 +16 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/address-form/AddressForm.js +7 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -40382,7 +40382,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40382
40382
|
actions.fields.zip.set("");
|
|
40383
40383
|
}
|
|
40384
40384
|
},
|
|
40385
|
-
showErrors: showErrors
|
|
40385
|
+
showErrors: showErrors,
|
|
40386
|
+
"data-qa": "Country"
|
|
40386
40387
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40387
40388
|
labelTextWhenNoError: "Address",
|
|
40388
40389
|
errorMessages: street1ErrorMessages,
|
|
@@ -40394,7 +40395,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40394
40395
|
return e.key === "Enter" && handleSubmit(e);
|
|
40395
40396
|
},
|
|
40396
40397
|
autocomplete: "address-line1",
|
|
40397
|
-
"aria-label": "Address Line 1"
|
|
40398
|
+
"aria-label": "Address Line 1",
|
|
40399
|
+
"data-qa": "Address Line 1"
|
|
40398
40400
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40399
40401
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40400
40402
|
field: fields.street2,
|
|
@@ -40404,7 +40406,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40404
40406
|
return e.key === "Enter" && handleSubmit(e);
|
|
40405
40407
|
},
|
|
40406
40408
|
autocomplete: "address-line2",
|
|
40407
|
-
"aria-label": "Address Line 2"
|
|
40409
|
+
"aria-label": "Address Line 2",
|
|
40410
|
+
"data-qa": "Address Line 2"
|
|
40408
40411
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40409
40412
|
labelTextWhenNoError: "City",
|
|
40410
40413
|
required: true,
|
|
@@ -40416,7 +40419,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40416
40419
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40420
|
},
|
|
40418
40421
|
autocomplete: "city",
|
|
40419
|
-
"aria-label": "City"
|
|
40422
|
+
"aria-label": "City",
|
|
40423
|
+
"data-qa": "City"
|
|
40420
40424
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40421
40425
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40422
40426
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40429,7 +40433,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40429
40433
|
},
|
|
40430
40434
|
"aria-label": isUS ? "State" : "State or Province",
|
|
40431
40435
|
required: true,
|
|
40432
|
-
autocomplete: "administrative-area"
|
|
40436
|
+
autocomplete: "administrative-area",
|
|
40437
|
+
"data-qa": "State or Province"
|
|
40433
40438
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40434
40439
|
isNum: isUS,
|
|
40435
40440
|
formatter: isUS ? zipFormat : null,
|
|
@@ -40443,12 +40448,14 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40443
40448
|
},
|
|
40444
40449
|
"aria-label": "Zip code",
|
|
40445
40450
|
autocomplete: "postal-code",
|
|
40446
|
-
required: true
|
|
40451
|
+
required: true,
|
|
40452
|
+
"data-qa": "Zip code"
|
|
40447
40453
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40448
40454
|
name: "address checkbox",
|
|
40449
40455
|
title: "Save address to wallet",
|
|
40450
40456
|
checked: walletCheckboxMarked,
|
|
40451
|
-
onChange: saveToWallet
|
|
40457
|
+
onChange: saveToWallet,
|
|
40458
|
+
"data-qa": "Save address to wallet"
|
|
40452
40459
|
})));
|
|
40453
40460
|
};
|
|
40454
40461
|
|
|
@@ -49096,7 +49103,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49096
49103
|
actions.fields.zipCode.set("");
|
|
49097
49104
|
}
|
|
49098
49105
|
},
|
|
49099
|
-
showErrors: showErrors
|
|
49106
|
+
showErrors: showErrors,
|
|
49107
|
+
"data-qa": "Country"
|
|
49100
49108
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
49101
49109
|
labelTextWhenNoError: "Name on card",
|
|
49102
49110
|
"data-qa": "Name on card",
|