carbon-react 118.1.0 → 118.2.0

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 (346) hide show
  1. package/esm/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  2. package/esm/__internal__/input/input-presentation.style.js +1 -0
  3. package/esm/__internal__/input/input.style.js +1 -0
  4. package/esm/components/action-popover/action-popover.style.js +3 -0
  5. package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  6. package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  7. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  8. package/esm/components/badge/badge.style.js +1 -1
  9. package/esm/components/batch-selection/batch-selection.style.js +6 -0
  10. package/esm/components/box/box.component.d.ts +3 -0
  11. package/esm/components/box/box.component.js +4 -0
  12. package/esm/components/button/button.style.js +10 -9
  13. package/esm/components/button-bar/button-bar.style.js +19 -0
  14. package/esm/components/button-minor/button-minor.style.js +42 -40
  15. package/esm/components/button-toggle/button-toggle.component.js +2 -1
  16. package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
  17. package/esm/components/button-toggle/button-toggle.style.js +31 -13
  18. package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
  19. package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
  20. package/esm/components/card/__internal__/card-context/index.js +2 -0
  21. package/esm/components/card/card-footer/card-footer.component.js +9 -2
  22. package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
  23. package/esm/components/card/card-footer/card-footer.style.js +10 -1
  24. package/esm/components/card/card.component.d.ts +3 -2
  25. package/esm/components/card/card.component.js +10 -1
  26. package/esm/components/card/card.style.d.ts +2 -1
  27. package/esm/components/card/card.style.js +3 -1
  28. package/esm/components/carousel/carousel.component.js +1 -1
  29. package/esm/components/carousel/carousel.style.js +4 -2
  30. package/esm/components/carousel/slide/slide.style.js +2 -0
  31. package/esm/components/checkbox/checkbox.style.js +2 -0
  32. package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  33. package/esm/components/date/__internal__/navbar/button.style.js +2 -0
  34. package/esm/components/dialog/dialog.style.js +5 -0
  35. package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  36. package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
  37. package/esm/components/drawer/drawer.style.js +1 -0
  38. package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  39. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  40. package/esm/components/flat-table/flat-table.component.js +56 -2
  41. package/esm/components/flat-table/flat-table.style.js +101 -1
  42. package/esm/components/flat-table/sort/sort.style.js +1 -0
  43. package/esm/components/icon-button/icon-button.style.js +1 -0
  44. package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
  45. package/esm/components/link/link.style.js +1 -0
  46. package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  47. package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
  48. package/esm/components/link-preview/link-preview.style.js +1 -0
  49. package/esm/components/loader/loader-square.style.js +5 -0
  50. package/esm/components/loader-bar/loader-bar.style.js +1 -0
  51. package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
  52. package/esm/components/menu/menu.style.js +13 -6
  53. package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
  54. package/esm/components/message/message.style.js +2 -0
  55. package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
  56. package/esm/components/note/note.style.js +1 -0
  57. package/esm/components/numeral-date/numeral-date.component.js +2 -0
  58. package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
  59. package/esm/components/numeral-date/numeral-date.style.js +12 -0
  60. package/esm/components/pager/pager.component.js +5 -5
  61. package/esm/components/pager/pager.style.js +2 -0
  62. package/esm/components/pill/pill.component.d.ts +3 -1
  63. package/esm/components/pill/pill.component.js +1 -0
  64. package/esm/components/pill/pill.style.js +5 -15
  65. package/esm/components/pod/pod.style.js +6 -0
  66. package/esm/components/popover-container/popover-container.style.js +1 -0
  67. package/esm/components/portrait/portrait-gravatar.component.js +1 -1
  68. package/esm/components/portrait/portrait-initials.component.js +1 -1
  69. package/esm/components/portrait/portrait.component.js +1 -1
  70. package/esm/components/portrait/portrait.style.js +1 -3
  71. package/esm/components/profile/profile.component.js +1 -1
  72. package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
  73. package/esm/components/radio-button/radio-button.style.js +1 -1
  74. package/esm/components/search/search-button.style.js +5 -0
  75. package/esm/components/search/search.style.js +7 -0
  76. package/esm/components/select/__internal__/select-list-context.d.ts +7 -0
  77. package/esm/components/select/__internal__/select-text/index.d.ts +2 -0
  78. package/esm/components/select/__internal__/select-text/index.js +1 -0
  79. package/esm/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  80. package/esm/components/select/__internal__/select-text/select-text.component.js +16 -36
  81. package/esm/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  82. package/esm/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  83. package/esm/components/select/filterable-select/filterable-select.component.js +568 -102
  84. package/esm/components/select/filterable-select/index.d.ts +2 -1
  85. package/esm/components/select/filterable-select/index.js +1 -0
  86. package/esm/components/select/index.d.ts +6 -0
  87. package/esm/components/select/index.js +6 -6
  88. package/esm/components/select/list-action-button/index.d.ts +2 -0
  89. package/esm/components/select/list-action-button/index.js +1 -0
  90. package/esm/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  91. package/esm/components/select/list-action-button/list-action-button.component.js +9 -6
  92. package/esm/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  93. package/esm/components/select/multi-select/index.d.ts +2 -1
  94. package/esm/components/select/multi-select/index.js +1 -0
  95. package/esm/components/select/multi-select/multi-select.component.d.ts +62 -0
  96. package/esm/components/select/multi-select/multi-select.component.js +575 -104
  97. package/esm/components/select/multi-select/multi-select.style.d.ts +4 -0
  98. package/esm/components/select/multi-select/multi-select.style.js +1 -0
  99. package/esm/components/select/option/index.d.ts +2 -25
  100. package/esm/components/select/option/index.js +1 -0
  101. package/esm/components/select/option/option.component.d.ts +34 -0
  102. package/esm/components/select/option/option.component.js +399 -62
  103. package/esm/components/select/option/option.style.d.ts +6 -0
  104. package/esm/components/select/option/option.style.js +0 -5
  105. package/esm/components/select/option-group-header/index.d.ts +2 -10
  106. package/esm/components/select/option-group-header/index.js +1 -0
  107. package/esm/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  108. package/esm/components/select/option-group-header/option-group-header.component.js +4 -15
  109. package/esm/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  110. package/esm/components/select/option-row/index.d.ts +2 -16
  111. package/esm/components/select/option-row/index.js +1 -0
  112. package/esm/components/select/option-row/option-row.component.d.ts +42 -0
  113. package/esm/components/select/option-row/option-row.component.js +10 -40
  114. package/esm/components/select/option-row/option-row.style.d.ts +6 -0
  115. package/esm/components/select/select-list/index.d.ts +2 -0
  116. package/esm/components/select/select-list/index.js +1 -0
  117. package/esm/components/select/select-list/select-list-container.style.d.ts +6 -0
  118. package/esm/components/select/select-list/select-list-container.style.js +1 -0
  119. package/esm/components/select/select-list/select-list.component.d.ts +64 -0
  120. package/esm/components/select/select-list/select-list.component.js +69 -100
  121. package/esm/components/select/select-list/select-list.style.d.ts +12 -0
  122. package/esm/components/select/select-list/select-list.style.js +2 -2
  123. package/esm/components/select/select-textbox/index.d.ts +2 -1
  124. package/esm/components/select/select-textbox/index.js +1 -0
  125. package/esm/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  126. package/esm/components/select/select-textbox/select-textbox.component.js +567 -142
  127. package/esm/components/select/select.style.d.ts +8 -0
  128. package/esm/components/select/simple-select/index.d.ts +2 -1
  129. package/esm/components/select/simple-select/index.js +1 -0
  130. package/esm/components/select/simple-select/simple-select.component.d.ts +58 -0
  131. package/esm/components/select/simple-select/simple-select.component.js +578 -111
  132. package/esm/components/select/utils/get-next-child-by-text.d.ts +5 -0
  133. package/esm/components/select/utils/get-next-child-by-text.js +20 -17
  134. package/esm/components/select/utils/get-next-index-by-key.d.ts +2 -0
  135. package/esm/components/select/utils/highlight-part-of-text.d.ts +2 -0
  136. package/esm/components/select/utils/highlight-part-of-text.js +10 -3
  137. package/esm/components/select/utils/is-expected-option.d.ts +2 -0
  138. package/esm/components/select/utils/is-expected-option.js +1 -1
  139. package/esm/components/select/utils/is-expected-value.d.ts +1 -0
  140. package/esm/components/select/utils/is-expected-value.js +1 -1
  141. package/esm/components/select/utils/is-navigation-key.d.ts +1 -0
  142. package/esm/components/select/utils/matching-text.style.d.ts +2 -0
  143. package/esm/components/select/utils/with-filter.hoc.d.ts +14 -0
  144. package/esm/components/select/utils/with-filter.hoc.js +59 -41
  145. package/esm/components/split-button/split-button-children.style.d.ts +1 -0
  146. package/esm/components/split-button/split-button-children.style.js +28 -0
  147. package/esm/components/split-button/split-button-toggle.style.js +6 -1
  148. package/esm/components/split-button/split-button.style.js +5 -2
  149. package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
  150. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  151. package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  152. package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  153. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  154. package/esm/components/text-editor/text-editor.style.js +3 -0
  155. package/esm/components/tile/tile.component.d.ts +3 -1
  156. package/esm/components/tile/tile.component.js +3 -1
  157. package/esm/components/tile/tile.style.d.ts +1 -1
  158. package/esm/components/tile/tile.style.js +4 -1
  159. package/esm/components/tile-select/tile-select.style.d.ts +1 -0
  160. package/esm/components/tile-select/tile-select.style.js +8 -0
  161. package/esm/components/tooltip/tooltip.style.js +1 -0
  162. package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
  163. package/lib/__internal__/filter-object-properties/filter-object-properties.d.ts +1 -1
  164. package/lib/__internal__/input/input-presentation.style.js +1 -0
  165. package/lib/__internal__/input/input.style.js +1 -0
  166. package/lib/components/action-popover/action-popover.style.js +3 -0
  167. package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
  168. package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
  169. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
  170. package/lib/components/badge/badge.style.js +1 -1
  171. package/lib/components/batch-selection/batch-selection.style.js +6 -0
  172. package/lib/components/box/box.component.d.ts +3 -0
  173. package/lib/components/box/box.component.js +4 -0
  174. package/lib/components/button/button.style.js +10 -9
  175. package/lib/components/button-bar/button-bar.style.js +19 -0
  176. package/lib/components/button-minor/button-minor.style.js +42 -40
  177. package/lib/components/button-toggle/button-toggle.component.js +2 -1
  178. package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
  179. package/lib/components/button-toggle/button-toggle.style.js +31 -13
  180. package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
  181. package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
  182. package/lib/components/card/__internal__/card-context/index.js +14 -0
  183. package/lib/components/card/__internal__/card-context/package.json +6 -0
  184. package/lib/components/card/card-footer/card-footer.component.js +14 -2
  185. package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
  186. package/lib/components/card/card-footer/card-footer.style.js +10 -1
  187. package/lib/components/card/card.component.d.ts +3 -2
  188. package/lib/components/card/card.component.js +11 -1
  189. package/lib/components/card/card.style.d.ts +2 -1
  190. package/lib/components/card/card.style.js +3 -1
  191. package/lib/components/carousel/carousel.component.js +1 -1
  192. package/lib/components/carousel/carousel.style.js +4 -2
  193. package/lib/components/carousel/slide/slide.style.js +2 -0
  194. package/lib/components/checkbox/checkbox.style.js +2 -0
  195. package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
  196. package/lib/components/date/__internal__/navbar/button.style.js +2 -0
  197. package/lib/components/dialog/dialog.style.js +5 -0
  198. package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
  199. package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
  200. package/lib/components/drawer/drawer.style.js +1 -0
  201. package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
  202. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
  203. package/lib/components/flat-table/flat-table.component.js +60 -2
  204. package/lib/components/flat-table/flat-table.style.js +102 -1
  205. package/lib/components/flat-table/sort/sort.style.js +1 -0
  206. package/lib/components/icon-button/icon-button.style.js +1 -0
  207. package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
  208. package/lib/components/link/link.style.js +1 -0
  209. package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
  210. package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
  211. package/lib/components/link-preview/link-preview.style.js +1 -0
  212. package/lib/components/loader/loader-square.style.js +5 -0
  213. package/lib/components/loader-bar/loader-bar.style.js +1 -0
  214. package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
  215. package/lib/components/menu/menu.style.js +13 -6
  216. package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
  217. package/lib/components/message/message.style.js +2 -0
  218. package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
  219. package/lib/components/note/note.style.js +1 -0
  220. package/lib/components/numeral-date/numeral-date.component.js +2 -0
  221. package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
  222. package/lib/components/numeral-date/numeral-date.style.js +12 -0
  223. package/lib/components/pager/pager.component.js +5 -5
  224. package/lib/components/pager/pager.style.js +2 -0
  225. package/lib/components/pill/pill.component.d.ts +3 -1
  226. package/lib/components/pill/pill.component.js +1 -0
  227. package/lib/components/pill/pill.style.js +5 -15
  228. package/lib/components/pod/pod.style.js +6 -0
  229. package/lib/components/popover-container/popover-container.style.js +1 -0
  230. package/lib/components/portrait/portrait-gravatar.component.js +1 -1
  231. package/lib/components/portrait/portrait-initials.component.js +1 -1
  232. package/lib/components/portrait/portrait.component.js +1 -1
  233. package/lib/components/portrait/portrait.style.js +1 -3
  234. package/lib/components/profile/profile.component.js +1 -1
  235. package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
  236. package/lib/components/radio-button/radio-button.style.js +1 -1
  237. package/lib/components/search/search-button.style.js +5 -0
  238. package/lib/components/search/search.style.js +7 -0
  239. package/lib/components/select/__internal__/select-list-context.d.ts +7 -0
  240. package/lib/components/select/__internal__/select-text/index.d.ts +2 -0
  241. package/lib/components/select/__internal__/select-text/index.js +15 -0
  242. package/lib/components/select/__internal__/select-text/package.json +6 -0
  243. package/lib/components/select/__internal__/select-text/select-text.component.d.ts +33 -0
  244. package/lib/components/select/__internal__/select-text/select-text.component.js +16 -36
  245. package/lib/components/select/__internal__/select-text/select-text.style.d.ts +6 -1
  246. package/lib/components/select/filterable-select/filterable-select.component.d.ts +65 -0
  247. package/lib/components/select/filterable-select/filterable-select.component.js +569 -103
  248. package/lib/components/select/filterable-select/index.d.ts +2 -1
  249. package/lib/components/select/filterable-select/index.js +15 -0
  250. package/lib/components/select/filterable-select/package.json +6 -0
  251. package/lib/components/select/index.d.ts +6 -0
  252. package/lib/components/select/index.js +6 -6
  253. package/lib/components/select/list-action-button/index.d.ts +2 -0
  254. package/lib/components/select/list-action-button/index.js +15 -0
  255. package/lib/components/select/list-action-button/list-action-button.component.d.ts +7 -0
  256. package/lib/components/select/list-action-button/list-action-button.component.js +9 -6
  257. package/lib/components/select/list-action-button/list-action-button.style.d.ts +2 -0
  258. package/lib/components/select/list-action-button/package.json +6 -0
  259. package/lib/components/select/multi-select/index.d.ts +2 -1
  260. package/lib/components/select/multi-select/index.js +15 -0
  261. package/lib/components/select/multi-select/multi-select.component.d.ts +62 -0
  262. package/lib/components/select/multi-select/multi-select.component.js +576 -105
  263. package/lib/components/select/multi-select/multi-select.style.d.ts +4 -0
  264. package/lib/components/select/multi-select/multi-select.style.js +1 -0
  265. package/lib/components/select/multi-select/package.json +6 -0
  266. package/lib/components/select/option/index.d.ts +2 -25
  267. package/lib/components/select/option/index.js +15 -0
  268. package/lib/components/select/option/option.component.d.ts +34 -0
  269. package/lib/components/select/option/option.component.js +399 -62
  270. package/lib/components/select/option/option.style.d.ts +6 -0
  271. package/lib/components/select/option/option.style.js +0 -8
  272. package/lib/components/select/option/package.json +6 -0
  273. package/lib/components/select/option-group-header/index.d.ts +2 -10
  274. package/lib/components/select/option-group-header/index.js +15 -0
  275. package/lib/components/select/option-group-header/option-group-header.component.d.ts +16 -0
  276. package/lib/components/select/option-group-header/option-group-header.component.js +4 -15
  277. package/lib/components/select/option-group-header/option-group-header.style.d.ts +2 -0
  278. package/lib/components/select/option-group-header/package.json +6 -0
  279. package/lib/components/select/option-row/index.d.ts +2 -16
  280. package/lib/components/select/option-row/index.js +15 -0
  281. package/lib/components/select/option-row/option-row.component.d.ts +42 -0
  282. package/lib/components/select/option-row/option-row.component.js +10 -40
  283. package/lib/components/select/option-row/option-row.style.d.ts +6 -0
  284. package/lib/components/select/option-row/package.json +6 -0
  285. package/lib/components/select/select-list/index.d.ts +2 -0
  286. package/lib/components/select/select-list/index.js +15 -0
  287. package/lib/components/select/select-list/package.json +6 -0
  288. package/lib/components/select/select-list/select-list-container.style.d.ts +6 -0
  289. package/lib/components/select/select-list/select-list-container.style.js +1 -0
  290. package/lib/components/select/select-list/select-list.component.d.ts +64 -0
  291. package/lib/components/select/select-list/select-list.component.js +69 -100
  292. package/lib/components/select/select-list/select-list.style.d.ts +12 -0
  293. package/lib/components/select/select-list/select-list.style.js +2 -2
  294. package/lib/components/select/select-textbox/index.d.ts +2 -1
  295. package/lib/components/select/select-textbox/index.js +15 -0
  296. package/lib/components/select/select-textbox/package.json +6 -0
  297. package/lib/components/select/select-textbox/select-textbox.component.d.ts +81 -0
  298. package/lib/components/select/select-textbox/select-textbox.component.js +567 -142
  299. package/lib/components/select/select.style.d.ts +8 -0
  300. package/lib/components/select/simple-select/index.d.ts +2 -1
  301. package/lib/components/select/simple-select/index.js +15 -0
  302. package/lib/components/select/simple-select/package.json +6 -0
  303. package/lib/components/select/simple-select/simple-select.component.d.ts +58 -0
  304. package/lib/components/select/simple-select/simple-select.component.js +579 -113
  305. package/lib/components/select/utils/get-next-child-by-text.d.ts +5 -0
  306. package/lib/components/select/utils/get-next-child-by-text.js +20 -17
  307. package/lib/components/select/utils/get-next-index-by-key.d.ts +2 -0
  308. package/lib/components/select/utils/highlight-part-of-text.d.ts +2 -0
  309. package/lib/components/select/utils/highlight-part-of-text.js +10 -3
  310. package/lib/components/select/utils/is-expected-option.d.ts +2 -0
  311. package/lib/components/select/utils/is-expected-option.js +1 -1
  312. package/lib/components/select/utils/is-expected-value.d.ts +1 -0
  313. package/lib/components/select/utils/is-expected-value.js +1 -1
  314. package/lib/components/select/utils/is-navigation-key.d.ts +1 -0
  315. package/lib/components/select/utils/matching-text.style.d.ts +2 -0
  316. package/lib/components/select/utils/with-filter.hoc.d.ts +14 -0
  317. package/lib/components/select/utils/with-filter.hoc.js +59 -42
  318. package/lib/components/split-button/split-button-children.style.d.ts +1 -0
  319. package/lib/components/split-button/split-button-children.style.js +30 -1
  320. package/lib/components/split-button/split-button-toggle.style.js +6 -1
  321. package/lib/components/split-button/split-button.style.js +5 -2
  322. package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
  323. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +1 -0
  324. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
  325. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
  326. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
  327. package/lib/components/text-editor/text-editor.style.js +3 -0
  328. package/lib/components/tile/tile.component.d.ts +3 -1
  329. package/lib/components/tile/tile.component.js +3 -1
  330. package/lib/components/tile/tile.style.d.ts +1 -1
  331. package/lib/components/tile/tile.style.js +4 -1
  332. package/lib/components/tile-select/tile-select.style.d.ts +1 -0
  333. package/lib/components/tile-select/tile-select.style.js +8 -0
  334. package/lib/components/tooltip/tooltip.style.js +1 -0
  335. package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
  336. package/package.json +1 -1
  337. package/esm/components/select/__internal__/select-text/select-text.d.ts +0 -36
  338. package/esm/components/select/filterable-select/filterable-select.d.ts +0 -71
  339. package/esm/components/select/multi-select/multi-select.d.ts +0 -68
  340. package/esm/components/select/select-textbox/select-textbox.d.ts +0 -72
  341. package/esm/components/select/simple-select/simple-select.d.ts +0 -64
  342. package/lib/components/select/__internal__/select-text/select-text.d.ts +0 -36
  343. package/lib/components/select/filterable-select/filterable-select.d.ts +0 -71
  344. package/lib/components/select/multi-select/multi-select.d.ts +0 -68
  345. package/lib/components/select/select-textbox/select-textbox.d.ts +0 -72
  346. package/lib/components/select/simple-select/simple-select.d.ts +0 -64
