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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1252) hide show
  1. package/CHANGELOG.md +301 -1
  2. package/cjs/core/Alert/Alert.d.ts +57 -27
  3. package/cjs/core/Alert/Alert.js +157 -53
  4. package/cjs/core/Avatar/Avatar.d.ts +6 -9
  5. package/cjs/core/Avatar/Avatar.js +64 -49
  6. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  7. package/cjs/core/AvatarGroup/AvatarGroup.js +65 -58
  8. package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
  9. package/cjs/core/Backdrop/Backdrop.js +16 -33
  10. package/cjs/core/Badge/Badge.d.ts +1 -1
  11. package/cjs/core/Badge/Badge.js +39 -47
  12. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  13. package/cjs/core/Breadcrumbs/Breadcrumbs.js +149 -63
  14. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  15. package/cjs/core/ButtonGroup/ButtonGroup.js +64 -52
  16. package/cjs/core/Buttons/{Button/Button.d.ts → Button.d.ts} +17 -4
  17. package/cjs/core/Buttons/Button.js +74 -0
  18. package/{esm/core/Buttons/DropdownButton → cjs/core/Buttons}/DropdownButton.d.ts +5 -5
  19. package/cjs/core/Buttons/DropdownButton.js +66 -0
  20. package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +8 -4
  21. package/cjs/core/Buttons/IconButton.js +68 -0
  22. package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +2 -2
  23. package/cjs/core/Buttons/IdeasButton.js +33 -0
  24. package/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +14 -5
  25. package/cjs/core/Buttons/SplitButton.js +125 -0
  26. package/cjs/core/Carousel/Carousel.d.ts +9 -7
  27. package/cjs/core/Carousel/Carousel.js +109 -109
  28. package/cjs/core/Carousel/CarouselContext.js +4 -26
  29. package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
  30. package/cjs/core/Carousel/CarouselDot.js +23 -37
  31. package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
  32. package/cjs/core/Carousel/CarouselDotsList.js +129 -97
  33. package/cjs/core/Carousel/CarouselNavigation.d.ts +8 -6
  34. package/cjs/core/Carousel/CarouselNavigation.js +97 -68
  35. package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
  36. package/cjs/core/Carousel/CarouselSlide.js +39 -46
  37. package/cjs/core/Carousel/CarouselSlider.js +66 -76
  38. package/cjs/core/Checkbox/Checkbox.d.ts +9 -5
  39. package/cjs/core/Checkbox/Checkbox.js +88 -60
  40. package/cjs/core/ColorPicker/ColorBuilder.js +290 -201
  41. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  42. package/cjs/core/ColorPicker/ColorInputPanel.js +393 -284
  43. package/cjs/core/ColorPicker/ColorPalette.d.ts +1 -1
  44. package/cjs/core/ColorPicker/ColorPalette.js +124 -115
  45. package/cjs/core/ColorPicker/ColorPicker.d.ts +10 -6
  46. package/cjs/core/ColorPicker/ColorPicker.js +87 -85
  47. package/cjs/core/ColorPicker/ColorPickerContext.js +11 -31
  48. package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
  49. package/cjs/core/ColorPicker/ColorSwatch.js +30 -39
  50. package/cjs/core/ComboBox/ComboBox.d.ts +14 -9
  51. package/cjs/core/ComboBox/ComboBox.js +403 -302
  52. package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  53. package/cjs/core/ComboBox/ComboBoxEndIcon.js +28 -43
  54. package/cjs/core/ComboBox/ComboBoxInput.d.ts +3 -3
  55. package/cjs/core/ComboBox/ComboBoxInput.js +208 -151
  56. package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  57. package/cjs/core/ComboBox/ComboBoxInputContainer.js +35 -34
  58. package/cjs/core/ComboBox/ComboBoxMenu.d.ts +3 -3
  59. package/cjs/core/ComboBox/ComboBoxMenu.js +89 -77
  60. package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
  61. package/cjs/core/ComboBox/ComboBoxMenuItem.js +73 -42
  62. package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  63. package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +13 -32
  64. package/cjs/core/ComboBox/helpers.d.ts +7 -5
  65. package/cjs/core/ComboBox/helpers.js +47 -66
  66. package/cjs/core/DatePicker/DatePicker.d.ts +41 -10
  67. package/cjs/core/DatePicker/DatePicker.js +569 -357
  68. package/cjs/core/Dialog/Dialog.d.ts +1 -1
  69. package/cjs/core/Dialog/Dialog.js +65 -61
  70. package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
  71. package/cjs/core/Dialog/DialogBackdrop.js +47 -52
  72. package/cjs/core/Dialog/DialogButtonBar.js +3 -3
  73. package/cjs/core/Dialog/DialogContent.d.ts +2 -1
  74. package/cjs/core/Dialog/DialogContent.js +28 -4
  75. package/cjs/core/Dialog/DialogContext.d.ts +11 -1
  76. package/cjs/core/Dialog/DialogContext.js +5 -27
  77. package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
  78. package/cjs/core/Dialog/DialogDragContext.js +8 -30
  79. package/cjs/core/Dialog/DialogMain.d.ts +1 -1
  80. package/cjs/core/Dialog/DialogMain.js +183 -148
  81. package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
  82. package/cjs/core/Dialog/DialogTitleBar.js +67 -45
  83. package/cjs/core/Dialog/DialogTitleBarTitle.js +3 -3
  84. package/{esm/core/utils/components → cjs/core/Divider}/Divider.d.ts +2 -2
  85. package/cjs/core/Divider/Divider.js +25 -0
  86. package/cjs/core/DropdownMenu/DropdownMenu.d.ts +8 -7
  87. package/cjs/core/DropdownMenu/DropdownMenu.js +83 -58
  88. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
  89. package/cjs/core/ExpandableBlock/ExpandableBlock.js +255 -76
  90. package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
  91. package/cjs/core/Fieldset/Fieldset.js +25 -39
  92. package/cjs/core/FileUpload/FileEmptyCard.js +43 -42
  93. package/cjs/core/FileUpload/FileUpload.d.ts +8 -5
  94. package/cjs/core/FileUpload/FileUpload.js +90 -72
  95. package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
  96. package/cjs/core/FileUpload/FileUploadCard.js +169 -109
  97. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +2 -1
  98. package/cjs/core/FileUpload/FileUploadTemplate.js +52 -41
  99. package/{esm/core/utils/components → cjs/core/Flex}/Flex.d.ts +6 -6
  100. package/cjs/core/Flex/Flex.js +148 -0
  101. package/cjs/core/Footer/Footer.d.ts +4 -4
  102. package/cjs/core/Footer/Footer.js +103 -89
  103. package/cjs/core/Footer/FooterItem.js +3 -3
  104. package/cjs/core/Footer/FooterList.js +3 -3
  105. package/cjs/core/Footer/FooterSeparator.js +8 -5
  106. package/cjs/core/Header/Header.d.ts +3 -22
  107. package/cjs/core/Header/Header.js +67 -48
  108. package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
  109. package/cjs/core/Header/HeaderBasicButton.js +24 -38
  110. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  111. package/cjs/core/Header/HeaderBreadcrumbs.js +38 -39
  112. package/cjs/core/Header/HeaderButton.d.ts +7 -3
  113. package/cjs/core/Header/HeaderButton.js +76 -43
  114. package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
  115. package/cjs/core/Header/HeaderDropdownButton.js +48 -45
  116. package/cjs/core/Header/HeaderLogo.d.ts +1 -1
  117. package/cjs/core/Header/HeaderLogo.js +42 -36
  118. package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
  119. package/cjs/core/Header/HeaderSplitButton.js +66 -46
  120. package/{esm/core/utils/components → cjs/core/Icon}/Icon.d.ts +8 -3
  121. package/cjs/core/Icon/Icon.js +56 -0
  122. package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
  123. package/cjs/core/InformationPanel/InformationPanel.js +77 -70
  124. package/cjs/core/InformationPanel/InformationPanelBody.js +6 -4
  125. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  126. package/cjs/core/InformationPanel/InformationPanelContent.js +20 -33
  127. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  128. package/cjs/core/InformationPanel/InformationPanelHeader.js +34 -39
  129. package/cjs/core/InformationPanel/InformationPanelWrapper.js +6 -4
  130. package/cjs/core/Input/Input.d.ts +10 -7
  131. package/cjs/core/Input/Input.js +18 -41
  132. package/cjs/core/InputGrid/InputGrid.d.ts +25 -0
  133. package/cjs/core/InputGrid/InputGrid.js +39 -0
  134. package/cjs/core/InputGroup/InputGroup.d.ts +14 -1
  135. package/cjs/core/InputGroup/InputGroup.js +72 -41
  136. package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
  137. package/cjs/core/InputWithDecorations/InputWithDecorations.js +81 -0
  138. package/cjs/core/Label/Label.d.ts +6 -1
  139. package/cjs/core/Label/Label.js +32 -36
  140. package/cjs/core/LabeledInput/LabeledInput.d.ts +24 -18
  141. package/cjs/core/LabeledInput/LabeledInput.js +71 -34
  142. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +18 -8
  143. package/cjs/core/LabeledSelect/LabeledSelect.js +76 -44
  144. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
  145. package/cjs/core/LabeledTextarea/LabeledTextarea.js +17 -34
  146. package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
  147. package/cjs/core/{utils/components → LinkAction}/LinkAction.js +3 -3
  148. package/cjs/core/List/List.js +3 -3
  149. package/cjs/core/List/ListItem.d.ts +4 -4
  150. package/cjs/core/List/ListItem.js +55 -60
  151. package/cjs/core/Menu/Menu.d.ts +2 -2
  152. package/cjs/core/Menu/Menu.js +66 -79
  153. package/cjs/core/Menu/MenuDivider.d.ts +2 -1
  154. package/cjs/core/Menu/MenuDivider.js +5 -5
  155. package/cjs/core/Menu/MenuExtraContent.js +4 -4
  156. package/cjs/core/Menu/MenuItem.d.ts +2 -2
  157. package/cjs/core/Menu/MenuItem.js +169 -91
  158. package/cjs/core/Menu/MenuItemSkeleton.d.ts +2 -2
  159. package/cjs/core/Menu/MenuItemSkeleton.js +54 -43
  160. package/cjs/core/Modal/Modal.d.ts +9 -10
  161. package/cjs/core/Modal/Modal.js +38 -43
  162. package/cjs/core/Modal/ModalButtonBar.js +7 -4
  163. package/cjs/core/Modal/ModalContent.js +3 -3
  164. package/cjs/core/NonIdealState/ErrorPage.d.ts +6 -7
  165. package/cjs/core/NonIdealState/ErrorPage.js +189 -146
  166. package/cjs/core/NonIdealState/NonIdealState.d.ts +17 -1
  167. package/cjs/core/NonIdealState/NonIdealState.js +77 -37
  168. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  169. package/cjs/core/NotificationMarker/NotificationMarker.js +29 -33
  170. package/cjs/core/Overlay/Overlay.d.ts +57 -0
  171. package/cjs/core/Overlay/Overlay.js +96 -0
  172. package/cjs/core/Popover/Popover.d.ts +121 -0
  173. package/cjs/core/Popover/Popover.js +174 -0
  174. package/cjs/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +10 -6
  175. package/cjs/core/ProgressIndicators/ProgressLinear.js +72 -0
  176. package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  177. package/cjs/core/ProgressIndicators/ProgressRadial.js +74 -0
  178. package/cjs/core/Radio/Radio.d.ts +7 -4
  179. package/cjs/core/Radio/Radio.js +54 -42
  180. package/cjs/core/RadioTiles/RadioTile.d.ts +15 -4
  181. package/cjs/core/RadioTiles/RadioTile.js +80 -45
  182. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +2 -2
  183. package/cjs/core/RadioTiles/RadioTileGroup.js +16 -31
  184. package/cjs/core/SearchBox/SearchBox.d.ts +6 -5
  185. package/cjs/core/SearchBox/SearchBox.js +221 -128
  186. package/cjs/core/Select/Select.d.ts +12 -13
  187. package/cjs/core/Select/Select.js +273 -185
  188. package/cjs/core/Select/SelectTag.d.ts +1 -1
  189. package/cjs/core/Select/SelectTag.js +21 -34
  190. package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
  191. package/cjs/core/Select/SelectTagContainer.js +30 -39
  192. package/cjs/core/SideNavigation/SideNavigation.d.ts +17 -1
  193. package/cjs/core/SideNavigation/SideNavigation.js +138 -54
  194. package/cjs/core/SideNavigation/SidenavButton.d.ts +2 -2
  195. package/cjs/core/SideNavigation/SidenavButton.js +30 -33
  196. package/cjs/core/SideNavigation/SidenavSubmenu.js +23 -34
  197. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  198. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -35
  199. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  200. package/cjs/core/SkipToContentLink/SkipToContentLink.js +20 -33
  201. package/cjs/core/Slider/Slider.d.ts +29 -9
  202. package/cjs/core/Slider/Slider.js +391 -230
  203. package/cjs/core/Slider/Thumb.d.ts +4 -4
  204. package/cjs/core/Slider/Thumb.js +112 -84
  205. package/cjs/core/Slider/Track.d.ts +4 -4
  206. package/cjs/core/Slider/Track.js +83 -76
  207. package/cjs/core/StatusMessage/StatusMessage.d.ts +13 -3
  208. package/cjs/core/StatusMessage/StatusMessage.js +37 -35
  209. package/cjs/core/Stepper/Stepper.d.ts +29 -4
  210. package/cjs/core/Stepper/Stepper.js +80 -36
  211. package/cjs/core/Stepper/StepperStep.d.ts +18 -1
  212. package/cjs/core/Stepper/StepperStep.js +109 -63
  213. package/cjs/core/Stepper/WorkflowDiagram.d.ts +11 -1
  214. package/cjs/core/Stepper/WorkflowDiagram.js +39 -34
  215. package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
  216. package/cjs/core/Stepper/WorkflowDiagramStep.js +39 -36
  217. package/cjs/core/Surface/Surface.d.ts +2 -2
  218. package/cjs/core/Surface/Surface.js +78 -70
  219. package/cjs/core/Table/SubRowExpander.d.ts +3 -3
  220. package/cjs/core/Table/SubRowExpander.js +37 -37
  221. package/cjs/core/Table/Table.d.ts +19 -3
  222. package/cjs/core/Table/Table.js +764 -453
  223. package/cjs/core/Table/TableCell.d.ts +3 -3
  224. package/cjs/core/Table/TableCell.js +113 -88
  225. package/cjs/core/Table/TablePaginator.d.ts +3 -3
  226. package/cjs/core/Table/TablePaginator.js +312 -160
  227. package/cjs/core/Table/TableRowMemoized.d.ts +5 -5
  228. package/cjs/core/Table/TableRowMemoized.js +156 -115
  229. package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
  230. package/cjs/core/Table/actionHandlers/expandHandler.js +12 -12
  231. package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
  232. package/cjs/core/Table/actionHandlers/filterHandler.js +25 -18
  233. package/cjs/core/Table/actionHandlers/index.js +56 -14
  234. package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
  235. package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -13
  236. package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
  237. package/cjs/core/Table/actionHandlers/selectHandler.js +123 -96
  238. package/cjs/core/Table/cells/DefaultCell.d.ts +3 -3
  239. package/cjs/core/Table/cells/DefaultCell.js +48 -38
  240. package/cjs/core/Table/cells/EditableCell.d.ts +3 -3
  241. package/cjs/core/Table/cells/EditableCell.js +75 -74
  242. package/cjs/core/Table/cells/index.js +16 -6
  243. package/cjs/core/Table/columns/actionColumn.d.ts +5 -5
  244. package/cjs/core/Table/columns/actionColumn.js +97 -99
  245. package/cjs/core/Table/columns/expanderColumn.d.ts +3 -3
  246. package/cjs/core/Table/columns/expanderColumn.js +45 -54
  247. package/cjs/core/Table/columns/index.js +41 -11
  248. package/cjs/core/Table/columns/selectionColumn.d.ts +5 -5
  249. package/cjs/core/Table/columns/selectionColumn.js +57 -51
  250. package/cjs/core/Table/filters/BaseFilter.d.ts +2 -2
  251. package/cjs/core/Table/filters/BaseFilter.js +24 -38
  252. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
  253. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +122 -75
  254. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
  255. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +120 -80
  256. package/cjs/core/Table/filters/FilterButtonBar.d.ts +3 -3
  257. package/cjs/core/Table/filters/FilterButtonBar.js +39 -41
  258. package/cjs/core/Table/filters/FilterToggle.d.ts +4 -4
  259. package/cjs/core/Table/filters/FilterToggle.js +62 -51
  260. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  261. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +58 -53
  262. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  263. package/cjs/core/Table/filters/TextFilter/TextFilter.js +40 -45
  264. package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
  265. package/cjs/core/Table/filters/customFilterFunctions.js +16 -14
  266. package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
  267. package/cjs/core/Table/filters/defaultFilterFunctions.js +86 -81
  268. package/cjs/core/Table/filters/index.js +35 -11
  269. package/cjs/core/Table/filters/tableFilters.d.ts +5 -5
  270. package/cjs/core/Table/filters/tableFilters.js +44 -54
  271. package/cjs/core/Table/filters/types.d.ts +2 -19
  272. package/cjs/core/Table/filters/types.js +2 -2
  273. package/cjs/core/Table/hooks/index.js +67 -19
  274. package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
  275. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +101 -88
  276. package/cjs/core/Table/hooks/useExpanderCell.d.ts +2 -2
  277. package/cjs/core/Table/hooks/useExpanderCell.js +33 -47
  278. package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
  279. package/cjs/core/Table/hooks/useResizeColumns.js +362 -296
  280. package/cjs/core/Table/hooks/useScrollToRow.d.ts +3 -3
  281. package/cjs/core/Table/hooks/useScrollToRow.js +46 -61
  282. package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
  283. package/cjs/core/Table/hooks/useSelectionCell.js +17 -10
  284. package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
  285. package/cjs/core/Table/hooks/useStickyColumns.js +64 -64
  286. package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
  287. package/cjs/core/Table/hooks/useSubRowFiltering.js +95 -112
  288. package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
  289. package/cjs/core/Table/hooks/useSubRowSelection.js +32 -53
  290. package/cjs/core/Table/index.d.ts +1 -1
  291. package/cjs/core/Table/index.js +78 -18
  292. package/cjs/core/Table/utils.d.ts +1 -1
  293. package/cjs/core/Table/utils.js +42 -40
  294. package/cjs/core/Tabs/Tab.d.ts +2 -2
  295. package/cjs/core/Tabs/Tab.js +50 -38
  296. package/cjs/core/Tabs/Tabs.d.ts +6 -42
  297. package/cjs/core/Tabs/Tabs.js +409 -368
  298. package/cjs/core/Tag/Tag.d.ts +1 -1
  299. package/cjs/core/Tag/Tag.js +42 -40
  300. package/cjs/core/Tag/TagContainer.d.ts +1 -1
  301. package/cjs/core/Tag/TagContainer.js +23 -36
  302. package/cjs/core/Textarea/Textarea.d.ts +4 -5
  303. package/cjs/core/Textarea/Textarea.js +13 -42
  304. package/cjs/core/ThemeProvider/ThemeContext.d.ts +1 -1
  305. package/cjs/core/ThemeProvider/ThemeContext.js +4 -26
  306. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +29 -10
  307. package/cjs/core/ThemeProvider/ThemeProvider.js +114 -57
  308. package/cjs/core/Tile/Tile.d.ts +200 -17
  309. package/cjs/core/Tile/Tile.js +496 -132
  310. package/cjs/core/TimePicker/TimePicker.d.ts +3 -3
  311. package/cjs/core/TimePicker/TimePicker.js +458 -259
  312. package/cjs/core/Toast/Toast.d.ts +20 -17
  313. package/cjs/core/Toast/Toast.js +206 -134
  314. package/cjs/core/Toast/Toaster.d.ts +26 -28
  315. package/cjs/core/Toast/Toaster.js +126 -153
  316. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  317. package/cjs/core/ToggleSwitch/ToggleSwitch.js +66 -53
  318. package/cjs/core/Tooltip/Tooltip.d.ts +81 -14
  319. package/cjs/core/Tooltip/Tooltip.js +153 -41
  320. package/cjs/core/TransferList/TransferList.d.ts +7 -7
  321. package/cjs/core/TransferList/TransferList.js +177 -104
  322. package/cjs/core/Tree/Tree.d.ts +5 -5
  323. package/cjs/core/Tree/Tree.js +205 -161
  324. package/cjs/core/Tree/TreeContext.d.ts +1 -1
  325. package/cjs/core/Tree/TreeContext.js +9 -31
  326. package/cjs/core/Tree/TreeNode.d.ts +2 -2
  327. package/cjs/core/Tree/TreeNode.js +207 -130
  328. package/cjs/core/Tree/TreeNodeExpander.d.ts +2 -2
  329. package/cjs/core/Tree/TreeNodeExpander.js +26 -37
  330. package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
  331. package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +3 -3
  332. package/cjs/core/Typography/{Blockquote/Blockquote.d.ts → Blockquote.d.ts} +2 -2
  333. package/cjs/core/Typography/Blockquote.js +34 -0
  334. package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
  335. package/cjs/core/Typography/{Code/Code.js → Code.js} +3 -3
  336. package/cjs/core/Typography/{Kbd/Kbd.d.ts → Kbd.d.ts} +2 -2
  337. package/cjs/core/Typography/Kbd.js +49 -0
  338. package/cjs/core/Typography/{Text/Text.d.ts → Text.d.ts} +2 -2
  339. package/cjs/core/Typography/Text.js +46 -0
  340. package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.d.ts +2 -2
  341. package/cjs/core/VisuallyHidden/VisuallyHidden.js +32 -0
  342. package/cjs/core/utils/color/ColorValue.d.ts +4 -4
  343. package/cjs/core/utils/color/ColorValue.js +535 -459
  344. package/cjs/core/utils/color/index.js +4 -17
  345. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  346. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +20 -36
  347. package/cjs/core/utils/components/Box.js +3 -3
  348. package/cjs/core/utils/components/ButtonBase.d.ts +14 -0
  349. package/cjs/core/utils/components/ButtonBase.js +46 -0
  350. package/cjs/core/utils/components/FocusTrap.d.ts +3 -3
  351. package/cjs/core/utils/components/FocusTrap.js +47 -60
  352. package/cjs/core/utils/components/InputContainer.d.ts +4 -5
  353. package/cjs/core/utils/components/InputContainer.js +62 -49
  354. package/cjs/core/utils/components/InputFlexContainer.d.ts +2 -1
  355. package/cjs/core/utils/components/InputFlexContainer.js +24 -10
  356. package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  357. package/cjs/core/utils/components/MiddleTextTruncation.js +32 -45
  358. package/cjs/core/utils/components/Portal.d.ts +27 -0
  359. package/cjs/core/utils/components/Portal.js +43 -0
  360. package/cjs/core/utils/components/Resizer.d.ts +2 -2
  361. package/cjs/core/utils/components/Resizer.js +254 -210
  362. package/cjs/core/utils/components/VirtualScroll.d.ts +2 -2
  363. package/cjs/core/utils/components/VirtualScroll.js +303 -251
  364. package/cjs/core/utils/components/WithCSSTransition.d.ts +2 -2
  365. package/cjs/core/utils/components/WithCSSTransition.js +43 -48
  366. package/cjs/core/utils/components/index.d.ts +2 -6
  367. package/cjs/core/utils/components/index.js +14 -31
  368. package/cjs/core/utils/functions/colors.d.ts +1 -1
  369. package/cjs/core/utils/functions/colors.js +26 -35
  370. package/cjs/core/utils/functions/date.js +10 -10
  371. package/cjs/core/utils/functions/dev.d.ts +11 -0
  372. package/cjs/core/utils/functions/dev.js +34 -0
  373. package/cjs/core/utils/functions/dom.d.ts +0 -8
  374. package/cjs/core/utils/functions/dom.js +24 -40
  375. package/cjs/core/utils/functions/focusable.js +26 -17
  376. package/cjs/core/utils/functions/import.d.ts +6 -0
  377. package/cjs/core/utils/functions/import.js +61 -0
  378. package/cjs/core/utils/functions/index.d.ts +3 -0
  379. package/cjs/core/utils/functions/index.js +13 -23
  380. package/cjs/core/utils/functions/numbers.js +9 -9
  381. package/cjs/core/utils/functions/polymorphic.d.ts +5 -3
  382. package/cjs/core/utils/functions/polymorphic.js +43 -55
  383. package/cjs/core/utils/functions/react.d.ts +8 -0
  384. package/cjs/core/utils/functions/react.js +40 -0
  385. package/cjs/core/utils/functions/supports.js +5 -4
  386. package/cjs/core/utils/hooks/index.d.ts +1 -1
  387. package/cjs/core/utils/hooks/index.js +17 -30
  388. package/cjs/core/utils/hooks/useContainerWidth.js +26 -41
  389. package/cjs/core/utils/hooks/useControlledState.d.ts +13 -0
  390. package/cjs/core/utils/hooks/useControlledState.js +39 -0
  391. package/cjs/core/utils/hooks/useDragAndDrop.js +110 -111
  392. package/cjs/core/utils/hooks/useEventListener.js +22 -44
  393. package/cjs/core/utils/hooks/useGlobals.d.ts +9 -2
  394. package/cjs/core/utils/hooks/useGlobals.js +35 -54
  395. package/cjs/core/utils/hooks/useId.js +9 -31
  396. package/cjs/core/utils/hooks/useIntersection.js +30 -47
  397. package/cjs/core/utils/hooks/useIsClient.js +9 -31
  398. package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +6 -27
  399. package/cjs/core/utils/hooks/useLatestRef.js +9 -31
  400. package/cjs/core/utils/hooks/useMediaQuery.js +31 -55
  401. package/cjs/core/utils/hooks/useMergedRefs.js +15 -38
  402. package/cjs/core/utils/hooks/useOverflow.js +69 -79
  403. package/cjs/core/utils/hooks/useResizeObserver.js +22 -40
  404. package/cjs/core/utils/hooks/useSafeContext.js +9 -31
  405. package/cjs/core/utils/icons/StatusIconMap.d.ts +5 -5
  406. package/cjs/core/utils/icons/StatusIconMap.js +28 -34
  407. package/cjs/core/utils/icons/Svg.js +3 -3
  408. package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
  409. package/cjs/core/utils/icons/SvgCalendar.js +12 -29
  410. package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  411. package/cjs/core/utils/icons/SvgCaretDownSmall.js +12 -29
  412. package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  413. package/cjs/core/utils/icons/SvgCaretRightSmall.js +12 -29
  414. package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  415. package/cjs/core/utils/icons/SvgCaretUpSmall.js +12 -29
  416. package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
  417. package/cjs/core/utils/icons/SvgCheckmark.js +10 -29
  418. package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  419. package/cjs/core/utils/icons/SvgCheckmarkSmall.js +12 -29
  420. package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  421. package/cjs/core/utils/icons/SvgChevronLeft.js +12 -29
  422. package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  423. package/cjs/core/utils/icons/SvgChevronLeftDouble.js +12 -29
  424. package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
  425. package/cjs/core/utils/icons/SvgChevronRight.js +12 -29
  426. package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  427. package/cjs/core/utils/icons/SvgChevronRightDouble.js +12 -29
  428. package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
  429. package/cjs/core/utils/icons/SvgClose.js +12 -29
  430. package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  431. package/cjs/core/utils/icons/SvgCloseSmall.js +12 -29
  432. package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
  433. package/cjs/core/utils/icons/SvgColumnManager.js +12 -29
  434. package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
  435. package/cjs/core/utils/icons/SvgDocument.js +10 -29
  436. package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
  437. package/cjs/core/utils/icons/SvgFilter.js +10 -29
  438. package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  439. package/cjs/core/utils/icons/SvgFilterHollow.js +12 -29
  440. package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  441. package/cjs/core/utils/icons/SvgImportantSmall.js +12 -29
  442. package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  443. package/cjs/core/utils/icons/SvgInfoCircular.js +12 -29
  444. package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
  445. package/cjs/core/utils/icons/SvgMore.js +12 -29
  446. package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  447. package/cjs/core/utils/icons/SvgMoreVertical.js +12 -29
  448. package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
  449. package/cjs/core/utils/icons/SvgNew.js +12 -29
  450. package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
  451. package/cjs/core/utils/icons/SvgSearch.js +12 -29
  452. package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  453. package/cjs/core/utils/icons/SvgSmileyHappy.js +12 -29
  454. package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
  455. package/cjs/core/utils/icons/SvgSortDown.js +12 -29
  456. package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
  457. package/cjs/core/utils/icons/SvgSortUp.js +12 -29
  458. package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
  459. package/cjs/core/utils/icons/SvgStatusError.js +12 -29
  460. package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  461. package/cjs/core/utils/icons/SvgStatusSuccess.js +12 -29
  462. package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  463. package/cjs/core/utils/icons/SvgStatusWarning.js +12 -29
  464. package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
  465. package/cjs/core/utils/icons/SvgSwap.js +12 -29
  466. package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
  467. package/cjs/core/utils/icons/SvgUpload.js +12 -29
  468. package/cjs/core/utils/icons/index.js +34 -47
  469. package/cjs/core/utils/index.js +10 -23
  470. package/cjs/core/utils/props.d.ts +2 -2
  471. package/cjs/core/utils/props.js +2 -2
  472. package/cjs/core/utils/types.d.ts +1 -1
  473. package/cjs/core/utils/types.js +2 -2
  474. package/cjs/index.d.ts +113 -2
  475. package/cjs/index.js +951 -18
  476. package/cjs/package.json +1 -0
  477. package/cjs/react-table/react-table.d.ts +745 -0
  478. package/cjs/{core/Badge/index.js → react-table/react-table.js} +6 -6
  479. package/cjs/styles.js +425 -448
  480. package/esm/core/Alert/Alert.d.ts +57 -27
  481. package/esm/core/Alert/Alert.js +159 -23
  482. package/esm/core/Avatar/Avatar.d.ts +6 -9
  483. package/esm/core/Avatar/Avatar.js +49 -18
  484. package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  485. package/esm/core/AvatarGroup/AvatarGroup.js +58 -26
  486. package/esm/core/Backdrop/Backdrop.d.ts +1 -1
  487. package/esm/core/Backdrop/Backdrop.js +10 -2
  488. package/esm/core/Badge/Badge.d.ts +1 -1
  489. package/esm/core/Badge/Badge.js +31 -16
  490. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  491. package/esm/core/Breadcrumbs/Breadcrumbs.js +147 -33
  492. package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  493. package/esm/core/ButtonGroup/ButtonGroup.js +58 -21
  494. package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +17 -4
  495. package/esm/core/Buttons/Button.js +64 -0
  496. package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +5 -5
  497. package/esm/core/Buttons/DropdownButton.js +58 -0
  498. package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +8 -4
  499. package/esm/core/Buttons/IconButton.js +59 -0
  500. package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +2 -2
  501. package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +14 -4
  502. package/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +14 -5
  503. package/esm/core/Buttons/SplitButton.js +128 -0
  504. package/esm/core/Carousel/Carousel.d.ts +9 -7
  505. package/esm/core/Carousel/Carousel.js +103 -73
  506. package/esm/core/Carousel/CarouselDot.d.ts +1 -1
  507. package/esm/core/Carousel/CarouselDot.js +18 -7
  508. package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
  509. package/esm/core/Carousel/CarouselDotsList.js +123 -65
  510. package/esm/core/Carousel/CarouselNavigation.d.ts +8 -6
  511. package/esm/core/Carousel/CarouselNavigation.js +86 -35
  512. package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
  513. package/esm/core/Carousel/CarouselSlide.js +29 -14
  514. package/esm/core/Carousel/CarouselSlider.js +65 -45
  515. package/esm/core/Checkbox/Checkbox.d.ts +9 -5
  516. package/esm/core/Checkbox/Checkbox.js +79 -29
  517. package/esm/core/ColorPicker/ColorBuilder.js +279 -170
  518. package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  519. package/esm/core/ColorPicker/ColorInputPanel.js +380 -253
  520. package/esm/core/ColorPicker/ColorPalette.d.ts +1 -1
  521. package/esm/core/ColorPicker/ColorPalette.js +115 -82
  522. package/esm/core/ColorPicker/ColorPicker.d.ts +10 -6
  523. package/esm/core/ColorPicker/ColorPicker.js +80 -54
  524. package/esm/core/ColorPicker/ColorPickerContext.js +7 -5
  525. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  526. package/esm/core/ColorPicker/ColorSwatch.js +19 -7
  527. package/esm/core/ComboBox/ComboBox.d.ts +14 -9
  528. package/esm/core/ComboBox/ComboBox.js +400 -267
  529. package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  530. package/esm/core/ComboBox/ComboBoxEndIcon.js +20 -13
  531. package/esm/core/ComboBox/ComboBoxInput.d.ts +3 -3
  532. package/esm/core/ComboBox/ComboBoxInput.js +199 -124
  533. package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  534. package/esm/core/ComboBox/ComboBoxInputContainer.js +21 -6
  535. package/esm/core/ComboBox/ComboBoxMenu.d.ts +3 -3
  536. package/esm/core/ComboBox/ComboBoxMenu.js +80 -47
  537. package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
  538. package/esm/core/ComboBox/ComboBoxMenuItem.js +62 -14
  539. package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  540. package/esm/core/ComboBox/ComboBoxMultipleContainer.js +6 -2
  541. package/esm/core/ComboBox/helpers.d.ts +7 -5
  542. package/esm/core/ComboBox/helpers.js +38 -39
  543. package/esm/core/DatePicker/DatePicker.d.ts +41 -10
  544. package/esm/core/DatePicker/DatePicker.js +557 -327
  545. package/esm/core/Dialog/Dialog.d.ts +1 -1
  546. package/esm/core/Dialog/Dialog.js +54 -25
  547. package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
  548. package/esm/core/Dialog/DialogBackdrop.js +40 -20
  549. package/esm/core/Dialog/DialogContent.d.ts +2 -1
  550. package/esm/core/Dialog/DialogContent.js +25 -2
  551. package/esm/core/Dialog/DialogContext.d.ts +11 -1
  552. package/esm/core/Dialog/DialogContext.js +1 -1
  553. package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
  554. package/esm/core/Dialog/DialogDragContext.js +4 -4
  555. package/esm/core/Dialog/DialogMain.d.ts +1 -1
  556. package/esm/core/Dialog/DialogMain.js +177 -114
  557. package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
  558. package/esm/core/Dialog/DialogTitleBar.js +46 -11
  559. package/{cjs/core/utils/components → esm/core/Divider}/Divider.d.ts +2 -2
  560. package/esm/core/{utils/components → Divider}/Divider.js +9 -3
  561. package/esm/core/DropdownMenu/DropdownMenu.d.ts +8 -7
  562. package/esm/core/DropdownMenu/DropdownMenu.js +80 -31
  563. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
  564. package/esm/core/ExpandableBlock/ExpandableBlock.js +246 -46
  565. package/esm/core/Fieldset/Fieldset.d.ts +1 -1
  566. package/esm/core/Fieldset/Fieldset.js +19 -8
  567. package/esm/core/FileUpload/FileEmptyCard.js +19 -8
  568. package/esm/core/FileUpload/FileUpload.d.ts +8 -5
  569. package/esm/core/FileUpload/FileUpload.js +74 -41
  570. package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
  571. package/esm/core/FileUpload/FileUploadCard.js +155 -78
  572. package/esm/core/FileUpload/FileUploadTemplate.d.ts +2 -1
  573. package/esm/core/FileUpload/FileUploadTemplate.js +39 -10
  574. package/{cjs/core/utils/components → esm/core/Flex}/Flex.d.ts +6 -6
  575. package/esm/core/Flex/Flex.js +144 -0
  576. package/esm/core/Footer/Footer.d.ts +4 -4
  577. package/esm/core/Footer/Footer.js +86 -55
  578. package/esm/core/Footer/FooterSeparator.js +1 -1
  579. package/esm/core/Header/Header.d.ts +3 -22
  580. package/esm/core/Header/Header.js +57 -17
  581. package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
  582. package/esm/core/Header/HeaderBasicButton.js +16 -8
  583. package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  584. package/esm/core/Header/HeaderBreadcrumbs.js +32 -8
  585. package/esm/core/Header/HeaderButton.d.ts +7 -3
  586. package/esm/core/Header/HeaderButton.js +62 -13
  587. package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
  588. package/esm/core/Header/HeaderDropdownButton.js +43 -14
  589. package/esm/core/Header/HeaderLogo.d.ts +1 -1
  590. package/esm/core/Header/HeaderLogo.js +36 -5
  591. package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
  592. package/esm/core/Header/HeaderSplitButton.js +62 -15
  593. package/{cjs/core/utils/components → esm/core/Icon}/Icon.d.ts +8 -3
  594. package/esm/core/{utils/components → Icon}/Icon.js +27 -13
  595. package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
  596. package/esm/core/InformationPanel/InformationPanel.js +71 -39
  597. package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  598. package/esm/core/InformationPanel/InformationPanelContent.js +17 -3
  599. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  600. package/esm/core/InformationPanel/InformationPanelHeader.js +33 -9
  601. package/esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
  602. package/esm/core/Input/Input.d.ts +10 -7
  603. package/esm/core/Input/Input.js +12 -10
  604. package/esm/core/InputGrid/InputGrid.d.ts +25 -0
  605. package/esm/core/InputGrid/InputGrid.js +35 -0
  606. package/esm/core/InputGroup/InputGroup.d.ts +14 -1
  607. package/esm/core/InputGroup/InputGroup.js +62 -15
  608. package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
  609. package/esm/core/InputWithDecorations/InputWithDecorations.js +80 -0
  610. package/esm/core/Label/Label.d.ts +6 -1
  611. package/esm/core/Label/Label.js +26 -5
  612. package/esm/core/LabeledInput/LabeledInput.d.ts +24 -18
  613. package/esm/core/LabeledInput/LabeledInput.js +70 -7
  614. package/esm/core/LabeledSelect/LabeledSelect.d.ts +18 -8
  615. package/esm/core/LabeledSelect/LabeledSelect.js +72 -18
  616. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
  617. package/esm/core/LabeledTextarea/LabeledTextarea.js +15 -8
  618. package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
  619. package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
  620. package/esm/core/List/ListItem.d.ts +4 -4
  621. package/esm/core/List/ListItem.js +46 -28
  622. package/esm/core/Menu/Menu.d.ts +2 -2
  623. package/esm/core/Menu/Menu.js +64 -49
  624. package/esm/core/Menu/MenuDivider.d.ts +2 -1
  625. package/esm/core/Menu/MenuDivider.js +2 -2
  626. package/esm/core/Menu/MenuExtraContent.js +1 -1
  627. package/esm/core/Menu/MenuItem.d.ts +2 -2
  628. package/esm/core/Menu/MenuItem.js +167 -63
  629. package/esm/core/Menu/MenuItemSkeleton.d.ts +2 -2
  630. package/esm/core/Menu/MenuItemSkeleton.js +45 -13
  631. package/esm/core/Modal/Modal.d.ts +9 -10
  632. package/esm/core/Modal/Modal.js +34 -14
  633. package/esm/core/NonIdealState/ErrorPage.d.ts +6 -7
  634. package/esm/core/NonIdealState/ErrorPage.js +178 -118
  635. package/esm/core/NonIdealState/NonIdealState.d.ts +17 -1
  636. package/esm/core/NonIdealState/NonIdealState.js +65 -6
  637. package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  638. package/esm/core/NotificationMarker/NotificationMarker.js +20 -2
  639. package/esm/core/Overlay/Overlay.d.ts +57 -0
  640. package/esm/core/Overlay/Overlay.js +88 -0
  641. package/esm/core/Popover/Popover.d.ts +121 -0
  642. package/esm/core/Popover/Popover.js +189 -0
  643. package/esm/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +10 -6
  644. package/esm/core/ProgressIndicators/ProgressLinear.js +65 -0
  645. package/esm/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  646. package/esm/core/ProgressIndicators/ProgressRadial.js +64 -0
  647. package/esm/core/Radio/Radio.d.ts +7 -4
  648. package/esm/core/Radio/Radio.js +45 -11
  649. package/esm/core/RadioTiles/RadioTile.d.ts +15 -4
  650. package/esm/core/RadioTiles/RadioTile.js +62 -14
  651. package/esm/core/RadioTiles/RadioTileGroup.d.ts +2 -2
  652. package/esm/core/RadioTiles/RadioTileGroup.js +11 -4
  653. package/esm/core/SearchBox/SearchBox.d.ts +6 -5
  654. package/esm/core/SearchBox/SearchBox.js +216 -98
  655. package/esm/core/Select/Select.d.ts +12 -13
  656. package/esm/core/Select/Select.js +271 -155
  657. package/esm/core/Select/SelectTag.d.ts +1 -1
  658. package/esm/core/Select/SelectTag.js +15 -3
  659. package/esm/core/Select/SelectTagContainer.d.ts +1 -1
  660. package/esm/core/Select/SelectTagContainer.js +21 -8
  661. package/esm/core/SideNavigation/SideNavigation.d.ts +17 -1
  662. package/esm/core/SideNavigation/SideNavigation.js +120 -23
  663. package/esm/core/SideNavigation/SidenavButton.d.ts +2 -2
  664. package/esm/core/SideNavigation/SidenavButton.js +25 -3
  665. package/esm/core/SideNavigation/SidenavSubmenu.js +14 -3
  666. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  667. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +20 -4
  668. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  669. package/esm/core/SkipToContentLink/SkipToContentLink.js +11 -2
  670. package/esm/core/Slider/Slider.d.ts +29 -9
  671. package/esm/core/Slider/Slider.js +352 -197
  672. package/esm/core/Slider/Thumb.d.ts +4 -4
  673. package/esm/core/Slider/Thumb.js +102 -53
  674. package/esm/core/Slider/Track.d.ts +4 -4
  675. package/esm/core/Slider/Track.js +75 -49
  676. package/esm/core/StatusMessage/StatusMessage.d.ts +13 -3
  677. package/esm/core/StatusMessage/StatusMessage.js +28 -7
  678. package/esm/core/Stepper/Stepper.d.ts +29 -4
  679. package/esm/core/Stepper/Stepper.js +71 -8
  680. package/esm/core/Stepper/StepperStep.d.ts +18 -1
  681. package/esm/core/Stepper/StepperStep.js +93 -32
  682. package/esm/core/Stepper/WorkflowDiagram.d.ts +11 -1
  683. package/esm/core/Stepper/WorkflowDiagram.js +23 -6
  684. package/esm/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
  685. package/esm/core/Stepper/WorkflowDiagramStep.js +23 -5
  686. package/esm/core/Surface/Surface.d.ts +2 -2
  687. package/esm/core/Surface/Surface.js +68 -39
  688. package/esm/core/Table/SubRowExpander.d.ts +3 -3
  689. package/esm/core/Table/SubRowExpander.js +32 -10
  690. package/esm/core/Table/Table.d.ts +19 -3
  691. package/esm/core/Table/Table.js +764 -417
  692. package/esm/core/Table/TableCell.d.ts +3 -3
  693. package/esm/core/Table/TableCell.js +87 -53
  694. package/esm/core/Table/TablePaginator.d.ts +3 -3
  695. package/esm/core/Table/TablePaginator.js +311 -129
  696. package/esm/core/Table/TableRowMemoized.d.ts +5 -5
  697. package/esm/core/Table/TableRowMemoized.js +148 -84
  698. package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
  699. package/esm/core/Table/actionHandlers/expandHandler.js +10 -10
  700. package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
  701. package/esm/core/Table/actionHandlers/filterHandler.js +23 -16
  702. package/esm/core/Table/actionHandlers/index.js +5 -1
  703. package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
  704. package/esm/core/Table/actionHandlers/resizeHandler.js +11 -11
  705. package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
  706. package/esm/core/Table/actionHandlers/selectHandler.js +117 -93
  707. package/esm/core/Table/cells/DefaultCell.d.ts +3 -3
  708. package/esm/core/Table/cells/DefaultCell.js +42 -7
  709. package/esm/core/Table/cells/EditableCell.d.ts +3 -3
  710. package/esm/core/Table/cells/EditableCell.js +70 -47
  711. package/esm/core/Table/columns/actionColumn.d.ts +5 -5
  712. package/esm/core/Table/columns/actionColumn.js +89 -66
  713. package/esm/core/Table/columns/expanderColumn.d.ts +3 -3
  714. package/esm/core/Table/columns/expanderColumn.js +39 -26
  715. package/esm/core/Table/columns/selectionColumn.d.ts +5 -5
  716. package/esm/core/Table/columns/selectionColumn.js +52 -24
  717. package/esm/core/Table/filters/BaseFilter.d.ts +2 -2
  718. package/esm/core/Table/filters/BaseFilter.js +15 -7
  719. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
  720. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +115 -49
  721. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
  722. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +110 -47
  723. package/esm/core/Table/filters/FilterButtonBar.d.ts +3 -3
  724. package/esm/core/Table/filters/FilterButtonBar.js +29 -10
  725. package/esm/core/Table/filters/FilterToggle.d.ts +4 -4
  726. package/esm/core/Table/filters/FilterToggle.js +54 -21
  727. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  728. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +51 -24
  729. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  730. package/esm/core/Table/filters/TextFilter/TextFilter.js +33 -16
  731. package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
  732. package/esm/core/Table/filters/customFilterFunctions.js +14 -12
  733. package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
  734. package/esm/core/Table/filters/defaultFilterFunctions.js +84 -79
  735. package/esm/core/Table/filters/tableFilters.d.ts +5 -5
  736. package/esm/core/Table/filters/tableFilters.js +34 -25
  737. package/esm/core/Table/filters/types.d.ts +2 -19
  738. package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
  739. package/esm/core/Table/hooks/useColumnDragAndDrop.js +88 -81
  740. package/esm/core/Table/hooks/useExpanderCell.d.ts +2 -2
  741. package/esm/core/Table/hooks/useExpanderCell.js +26 -20
  742. package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
  743. package/esm/core/Table/hooks/useResizeColumns.js +353 -293
  744. package/esm/core/Table/hooks/useScrollToRow.d.ts +3 -3
  745. package/esm/core/Table/hooks/useScrollToRow.js +42 -35
  746. package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
  747. package/esm/core/Table/hooks/useSelectionCell.js +10 -6
  748. package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
  749. package/esm/core/Table/hooks/useStickyColumns.js +61 -61
  750. package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
  751. package/esm/core/Table/hooks/useSubRowFiltering.js +90 -85
  752. package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
  753. package/esm/core/Table/hooks/useSubRowSelection.js +28 -27
  754. package/esm/core/Table/index.d.ts +1 -1
  755. package/esm/core/Table/index.js +5 -1
  756. package/esm/core/Table/utils.d.ts +1 -1
  757. package/esm/core/Table/utils.js +40 -38
  758. package/esm/core/Tabs/Tab.d.ts +2 -2
  759. package/esm/core/Tabs/Tab.js +41 -8
  760. package/esm/core/Tabs/Tabs.d.ts +6 -42
  761. package/esm/core/Tabs/Tabs.js +392 -333
  762. package/esm/core/Tag/Tag.d.ts +1 -1
  763. package/esm/core/Tag/Tag.js +36 -9
  764. package/esm/core/Tag/TagContainer.d.ts +1 -1
  765. package/esm/core/Tag/TagContainer.js +17 -5
  766. package/esm/core/Textarea/Textarea.d.ts +4 -5
  767. package/esm/core/Textarea/Textarea.js +9 -13
  768. package/esm/core/ThemeProvider/ThemeContext.d.ts +1 -1
  769. package/esm/core/ThemeProvider/ThemeProvider.d.ts +29 -10
  770. package/esm/core/ThemeProvider/ThemeProvider.js +112 -26
  771. package/esm/core/Tile/Tile.d.ts +200 -17
  772. package/esm/core/Tile/Tile.js +478 -101
  773. package/esm/core/TimePicker/TimePicker.d.ts +3 -3
  774. package/esm/core/TimePicker/TimePicker.js +448 -228
  775. package/esm/core/Toast/Toast.d.ts +20 -17
  776. package/esm/core/Toast/Toast.js +197 -102
  777. package/esm/core/Toast/Toaster.d.ts +26 -28
  778. package/esm/core/Toast/Toaster.js +106 -126
  779. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  780. package/esm/core/ToggleSwitch/ToggleSwitch.js +60 -22
  781. package/esm/core/Tooltip/Tooltip.d.ts +81 -14
  782. package/esm/core/Tooltip/Tooltip.js +167 -10
  783. package/esm/core/TransferList/TransferList.d.ts +7 -7
  784. package/esm/core/TransferList/TransferList.js +160 -95
  785. package/esm/core/Tree/Tree.d.ts +5 -5
  786. package/esm/core/Tree/Tree.js +197 -129
  787. package/esm/core/Tree/TreeContext.d.ts +1 -1
  788. package/esm/core/Tree/TreeContext.js +5 -5
  789. package/esm/core/Tree/TreeNode.d.ts +2 -2
  790. package/esm/core/Tree/TreeNode.js +195 -97
  791. package/esm/core/Tree/TreeNodeExpander.d.ts +2 -2
  792. package/esm/core/Tree/TreeNodeExpander.js +17 -6
  793. package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
  794. package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
  795. package/esm/core/Typography/{Blockquote/Blockquote.d.ts → Blockquote.d.ts} +2 -2
  796. package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +13 -5
  797. package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
  798. package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
  799. package/esm/core/Typography/{Kbd/Kbd.d.ts → Kbd.d.ts} +2 -2
  800. package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +25 -16
  801. package/esm/core/Typography/{Text/Text.d.ts → Text.d.ts} +2 -2
  802. package/esm/core/Typography/{Text/Text.js → Text.js} +21 -8
  803. package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.d.ts +2 -2
  804. package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +9 -3
  805. package/esm/core/utils/color/ColorValue.d.ts +4 -4
  806. package/esm/core/utils/color/ColorValue.js +524 -455
  807. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  808. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +12 -9
  809. package/esm/core/utils/components/ButtonBase.d.ts +14 -0
  810. package/esm/core/utils/components/ButtonBase.js +42 -0
  811. package/esm/core/utils/components/FocusTrap.d.ts +3 -3
  812. package/esm/core/utils/components/FocusTrap.js +41 -32
  813. package/esm/core/utils/components/InputContainer.d.ts +4 -5
  814. package/esm/core/utils/components/InputContainer.js +56 -17
  815. package/esm/core/utils/components/InputFlexContainer.d.ts +2 -1
  816. package/esm/core/utils/components/InputFlexContainer.js +15 -2
  817. package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  818. package/esm/core/utils/components/MiddleTextTruncation.js +27 -18
  819. package/esm/core/utils/components/Portal.d.ts +27 -0
  820. package/esm/core/utils/components/Portal.js +36 -0
  821. package/esm/core/utils/components/Resizer.d.ts +2 -2
  822. package/esm/core/utils/components/Resizer.js +250 -183
  823. package/esm/core/utils/components/VirtualScroll.d.ts +2 -2
  824. package/esm/core/utils/components/VirtualScroll.js +296 -224
  825. package/esm/core/utils/components/WithCSSTransition.d.ts +2 -2
  826. package/esm/core/utils/components/WithCSSTransition.js +38 -21
  827. package/esm/core/utils/components/index.d.ts +2 -6
  828. package/esm/core/utils/components/index.js +2 -6
  829. package/esm/core/utils/functions/colors.d.ts +1 -1
  830. package/esm/core/utils/functions/colors.js +20 -32
  831. package/esm/core/utils/functions/date.js +8 -8
  832. package/esm/core/utils/functions/dev.d.ts +11 -0
  833. package/esm/core/utils/functions/dev.js +29 -0
  834. package/esm/core/utils/functions/dom.d.ts +0 -8
  835. package/esm/core/utils/functions/dom.js +17 -33
  836. package/esm/core/utils/functions/focusable.js +24 -15
  837. package/esm/core/utils/functions/import.d.ts +6 -0
  838. package/esm/core/utils/functions/import.js +14 -0
  839. package/esm/core/utils/functions/index.d.ts +3 -0
  840. package/esm/core/utils/functions/index.js +3 -0
  841. package/esm/core/utils/functions/numbers.js +7 -7
  842. package/esm/core/utils/functions/polymorphic.d.ts +5 -3
  843. package/esm/core/utils/functions/polymorphic.js +32 -23
  844. package/esm/core/utils/functions/react.d.ts +8 -0
  845. package/esm/core/utils/functions/react.js +35 -0
  846. package/esm/core/utils/functions/supports.js +2 -1
  847. package/esm/core/utils/hooks/index.d.ts +1 -1
  848. package/esm/core/utils/hooks/index.js +1 -1
  849. package/esm/core/utils/hooks/useContainerWidth.js +16 -13
  850. package/esm/core/utils/hooks/useControlledState.d.ts +13 -0
  851. package/esm/core/utils/hooks/useControlledState.js +34 -0
  852. package/esm/core/utils/hooks/useDragAndDrop.js +99 -82
  853. package/esm/core/utils/hooks/useEventListener.js +18 -18
  854. package/esm/core/utils/hooks/useGlobals.d.ts +9 -2
  855. package/esm/core/utils/hooks/useGlobals.js +30 -27
  856. package/esm/core/utils/hooks/useId.js +3 -4
  857. package/esm/core/utils/hooks/useIntersection.js +25 -20
  858. package/esm/core/utils/hooks/useIsClient.js +5 -5
  859. package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
  860. package/esm/core/utils/hooks/useLatestRef.js +5 -5
  861. package/esm/core/utils/hooks/useMediaQuery.js +23 -27
  862. package/esm/core/utils/hooks/useMergedRefs.js +11 -12
  863. package/esm/core/utils/hooks/useOverflow.js +62 -51
  864. package/esm/core/utils/hooks/useResizeObserver.js +17 -13
  865. package/esm/core/utils/hooks/useSafeContext.js +5 -5
  866. package/esm/core/utils/icons/StatusIconMap.d.ts +5 -5
  867. package/esm/core/utils/icons/StatusIconMap.js +8 -4
  868. package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
  869. package/esm/core/utils/icons/SvgCalendar.js +7 -2
  870. package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  871. package/esm/core/utils/icons/SvgCaretDownSmall.js +7 -2
  872. package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  873. package/esm/core/utils/icons/SvgCaretRightSmall.js +7 -2
  874. package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  875. package/esm/core/utils/icons/SvgCaretUpSmall.js +7 -2
  876. package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
  877. package/esm/core/utils/icons/SvgCheckmark.js +5 -2
  878. package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  879. package/esm/core/utils/icons/SvgCheckmarkSmall.js +7 -2
  880. package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  881. package/esm/core/utils/icons/SvgChevronLeft.js +7 -2
  882. package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  883. package/esm/core/utils/icons/SvgChevronLeftDouble.js +7 -2
  884. package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
  885. package/esm/core/utils/icons/SvgChevronRight.js +7 -2
  886. package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  887. package/esm/core/utils/icons/SvgChevronRightDouble.js +7 -2
  888. package/esm/core/utils/icons/SvgClose.d.ts +1 -1
  889. package/esm/core/utils/icons/SvgClose.js +7 -2
  890. package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  891. package/esm/core/utils/icons/SvgCloseSmall.js +7 -2
  892. package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
  893. package/esm/core/utils/icons/SvgColumnManager.js +7 -2
  894. package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
  895. package/esm/core/utils/icons/SvgDocument.js +5 -2
  896. package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
  897. package/esm/core/utils/icons/SvgFilter.js +5 -2
  898. package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  899. package/esm/core/utils/icons/SvgFilterHollow.js +7 -2
  900. package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  901. package/esm/core/utils/icons/SvgImportantSmall.js +7 -2
  902. package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  903. package/esm/core/utils/icons/SvgInfoCircular.js +7 -2
  904. package/esm/core/utils/icons/SvgMore.d.ts +1 -1
  905. package/esm/core/utils/icons/SvgMore.js +7 -2
  906. package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  907. package/esm/core/utils/icons/SvgMoreVertical.js +7 -2
  908. package/esm/core/utils/icons/SvgNew.d.ts +1 -1
  909. package/esm/core/utils/icons/SvgNew.js +7 -2
  910. package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
  911. package/esm/core/utils/icons/SvgSearch.js +7 -2
  912. package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  913. package/esm/core/utils/icons/SvgSmileyHappy.js +7 -2
  914. package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
  915. package/esm/core/utils/icons/SvgSortDown.js +7 -2
  916. package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
  917. package/esm/core/utils/icons/SvgSortUp.js +7 -2
  918. package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
  919. package/esm/core/utils/icons/SvgStatusError.js +7 -2
  920. package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  921. package/esm/core/utils/icons/SvgStatusSuccess.js +7 -2
  922. package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  923. package/esm/core/utils/icons/SvgStatusWarning.js +7 -2
  924. package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
  925. package/esm/core/utils/icons/SvgSwap.js +7 -2
  926. package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
  927. package/esm/core/utils/icons/SvgUpload.js +7 -2
  928. package/esm/core/utils/props.d.ts +2 -2
  929. package/esm/core/utils/types.d.ts +1 -1
  930. package/esm/index.d.ts +113 -2
  931. package/esm/index.js +124 -2
  932. package/esm/react-table/react-table.d.ts +745 -0
  933. package/esm/{core/Alert/index.js → react-table/react-table.js} +5 -2
  934. package/esm/styles.js +425 -450
  935. package/package.json +50 -47
  936. package/react-table.d.ts +745 -0
  937. package/styles.css +751 -1610
  938. package/cjs/core/Alert/index.d.ts +0 -3
  939. package/cjs/core/Alert/index.js +0 -10
  940. package/cjs/core/Avatar/index.d.ts +0 -3
  941. package/cjs/core/Avatar/index.js +0 -11
  942. package/cjs/core/AvatarGroup/index.d.ts +0 -3
  943. package/cjs/core/AvatarGroup/index.js +0 -11
  944. package/cjs/core/Backdrop/index.d.ts +0 -1
  945. package/cjs/core/Backdrop/index.js +0 -9
  946. package/cjs/core/Badge/index.d.ts +0 -3
  947. package/cjs/core/Breadcrumbs/index.d.ts +0 -3
  948. package/cjs/core/Breadcrumbs/index.js +0 -10
  949. package/cjs/core/ButtonGroup/index.d.ts +0 -3
  950. package/cjs/core/ButtonGroup/index.js +0 -10
  951. package/cjs/core/Buttons/Button/Button.js +0 -53
  952. package/cjs/core/Buttons/Button/index.d.ts +0 -3
  953. package/cjs/core/Buttons/Button/index.js +0 -10
  954. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -70
  955. package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
  956. package/cjs/core/Buttons/DropdownButton/index.js +0 -10
  957. package/cjs/core/Buttons/IconButton/IconButton.js +0 -55
  958. package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
  959. package/cjs/core/Buttons/IconButton/index.js +0 -10
  960. package/cjs/core/Buttons/IdeasButton/IdeasButton.js +0 -43
  961. package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
  962. package/cjs/core/Buttons/IdeasButton/index.js +0 -10
  963. package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -71
  964. package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
  965. package/cjs/core/Buttons/SplitButton/index.js +0 -10
  966. package/cjs/core/Buttons/index.d.ts +0 -5
  967. package/cjs/core/Buttons/index.js +0 -17
  968. package/cjs/core/Carousel/index.d.ts +0 -3
  969. package/cjs/core/Carousel/index.js +0 -10
  970. package/cjs/core/Checkbox/index.d.ts +0 -3
  971. package/cjs/core/Checkbox/index.js +0 -10
  972. package/cjs/core/ColorPicker/index.d.ts +0 -7
  973. package/cjs/core/ColorPicker/index.js +0 -18
  974. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
  975. package/cjs/core/ComboBox/ComboBoxDropdown.js +0 -52
  976. package/cjs/core/ComboBox/index.d.ts +0 -3
  977. package/cjs/core/ComboBox/index.js +0 -10
  978. package/cjs/core/DatePicker/index.d.ts +0 -3
  979. package/cjs/core/DatePicker/index.js +0 -11
  980. package/cjs/core/Dialog/index.d.ts +0 -3
  981. package/cjs/core/Dialog/index.js +0 -10
  982. package/cjs/core/DropdownMenu/index.d.ts +0 -4
  983. package/cjs/core/DropdownMenu/index.js +0 -10
  984. package/cjs/core/ExpandableBlock/index.d.ts +0 -3
  985. package/cjs/core/ExpandableBlock/index.js +0 -10
  986. package/cjs/core/Fieldset/index.d.ts +0 -3
  987. package/cjs/core/Fieldset/index.js +0 -10
  988. package/cjs/core/FileUpload/index.d.ts +0 -6
  989. package/cjs/core/FileUpload/index.js +0 -16
  990. package/cjs/core/Footer/index.d.ts +0 -4
  991. package/cjs/core/Footer/index.js +0 -11
  992. package/cjs/core/Header/index.d.ts +0 -6
  993. package/cjs/core/Header/index.js +0 -16
  994. package/cjs/core/InformationPanel/index.d.ts +0 -7
  995. package/cjs/core/InformationPanel/index.js +0 -18
  996. package/cjs/core/Input/index.d.ts +0 -3
  997. package/cjs/core/Input/index.js +0 -10
  998. package/cjs/core/InputGroup/index.d.ts +0 -3
  999. package/cjs/core/InputGroup/index.js +0 -10
  1000. package/cjs/core/Label/index.d.ts +0 -3
  1001. package/cjs/core/Label/index.js +0 -10
  1002. package/cjs/core/LabeledInput/index.d.ts +0 -3
  1003. package/cjs/core/LabeledInput/index.js +0 -10
  1004. package/cjs/core/LabeledSelect/index.d.ts +0 -3
  1005. package/cjs/core/LabeledSelect/index.js +0 -10
  1006. package/cjs/core/LabeledTextarea/index.d.ts +0 -3
  1007. package/cjs/core/LabeledTextarea/index.js +0 -10
  1008. package/cjs/core/List/index.d.ts +0 -2
  1009. package/cjs/core/List/index.js +0 -11
  1010. package/cjs/core/Menu/index.d.ts +0 -5
  1011. package/cjs/core/Menu/index.js +0 -17
  1012. package/cjs/core/Modal/index.d.ts +0 -5
  1013. package/cjs/core/Modal/index.js +0 -14
  1014. package/cjs/core/NonIdealState/index.d.ts +0 -5
  1015. package/cjs/core/NonIdealState/index.js +0 -12
  1016. package/cjs/core/NotificationMarker/index.d.ts +0 -3
  1017. package/cjs/core/NotificationMarker/index.js +0 -10
  1018. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -65
  1019. package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  1020. package/cjs/core/ProgressIndicators/ProgressLinear/index.js +0 -10
  1021. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -77
  1022. package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  1023. package/cjs/core/ProgressIndicators/ProgressRadial/index.js +0 -10
  1024. package/cjs/core/ProgressIndicators/index.d.ts +0 -2
  1025. package/cjs/core/ProgressIndicators/index.js +0 -11
  1026. package/cjs/core/Radio/index.d.ts +0 -3
  1027. package/cjs/core/Radio/index.js +0 -10
  1028. package/cjs/core/RadioTiles/index.d.ts +0 -4
  1029. package/cjs/core/RadioTiles/index.js +0 -12
  1030. package/cjs/core/SearchBox/index.d.ts +0 -3
  1031. package/cjs/core/SearchBox/index.js +0 -10
  1032. package/cjs/core/Select/index.d.ts +0 -4
  1033. package/cjs/core/Select/index.js +0 -10
  1034. package/cjs/core/SideNavigation/index.d.ts +0 -6
  1035. package/cjs/core/SideNavigation/index.js +0 -16
  1036. package/cjs/core/SkipToContentLink/index.d.ts +0 -3
  1037. package/cjs/core/SkipToContentLink/index.js +0 -10
  1038. package/cjs/core/Slider/index.d.ts +0 -3
  1039. package/cjs/core/Slider/index.js +0 -10
  1040. package/cjs/core/StatusMessage/index.d.ts +0 -3
  1041. package/cjs/core/StatusMessage/index.js +0 -10
  1042. package/cjs/core/Stepper/Wizard.d.ts +0 -46
  1043. package/cjs/core/Stepper/Wizard.js +0 -55
  1044. package/cjs/core/Stepper/index.d.ts +0 -7
  1045. package/cjs/core/Stepper/index.js +0 -14
  1046. package/cjs/core/Surface/index.d.ts +0 -3
  1047. package/cjs/core/Surface/index.js +0 -10
  1048. package/cjs/core/Tabs/index.d.ts +0 -2
  1049. package/cjs/core/Tabs/index.js +0 -13
  1050. package/cjs/core/Tag/index.d.ts +0 -4
  1051. package/cjs/core/Tag/index.js +0 -12
  1052. package/cjs/core/Textarea/index.d.ts +0 -3
  1053. package/cjs/core/Textarea/index.js +0 -10
  1054. package/cjs/core/ThemeProvider/index.d.ts +0 -4
  1055. package/cjs/core/ThemeProvider/index.js +0 -10
  1056. package/cjs/core/Tile/index.d.ts +0 -3
  1057. package/cjs/core/Tile/index.js +0 -10
  1058. package/cjs/core/TimePicker/index.d.ts +0 -4
  1059. package/cjs/core/TimePicker/index.js +0 -10
  1060. package/cjs/core/Toast/ToastWrapper.d.ts +0 -10
  1061. package/cjs/core/Toast/ToastWrapper.js +0 -49
  1062. package/cjs/core/Toast/index.d.ts +0 -4
  1063. package/cjs/core/Toast/index.js +0 -12
  1064. package/cjs/core/ToggleSwitch/index.d.ts +0 -3
  1065. package/cjs/core/ToggleSwitch/index.js +0 -10
  1066. package/cjs/core/Tooltip/index.d.ts +0 -3
  1067. package/cjs/core/Tooltip/index.js +0 -10
  1068. package/cjs/core/TransferList/index.d.ts +0 -3
  1069. package/cjs/core/TransferList/index.js +0 -10
  1070. package/cjs/core/Tree/index.d.ts +0 -4
  1071. package/cjs/core/Tree/index.js +0 -13
  1072. package/cjs/core/Typography/Anchor/index.d.ts +0 -3
  1073. package/cjs/core/Typography/Anchor/index.js +0 -10
  1074. package/cjs/core/Typography/Blockquote/Blockquote.js +0 -51
  1075. package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
  1076. package/cjs/core/Typography/Blockquote/index.js +0 -10
  1077. package/cjs/core/Typography/Code/index.d.ts +0 -3
  1078. package/cjs/core/Typography/Code/index.js +0 -10
  1079. package/cjs/core/Typography/Kbd/Kbd.js +0 -65
  1080. package/cjs/core/Typography/Kbd/index.d.ts +0 -3
  1081. package/cjs/core/Typography/Kbd/index.js +0 -11
  1082. package/cjs/core/Typography/Text/Text.js +0 -58
  1083. package/cjs/core/Typography/Text/index.d.ts +0 -3
  1084. package/cjs/core/Typography/Text/index.js +0 -10
  1085. package/cjs/core/Typography/index.d.ts +0 -5
  1086. package/cjs/core/Typography/index.js +0 -18
  1087. package/cjs/core/index.d.ts +0 -66
  1088. package/cjs/core/index.js +0 -191
  1089. package/cjs/core/utils/components/Divider.js +0 -44
  1090. package/cjs/core/utils/components/Flex.js +0 -157
  1091. package/cjs/core/utils/components/Icon.js +0 -67
  1092. package/cjs/core/utils/components/Popover.d.ts +0 -39
  1093. package/cjs/core/utils/components/Popover.js +0 -157
  1094. package/cjs/core/utils/components/VisuallyHidden.js +0 -51
  1095. package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
  1096. package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +0 -54
  1097. package/cjs/types/react-table-config.d.ts +0 -135
  1098. package/cjs/types/react-table-config.js +0 -2
  1099. package/esm/core/Alert/index.d.ts +0 -3
  1100. package/esm/core/Avatar/index.d.ts +0 -3
  1101. package/esm/core/Avatar/index.js +0 -6
  1102. package/esm/core/AvatarGroup/index.d.ts +0 -3
  1103. package/esm/core/AvatarGroup/index.js +0 -6
  1104. package/esm/core/Backdrop/index.d.ts +0 -1
  1105. package/esm/core/Backdrop/index.js +0 -5
  1106. package/esm/core/Badge/index.d.ts +0 -3
  1107. package/esm/core/Badge/index.js +0 -6
  1108. package/esm/core/Breadcrumbs/index.d.ts +0 -3
  1109. package/esm/core/Breadcrumbs/index.js +0 -6
  1110. package/esm/core/ButtonGroup/index.d.ts +0 -3
  1111. package/esm/core/ButtonGroup/index.js +0 -6
  1112. package/esm/core/Buttons/Button/Button.js +0 -24
  1113. package/esm/core/Buttons/Button/index.d.ts +0 -3
  1114. package/esm/core/Buttons/Button/index.js +0 -6
  1115. package/esm/core/Buttons/DropdownButton/DropdownButton.js +0 -41
  1116. package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
  1117. package/esm/core/Buttons/DropdownButton/index.js +0 -6
  1118. package/esm/core/Buttons/IconButton/IconButton.js +0 -26
  1119. package/esm/core/Buttons/IconButton/index.d.ts +0 -3
  1120. package/esm/core/Buttons/IconButton/index.js +0 -6
  1121. package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
  1122. package/esm/core/Buttons/IdeasButton/index.js +0 -6
  1123. package/esm/core/Buttons/SplitButton/SplitButton.js +0 -42
  1124. package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
  1125. package/esm/core/Buttons/SplitButton/index.js +0 -6
  1126. package/esm/core/Buttons/index.d.ts +0 -5
  1127. package/esm/core/Buttons/index.js +0 -9
  1128. package/esm/core/Carousel/index.d.ts +0 -3
  1129. package/esm/core/Carousel/index.js +0 -6
  1130. package/esm/core/Checkbox/index.d.ts +0 -3
  1131. package/esm/core/Checkbox/index.js +0 -6
  1132. package/esm/core/ColorPicker/index.d.ts +0 -7
  1133. package/esm/core/ColorPicker/index.js +0 -10
  1134. package/esm/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
  1135. package/esm/core/ComboBox/ComboBoxDropdown.js +0 -26
  1136. package/esm/core/ComboBox/index.d.ts +0 -3
  1137. package/esm/core/ComboBox/index.js +0 -6
  1138. package/esm/core/DatePicker/index.d.ts +0 -3
  1139. package/esm/core/DatePicker/index.js +0 -6
  1140. package/esm/core/Dialog/index.d.ts +0 -3
  1141. package/esm/core/Dialog/index.js +0 -6
  1142. package/esm/core/DropdownMenu/index.d.ts +0 -4
  1143. package/esm/core/DropdownMenu/index.js +0 -6
  1144. package/esm/core/ExpandableBlock/index.d.ts +0 -3
  1145. package/esm/core/ExpandableBlock/index.js +0 -6
  1146. package/esm/core/Fieldset/index.d.ts +0 -3
  1147. package/esm/core/Fieldset/index.js +0 -6
  1148. package/esm/core/FileUpload/index.d.ts +0 -6
  1149. package/esm/core/FileUpload/index.js +0 -9
  1150. package/esm/core/Footer/index.d.ts +0 -4
  1151. package/esm/core/Footer/index.js +0 -6
  1152. package/esm/core/Header/index.d.ts +0 -6
  1153. package/esm/core/Header/index.js +0 -9
  1154. package/esm/core/InformationPanel/index.d.ts +0 -7
  1155. package/esm/core/InformationPanel/index.js +0 -10
  1156. package/esm/core/Input/index.d.ts +0 -3
  1157. package/esm/core/Input/index.js +0 -6
  1158. package/esm/core/InputGroup/index.d.ts +0 -3
  1159. package/esm/core/InputGroup/index.js +0 -6
  1160. package/esm/core/Label/index.d.ts +0 -3
  1161. package/esm/core/Label/index.js +0 -6
  1162. package/esm/core/LabeledInput/index.d.ts +0 -3
  1163. package/esm/core/LabeledInput/index.js +0 -6
  1164. package/esm/core/LabeledSelect/index.d.ts +0 -3
  1165. package/esm/core/LabeledSelect/index.js +0 -6
  1166. package/esm/core/LabeledTextarea/index.d.ts +0 -3
  1167. package/esm/core/LabeledTextarea/index.js +0 -6
  1168. package/esm/core/List/index.d.ts +0 -2
  1169. package/esm/core/List/index.js +0 -6
  1170. package/esm/core/Menu/index.d.ts +0 -5
  1171. package/esm/core/Menu/index.js +0 -9
  1172. package/esm/core/Modal/index.d.ts +0 -5
  1173. package/esm/core/Modal/index.js +0 -8
  1174. package/esm/core/NonIdealState/index.d.ts +0 -5
  1175. package/esm/core/NonIdealState/index.js +0 -7
  1176. package/esm/core/NotificationMarker/index.d.ts +0 -3
  1177. package/esm/core/NotificationMarker/index.js +0 -6
  1178. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -36
  1179. package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  1180. package/esm/core/ProgressIndicators/ProgressLinear/index.js +0 -6
  1181. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -48
  1182. package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  1183. package/esm/core/ProgressIndicators/ProgressRadial/index.js +0 -6
  1184. package/esm/core/ProgressIndicators/index.d.ts +0 -2
  1185. package/esm/core/ProgressIndicators/index.js +0 -6
  1186. package/esm/core/Radio/index.d.ts +0 -3
  1187. package/esm/core/Radio/index.js +0 -6
  1188. package/esm/core/RadioTiles/index.d.ts +0 -4
  1189. package/esm/core/RadioTiles/index.js +0 -7
  1190. package/esm/core/SearchBox/index.d.ts +0 -3
  1191. package/esm/core/SearchBox/index.js +0 -6
  1192. package/esm/core/Select/index.d.ts +0 -4
  1193. package/esm/core/Select/index.js +0 -6
  1194. package/esm/core/SideNavigation/index.d.ts +0 -6
  1195. package/esm/core/SideNavigation/index.js +0 -9
  1196. package/esm/core/SkipToContentLink/index.d.ts +0 -3
  1197. package/esm/core/SkipToContentLink/index.js +0 -6
  1198. package/esm/core/Slider/index.d.ts +0 -3
  1199. package/esm/core/Slider/index.js +0 -6
  1200. package/esm/core/StatusMessage/index.d.ts +0 -3
  1201. package/esm/core/StatusMessage/index.js +0 -6
  1202. package/esm/core/Stepper/Wizard.d.ts +0 -46
  1203. package/esm/core/Stepper/Wizard.js +0 -29
  1204. package/esm/core/Stepper/index.d.ts +0 -7
  1205. package/esm/core/Stepper/index.js +0 -8
  1206. package/esm/core/Surface/index.d.ts +0 -3
  1207. package/esm/core/Surface/index.js +0 -6
  1208. package/esm/core/Tabs/index.d.ts +0 -2
  1209. package/esm/core/Tabs/index.js +0 -6
  1210. package/esm/core/Tag/index.d.ts +0 -4
  1211. package/esm/core/Tag/index.js +0 -7
  1212. package/esm/core/Textarea/index.d.ts +0 -3
  1213. package/esm/core/Textarea/index.js +0 -6
  1214. package/esm/core/ThemeProvider/index.d.ts +0 -4
  1215. package/esm/core/ThemeProvider/index.js +0 -6
  1216. package/esm/core/Tile/index.d.ts +0 -3
  1217. package/esm/core/Tile/index.js +0 -6
  1218. package/esm/core/TimePicker/index.d.ts +0 -4
  1219. package/esm/core/TimePicker/index.js +0 -6
  1220. package/esm/core/Toast/ToastWrapper.d.ts +0 -10
  1221. package/esm/core/Toast/ToastWrapper.js +0 -20
  1222. package/esm/core/Toast/index.d.ts +0 -4
  1223. package/esm/core/Toast/index.js +0 -7
  1224. package/esm/core/ToggleSwitch/index.d.ts +0 -3
  1225. package/esm/core/ToggleSwitch/index.js +0 -6
  1226. package/esm/core/Tooltip/index.d.ts +0 -3
  1227. package/esm/core/Tooltip/index.js +0 -6
  1228. package/esm/core/TransferList/index.d.ts +0 -3
  1229. package/esm/core/TransferList/index.js +0 -6
  1230. package/esm/core/Tree/index.d.ts +0 -4
  1231. package/esm/core/Tree/index.js +0 -7
  1232. package/esm/core/Typography/Anchor/index.d.ts +0 -3
  1233. package/esm/core/Typography/Anchor/index.js +0 -6
  1234. package/esm/core/Typography/Blockquote/index.d.ts +0 -3
  1235. package/esm/core/Typography/Blockquote/index.js +0 -6
  1236. package/esm/core/Typography/Code/index.d.ts +0 -3
  1237. package/esm/core/Typography/Code/index.js +0 -6
  1238. package/esm/core/Typography/Kbd/index.d.ts +0 -3
  1239. package/esm/core/Typography/Kbd/index.js +0 -6
  1240. package/esm/core/Typography/Text/index.d.ts +0 -3
  1241. package/esm/core/Typography/Text/index.js +0 -6
  1242. package/esm/core/Typography/index.d.ts +0 -5
  1243. package/esm/core/Typography/index.js +0 -9
  1244. package/esm/core/index.d.ts +0 -66
  1245. package/esm/core/index.js +0 -61
  1246. package/esm/core/utils/components/Flex.js +0 -128
  1247. package/esm/core/utils/components/Popover.d.ts +0 -39
  1248. package/esm/core/utils/components/Popover.js +0 -128
  1249. package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
  1250. package/esm/core/utils/hooks/useIsThemeAlreadySet.js +0 -27
  1251. package/esm/types/react-table-config.d.ts +0 -135
  1252. package/esm/types/react-table-config.js +0 -1
