@itwin/itwinui-react 3.0.0-dev.1 → 3.0.0-dev.10

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 (1023) hide show
  1. package/CHANGELOG.md +277 -1
  2. package/cjs/core/Alert/Alert.d.ts +57 -27
  3. package/cjs/core/Alert/Alert.js +156 -53
  4. package/cjs/core/Alert/index.js +9 -4
  5. package/cjs/core/Avatar/Avatar.d.ts +6 -9
  6. package/cjs/core/Avatar/Avatar.js +63 -49
  7. package/cjs/core/Avatar/index.d.ts +1 -1
  8. package/cjs/core/Avatar/index.js +10 -6
  9. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  10. package/cjs/core/AvatarGroup/AvatarGroup.js +65 -58
  11. package/cjs/core/AvatarGroup/index.d.ts +1 -1
  12. package/cjs/core/AvatarGroup/index.js +10 -6
  13. package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
  14. package/cjs/core/Backdrop/Backdrop.js +16 -33
  15. package/cjs/core/Backdrop/index.js +9 -4
  16. package/cjs/core/Badge/Badge.d.ts +1 -1
  17. package/cjs/core/Badge/Badge.js +39 -47
  18. package/cjs/core/Badge/index.js +9 -4
  19. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  20. package/cjs/core/Breadcrumbs/Breadcrumbs.js +149 -63
  21. package/cjs/core/Breadcrumbs/index.js +9 -4
  22. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  23. package/cjs/core/ButtonGroup/ButtonGroup.js +64 -52
  24. package/cjs/core/ButtonGroup/index.js +9 -4
  25. package/cjs/core/Buttons/Button/Button.d.ts +16 -3
  26. package/cjs/core/Buttons/Button/Button.js +57 -36
  27. package/cjs/core/Buttons/Button/index.js +9 -4
  28. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +2 -2
  29. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +50 -54
  30. package/cjs/core/Buttons/DropdownButton/index.js +9 -4
  31. package/cjs/core/Buttons/IconButton/IconButton.d.ts +6 -2
  32. package/cjs/core/Buttons/IconButton/IconButton.js +50 -40
  33. package/cjs/core/Buttons/IconButton/index.js +9 -4
  34. package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
  35. package/cjs/core/Buttons/IdeasButton/IdeasButton.js +20 -30
  36. package/cjs/core/Buttons/IdeasButton/index.js +9 -4
  37. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +13 -4
  38. package/cjs/core/Buttons/SplitButton/SplitButton.js +102 -49
  39. package/cjs/core/Buttons/SplitButton/index.js +9 -4
  40. package/cjs/core/Buttons/index.js +43 -13
  41. package/cjs/core/Carousel/Carousel.d.ts +9 -7
  42. package/cjs/core/Carousel/Carousel.js +109 -109
  43. package/cjs/core/Carousel/CarouselContext.js +4 -26
  44. package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
  45. package/cjs/core/Carousel/CarouselDot.js +23 -37
  46. package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
  47. package/cjs/core/Carousel/CarouselDotsList.js +129 -97
  48. package/cjs/core/Carousel/CarouselNavigation.d.ts +8 -6
  49. package/cjs/core/Carousel/CarouselNavigation.js +97 -68
  50. package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
  51. package/cjs/core/Carousel/CarouselSlide.js +39 -46
  52. package/cjs/core/Carousel/CarouselSlider.js +66 -76
  53. package/cjs/core/Carousel/index.js +9 -4
  54. package/cjs/core/Checkbox/Checkbox.d.ts +9 -5
  55. package/cjs/core/Checkbox/Checkbox.js +88 -60
  56. package/cjs/core/Checkbox/index.js +9 -4
  57. package/cjs/core/ColorPicker/ColorBuilder.js +290 -201
  58. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  59. package/cjs/core/ColorPicker/ColorInputPanel.js +393 -284
  60. package/cjs/core/ColorPicker/ColorPalette.d.ts +1 -1
  61. package/cjs/core/ColorPicker/ColorPalette.js +124 -115
  62. package/cjs/core/ColorPicker/ColorPicker.d.ts +10 -6
  63. package/cjs/core/ColorPicker/ColorPicker.js +85 -85
  64. package/cjs/core/ColorPicker/ColorPickerContext.js +11 -31
  65. package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
  66. package/cjs/core/ColorPicker/ColorSwatch.js +30 -39
  67. package/cjs/core/ColorPicker/index.js +43 -13
  68. package/cjs/core/ComboBox/ComboBox.d.ts +13 -8
  69. package/cjs/core/ComboBox/ComboBox.js +403 -301
  70. package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  71. package/cjs/core/ComboBox/ComboBoxEndIcon.js +27 -43
  72. package/cjs/core/ComboBox/ComboBoxInput.d.ts +2 -2
  73. package/cjs/core/ComboBox/ComboBoxInput.js +208 -151
  74. package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  75. package/cjs/core/ComboBox/ComboBoxInputContainer.js +35 -34
  76. package/cjs/core/ComboBox/ComboBoxMenu.d.ts +2 -2
  77. package/cjs/core/ComboBox/ComboBoxMenu.js +89 -77
  78. package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
  79. package/cjs/core/ComboBox/ComboBoxMenuItem.js +73 -42
  80. package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  81. package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +13 -32
  82. package/cjs/core/ComboBox/helpers.d.ts +7 -5
  83. package/cjs/core/ComboBox/helpers.js +47 -66
  84. package/cjs/core/ComboBox/index.js +9 -4
  85. package/cjs/core/DatePicker/DatePicker.d.ts +41 -10
  86. package/cjs/core/DatePicker/DatePicker.js +567 -357
  87. package/cjs/core/DatePicker/index.js +15 -5
  88. package/cjs/core/Dialog/Dialog.d.ts +1 -1
  89. package/cjs/core/Dialog/Dialog.js +65 -61
  90. package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
  91. package/cjs/core/Dialog/DialogBackdrop.js +47 -52
  92. package/cjs/core/Dialog/DialogButtonBar.js +3 -3
  93. package/cjs/core/Dialog/DialogContent.d.ts +2 -1
  94. package/cjs/core/Dialog/DialogContent.js +28 -4
  95. package/cjs/core/Dialog/DialogContext.d.ts +11 -1
  96. package/cjs/core/Dialog/DialogContext.js +5 -27
  97. package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
  98. package/cjs/core/Dialog/DialogDragContext.js +8 -30
  99. package/cjs/core/Dialog/DialogMain.d.ts +1 -1
  100. package/cjs/core/Dialog/DialogMain.js +183 -148
  101. package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
  102. package/cjs/core/Dialog/DialogTitleBar.js +67 -45
  103. package/cjs/core/Dialog/DialogTitleBarTitle.js +3 -3
  104. package/cjs/core/Dialog/index.js +9 -4
  105. package/cjs/core/DropdownMenu/DropdownMenu.d.ts +8 -7
  106. package/cjs/core/DropdownMenu/DropdownMenu.js +82 -58
  107. package/cjs/core/DropdownMenu/index.js +9 -4
  108. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
  109. package/cjs/core/ExpandableBlock/ExpandableBlock.js +254 -76
  110. package/cjs/core/ExpandableBlock/index.js +9 -4
  111. package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
  112. package/cjs/core/Fieldset/Fieldset.js +25 -39
  113. package/cjs/core/Fieldset/index.js +9 -4
  114. package/cjs/core/FileUpload/FileEmptyCard.js +43 -42
  115. package/cjs/core/FileUpload/FileUpload.d.ts +8 -5
  116. package/cjs/core/FileUpload/FileUpload.js +90 -72
  117. package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
  118. package/cjs/core/FileUpload/FileUploadCard.js +168 -109
  119. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +2 -1
  120. package/cjs/core/FileUpload/FileUploadTemplate.js +52 -41
  121. package/cjs/core/FileUpload/index.js +35 -11
  122. package/cjs/core/Footer/Footer.d.ts +4 -4
  123. package/cjs/core/Footer/Footer.js +103 -89
  124. package/cjs/core/Footer/FooterItem.js +3 -3
  125. package/cjs/core/Footer/FooterList.js +3 -3
  126. package/cjs/core/Footer/FooterSeparator.js +8 -5
  127. package/cjs/core/Footer/index.js +15 -5
  128. package/cjs/core/Header/Header.d.ts +3 -22
  129. package/cjs/core/Header/Header.js +67 -48
  130. package/cjs/core/Header/HeaderBasicButton.js +24 -38
  131. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  132. package/cjs/core/Header/HeaderBreadcrumbs.js +38 -39
  133. package/cjs/core/Header/HeaderButton.d.ts +5 -1
  134. package/cjs/core/Header/HeaderButton.js +76 -43
  135. package/cjs/core/Header/HeaderDropdownButton.js +48 -45
  136. package/cjs/core/Header/HeaderLogo.d.ts +1 -1
  137. package/cjs/core/Header/HeaderLogo.js +42 -36
  138. package/cjs/core/Header/HeaderSplitButton.js +66 -46
  139. package/cjs/core/Header/index.js +35 -11
  140. package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
  141. package/cjs/core/InformationPanel/InformationPanel.js +77 -70
  142. package/cjs/core/InformationPanel/InformationPanelBody.js +6 -4
  143. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  144. package/cjs/core/InformationPanel/InformationPanelContent.js +20 -33
  145. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  146. package/cjs/core/InformationPanel/InformationPanelHeader.js +34 -39
  147. package/cjs/core/InformationPanel/InformationPanelWrapper.js +6 -4
  148. package/cjs/core/InformationPanel/index.js +43 -13
  149. package/cjs/core/Input/Input.d.ts +10 -6
  150. package/cjs/core/Input/Input.js +18 -40
  151. package/cjs/core/Input/index.js +9 -4
  152. package/cjs/core/InputGrid/InputGrid.d.ts +25 -0
  153. package/cjs/core/InputGrid/InputGrid.js +39 -0
  154. package/cjs/core/InputGrid/index.d.ts +3 -0
  155. package/cjs/core/{ProgressIndicators/ProgressLinear → InputGrid}/index.js +11 -6
  156. package/cjs/core/InputGroup/InputGroup.d.ts +14 -1
  157. package/cjs/core/InputGroup/InputGroup.js +72 -41
  158. package/cjs/core/InputGroup/index.js +9 -4
  159. package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
  160. package/cjs/core/InputWithDecorations/InputWithDecorations.js +81 -0
  161. package/cjs/core/InputWithDecorations/index.d.ts +3 -0
  162. package/cjs/core/InputWithDecorations/index.js +15 -0
  163. package/cjs/core/Label/Label.d.ts +6 -1
  164. package/cjs/core/Label/Label.js +32 -36
  165. package/cjs/core/Label/index.js +9 -4
  166. package/cjs/core/LabeledInput/LabeledInput.d.ts +23 -17
  167. package/cjs/core/LabeledInput/LabeledInput.js +72 -33
  168. package/cjs/core/LabeledInput/index.js +9 -4
  169. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +18 -8
  170. package/cjs/core/LabeledSelect/LabeledSelect.js +75 -44
  171. package/cjs/core/LabeledSelect/index.js +9 -4
  172. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
  173. package/cjs/core/LabeledTextarea/LabeledTextarea.js +17 -34
  174. package/cjs/core/LabeledTextarea/index.js +9 -4
  175. package/cjs/core/List/List.js +3 -3
  176. package/cjs/core/List/ListItem.d.ts +4 -4
  177. package/cjs/core/List/ListItem.js +55 -60
  178. package/cjs/core/List/index.js +16 -6
  179. package/cjs/core/Menu/Menu.d.ts +2 -2
  180. package/cjs/core/Menu/Menu.js +66 -79
  181. package/cjs/core/Menu/MenuDivider.d.ts +2 -1
  182. package/cjs/core/Menu/MenuDivider.js +5 -5
  183. package/cjs/core/Menu/MenuExtraContent.js +4 -4
  184. package/cjs/core/Menu/MenuItem.d.ts +2 -2
  185. package/cjs/core/Menu/MenuItem.js +168 -91
  186. package/cjs/core/Menu/MenuItemSkeleton.d.ts +2 -2
  187. package/cjs/core/Menu/MenuItemSkeleton.js +53 -43
  188. package/cjs/core/Menu/index.js +43 -13
  189. package/cjs/core/Modal/Modal.d.ts +9 -10
  190. package/cjs/core/Modal/Modal.js +38 -43
  191. package/cjs/core/Modal/ModalButtonBar.js +7 -4
  192. package/cjs/core/Modal/ModalContent.js +3 -3
  193. package/cjs/core/Modal/index.js +23 -8
  194. package/cjs/core/NonIdealState/ErrorPage.d.ts +6 -7
  195. package/cjs/core/NonIdealState/ErrorPage.js +187 -146
  196. package/cjs/core/NonIdealState/NonIdealState.d.ts +17 -1
  197. package/cjs/core/NonIdealState/NonIdealState.js +77 -37
  198. package/cjs/core/NonIdealState/index.js +16 -6
  199. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  200. package/cjs/core/NotificationMarker/NotificationMarker.js +29 -33
  201. package/cjs/core/NotificationMarker/index.js +9 -4
  202. package/cjs/core/Overlay/Overlay.d.ts +57 -0
  203. package/cjs/core/Overlay/Overlay.js +96 -0
  204. package/cjs/core/Overlay/index.d.ts +1 -0
  205. package/cjs/core/{ProgressIndicators/ProgressRadial → Overlay}/index.js +10 -6
  206. package/{esm/core/ProgressIndicators/ProgressLinear → cjs/core/ProgressIndicators}/ProgressLinear.d.ts +10 -6
  207. package/cjs/core/ProgressIndicators/ProgressLinear.js +72 -0
  208. package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  209. package/cjs/core/ProgressIndicators/ProgressRadial.js +74 -0
  210. package/cjs/core/ProgressIndicators/index.d.ts +2 -2
  211. package/cjs/core/ProgressIndicators/index.js +16 -6
  212. package/cjs/core/Radio/Radio.d.ts +7 -4
  213. package/cjs/core/Radio/Radio.js +54 -42
  214. package/cjs/core/Radio/index.js +9 -4
  215. package/cjs/core/RadioTiles/RadioTile.d.ts +15 -4
  216. package/cjs/core/RadioTiles/RadioTile.js +80 -45
  217. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
  218. package/cjs/core/RadioTiles/RadioTileGroup.js +16 -31
  219. package/cjs/core/RadioTiles/index.js +16 -6
  220. package/cjs/core/SearchBox/SearchBox.d.ts +3 -3
  221. package/cjs/core/SearchBox/SearchBox.js +220 -128
  222. package/cjs/core/SearchBox/index.js +9 -4
  223. package/cjs/core/Select/Select.d.ts +12 -13
  224. package/cjs/core/Select/Select.js +272 -185
  225. package/cjs/core/Select/SelectTag.d.ts +1 -1
  226. package/cjs/core/Select/SelectTag.js +21 -34
  227. package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
  228. package/cjs/core/Select/SelectTagContainer.js +30 -39
  229. package/cjs/core/Select/index.js +9 -4
  230. package/cjs/core/SideNavigation/SideNavigation.d.ts +17 -1
  231. package/cjs/core/SideNavigation/SideNavigation.js +138 -54
  232. package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
  233. package/cjs/core/SideNavigation/SidenavButton.js +30 -33
  234. package/cjs/core/SideNavigation/SidenavSubmenu.js +23 -34
  235. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  236. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -35
  237. package/cjs/core/SideNavigation/index.js +35 -11
  238. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  239. package/cjs/core/SkipToContentLink/SkipToContentLink.js +20 -33
  240. package/cjs/core/SkipToContentLink/index.js +9 -4
  241. package/cjs/core/Slider/Slider.d.ts +29 -9
  242. package/cjs/core/Slider/Slider.js +391 -230
  243. package/cjs/core/Slider/Thumb.d.ts +4 -4
  244. package/cjs/core/Slider/Thumb.js +112 -84
  245. package/cjs/core/Slider/Track.d.ts +4 -4
  246. package/cjs/core/Slider/Track.js +83 -76
  247. package/cjs/core/Slider/index.js +9 -4
  248. package/cjs/core/StatusMessage/StatusMessage.d.ts +13 -3
  249. package/cjs/core/StatusMessage/StatusMessage.js +36 -35
  250. package/cjs/core/StatusMessage/index.js +9 -4
  251. package/cjs/core/Stepper/Stepper.d.ts +29 -4
  252. package/cjs/core/Stepper/Stepper.js +80 -36
  253. package/cjs/core/Stepper/StepperStep.d.ts +18 -1
  254. package/cjs/core/Stepper/StepperStep.js +109 -63
  255. package/cjs/core/Stepper/WorkflowDiagram.d.ts +11 -1
  256. package/cjs/core/Stepper/WorkflowDiagram.js +39 -34
  257. package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
  258. package/cjs/core/Stepper/WorkflowDiagramStep.js +39 -36
  259. package/cjs/core/Stepper/index.d.ts +0 -4
  260. package/cjs/core/Stepper/index.js +17 -10
  261. package/cjs/core/Surface/Surface.d.ts +2 -2
  262. package/cjs/core/Surface/Surface.js +78 -70
  263. package/cjs/core/Surface/index.js +9 -4
  264. package/cjs/core/Table/SubRowExpander.d.ts +2 -2
  265. package/cjs/core/Table/SubRowExpander.js +37 -37
  266. package/cjs/core/Table/Table.d.ts +18 -2
  267. package/cjs/core/Table/Table.js +764 -453
  268. package/cjs/core/Table/TableCell.d.ts +2 -2
  269. package/cjs/core/Table/TableCell.js +113 -88
  270. package/cjs/core/Table/TablePaginator.d.ts +3 -3
  271. package/cjs/core/Table/TablePaginator.js +310 -160
  272. package/cjs/core/Table/TableRowMemoized.d.ts +4 -4
  273. package/cjs/core/Table/TableRowMemoized.js +156 -115
  274. package/cjs/core/Table/actionHandlers/expandHandler.js +12 -12
  275. package/cjs/core/Table/actionHandlers/filterHandler.js +25 -18
  276. package/cjs/core/Table/actionHandlers/index.js +56 -14
  277. package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -13
  278. package/cjs/core/Table/actionHandlers/selectHandler.js +123 -96
  279. package/cjs/core/Table/cells/DefaultCell.d.ts +2 -2
  280. package/cjs/core/Table/cells/DefaultCell.js +48 -38
  281. package/cjs/core/Table/cells/EditableCell.d.ts +2 -2
  282. package/cjs/core/Table/cells/EditableCell.js +75 -74
  283. package/cjs/core/Table/cells/index.js +16 -6
  284. package/cjs/core/Table/columns/actionColumn.d.ts +3 -3
  285. package/cjs/core/Table/columns/actionColumn.js +97 -99
  286. package/cjs/core/Table/columns/expanderColumn.d.ts +2 -2
  287. package/cjs/core/Table/columns/expanderColumn.js +45 -54
  288. package/cjs/core/Table/columns/index.js +41 -11
  289. package/cjs/core/Table/columns/selectionColumn.d.ts +4 -4
  290. package/cjs/core/Table/columns/selectionColumn.js +57 -51
  291. package/cjs/core/Table/filters/BaseFilter.d.ts +2 -2
  292. package/cjs/core/Table/filters/BaseFilter.js +24 -38
  293. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
  294. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +118 -75
  295. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
  296. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +120 -80
  297. package/cjs/core/Table/filters/FilterButtonBar.d.ts +3 -3
  298. package/cjs/core/Table/filters/FilterButtonBar.js +39 -41
  299. package/cjs/core/Table/filters/FilterToggle.d.ts +3 -3
  300. package/cjs/core/Table/filters/FilterToggle.js +61 -51
  301. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  302. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +58 -53
  303. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  304. package/cjs/core/Table/filters/TextFilter/TextFilter.js +40 -45
  305. package/cjs/core/Table/filters/customFilterFunctions.js +16 -14
  306. package/cjs/core/Table/filters/defaultFilterFunctions.js +86 -81
  307. package/cjs/core/Table/filters/index.js +35 -11
  308. package/cjs/core/Table/filters/tableFilters.d.ts +5 -5
  309. package/cjs/core/Table/filters/tableFilters.js +44 -54
  310. package/cjs/core/Table/filters/types.d.ts +2 -19
  311. package/cjs/core/Table/filters/types.js +2 -2
  312. package/cjs/core/Table/hooks/index.js +67 -19
  313. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +101 -88
  314. package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
  315. package/cjs/core/Table/hooks/useExpanderCell.js +33 -47
  316. package/cjs/core/Table/hooks/useResizeColumns.js +362 -296
  317. package/cjs/core/Table/hooks/useScrollToRow.d.ts +2 -2
  318. package/cjs/core/Table/hooks/useScrollToRow.js +46 -61
  319. package/cjs/core/Table/hooks/useSelectionCell.js +17 -10
  320. package/cjs/core/Table/hooks/useStickyColumns.js +64 -64
  321. package/cjs/core/Table/hooks/useSubRowFiltering.js +95 -112
  322. package/cjs/core/Table/hooks/useSubRowSelection.js +32 -53
  323. package/cjs/core/Table/index.d.ts +1 -1
  324. package/cjs/core/Table/index.js +78 -18
  325. package/cjs/core/Table/utils.js +42 -40
  326. package/cjs/core/Tabs/Tab.d.ts +2 -2
  327. package/cjs/core/Tabs/Tab.js +50 -38
  328. package/cjs/core/Tabs/Tabs.d.ts +6 -42
  329. package/cjs/core/Tabs/Tabs.js +409 -368
  330. package/cjs/core/Tabs/index.d.ts +1 -1
  331. package/cjs/core/Tabs/index.js +17 -9
  332. package/cjs/core/Tag/Tag.d.ts +1 -1
  333. package/cjs/core/Tag/Tag.js +42 -40
  334. package/cjs/core/Tag/TagContainer.d.ts +1 -1
  335. package/cjs/core/Tag/TagContainer.js +23 -36
  336. package/cjs/core/Tag/index.js +16 -6
  337. package/cjs/core/Textarea/Textarea.d.ts +4 -5
  338. package/cjs/core/Textarea/Textarea.js +13 -42
  339. package/cjs/core/Textarea/index.js +9 -4
  340. package/cjs/core/ThemeProvider/ThemeContext.d.ts +1 -1
  341. package/cjs/core/ThemeProvider/ThemeContext.js +4 -26
  342. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +29 -10
  343. package/cjs/core/ThemeProvider/ThemeProvider.js +114 -57
  344. package/cjs/core/ThemeProvider/index.js +9 -4
  345. package/cjs/core/Tile/Tile.d.ts +200 -17
  346. package/cjs/core/Tile/Tile.js +495 -132
  347. package/cjs/core/Tile/index.js +9 -4
  348. package/cjs/core/TimePicker/TimePicker.d.ts +3 -3
  349. package/cjs/core/TimePicker/TimePicker.js +458 -259
  350. package/cjs/core/TimePicker/index.js +9 -4
  351. package/cjs/core/Toast/Toast.d.ts +20 -17
  352. package/cjs/core/Toast/Toast.js +206 -134
  353. package/cjs/core/Toast/Toaster.d.ts +26 -28
  354. package/cjs/core/Toast/Toaster.js +126 -153
  355. package/cjs/core/Toast/index.d.ts +1 -4
  356. package/cjs/core/Toast/index.js +10 -8
  357. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  358. package/cjs/core/ToggleSwitch/ToggleSwitch.js +66 -53
  359. package/cjs/core/ToggleSwitch/index.js +9 -4
  360. package/cjs/core/Tooltip/Tooltip.d.ts +81 -14
  361. package/cjs/core/Tooltip/Tooltip.js +153 -41
  362. package/cjs/core/Tooltip/index.js +9 -4
  363. package/cjs/core/TransferList/TransferList.d.ts +6 -6
  364. package/cjs/core/TransferList/TransferList.js +176 -104
  365. package/cjs/core/TransferList/index.js +9 -4
  366. package/cjs/core/Tree/Tree.d.ts +5 -5
  367. package/cjs/core/Tree/Tree.js +205 -161
  368. package/cjs/core/Tree/TreeContext.d.ts +1 -1
  369. package/cjs/core/Tree/TreeContext.js +9 -31
  370. package/cjs/core/Tree/TreeNode.d.ts +2 -2
  371. package/cjs/core/Tree/TreeNode.js +207 -130
  372. package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
  373. package/cjs/core/Tree/TreeNodeExpander.js +26 -37
  374. package/cjs/core/Tree/index.js +23 -8
  375. package/cjs/core/Typography/Anchor/Anchor.js +3 -3
  376. package/cjs/core/Typography/Anchor/index.js +9 -4
  377. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +1 -1
  378. package/cjs/core/Typography/Blockquote/Blockquote.js +18 -35
  379. package/cjs/core/Typography/Blockquote/index.js +9 -4
  380. package/cjs/core/Typography/Code/Code.js +3 -3
  381. package/cjs/core/Typography/Code/index.js +9 -4
  382. package/cjs/core/Typography/Kbd/Kbd.d.ts +1 -1
  383. package/cjs/core/Typography/Kbd/Kbd.js +30 -46
  384. package/cjs/core/Typography/Kbd/index.js +15 -5
  385. package/cjs/core/Typography/Text/Text.d.ts +1 -1
  386. package/cjs/core/Typography/Text/Text.js +26 -38
  387. package/cjs/core/Typography/Text/index.js +9 -4
  388. package/cjs/core/Typography/index.js +50 -14
  389. package/cjs/core/index.d.ts +10 -8
  390. package/cjs/core/index.js +912 -187
  391. package/cjs/core/utils/color/ColorValue.d.ts +4 -4
  392. package/cjs/core/utils/color/ColorValue.js +535 -459
  393. package/cjs/core/utils/color/index.js +4 -17
  394. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  395. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +20 -36
  396. package/cjs/core/utils/components/Box.js +3 -3
  397. package/cjs/core/utils/components/ButtonBase.d.ts +14 -0
  398. package/cjs/core/utils/components/ButtonBase.js +46 -0
  399. package/cjs/core/utils/components/Divider.d.ts +1 -1
  400. package/cjs/core/utils/components/Divider.js +14 -33
  401. package/cjs/core/utils/components/Flex.d.ts +4 -4
  402. package/cjs/core/utils/components/Flex.js +93 -102
  403. package/cjs/core/utils/components/FocusTrap.d.ts +3 -3
  404. package/cjs/core/utils/components/FocusTrap.js +47 -60
  405. package/cjs/core/utils/components/Icon.d.ts +6 -1
  406. package/cjs/core/utils/components/Icon.js +32 -43
  407. package/cjs/core/utils/components/InputContainer.d.ts +4 -5
  408. package/cjs/core/utils/components/InputContainer.js +62 -49
  409. package/cjs/core/utils/components/InputFlexContainer.d.ts +2 -1
  410. package/cjs/core/utils/components/InputFlexContainer.js +24 -10
  411. package/cjs/core/utils/components/LinkAction.js +3 -3
  412. package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  413. package/cjs/core/utils/components/MiddleTextTruncation.js +32 -45
  414. package/cjs/core/utils/components/Popover.d.ts +113 -27
  415. package/cjs/core/utils/components/Popover.js +160 -147
  416. package/cjs/core/utils/components/Portal.d.ts +27 -0
  417. package/cjs/core/utils/components/Portal.js +43 -0
  418. package/cjs/core/utils/components/Resizer.d.ts +2 -2
  419. package/cjs/core/utils/components/Resizer.js +254 -210
  420. package/cjs/core/utils/components/VirtualScroll.d.ts +2 -2
  421. package/cjs/core/utils/components/VirtualScroll.js +303 -251
  422. package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -1
  423. package/cjs/core/utils/components/VisuallyHidden.js +14 -33
  424. package/cjs/core/utils/components/WithCSSTransition.d.ts +2 -2
  425. package/cjs/core/utils/components/WithCSSTransition.js +43 -48
  426. package/cjs/core/utils/components/index.d.ts +2 -0
  427. package/cjs/core/utils/components/index.js +20 -31
  428. package/cjs/core/utils/functions/colors.d.ts +1 -1
  429. package/cjs/core/utils/functions/colors.js +26 -35
  430. package/cjs/core/utils/functions/date.js +10 -10
  431. package/cjs/core/utils/functions/dev.d.ts +11 -0
  432. package/cjs/core/utils/functions/dev.js +34 -0
  433. package/cjs/core/utils/functions/dom.d.ts +0 -8
  434. package/cjs/core/utils/functions/dom.js +24 -40
  435. package/cjs/core/utils/functions/focusable.js +26 -17
  436. package/cjs/core/utils/functions/import.d.ts +6 -0
  437. package/cjs/core/utils/functions/import.js +61 -0
  438. package/cjs/core/utils/functions/index.d.ts +3 -0
  439. package/cjs/core/utils/functions/index.js +13 -23
  440. package/cjs/core/utils/functions/numbers.js +9 -9
  441. package/cjs/core/utils/functions/polymorphic.d.ts +5 -3
  442. package/cjs/core/utils/functions/polymorphic.js +43 -55
  443. package/cjs/core/utils/functions/react.d.ts +8 -0
  444. package/cjs/core/utils/functions/react.js +40 -0
  445. package/cjs/core/utils/functions/supports.js +5 -4
  446. package/cjs/core/utils/hooks/index.d.ts +1 -1
  447. package/cjs/core/utils/hooks/index.js +17 -30
  448. package/cjs/core/utils/hooks/useContainerWidth.js +26 -41
  449. package/cjs/core/utils/hooks/useControlledState.d.ts +13 -0
  450. package/cjs/core/utils/hooks/useControlledState.js +39 -0
  451. package/cjs/core/utils/hooks/useDragAndDrop.js +110 -111
  452. package/cjs/core/utils/hooks/useEventListener.js +22 -44
  453. package/cjs/core/utils/hooks/useGlobals.d.ts +9 -2
  454. package/cjs/core/utils/hooks/useGlobals.js +35 -54
  455. package/cjs/core/utils/hooks/useId.js +9 -31
  456. package/cjs/core/utils/hooks/useIntersection.js +30 -47
  457. package/cjs/core/utils/hooks/useIsClient.js +9 -31
  458. package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +6 -27
  459. package/cjs/core/utils/hooks/useLatestRef.js +9 -31
  460. package/cjs/core/utils/hooks/useMediaQuery.js +31 -55
  461. package/cjs/core/utils/hooks/useMergedRefs.js +15 -38
  462. package/cjs/core/utils/hooks/useOverflow.js +69 -79
  463. package/cjs/core/utils/hooks/useResizeObserver.js +22 -40
  464. package/cjs/core/utils/hooks/useSafeContext.js +9 -31
  465. package/cjs/core/utils/icons/StatusIconMap.d.ts +5 -5
  466. package/cjs/core/utils/icons/StatusIconMap.js +28 -34
  467. package/cjs/core/utils/icons/Svg.js +3 -3
  468. package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
  469. package/cjs/core/utils/icons/SvgCalendar.js +12 -29
  470. package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  471. package/cjs/core/utils/icons/SvgCaretDownSmall.js +12 -29
  472. package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  473. package/cjs/core/utils/icons/SvgCaretRightSmall.js +12 -29
  474. package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  475. package/cjs/core/utils/icons/SvgCaretUpSmall.js +12 -29
  476. package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
  477. package/cjs/core/utils/icons/SvgCheckmark.js +10 -29
  478. package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  479. package/cjs/core/utils/icons/SvgCheckmarkSmall.js +12 -29
  480. package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  481. package/cjs/core/utils/icons/SvgChevronLeft.js +12 -29
  482. package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  483. package/cjs/core/utils/icons/SvgChevronLeftDouble.js +12 -29
  484. package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
  485. package/cjs/core/utils/icons/SvgChevronRight.js +12 -29
  486. package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  487. package/cjs/core/utils/icons/SvgChevronRightDouble.js +12 -29
  488. package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
  489. package/cjs/core/utils/icons/SvgClose.js +12 -29
  490. package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  491. package/cjs/core/utils/icons/SvgCloseSmall.js +12 -29
  492. package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
  493. package/cjs/core/utils/icons/SvgColumnManager.js +12 -29
  494. package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
  495. package/cjs/core/utils/icons/SvgDocument.js +10 -29
  496. package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
  497. package/cjs/core/utils/icons/SvgFilter.js +10 -29
  498. package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  499. package/cjs/core/utils/icons/SvgFilterHollow.js +12 -29
  500. package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  501. package/cjs/core/utils/icons/SvgImportantSmall.js +12 -29
  502. package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  503. package/cjs/core/utils/icons/SvgInfoCircular.js +12 -29
  504. package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
  505. package/cjs/core/utils/icons/SvgMore.js +12 -29
  506. package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  507. package/cjs/core/utils/icons/SvgMoreVertical.js +12 -29
  508. package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
  509. package/cjs/core/utils/icons/SvgNew.js +12 -29
  510. package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
  511. package/cjs/core/utils/icons/SvgSearch.js +12 -29
  512. package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  513. package/cjs/core/utils/icons/SvgSmileyHappy.js +12 -29
  514. package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
  515. package/cjs/core/utils/icons/SvgSortDown.js +12 -29
  516. package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
  517. package/cjs/core/utils/icons/SvgSortUp.js +12 -29
  518. package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
  519. package/cjs/core/utils/icons/SvgStatusError.js +12 -29
  520. package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  521. package/cjs/core/utils/icons/SvgStatusSuccess.js +12 -29
  522. package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  523. package/cjs/core/utils/icons/SvgStatusWarning.js +12 -29
  524. package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
  525. package/cjs/core/utils/icons/SvgSwap.js +12 -29
  526. package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
  527. package/cjs/core/utils/icons/SvgUpload.js +12 -29
  528. package/cjs/core/utils/icons/index.js +34 -47
  529. package/cjs/core/utils/index.js +10 -23
  530. package/cjs/core/utils/props.d.ts +2 -2
  531. package/cjs/core/utils/props.js +2 -2
  532. package/cjs/core/utils/types.d.ts +1 -1
  533. package/cjs/core/utils/types.js +2 -2
  534. package/cjs/index.d.ts +0 -1
  535. package/cjs/index.js +4 -18
  536. package/cjs/package.json +1 -0
  537. package/cjs/react-table/react-table.d.ts +745 -0
  538. package/cjs/react-table/react-table.js +10 -0
  539. package/cjs/styles.js +424 -448
  540. package/esm/core/Alert/Alert.d.ts +57 -27
  541. package/esm/core/Alert/Alert.js +159 -23
  542. package/esm/core/Avatar/Avatar.d.ts +6 -9
  543. package/esm/core/Avatar/Avatar.js +53 -18
  544. package/esm/core/Avatar/index.d.ts +1 -1
  545. package/esm/core/Avatar/index.js +1 -1
  546. package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  547. package/esm/core/AvatarGroup/AvatarGroup.js +58 -26
  548. package/esm/core/AvatarGroup/index.d.ts +1 -1
  549. package/esm/core/AvatarGroup/index.js +1 -1
  550. package/esm/core/Backdrop/Backdrop.d.ts +1 -1
  551. package/esm/core/Backdrop/Backdrop.js +10 -2
  552. package/esm/core/Badge/Badge.d.ts +1 -1
  553. package/esm/core/Badge/Badge.js +31 -16
  554. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  555. package/esm/core/Breadcrumbs/Breadcrumbs.js +147 -33
  556. package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  557. package/esm/core/ButtonGroup/ButtonGroup.js +58 -21
  558. package/esm/core/Buttons/Button/Button.d.ts +16 -3
  559. package/esm/core/Buttons/Button/Button.js +46 -6
  560. package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +2 -2
  561. package/esm/core/Buttons/DropdownButton/DropdownButton.js +39 -22
  562. package/esm/core/Buttons/IconButton/IconButton.d.ts +6 -2
  563. package/esm/core/Buttons/IconButton/IconButton.js +42 -10
  564. package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
  565. package/esm/core/Buttons/IdeasButton/IdeasButton.js +12 -2
  566. package/esm/core/Buttons/SplitButton/SplitButton.d.ts +13 -4
  567. package/esm/core/Buttons/SplitButton/SplitButton.js +103 -17
  568. package/esm/core/Carousel/Carousel.d.ts +9 -7
  569. package/esm/core/Carousel/Carousel.js +103 -73
  570. package/esm/core/Carousel/CarouselDot.d.ts +1 -1
  571. package/esm/core/Carousel/CarouselDot.js +18 -7
  572. package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
  573. package/esm/core/Carousel/CarouselDotsList.js +123 -65
  574. package/esm/core/Carousel/CarouselNavigation.d.ts +8 -6
  575. package/esm/core/Carousel/CarouselNavigation.js +85 -34
  576. package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
  577. package/esm/core/Carousel/CarouselSlide.js +29 -14
  578. package/esm/core/Carousel/CarouselSlider.js +65 -45
  579. package/esm/core/Checkbox/Checkbox.d.ts +9 -5
  580. package/esm/core/Checkbox/Checkbox.js +78 -28
  581. package/esm/core/ColorPicker/ColorBuilder.js +278 -169
  582. package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  583. package/esm/core/ColorPicker/ColorInputPanel.js +378 -251
  584. package/esm/core/ColorPicker/ColorPalette.d.ts +1 -1
  585. package/esm/core/ColorPicker/ColorPalette.js +115 -82
  586. package/esm/core/ColorPicker/ColorPicker.d.ts +10 -6
  587. package/esm/core/ColorPicker/ColorPicker.js +78 -54
  588. package/esm/core/ColorPicker/ColorPickerContext.js +7 -5
  589. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  590. package/esm/core/ColorPicker/ColorSwatch.js +19 -7
  591. package/esm/core/ComboBox/ComboBox.d.ts +13 -8
  592. package/esm/core/ComboBox/ComboBox.js +397 -264
  593. package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  594. package/esm/core/ComboBox/ComboBoxEndIcon.js +19 -13
  595. package/esm/core/ComboBox/ComboBoxInput.d.ts +2 -2
  596. package/esm/core/ComboBox/ComboBoxInput.js +198 -123
  597. package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  598. package/esm/core/ComboBox/ComboBoxInputContainer.js +20 -5
  599. package/esm/core/ComboBox/ComboBoxMenu.d.ts +2 -2
  600. package/esm/core/ComboBox/ComboBoxMenu.js +79 -46
  601. package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
  602. package/esm/core/ComboBox/ComboBoxMenuItem.js +62 -14
  603. package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  604. package/esm/core/ComboBox/ComboBoxMultipleContainer.js +6 -2
  605. package/esm/core/ComboBox/helpers.d.ts +7 -5
  606. package/esm/core/ComboBox/helpers.js +38 -39
  607. package/esm/core/DatePicker/DatePicker.d.ts +41 -10
  608. package/esm/core/DatePicker/DatePicker.js +553 -325
  609. package/esm/core/Dialog/Dialog.d.ts +1 -1
  610. package/esm/core/Dialog/Dialog.js +54 -25
  611. package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
  612. package/esm/core/Dialog/DialogBackdrop.js +39 -19
  613. package/esm/core/Dialog/DialogContent.d.ts +2 -1
  614. package/esm/core/Dialog/DialogContent.js +25 -2
  615. package/esm/core/Dialog/DialogContext.d.ts +11 -1
  616. package/esm/core/Dialog/DialogContext.js +1 -1
  617. package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
  618. package/esm/core/Dialog/DialogDragContext.js +4 -4
  619. package/esm/core/Dialog/DialogMain.d.ts +1 -1
  620. package/esm/core/Dialog/DialogMain.js +177 -114
  621. package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
  622. package/esm/core/Dialog/DialogTitleBar.js +45 -10
  623. package/esm/core/DropdownMenu/DropdownMenu.d.ts +8 -7
  624. package/esm/core/DropdownMenu/DropdownMenu.js +80 -30
  625. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
  626. package/esm/core/ExpandableBlock/ExpandableBlock.js +246 -46
  627. package/esm/core/Fieldset/Fieldset.d.ts +1 -1
  628. package/esm/core/Fieldset/Fieldset.js +19 -8
  629. package/esm/core/FileUpload/FileEmptyCard.js +19 -8
  630. package/esm/core/FileUpload/FileUpload.d.ts +8 -5
  631. package/esm/core/FileUpload/FileUpload.js +74 -41
  632. package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
  633. package/esm/core/FileUpload/FileUploadCard.js +154 -77
  634. package/esm/core/FileUpload/FileUploadTemplate.d.ts +2 -1
  635. package/esm/core/FileUpload/FileUploadTemplate.js +38 -9
  636. package/esm/core/Footer/Footer.d.ts +4 -4
  637. package/esm/core/Footer/Footer.js +86 -55
  638. package/esm/core/Footer/FooterSeparator.js +1 -1
  639. package/esm/core/Header/Header.d.ts +3 -22
  640. package/esm/core/Header/Header.js +55 -15
  641. package/esm/core/Header/HeaderBasicButton.js +16 -8
  642. package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  643. package/esm/core/Header/HeaderBreadcrumbs.js +32 -8
  644. package/esm/core/Header/HeaderButton.d.ts +5 -1
  645. package/esm/core/Header/HeaderButton.js +62 -13
  646. package/esm/core/Header/HeaderDropdownButton.js +42 -13
  647. package/esm/core/Header/HeaderLogo.d.ts +1 -1
  648. package/esm/core/Header/HeaderLogo.js +36 -5
  649. package/esm/core/Header/HeaderSplitButton.js +61 -14
  650. package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
  651. package/esm/core/InformationPanel/InformationPanel.js +71 -39
  652. package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  653. package/esm/core/InformationPanel/InformationPanelContent.js +17 -3
  654. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  655. package/esm/core/InformationPanel/InformationPanelHeader.js +32 -8
  656. package/esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
  657. package/esm/core/Input/Input.d.ts +10 -6
  658. package/esm/core/Input/Input.js +12 -9
  659. package/esm/core/InputGrid/InputGrid.d.ts +25 -0
  660. package/esm/core/InputGrid/InputGrid.js +35 -0
  661. package/esm/core/InputGrid/index.d.ts +3 -0
  662. package/esm/core/{ProgressIndicators/ProgressLinear → InputGrid}/index.js +2 -2
  663. package/esm/core/InputGroup/InputGroup.d.ts +14 -1
  664. package/esm/core/InputGroup/InputGroup.js +62 -15
  665. package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
  666. package/esm/core/InputWithDecorations/InputWithDecorations.js +80 -0
  667. package/esm/core/InputWithDecorations/index.d.ts +3 -0
  668. package/esm/core/InputWithDecorations/index.js +6 -0
  669. package/esm/core/Label/Label.d.ts +6 -1
  670. package/esm/core/Label/Label.js +26 -5
  671. package/esm/core/LabeledInput/LabeledInput.d.ts +23 -17
  672. package/esm/core/LabeledInput/LabeledInput.js +68 -6
  673. package/esm/core/LabeledSelect/LabeledSelect.d.ts +18 -8
  674. package/esm/core/LabeledSelect/LabeledSelect.js +70 -17
  675. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
  676. package/esm/core/LabeledTextarea/LabeledTextarea.js +15 -8
  677. package/esm/core/List/ListItem.d.ts +4 -4
  678. package/esm/core/List/ListItem.js +46 -28
  679. package/esm/core/Menu/Menu.d.ts +2 -2
  680. package/esm/core/Menu/Menu.js +64 -49
  681. package/esm/core/Menu/MenuDivider.d.ts +2 -1
  682. package/esm/core/Menu/MenuDivider.js +2 -2
  683. package/esm/core/Menu/MenuExtraContent.js +1 -1
  684. package/esm/core/Menu/MenuItem.d.ts +2 -2
  685. package/esm/core/Menu/MenuItem.js +167 -63
  686. package/esm/core/Menu/MenuItemSkeleton.d.ts +2 -2
  687. package/esm/core/Menu/MenuItemSkeleton.js +43 -12
  688. package/esm/core/Modal/Modal.d.ts +9 -10
  689. package/esm/core/Modal/Modal.js +33 -13
  690. package/esm/core/NonIdealState/ErrorPage.d.ts +6 -7
  691. package/esm/core/NonIdealState/ErrorPage.js +177 -117
  692. package/esm/core/NonIdealState/NonIdealState.d.ts +17 -1
  693. package/esm/core/NonIdealState/NonIdealState.js +65 -6
  694. package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  695. package/esm/core/NotificationMarker/NotificationMarker.js +20 -2
  696. package/esm/core/Overlay/Overlay.d.ts +57 -0
  697. package/esm/core/Overlay/Overlay.js +88 -0
  698. package/esm/core/Overlay/index.d.ts +1 -0
  699. package/esm/core/{ProgressIndicators/ProgressRadial → Overlay}/index.js +1 -2
  700. package/{cjs/core/ProgressIndicators/ProgressLinear → esm/core/ProgressIndicators}/ProgressLinear.d.ts +10 -6
  701. package/esm/core/ProgressIndicators/ProgressLinear.js +65 -0
  702. package/esm/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  703. package/esm/core/ProgressIndicators/ProgressRadial.js +64 -0
  704. package/esm/core/ProgressIndicators/index.d.ts +2 -2
  705. package/esm/core/ProgressIndicators/index.js +2 -2
  706. package/esm/core/Radio/Radio.d.ts +7 -4
  707. package/esm/core/Radio/Radio.js +45 -11
  708. package/esm/core/RadioTiles/RadioTile.d.ts +15 -4
  709. package/esm/core/RadioTiles/RadioTile.js +62 -14
  710. package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
  711. package/esm/core/RadioTiles/RadioTileGroup.js +10 -3
  712. package/esm/core/SearchBox/SearchBox.d.ts +3 -3
  713. package/esm/core/SearchBox/SearchBox.js +215 -97
  714. package/esm/core/Select/Select.d.ts +12 -13
  715. package/esm/core/Select/Select.js +267 -152
  716. package/esm/core/Select/SelectTag.d.ts +1 -1
  717. package/esm/core/Select/SelectTag.js +15 -3
  718. package/esm/core/Select/SelectTagContainer.d.ts +1 -1
  719. package/esm/core/Select/SelectTagContainer.js +20 -7
  720. package/esm/core/SideNavigation/SideNavigation.d.ts +17 -1
  721. package/esm/core/SideNavigation/SideNavigation.js +118 -21
  722. package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
  723. package/esm/core/SideNavigation/SidenavButton.js +24 -2
  724. package/esm/core/SideNavigation/SidenavSubmenu.js +14 -3
  725. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  726. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +20 -4
  727. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  728. package/esm/core/SkipToContentLink/SkipToContentLink.js +11 -2
  729. package/esm/core/Slider/Slider.d.ts +29 -9
  730. package/esm/core/Slider/Slider.js +352 -197
  731. package/esm/core/Slider/Thumb.d.ts +4 -4
  732. package/esm/core/Slider/Thumb.js +101 -52
  733. package/esm/core/Slider/Track.d.ts +4 -4
  734. package/esm/core/Slider/Track.js +75 -49
  735. package/esm/core/StatusMessage/StatusMessage.d.ts +13 -3
  736. package/esm/core/StatusMessage/StatusMessage.js +28 -8
  737. package/esm/core/Stepper/Stepper.d.ts +29 -4
  738. package/esm/core/Stepper/Stepper.js +71 -8
  739. package/esm/core/Stepper/StepperStep.d.ts +18 -1
  740. package/esm/core/Stepper/StepperStep.js +92 -31
  741. package/esm/core/Stepper/WorkflowDiagram.d.ts +11 -1
  742. package/esm/core/Stepper/WorkflowDiagram.js +23 -6
  743. package/esm/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
  744. package/esm/core/Stepper/WorkflowDiagramStep.js +22 -4
  745. package/esm/core/Stepper/index.d.ts +0 -4
  746. package/esm/core/Stepper/index.js +0 -2
  747. package/esm/core/Surface/Surface.d.ts +2 -2
  748. package/esm/core/Surface/Surface.js +68 -39
  749. package/esm/core/Table/SubRowExpander.d.ts +2 -2
  750. package/esm/core/Table/SubRowExpander.js +31 -9
  751. package/esm/core/Table/Table.d.ts +18 -2
  752. package/esm/core/Table/Table.js +763 -416
  753. package/esm/core/Table/TableCell.d.ts +2 -2
  754. package/esm/core/Table/TableCell.js +87 -53
  755. package/esm/core/Table/TablePaginator.d.ts +3 -3
  756. package/esm/core/Table/TablePaginator.js +306 -126
  757. package/esm/core/Table/TableRowMemoized.d.ts +4 -4
  758. package/esm/core/Table/TableRowMemoized.js +148 -84
  759. package/esm/core/Table/actionHandlers/expandHandler.js +10 -10
  760. package/esm/core/Table/actionHandlers/filterHandler.js +23 -16
  761. package/esm/core/Table/actionHandlers/index.js +5 -1
  762. package/esm/core/Table/actionHandlers/resizeHandler.js +11 -11
  763. package/esm/core/Table/actionHandlers/selectHandler.js +117 -93
  764. package/esm/core/Table/cells/DefaultCell.d.ts +2 -2
  765. package/esm/core/Table/cells/DefaultCell.js +42 -7
  766. package/esm/core/Table/cells/EditableCell.d.ts +2 -2
  767. package/esm/core/Table/cells/EditableCell.js +70 -47
  768. package/esm/core/Table/columns/actionColumn.d.ts +3 -3
  769. package/esm/core/Table/columns/actionColumn.js +85 -62
  770. package/esm/core/Table/columns/expanderColumn.d.ts +2 -2
  771. package/esm/core/Table/columns/expanderColumn.js +38 -25
  772. package/esm/core/Table/columns/selectionColumn.d.ts +4 -4
  773. package/esm/core/Table/columns/selectionColumn.js +51 -23
  774. package/esm/core/Table/filters/BaseFilter.d.ts +2 -2
  775. package/esm/core/Table/filters/BaseFilter.js +15 -7
  776. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
  777. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +113 -48
  778. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
  779. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +110 -47
  780. package/esm/core/Table/filters/FilterButtonBar.d.ts +3 -3
  781. package/esm/core/Table/filters/FilterButtonBar.js +28 -9
  782. package/esm/core/Table/filters/FilterToggle.d.ts +3 -3
  783. package/esm/core/Table/filters/FilterToggle.js +57 -20
  784. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  785. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +50 -23
  786. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  787. package/esm/core/Table/filters/TextFilter/TextFilter.js +32 -15
  788. package/esm/core/Table/filters/customFilterFunctions.js +14 -12
  789. package/esm/core/Table/filters/defaultFilterFunctions.js +84 -79
  790. package/esm/core/Table/filters/tableFilters.d.ts +5 -5
  791. package/esm/core/Table/filters/tableFilters.js +34 -25
  792. package/esm/core/Table/filters/types.d.ts +2 -19
  793. package/esm/core/Table/hooks/useColumnDragAndDrop.js +88 -81
  794. package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
  795. package/esm/core/Table/hooks/useExpanderCell.js +26 -20
  796. package/esm/core/Table/hooks/useResizeColumns.js +353 -293
  797. package/esm/core/Table/hooks/useScrollToRow.d.ts +2 -2
  798. package/esm/core/Table/hooks/useScrollToRow.js +42 -35
  799. package/esm/core/Table/hooks/useSelectionCell.js +10 -6
  800. package/esm/core/Table/hooks/useStickyColumns.js +61 -61
  801. package/esm/core/Table/hooks/useSubRowFiltering.js +90 -85
  802. package/esm/core/Table/hooks/useSubRowSelection.js +28 -27
  803. package/esm/core/Table/index.d.ts +1 -1
  804. package/esm/core/Table/index.js +5 -1
  805. package/esm/core/Table/utils.js +40 -38
  806. package/esm/core/Tabs/Tab.d.ts +2 -2
  807. package/esm/core/Tabs/Tab.js +41 -8
  808. package/esm/core/Tabs/Tabs.d.ts +6 -42
  809. package/esm/core/Tabs/Tabs.js +392 -333
  810. package/esm/core/Tabs/index.d.ts +1 -1
  811. package/esm/core/Tabs/index.js +1 -1
  812. package/esm/core/Tag/Tag.d.ts +1 -1
  813. package/esm/core/Tag/Tag.js +35 -8
  814. package/esm/core/Tag/TagContainer.d.ts +1 -1
  815. package/esm/core/Tag/TagContainer.js +17 -5
  816. package/esm/core/Textarea/Textarea.d.ts +4 -5
  817. package/esm/core/Textarea/Textarea.js +9 -13
  818. package/esm/core/ThemeProvider/ThemeContext.d.ts +1 -1
  819. package/esm/core/ThemeProvider/ThemeProvider.d.ts +29 -10
  820. package/esm/core/ThemeProvider/ThemeProvider.js +112 -26
  821. package/esm/core/Tile/Tile.d.ts +200 -17
  822. package/esm/core/Tile/Tile.js +475 -98
  823. package/esm/core/TimePicker/TimePicker.d.ts +3 -3
  824. package/esm/core/TimePicker/TimePicker.js +448 -228
  825. package/esm/core/Toast/Toast.d.ts +20 -17
  826. package/esm/core/Toast/Toast.js +196 -101
  827. package/esm/core/Toast/Toaster.d.ts +26 -28
  828. package/esm/core/Toast/Toaster.js +106 -126
  829. package/esm/core/Toast/index.d.ts +1 -4
  830. package/esm/core/Toast/index.js +1 -3
  831. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  832. package/esm/core/ToggleSwitch/ToggleSwitch.js +60 -22
  833. package/esm/core/Tooltip/Tooltip.d.ts +81 -14
  834. package/esm/core/Tooltip/Tooltip.js +167 -10
  835. package/esm/core/TransferList/TransferList.d.ts +6 -6
  836. package/esm/core/TransferList/TransferList.js +158 -94
  837. package/esm/core/Tree/Tree.d.ts +5 -5
  838. package/esm/core/Tree/Tree.js +197 -129
  839. package/esm/core/Tree/TreeContext.d.ts +1 -1
  840. package/esm/core/Tree/TreeContext.js +5 -5
  841. package/esm/core/Tree/TreeNode.d.ts +2 -2
  842. package/esm/core/Tree/TreeNode.js +195 -97
  843. package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
  844. package/esm/core/Tree/TreeNodeExpander.js +16 -5
  845. package/esm/core/Typography/Blockquote/Blockquote.d.ts +1 -1
  846. package/esm/core/Typography/Blockquote/Blockquote.js +12 -4
  847. package/esm/core/Typography/Kbd/Kbd.d.ts +1 -1
  848. package/esm/core/Typography/Kbd/Kbd.js +24 -15
  849. package/esm/core/Typography/Text/Text.d.ts +1 -1
  850. package/esm/core/Typography/Text/Text.js +20 -7
  851. package/esm/core/index.d.ts +10 -8
  852. package/esm/core/index.js +86 -15
  853. package/esm/core/utils/color/ColorValue.d.ts +4 -4
  854. package/esm/core/utils/color/ColorValue.js +524 -455
  855. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  856. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +11 -8
  857. package/esm/core/utils/components/ButtonBase.d.ts +14 -0
  858. package/esm/core/utils/components/ButtonBase.js +42 -0
  859. package/esm/core/utils/components/Divider.d.ts +1 -1
  860. package/esm/core/utils/components/Divider.js +8 -2
  861. package/esm/core/utils/components/Flex.d.ts +4 -4
  862. package/esm/core/utils/components/Flex.js +87 -71
  863. package/esm/core/utils/components/FocusTrap.d.ts +3 -3
  864. package/esm/core/utils/components/FocusTrap.js +41 -32
  865. package/esm/core/utils/components/Icon.d.ts +6 -1
  866. package/esm/core/utils/components/Icon.js +26 -12
  867. package/esm/core/utils/components/InputContainer.d.ts +4 -5
  868. package/esm/core/utils/components/InputContainer.js +56 -17
  869. package/esm/core/utils/components/InputFlexContainer.d.ts +2 -1
  870. package/esm/core/utils/components/InputFlexContainer.js +15 -2
  871. package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  872. package/esm/core/utils/components/MiddleTextTruncation.js +27 -18
  873. package/esm/core/utils/components/Popover.d.ts +113 -27
  874. package/esm/core/utils/components/Popover.js +175 -118
  875. package/esm/core/utils/components/Portal.d.ts +27 -0
  876. package/esm/core/utils/components/Portal.js +36 -0
  877. package/esm/core/utils/components/Resizer.d.ts +2 -2
  878. package/esm/core/utils/components/Resizer.js +250 -183
  879. package/esm/core/utils/components/VirtualScroll.d.ts +2 -2
  880. package/esm/core/utils/components/VirtualScroll.js +296 -224
  881. package/esm/core/utils/components/VisuallyHidden.d.ts +1 -1
  882. package/esm/core/utils/components/VisuallyHidden.js +8 -2
  883. package/esm/core/utils/components/WithCSSTransition.d.ts +2 -2
  884. package/esm/core/utils/components/WithCSSTransition.js +38 -21
  885. package/esm/core/utils/components/index.d.ts +2 -0
  886. package/esm/core/utils/components/index.js +2 -0
  887. package/esm/core/utils/functions/colors.d.ts +1 -1
  888. package/esm/core/utils/functions/colors.js +20 -32
  889. package/esm/core/utils/functions/date.js +8 -8
  890. package/esm/core/utils/functions/dev.d.ts +11 -0
  891. package/esm/core/utils/functions/dev.js +29 -0
  892. package/esm/core/utils/functions/dom.d.ts +0 -8
  893. package/esm/core/utils/functions/dom.js +17 -33
  894. package/esm/core/utils/functions/focusable.js +24 -15
  895. package/esm/core/utils/functions/import.d.ts +6 -0
  896. package/esm/core/utils/functions/import.js +14 -0
  897. package/esm/core/utils/functions/index.d.ts +3 -0
  898. package/esm/core/utils/functions/index.js +3 -0
  899. package/esm/core/utils/functions/numbers.js +7 -7
  900. package/esm/core/utils/functions/polymorphic.d.ts +5 -3
  901. package/esm/core/utils/functions/polymorphic.js +32 -23
  902. package/esm/core/utils/functions/react.d.ts +8 -0
  903. package/esm/core/utils/functions/react.js +35 -0
  904. package/esm/core/utils/functions/supports.js +2 -1
  905. package/esm/core/utils/hooks/index.d.ts +1 -1
  906. package/esm/core/utils/hooks/index.js +1 -1
  907. package/esm/core/utils/hooks/useContainerWidth.js +16 -13
  908. package/esm/core/utils/hooks/useControlledState.d.ts +13 -0
  909. package/esm/core/utils/hooks/useControlledState.js +34 -0
  910. package/esm/core/utils/hooks/useDragAndDrop.js +99 -82
  911. package/esm/core/utils/hooks/useEventListener.js +18 -18
  912. package/esm/core/utils/hooks/useGlobals.d.ts +9 -2
  913. package/esm/core/utils/hooks/useGlobals.js +30 -27
  914. package/esm/core/utils/hooks/useId.js +3 -4
  915. package/esm/core/utils/hooks/useIntersection.js +25 -20
  916. package/esm/core/utils/hooks/useIsClient.js +5 -5
  917. package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
  918. package/esm/core/utils/hooks/useLatestRef.js +5 -5
  919. package/esm/core/utils/hooks/useMediaQuery.js +23 -27
  920. package/esm/core/utils/hooks/useMergedRefs.js +11 -12
  921. package/esm/core/utils/hooks/useOverflow.js +62 -51
  922. package/esm/core/utils/hooks/useResizeObserver.js +17 -13
  923. package/esm/core/utils/hooks/useSafeContext.js +5 -5
  924. package/esm/core/utils/icons/StatusIconMap.d.ts +5 -5
  925. package/esm/core/utils/icons/StatusIconMap.js +8 -4
  926. package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
  927. package/esm/core/utils/icons/SvgCalendar.js +7 -2
  928. package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  929. package/esm/core/utils/icons/SvgCaretDownSmall.js +7 -2
  930. package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  931. package/esm/core/utils/icons/SvgCaretRightSmall.js +7 -2
  932. package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  933. package/esm/core/utils/icons/SvgCaretUpSmall.js +7 -2
  934. package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
  935. package/esm/core/utils/icons/SvgCheckmark.js +5 -2
  936. package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  937. package/esm/core/utils/icons/SvgCheckmarkSmall.js +7 -2
  938. package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  939. package/esm/core/utils/icons/SvgChevronLeft.js +7 -2
  940. package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  941. package/esm/core/utils/icons/SvgChevronLeftDouble.js +7 -2
  942. package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
  943. package/esm/core/utils/icons/SvgChevronRight.js +7 -2
  944. package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  945. package/esm/core/utils/icons/SvgChevronRightDouble.js +7 -2
  946. package/esm/core/utils/icons/SvgClose.d.ts +1 -1
  947. package/esm/core/utils/icons/SvgClose.js +7 -2
  948. package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  949. package/esm/core/utils/icons/SvgCloseSmall.js +7 -2
  950. package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
  951. package/esm/core/utils/icons/SvgColumnManager.js +7 -2
  952. package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
  953. package/esm/core/utils/icons/SvgDocument.js +5 -2
  954. package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
  955. package/esm/core/utils/icons/SvgFilter.js +5 -2
  956. package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  957. package/esm/core/utils/icons/SvgFilterHollow.js +7 -2
  958. package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  959. package/esm/core/utils/icons/SvgImportantSmall.js +7 -2
  960. package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  961. package/esm/core/utils/icons/SvgInfoCircular.js +7 -2
  962. package/esm/core/utils/icons/SvgMore.d.ts +1 -1
  963. package/esm/core/utils/icons/SvgMore.js +7 -2
  964. package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  965. package/esm/core/utils/icons/SvgMoreVertical.js +7 -2
  966. package/esm/core/utils/icons/SvgNew.d.ts +1 -1
  967. package/esm/core/utils/icons/SvgNew.js +7 -2
  968. package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
  969. package/esm/core/utils/icons/SvgSearch.js +7 -2
  970. package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  971. package/esm/core/utils/icons/SvgSmileyHappy.js +7 -2
  972. package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
  973. package/esm/core/utils/icons/SvgSortDown.js +7 -2
  974. package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
  975. package/esm/core/utils/icons/SvgSortUp.js +7 -2
  976. package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
  977. package/esm/core/utils/icons/SvgStatusError.js +7 -2
  978. package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  979. package/esm/core/utils/icons/SvgStatusSuccess.js +7 -2
  980. package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  981. package/esm/core/utils/icons/SvgStatusWarning.js +7 -2
  982. package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
  983. package/esm/core/utils/icons/SvgSwap.js +7 -2
  984. package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
  985. package/esm/core/utils/icons/SvgUpload.js +7 -2
  986. package/esm/core/utils/props.d.ts +2 -2
  987. package/esm/core/utils/types.d.ts +1 -1
  988. package/esm/index.d.ts +0 -1
  989. package/esm/index.js +0 -1
  990. package/esm/react-table/react-table.d.ts +745 -0
  991. package/esm/react-table/react-table.js +9 -0
  992. package/esm/styles.js +424 -450
  993. package/package.json +45 -41
  994. package/react-table.d.ts +745 -0
  995. package/styles.css +751 -1610
  996. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
  997. package/cjs/core/ComboBox/ComboBoxDropdown.js +0 -52
  998. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -65
  999. package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  1000. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -77
  1001. package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  1002. package/cjs/core/Stepper/Wizard.d.ts +0 -46
  1003. package/cjs/core/Stepper/Wizard.js +0 -55
  1004. package/cjs/core/Toast/ToastWrapper.d.ts +0 -10
  1005. package/cjs/core/Toast/ToastWrapper.js +0 -49
  1006. package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
  1007. package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +0 -54
  1008. package/cjs/types/react-table-config.d.ts +0 -135
  1009. package/cjs/types/react-table-config.js +0 -2
  1010. package/esm/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
  1011. package/esm/core/ComboBox/ComboBoxDropdown.js +0 -26
  1012. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -36
  1013. package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  1014. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -48
  1015. package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  1016. package/esm/core/Stepper/Wizard.d.ts +0 -46
  1017. package/esm/core/Stepper/Wizard.js +0 -29
  1018. package/esm/core/Toast/ToastWrapper.d.ts +0 -10
  1019. package/esm/core/Toast/ToastWrapper.js +0 -20
  1020. package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
  1021. package/esm/core/utils/hooks/useIsThemeAlreadySet.js +0 -27
  1022. package/esm/types/react-table-config.d.ts +0 -135
  1023. package/esm/types/react-table-config.js +0 -1
