@thecb/components 8.4.11-beta.1 → 8.4.11-beta.2
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
CHANGED
|
@@ -22150,7 +22150,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22150
22150
|
onChange: onChange,
|
|
22151
22151
|
tabIndex: "-1",
|
|
22152
22152
|
"aria-invalid": error,
|
|
22153
|
-
"aria-
|
|
22153
|
+
"aria-describedBy": error ? "".concat(name, "-error-message") : ""
|
|
22154
22154
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22155
22155
|
error: error,
|
|
22156
22156
|
disabled: disabled,
|
|
@@ -40368,7 +40368,6 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40368
40368
|
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(CountryDropdown, {
|
|
40369
40369
|
labelTextWhenNoError: "Country",
|
|
40370
40370
|
errorMessages: countryErrorMessages,
|
|
40371
|
-
"aria-label": "country",
|
|
40372
40371
|
field: fields.country,
|
|
40373
40372
|
onChange: function onChange(value) {
|
|
40374
40373
|
actions.fields.country.set(value); // temporary measure to not dirty fields until
|
|
@@ -40382,19 +40381,20 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40382
40381
|
actions.fields.zip.set("");
|
|
40383
40382
|
}
|
|
40384
40383
|
},
|
|
40385
|
-
showErrors: showErrors
|
|
40384
|
+
showErrors: showErrors,
|
|
40385
|
+
"aria-label": "country"
|
|
40386
40386
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40387
40387
|
labelTextWhenNoError: "Address",
|
|
40388
40388
|
errorMessages: street1ErrorMessages,
|
|
40389
40389
|
required: true,
|
|
40390
|
-
"aria-label": "address line 1",
|
|
40391
40390
|
field: fields.street1,
|
|
40392
40391
|
fieldActions: actions.fields.street1,
|
|
40393
40392
|
showErrors: showErrors,
|
|
40394
40393
|
onKeyDown: function onKeyDown(e) {
|
|
40395
40394
|
return e.key === "Enter" && handleSubmit(e);
|
|
40396
40395
|
},
|
|
40397
|
-
autoComplete: "address-line1"
|
|
40396
|
+
autoComplete: "address-line1",
|
|
40397
|
+
"aria-label": "address line 1"
|
|
40398
40398
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40399
40399
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
40400
40400
|
field: fields.street2,
|
|
@@ -40403,10 +40403,10 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40403
40403
|
onKeyDown: function onKeyDown(e) {
|
|
40404
40404
|
return e.key === "Enter" && handleSubmit(e);
|
|
40405
40405
|
},
|
|
40406
|
-
autoComplete: "address-line2"
|
|
40406
|
+
autoComplete: "address-line2",
|
|
40407
|
+
"aria-label": "address line 2"
|
|
40407
40408
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40408
40409
|
labelTextWhenNoError: "City",
|
|
40409
|
-
"aria-label": "city",
|
|
40410
40410
|
required: true,
|
|
40411
40411
|
errorMessages: cityErrorMessages,
|
|
40412
40412
|
field: fields.city,
|
|
@@ -40415,7 +40415,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40415
40415
|
onKeyDown: function onKeyDown(e) {
|
|
40416
40416
|
return e.key === "Enter" && handleSubmit(e);
|
|
40417
40417
|
},
|
|
40418
|
-
autoComplete: "
|
|
40418
|
+
autoComplete: "locality",
|
|
40419
|
+
"aria-label": "city"
|
|
40419
40420
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
40420
40421
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
40421
40422
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -40426,8 +40427,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40426
40427
|
onKeyDown: function onKeyDown(e) {
|
|
40427
40428
|
return e.key === "Enter" && handleSubmit(e);
|
|
40428
40429
|
},
|
|
40429
|
-
autoComplete: "
|
|
40430
|
-
"aria-label": isUS ? "
|
|
40430
|
+
autoComplete: "administrative-area",
|
|
40431
|
+
"aria-label": isUS ? "state" : "state or province",
|
|
40431
40432
|
required: true
|
|
40432
40433
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40433
40434
|
isNum: isUS,
|
|
@@ -40440,10 +40441,11 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
40440
40441
|
onKeyDown: function onKeyDown(e) {
|
|
40441
40442
|
return e.key === "Enter" && handleSubmit(e);
|
|
40442
40443
|
},
|
|
40444
|
+
"aria-label": "zip code",
|
|
40443
40445
|
autoComplete: "postal-code"
|
|
40444
40446
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40445
40447
|
name: "address checkbox",
|
|
40446
|
-
title: "Save address to
|
|
40448
|
+
title: "Save address to Wallet",
|
|
40447
40449
|
checked: walletCheckboxMarked,
|
|
40448
40450
|
onChange: saveToWallet
|
|
40449
40451
|
})));
|