@thecb/components 8.4.11-beta.17 → 8.4.11-beta.19

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
@@ -18819,7 +18819,8 @@ var Alert = function Alert(_ref) {
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
18821
  extraStyles: extraStyles,
18822
- role: "alert"
18822
+ role: "alert",
18823
+ "aria-atomic": true
18823
18824
  }, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
18824
18825
  maxWidth: maxContentWidth
18825
18826
  }, content) : content);
@@ -22149,9 +22150,7 @@ var Checkbox = function Checkbox(_ref4) {
22149
22150
  "aria-label": name,
22150
22151
  checked: checked,
22151
22152
  onChange: onChange,
22152
- tabIndex: "-1",
22153
- "aria-invalid": error,
22154
- "aria-describedby": error ? "".concat(name, "-error-message") : ""
22153
+ tabIndex: "-1"
22155
22154
  }), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
22156
22155
  error: error,
22157
22156
  disabled: disabled,
@@ -23984,15 +23983,15 @@ var Dropdown = function Dropdown(_ref8) {
23984
23983
  width: "100%"
23985
23984
  }, /*#__PURE__*/React__default.createElement(Box, {
23986
23985
  as: "input",
23987
- role: "combobox",
23988
23986
  "aria-multiline": "false",
23987
+ autoComplete: autocompleteValue,
23988
+ "aria-controls": "".concat(ariaLabelledby, "_listbox"),
23989
23989
  "aria-activedescendant": "focused_option",
23990
23990
  "aria-owns": "".concat(ariaLabelledby, "_listbox"),
23991
- "aria-controls": "".concat(ariaLabelledby, "_listbox"),
23992
23991
  "aria-haspopup": "listbox",
23993
23992
  "aria-labelledby": ariaLabelledby,
23994
23993
  "aria-describedby": ariaDescribedby,
23995
- autoComplete: autocompleteValue,
23994
+ "aria-expanded": isOpen,
23996
23995
  background: isOpen ? themeValues.hoverColor : WHITE,
23997
23996
  borderRadius: "2px",
23998
23997
  borderSize: "1px",
@@ -24003,7 +24002,6 @@ var Dropdown = function Dropdown(_ref8) {
24003
24002
  minHeight: "48px",
24004
24003
  minWidth: "100%",
24005
24004
  name: autocompleteValue,
24006
- "aria-expanded": isOpen,
24007
24005
  onChange: function onChange(e) {
24008
24006
  // support autofill and copy/paste
24009
24007
  if (e.target.value !== inputValue) {
@@ -24013,6 +24011,7 @@ var Dropdown = function Dropdown(_ref8) {
24013
24011
  },
24014
24012
  padding: "12px",
24015
24013
  placeholder: getSelection(),
24014
+ role: "combobox",
24016
24015
  themeValues: themeValues,
24017
24016
  title: hasTitles ? getSelection() : null,
24018
24017
  type: "text",
@@ -24213,7 +24212,7 @@ var FormSelect = function FormSelect(_ref) {
24213
24212
  id: createIdFromString(labelTextWhenNoError)
24214
24213
  }, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
24215
24214
  ariaLabelledby: createIdFromString(labelTextWhenNoError),
24216
- ariaDescribedby: "".concat(createIdFromString(labelTextWhenNoError), "-error-message"),
24215
+ "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
24217
24216
  maxHeight: dropdownMaxHeight,
24218
24217
  hasTitles: hasTitles,
24219
24218
  placeholder: options[0] ? options[0].text : "",
@@ -24235,9 +24234,7 @@ var FormSelect = function FormSelect(_ref) {
24235
24234
  "aria-disabled": disabled,
24236
24235
  autocompleteValue: autocompleteValue,
24237
24236
  smoothScroll: smoothScroll,
24238
- required: options.required,
24239
- "aria-required": options.required,
24240
- id: "".concat(createIdFromString(labelTextWhenNoError), "-input")
24237
+ required: options.required
24241
24238
  }), /*#__PURE__*/React__default.createElement(Stack, {
24242
24239
  direction: "row",
24243
24240
  justify: "space-between"
@@ -26024,10 +26021,10 @@ var FormInput = function FormInput(_ref15) {
26024
26021
  themeValues: themeValues,
26025
26022
  $customHeight: customHeight,
26026
26023
  $extraStyles: extraStyles,
26027
- autocomplete: autocomplete
26024
+ autoComplete: autocomplete
26028
26025
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26029
26026
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26030
- "aria-describedby": "".concat(createIdFromString(labelTextWhenNoError), "-error-message"),
26027
+ "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
26031
26028
  "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
26032
26029
  onChange: function onChange(e) {
26033
26030
  return setValue(e.target.value);
@@ -26038,7 +26035,7 @@ var FormInput = function FormInput(_ref15) {
26038
26035
  inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
26039
26036
  field: field,
26040
26037
  showErrors: showErrors,
26041
- "data-qa": labelTextWhenNoError,
26038
+ "data-qa": createIdFromString(labelTextWhenNoError),
26042
26039
  themeValues: themeValues,
26043
26040
  background: background,
26044
26041
  $customHeight: customHeight,
@@ -48536,6 +48533,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48536
48533
  toggleOpen(false);
48537
48534
  }
48538
48535
  }, /*#__PURE__*/React__default.createElement(Text$1, {
48536
+ role: "button",
48539
48537
  variant: "pS",
48540
48538
  onClick: function onClick() {
48541
48539
  return toggleOpen(true);
@@ -49152,7 +49150,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
49152
49150
  onKeyDown: function onKeyDown(e) {
49153
49151
  return e.key === "Enter" && handleSubmit(e);
49154
49152
  },
49155
- autocomplete: "billing postal-code"
49153
+ autoComplete: "billing postal-code"
49156
49154
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
49157
49155
  childGap: "4px",
49158
49156
  align: "center"