@@ -5,7 +5,13 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { CarouselContext } from './CarouselContext.js';
8
- import { getBoundedValue, getWindow, useMergedRefs, useResizeObserver, Box, } from '../utils/index.js';
8
+ import {
9
+ getBoundedValue,
10
+ getWindow,
11
+ useMergedRefs,
12
+ useResizeObserver,
13
+ Box,
14
+ } from '../utils/index.js';
9
15
  import { CarouselDot } from './CarouselDot.js';
10
16
  /**
11
17
  * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
@@ -30,69 +36,121 @@ import { CarouselDot } from './CarouselDot.js';
30
36
  * />
31
37
  */
32
38
  export const CarouselDotsList = React.forwardRef((props, ref) => {
33
- var _a, _b, _c;
34
- const { currentIndex: userCurrentIndex, length, className, onSlideChange, children, ...rest } = props;
35
- const context = React.useContext(CarouselContext);
36
- const slideCount = (_a = length !== null && length !== void 0 ? length : context === null || context === void 0 ? void 0 : context.slideCount) !== null && _a !== void 0 ? _a : React.Children.count(children);
37
- const currentIndex = (_b = userCurrentIndex !== null && userCurrentIndex !== void 0 ? userCurrentIndex : context === null || context === void 0 ? void 0 : context.currentIndex) !== null && _b !== void 0 ? _b : 0;
38
- const idPrefix = (_c = props.id) !== null && _c !== void 0 ? _c : context === null || context === void 0 ? void 0 : context.idPrefix;
39
- const handleSlideChange = React.useCallback((index) => {
40
- if (context) {
41
- context.setCurrentIndex(index);
42
- context.scrollToSlide.current(index);
43
- }
44
- onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
45
- }, [context, onSlideChange]);
46
- const justMounted = React.useRef(true);
47
- const [visibleCount, setVisibleCount] = React.useState(slideCount);
48
- const listRef = React.useRef(null);
49
- const [width, setWidth] = React.useState();
50
- const [resizeRef, resizeObserver] = useResizeObserver(({ width }) => {
51
- if (!listRef.current) {
52
- return;
53
- }
54
- setWidth(width);
55
- const dotWidth = listRef.current.children[0].offsetWidth;
56
- setVisibleCount(Math.floor(width / dotWidth));
57
- });
58
- React.useEffect(() => resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect(), [resizeObserver]);
59
- const refs = useMergedRefs(ref, resizeRef, listRef);
60
- const firstVisibleDotIndex = React.useMemo(() => getBoundedValue(currentIndex - Math.ceil(visibleCount / 2) + 1, 0, slideCount - visibleCount), [currentIndex, slideCount, visibleCount]);
61
- const lastVisibleDotIndex = React.useMemo(() => getBoundedValue(currentIndex + Math.floor(visibleCount / 2), visibleCount - 1, slideCount - 1), [currentIndex, slideCount, visibleCount]);
62
- const dots = React.useMemo(() => {
63
- return Array(slideCount)
64
- .fill(null)
65
- .map((_, index) => {
66
- const isFirstSmallDot = (index === firstVisibleDotIndex && index !== 0) ||
67
- (index === lastVisibleDotIndex && index !== slideCount - 1);
68
- const isSecondSmallDot = (index === firstVisibleDotIndex + 1 && index !== 1) ||
69
- (index === lastVisibleDotIndex - 1 && index !== slideCount - 2);
70
- const isClipped = index < firstVisibleDotIndex || index > lastVisibleDotIndex;
71
- return (React.createElement(CarouselDot, { key: index, "aria-label": `Slide ${index}`, isActive: index === currentIndex, onClick: () => handleSlideChange(index), isSmall: isSecondSmallDot, isSmaller: isFirstSmallDot || isClipped, id: idPrefix && `${idPrefix}--dot-${index}`, "aria-controls": idPrefix && `${idPrefix}--slide-${index}` }));
72
- });
73
- }, [
74
- slideCount,
75
- firstVisibleDotIndex,
76
- lastVisibleDotIndex,
77
- currentIndex,
78
- idPrefix,
79
- handleSlideChange,
80
- ]);
81
- React.useEffect(() => {
82
- var _a, _b, _c;
83
- const firstDot = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.children[firstVisibleDotIndex];
84
- if (!listRef.current || !firstDot) {
85
- return;
86
- }
87
- const motionOk = (_c = (_b = getWindow()) === null || _b === void 0 ? void 0 : _b.matchMedia('(prefers-reduced-motion: no-preference)')) === null || _c === void 0 ? void 0 : _c.matches;
88
- listRef.current.scrollTo({
89
- left: firstDot.offsetLeft - listRef.current.offsetLeft,
90
- behavior: motionOk && !justMounted.current ? 'smooth' : 'auto',
39
+ const {
40
+ currentIndex: userCurrentIndex,
41
+ length,
42
+ className,
43
+ onSlideChange,
44
+ children,
45
+ ...rest
46
+ } = props;
47
+ const context = React.useContext(CarouselContext);
48
+ const slideCount =
49
+ length ?? context?.slideCount ?? React.Children.count(children);
50
+ const currentIndex = userCurrentIndex ?? context?.currentIndex ?? 0;
51
+ const idPrefix = props.id ?? context?.idPrefix;
52
+ const handleSlideChange = React.useCallback(
53
+ (index) => {
54
+ if (context) {
55
+ context.setCurrentIndex(index);
56
+ context.scrollToSlide.current(index);
57
+ }
58
+ onSlideChange?.(index);
59
+ },
60
+ [context, onSlideChange],
61
+ );
62
+ const justMounted = React.useRef(true);
63
+ const [visibleCount, setVisibleCount] = React.useState(slideCount);
64
+ const listRef = React.useRef(null);
65
+ const [width, setWidth] = React.useState();
66
+ const [resizeRef, resizeObserver] = useResizeObserver(({ width }) => {
67
+ if (!listRef.current) {
68
+ return;
69
+ }
70
+ setWidth(width);
71
+ const dotWidth = listRef.current.children[0].offsetWidth;
72
+ setVisibleCount(Math.floor(width / dotWidth));
73
+ });
74
+ React.useEffect(() => resizeObserver?.disconnect(), [resizeObserver]);
75
+ const refs = useMergedRefs(ref, resizeRef, listRef);
76
+ const firstVisibleDotIndex = React.useMemo(
77
+ () =>
78
+ getBoundedValue(
79
+ currentIndex - Math.ceil(visibleCount / 2) + 1,
80
+ 0,
81
+ slideCount - visibleCount,
82
+ ),
83
+ [currentIndex, slideCount, visibleCount],
84
+ );
85
+ const lastVisibleDotIndex = React.useMemo(
86
+ () =>
87
+ getBoundedValue(
88
+ currentIndex + Math.floor(visibleCount / 2),
89
+ visibleCount - 1,
90
+ slideCount - 1,
91
+ ),
92
+ [currentIndex, slideCount, visibleCount],
93
+ );
94
+ const dots = React.useMemo(() => {
95
+ return Array(slideCount)
96
+ .fill(null)
97
+ .map((_, index) => {
98
+ const isFirstSmallDot =
99
+ (index === firstVisibleDotIndex && index !== 0) ||
100
+ (index === lastVisibleDotIndex && index !== slideCount - 1);
101
+ const isSecondSmallDot =
102
+ (index === firstVisibleDotIndex + 1 && index !== 1) ||
103
+ (index === lastVisibleDotIndex - 1 && index !== slideCount - 2);
104
+ const isClipped =
105
+ index < firstVisibleDotIndex || index > lastVisibleDotIndex;
106
+ return React.createElement(CarouselDot, {
107
+ key: index,
108
+ 'aria-label': `Slide ${index}`,
109
+ isActive: index === currentIndex,
110
+ onClick: () => handleSlideChange(index),
111
+ isSmall: isSecondSmallDot,
112
+ isSmaller: isFirstSmallDot || isClipped,
113
+ id: idPrefix && `${idPrefix}--dot-${index}`,
114
+ 'aria-controls': idPrefix && `${idPrefix}--slide-${index}`,
91
115
  });
92
- if (justMounted.current) {
93
- justMounted.current = false;
94
- }
95
- }, [currentIndex, firstVisibleDotIndex, slideCount, visibleCount, width]);
96
- return (React.createElement(React.Fragment, null,
97
- React.createElement(Box, { className: cx('iui-carousel-navigation-dots', className), role: 'tablist', "aria-label": 'Slides', ref: refs, ...rest }, children !== null && children !== void 0 ? children : dots)));
116
+ });
117
+ }, [
118
+ slideCount,
119
+ firstVisibleDotIndex,
120
+ lastVisibleDotIndex,
121
+ currentIndex,
122
+ idPrefix,
123
+ handleSlideChange,
124
+ ]);
125
+ React.useEffect(() => {
126
+ const firstDot = listRef.current?.children[firstVisibleDotIndex];
127
+ if (!listRef.current || !firstDot) {
128
+ return;
129
+ }
130
+ const motionOk = getWindow()?.matchMedia(
131
+ '(prefers-reduced-motion: no-preference)',
132
+ )?.matches;
133
+ listRef.current.scrollTo({
134
+ left: firstDot.offsetLeft - listRef.current.offsetLeft,
135
+ behavior: motionOk && !justMounted.current ? 'smooth' : 'auto',
136
+ });
137
+ if (justMounted.current) {
138
+ justMounted.current = false;
139
+ }
140
+ }, [currentIndex, firstVisibleDotIndex, slideCount, visibleCount, width]);
141
+ return React.createElement(
142
+ React.Fragment,
143
+ null,
144
+ React.createElement(
145
+ Box,
146
+ {
147
+ className: cx('iui-carousel-navigation-dots', className),
148
+ role: 'tablist',
149
+ 'aria-label': 'Slides',
150
+ ref: refs,
151
+ ...rest,
152
+ },
153
+ children ?? dots,
154
+ ),
155
+ );
98
156
  });
@@ -7,20 +7,22 @@ import type { PolymorphicForwardRefComponent } from '../utils/index.js';
7
7
  * `children` can be specified to override what is shown in this navigation section.
8
8
  */
9
9
  export declare const CarouselNavigation: PolymorphicForwardRefComponent<"nav", {}> & {
10
- PreviousButton: PolymorphicForwardRefComponent<"button", Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
10
+ PreviousButton: PolymorphicForwardRefComponent<"button", Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
11
11
  ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
12
- }, "label" | "as" | "size" | "isActive" | "styleType"> & {
12
+ }, "label" | "as" | "size" | "htmlDisabled" | "styleType" | "isActive" | "iconProps"> & {
13
13
  isActive?: boolean | undefined;
14
14
  label?: React.ReactNode;
15
- } & Omit<import("../Buttons/Button/Button.js").ButtonProps, "startIcon" | "endIcon"> & {
15
+ iconProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> | undefined;
16
+ } & Omit<import("../Buttons/Button/Button.js").ButtonProps, "startIcon" | "endIcon" | "labelProps" | "startIconProps" | "endIconProps"> & {
16
17
  as?: "button" | undefined;
17
18
  }>;
18
- NextButton: PolymorphicForwardRefComponent<"button", Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
19
+ NextButton: PolymorphicForwardRefComponent<"button", Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
19
20
  ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
20
- }, "label" | "as" | "size" | "isActive" | "styleType"> & {
21
+ }, "label" | "as" | "size" | "htmlDisabled" | "styleType" | "isActive" | "iconProps"> & {
21
22
  isActive?: boolean | undefined;
22
23
  label?: React.ReactNode;
23
- } & Omit<import("../Buttons/Button/Button.js").ButtonProps, "startIcon" | "endIcon"> & {
24
+ iconProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> | undefined;
25
+ } & Omit<import("../Buttons/Button/Button.js").ButtonProps, "startIcon" | "endIcon" | "labelProps" | "startIconProps" | "endIconProps"> & {
24
26
  as?: "button" | undefined;
25
27
  }>;
26
28
  };
