carbon-react 118.0.0 → 118.1.1

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.
Files changed (169) hide show
  1. package/esm/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  2. package/esm/components/button-minor/button-minor.style.js +8 -0
  3. package/esm/components/pager/pager.component.js +5 -5
  4. package/esm/components/pill/pill.component.d.ts +3 -1
  5. package/esm/components/pill/pill.component.js +1 -0
  6. package/esm/components/select/__internal__/select-list-context.d.ts +7 -0
  7. package/esm/components/select/__internal__/select-text/index.d.ts +2 -0
  8. package/esm/components/select/__internal__/select-text/index.js +1 -0
  9. package/esm/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  10. package/esm/components/select/__internal__/select-text/select-text.component.js +16 -36
  11. package/esm/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  12. package/esm/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  13. package/esm/components/select/filterable-select/filterable-select.component.js +568 -102
  14. package/esm/components/select/filterable-select/index.d.ts +2 -1
  15. package/esm/components/select/filterable-select/index.js +1 -0
  16. package/esm/components/select/index.d.ts +6 -0
  17. package/esm/components/select/index.js +6 -6
  18. package/esm/components/select/list-action-button/index.d.ts +2 -0
  19. package/esm/components/select/list-action-button/index.js +1 -0
  20. package/esm/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  21. package/esm/components/select/list-action-button/list-action-button.component.js +9 -6
  22. package/esm/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  23. package/esm/components/select/multi-select/index.d.ts +2 -1
  24. package/esm/components/select/multi-select/index.js +1 -0
  25. package/esm/components/select/multi-select/multi-select.component.d.ts +62 -0
  26. package/esm/components/select/multi-select/multi-select.component.js +575 -104
  27. package/esm/components/select/multi-select/multi-select.style.d.ts +4 -0
  28. package/esm/components/select/multi-select/multi-select.style.js +1 -0
  29. package/esm/components/select/option/index.d.ts +2 -25
  30. package/esm/components/select/option/index.js +1 -0
  31. package/esm/components/select/option/option.component.d.ts +34 -0
  32. package/esm/components/select/option/option.component.js +399 -62
  33. package/esm/components/select/option/option.style.d.ts +6 -0
  34. package/esm/components/select/option/option.style.js +0 -5
  35. package/esm/components/select/option-group-header/index.d.ts +2 -10
  36. package/esm/components/select/option-group-header/index.js +1 -0
  37. package/esm/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  38. package/esm/components/select/option-group-header/option-group-header.component.js +4 -15
  39. package/esm/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  40. package/esm/components/select/option-row/index.d.ts +2 -16
  41. package/esm/components/select/option-row/index.js +1 -0
  42. package/esm/components/select/option-row/option-row.component.d.ts +42 -0
  43. package/esm/components/select/option-row/option-row.component.js +10 -40
  44. package/esm/components/select/option-row/option-row.style.d.ts +6 -0
  45. package/esm/components/select/select-list/index.d.ts +2 -0
  46. package/esm/components/select/select-list/index.js +1 -0
  47. package/esm/components/select/select-list/select-list-container.style.d.ts +6 -0
  48. package/esm/components/select/select-list/select-list.component.d.ts +64 -0
  49. package/esm/components/select/select-list/select-list.component.js +69 -100
  50. package/esm/components/select/select-list/select-list.style.d.ts +12 -0
  51. package/esm/components/select/select-list/select-list.style.js +2 -2
  52. package/esm/components/select/select-textbox/index.d.ts +2 -1
  53. package/esm/components/select/select-textbox/index.js +1 -0
  54. package/esm/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  55. package/esm/components/select/select-textbox/select-textbox.component.js +567 -142
  56. package/esm/components/select/select.style.d.ts +8 -0
  57. package/esm/components/select/simple-select/index.d.ts +2 -1
  58. package/esm/components/select/simple-select/index.js +1 -0
  59. package/esm/components/select/simple-select/simple-select.component.d.ts +58 -0
  60. package/esm/components/select/simple-select/simple-select.component.js +578 -111
  61. package/esm/components/select/utils/get-next-child-by-text.d.ts +5 -0
  62. package/esm/components/select/utils/get-next-child-by-text.js +20 -17
  63. package/esm/components/select/utils/get-next-index-by-key.d.ts +2 -0
  64. package/esm/components/select/utils/highlight-part-of-text.d.ts +2 -0
  65. package/esm/components/select/utils/highlight-part-of-text.js +10 -3
  66. package/esm/components/select/utils/is-expected-option.d.ts +2 -0
  67. package/esm/components/select/utils/is-expected-option.js +1 -1
  68. package/esm/components/select/utils/is-expected-value.d.ts +1 -0
  69. package/esm/components/select/utils/is-expected-value.js +1 -1
  70. package/esm/components/select/utils/is-navigation-key.d.ts +1 -0
  71. package/esm/components/select/utils/matching-text.style.d.ts +2 -0
  72. package/esm/components/select/utils/with-filter.hoc.d.ts +14 -0
  73. package/esm/components/select/utils/with-filter.hoc.js +59 -41
  74. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  75. package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  76. package/lib/components/button-minor/button-minor.style.js +8 -0
  77. package/lib/components/pager/pager.component.js +5 -5
  78. package/lib/components/pill/pill.component.d.ts +3 -1
  79. package/lib/components/pill/pill.component.js +1 -0
  80. package/lib/components/select/__internal__/select-list-context.d.ts +7 -0
  81. package/lib/components/select/__internal__/select-text/index.d.ts +2 -0
  82. package/lib/components/select/__internal__/select-text/index.js +15 -0
  83. package/lib/components/select/__internal__/select-text/package.json +6 -0
  84. package/lib/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  85. package/lib/components/select/__internal__/select-text/select-text.component.js +16 -36
  86. package/lib/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  87. package/lib/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  88. package/lib/components/select/filterable-select/filterable-select.component.js +569 -103
  89. package/lib/components/select/filterable-select/index.d.ts +2 -1
  90. package/lib/components/select/filterable-select/index.js +15 -0
  91. package/lib/components/select/filterable-select/package.json +6 -0
  92. package/lib/components/select/index.d.ts +6 -0
  93. package/lib/components/select/index.js +6 -6
  94. package/lib/components/select/list-action-button/index.d.ts +2 -0
  95. package/lib/components/select/list-action-button/index.js +15 -0
  96. package/lib/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  97. package/lib/components/select/list-action-button/list-action-button.component.js +9 -6
  98. package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  99. package/lib/components/select/list-action-button/package.json +6 -0
  100. package/lib/components/select/multi-select/index.d.ts +2 -1
  101. package/lib/components/select/multi-select/index.js +15 -0
  102. package/lib/components/select/multi-select/multi-select.component.d.ts +62 -0
  103. package/lib/components/select/multi-select/multi-select.component.js +576 -105
  104. package/lib/components/select/multi-select/multi-select.style.d.ts +4 -0
  105. package/lib/components/select/multi-select/multi-select.style.js +1 -0
  106. package/lib/components/select/multi-select/package.json +6 -0
  107. package/lib/components/select/option/index.d.ts +2 -25
  108. package/lib/components/select/option/index.js +15 -0
  109. package/lib/components/select/option/option.component.d.ts +34 -0
  110. package/lib/components/select/option/option.component.js +399 -62
  111. package/lib/components/select/option/option.style.d.ts +6 -0
  112. package/lib/components/select/option/option.style.js +0 -8
  113. package/lib/components/select/option/package.json +6 -0
  114. package/lib/components/select/option-group-header/index.d.ts +2 -10
  115. package/lib/components/select/option-group-header/index.js +15 -0
  116. package/lib/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  117. package/lib/components/select/option-group-header/option-group-header.component.js +4 -15
  118. package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  119. package/lib/components/select/option-group-header/package.json +6 -0
  120. package/lib/components/select/option-row/index.d.ts +2 -16
  121. package/lib/components/select/option-row/index.js +15 -0
  122. package/lib/components/select/option-row/option-row.component.d.ts +42 -0
  123. package/lib/components/select/option-row/option-row.component.js +10 -40
  124. package/lib/components/select/option-row/option-row.style.d.ts +6 -0
  125. package/lib/components/select/option-row/package.json +6 -0
  126. package/lib/components/select/select-list/index.d.ts +2 -0
  127. package/lib/components/select/select-list/index.js +15 -0
  128. package/lib/components/select/select-list/package.json +6 -0
  129. package/lib/components/select/select-list/select-list-container.style.d.ts +6 -0
  130. package/lib/components/select/select-list/select-list.component.d.ts +64 -0
  131. package/lib/components/select/select-list/select-list.component.js +69 -100
  132. package/lib/components/select/select-list/select-list.style.d.ts +12 -0
  133. package/lib/components/select/select-list/select-list.style.js +2 -2
  134. package/lib/components/select/select-textbox/index.d.ts +2 -1
  135. package/lib/components/select/select-textbox/index.js +15 -0
  136. package/lib/components/select/select-textbox/package.json +6 -0
  137. package/lib/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  138. package/lib/components/select/select-textbox/select-textbox.component.js +567 -142
  139. package/lib/components/select/select.style.d.ts +8 -0
  140. package/lib/components/select/simple-select/index.d.ts +2 -1
  141. package/lib/components/select/simple-select/index.js +15 -0
  142. package/lib/components/select/simple-select/package.json +6 -0
  143. package/lib/components/select/simple-select/simple-select.component.d.ts +58 -0
  144. package/lib/components/select/simple-select/simple-select.component.js +579 -113
  145. package/lib/components/select/utils/get-next-child-by-text.d.ts +5 -0
  146. package/lib/components/select/utils/get-next-child-by-text.js +20 -17
  147. package/lib/components/select/utils/get-next-index-by-key.d.ts +2 -0
  148. package/lib/components/select/utils/highlight-part-of-text.d.ts +2 -0
  149. package/lib/components/select/utils/highlight-part-of-text.js +10 -3
  150. package/lib/components/select/utils/is-expected-option.d.ts +2 -0
  151. package/lib/components/select/utils/is-expected-option.js +1 -1
  152. package/lib/components/select/utils/is-expected-value.d.ts +1 -0
  153. package/lib/components/select/utils/is-expected-value.js +1 -1
  154. package/lib/components/select/utils/is-navigation-key.d.ts +1 -0
  155. package/lib/components/select/utils/matching-text.style.d.ts +2 -0
  156. package/lib/components/select/utils/with-filter.hoc.d.ts +14 -0
  157. package/lib/components/select/utils/with-filter.hoc.js +59 -42
  158. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  159. package/package.json +1 -1
  160. package/esm/components/select/__internal__/select-text/select-text.d.ts +0 -36
  161. package/esm/components/select/filterable-select/filterable-select.d.ts +0 -71
  162. package/esm/components/select/multi-select/multi-select.d.ts +0 -68
  163. package/esm/components/select/select-textbox/select-textbox.d.ts +0 -72
  164. package/esm/components/select/simple-select/simple-select.d.ts +0 -64
  165. package/lib/components/select/__internal__/select-text/select-text.d.ts +0 -36
  166. package/lib/components/select/filterable-select/filterable-select.d.ts +0 -71
  167. package/lib/components/select/multi-select/multi-select.d.ts +0 -68
  168. package/lib/components/select/select-textbox/select-textbox.d.ts +0 -72
  169. package/lib/components/select/simple-select/simple-select.d.ts +0 -64
