@thecb/components 8.4.11-beta.10 → 8.4.11-beta.11

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
@@ -22151,7 +22151,7 @@ var Checkbox = function Checkbox(_ref4) {
22151
22151
  onChange: onChange,
22152
22152
  tabIndex: "-1",
22153
22153
  "aria-invalid": error,
22154
- "aria-describedby": name
22154
+ "aria-describedby": error ? "".concat(name, "-error-message") : ""
22155
22155
  }), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
22156
22156
  error: error,
22157
22157
  disabled: disabled,
@@ -23985,10 +23985,10 @@ var Dropdown = function Dropdown(_ref8) {
23985
23985
  }, /*#__PURE__*/React__default.createElement(Box, {
23986
23986
  as: "input",
23987
23987
  "aria-multiline": "false",
23988
- "aria-autocomplete": "list" // aria-activedescendant="focused_option"
23989
- // aria-owns={`${ariaLabelledby}_listbox`}
23990
- // aria-controls={`${ariaLabelledby}_listbox`}
23991
- ,
23988
+ "aria-autocomplete": "list",
23989
+ "aria-activedescendant": "focused_option",
23990
+ "aria-owns": "".concat(ariaLabelledby, "_listbox"),
23991
+ "aria-controls": "".concat(ariaLabelledby, "_listbox"),
23992
23992
  "aria-haspopup": "listbox",
23993
23993
  "aria-labelledby": ariaLabelledby,
23994
23994
  "aria-describedby": ariaDescribedby,
@@ -24002,8 +24002,8 @@ var Dropdown = function Dropdown(_ref8) {
24002
24002
  isOpen: isOpen,
24003
24003
  minHeight: "48px",
24004
24004
  minWidth: "100%",
24005
- name: autocompleteValue // aria-expanded={isOpen}
24006
- ,
24005
+ name: autocompleteValue,
24006
+ "aria-expanded": isOpen,
24007
24007
  onChange: function onChange(e) {
24008
24008
  // support autofill and copy/paste
24009
24009
  if (e.target.value !== inputValue) {
@@ -24014,6 +24014,7 @@ var Dropdown = function Dropdown(_ref8) {
24014
24014
  padding: "12px",
24015
24015
  placeholder: getSelection(),
24016
24016
  themeValues: themeValues,
24017
+ role: "combobox",
24017
24018
  title: hasTitles ? getSelection() : null,
24018
24019
  type: "text",
24019
24020
  tabIndex: 0,
@@ -24065,7 +24066,7 @@ var Dropdown = function Dropdown(_ref8) {
24065
24066
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24066
24067
  variant: "p",
24067
24068
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24068
- extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
24069
+ extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
24069
24070
  }, choice.text));
24070
24071
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24071
24072
  };