@@ -4,7 +4,7 @@ import React, { useState, useEffect, useRef, useCallback } 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 StyledSelect from "../select.style";
@@ -46,7 +46,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
46
46
  onListScrollBottom,
47
47
  tableHeader,
48
48
  multiColumn,
49
- "data-component": dataComponent,
49
+ "data-component": dataComponent = "filterable-select",
50
50
  "data-element": dataElement,
51
51
  "data-role": dataRole,
52
52
  tooltipPosition,
@@ -59,8 +59,8 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
59
59
  }, ref) => {
60
60
  const [activeDescendantId, setActiveDescendantId] = useState();
61
61
  const selectListId = useRef(guid());
62
- const containerRef = useRef();
63
- const listboxRef = useRef();
62
+ const containerRef = useRef(null);
63
+ const listboxRef = useRef(null);
64
64
  const isControlled = useRef(value !== undefined);
65
65
  const isMouseDownReported = useRef(false);
66
66
  const isInputFocused = useRef(false);
@@ -109,6 +109,16 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
109
109
  onChange(createCustomEvent(newValue));
110
110
  }
111
111
  }, [onChange, createCustomEvent]);
112
+
113
+ function findElementWithMatchingText(textToMatch, list) {
114
+ return list.find(child => {
115
+ const {
116
+ text
117
+ } = child.props;
118
+ return text && text.toLowerCase().indexOf(textToMatch.toLowerCase()) !== -1;
119
+ });
120
+ }
121
+
112
122
  const updateValues = useCallback((newFilterText, isDeleteEvent) => {
113
123
  setSelectedValue(previousValue => {
114
124
  const match = findElementWithMatchingText(newFilterText, children);
@@ -141,8 +151,8 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
141
151
  return match.props.value;
142
152
  });
143
153
  }, [children, triggerChange]);