@@ -4,7 +4,7 @@ import React, { useState, useEffect, useRef, useCallback, useMemo } from "react"
4
4
  import PropTypes from "prop-types";
5
5
  import invariant from "invariant";
6
6
  import { filterOutStyledSystemSpacingProps } from "../../../style/utils";
7
- import SelectTextbox, { formInputPropTypes } from "../select-textbox/select-textbox.component";
7
+ import SelectTextbox from "../select-textbox";
8
8
  import guid from "../../../__internal__/utils/helpers/guid";
9
9
  import withFilter from "../utils/with-filter.hoc";
10
10
  import SelectList from "../select-list/select-list.component";
@@ -47,7 +47,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
47
47
  multiColumn,
48
48
  tooltipPosition,
49
49
  size,
50
- "data-component": dataComponent,
50
+ "data-component": dataComponent = "multiselect",
51
51
  "data-element": dataElement,
52
52
  "data-role": dataRole,
53
53
  listPlacement = "bottom",
@@ -62,8 +62,8 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
62
62
  const [activeDescendantId, setActiveDescendantId] = useState();
63
63
  const selectListId = useRef(guid());
64
64
  const accessibilityLabelId = useRef(guid());
65
- const containerRef = useRef();
66
- const listboxRef = useRef();
65
+ const containerRef = useRef(null);
66
+ const listboxRef = useRef(null);
67
67
  const isInputFocused = useRef(false);
68
68
  const isClickTriggeredBySelect = useRef(false);
69
69
  const isMouseDownReported = useRef(false);