@@ -1,69 +1,41 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
29
3
  exports.Table = exports.tableResizeStartAction = void 0;
4
+ const tslib_1 = require('tslib');
30
5
  /*---------------------------------------------------------------------------------------------
31
6
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
32
7
  * See LICENSE.md in the project root for license terms and full copyright notice.
33
8
  *--------------------------------------------------------------------------------------------*/
34
- const React = __importStar(require("react"));
35
- const classnames_1 = __importDefault(require("classnames"));
36
- const react_table_1 = require("react-table");
37
- const index_js_1 = require("../ProgressIndicators/index.js");
38
- const index_js_2 = require("../utils/index.js");
39
- const utils_js_1 = require("./utils.js");
40
- const TableRowMemoized_js_1 = require("./TableRowMemoized.js");
41
- const index_js_3 = require("./filters/index.js");
42
- const customFilterFunctions_js_1 = require("./filters/customFilterFunctions.js");
43
- const index_js_4 = require("./hooks/index.js");
44
- const index_js_5 = require("./actionHandlers/index.js");
45
- const VirtualScroll_js_1 = __importDefault(require("../utils/components/VirtualScroll.js"));
46
- const index_js_6 = require("./columns/index.js");
9
+ const React = tslib_1.__importStar(require('react'));
10
+ const classnames_1 = tslib_1.__importDefault(require('classnames'));
11
+ const react_table_1 = require('react-table');
12
+ const ProgressRadial_js_1 = require('../ProgressIndicators/ProgressRadial.js');
13
+ const index_js_1 = require('../utils/index.js');
14
+ const utils_js_1 = require('./utils.js');
15
+ const TableRowMemoized_js_1 = require('./TableRowMemoized.js');
16
+ const index_js_2 = require('./filters/index.js');
17
+ const customFilterFunctions_js_1 = require('./filters/customFilterFunctions.js');
18
+ const index_js_3 = require('./hooks/index.js');
19
+ const index_js_4 = require('./actionHandlers/index.js');
20
+ const VirtualScroll_js_1 = tslib_1.__importDefault(
21
+ require('../utils/components/VirtualScroll.js'),
22
+ );
23
+ const index_js_5 = require('./columns/index.js');
47
24
  const singleRowSelectedAction = 'singleRowSelected';