144
- const setMatchingText = useCallback((newValue, isClosing) => {
145
- const matchingOption = React.Children.toArray(children).find(child => isExpectedOption(child, newValue));
154
+ const setMatchingText = useCallback((newValue, isClosing = false) => {
155
+ const matchingOption = React.Children.toArray(children).find(child => /*#__PURE__*/React.isValidElement(child) && isExpectedOption(child, newValue));
146
156
 
147
157
  if (!matchingOption || matchingOption.props.text === undefined) {
148
158
  setTextValue(filterText || "");
@@ -280,7 +290,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
280
290
 
281
291
  if (selectionType === "tab") {
282
292
  setOpen(false);
283
- textboxRef.focus();
293
+ textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.focus();
284
294
  return;
285
295
  }
286
296
 
@@ -295,8 +305,8 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
295
305
 
296
306
  if (selectionType !== "navigationKey") {
297
307
  setOpen(false);
298
- textboxRef.focus();
299
- textboxRef.select();
308
+ textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.focus();
309
+ textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.select();
300
310
  }
301
311
  }, [textboxRef, triggerChange]);
302
312
  const onSelectListClose = useCallback(() => {
@@ -325,7 +335,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
325
335
  }
326
336
 
327
337
  function handleTextboxFocus(event) {
328
- const triggerFocus = () => onFocus(event);
338
+ const triggerFocus = () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
329
339
 
330
340
  if (openOnFocus) {
331
341
  setOpen(isAlreadyOpen => {
@@ -367,7 +377,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
367
377
  function handleTextboxMouseDown(event) {
368
378
  isMouseDownReported.current = true;
369
379
 
370
- if (event.target.attributes["data-element"] && event.target.attributes["data-element"].value === "input") {
380
+ if (event.target.dataset.element === "input") {
371
381
  isMouseDownOnInput.current = true;
372
382
  }
373
383
  }
@@ -376,18 +386,9 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
376
386
  isMouseDownReported.current = true;
377
387
  }
378
388
 
379
- function findElementWithMatchingText(textToMatch, list) {
380
- return list.find(child => {
381
- const {
382
- text
383
- } = child.props;
384
- return text && text.toLowerCase().indexOf(textToMatch.toLowerCase()) !== -1;
385
- });
386
- }
387
-
388
389
  function handleOnListAction() {
389
390
  setOpen(false);
390
- onListAction();
391
+ onListAction === null || onListAction === void 0 ? void 0 : onListAction();
391
392
  }
392
393
 
393
394
  const assignInput = useCallback(element => {
@@ -432,7 +433,7 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
432
433
  ref: listboxRef,
433
434
  id: selectListId.current,
434
435
  labelId: labelId,
435
- anchorElement: textboxRef && textboxRef.parentElement,
436
+ anchorElement: (textboxRef === null || textboxRef === void 0 ? void 0 : textboxRef.parentElement) || undefined,
436
437
  onSelect: onSelectOption,
437
438
  onSelectListClose: onSelectListClose,
438
439
  onMouseDown: handleListMouseDown,
@@ -444,7 +445,6 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
444
445
  listMaxHeight: listMaxHeight,
445
446
  onListAction: handleOnListAction,
446
447
  isLoading: isLoading,
447
- readOnly: readOnly,
448
448
  onListScrollBottom: onListScrollBottom,
449
449
  tableHeader: tableHeader,
450
450
  multiColumn: multiColumn,
@@ -477,89 +477,555 @@ const FilterableSelect = /*#__PURE__*/React.forwardRef(({
477
477
  textboxRef: textboxRef
478
478
  }, getTextboxProps()))), selectList);
479
479
  });
480
- FilterableSelect.propTypes = { ...formInputPropTypes,
481
-
482
- /** Prop to specify the aria-label attribute of the component input */
480
+ FilterableSelect.propTypes = {
481
+ "about": PropTypes.string,
482
+ "accept": PropTypes.string,
483
+ "accessibilityLabelId": PropTypes.string,
484
+ "accessKey": PropTypes.string,
485
+ "adaptiveLabelBreakpoint": PropTypes.number,
486
+ "align": PropTypes.oneOf(["left", "right"]),
487
+ "alt": PropTypes.string,
488
+ "aria-activedescendant": PropTypes.string,
489
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
490
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
491
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
492
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
493
+ "aria-colcount": PropTypes.number,
494
+ "aria-colindex": PropTypes.number,
495
+ "aria-colspan": PropTypes.number,
496
+ "aria-controls": PropTypes.string,
497
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
498
+ "aria-describedby": PropTypes.string,
499
+ "aria-details": PropTypes.string,
500
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
501
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
502
+ "aria-errormessage": PropTypes.string,
503
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
504
+ "aria-flowto": PropTypes.string,
505
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
506
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
507
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
508
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
509
+ "aria-keyshortcuts": PropTypes.string,
483
510
  "aria-label": PropTypes.string,
484
-
485
- /** Prop to specify the aria-labeledby property of the component input */
486
511
  "aria-labelledby": PropTypes.string,
487
-
488
- /** Identifier used for testing purposes, applied to the root element of the component. */
512
+ "aria-level": PropTypes.number,
513
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
514
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
515
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
516
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
517
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
518
+ "aria-owns": PropTypes.string,
519
+ "aria-placeholder": PropTypes.string,
520
+ "aria-posinset": PropTypes.number,
521
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
522
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
523
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
524
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
525
+ "aria-roledescription": PropTypes.string,
526
+ "aria-rowcount": PropTypes.number,
527
+ "aria-rowindex": PropTypes.number,
528
+ "aria-rowspan": PropTypes.number,
529
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
530
+ "aria-setsize": PropTypes.number,
531
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
532
+ "aria-valuemax": PropTypes.number,
533
+ "aria-valuemin": PropTypes.number,
534
+ "aria-valuenow": PropTypes.number,
535
+ "aria-valuetext": PropTypes.string,
536
+ "ariaDescribedBy": PropTypes.string,
537
+ "ariaLabel": PropTypes.string,
538
+ "ariaLabelledby": PropTypes.string,
539
+ "as": PropTypes.elementType,
540
+ "autoCapitalize": PropTypes.string,
541
+ "autoComplete": PropTypes.string,
542
+ "autoCorrect": PropTypes.string,
543
+ "autoFocus": PropTypes.bool,
544
+ "autoSave": PropTypes.string,
545
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
546
+ "checked": PropTypes.bool,
547
+ "children": PropTypes.node,
548
+ "className": PropTypes.string,
549
+ "color": PropTypes.string,
550
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
551
+ "contextMenu": PropTypes.string,
552
+ "crossOrigin": PropTypes.string,
553
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
554
+ "__emotion_styles": PropTypes.any.isRequired
555
+ }), PropTypes.string, PropTypes.bool]),
556
+ "dangerouslySetInnerHTML": PropTypes.shape({
557
+ "__html": PropTypes.string.isRequired
558
+ }),
489
559
  "data-component": PropTypes.string,
490
-
491
- /** Identifier used for testing purposes, applied to the root element of the component. */
492
560
  "data-element": PropTypes.string,
493
-
494
- /** Identifier used for testing purposes, applied to the root element of the component. */
495
561
  "data-role": PropTypes.string,
496
-
497
- /** Boolean to toggle where SelectList is rendered in relation to the Select Input */
498
- disablePortal: PropTypes.bool,
499
-
500
- /** The selected value(s), when the component is operating in controlled mode */
501
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
502
-
503
- /** The default selected value(s), when the component is operating in uncontrolled mode */
504
- defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
505
-
506
- /** Child components (such as Option or OptionRow) for the SelectList */
507
- children: PropTypes.node.isRequired,
508
-
509
- /** A custom callback for when the input text changes */
510
- onFilterChange: PropTypes.func,
511
-
512
- /** A custom callback for when the dropdown menu opens */
513
- onOpen: PropTypes.func,
514
-
515
- /** If true the Component opens on focus */
516
- openOnFocus: PropTypes.bool,
517
-
518
- /** SelectList table header, should consist of multiple th elements.
519
- Works only in multiColumn mode */
520
- tableHeader: PropTypes.node,
521
-
522
- /** When true component will work in multi column mode.
523
- Children should consist of OptionRow components in this mode */
524
- multiColumn: PropTypes.bool,
525
-
526
- /** A custom message to be displayed when any option does not match the filter text */
527
- noResultsMessage: PropTypes.string,
528
-
529
- /** True for default text button or a Button Component to be rendered */
530
- listActionButton: PropTypes.oneOfType([PropTypes.bool, PropTypes.element]),
531
-
532
- /** A callback for when the Action Button is triggered */
533
- onListAction: PropTypes.func,
534
-
535
- /** If true the loader animation is displayed in the option list */
536
- isLoading: PropTypes.bool,
537
-
538
- /** A callback that is triggered when a user scrolls to the bottom of the list */
539
- onListScrollBottom: PropTypes.func,
540
-
541
- /** Overrides the default tooltip position */
542
- tooltipPosition: PropTypes.oneOf(["top", "bottom", "left", "right"]),
543
-
544
- /** Maximum list height - defaults to 180 */
545
- listMaxHeight: PropTypes.number,
546
-
547
- /** Placement of the select list in relation to the input element */
548
- listPlacement: PropTypes.oneOf(["top", "bottom", "right", "left"]),
549
-
550
- /** Use the opposite list placement if the set placement does not fit */
551
- flipEnabled: PropTypes.bool,
552
-
553
- /** Set this prop to enable a virtualised list of options. If it is not used then all options will be in the
554
- * DOM at all times, which may cause performance problems on very large lists */
555
- enableVirtualScroll: PropTypes.bool,
556
-
557
- /** The number of options to render into the DOM at once, either side of the currently-visible ones.
558
- * Higher values make for smoother scrolling but may impact performance.
559
- * Only used if the `enableVirtualScroll` prop is set. */
560
- virtualScrollOverscan: PropTypes.number
561
- };
562
- FilterableSelect.defaultProps = {
563
- "data-component": "filterable-select"
562
+ "datatype": PropTypes.string,
563
+ "defaultChecked": PropTypes.bool,
564
+ "defaultValue": PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
565
+ "deferTimeout": PropTypes.number,
566
+ "dir": PropTypes.string,
567
+ "disabled": PropTypes.bool,
568
+ "disablePortal": PropTypes.bool,
569
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
570
+ "enableVirtualScroll": PropTypes.bool,
571
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
572
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
573
+ "fieldHelp": PropTypes.node,
574
+ "flipEnabled": PropTypes.bool,
575
+ "form": PropTypes.string,
576
+ "formAction": PropTypes.string,
577
+ "formattedValue": PropTypes.string,
578
+ "formEncType": PropTypes.string,
579
+ "formMethod": PropTypes.string,
580
+ "formNoValidate": PropTypes.bool,
581
+ "formTarget": PropTypes.string,
582
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
583
+ "helpAriaLabel": PropTypes.string,
584
+ "hidden": PropTypes.bool,
585
+ "iconOnClick": PropTypes.func,
586
+ "iconOnMouseDown": PropTypes.func,
587
+ "iconTabIndex": PropTypes.number,
588
+ "id": PropTypes.string,
589
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
590
+ "inlist": PropTypes.any,
591
+ "inputHint": PropTypes.string,
592
+ "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"]),
593
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
594
+ "inputRef": PropTypes.func,
595
+ "inputWidth": PropTypes.number,
596
+ "is": PropTypes.string,
597
+ "isLoading": PropTypes.bool,
598
+ "itemID": PropTypes.string,
599
+ "itemProp": PropTypes.string,
600
+ "itemRef": PropTypes.string,
601
+ "itemScope": PropTypes.bool,
602
+ "itemType": PropTypes.string,
603
+ "label": PropTypes.string,
604
+ "labelAlign": PropTypes.oneOf(["left", "right"]),
605
+ "labelHelp": PropTypes.node,
606
+ "labelId": PropTypes.string,
607
+ "labelInline": PropTypes.bool,
608
+ "labelSpacing": PropTypes.oneOf([1, 2]),
609
+ "labelWidth": PropTypes.number,
610
+ "lang": PropTypes.string,
611
+ "leftChildren": PropTypes.node,
612
+ "list": PropTypes.string,
613
+ "listActionButton": PropTypes.oneOfType([PropTypes.element, PropTypes.bool]),
614
+ "listMaxHeight": PropTypes.number,
615
+ "listPlacement": PropTypes.oneOf(["bottom", "left", "right", "top"]),
616
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
617
+ "__@toStringTag": PropTypes.string.isRequired,
618
+ "description": PropTypes.string,
619
+ "toString": PropTypes.func.isRequired,
620
+ "valueOf": PropTypes.func.isRequired
621
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
622
+ "__@toStringTag": PropTypes.string.isRequired,
623
+ "description": PropTypes.string,
624
+ "toString": PropTypes.func.isRequired,
625
+ "valueOf": PropTypes.func.isRequired
626
+ }), PropTypes.string]),
627
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
628
+ "__@toStringTag": PropTypes.string.isRequired,
629
+ "description": PropTypes.string,
630
+ "toString": PropTypes.func.isRequired,
631
+ "valueOf": PropTypes.func.isRequired
632
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
633
+ "__@toStringTag": PropTypes.string.isRequired,
634
+ "description": PropTypes.string,
635
+ "toString": PropTypes.func.isRequired,
636
+ "valueOf": PropTypes.func.isRequired
637
+ }), PropTypes.string]),
638
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
639
+ "__@toStringTag": PropTypes.string.isRequired,
640
+ "description": PropTypes.string,
641
+ "toString": PropTypes.func.isRequired,
642
+ "valueOf": PropTypes.func.isRequired
643
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
644
+ "__@toStringTag": PropTypes.string.isRequired,
645
+ "description": PropTypes.string,
646
+ "toString": PropTypes.func.isRequired,
647
+ "valueOf": PropTypes.func.isRequired
648
+ }), PropTypes.string]),
649
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
650
+ "__@toStringTag": PropTypes.string.isRequired,
651
+ "description": PropTypes.string,
652
+ "toString": PropTypes.func.isRequired,
653
+ "valueOf": PropTypes.func.isRequired
654
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
655
+ "__@toStringTag": PropTypes.string.isRequired,
656
+ "description": PropTypes.string,
657
+ "toString": PropTypes.func.isRequired,
658
+ "valueOf": PropTypes.func.isRequired
659
+ }), PropTypes.string]),
660
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
661
+ "__@toStringTag": PropTypes.string.isRequired,
662
+ "description": PropTypes.string,
663
+ "toString": PropTypes.func.isRequired,
664
+ "valueOf": PropTypes.func.isRequired
665
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
666
+ "__@toStringTag": PropTypes.string.isRequired,
667
+ "description": PropTypes.string,
668
+ "toString": PropTypes.func.isRequired,
669
+ "valueOf": PropTypes.func.isRequired
670
+ }), PropTypes.string]),
671
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
672
+ "__@toStringTag": PropTypes.string.isRequired,
673
+ "description": PropTypes.string,
674
+ "toString": PropTypes.func.isRequired,
675
+ "valueOf": PropTypes.func.isRequired
676
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
677
+ "__@toStringTag": PropTypes.string.isRequired,
678
+ "description": PropTypes.string,
679
+ "toString": PropTypes.func.isRequired,
680
+ "valueOf": PropTypes.func.isRequired
681
+ }), PropTypes.string]),
682
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
683
+ "__@toStringTag": PropTypes.string.isRequired,
684
+ "description": PropTypes.string,
685
+ "toString": PropTypes.func.isRequired,
686
+ "valueOf": PropTypes.func.isRequired
687
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
688
+ "__@toStringTag": PropTypes.string.isRequired,
689
+ "description": PropTypes.string,
690
+ "toString": PropTypes.func.isRequired,
691
+ "valueOf": PropTypes.func.isRequired
692
+ }), PropTypes.string]),
693
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
694
+ "__@toStringTag": PropTypes.string.isRequired,
695
+ "description": PropTypes.string,
696
+ "toString": PropTypes.func.isRequired,
697
+ "valueOf": PropTypes.func.isRequired
698
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
699
+ "__@toStringTag": PropTypes.string.isRequired,
700
+ "description": PropTypes.string,
701
+ "toString": PropTypes.func.isRequired,
702
+ "valueOf": PropTypes.func.isRequired
703
+ }), PropTypes.string]),
704
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
705
+ "maxLength": PropTypes.number,
706
+ "maxWidth": PropTypes.string,
707
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
708
+ "__@toStringTag": PropTypes.string.isRequired,
709
+ "description": PropTypes.string,
710
+ "toString": PropTypes.func.isRequired,
711
+ "valueOf": PropTypes.func.isRequired
712
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
713
+ "__@toStringTag": PropTypes.string.isRequired,
714
+ "description": PropTypes.string,
715
+ "toString": PropTypes.func.isRequired,
716
+ "valueOf": PropTypes.func.isRequired
717
+ }), PropTypes.string]),
718
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
719
+ "minLength": PropTypes.number,
720
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
721
+ "__@toStringTag": PropTypes.string.isRequired,
722
+ "description": PropTypes.string,
723
+ "toString": PropTypes.func.isRequired,
724
+ "valueOf": PropTypes.func.isRequired
725
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
726
+ "__@toStringTag": PropTypes.string.isRequired,
727
+ "description": PropTypes.string,
728
+ "toString": PropTypes.func.isRequired,
729
+ "valueOf": PropTypes.func.isRequired
730
+ }), PropTypes.string]),
731
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
732
+ "__@toStringTag": PropTypes.string.isRequired,
733
+ "description": PropTypes.string,
734
+ "toString": PropTypes.func.isRequired,
735
+ "valueOf": PropTypes.func.isRequired
736
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
737
+ "__@toStringTag": PropTypes.string.isRequired,
738
+ "description": PropTypes.string,
739
+ "toString": PropTypes.func.isRequired,
740
+ "valueOf": PropTypes.func.isRequired
741
+ }), PropTypes.string]),
742
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
743
+ "__@toStringTag": PropTypes.string.isRequired,
744
+ "description": PropTypes.string,
745
+ "toString": PropTypes.func.isRequired,
746
+ "valueOf": PropTypes.func.isRequired
747
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
748
+ "__@toStringTag": PropTypes.string.isRequired,
749
+ "description": PropTypes.string,
750
+ "toString": PropTypes.func.isRequired,
751
+ "valueOf": PropTypes.func.isRequired
752
+ }), PropTypes.string]),
753
+ "multiColumn": PropTypes.bool,
754
+ "multiple": PropTypes.bool,
755
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
756
+ "__@toStringTag": PropTypes.string.isRequired,
757
+ "description": PropTypes.string,
758
+ "toString": PropTypes.func.isRequired,
759
+ "valueOf": PropTypes.func.isRequired
760
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
761
+ "__@toStringTag": PropTypes.string.isRequired,
762
+ "description": PropTypes.string,
763
+ "toString": PropTypes.func.isRequired,
764
+ "valueOf": PropTypes.func.isRequired
765
+ }), PropTypes.string]),
766
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
767
+ "__@toStringTag": PropTypes.string.isRequired,
768
+ "description": PropTypes.string,
769
+ "toString": PropTypes.func.isRequired,
770
+ "valueOf": PropTypes.func.isRequired
771
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
772
+ "__@toStringTag": PropTypes.string.isRequired,
773
+ "description": PropTypes.string,
774
+ "toString": PropTypes.func.isRequired,
775
+ "valueOf": PropTypes.func.isRequired
776
+ }), PropTypes.string]),
777
+ "name": PropTypes.string,
778
+ "noResultsMessage": PropTypes.string,
779
+ "onAbort": PropTypes.func,
780
+ "onAbortCapture": PropTypes.func,
781
+ "onAnimationEnd": PropTypes.func,
782
+ "onAnimationEndCapture": PropTypes.func,
783
+ "onAnimationIteration": PropTypes.func,
784
+ "onAnimationIterationCapture": PropTypes.func,
785
+ "onAnimationStart": PropTypes.func,
786
+ "onAnimationStartCapture": PropTypes.func,
787
+ "onAuxClick": PropTypes.func,
788
+ "onAuxClickCapture": PropTypes.func,
789
+ "onBeforeInput": PropTypes.func,
790
+ "onBeforeInputCapture": PropTypes.func,
791
+ "onBlur": PropTypes.func,
792
+ "onBlurCapture": PropTypes.func,
793
+ "onCanPlay": PropTypes.func,
794
+ "onCanPlayCapture": PropTypes.func,
795
+ "onCanPlayThrough": PropTypes.func,
796
+ "onCanPlayThroughCapture": PropTypes.func,
797
+ "onChange": PropTypes.func,
798
+ "onChangeCapture": PropTypes.func,
799
+ "onChangeDeferred": PropTypes.func,
800
+ "onClick": PropTypes.func,
801
+ "onClickCapture": PropTypes.func,
802
+ "onCompositionEnd": PropTypes.func,
803
+ "onCompositionEndCapture": PropTypes.func,
804
+ "onCompositionStart": PropTypes.func,
805
+ "onCompositionStartCapture": PropTypes.func,
806
+ "onCompositionUpdate": PropTypes.func,
807
+ "onCompositionUpdateCapture": PropTypes.func,
808
+ "onContextMenu": PropTypes.func,
809
+ "onContextMenuCapture": PropTypes.func,
810
+ "onCopy": PropTypes.func,
811
+ "onCopyCapture": PropTypes.func,
812
+ "onCut": PropTypes.func,
813
+ "onCutCapture": PropTypes.func,
814
+ "onDoubleClick": PropTypes.func,
815
+ "onDoubleClickCapture": PropTypes.func,
816
+ "onDrag": PropTypes.func,
817
+ "onDragCapture": PropTypes.func,
818
+ "onDragEnd": PropTypes.func,
819
+ "onDragEndCapture": PropTypes.func,
820
+ "onDragEnter": PropTypes.func,
821
+ "onDragEnterCapture": PropTypes.func,
822
+ "onDragExit": PropTypes.func,
823
+ "onDragExitCapture": PropTypes.func,
824
+ "onDragLeave": PropTypes.func,
825
+ "onDragLeaveCapture": PropTypes.func,
826
+ "onDragOver": PropTypes.func,
827
+ "onDragOverCapture": PropTypes.func,
828
+ "onDragStart": PropTypes.func,
829
+ "onDragStartCapture": PropTypes.func,
830
+ "onDrop": PropTypes.func,
831
+ "onDropCapture": PropTypes.func,
832
+ "onDurationChange": PropTypes.func,
833
+ "onDurationChangeCapture": PropTypes.func,
834
+ "onEmptied": PropTypes.func,
835
+ "onEmptiedCapture": PropTypes.func,
836
+ "onEncrypted": PropTypes.func,
837
+ "onEncryptedCapture": PropTypes.func,
838
+ "onEnded": PropTypes.func,
839
+ "onEndedCapture": PropTypes.func,
840
+ "onError": PropTypes.func,
841
+ "onErrorCapture": PropTypes.func,
842
+ "onFilterChange": PropTypes.func,
843
+ "onFocus": PropTypes.func,
844
+ "onFocusCapture": PropTypes.func,
845
+ "onGotPointerCapture": PropTypes.func,
846
+ "onGotPointerCaptureCapture": PropTypes.func,
847
+ "onInput": PropTypes.func,
848
+ "onInputCapture": PropTypes.func,
849
+ "onInvalid": PropTypes.func,
850
+ "onInvalidCapture": PropTypes.func,
851
+ "onKeyDown": PropTypes.func,
852
+ "onKeyDownCapture": PropTypes.func,
853
+ "onKeyPress": PropTypes.func,
854
+ "onKeyPressCapture": PropTypes.func,
855
+ "onKeyUp": PropTypes.func,
856
+ "onKeyUpCapture": PropTypes.func,
857
+ "onListAction": PropTypes.func,
858
+ "onListScrollBottom": PropTypes.func,
859
+ "onLoad": PropTypes.func,
860
+ "onLoadCapture": PropTypes.func,
861
+ "onLoadedData": PropTypes.func,
862
+ "onLoadedDataCapture": PropTypes.func,
863
+ "onLoadedMetadata": PropTypes.func,
864
+ "onLoadedMetadataCapture": PropTypes.func,
865
+ "onLoadStart": PropTypes.func,
866
+ "onLoadStartCapture": PropTypes.func,
867
+ "onLostPointerCapture": PropTypes.func,
868
+ "onLostPointerCaptureCapture": PropTypes.func,
869
+ "onMouseDown": PropTypes.func,
870
+ "onMouseDownCapture": PropTypes.func,
871
+ "onMouseEnter": PropTypes.func,
872
+ "onMouseLeave": PropTypes.func,
873
+ "onMouseMove": PropTypes.func,
874
+ "onMouseMoveCapture": PropTypes.func,
875
+ "onMouseOut": PropTypes.func,
876
+ "onMouseOutCapture": PropTypes.func,
877
+ "onMouseOver": PropTypes.func,
878
+ "onMouseOverCapture": PropTypes.func,
879
+ "onMouseUp": PropTypes.func,
880
+ "onMouseUpCapture": PropTypes.func,
881
+ "onOpen": PropTypes.func,
882
+ "onPaste": PropTypes.func,
883
+ "onPasteCapture": PropTypes.func,
884
+ "onPause": PropTypes.func,
885
+ "onPauseCapture": PropTypes.func,
886
+ "onPlay": PropTypes.func,
887
+ "onPlayCapture": PropTypes.func,
888
+ "onPlaying": PropTypes.func,
889
+ "onPlayingCapture": PropTypes.func,
890
+ "onPointerCancel": PropTypes.func,
891
+ "onPointerCancelCapture": PropTypes.func,
892
+ "onPointerDown": PropTypes.func,
893
+ "onPointerDownCapture": PropTypes.func,
894
+ "onPointerEnter": PropTypes.func,
895
+ "onPointerEnterCapture": PropTypes.func,
896
+ "onPointerLeave": PropTypes.func,
897
+ "onPointerLeaveCapture": PropTypes.func,
898
+ "onPointerMove": PropTypes.func,
899
+ "onPointerMoveCapture": PropTypes.func,
900
+ "onPointerOut": PropTypes.func,
901
+ "onPointerOutCapture": PropTypes.func,
902
+ "onPointerOver": PropTypes.func,
903
+ "onPointerOverCapture": PropTypes.func,
904
+ "onPointerUp": PropTypes.func,
905
+ "onPointerUpCapture": PropTypes.func,
906
+ "onProgress": PropTypes.func,
907
+ "onProgressCapture": PropTypes.func,
908
+ "onRateChange": PropTypes.func,
909
+ "onRateChangeCapture": PropTypes.func,
910
+ "onReset": PropTypes.func,
911
+ "onResetCapture": PropTypes.func,
912
+ "onScroll": PropTypes.func,
913
+ "onScrollCapture": PropTypes.func,
914
+ "onSeeked": PropTypes.func,
915
+ "onSeekedCapture": PropTypes.func,
916
+ "onSeeking": PropTypes.func,
917
+ "onSeekingCapture": PropTypes.func,
918
+ "onSelect": PropTypes.func,
919
+ "onSelectCapture": PropTypes.func,
920
+ "onStalled": PropTypes.func,
921
+ "onStalledCapture": PropTypes.func,
922
+ "onSubmit": PropTypes.func,
923
+ "onSubmitCapture": PropTypes.func,
924
+ "onSuspend": PropTypes.func,
925
+ "onSuspendCapture": PropTypes.func,
926
+ "onTimeUpdate": PropTypes.func,
927
+ "onTimeUpdateCapture": PropTypes.func,
928
+ "onTouchCancel": PropTypes.func,
929
+ "onTouchCancelCapture": PropTypes.func,
930
+ "onTouchEnd": PropTypes.func,
931
+ "onTouchEndCapture": PropTypes.func,
932
+ "onTouchMove": PropTypes.func,
933
+ "onTouchMoveCapture": PropTypes.func,
934
+ "onTouchStart": PropTypes.func,
935
+ "onTouchStartCapture": PropTypes.func,
936
+ "onTransitionEnd": PropTypes.func,
937
+ "onTransitionEndCapture": PropTypes.func,
938
+ "onVolumeChange": PropTypes.func,
939
+ "onVolumeChangeCapture": PropTypes.func,
940
+ "onWaiting": PropTypes.func,
941
+ "onWaitingCapture": PropTypes.func,
942
+ "onWheel": PropTypes.func,
943
+ "onWheelCapture": PropTypes.func,
944
+ "openOnFocus": PropTypes.bool,
945
+ "pattern": PropTypes.string,
946
+ "placeholder": PropTypes.string,
947
+ "prefix": PropTypes.string,
948
+ "property": PropTypes.string,
949
+ "radioGroup": PropTypes.string,
950
+ "readOnly": PropTypes.bool,
951
+ "required": PropTypes.bool,
952
+ "resource": PropTypes.string,
953
+ "results": PropTypes.number,
954
+ "reverse": PropTypes.bool,
955
+ "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({
956
+ "__@iterator": PropTypes.func.isRequired,
957
+ "anchor": PropTypes.func.isRequired,
958
+ "at": PropTypes.func.isRequired,
959
+ "big": PropTypes.func.isRequired,
960
+ "blink": PropTypes.func.isRequired,
961
+ "bold": PropTypes.func.isRequired,
962
+ "charAt": PropTypes.func.isRequired,
963
+ "charCodeAt": PropTypes.func.isRequired,
964
+ "codePointAt": PropTypes.func.isRequired,
965
+ "concat": PropTypes.func.isRequired,
966
+ "endsWith": PropTypes.func.isRequired,
967
+ "fixed": PropTypes.func.isRequired,
968
+ "fontcolor": PropTypes.func.isRequired,
969
+ "fontsize": PropTypes.func.isRequired,
970
+ "includes": PropTypes.func.isRequired,
971
+ "indexOf": PropTypes.func.isRequired,
972
+ "italics": PropTypes.func.isRequired,
973
+ "lastIndexOf": PropTypes.func.isRequired,
974
+ "length": PropTypes.number.isRequired,
975
+ "link": PropTypes.func.isRequired,
976
+ "localeCompare": PropTypes.func.isRequired,
977
+ "match": PropTypes.func.isRequired,
978
+ "matchAll": PropTypes.func.isRequired,
979
+ "normalize": PropTypes.func.isRequired,
980
+ "padEnd": PropTypes.func.isRequired,
981
+ "padStart": PropTypes.func.isRequired,
982
+ "repeat": PropTypes.func.isRequired,
983
+ "replace": PropTypes.func.isRequired,
984
+ "search": PropTypes.func.isRequired,
985
+ "slice": PropTypes.func.isRequired,
986
+ "small": PropTypes.func.isRequired,
987
+ "split": PropTypes.func.isRequired,
988
+ "startsWith": PropTypes.func.isRequired,
989
+ "strike": PropTypes.func.isRequired,
990
+ "sub": PropTypes.func.isRequired,
991
+ "substr": PropTypes.func.isRequired,
992
+ "substring": PropTypes.func.isRequired,
993
+ "sup": PropTypes.func.isRequired,
994
+ "toLocaleLowerCase": PropTypes.func.isRequired,
995
+ "toLocaleUpperCase": PropTypes.func.isRequired,
996
+ "toLowerCase": PropTypes.func.isRequired,
997
+ "toString": PropTypes.func.isRequired,
998
+ "toUpperCase": PropTypes.func.isRequired,
999
+ "trim": PropTypes.func.isRequired,
1000
+ "trimEnd": PropTypes.func.isRequired,
1001
+ "trimLeft": PropTypes.func.isRequired,
1002
+ "trimRight": PropTypes.func.isRequired,
1003
+ "trimStart": PropTypes.func.isRequired,
1004
+ "valueOf": PropTypes.func.isRequired
1005
+ })]),
1006
+ "security": PropTypes.string,
1007
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
1008
+ "slot": PropTypes.string,
1009
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
1010
+ "src": PropTypes.string,
1011
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
1012
+ "style": PropTypes.object,
1013
+ "suppressContentEditableWarning": PropTypes.bool,
1014
+ "suppressHydrationWarning": PropTypes.bool,
1015
+ "tabIndex": PropTypes.number,
1016
+ "tableHeader": PropTypes.node,
1017
+ "title": PropTypes.string,
1018
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
1019
+ "translate": PropTypes.oneOf(["no", "yes"]),
1020
+ "typeof": PropTypes.string,
1021
+ "unselectable": PropTypes.oneOf(["off", "on"]),
1022
+ "validationIconId": PropTypes.string,
1023
+ "validationOnLabel": PropTypes.bool,
1024
+ "value": PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
1025
+ "virtualScrollOverscan": PropTypes.number,
1026
+ "vocab": PropTypes.string,
1027
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
1028
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
564
1029
  };
1030
+ export { FilterableSelect };
565
1031
  export default FilterableSelect;