@@ -127,7 +127,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
127
127
  const updateValue = useCallback(updateFunction => {
128
128
  const newValue = updateFunction(actualValue); // only call onChange if an option has been selected or deselected
129
129
 
130
- if (onChange && newValue.length !== actualValue.length) {
130
+ if (onChange && newValue.length !== (actualValue === null || actualValue === void 0 ? void 0 : actualValue.length)) {
131
131
  onChange(createCustomEvent(newValue));
132
132
  } // no need to update selectedValue if the component is controlled: onChange should take care of updating the value
133
133
 
@@ -136,6 +136,16 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
136
136
  setSelectedValue(updateFunction);
137
137
  }
138
138
  }, [createCustomEvent, onChange, actualValue]);
139
+
140
+ function findElementWithMatchingText(textToMatch, list) {
141
+ return list.find(child => {
142
+ const {
143
+ text
144
+ } = child.props;
145
+ return (text === null || text === void 0 ? void 0 : text.toLowerCase().indexOf(textToMatch.toLowerCase())) !== -1;
146
+ });
147
+ }
148
+
139
149
  const handleTextboxChange = useCallback(event => {
140
150
  const newValue = event.target.value;
141
151
  const match = findElementWithMatchingText(newValue, children);
@@ -155,7 +165,8 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
155
165
  return previousValue;
156
166
  }
157
167
 
158
- const newValue = [...previousValue];
168
+ const newValue = previousValue.slice(); // spreading does not work but slice does - see https://github.com/microsoft/TypeScript/issues/53670
169
+
159
170
  newValue.splice(index, 1);
160
171
  return newValue;
161
172
  });
@@ -185,9 +196,11 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
185
196
 
186
197
  }, [onKeyDown, readOnly, filterText, textValue, setOpen, removeSelectedValue]);