@@ -9,45 +9,96 @@ import { IconButton } from '../Buttons/index.js';
9
9
  import { CarouselDotsList } from './CarouselDotsList.js';
10
10
  import { Box, SvgChevronLeft, SvgChevronRight } from '../utils/index.js';
11
11
  const CarouselNavigationComponent = React.forwardRef((props, ref) => {
12
- const { className, children, ...rest } = props;
13
- return (React.createElement(Box, { as: 'nav', className: cx('iui-carousel-navigation', className), ref: ref, ...rest }, children !== null && children !== void 0 ? children : (React.createElement(React.Fragment, null,
14
- React.createElement(Box, { className: 'iui-carousel-navigation-left' },
15
- React.createElement(PreviousButton, null)),
12
+ const { className, children, ...rest } = props;
13
+ return React.createElement(
14
+ Box,
15
+ {
16
+ as: 'nav',
17
+ className: cx('iui-carousel-navigation', className),
18
+ ref: ref,
19
+ ...rest,
20
+ },
21
+ children ??
22
+ React.createElement(
23
+ React.Fragment,
24
+ null,
25
+ React.createElement(
26
+ Box,
27
+ { className: 'iui-carousel-navigation-left' },
28
+ React.createElement(PreviousButton, null),
29
+ ),
16
30
  React.createElement(CarouselDotsList, null),
17
- React.createElement(Box, { className: 'iui-carousel-navigation-right' },
18
- React.createElement(NextButton, null))))));
31
+ React.createElement(
32
+ Box,
33
+ { className: 'iui-carousel-navigation-right' },
34
+ React.createElement(NextButton, null),
35
+ ),
36
+ ),
37
+ );
19
38
  });