48
25
  const shiftRowSelectedAction = 'shiftRowSelected';
49
26
  exports.tableResizeStartAction = 'tableResizeStart';
50
27
  const tableResizeEndAction = 'tableResizeEnd';
51
- let didLogWarning = false;
52
- let isDev = false;
53
- // wrapping in try-catch because process might be undefined
54
- try {
55
- isDev = process.env.NODE_ENV !== 'production';
56
- }
57
- catch (_a) { }
28
+ const logWarningInDev = (0, index_js_1.createWarningLogger)();
58
29
  const flattenColumns = (columns) => {
59
- const flatColumns = [];
60
- columns.forEach((column) => {
61
- flatColumns.push(column);
62
- if ('columns' in column) {
63
- flatColumns.push(...flattenColumns(column.columns));
64
- }
65
- });
66
- return flatColumns;
30
+ const flatColumns = [];
31
+ columns.forEach((column) => {
32
+ flatColumns.push(column);
33
+ if ('columns' in column) {
34
+ // @ts-expect-error - Since nested columns are not supported from a types perspective
35
+ flatColumns.push(...flattenColumns(column.columns));
36
+ }
37
+ });
38
+ return flatColumns;
67
39
  };
68
40
  /**
69
41
  * Table based on [react-table](https://react-table.tanstack.com/docs/api/overview).
@@ -103,414 +75,753 @@ const flattenColumns = (columns) => {
103
75
  * />
104
76
  */
