@thecb/components 8.4.11-beta.1 → 8.4.11-beta.3

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
@@ -18818,7 +18818,8 @@ var Alert = function Alert(_ref) {
18818
18818
  borderColor: themeValues.border,
18819
18819
  borderSize: noBorder ? "0px" : "1px",
18820
18820
  boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
18821
- extraStyles: extraStyles
18821
+ extraStyles: extraStyles,
18822
+ role: "alert"
18822
18823
  }, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
18823
18824
  maxWidth: maxContentWidth
18824
18825
  }, content) : content);
@@ -22150,7 +22151,7 @@ var Checkbox = function Checkbox(_ref4) {
22150
22151
  onChange: onChange,
22151
22152
  tabIndex: "-1",
22152
22153
  "aria-invalid": error,
22153
- "aria-describedby": error ? "".concat(name, "-error-message") : ""
22154
+ "aria-describedBy": error ? "".concat(name, "-error-message") : ""
22154
22155
  }), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
22155
22156
  error: error,
22156
22157
  disabled: disabled,
@@ -40368,7 +40369,6 @@ var AddressForm = function AddressForm(_ref) {
40368
40369
  }, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(CountryDropdown, {
40369
40370
  labelTextWhenNoError: "Country",
40370
40371
  errorMessages: countryErrorMessages,
40371
- "aria-label": "country",
40372
40372
  field: fields.country,
40373
40373
  onChange: function onChange(value) {
40374
40374
  actions.fields.country.set(value); // temporary measure to not dirty fields until
@@ -40382,19 +40382,21 @@ var AddressForm = function AddressForm(_ref) {
40382
40382
  actions.fields.zip.set("");
40383
40383
  }
40384
40384
  },
40385
- showErrors: showErrors
40385
+ showErrors: showErrors,
40386
+ "aria-label": "country",
40387
+ "aria-role": "listbox"
40386
40388
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40387
40389
  labelTextWhenNoError: "Address",
40388
40390
  errorMessages: street1ErrorMessages,
40389
40391
  required: true,
40390
- "aria-label": "address line 1",
40391
40392
  field: fields.street1,
40392
40393
  fieldActions: actions.fields.street1,
40393
40394
  showErrors: showErrors,
40394
40395
  onKeyDown: function onKeyDown(e) {
40395
40396
  return e.key === "Enter" && handleSubmit(e);
40396
40397
  },
40397
- autoComplete: "address-line1"
40398
+ autocomplete: "address-line1",
40399
+ "aria-label": "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,
@@ -40403,10 +40405,10 @@ var AddressForm = function AddressForm(_ref) {
40403
40405
  onKeyDown: function onKeyDown(e) {
40404
40406
  return e.key === "Enter" && handleSubmit(e);
40405
40407
  },
40406
- autoComplete: "address-line2"
40408
+ autocomplete: "address-line2",
40409
+ "aria-label": "address line 2"
40407
40410
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40408
40411
  labelTextWhenNoError: "City",
40409
- "aria-label": "city",
40410
40412
  required: true,
40411
40413
  errorMessages: cityErrorMessages,
40412
40414
  field: fields.city,
@@ -40415,7 +40417,8 @@ var AddressForm = function AddressForm(_ref) {
40415
40417
  onKeyDown: function onKeyDown(e) {
40416
40418
  return e.key === "Enter" && handleSubmit(e);
40417
40419
  },
40418
- autoComplete: "address-level2"
40420
+ autocomplete: "city",
40421
+ "aria-label": "city"
40419
40422
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
40420
40423
  labelTextWhenNoError: isUS ? "State" : "State or Province",
40421
40424
  errorMessages: stateProvinceErrorMessages,
@@ -40426,8 +40429,8 @@ var AddressForm = function AddressForm(_ref) {
40426
40429
  onKeyDown: function onKeyDown(e) {
40427
40430
  return e.key === "Enter" && handleSubmit(e);
40428
40431
  },
40429
- autoComplete: "address-level1",
40430
- "aria-label": isUS ? "State" : "State or Province",
40432
+ autoComplete: "administrative-area",
40433
+ "aria-label": isUS ? "state" : "state or province",
40431
40434
  required: true
40432
40435
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
40433
40436
  isNum: isUS,
@@ -40440,10 +40443,11 @@ var AddressForm = function AddressForm(_ref) {
40440
40443
  onKeyDown: function onKeyDown(e) {
40441
40444
  return e.key === "Enter" && handleSubmit(e);
40442
40445
  },
40443
- autoComplete: "postal-code"
40446
+ "aria-label": "zip code",
40447
+ autocomplete: "postal-code"
40444
40448
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40445
40449
  name: "address checkbox",
40446
- title: "Save address to wallet",
40450
+ title: "Save address to Wallet",
40447
40451
  checked: walletCheckboxMarked,
40448
40452
  onChange: saveToWallet
40449
40453
  })));