20
39
  /** Button for switching to previous slide */
21
40
  const PreviousButton = React.forwardRef((props, ref) => {
22
- const context = React.useContext(CarouselContext);
23
- if (!context) {
24
- throw new Error('CarouselNavigation should be used inside Carousel');
25
- }
26
- const { slideCount, currentIndex, setCurrentIndex, keysPressed, scrollToSlide, } = context;
27
- return (React.createElement(IconButton, { styleType: 'borderless', size: 'small', tabIndex: -1, "data-pressed": keysPressed['ArrowLeft'] || undefined, ref: ref, ...props, onClick: (e) => {
28
- var _a;
29
- const prevIndex = (slideCount + currentIndex - 1) % slideCount;
30
- setCurrentIndex(prevIndex);
31
- scrollToSlide.current(prevIndex, { instant: e.detail > 3 });
32
- (_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
33
- } },
34
- React.createElement(SvgChevronLeft, null)));
41
+ const context = React.useContext(CarouselContext);
42
+ if (!context) {
43
+ throw new Error('CarouselNavigation should be used inside Carousel');
44
+ }
45
+ const {
46
+ slideCount,
47
+ currentIndex,
48
+ setCurrentIndex,
49
+ keysPressed,
50
+ scrollToSlide,
51
+ } = context;
52
+ return React.createElement(
53
+ IconButton,
54
+ {
55
+ styleType: 'borderless',
56
+ size: 'small',
57
+ tabIndex: -1,
58
+ 'data-pressed': keysPressed['ArrowLeft'] || undefined,
59
+ ref: ref,
60
+ ...props,
61
+ onClick: (e) => {
62
+ const prevIndex = (slideCount + currentIndex - 1) % slideCount;
63
+ setCurrentIndex(prevIndex);
64
+ scrollToSlide.current(prevIndex, { instant: e.detail > 3 });
65
+ props?.onClick?.(e);
66
+ },
67
+ },
68
+ React.createElement(SvgChevronLeft, null),
69
+ );
35
70
  });
36
71
  /** Button for switching to next slide */
37
72
  const NextButton = React.forwardRef((props, ref) => {
38
- const context = React.useContext(CarouselContext);
39
- if (!context) {
40
- throw new Error('CarouselNavigation should be used inside Carousel');
41
- }
42
- const { slideCount, currentIndex, setCurrentIndex, keysPressed, scrollToSlide, } = context;
43
- return (React.createElement(IconButton, { styleType: 'borderless', size: 'small', tabIndex: -1, "data-pressed": keysPressed['ArrowRight'] || undefined, ref: ref, ...props, onClick: (e) => {
44
- var _a;
45
- const nextIndex = (slideCount + currentIndex + 1) % slideCount;
46
- setCurrentIndex(nextIndex);
47
- scrollToSlide.current(nextIndex, { instant: e.detail > 3 });
48
- (_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
49
- } },
50
- React.createElement(SvgChevronRight, null)));
73
+ const context = React.useContext(CarouselContext);
74
+ if (!context) {
75
+ throw new Error('CarouselNavigation should be used inside Carousel');
76
+ }
77
+ const {
78
+ slideCount,
79
+ currentIndex,
80
+ setCurrentIndex,
81
+ keysPressed,
82
+ scrollToSlide,
83
+ } = context;
84
+ return React.createElement(
85
+ IconButton,
86
+ {
87
+ styleType: 'borderless',
88
+ size: 'small',
89
+ tabIndex: -1,
90
+ 'data-pressed': keysPressed['ArrowRight'] || undefined,
91
+ ref: ref,
92
+ ...props,
93
+ onClick: (e) => {
94
+ const nextIndex = (slideCount + currentIndex + 1) % slideCount;
95
+ setCurrentIndex(nextIndex);
96
+ scrollToSlide.current(nextIndex, { instant: e.detail > 3 });
97
+ props?.onClick?.(e);
98
+ },
99
+ },
100
+ React.createElement(SvgChevronRight, null),
101
+ );
51
102
  });
52
103
  /**
53
104
  * The `CarouselNavigation` component by default consists of the `PreviousButton` and `NextButton`
@@ -56,6 +107,6 @@ const NextButton = React.forwardRef((props, ref) => {
56
107
  * `children` can be specified to override what is shown in this navigation section.
57
108
  */
58
109
  export const CarouselNavigation = Object.assign(CarouselNavigationComponent, {
59
- PreviousButton,
60
- NextButton,
110
+ PreviousButton,
111
+ NextButton,
61
112
  });
@@ -1,5 +1,5 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- declare type CarouselSlideProps = {
2
+ type CarouselSlideProps = {
3
3
  /**
4
4
  * Index of the current slide.
5
5
  * Does not need to be manually specified because it will be set in parent (`CarouselSlider`).
@@ -13,19 +13,34 @@ import { CarouselContext } from './CarouselContext.js';
13
13
  * the dimensions should be the same for all slides.
14
14
  */
15
15
  export const CarouselSlide = React.forwardRef((props, ref) => {
16
- const { index, className, children, ...rest } = props;
17
- const context = React.useContext(CarouselContext);
18
- if (!context || index == null) {
19
- throw new Error('CarouselSlide must be used within Carousel');
16
+ const { index, className, children, ...rest } = props;
17
+ const context = React.useContext(CarouselContext);
18
+ if (!context || index == null) {
19
+ throw new Error('CarouselSlide must be used within Carousel');
20
+ }
21
+ const { isManuallyUpdating, setCurrentIndex } = context;
22
+ const updateActiveIndexOnScroll = React.useCallback(() => {
23
+ // only update index if scroll was triggered by browser
24
+ if (!isManuallyUpdating.current) {
25
+ setCurrentIndex(index);
20
26
  }
21
- const { isManuallyUpdating, setCurrentIndex } = context;
22
- const updateActiveIndexOnScroll = React.useCallback(() => {
23
- // only update index if scroll was triggered by browser
24
- if (!isManuallyUpdating.current) {
25
- setCurrentIndex(index);
26
- }
27
- }, [index, isManuallyUpdating, setCurrentIndex]);
28
- const intersectionRef = useIntersection(updateActiveIndexOnScroll, { threshold: 0.5 }, false);
29
- const refs = useMergedRefs(intersectionRef, ref);
30
- return (React.createElement(Box, { as: 'li', className: cx('iui-carousel-slider-item', className), role: 'tabpanel', "aria-roledescription": 'slide', ref: refs, ...rest }, children));
27
+ }, [index, isManuallyUpdating, setCurrentIndex]);
28
+ const intersectionRef = useIntersection(
29
+ updateActiveIndexOnScroll,
30
+ { threshold: 0.5 },
31
+ false,
32
+ );
33
+ const refs = useMergedRefs(intersectionRef, ref);
34
+ return React.createElement(
35
+ Box,
36
+ {
37
+ as: 'li',
38
+ className: cx('iui-carousel-slider-item', className),
39
+ role: 'tabpanel',
40
+ 'aria-roledescription': 'slide',
41
+ ref: refs,
42
+ ...rest,
43
+ },
44
+ children,
45
+ );
31
46
  });
@@ -5,54 +5,74 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { CarouselContext } from './CarouselContext.js';
8
- import { getWindow, useMergedRefs, useIsomorphicLayoutEffect, Box, } from '../utils/index.js';
8
+ import {
9
+ getWindow,
10
+ useMergedRefs,
11
+ useIsomorphicLayoutEffect,
12
+ Box,
13
+ } from '../utils/index.js';
9
14
  /**
10
15
  * `CarouselSlider` is the scrollable list that should consist of `CarouselSlide` components.
11
16
  */
12
17
  export const CarouselSlider = React.forwardRef((props, ref) => {
13
- const { children, className, ...rest } = props;
14
- const context = React.useContext(CarouselContext);
15
- if (!context) {
16
- throw new Error('CarouselSlider must be used within Carousel');
17
- }
18
- const { setSlideCount, idPrefix, scrollToSlide, isManuallyUpdating } = context;
19
- const items = React.useMemo(() => {
20
- var _a;
21
- return (_a = React.Children.map(children, (child, index) => React.isValidElement(child)
22
- ? React.cloneElement(child, {
23
- id: `${idPrefix}--slide-${index}`,
24
- index,
18
+ const { children, className, ...rest } = props;
19
+ const context = React.useContext(CarouselContext);
20
+ if (!context) {
21
+ throw new Error('CarouselSlider must be used within Carousel');
22
+ }
23
+ const { setSlideCount, idPrefix, scrollToSlide, isManuallyUpdating } =
24
+ context;
25
+ const items = React.useMemo(
26
+ () =>
27
+ React.Children.map(children, (child, index) =>
28
+ React.isValidElement(child)
29
+ ? React.cloneElement(child, {
30
+ id: `${idPrefix}--slide-${index}`,
31
+ index,
25
32
  })
26
- : child)) !== null && _a !== void 0 ? _a : [];
27
- }, [children, idPrefix]);
28
- useIsomorphicLayoutEffect(() => {
29
- setSlideCount(items.length);
30
- }, [items.length, setSlideCount]);
31
- const sliderRef = React.useRef(null);
32
- const refs = useMergedRefs(sliderRef, ref);
33
- scrollToSlide.current = (slideIndex, { instant } = {}) => {
34
- var _a, _b, _c;
35
- isManuallyUpdating.current = true; // start manual update
36
- const slideToShow = (_a = sliderRef.current) === null || _a === void 0 ? void 0 : _a.children.item(slideIndex);
37
- if (!sliderRef.current || !slideToShow) {
38
- return;
39
- }
40
- const motionOk = (_c = (_b = getWindow()) === null || _b === void 0 ? void 0 : _b.matchMedia('(prefers-reduced-motion: no-preference)')) === null || _c === void 0 ? void 0 : _c.matches;
41
- sliderRef.current.scrollTo({
42
- left: slideToShow.offsetLeft - sliderRef.current.offsetLeft,
43
- behavior: (instant || !motionOk ? 'instant' : 'smooth'), // scrollTo accepts 'instant' but ScrollBehavior type is wrong
44
- });
45
- };
46
- const scrollTimeout = React.useRef();
47
- // reset isManuallyUpdating.current to false after the last scroll event
48
- const handleOnScroll = React.useCallback(() => {
49
- var _a, _b;
50
- if (scrollTimeout.current) {
51
- (_a = getWindow()) === null || _a === void 0 ? void 0 : _a.clearTimeout(scrollTimeout.current);
52
- }
53
- scrollTimeout.current = (_b = getWindow()) === null || _b === void 0 ? void 0 : _b.setTimeout(() => {
54
- isManuallyUpdating.current = false;
55
- }, 100);
56
- }, [isManuallyUpdating]);
57
- return (React.createElement(Box, { as: 'ol', "aria-live": 'polite', className: cx('iui-carousel-slider', className), ref: refs, onScroll: handleOnScroll, ...rest }, items));
33
+ : child,
34
+ ) ?? [],
35
+ [children, idPrefix],
36
+ );
37
+ useIsomorphicLayoutEffect(() => {
38
+ setSlideCount(items.length);
39
+ }, [items.length, setSlideCount]);
40
+ const sliderRef = React.useRef(null);
41
+ const refs = useMergedRefs(sliderRef, ref);
42
+ scrollToSlide.current = (slideIndex, { instant } = {}) => {
43
+ isManuallyUpdating.current = true; // start manual update
44
+ const slideToShow = sliderRef.current?.children.item(slideIndex);
45
+ if (!sliderRef.current || !slideToShow) {
46
+ return;
47
+ }
48
+ const motionOk = getWindow()?.matchMedia(
49
+ '(prefers-reduced-motion: no-preference)',
50
+ )?.matches;
51
+ sliderRef.current.scrollTo({
52
+ left: slideToShow.offsetLeft - sliderRef.current.offsetLeft,
53
+ behavior: instant || !motionOk ? 'instant' : 'smooth', // scrollTo accepts 'instant' but ScrollBehavior type is wrong
54
+ });
55
+ };
56
+ const scrollTimeout = React.useRef();
57
+ // reset isManuallyUpdating.current to false after the last scroll event
58
+ const handleOnScroll = React.useCallback(() => {
59
+ if (scrollTimeout.current) {
60
+ getWindow()?.clearTimeout(scrollTimeout.current);
61
+ }
62
+ scrollTimeout.current = getWindow()?.setTimeout(() => {
63
+ isManuallyUpdating.current = false;
64
+ }, 100);
65
+ }, [isManuallyUpdating]);
66
+ return React.createElement(
67
+ Box,
68
+ {
69
+ as: 'ol',
70
+ 'aria-live': 'polite',
71
+ className: cx('iui-carousel-slider', className),
72
+ ref: refs,
73
+ onScroll: handleOnScroll,
74
+ ...rest,
75
+ },
76
+ items,
77
+ );
58
78
  });
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- declare type CheckboxProps = {
3
+ type CheckboxProps = {
4
4
  /**
5
5
  * Text that will be shown next to the checkbox.
6
6
  */
@@ -19,15 +19,19 @@ declare type CheckboxProps = {
19
19
  * @default 'default'
20
20
  */
21
21
  variant?: 'default' | 'eyeball';
22
- /**
23
- * Set focus on checkbox.
24
- */
25
- setFocus?: boolean;
26
22
  /**
27
23
  * Display a loading state.
28
24
  * @default false
29
25
  */
30
26
  isLoading?: boolean;
27
+ /**
28
+ * Passes properties for checkbox wrapper.
29
+ */
30
+ wrapperProps?: React.ComponentProps<'label'>;
31
+ /**
32
+ * Passes properties for checkbox label.
33
+ */
34
+ labelProps?: React.ComponentProps<'span'>;
31
35
  };
32
36
  /**
33
37
  * Simple input checkbox