105
77
  const Table = (props) => {
106
- const { data, columns, isLoading = false, emptyTableContent, className, style, id, isSelectable = false, onSelect, onRowClick, selectionMode = 'multi', isSortable = false, onSort, stateReducer, onBottomReached, onRowInViewport, intersectionMargin = 300, subComponent, onExpand, onFilter, globalFilterValue, emptyFilteredTableContent, filterTypes: filterFunctions, expanderCell, isRowDisabled, rowProps, density = 'default', selectSubRows = true, getSubRows, selectRowOnClick = true, paginatorRenderer, pageSize = 25, isResizable = false, columnResizeMode = 'fit', styleType = 'default', enableVirtualization = false, enableColumnReordering = false, ...rest } = props;
107
- (0, index_js_2.useGlobals)();
108
- const ownerDocument = React.useRef();
109
- const defaultColumn = React.useMemo(() => ({
110
- maxWidth: 0,
111
- minWidth: 0,
112
- width: 0,
113
- }), []);
114
- // useRef prevents from rerendering when one of these callbacks changes
115
- const onBottomReachedRef = React.useRef(onBottomReached);
116
- const onRowInViewportRef = React.useRef(onRowInViewport);
117
- React.useEffect(() => {
118
- onBottomReachedRef.current = onBottomReached;
119
- onRowInViewportRef.current = onRowInViewport;
120
- }, [onBottomReached, onRowInViewport]);
121
- const hasManualSelectionColumn = React.useMemo(() => {
122
- const flatColumns = flattenColumns(columns);
123
- return flatColumns.some((column) => column.id === index_js_6.SELECTION_CELL_ID);
124
- }, [columns]);
125
- const disableUserSelect = React.useCallback((e) => {
126
- if (e.key === 'Shift') {
127
- ownerDocument.current &&
128
- (ownerDocument.current.documentElement.style.userSelect = 'none');
129
- }
130
- }, []);
131
- const enableUserSelect = React.useCallback((e) => {
132
- if (e.key === 'Shift') {
133
- ownerDocument.current &&
134
- (ownerDocument.current.documentElement.style.userSelect = '');
135
- }
136
- }, []);
137
- React.useEffect(() => {
138
- if (!isSelectable || selectionMode !== 'multi') {
139
- return;
140
- }
141
- const ownerDoc = ownerDocument.current;
142
- ownerDoc === null || ownerDoc === void 0 ? void 0 : ownerDoc.addEventListener('keydown', disableUserSelect);
143
- ownerDoc === null || ownerDoc === void 0 ? void 0 : ownerDoc.addEventListener('keyup', enableUserSelect);
144
- return () => {
145
- ownerDoc === null || ownerDoc === void 0 ? void 0 : ownerDoc.removeEventListener('keydown', disableUserSelect);
146
- ownerDoc === null || ownerDoc === void 0 ? void 0 : ownerDoc.removeEventListener('keyup', enableUserSelect);
147
- };
148
- }, [
149
- isSelectable,
150
- selectionMode,
151
- ownerDocument,
152
- disableUserSelect,
153
- enableUserSelect,
154
- ]);
155
- const previousFilter = React.useRef([]);
156
- const currentFilter = React.useRef(previousFilter.current);
157
- const tableStateReducer = React.useCallback((newState, action, previousState, instance) => {
158
- switch (action.type) {
159
- case react_table_1.actions.toggleSortBy:
160
- onSort === null || onSort === void 0 ? void 0 : onSort(newState);
161
- break;
162
- case react_table_1.actions.setFilter:
163
- currentFilter.current = (0, index_js_5.onFilterHandler)(newState, action, previousState, currentFilter.current, instance);
164
- break;
165
- case react_table_1.actions.toggleRowExpanded:
166
- case react_table_1.actions.toggleAllRowsExpanded:
167
- (0, index_js_5.onExpandHandler)(newState, instance, onExpand);
168
- break;
169
- case singleRowSelectedAction: {
170
- newState = (0, index_js_5.onSingleSelectHandler)(newState, action, instance, onSelect,
171
- // If it has manual selection column, then we can't check whether row is disabled
172
- hasManualSelectionColumn ? undefined : isRowDisabled);
173
- break;
174
- }
175
- case shiftRowSelectedAction: {
176
- newState = (0, index_js_5.onShiftSelectHandler)(newState, action, instance, onSelect,
177
- // If it has manual selection column, then we can't check whether row is disabled
178
- hasManualSelectionColumn ? undefined : isRowDisabled);
179
- break;
180
- }
181
- case react_table_1.actions.toggleRowSelected:
182
- case react_table_1.actions.toggleAllRowsSelected:
183
- case react_table_1.actions.toggleAllPageRowsSelected: {
184
- (0, index_js_5.onToggleHandler)(newState, action, instance, onSelect,
185
- // If it has manual selection column, then we can't check whether row is disabled
186
- hasManualSelectionColumn ? undefined : isRowDisabled);
187
- break;
188
- }
189
- case exports.tableResizeStartAction: {
190
- newState = (0, index_js_5.onTableResizeStart)(newState);
191
- break;
192
- }
193
- case tableResizeEndAction: {
194
- newState = (0, index_js_5.onTableResizeEnd)(newState, action);
195
- break;
196
- }
197
- default:
198
- break;
199
- }
200
- return stateReducer
201
- ? stateReducer(newState, action, previousState, instance)
202
- : newState;
203
- }, [
204
- hasManualSelectionColumn,
205
- isRowDisabled,
206
- onExpand,
207
- onSelect,
208
- onSort,
209
- stateReducer,
210
- ]);
211
- const filterTypes = React.useMemo(() => ({ ...customFilterFunctions_js_1.customFilterFunctions, ...filterFunctions }), [filterFunctions]);
212
- const hasAnySubRows = React.useMemo(() => {
213
- return data.some((item, index) => getSubRows ? getSubRows(item, index) : item.subRows);
214
- }, [data, getSubRows]);
215
- const instance = (0, react_table_1.useTable)({
216
- manualPagination: !paginatorRenderer,
217
- paginateExpandedRows: false,
218
- ...props,
219
- columns,
220
- defaultColumn,
221
- disableSortBy: !isSortable,
222
- stateReducer: tableStateReducer,
223
- filterTypes,
224
- selectSubRows,
225
- data,
226
- getSubRows,
227
- initialState: { pageSize, ...props.initialState },
228
- columnResizeMode,
229
- }, react_table_1.useFlexLayout, (0, index_js_4.useResizeColumns)(ownerDocument), react_table_1.useFilters, (0, index_js_4.useSubRowFiltering)(hasAnySubRows), react_table_1.useGlobalFilter, react_table_1.useSortBy, react_table_1.useExpanded, react_table_1.usePagination, react_table_1.useRowSelect, index_js_4.useSubRowSelection, (0, index_js_4.useExpanderCell)(subComponent, expanderCell, isRowDisabled), (0, index_js_4.useSelectionCell)(isSelectable, selectionMode, isRowDisabled, density), react_table_1.useColumnOrder, (0, index_js_4.useColumnDragAndDrop)(enableColumnReordering), index_js_4.useStickyColumns);
230
- const { getTableProps, rows, headerGroups: _headerGroups, getTableBodyProps, prepareRow, state, allColumns, dispatch, page, gotoPage, setPageSize, flatHeaders, visibleColumns, setGlobalFilter, } = instance;
231
- let headerGroups = _headerGroups;
232
- if (columns.length === 1 && 'columns' in columns[0]) {
233
- headerGroups = _headerGroups.slice(1);
234
- if (isDev && !didLogWarning) {
235
- console.warn(`Table's \`columns\` prop should not have a top-level \`Header\` or sub-columns. They are only allowed to be passed for backwards compatibility.\n See https://github.com/iTwin/iTwinUI/wiki/iTwinUI-react-v2-migration-guide#breaking-changes`);
236
- didLogWarning = true;
237
- }
78
+ const {
79
+ data,
80
+ columns,
81
+ isLoading = false,
82
+ emptyTableContent,
83
+ className,
84
+ style,
85
+ id,
86
+ isSelectable = false,
87
+ onSelect,
88
+ onRowClick,
89
+ selectionMode = 'multi',
90
+ isSortable = false,
91
+ onSort,
92
+ stateReducer,
93
+ onBottomReached,
94
+ onRowInViewport,
95
+ intersectionMargin = 300,
96
+ subComponent,
97
+ onExpand,
98
+ onFilter,
99
+ globalFilterValue,
100
+ emptyFilteredTableContent,
101
+ filterTypes: filterFunctions,
102
+ expanderCell,
103
+ isRowDisabled,
104
+ rowProps,
105
+ density = 'default',
106
+ selectSubRows = true,
107
+ getSubRows,
108
+ selectRowOnClick = true,
109
+ paginatorRenderer,
110
+ pageSize = 25,
111
+ isResizable = false,
112
+ columnResizeMode = 'fit',
113
+ styleType = 'default',
114
+ enableVirtualization = false,
115
+ enableColumnReordering = false,
116
+ headerWrapperProps,
117
+ headerProps,
118
+ bodyProps,
119
+ emptyTableContentProps,
120
+ ...rest
121
+ } = props;
122
+ (0, index_js_1.useGlobals)();
123
+ const ownerDocument = React.useRef();
124
+ const defaultColumn = React.useMemo(
125
+ () => ({
126
+ maxWidth: 0,
127
+ minWidth: 0,
128
+ width: 0,
129
+ }),
130
+ [],
131
+ );
132
+ // useRef prevents from rerendering when one of these callbacks changes
133
+ const onBottomReachedRef = React.useRef(onBottomReached);
134
+ const onRowInViewportRef = React.useRef(onRowInViewport);
135
+ React.useEffect(() => {
136
+ onBottomReachedRef.current = onBottomReached;
137
+ onRowInViewportRef.current = onRowInViewport;
138
+ }, [onBottomReached, onRowInViewport]);
139
+ const hasManualSelectionColumn = React.useMemo(() => {
140
+ const flatColumns = flattenColumns(columns);
141
+ return flatColumns.some(
142
+ (column) => column.id === index_js_5.SELECTION_CELL_ID,
143
+ );
144
+ }, [columns]);
145
+ const disableUserSelect = React.useCallback((e) => {
146
+ if (e.key === 'Shift') {
147
+ ownerDocument.current &&
148
+ (ownerDocument.current.documentElement.style.userSelect = 'none');
238
149
  }
239
- const ariaDataAttributes = Object.entries(rest).reduce((result, [key, value]) => {
240
- if (key.startsWith('data-') || key.startsWith('aria-')) {
241
- result[key] = value;
242
- }
243
- return result;
244
- }, {});
245
- const areFiltersSet = allColumns.some((column) => column.filterValue != null && column.filterValue !== '') || !!globalFilterValue;
246
- const showFilterButton = (column) => (data.length !== 0 || areFiltersSet) && column.canFilter;
247
- const showSortButton = (column) => data.length !== 0 && column.canSort;
248
- const onRowClickHandler = React.useCallback((event, row) => {
249
- const isDisabled = isRowDisabled === null || isRowDisabled === void 0 ? void 0 : isRowDisabled(row.original);
250
- const ctrlPressed = event.ctrlKey || event.metaKey;
251
- if (!isDisabled) {
252
- onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(event, row);
253
- }
254
- if (isSelectable &&
255
- !isDisabled &&
256
- selectRowOnClick &&
257
- !event.isDefaultPrevented()) {
258
- if (selectionMode === 'multi' && event.shiftKey) {
259
- dispatch({
260
- type: shiftRowSelectedAction,
261
- id: row.id,
262
- ctrlPressed: ctrlPressed,
263
- });
264
- }
265
- else if (!row.isSelected &&
266
- (selectionMode === 'single' || !ctrlPressed)) {
267
- dispatch({
268
- type: singleRowSelectedAction,
269
- id: row.id,
270
- });
271
- }
272
- else {
273
- row.toggleRowSelected(!row.isSelected);
274
- }
275
- }
276
- }, [
277
- isRowDisabled,
278
- isSelectable,
279
- selectRowOnClick,
280
- selectionMode,
281
- dispatch,
282
- onRowClick,
283
- ]);
284
- React.useEffect(() => {
285
- setGlobalFilter(globalFilterValue);
286
- }, [globalFilterValue, setGlobalFilter]);
287
- React.useEffect(() => {
288
- setPageSize(pageSize);
289
- }, [pageSize, setPageSize]);
290
- React.useEffect(() => {
291
- if (previousFilter.current !== currentFilter.current) {
292
- previousFilter.current = currentFilter.current;
293
- onFilter === null || onFilter === void 0 ? void 0 : onFilter(currentFilter.current, state, instance.filteredRows);
150
+ }, []);
151
+ const enableUserSelect = React.useCallback((e) => {
152
+ if (e.key === 'Shift') {
153
+ ownerDocument.current &&
154
+ (ownerDocument.current.documentElement.style.userSelect = '');
155
+ }
156
+ }, []);
157
+ React.useEffect(() => {
158
+ if (!isSelectable || selectionMode !== 'multi') {
159
+ return;
160
+ }
161
+ const ownerDoc = ownerDocument.current;
162
+ ownerDoc?.addEventListener('keydown', disableUserSelect);
163
+ ownerDoc?.addEventListener('keyup', enableUserSelect);
164
+ return () => {
165
+ ownerDoc?.removeEventListener('keydown', disableUserSelect);
166
+ ownerDoc?.removeEventListener('keyup', enableUserSelect);
167
+ };
168
+ }, [
169
+ isSelectable,
170
+ selectionMode,
171
+ ownerDocument,
172
+ disableUserSelect,
173
+ enableUserSelect,
174
+ ]);
175
+ const previousFilter = React.useRef([]);
176
+ const currentFilter = React.useRef(previousFilter.current);
177
+ const tableStateReducer = React.useCallback(
178
+ (newState, action, previousState, instance) => {
179
+ switch (action.type) {
180
+ case react_table_1.actions.toggleSortBy:
181
+ onSort?.(newState);
182
+ break;
183
+ case react_table_1.actions.setFilter:
184
+ currentFilter.current = (0, index_js_4.onFilterHandler)(
185
+ newState,
186
+ action,
187
+ previousState,
188
+ currentFilter.current,
189
+ instance,
190
+ );
191
+ break;
192
+ case react_table_1.actions.toggleRowExpanded:
193
+ case react_table_1.actions.toggleAllRowsExpanded:
194
+ (0, index_js_4.onExpandHandler)(newState, instance, onExpand);
195
+ break;
196
+ case singleRowSelectedAction: {
197
+ newState = (0, index_js_4.onSingleSelectHandler)(
198
+ newState,
199
+ action,
200
+ instance,
201
+ onSelect,
202
+ // If it has manual selection column, then we can't check whether row is disabled
203
+ hasManualSelectionColumn ? undefined : isRowDisabled,
204
+ );
205
+ break;
294
206
  }
295
- }, [state, instance.filteredRows, onFilter]);
296
- const lastPassedColumns = React.useRef([]);
297
- // Reset the column order whenever new columns are passed
298
- // This is to avoid the old columnOrder from affecting the new columns' columnOrder
299
- React.useEffect(() => {
300
- // Check if columns have changed (by value)
301
- if (JSON.stringify(lastPassedColumns.current) !== JSON.stringify(columns)) {
302
- instance.setColumnOrder([]);
207
+ case shiftRowSelectedAction: {
208
+ newState = (0, index_js_4.onShiftSelectHandler)(
209
+ newState,
210
+ action,
211
+ instance,
212
+ onSelect,
213
+ // If it has manual selection column, then we can't check whether row is disabled
214
+ hasManualSelectionColumn ? undefined : isRowDisabled,
215
+ );
216
+ break;
303
217
  }
304
- lastPassedColumns.current = columns;
305
- }, [columns, instance]);
306
- const paginatorRendererProps = React.useMemo(() => ({
307
- currentPage: state.pageIndex,
308
- pageSize: state.pageSize,
309
- totalRowsCount: rows.length,
310
- size: density !== 'default' ? 'small' : 'default',
311
- isLoading,
312
- onPageChange: gotoPage,
313
- onPageSizeChange: setPageSize,
314
- totalSelectedRowsCount: selectionMode === 'single' ? 0 : instance.selectedFlatRows.length, // 0 when selectionMode = 'single' since totalSelectedRowCount is for multi-selection mode only
315
- }), [
316
- density,
317
- gotoPage,
318
- isLoading,
319
- rows.length,
320
- setPageSize,
321
- state.pageIndex,
322
- state.pageSize,
323
- instance.selectedFlatRows,
324
- selectionMode,
325
- ]);
326
- const { scrollToIndex, tableRowRef } = (0, index_js_4.useScrollToRow)({ ...props, page });
327
- const columnRefs = React.useRef({});
328
- const previousTableWidth = React.useRef(0);
329
- const onTableResize = React.useCallback(({ width }) => {
330
- instance.tableWidth = width;
331
- if (width === previousTableWidth.current) {
332
- return;
218
+ case react_table_1.actions.toggleRowSelected:
219
+ case react_table_1.actions.toggleAllRowsSelected:
220
+ case react_table_1.actions.toggleAllPageRowsSelected: {
221
+ (0, index_js_4.onToggleHandler)(
222
+ newState,
223
+ action,
224
+ instance,
225
+ onSelect,
226
+ // If it has manual selection column, then we can't check whether row is disabled
227
+ hasManualSelectionColumn ? undefined : isRowDisabled,
228
+ );
229
+ break;
333
230
  }
334
- previousTableWidth.current = width;
335
- // Update column widths when table was resized
336
- flatHeaders.forEach((header) => {
337
- if (columnRefs.current[header.id]) {
338
- header.resizeWidth =
339
- columnRefs.current[header.id].getBoundingClientRect().width;
340
- }
341
- });
342
- // If no column was resized then leave table resize handling to the flexbox
343
- if (Object.keys(state.columnResizing.columnWidths).length === 0) {
344
- return;
231
+ case exports.tableResizeStartAction: {
232
+ newState = (0, index_js_4.onTableResizeStart)(newState);
233
+ break;
345
234
  }
346
- dispatch({ type: exports.tableResizeStartAction });
347
- }, [dispatch, state.columnResizing.columnWidths, flatHeaders, instance]);
348
- const [resizeRef] = (0, index_js_2.useResizeObserver)(onTableResize);
349
- // Flexbox handles columns resize so we take new column widths before browser repaints.
350
- (0, index_js_2.useIsomorphicLayoutEffect)(() => {
351
- if (state.isTableResizing) {
352
- const newColumnWidths = {};
353
- flatHeaders.forEach((column) => {
354
- if (columnRefs.current[column.id]) {
355
- newColumnWidths[column.id] =
356
- columnRefs.current[column.id].getBoundingClientRect().width;
357
- }
358
- });
359
- dispatch({ type: tableResizeEndAction, columnWidths: newColumnWidths });
235
+ case tableResizeEndAction: {
236
+ newState = (0, index_js_4.onTableResizeEnd)(newState, action);
237
+ break;
360
238
  }
361
- });
362
- const headerRef = React.useRef(null);
363
- const bodyRef = React.useRef(null);
364
- const getPreparedRow = React.useCallback((index) => {
365
- const row = page[index];
366
- prepareRow(row);
367
- return (React.createElement(TableRowMemoized_js_1.TableRowMemoized, { row: row, rowProps: rowProps, isLast: index === page.length - 1, onRowInViewport: onRowInViewportRef, onBottomReached: onBottomReachedRef, intersectionMargin: intersectionMargin, state: state, key: row.getRowProps().key, onClick: onRowClickHandler, subComponent: subComponent, isDisabled: !!(isRowDisabled === null || isRowDisabled === void 0 ? void 0 : isRowDisabled(row.original)), tableHasSubRows: hasAnySubRows, tableInstance: instance, expanderCell: expanderCell, bodyRef: bodyRef.current, tableRowRef: enableVirtualization ? undefined : tableRowRef(row), density: density }));
368
- }, [
369
- page,
370
- prepareRow,
371
- rowProps,
372
- intersectionMargin,
373
- state,
374
- onRowClickHandler,
375
- subComponent,
376
- isRowDisabled,
377
- hasAnySubRows,
378
- instance,
379
- expanderCell,
380
- enableVirtualization,
381
- tableRowRef,
382
- density,
383
- ]);
384
- const virtualizedItemRenderer = React.useCallback((index) => getPreparedRow(index), [getPreparedRow]);
385
- const updateStickyState = () => {
386
- if (!bodyRef.current || flatHeaders.every((header) => !header.sticky)) {
387
- return;
239
+ default:
240
+ break;
241
+ }
242
+ return stateReducer
243
+ ? stateReducer(newState, action, previousState, instance)
244
+ : newState;
245
+ },
246
+ [
247
+ hasManualSelectionColumn,
248
+ isRowDisabled,
249
+ onExpand,
250
+ onSelect,
251
+ onSort,
252
+ stateReducer,
253
+ ],
254
+ );
255
+ const filterTypes = React.useMemo(
256
+ () => ({
257
+ ...customFilterFunctions_js_1.customFilterFunctions,
258
+ ...filterFunctions,
259
+ }),
260
+ [filterFunctions],
261
+ );
262
+ const hasAnySubRows = React.useMemo(() => {
263
+ return data.some((item, index) =>
264
+ getSubRows ? getSubRows(item, index) : item.subRows,
265
+ );
266
+ }, [data, getSubRows]);
267
+ const instance = (0, react_table_1.useTable)(
268
+ {
269
+ manualPagination: !paginatorRenderer,
270
+ paginateExpandedRows: false,
271
+ ...props,
272
+ columns,
273
+ defaultColumn,
274
+ disableSortBy: !isSortable,
275
+ stateReducer: tableStateReducer,
276
+ filterTypes,
277
+ selectSubRows,
278
+ data,
279
+ getSubRows,
280
+ initialState: { pageSize, ...props.initialState },
281
+ columnResizeMode,
282
+ },
283
+ react_table_1.useFlexLayout,
284
+ (0, index_js_3.useResizeColumns)(ownerDocument),
285
+ react_table_1.useFilters,
286
+ (0, index_js_3.useSubRowFiltering)(hasAnySubRows),
287
+ react_table_1.useGlobalFilter,
288
+ react_table_1.useSortBy,
289
+ react_table_1.useExpanded,
290
+ react_table_1.usePagination,
291
+ react_table_1.useRowSelect,
292
+ index_js_3.useSubRowSelection,
293
+ (0, index_js_3.useExpanderCell)(subComponent, expanderCell, isRowDisabled),
294
+ (0, index_js_3.useSelectionCell)(
295
+ isSelectable,
296
+ selectionMode,
297
+ isRowDisabled,
298
+ density,
299
+ ),
300
+ react_table_1.useColumnOrder,
301
+ (0, index_js_3.useColumnDragAndDrop)(enableColumnReordering),
302
+ index_js_3.useStickyColumns,
303
+ );
304
+ const {
305
+ getTableProps,
306
+ rows,
307
+ headerGroups: _headerGroups,
308
+ getTableBodyProps,
309
+ prepareRow,
310
+ state,
311
+ allColumns,
312
+ dispatch,
313
+ page,
314
+ gotoPage,
315
+ setPageSize,
316
+ flatHeaders,
317
+ visibleColumns,
318
+ setGlobalFilter,
319
+ } = instance;
320
+ let headerGroups = _headerGroups;
321
+ if (columns.length === 1 && 'columns' in columns[0]) {
322
+ headerGroups = _headerGroups.slice(1);
323
+ logWarningInDev(
324
+ `Table's \`columns\` prop should not have a top-level \`Header\` or sub-columns. They are only allowed to be passed for backwards compatibility.\n See https://github.com/iTwin/iTwinUI/wiki/iTwinUI-react-v2-migration-guide#breaking-changes`,
325
+ );
326
+ }
327
+ const ariaDataAttributes = Object.entries(rest).reduce(
328
+ (result, [key, value]) => {
329
+ if (key.startsWith('data-') || key.startsWith('aria-')) {
330
+ result[key] = value;
331
+ }
332
+ return result;
333
+ },
334
+ {},
335
+ );
336
+ const areFiltersSet =
337
+ allColumns.some(
338
+ (column) => column.filterValue != null && column.filterValue !== '',
339
+ ) || !!globalFilterValue;
340
+ const showFilterButton = (column) =>
341
+ (data.length !== 0 || areFiltersSet) && column.canFilter && !!column.Filter;
342
+ const showSortButton = (column) => data.length !== 0 && column.canSort;
343
+ const onRowClickHandler = React.useCallback(
344
+ (event, row) => {
345
+ const isDisabled = isRowDisabled?.(row.original);
346
+ const ctrlPressed = event.ctrlKey || event.metaKey;
347
+ if (!isDisabled) {
348
+ onRowClick?.(event, row);
349
+ }
350
+ if (
351
+ isSelectable &&
352
+ !isDisabled &&
353
+ selectRowOnClick &&
354
+ !event.isDefaultPrevented()
355
+ ) {
356
+ if (selectionMode === 'multi' && event.shiftKey) {
357
+ dispatch({
358
+ type: shiftRowSelectedAction,
359
+ id: row.id,
360
+ ctrlPressed: ctrlPressed,
361
+ });
362
+ } else if (
363
+ !row.isSelected &&
364
+ (selectionMode === 'single' || !ctrlPressed)
365
+ ) {
366
+ dispatch({
367
+ type: singleRowSelectedAction,
368
+ id: row.id,
369
+ });
370
+ } else {
371
+ row.toggleRowSelected(!row.isSelected);
388
372
  }
389
- if (bodyRef.current.scrollLeft !== 0) {
390
- dispatch({ type: react_table_1.actions.setScrolledRight, value: true });
391
- }
392
- else {
393
- dispatch({ type: react_table_1.actions.setScrolledRight, value: false });
394
- }
395
- // If scrolled a bit to the left looking from the right side
396
- if (bodyRef.current.scrollLeft !==
397
- bodyRef.current.scrollWidth - bodyRef.current.clientWidth) {
398
- dispatch({ type: react_table_1.actions.setScrolledLeft, value: true });
373
+ }
374
+ },
375
+ [
376
+ isRowDisabled,
377
+ isSelectable,
378
+ selectRowOnClick,
379
+ selectionMode,
380
+ dispatch,
381
+ onRowClick,
382
+ ],
383
+ );
384
+ React.useEffect(() => {
385
+ setGlobalFilter(globalFilterValue);
386
+ }, [globalFilterValue, setGlobalFilter]);
387
+ React.useEffect(() => {
388
+ setPageSize(pageSize);
389
+ }, [pageSize, setPageSize]);
390
+ React.useEffect(() => {
391
+ if (previousFilter.current !== currentFilter.current) {
392
+ previousFilter.current = currentFilter.current;
393
+ onFilter?.(currentFilter.current, state, instance.filteredRows);
394
+ }
395
+ }, [state, instance.filteredRows, onFilter]);
396
+ const lastPassedColumns = React.useRef([]);
397
+ // Reset the column order whenever new columns are passed
398
+ // This is to avoid the old columnOrder from affecting the new columns' columnOrder
399
+ React.useEffect(() => {
400
+ // Check if columns have changed (by value)
401
+ if (JSON.stringify(lastPassedColumns.current) !== JSON.stringify(columns)) {
402
+ instance.setColumnOrder([]);
403
+ }
404
+ lastPassedColumns.current = columns;
405
+ }, [columns, instance]);
406
+ const paginatorRendererProps = React.useMemo(
407
+ () => ({
408
+ currentPage: state.pageIndex,
409
+ pageSize: state.pageSize,
410
+ totalRowsCount: rows.length,
411
+ size: density !== 'default' ? 'small' : 'default',
412
+ isLoading,
413
+ onPageChange: gotoPage,
414
+ onPageSizeChange: setPageSize,
415
+ totalSelectedRowsCount:
416
+ selectionMode === 'single' ? 0 : instance.selectedFlatRows.length, // 0 when selectionMode = 'single' since totalSelectedRowCount is for multi-selection mode only
417
+ }),
418
+ [
419
+ density,
420
+ gotoPage,
421
+ isLoading,
422
+ rows.length,
423
+ setPageSize,
424
+ state.pageIndex,
425
+ state.pageSize,
426
+ instance.selectedFlatRows,
427
+ selectionMode,
428
+ ],
429
+ );
430
+ const { scrollToIndex, tableRowRef } = (0, index_js_3.useScrollToRow)({
431
+ ...props,
432
+ page,
433
+ });
434
+ const columnRefs = React.useRef({});
435
+ const previousTableWidth = React.useRef(0);
436
+ const onTableResize = React.useCallback(
437
+ ({ width }) => {
438
+ instance.tableWidth = width;
439
+ if (width === previousTableWidth.current) {
440
+ return;
441
+ }
442
+ previousTableWidth.current = width;
443
+ // Update column widths when table was resized
444
+ flatHeaders.forEach((header) => {
445
+ if (columnRefs.current[header.id]) {
446
+ header.resizeWidth =
447
+ columnRefs.current[header.id].getBoundingClientRect().width;
399
448
  }
400
- else {
401
- dispatch({ type: react_table_1.actions.setScrolledLeft, value: false });
449
+ });
450
+ // If no column was resized then leave table resize handling to the flexbox
451
+ if (Object.keys(state.columnResizing.columnWidths).length === 0) {
452
+ return;
453
+ }
454
+ dispatch({ type: exports.tableResizeStartAction });
455
+ },
456
+ [dispatch, state.columnResizing.columnWidths, flatHeaders, instance],
457
+ );
458
+ const [resizeRef] = (0, index_js_1.useResizeObserver)(onTableResize);
459
+ // Flexbox handles columns resize so we take new column widths before browser repaints.
460
+ (0, index_js_1.useIsomorphicLayoutEffect)(() => {
461
+ if (state.isTableResizing) {
462
+ const newColumnWidths = {};
463
+ flatHeaders.forEach((column) => {
464
+ if (columnRefs.current[column.id]) {
465
+ newColumnWidths[column.id] =
466
+ columnRefs.current[column.id].getBoundingClientRect().width;
402
467
  }
403
- };
404
- React.useEffect(() => {
405
- updateStickyState();
406
- // Call only on init
407
- // eslint-disable-next-line react-hooks/exhaustive-deps
408
- }, []);
409
- const isHeaderDirectClick = React.useRef(false);
410
- return (React.createElement(React.Fragment, null,
411
- React.createElement(index_js_2.Box, { ref: (element) => {
412
- ownerDocument.current = element === null || element === void 0 ? void 0 : element.ownerDocument;
413
- if (isResizable) {
414
- resizeRef(element);
415
- }
416
- }, id: id, ...getTableProps({
417
- className: (0, classnames_1.default)('iui-table', className),
418
- style: {
419
- minWidth: 0,
420
- ...style,
421
- },
422
- }), "data-iui-size": density === 'default' ? undefined : density, ...ariaDataAttributes },
423
- headerGroups.map((headerGroup) => {
424
- // There may be a better solution for this, but for now I'm filtering out the placeholder cells using header.id
425
- headerGroup.headers = headerGroup.headers.filter((header) => !header.id.includes('iui-table-checkbox-selector_placeholder') &&
426
- !header.id.includes('iui-table-expander_placeholder'));
427
- const headerGroupProps = headerGroup.getHeaderGroupProps({
428
- className: 'iui-table-row',
468
+ });
469
+ dispatch({ type: tableResizeEndAction, columnWidths: newColumnWidths });
470
+ }
471
+ });
472
+ const headerRef = React.useRef(null);
473
+ const bodyRef = React.useRef(null);
474
+ const getPreparedRow = React.useCallback(
475
+ (index) => {
476
+ const row = page[index];
477
+ prepareRow(row);
478
+ return React.createElement(TableRowMemoized_js_1.TableRowMemoized, {
479
+ row: row,
480
+ rowProps: rowProps,
481
+ isLast: index === page.length - 1,
482
+ onRowInViewport: onRowInViewportRef,
483
+ onBottomReached: onBottomReachedRef,
484
+ intersectionMargin: intersectionMargin,
485
+ state: state,
486
+ key: row.getRowProps().key,
487
+ onClick: onRowClickHandler,
488
+ subComponent: subComponent,
489
+ isDisabled: !!isRowDisabled?.(row.original),
490
+ tableHasSubRows: hasAnySubRows,
491
+ tableInstance: instance,
492
+ expanderCell: expanderCell,
493
+ bodyRef: bodyRef.current,
494
+ tableRowRef: enableVirtualization ? undefined : tableRowRef(row),
495
+ density: density,
496
+ });
497
+ },
498
+ [
499
+ page,
500
+ prepareRow,
501
+ rowProps,
502
+ intersectionMargin,
503
+ state,
504
+ onRowClickHandler,
505
+ subComponent,
506
+ isRowDisabled,
507
+ hasAnySubRows,
508
+ instance,
509
+ expanderCell,
510
+ enableVirtualization,
511
+ tableRowRef,
512
+ density,
513
+ ],
514
+ );
515
+ const virtualizedItemRenderer = React.useCallback(
516
+ (index) => getPreparedRow(index),
517
+ [getPreparedRow],
518
+ );
519
+ const updateStickyState = () => {
520
+ if (!bodyRef.current || flatHeaders.every((header) => !header.sticky)) {
521
+ return;
522
+ }
523
+ if (bodyRef.current.scrollLeft !== 0) {
524
+ dispatch({ type: react_table_1.actions.setScrolledRight, value: true });
525
+ } else {
526
+ dispatch({ type: react_table_1.actions.setScrolledRight, value: false });
527
+ }
528
+ // If scrolled a bit to the left looking from the right side
529
+ if (
530
+ bodyRef.current.scrollLeft !==
531
+ bodyRef.current.scrollWidth - bodyRef.current.clientWidth
532
+ ) {
533
+ dispatch({ type: react_table_1.actions.setScrolledLeft, value: true });
534
+ } else {
535
+ dispatch({ type: react_table_1.actions.setScrolledLeft, value: false });
536
+ }
537
+ };
538
+ React.useEffect(() => {
539
+ updateStickyState();
540
+ // Call only on init
541
+ // eslint-disable-next-line react-hooks/exhaustive-deps
542
+ }, []);
543
+ const isHeaderDirectClick = React.useRef(false);
544
+ return React.createElement(
545
+ React.Fragment,
546
+ null,
547
+ React.createElement(
548
+ index_js_1.Box,
549
+ {
550
+ ref: (element) => {
551
+ ownerDocument.current = element?.ownerDocument;
552
+ if (isResizable) {
553
+ resizeRef(element);
554
+ }
555
+ },
556
+ id: id,
557
+ ...getTableProps({
558
+ className: (0, classnames_1.default)('iui-table', className),
559
+ style: {
560
+ minWidth: 0,
561
+ ...style,
562
+ },
563
+ }),
564
+ 'data-iui-size': density === 'default' ? undefined : density,
565
+ ...ariaDataAttributes,
566
+ },
567
+ headerGroups.map((headerGroup) => {
568
+ // There may be a better solution for this, but for now I'm filtering out the placeholder cells using header.id
569
+ headerGroup.headers = headerGroup.headers.filter(
570
+ (header) =>
571
+ !header.id.includes('iui-table-checkbox-selector_placeholder') &&
572
+ !header.id.includes('iui-table-expander_placeholder'),
573
+ );
574
+ const headerGroupProps = headerGroup.getHeaderGroupProps({
575
+ className: 'iui-table-row',
576
+ });
577
+ return React.createElement(
578
+ index_js_1.Box,
579
+ {
580
+ as: 'div',
581
+ ref: headerRef,
582
+ onScroll: () => {
583
+ if (headerRef.current && bodyRef.current) {
584
+ bodyRef.current.scrollLeft = headerRef.current.scrollLeft;
585
+ updateStickyState();
586
+ }
587
+ },
588
+ key: headerGroupProps.key,
589
+ ...headerWrapperProps,
590
+ className: (0, classnames_1.default)(
591
+ 'iui-table-header-wrapper',
592
+ headerWrapperProps?.className,
593
+ ),
594
+ },
595
+ React.createElement(
596
+ index_js_1.Box,
597
+ {
598
+ as: 'div',
599
+ ...headerProps,
600
+ className: (0, classnames_1.default)(
601
+ 'iui-table-header',
602
+ headerProps?.className,
603
+ ),
604
+ },
605
+ React.createElement(
606
+ index_js_1.Box,
607
+ { ...headerGroupProps },
608
+ headerGroup.headers.map((column, index) => {
609
+ const { onClick, ...restSortProps } =
610
+ column.getSortByToggleProps();
611
+ const columnProps = column.getHeaderProps({
612
+ ...restSortProps,
613
+ className: (0, classnames_1.default)(
614
+ 'iui-table-cell',
615
+ {
616
+ 'iui-actionable': column.canSort,
617
+ 'iui-sorted': column.isSorted,
618
+ 'iui-table-cell-sticky': !!column.sticky,
619
+ },
620
+ column.columnClassName,
621
+ ),
622
+ style: {
623
+ ...(0, utils_js_1.getCellStyle)(
624
+ column,
625
+ !!state.isTableResizing,
626
+ ),
627
+ ...(0, utils_js_1.getStickyStyle)(column, visibleColumns),
628
+ flexWrap: 'unset',
629
+ },
429
630
  });
430
- return (React.createElement(index_js_2.Box, { className: 'iui-table-header-wrapper', ref: headerRef, onScroll: () => {
431
- if (headerRef.current && bodyRef.current) {
432
- bodyRef.current.scrollLeft = headerRef.current.scrollLeft;
433
- updateStickyState();
434
- }
435
- }, key: headerGroupProps.key },
436
- React.createElement(index_js_2.Box, { className: 'iui-table-header' },
437
- React.createElement(index_js_2.Box, { ...headerGroupProps }, headerGroup.headers.map((column, index) => {
438
- const { onClick, ...restSortProps } = column.getSortByToggleProps();
439
- const columnProps = column.getHeaderProps({
440
- ...restSortProps,
441
- className: (0, classnames_1.default)('iui-table-cell', {
442
- 'iui-actionable': column.canSort,
443
- 'iui-sorted': column.isSorted,
444
- 'iui-table-cell-sticky': !!column.sticky,
445
- }, column.columnClassName),
446
- style: {
447
- ...(0, utils_js_1.getCellStyle)(column, !!state.isTableResizing),
448
- ...(0, utils_js_1.getStickyStyle)(column, visibleColumns),
449
- flexWrap: 'unset',
450
- },
451
- });
452
- return (React.createElement(index_js_2.Box, { ...columnProps, ...column.getDragAndDropProps(), key: columnProps.key, title: undefined, ref: (el) => {
453
- if (el) {
454
- columnRefs.current[column.id] = el;
455
- column.resizeWidth =
456
- el.getBoundingClientRect().width;
457
- }
458
- }, onMouseDown: () => {
459
- isHeaderDirectClick.current = true;
460
- }, onClick: (e) => {
461
- // Prevents from triggering sort when resizing and mouse is released in the middle of header
462
- if (isHeaderDirectClick.current) {
463
- onClick === null || onClick === void 0 ? void 0 : onClick(e);
464
- isHeaderDirectClick.current = false;
465
- }
466
- }, tabIndex: showSortButton(column) ? 0 : undefined, onKeyDown: (e) => {
467
- if (e.key == 'Enter' && showSortButton(column)) {
468
- column.toggleSortBy();
469
- }
470
- } },
471
- column.render('Header'),
472
- (showFilterButton(column) ||
473
- showSortButton(column)) && (React.createElement(index_js_2.Box, { className: 'iui-table-header-actions-container' },
474
- showFilterButton(column) && (React.createElement(index_js_3.FilterToggle, { column: column })),
475
- showSortButton(column) && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-end-icon' }, column.isSortedDesc ||
476
- (!column.isSorted && column.sortDescFirst) ? (React.createElement(index_js_2.SvgSortDown, { className: 'iui-table-sort', "aria-hidden": true })) : (React.createElement(index_js_2.SvgSortUp, { className: 'iui-table-sort', "aria-hidden": true })))))),
477
- isResizable &&
478
- column.isResizerVisible &&
479
- (index !== headerGroup.headers.length - 1 ||
480
- columnResizeMode === 'expand') && (React.createElement(index_js_2.Box, { ...column.getResizerProps(), className: 'iui-table-resizer' },
481
- React.createElement(index_js_2.Box, { className: 'iui-table-resizer-bar' }))),
482
- enableColumnReordering &&
483
- !column.disableReordering && (React.createElement(index_js_2.Box, { className: 'iui-table-reorder-bar' })),
484
- column.sticky === 'left' &&
485
- state.sticky.isScrolledToRight && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-shadow-right' })),
486
- column.sticky === 'right' &&
487
- state.sticky.isScrolledToLeft && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-shadow-left' }))));
488
- })))));
489
- }),
490
- React.createElement(index_js_2.Box, { ...getTableBodyProps({
491
- className: (0, classnames_1.default)('iui-table-body', {
492
- 'iui-zebra-striping': styleType === 'zebra-rows',
631
+ return React.createElement(
632
+ index_js_1.Box,
633
+ {
634
+ ...columnProps,
635
+ ...column.getDragAndDropProps(),
636
+ key: columnProps.key,
637
+ title: undefined,
638
+ ref: (el) => {
639
+ if (el) {
640
+ columnRefs.current[column.id] = el;
641
+ column.resizeWidth = el.getBoundingClientRect().width;
642
+ }
643
+ },
644
+ onMouseDown: () => {
645
+ isHeaderDirectClick.current = true;
646
+ },
647
+ onClick: (e) => {
648
+ // Prevents from triggering sort when resizing and mouse is released in the middle of header
649
+ if (isHeaderDirectClick.current) {
650
+ onClick?.(e);
651
+ isHeaderDirectClick.current = false;
652
+ }
653
+ },
654
+ tabIndex: showSortButton(column) ? 0 : undefined,
655
+ onKeyDown: (e) => {
656
+ if (e.key == 'Enter' && showSortButton(column)) {
657
+ column.toggleSortBy();
658
+ }
659
+ },
660
+ },
661
+ column.render('Header'),
662
+ (showFilterButton(column) || showSortButton(column)) &&
663
+ React.createElement(
664
+ index_js_1.Box,
665
+ { className: 'iui-table-header-actions-container' },
666
+ showFilterButton(column) &&
667
+ React.createElement(index_js_2.FilterToggle, {
668
+ column: column,
669
+ }),
670
+ showSortButton(column) &&
671
+ React.createElement(
672
+ index_js_1.Box,
673
+ { className: 'iui-table-cell-end-icon' },
674
+ column.isSortedDesc ||
675
+ (!column.isSorted && column.sortDescFirst)
676
+ ? React.createElement(index_js_1.SvgSortDown, {
677
+ className: 'iui-table-sort',
678
+ 'aria-hidden': true,
679
+ })
680
+ : React.createElement(index_js_1.SvgSortUp, {
681
+ className: 'iui-table-sort',
682
+ 'aria-hidden': true,
683
+ }),
684
+ ),
685
+ ),
686
+ isResizable &&
687
+ column.isResizerVisible &&
688
+ (index !== headerGroup.headers.length - 1 ||
689
+ columnResizeMode === 'expand') &&
690
+ React.createElement(
691
+ index_js_1.Box,
692
+ {
693
+ ...column.getResizerProps(),
694
+ className: 'iui-table-resizer',
695
+ },
696
+ React.createElement(index_js_1.Box, {
697
+ className: 'iui-table-resizer-bar',
698
+ }),
699
+ ),
700
+ enableColumnReordering &&
701
+ !column.disableReordering &&
702
+ React.createElement(index_js_1.Box, {
703
+ className: 'iui-table-reorder-bar',
704
+ }),
705
+ column.sticky === 'left' &&
706
+ state.sticky.isScrolledToRight &&
707
+ React.createElement(index_js_1.Box, {
708
+ className: 'iui-table-cell-shadow-right',
709
+ }),
710
+ column.sticky === 'right' &&
711
+ state.sticky.isScrolledToLeft &&
712
+ React.createElement(index_js_1.Box, {
713
+ className: 'iui-table-cell-shadow-left',
493
714
  }),
494
- style: { outline: 0 },
495
- }), ref: bodyRef, onScroll: () => {
496
- if (headerRef.current && bodyRef.current) {
497
- headerRef.current.scrollLeft = bodyRef.current.scrollLeft;
498
- updateStickyState();
499
- }
500
- }, tabIndex: -1, "aria-multiselectable": (isSelectable && selectionMode === 'multi') || undefined },
501
- data.length !== 0 && (React.createElement(React.Fragment, null, enableVirtualization ? (React.createElement(VirtualScroll_js_1.default, { itemsLength: page.length, itemRenderer: virtualizedItemRenderer, scrollToIndex: scrollToIndex })) : (page.map((_, index) => getPreparedRow(index))))),
502
- isLoading && data.length === 0 && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
503
- React.createElement(index_js_1.ProgressRadial, { indeterminate: true }))),
504
- isLoading && data.length !== 0 && (React.createElement(index_js_2.Box, { className: 'iui-table-row' },
505
- React.createElement(index_js_2.Box, { className: 'iui-table-cell', style: { justifyContent: 'center' } },
506
- React.createElement(index_js_1.ProgressRadial, { indeterminate: true, size: 'small', style: { float: 'none', marginLeft: 0 } })))),
507
- !isLoading && data.length === 0 && !areFiltersSet && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
508
- React.createElement("div", null, emptyTableContent))),
509
- !isLoading &&
510
- (data.length === 0 || rows.length === 0) &&
511
- areFiltersSet && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
512
- React.createElement("div", null, emptyFilteredTableContent)))), paginatorRenderer === null || paginatorRenderer === void 0 ? void 0 :
513
- paginatorRenderer(paginatorRendererProps))));
715
+ );
716
+ }),
717
+ ),
718
+ ),
719
+ );
720
+ }),
721
+ React.createElement(
722
+ index_js_1.Box,
723
+ {
724
+ ...bodyProps,
725
+ ...getTableBodyProps({
726
+ className: (0, classnames_1.default)(
727
+ 'iui-table-body',
728
+ {
729
+ 'iui-zebra-striping': styleType === 'zebra-rows',
730
+ },
731
+ bodyProps?.className,
732
+ ),
733
+ style: { outline: 0 },
734
+ }),
735
+ ref: bodyRef,
736
+ onScroll: () => {
737
+ if (headerRef.current && bodyRef.current) {
738
+ headerRef.current.scrollLeft = bodyRef.current.scrollLeft;
739
+ updateStickyState();
740
+ }
741
+ },
742
+ tabIndex: -1,
743
+ 'aria-multiselectable':
744
+ (isSelectable && selectionMode === 'multi') || undefined,
745
+ },
746
+ data.length !== 0 &&
747
+ React.createElement(
748
+ React.Fragment,
749
+ null,
750
+ enableVirtualization
751
+ ? React.createElement(VirtualScroll_js_1.default, {
752
+ itemsLength: page.length,
753
+ itemRenderer: virtualizedItemRenderer,
754
+ scrollToIndex: scrollToIndex,
755
+ })
756
+ : page.map((_, index) => getPreparedRow(index)),
757
+ ),
758
+ isLoading &&
759
+ data.length === 0 &&
760
+ React.createElement(
761
+ index_js_1.Box,
762
+ {
763
+ as: 'div',
764
+ ...emptyTableContentProps,
765
+ className: (0, classnames_1.default)(
766
+ 'iui-table-empty',
767
+ emptyTableContentProps?.className,
768
+ ),
769
+ },
770
+ React.createElement(ProgressRadial_js_1.ProgressRadial, {
771
+ indeterminate: true,
772
+ }),
773
+ ),
774
+ isLoading &&
775
+ data.length !== 0 &&
776
+ React.createElement(
777
+ index_js_1.Box,
778
+ { className: 'iui-table-row' },
779
+ React.createElement(
780
+ index_js_1.Box,
781
+ {
782
+ className: 'iui-table-cell',
783
+ style: { justifyContent: 'center' },
784
+ },
785
+ React.createElement(ProgressRadial_js_1.ProgressRadial, {
786
+ indeterminate: true,
787
+ size: 'small',
788
+ }),
789
+ ),
790
+ ),
791
+ !isLoading &&
792
+ data.length === 0 &&
793
+ !areFiltersSet &&
794
+ React.createElement(
795
+ index_js_1.Box,
796
+ {
797
+ as: 'div',
798
+ ...emptyTableContentProps,
799
+ className: (0, classnames_1.default)(
800
+ 'iui-table-empty',
801
+ emptyTableContentProps?.className,
802
+ ),
803
+ },
804
+ React.createElement('div', null, emptyTableContent),
805
+ ),
806
+ !isLoading &&
807
+ (data.length === 0 || rows.length === 0) &&
808
+ areFiltersSet &&
809
+ React.createElement(
810
+ index_js_1.Box,
811
+ {
812
+ as: 'div',
813
+ ...emptyTableContentProps,
814
+ className: (0, classnames_1.default)(
815
+ 'iui-table-empty',
816
+ emptyTableContentProps?.className,
817
+ ),
818
+ },
819
+ React.createElement('div', null, emptyFilteredTableContent),
820
+ ),
821
+ ),
822
+ paginatorRenderer?.(paginatorRendererProps),
823
+ ),
824
+ );
514
825
  };
515
826
  exports.Table = Table;
516
827
  exports.default = exports.Table;