187
198
  const accessibilityLabel = useMemo(() => {
188
- return actualValue && actualValue.length ? React.Children.map(children, child => {
189
- return actualValue.includes(child.props.value) ? child.props.text : false;
190
- }).filter(child => child).reduce((acc, item) => {
199
+ var _React$Children$map;
200
+
201
+ return actualValue && actualValue.length ? (_React$Children$map = React.Children.map(children, child => {
202
+ return /*#__PURE__*/React.isValidElement(child) && actualValue.includes(child.props.value) ? child.props.text : false;
203
+ })) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.filter(child => child).reduce((acc, item) => {
191
204
  return acc ? `${acc}, ${item}` : item;
192
205
  }, "") : null;
193
206
  }, [children, actualValue]);
@@ -213,15 +226,15 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
213
226
  const mapValuesToPills = useMemo(() => {
214
227
  const canDelete = !disabled && !readOnly;
215
228
 
216
- if (!actualValue.length) {
229
+ if (!(actualValue !== null && actualValue !== void 0 && actualValue.length)) {
217
230
  return "";
218
231
  }
219
232
 
220
233
  return actualValue.map((singleValue, index) => {
221
- const matchingOption = React.Children.toArray(children).find(child => isExpectedOption(child, singleValue));
234
+ const matchingOption = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && isExpectedOption(child, singleValue));
222
235
  let pillProps = {};
223
236
 
224
- if (matchingOption) {
237
+ if ( /*#__PURE__*/React.isValidElement(matchingOption)) {
225
238
  pillProps = {
226
239
  title: matchingOption.props.text,
227
240
  fill: matchingOption.props.fill,
@@ -229,10 +242,8 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
229
242
  };
230
243
  }
231
244
 
232
- const {
233
- title
234
- } = pillProps;
235
- const key = title + ((matchingOption === null || matchingOption === void 0 ? void 0 : matchingOption.props.value) || index);
245
+ const title = pillProps.title || "";
246
+ const key = title + ( /*#__PURE__*/React.isValidElement(matchingOption) && matchingOption.props.value || index);
236
247
  return /*#__PURE__*/React.createElement(StyledSelectPillContainer, {
237
248
  key: key
238
249
  }, /*#__PURE__*/React.createElement(Pill, _extends({
@@ -322,7 +333,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
322
333
  function handleTextboxMouseDown(event) {
323
334
  isMouseDownReported.current = true;
324
335
 
325
- if (event.target.attributes["data-element"] && event.target.attributes["data-element"].value === "input") {
336
+ if (event.target.dataset.element === "input") {
326
337
  isMouseDownOnInput.current = true;
327
338
  }
328
339
  }
@@ -332,7 +343,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
332
343
  }
333
344
 
334
345
  function handleTextboxFocus(event) {
335
- const triggerFocus = () => onFocus(event);
346
+ const triggerFocus = () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
336
347
 
337
348
  if (openOnFocus) {
338
349
  setOpenState(isAlreadyOpen => {
@@ -379,8 +390,8 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
379
390
  }
380
391
 
381
392
  setTextValue("");
382
- const isAlreadySelected = actualValue.findIndex(val => isExpectedValue(val, newValue)) !== -1;
383
- textboxRef.focus();
393
+ const isAlreadySelected = (actualValue === null || actualValue === void 0 ? void 0 : actualValue.findIndex(val => isExpectedValue(val, newValue))) !== -1;
394
+ textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.focus();
384
395
  isMouseDownReported.current = false;
385
396
  updateValue(previousValue => {
386
397
  if (isAlreadySelected) {
@@ -394,16 +405,6 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
394
405
  setOpenState(false);
395
406
  setFilterText("");
396
407
  }, []);
397
-
398
- function findElementWithMatchingText(textToMatch, list) {
399
- return list.find(child => {
400
- const {
401
- text
402
- } = child.props;
403
- return text && text.toLowerCase().indexOf(textToMatch.toLowerCase()) !== -1;
404
- });
405
- }
406
-
407
408
  const assignInput = useCallback(element => {
408
409
  setTextboxRef(element);
409
410
 
@@ -449,7 +450,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
449
450
  ref: listboxRef,
450
451
  id: selectListId.current,
451
452
  labelId: labelId,
452
- anchorElement: textboxRef && textboxRef.parentElement,
453
+ anchorElement: (textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.parentElement) || undefined,
453
454
  onSelect: onSelectOption,
454
455
  onSelectListClose: onSelectListClose,
455
456
  onMouseDown: handleListMouseDown,
@@ -496,83 +497,553 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
496
497
  textboxRef: textboxRef
497
498
  }, getTextboxProps()))), selectList);
498
499
  });
499
- MultiSelect.propTypes = { ...formInputPropTypes,
500
-
501
- /** Prop to specify the aria-label attribute of the component input */
500
+ MultiSelect.propTypes = {
501
+ "about": PropTypes.string,
502
+ "accept": PropTypes.string,
503
+ "accessibilityLabelId": PropTypes.string,
504
+ "accessKey": PropTypes.string,
505
+ "adaptiveLabelBreakpoint": PropTypes.number,
506
+ "align": PropTypes.oneOf(["left", "right"]),
507
+ "alt": PropTypes.string,
508
+ "aria-activedescendant": PropTypes.string,
509
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
510
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
511
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
512
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
513
+ "aria-colcount": PropTypes.number,
514
+ "aria-colindex": PropTypes.number,
515
+ "aria-colspan": PropTypes.number,
516
+ "aria-controls": PropTypes.string,
517
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
518
+ "aria-describedby": PropTypes.string,
519
+ "aria-details": PropTypes.string,
520
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
521
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
522
+ "aria-errormessage": PropTypes.string,
523
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
524
+ "aria-flowto": PropTypes.string,
525
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
526
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
527
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
528
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
529
+ "aria-keyshortcuts": PropTypes.string,
502
530
  "aria-label": PropTypes.string,
503
-
504
- /** Prop to specify the aria-labeledby property of the component input */
505
531
  "aria-labelledby": PropTypes.string,
506
-
507
- /** Identifier used for testing purposes, applied to the root element of the component. */
532
+ "aria-level": PropTypes.number,
533
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
534
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
535
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
536
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
537
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
538
+ "aria-owns": PropTypes.string,
539
+ "aria-placeholder": PropTypes.string,
540
+ "aria-posinset": PropTypes.number,
541
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
542
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
543
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
544
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
545
+ "aria-roledescription": PropTypes.string,
546
+ "aria-rowcount": PropTypes.number,
547
+ "aria-rowindex": PropTypes.number,
548
+ "aria-rowspan": PropTypes.number,
549
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
550
+ "aria-setsize": PropTypes.number,
551
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
552
+ "aria-valuemax": PropTypes.number,
553
+ "aria-valuemin": PropTypes.number,
554
+ "aria-valuenow": PropTypes.number,
555
+ "aria-valuetext": PropTypes.string,
556
+ "ariaDescribedBy": PropTypes.string,
557
+ "ariaLabel": PropTypes.string,
558
+ "ariaLabelledby": PropTypes.string,
559
+ "as": PropTypes.elementType,
560
+ "autoCapitalize": PropTypes.string,
561
+ "autoComplete": PropTypes.string,
562
+ "autoCorrect": PropTypes.string,
563
+ "autoFocus": PropTypes.bool,
564
+ "autoSave": PropTypes.string,
565
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
566
+ "checked": PropTypes.bool,
567
+ "children": PropTypes.node,
568
+ "className": PropTypes.string,
569
+ "color": PropTypes.string,
570
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
571
+ "contextMenu": PropTypes.string,
572
+ "crossOrigin": PropTypes.string,
573
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
574
+ "__emotion_styles": PropTypes.any.isRequired
575
+ }), PropTypes.string, PropTypes.bool]),
576
+ "dangerouslySetInnerHTML": PropTypes.shape({
577
+ "__html": PropTypes.string.isRequired
578
+ }),
508
579
  "data-component": PropTypes.string,
509
-
510
- /** Identifier used for testing purposes, applied to the root element of the component. */
511
580
  "data-element": PropTypes.string,
512
-
513
- /** Identifier used for testing purposes, applied to the root element of the component. */
514
581
  "data-role": PropTypes.string,
515
-
516
- /** Boolean to toggle where SelectList is rendered in relation to the Select Input */
517
- disablePortal: PropTypes.bool,
518
-
519
- /** The selected value(s), when the component is operating in controlled mode */
520
- value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.arrayOf(PropTypes.object)]),
521
-
522
- /** The default selected value(s), when the component is operating in uncontrolled mode */
523
- defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.arrayOf(PropTypes.object)]),
524
-
525
- /** Child components (such as Option or OptionRow) for the SelectList */
526
- children: PropTypes.node.isRequired,
527
-
528
- /** A custom callback for when the input text changes */
529
- onFilterChange: PropTypes.func,
530
-
531
- /** A custom callback for when the dropdown menu opens */
532
- onOpen: PropTypes.func,
533
-
534
- /** If true the Component opens on focus */
535
- openOnFocus: PropTypes.bool,
536
-
537
- /** SelectList table header, should consist of multiple th elements.
538
- Works only in multiColumn mode */
539
- tableHeader: PropTypes.node,
540
-
541
- /** When true component will work in multi column mode.
542
- Children should consist of OptionRow components in this mode */
543
- multiColumn: PropTypes.bool,
544
-
545
- /** A custom message to be displayed when any option does not match the filter text */
546
- noResultsMessage: PropTypes.string,
547
-
548
- /** If true the loader animation is displayed in the option list */
549
- isLoading: PropTypes.bool,
550
-
551
- /** Overrides the default tooltip position */
552
- tooltipPosition: PropTypes.oneOf(["top", "bottom", "left", "right"]),
553
-
554
- /** Maximum list height - defaults to 180 */
555
- listMaxHeight: PropTypes.number,
556
-
557
- /** Placement of the select list in relation to the input element */
558
- listPlacement: PropTypes.oneOf(["top", "bottom", "right", "left"]),
559
-
560
- /** Use the opposite list placement if the set placement does not fit */
561
- flipEnabled: PropTypes.bool,
562
-
563
- /** Wraps the pill text when it would overflow the input width */
564
- wrapPillText: PropTypes.bool,
565
-
566
- /** Set this prop to enable a virtualised list of options. If it is not used then all options will be in the
567
- * DOM at all times, which may cause performance problems on very large lists */
568
- enableVirtualScroll: PropTypes.bool,
569
-
570
- /** The number of options to render into the DOM at once, either side of the currently-visible ones.
571
- * Higher values make for smoother scrolling but may impact performance.
572
- * Only used if the `enableVirtualScroll` prop is set. */
573
- virtualScrollOverscan: PropTypes.number
574
- };
575
- MultiSelect.defaultProps = {
576
- "data-component": "multiselect"
582
+ "datatype": PropTypes.string,
583
+ "defaultChecked": PropTypes.bool,
584
+ "defaultValue": PropTypes.arrayOf(PropTypes.string),
585
+ "deferTimeout": PropTypes.number,
586
+ "dir": PropTypes.string,
587
+ "disabled": PropTypes.bool,
588
+ "disablePortal": PropTypes.bool,
589
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
590
+ "enableVirtualScroll": PropTypes.bool,
591
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
592
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
593
+ "fieldHelp": PropTypes.node,
594
+ "flipEnabled": PropTypes.bool,
595
+ "form": PropTypes.string,
596
+ "formAction": PropTypes.string,
597
+ "formattedValue": PropTypes.string,
598
+ "formEncType": PropTypes.string,
599
+ "formMethod": PropTypes.string,
600
+ "formNoValidate": PropTypes.bool,
601
+ "formTarget": PropTypes.string,
602
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
603
+ "helpAriaLabel": PropTypes.string,
604
+ "hidden": PropTypes.bool,
605
+ "iconOnClick": PropTypes.func,
606
+ "iconOnMouseDown": PropTypes.func,
607
+ "iconTabIndex": PropTypes.number,
608
+ "id": PropTypes.string,
609
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
610
+ "inlist": PropTypes.any,
611
+ "inputHint": PropTypes.string,
612
+ "inputIcon": PropTypes.oneOf(["add", "admin", "alert_on", "alert", "analysis", "arrow_bottom_right_circle", "arrow_down", "arrow_left_boxed", "arrow_left_right_small", "arrow_left_small", "arrow_left", "arrow_right_small", "arrow_right", "arrow_top_left_circle", "arrow_up", "arrow", "arrows_left_right", "attach", "bank_with_card", "bank", "basket_with_squares", "basket", "bed", "bin", "block_arrow_right", "blocked_square", "blocked", "bold", "box_arrow_left", "boxed_shapes", "bulk_destroy", "bullet_list_dotted", "bullet_list_numbers", "bullet_list", "business", "calendar_today", "calendar", "call", "camera", "car_lock", "car_money", "car_repair", "card_view", "caret_down", "caret_large_down", "caret_large_left", "caret_large_right", "caret_large_up", "caret_left", "caret_right", "caret_up", "cart", "cash", "chart_bar", "chart_line", "chart_pie", "chat_notes", "chat", "chevron_down_thick", "chevron_down", "chevron_left_thick", "chevron_left", "chevron_right_thick", "chevron_right", "chevron_up_thick", "chevron_up", "circle_with_dots", "circles_connection", "clock", "close", "coins", "collaborate", "computer_clock", "connect", "construction", "contacts", "copy", "create", "credit_card_slash", "credit_card", "cross_circle", "cross", "csv", "dashboard", "delete", "delivery", "disconnect", "disputed", "document_right_align", "document_tick", "document_vertical_lines", "download", "draft", "drag_vertical", "drag", "drill", "dropdown", "duplicate", "edit", "edited", "ellipsis_horizontal", "ellipsis_vertical", "email_switch", "email", "entry", "envelope_dollar", "envelope_euro", "error_square", "error", "euro", "expand", "factory", "favourite_lined", "favourite", "fax", "feedback", "file_excel", "file_generic", "file_image", "file_pdf", "file_word", "files_leaning", "filter_new", "filter", "fit_height", "fit_width", "flag", "folder", "form_refresh", "gift", "go", "graduation_hat", "graph", "grid", "hand_cash_coins", "hand_cash_note", "help", "hide", "home", "image", "in_progress", "in_transit", "individual", "info", "italic", "key", "laptop", "ledger_arrow_left", "ledger_arrow_right", "ledger", "lightbulb_off", "lightbulb_on", "link", "list_view", "location", "locked", "logout", "lookup", "marker", "message", "minus_large", "minus", "mobile", "money_bag", "none", "old_warning", "palm_tree", "pause_circle", "pause", "pdf", "people_switch", "people", "percentage_boxed", "person_info", "person_tick", "person", "petrol_pump", "phone", "piggy_bank", "plane", "play_circle", "play", "plus_large", "plus", "pound", "print", "progress", "progressed", "question_hollow", "question_mark", "question", "refresh_clock", "refresh", "remove", "sage_coin", "save", "scan", "search", "services", "settings_old", "settings", "share", "shop", "sort_down", "sort_up", "spanner", "split_container", "split", "square_dot", "squares_nine", "stacked_boxes", "stacked_squares", "submitted", "sync", "tag", "talk", "theatre_masks", "three_boxes", "tick_circle", "tick_thick", "tick", "true_tick", "u_turn_left", "u_turn_right", "undo", "unlocked", "upload", "uploaded", "video", "view", "warning"]),
613
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
614
+ "inputRef": PropTypes.func,
615
+ "inputWidth": PropTypes.number,
616
+ "is": PropTypes.string,
617
+ "isLoading": PropTypes.bool,
618
+ "itemID": PropTypes.string,
619
+ "itemProp": PropTypes.string,
620
+ "itemRef": PropTypes.string,
621
+ "itemScope": PropTypes.bool,
622
+ "itemType": PropTypes.string,
623
+ "label": PropTypes.string,
624
+ "labelAlign": PropTypes.oneOf(["left", "right"]),
625
+ "labelHelp": PropTypes.node,
626
+ "labelId": PropTypes.string,
627
+ "labelInline": PropTypes.bool,
628
+ "labelSpacing": PropTypes.oneOf([1, 2]),
629
+ "labelWidth": PropTypes.number,
630
+ "lang": PropTypes.string,
631
+ "leftChildren": PropTypes.node,
632
+ "list": PropTypes.string,
633
+ "listMaxHeight": PropTypes.number,
634
+ "listPlacement": PropTypes.oneOf(["bottom", "left", "right", "top"]),
635
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
636
+ "__@toStringTag": PropTypes.string.isRequired,
637
+ "description": PropTypes.string,
638
+ "toString": PropTypes.func.isRequired,
639
+ "valueOf": PropTypes.func.isRequired
640
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
641
+ "__@toStringTag": PropTypes.string.isRequired,
642
+ "description": PropTypes.string,
643
+ "toString": PropTypes.func.isRequired,
644
+ "valueOf": PropTypes.func.isRequired
645
+ }), PropTypes.string]),
646
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
647
+ "__@toStringTag": PropTypes.string.isRequired,
648
+ "description": PropTypes.string,
649
+ "toString": PropTypes.func.isRequired,
650
+ "valueOf": PropTypes.func.isRequired
651
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
652
+ "__@toStringTag": PropTypes.string.isRequired,
653
+ "description": PropTypes.string,
654
+ "toString": PropTypes.func.isRequired,
655
+ "valueOf": PropTypes.func.isRequired
656
+ }), PropTypes.string]),
657
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
658
+ "__@toStringTag": PropTypes.string.isRequired,
659
+ "description": PropTypes.string,
660
+ "toString": PropTypes.func.isRequired,
661
+ "valueOf": PropTypes.func.isRequired
662
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
663
+ "__@toStringTag": PropTypes.string.isRequired,
664
+ "description": PropTypes.string,
665
+ "toString": PropTypes.func.isRequired,
666
+ "valueOf": PropTypes.func.isRequired
667
+ }), PropTypes.string]),
668
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
669
+ "__@toStringTag": PropTypes.string.isRequired,
670
+ "description": PropTypes.string,
671
+ "toString": PropTypes.func.isRequired,
672
+ "valueOf": PropTypes.func.isRequired
673
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
674
+ "__@toStringTag": PropTypes.string.isRequired,
675
+ "description": PropTypes.string,
676
+ "toString": PropTypes.func.isRequired,
677
+ "valueOf": PropTypes.func.isRequired
678
+ }), PropTypes.string]),
679
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
680
+ "__@toStringTag": PropTypes.string.isRequired,
681
+ "description": PropTypes.string,
682
+ "toString": PropTypes.func.isRequired,
683
+ "valueOf": PropTypes.func.isRequired
684
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
685
+ "__@toStringTag": PropTypes.string.isRequired,
686
+ "description": PropTypes.string,
687
+ "toString": PropTypes.func.isRequired,
688
+ "valueOf": PropTypes.func.isRequired
689
+ }), PropTypes.string]),
690
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
691
+ "__@toStringTag": PropTypes.string.isRequired,
692
+ "description": PropTypes.string,
693
+ "toString": PropTypes.func.isRequired,
694
+ "valueOf": PropTypes.func.isRequired
695
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
696
+ "__@toStringTag": PropTypes.string.isRequired,
697
+ "description": PropTypes.string,
698
+ "toString": PropTypes.func.isRequired,
699
+ "valueOf": PropTypes.func.isRequired
700
+ }), PropTypes.string]),
701
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
702
+ "__@toStringTag": PropTypes.string.isRequired,
703
+ "description": PropTypes.string,
704
+ "toString": PropTypes.func.isRequired,
705
+ "valueOf": PropTypes.func.isRequired
706
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
707
+ "__@toStringTag": PropTypes.string.isRequired,
708
+ "description": PropTypes.string,
709
+ "toString": PropTypes.func.isRequired,
710
+ "valueOf": PropTypes.func.isRequired
711
+ }), PropTypes.string]),
712
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
713
+ "__@toStringTag": PropTypes.string.isRequired,
714
+ "description": PropTypes.string,
715
+ "toString": PropTypes.func.isRequired,
716
+ "valueOf": PropTypes.func.isRequired
717
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
718
+ "__@toStringTag": PropTypes.string.isRequired,
719
+ "description": PropTypes.string,
720
+ "toString": PropTypes.func.isRequired,
721
+ "valueOf": PropTypes.func.isRequired
722
+ }), PropTypes.string]),
723
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
724
+ "maxLength": PropTypes.number,
725
+ "maxWidth": PropTypes.string,
726
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
727
+ "__@toStringTag": PropTypes.string.isRequired,
728
+ "description": PropTypes.string,
729
+ "toString": PropTypes.func.isRequired,
730
+ "valueOf": PropTypes.func.isRequired
731
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
732
+ "__@toStringTag": PropTypes.string.isRequired,
733
+ "description": PropTypes.string,
734
+ "toString": PropTypes.func.isRequired,
735
+ "valueOf": PropTypes.func.isRequired
736
+ }), PropTypes.string]),
737
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
738
+ "minLength": PropTypes.number,
739
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
740
+ "__@toStringTag": PropTypes.string.isRequired,
741
+ "description": PropTypes.string,
742
+ "toString": PropTypes.func.isRequired,
743
+ "valueOf": PropTypes.func.isRequired
744
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
745
+ "__@toStringTag": PropTypes.string.isRequired,
746
+ "description": PropTypes.string,
747
+ "toString": PropTypes.func.isRequired,
748
+ "valueOf": PropTypes.func.isRequired
749
+ }), PropTypes.string]),
750
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
751
+ "__@toStringTag": PropTypes.string.isRequired,
752
+ "description": PropTypes.string,
753
+ "toString": PropTypes.func.isRequired,
754
+ "valueOf": PropTypes.func.isRequired
755
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
756
+ "__@toStringTag": PropTypes.string.isRequired,
757
+ "description": PropTypes.string,
758
+ "toString": PropTypes.func.isRequired,
759
+ "valueOf": PropTypes.func.isRequired
760
+ }), PropTypes.string]),
761
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
762
+ "__@toStringTag": PropTypes.string.isRequired,
763
+ "description": PropTypes.string,
764
+ "toString": PropTypes.func.isRequired,
765
+ "valueOf": PropTypes.func.isRequired
766
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
767
+ "__@toStringTag": PropTypes.string.isRequired,
768
+ "description": PropTypes.string,
769
+ "toString": PropTypes.func.isRequired,
770
+ "valueOf": PropTypes.func.isRequired
771
+ }), PropTypes.string]),
772
+ "multiColumn": PropTypes.bool,
773
+ "multiple": PropTypes.bool,
774
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
775
+ "__@toStringTag": PropTypes.string.isRequired,
776
+ "description": PropTypes.string,
777
+ "toString": PropTypes.func.isRequired,
778
+ "valueOf": PropTypes.func.isRequired
779
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
780
+ "__@toStringTag": PropTypes.string.isRequired,
781
+ "description": PropTypes.string,
782
+ "toString": PropTypes.func.isRequired,
783
+ "valueOf": PropTypes.func.isRequired
784
+ }), PropTypes.string]),
785
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
786
+ "__@toStringTag": PropTypes.string.isRequired,
787
+ "description": PropTypes.string,
788
+ "toString": PropTypes.func.isRequired,
789
+ "valueOf": PropTypes.func.isRequired
790
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
791
+ "__@toStringTag": PropTypes.string.isRequired,
792
+ "description": PropTypes.string,
793
+ "toString": PropTypes.func.isRequired,
794
+ "valueOf": PropTypes.func.isRequired
795
+ }), PropTypes.string]),
796
+ "name": PropTypes.string,
797
+ "noResultsMessage": PropTypes.string,
798
+ "onAbort": PropTypes.func,
799
+ "onAbortCapture": PropTypes.func,
800
+ "onAnimationEnd": PropTypes.func,
801
+ "onAnimationEndCapture": PropTypes.func,
802
+ "onAnimationIteration": PropTypes.func,
803
+ "onAnimationIterationCapture": PropTypes.func,
804
+ "onAnimationStart": PropTypes.func,
805
+ "onAnimationStartCapture": PropTypes.func,
806
+ "onAuxClick": PropTypes.func,
807
+ "onAuxClickCapture": PropTypes.func,
808
+ "onBeforeInput": PropTypes.func,
809
+ "onBeforeInputCapture": PropTypes.func,
810
+ "onBlur": PropTypes.func,
811
+ "onBlurCapture": PropTypes.func,
812
+ "onCanPlay": PropTypes.func,
813
+ "onCanPlayCapture": PropTypes.func,
814
+ "onCanPlayThrough": PropTypes.func,
815
+ "onCanPlayThroughCapture": PropTypes.func,
816
+ "onChange": PropTypes.func,
817
+ "onChangeCapture": PropTypes.func,
818
+ "onChangeDeferred": PropTypes.func,
819
+ "onClick": PropTypes.func,
820
+ "onClickCapture": PropTypes.func,
821
+ "onCompositionEnd": PropTypes.func,
822
+ "onCompositionEndCapture": PropTypes.func,
823
+ "onCompositionStart": PropTypes.func,
824
+ "onCompositionStartCapture": PropTypes.func,
825
+ "onCompositionUpdate": PropTypes.func,
826
+ "onCompositionUpdateCapture": PropTypes.func,
827
+ "onContextMenu": PropTypes.func,
828
+ "onContextMenuCapture": PropTypes.func,
829
+ "onCopy": PropTypes.func,
830
+ "onCopyCapture": PropTypes.func,
831
+ "onCut": PropTypes.func,
832
+ "onCutCapture": PropTypes.func,
833
+ "onDoubleClick": PropTypes.func,
834
+ "onDoubleClickCapture": PropTypes.func,
835
+ "onDrag": PropTypes.func,
836
+ "onDragCapture": PropTypes.func,
837
+ "onDragEnd": PropTypes.func,
838
+ "onDragEndCapture": PropTypes.func,
839
+ "onDragEnter": PropTypes.func,
840
+ "onDragEnterCapture": PropTypes.func,
841
+ "onDragExit": PropTypes.func,
842
+ "onDragExitCapture": PropTypes.func,
843
+ "onDragLeave": PropTypes.func,
844
+ "onDragLeaveCapture": PropTypes.func,
845
+ "onDragOver": PropTypes.func,
846
+ "onDragOverCapture": PropTypes.func,
847
+ "onDragStart": PropTypes.func,
848
+ "onDragStartCapture": PropTypes.func,
849
+ "onDrop": PropTypes.func,
850
+ "onDropCapture": PropTypes.func,
851
+ "onDurationChange": PropTypes.func,
852
+ "onDurationChangeCapture": PropTypes.func,
853
+ "onEmptied": PropTypes.func,
854
+ "onEmptiedCapture": PropTypes.func,
855
+ "onEncrypted": PropTypes.func,
856
+ "onEncryptedCapture": PropTypes.func,
857
+ "onEnded": PropTypes.func,
858
+ "onEndedCapture": PropTypes.func,
859
+ "onError": PropTypes.func,
860
+ "onErrorCapture": PropTypes.func,
861
+ "onFilterChange": PropTypes.func,
862
+ "onFocus": PropTypes.func,
863
+ "onFocusCapture": PropTypes.func,
864
+ "onGotPointerCapture": PropTypes.func,
865
+ "onGotPointerCaptureCapture": PropTypes.func,
866
+ "onInput": PropTypes.func,
867
+ "onInputCapture": PropTypes.func,
868
+ "onInvalid": PropTypes.func,
869
+ "onInvalidCapture": PropTypes.func,
870
+ "onKeyDown": PropTypes.func,
871
+ "onKeyDownCapture": PropTypes.func,
872
+ "onKeyPress": PropTypes.func,
873
+ "onKeyPressCapture": PropTypes.func,
874
+ "onKeyUp": PropTypes.func,
875
+ "onKeyUpCapture": PropTypes.func,
876
+ "onLoad": PropTypes.func,
877
+ "onLoadCapture": PropTypes.func,
878
+ "onLoadedData": PropTypes.func,
879
+ "onLoadedDataCapture": PropTypes.func,
880
+ "onLoadedMetadata": PropTypes.func,
881
+ "onLoadedMetadataCapture": PropTypes.func,
882
+ "onLoadStart": PropTypes.func,
883
+ "onLoadStartCapture": PropTypes.func,
884
+ "onLostPointerCapture": PropTypes.func,
885
+ "onLostPointerCaptureCapture": PropTypes.func,
886
+ "onMouseDown": PropTypes.func,
887
+ "onMouseDownCapture": PropTypes.func,
888
+ "onMouseEnter": PropTypes.func,
889
+ "onMouseLeave": PropTypes.func,
890
+ "onMouseMove": PropTypes.func,
891
+ "onMouseMoveCapture": PropTypes.func,
892
+ "onMouseOut": PropTypes.func,
893
+ "onMouseOutCapture": PropTypes.func,
894
+ "onMouseOver": PropTypes.func,
895
+ "onMouseOverCapture": PropTypes.func,
896
+ "onMouseUp": PropTypes.func,
897
+ "onMouseUpCapture": PropTypes.func,
898
+ "onOpen": PropTypes.func,
899
+ "onPaste": PropTypes.func,
900
+ "onPasteCapture": PropTypes.func,
901
+ "onPause": PropTypes.func,
902
+ "onPauseCapture": PropTypes.func,
903
+ "onPlay": PropTypes.func,
904
+ "onPlayCapture": PropTypes.func,
905
+ "onPlaying": PropTypes.func,
906
+ "onPlayingCapture": PropTypes.func,
907
+ "onPointerCancel": PropTypes.func,
908
+ "onPointerCancelCapture": PropTypes.func,
909
+ "onPointerDown": PropTypes.func,
910
+ "onPointerDownCapture": PropTypes.func,
911
+ "onPointerEnter": PropTypes.func,
912
+ "onPointerEnterCapture": PropTypes.func,
913
+ "onPointerLeave": PropTypes.func,
914
+ "onPointerLeaveCapture": PropTypes.func,
915
+ "onPointerMove": PropTypes.func,
916
+ "onPointerMoveCapture": PropTypes.func,
917
+ "onPointerOut": PropTypes.func,
918
+ "onPointerOutCapture": PropTypes.func,
919
+ "onPointerOver": PropTypes.func,
920
+ "onPointerOverCapture": PropTypes.func,
921
+ "onPointerUp": PropTypes.func,
922
+ "onPointerUpCapture": PropTypes.func,
923
+ "onProgress": PropTypes.func,
924
+ "onProgressCapture": PropTypes.func,
925
+ "onRateChange": PropTypes.func,
926
+ "onRateChangeCapture": PropTypes.func,
927
+ "onReset": PropTypes.func,
928
+ "onResetCapture": PropTypes.func,
929
+ "onScroll": PropTypes.func,
930
+ "onScrollCapture": PropTypes.func,
931
+ "onSeeked": PropTypes.func,
932
+ "onSeekedCapture": PropTypes.func,
933
+ "onSeeking": PropTypes.func,
934
+ "onSeekingCapture": PropTypes.func,
935
+ "onSelect": PropTypes.func,
936
+ "onSelectCapture": PropTypes.func,
937
+ "onStalled": PropTypes.func,
938
+ "onStalledCapture": PropTypes.func,
939
+ "onSubmit": PropTypes.func,
940
+ "onSubmitCapture": PropTypes.func,
941
+ "onSuspend": PropTypes.func,
942
+ "onSuspendCapture": PropTypes.func,
943
+ "onTimeUpdate": PropTypes.func,
944
+ "onTimeUpdateCapture": PropTypes.func,
945
+ "onTouchCancel": PropTypes.func,
946
+ "onTouchCancelCapture": PropTypes.func,
947
+ "onTouchEnd": PropTypes.func,
948
+ "onTouchEndCapture": PropTypes.func,
949
+ "onTouchMove": PropTypes.func,
950
+ "onTouchMoveCapture": PropTypes.func,
951
+ "onTouchStart": PropTypes.func,
952
+ "onTouchStartCapture": PropTypes.func,
953
+ "onTransitionEnd": PropTypes.func,
954
+ "onTransitionEndCapture": PropTypes.func,
955
+ "onVolumeChange": PropTypes.func,
956
+ "onVolumeChangeCapture": PropTypes.func,
957
+ "onWaiting": PropTypes.func,
958
+ "onWaitingCapture": PropTypes.func,
959
+ "onWheel": PropTypes.func,
960
+ "onWheelCapture": PropTypes.func,
961
+ "openOnFocus": PropTypes.bool,
962
+ "pattern": PropTypes.string,
963
+ "placeholder": PropTypes.string,
964
+ "prefix": PropTypes.string,
965
+ "property": PropTypes.string,
966
+ "radioGroup": PropTypes.string,
967
+ "readOnly": PropTypes.bool,
968
+ "required": PropTypes.bool,
969
+ "resource": PropTypes.string,
970
+ "results": PropTypes.number,
971
+ "reverse": PropTypes.bool,
972
+ "role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
973
+ "__@iterator": PropTypes.func.isRequired,
974
+ "anchor": PropTypes.func.isRequired,
975
+ "at": PropTypes.func.isRequired,
976
+ "big": PropTypes.func.isRequired,
977
+ "blink": PropTypes.func.isRequired,
978
+ "bold": PropTypes.func.isRequired,
979
+ "charAt": PropTypes.func.isRequired,
980
+ "charCodeAt": PropTypes.func.isRequired,
981
+ "codePointAt": PropTypes.func.isRequired,
982
+ "concat": PropTypes.func.isRequired,
983
+ "endsWith": PropTypes.func.isRequired,
984
+ "fixed": PropTypes.func.isRequired,
985
+ "fontcolor": PropTypes.func.isRequired,
986
+ "fontsize": PropTypes.func.isRequired,
987
+ "includes": PropTypes.func.isRequired,
988
+ "indexOf": PropTypes.func.isRequired,
989
+ "italics": PropTypes.func.isRequired,
990
+ "lastIndexOf": PropTypes.func.isRequired,
991
+ "length": PropTypes.number.isRequired,
992
+ "link": PropTypes.func.isRequired,
993
+ "localeCompare": PropTypes.func.isRequired,
994
+ "match": PropTypes.func.isRequired,
995
+ "matchAll": PropTypes.func.isRequired,
996
+ "normalize": PropTypes.func.isRequired,
997
+ "padEnd": PropTypes.func.isRequired,
998
+ "padStart": PropTypes.func.isRequired,
999
+ "repeat": PropTypes.func.isRequired,
1000
+ "replace": PropTypes.func.isRequired,
1001
+ "search": PropTypes.func.isRequired,
1002
+ "slice": PropTypes.func.isRequired,
1003
+ "small": PropTypes.func.isRequired,
1004
+ "split": PropTypes.func.isRequired,
1005
+ "startsWith": PropTypes.func.isRequired,
1006
+ "strike": PropTypes.func.isRequired,
1007
+ "sub": PropTypes.func.isRequired,
1008
+ "substr": PropTypes.func.isRequired,
1009
+ "substring": PropTypes.func.isRequired,
1010
+ "sup": PropTypes.func.isRequired,
1011
+ "toLocaleLowerCase": PropTypes.func.isRequired,
1012
+ "toLocaleUpperCase": PropTypes.func.isRequired,
1013
+ "toLowerCase": PropTypes.func.isRequired,
1014
+ "toString": PropTypes.func.isRequired,
1015
+ "toUpperCase": PropTypes.func.isRequired,
1016
+ "trim": PropTypes.func.isRequired,
1017
+ "trimEnd": PropTypes.func.isRequired,
1018
+ "trimLeft": PropTypes.func.isRequired,
1019
+ "trimRight": PropTypes.func.isRequired,
1020
+ "trimStart": PropTypes.func.isRequired,
1021
+ "valueOf": PropTypes.func.isRequired
1022
+ })]),
1023
+ "security": PropTypes.string,
1024
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
1025
+ "slot": PropTypes.string,
1026
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
1027
+ "src": PropTypes.string,
1028
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
1029
+ "style": PropTypes.object,
1030
+ "suppressContentEditableWarning": PropTypes.bool,
1031
+ "suppressHydrationWarning": PropTypes.bool,
1032
+ "tabIndex": PropTypes.number,
1033
+ "tableHeader": PropTypes.node,
1034
+ "title": PropTypes.string,
1035
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
1036
+ "translate": PropTypes.oneOf(["no", "yes"]),
1037
+ "typeof": PropTypes.string,
1038
+ "unselectable": PropTypes.oneOf(["off", "on"]),
1039
+ "validationIconId": PropTypes.string,
1040
+ "validationOnLabel": PropTypes.bool,
1041
+ "value": PropTypes.arrayOf(PropTypes.string),
1042
+ "virtualScrollOverscan": PropTypes.number,
1043
+ "vocab": PropTypes.string,
1044
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
1045
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
1046
+ "wrapPillText": PropTypes.bool
577
1047
  };
1048
+ export { MultiSelect };
578
1049
  export default MultiSelect;