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
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _optionGroupHeader.default;
10
+ }
11
+ });
12
+
13
+ var _optionGroupHeader = _interopRequireDefault(require("./option-group-header.component"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { CSSProperties } from "styled-components";
3
+ import { IconProps } from "../../icon";
4
+ export interface OptionGroupHeaderProps {
5
+ /** Heading text */
6
+ label: string;
7
+ /** Any valid Carbon icon name */
8
+ icon?: IconProps["type"];
9
+ /**
10
+ * @private
11
+ * @ignore
12
+ * object containing CSS styles to be passed to the underlying DOM element */
13
+ style?: CSSProperties;
14
+ }
15
+ declare const OptionGroupHeader: React.ForwardRefExoticComponent<OptionGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
16
+ export default OptionGroupHeader;
@@ -33,21 +33,10 @@ const OptionGroupHeader = /*#__PURE__*/_react.default.forwardRef(({
33
33
  });
34
34
 
35
35
  OptionGroupHeader.propTypes = {
36
- /** Heading text */
37
- label: _propTypes.default.string.isRequired,
38
-
39
- /**
40
- * <a href="https://brand.sage.com/d/NdbrveWvNheA/foundations#/icons/icons" target="_blank">List of supported icons</a>
41
- *
42
- * Any valid Carbon icon name
43
- */
44
- icon: _propTypes.default.string,
45
-
46
- /**
47
- * @private
48
- * @ignore
49
- * object containing CSS styles to be passed to the underlying DOM element */
50
- style: _propTypes.default.object
36
+ "icon": _propTypes.default.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", "maintenance", "marker", "message", "messages", "minus_large", "minus", "mobile", "money_bag", "new", "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", "success", "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"]),
37
+ "label": _propTypes.default.string.isRequired,
38
+ "style": _propTypes.default.object
51
39
  };
40
+ OptionGroupHeader.displayName = "OptionGroupHeader";
52
41
  var _default = OptionGroupHeader;
53
42
  exports.default = _default;
@@ -0,0 +1,2 @@
1
+ declare const StyledOptionGroupHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export default StyledOptionGroupHeader;
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../../../../esm/components/select/option-group-header/index.js",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -1,16 +1,2 @@
1
- import * as React from "react";
2
-
3
- export interface OptionRowProps {
4
- /** The option's visible text, displayed within <Textbox> of <Select> */
5
- text: string;
6
- /** Row content, should consist of multiple td elements */
7
- children: React.ReactNode;
8
- /** The option's invisible internal value */
9
- value: string | Record<string, unknown>;
10
- }
11
-
12
- declare function OptionRow(
13
- props: OptionRowProps & React.RefAttributes<HTMLTableRowElement>
14
- ): JSX.Element;
15
-
16
- export default OptionRow;
1
+ export { default } from "./option-row.component";
2
+ export type { OptionRowProps } from "./option-row.component";
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _optionRow.default;
10
+ }
11
+ });
12
+
13
+ var _optionRow = _interopRequireDefault(require("./option-row.component"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { CSSProperties } from "styled-components";
3
+ export interface OptionRowProps {
4
+ /** The option's visible text, displayed within <Textbox> of <Select> */
5
+ text: string;
6
+ /** Row content, should consist of multiple td elements */
7
+ children: React.ReactNode;
8
+ /** The option's invisible internal value */
9
+ value: string | Record<string, unknown>;
10
+ /**
11
+ * @private
12
+ * @ignore
13
+ * Component id (prop added by the SelectList component)
14
+ */
15
+ id: string;
16
+ /**
17
+ * @private
18
+ * @ignore
19
+ * Callback to return value when the element is selected (prop added by the SelectList component) */
20
+ onSelect?: (ev: {
21
+ id: string;
22
+ text: string;
23
+ value: string | Record<string, unknown>;
24
+ }) => void;
25
+ /**
26
+ * @private
27
+ * @ignore
28
+ * Position of the element in the list */
29
+ index?: number;
30
+ /**
31
+ * @private
32
+ * @ignore
33
+ * True when option should be hidden from the view (prop added by the SelectList component) */
34
+ hidden?: boolean;
35
+ /**
36
+ * @private
37
+ * @ignore
38
+ * object containing CSS styles to be passed to the underlying DOM element */
39
+ style?: CSSProperties;
40
+ }
41
+ declare const OptionRow: React.ForwardRefExoticComponent<OptionRowProps & React.RefAttributes<HTMLTableRowElement>>;
42
+ export default OptionRow;
@@ -33,7 +33,7 @@ const OptionRow = /*#__PURE__*/_react.default.forwardRef(({
33
33
  ...rest
34
34
  }, ref) => {
35
35
  const handleClick = () => {
36
- onSelect({
36
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect({
37
37
  id,
38
38
  text,
39
39
  value
@@ -61,45 +61,15 @@ const OptionRow = /*#__PURE__*/_react.default.forwardRef(({
61
61
  });
62
62
 
63
63
  OptionRow.propTypes = {
64
- /** The option's visible text, displayed within Textbox of Select */
65
- text: _propTypes.default.string.isRequired,
66
-
67
- /** Row content, should consist of multiple `td` elements */
68
- children: _propTypes.default.node.isRequired,
69
-
70
- /** The option's invisible internal value */
71
- value: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired,
72
-
73
- /**
74
- * @private
75
- * @ignore
76
- * Component id (prop added by the SelectList component)
77
- */
78
- id: _propTypes.default.string.isRequired,
79
-
80
- /**
81
- * @private
82
- * @ignore
83
- * Callback to return value when the element is selected (prop added by the SelectList component) */
84
- onSelect: _propTypes.default.func,
85
-
86
- /**
87
- * @private
88
- * @ignore
89
- * Position of the element in the list */
90
- index: _propTypes.default.number,
91
-
92
- /**
93
- * @private
94
- * @ignore
95
- * True when option should be hidden from the view (prop added by the SelectList component) */
96
- hidden: _propTypes.default.bool,
97
-
98
- /**
99
- * @private
100
- * @ignore
101
- * object containing CSS styles to be passed to the underlying DOM element */
102
- style: _propTypes.default.object
64
+ "children": _propTypes.default.node,
65
+ "hidden": _propTypes.default.bool,
66
+ "id": _propTypes.default.string.isRequired,
67
+ "index": _propTypes.default.number,
68
+ "onSelect": _propTypes.default.func,
69
+ "style": _propTypes.default.object,
70
+ "text": _propTypes.default.string.isRequired,
71
+ "value": _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]).isRequired
103
72
  };
73
+ OptionRow.displayName = "OptionRow";
104
74
  var _default = OptionRow;
105
75
  exports.default = _default;
@@ -0,0 +1,6 @@
1
+ import { OptionRowProps } from ".";
2
+ interface StyledOptionRowProps extends Pick<OptionRowProps, "hidden"> {
3
+ isHighlighted?: boolean;
4
+ }
5
+ declare const StyledOptionRow: import("styled-components").StyledComponent<"tr", any, StyledOptionRowProps, never>;
6
+ export default StyledOptionRow;
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../../../../esm/components/select/option-row/index.js",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from "./select-list.component";
2
+ export type { SelectListProps } from "./select-list.component";
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _selectList.default;
10
+ }
11
+ });
12
+
13
+ var _selectList = _interopRequireDefault(require("./select-list.component"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../../../../esm/components/select/select-list/index.js",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ import { SelectListProps } from ".";
2
+ interface StyledSelectListContainerProps extends Pick<SelectListProps, "isLoading"> {
3
+ maxHeight: number;
4
+ }
5
+ declare const StyledSelectListContainer: import("styled-components").StyledComponent<"div", any, StyledSelectListContainerProps, never>;
6
+ export default StyledSelectListContainer;
@@ -26,6 +26,7 @@ const StyledSelectListContainer = _styledComponents.default.div`
26
26
  display: flex;
27
27
  flex-wrap: wrap;
28
28
  align-items: flex-start;
29
+ border-radius: var(--borderRadius050);
29
30
 
30
31
  ${({
31
32
  isLoading
@@ -0,0 +1,64 @@
1
+ import React from "react";
2
+ import { Side } from "@floating-ui/dom";
3
+ export interface SelectListProps {
4
+ /** The ID for the parent <div> */
5
+ id?: string;
6
+ /** The Id of the label */
7
+ labelId?: string;
8
+ /** Child components (such as <Option>) */
9
+ children?: React.ReactNode;
10
+ /** Boolean to toggle where DatePicker is rendered in relation to the Date Input */
11
+ disablePortal?: boolean;
12
+ /** DOM element to position the dropdown menu list relative to */
13
+ anchorElement?: HTMLElement;
14
+ /** A callback for when a child is selected */
15
+ onSelect: (target: {
16
+ text?: string;
17
+ value?: string | Record<string, unknown>;
18
+ id?: string;
19
+ selectionType: string;
20
+ }) => void;
21
+ /** A callback for when the list should be closed */
22
+ onSelectListClose: () => void;
23
+ /** Text value to highlight an option */
24
+ filterText?: string;
25
+ /** Value of option to be highlighted on component render */
26
+ highlightedValue?: string | Record<string, unknown>;
27
+ /** True for default text button or a Button Component to be rendered */
28
+ listActionButton?: boolean | React.ReactNode;
29
+ /** Maximum list height - defaults to 180 */
30
+ listMaxHeight?: number;
31
+ /** A callback for when the Action Button is triggered */
32
+ onListAction?: (ev?: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
33
+ /** If true the loader animation is displayed below the last option */
34
+ isLoading?: boolean;
35
+ /** A callback that is triggered when a user scrolls to the bottom of the list */
36
+ onListScrollBottom?: () => void;
37
+ /** SelectList table header, should consist of multiple th elements. Works only in multiColumn mode */
38
+ tableHeader?: React.ReactNode;
39
+ /** When true component will work in multi column mode, children should consist of OptionRow components in this mode */
40
+ multiColumn?: boolean;
41
+ /** Data role for loader component */
42
+ loaderDataRole?: string;
43
+ /** Placement of the select list relative to the input element */
44
+ listPlacement?: Side;
45
+ /** Use the opposite list placement if the set placement does not fit */
46
+ flipEnabled?: boolean;
47
+ /** @private @ignore
48
+ * Hides the list (with CSS display: none) if not set
49
+ */
50
+ isOpen?: boolean;
51
+ /** array of selected values, if rendered as part of a MultiSelect */
52
+ multiselectValues?: string[] | Record<string, unknown>[];
53
+ /** Set this prop to enable a virtualised list of options. If it is not used then all options will be in the
54
+ * DOM at all times, which may cause performance problems on very large lists */
55
+ enableVirtualScroll?: boolean;
56
+ /** The number of options to render into the DOM at once, either side of the currently-visible ones.
57
+ * Higher values make for smoother scrolling but may impact performance.
58
+ * Only used if the `enableVirtualScroll` prop is set. */
59
+ virtualScrollOverscan?: number;
60
+ /** @private @ignore A callback for when a mouseDown event occurs on the component */
61
+ onMouseDown?: () => void;
62
+ }
63
+ declare const SelectList: React.ForwardRefExoticComponent<SelectListProps & React.RefAttributes<HTMLDivElement>>;
64
+ export default SelectList;