@itwin/itwinui-react 3.0.0-dev.3 → 3.0.0-dev.5

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 (945) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/cjs/core/Alert/Alert.d.ts +5 -5
  3. package/cjs/core/Alert/Alert.js +72 -59
  4. package/cjs/core/Alert/index.js +9 -4
  5. package/cjs/core/Avatar/Avatar.d.ts +3 -7
  6. package/cjs/core/Avatar/Avatar.js +61 -49
  7. package/cjs/core/Avatar/index.d.ts +1 -1
  8. package/cjs/core/Avatar/index.js +10 -6
  9. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  10. package/cjs/core/AvatarGroup/AvatarGroup.js +70 -58
  11. package/cjs/core/AvatarGroup/index.d.ts +1 -1
  12. package/cjs/core/AvatarGroup/index.js +10 -6
  13. package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
  14. package/cjs/core/Backdrop/Backdrop.js +16 -33
  15. package/cjs/core/Backdrop/index.js +9 -4
  16. package/cjs/core/Badge/Badge.d.ts +1 -1
  17. package/cjs/core/Badge/Badge.js +39 -47
  18. package/cjs/core/Badge/index.js +9 -4
  19. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  20. package/cjs/core/Breadcrumbs/Breadcrumbs.js +131 -61
  21. package/cjs/core/Breadcrumbs/index.js +9 -4
  22. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  23. package/cjs/core/ButtonGroup/ButtonGroup.js +65 -53
  24. package/cjs/core/ButtonGroup/index.js +9 -4
  25. package/cjs/core/Buttons/Button/Button.d.ts +1 -1
  26. package/cjs/core/Buttons/Button/Button.js +43 -36
  27. package/cjs/core/Buttons/Button/index.js +9 -4
  28. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +1 -1
  29. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +61 -51
  30. package/cjs/core/Buttons/DropdownButton/index.js +9 -4
  31. package/cjs/core/Buttons/IconButton/IconButton.d.ts +1 -1
  32. package/cjs/core/Buttons/IconButton/IconButton.js +59 -38
  33. package/cjs/core/Buttons/IconButton/index.js +9 -4
  34. package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
  35. package/cjs/core/Buttons/IdeasButton/IdeasButton.js +20 -30
  36. package/cjs/core/Buttons/IdeasButton/index.js +9 -4
  37. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +1 -1
  38. package/cjs/core/Buttons/SplitButton/SplitButton.js +68 -49
  39. package/cjs/core/Buttons/SplitButton/index.js +9 -4
  40. package/cjs/core/Buttons/index.js +43 -13
  41. package/cjs/core/Carousel/Carousel.d.ts +3 -3
  42. package/cjs/core/Carousel/Carousel.js +109 -107
  43. package/cjs/core/Carousel/CarouselContext.js +4 -26
  44. package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
  45. package/cjs/core/Carousel/CarouselDot.js +25 -37
  46. package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
  47. package/cjs/core/Carousel/CarouselDotsList.js +129 -95
  48. package/cjs/core/Carousel/CarouselNavigation.d.ts +2 -2
  49. package/cjs/core/Carousel/CarouselNavigation.js +97 -66
  50. package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
  51. package/cjs/core/Carousel/CarouselSlide.js +39 -46
  52. package/cjs/core/Carousel/CarouselSlider.js +66 -71
  53. package/cjs/core/Carousel/index.js +9 -4
  54. package/cjs/core/Checkbox/Checkbox.d.ts +9 -5
  55. package/cjs/core/Checkbox/Checkbox.js +88 -60
  56. package/cjs/core/Checkbox/index.js +9 -4
  57. package/cjs/core/ColorPicker/ColorBuilder.js +289 -198
  58. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  59. package/cjs/core/ColorPicker/ColorInputPanel.js +453 -282
  60. package/cjs/core/ColorPicker/ColorPalette.d.ts +1 -1
  61. package/cjs/core/ColorPicker/ColorPalette.js +124 -113
  62. package/cjs/core/ColorPicker/ColorPicker.d.ts +1 -6
  63. package/cjs/core/ColorPicker/ColorPicker.js +82 -85
  64. package/cjs/core/ColorPicker/ColorPickerContext.js +11 -31
  65. package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
  66. package/cjs/core/ColorPicker/ColorSwatch.js +30 -39
  67. package/cjs/core/ColorPicker/index.js +43 -13
  68. package/cjs/core/ComboBox/ComboBox.d.ts +6 -6
  69. package/cjs/core/ComboBox/ComboBox.js +393 -294
  70. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
  71. package/cjs/core/ComboBox/ComboBoxDropdown.js +39 -42
  72. package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  73. package/cjs/core/ComboBox/ComboBoxEndIcon.js +46 -43
  74. package/cjs/core/ComboBox/ComboBoxInput.d.ts +2 -2
  75. package/cjs/core/ComboBox/ComboBoxInput.js +200 -152
  76. package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  77. package/cjs/core/ComboBox/ComboBoxInputContainer.js +35 -34
  78. package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
  79. package/cjs/core/ComboBox/ComboBoxMenu.js +108 -73
  80. package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +1 -1
  81. package/cjs/core/ComboBox/ComboBoxMenuItem.js +71 -42
  82. package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  83. package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +13 -32
  84. package/cjs/core/ComboBox/helpers.d.ts +2 -2
  85. package/cjs/core/ComboBox/helpers.js +47 -65
  86. package/cjs/core/ComboBox/index.js +9 -4
  87. package/cjs/core/DatePicker/DatePicker.d.ts +2 -2
  88. package/cjs/core/DatePicker/DatePicker.js +523 -357
  89. package/cjs/core/DatePicker/index.js +15 -5
  90. package/cjs/core/Dialog/Dialog.d.ts +1 -1
  91. package/cjs/core/Dialog/Dialog.js +72 -68
  92. package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
  93. package/cjs/core/Dialog/DialogBackdrop.js +47 -52
  94. package/cjs/core/Dialog/DialogButtonBar.js +3 -3
  95. package/cjs/core/Dialog/DialogContent.js +3 -3
  96. package/cjs/core/Dialog/DialogContext.d.ts +1 -1
  97. package/cjs/core/Dialog/DialogContext.js +5 -27
  98. package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
  99. package/cjs/core/Dialog/DialogDragContext.js +8 -30
  100. package/cjs/core/Dialog/DialogMain.d.ts +1 -1
  101. package/cjs/core/Dialog/DialogMain.js +184 -142
  102. package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
  103. package/cjs/core/Dialog/DialogTitleBar.js +67 -45
  104. package/cjs/core/Dialog/DialogTitleBarTitle.js +3 -3
  105. package/cjs/core/Dialog/index.js +9 -4
  106. package/cjs/core/DropdownMenu/DropdownMenu.d.ts +4 -4
  107. package/cjs/core/DropdownMenu/DropdownMenu.js +72 -50
  108. package/cjs/core/DropdownMenu/index.js +9 -4
  109. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +77 -21
  110. package/cjs/core/ExpandableBlock/ExpandableBlock.js +233 -76
  111. package/cjs/core/ExpandableBlock/index.js +9 -4
  112. package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
  113. package/cjs/core/Fieldset/Fieldset.js +25 -39
  114. package/cjs/core/Fieldset/index.js +9 -4
  115. package/cjs/core/FileUpload/FileEmptyCard.js +43 -42
  116. package/cjs/core/FileUpload/FileUpload.d.ts +1 -1
  117. package/cjs/core/FileUpload/FileUpload.js +67 -67
  118. package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
  119. package/cjs/core/FileUpload/FileUploadCard.js +168 -108
  120. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +1 -1
  121. package/cjs/core/FileUpload/FileUploadTemplate.js +51 -41
  122. package/cjs/core/FileUpload/index.js +35 -11
  123. package/cjs/core/Footer/Footer.d.ts +4 -4
  124. package/cjs/core/Footer/Footer.js +103 -89
  125. package/cjs/core/Footer/FooterItem.js +3 -3
  126. package/cjs/core/Footer/FooterList.js +3 -3
  127. package/cjs/core/Footer/FooterSeparator.js +8 -5
  128. package/cjs/core/Footer/index.js +15 -5
  129. package/cjs/core/Header/Header.d.ts +3 -22
  130. package/cjs/core/Header/Header.js +67 -48
  131. package/cjs/core/Header/HeaderBasicButton.js +37 -38
  132. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  133. package/cjs/core/Header/HeaderBreadcrumbs.js +38 -39
  134. package/cjs/core/Header/HeaderButton.d.ts +1 -1
  135. package/cjs/core/Header/HeaderButton.js +74 -43
  136. package/cjs/core/Header/HeaderDropdownButton.js +49 -45
  137. package/cjs/core/Header/HeaderLogo.d.ts +1 -1
  138. package/cjs/core/Header/HeaderLogo.js +42 -36
  139. package/cjs/core/Header/HeaderSplitButton.js +68 -46
  140. package/cjs/core/Header/index.js +35 -11
  141. package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
  142. package/cjs/core/InformationPanel/InformationPanel.js +77 -67
  143. package/cjs/core/InformationPanel/InformationPanelBody.js +6 -4
  144. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  145. package/cjs/core/InformationPanel/InformationPanelContent.js +20 -33
  146. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  147. package/cjs/core/InformationPanel/InformationPanelHeader.js +34 -39
  148. package/cjs/core/InformationPanel/InformationPanelWrapper.js +6 -4
  149. package/cjs/core/InformationPanel/index.js +43 -13
  150. package/cjs/core/Input/Input.d.ts +1 -6
  151. package/cjs/core/Input/Input.js +16 -40
  152. package/cjs/core/Input/index.js +9 -4
  153. package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
  154. package/cjs/core/InputGroup/InputGroup.js +46 -41
  155. package/cjs/core/InputGroup/index.js +9 -4
  156. package/cjs/core/Label/Label.d.ts +1 -1
  157. package/cjs/core/Label/Label.js +30 -36
  158. package/cjs/core/Label/index.js +9 -4
  159. package/cjs/core/LabeledInput/LabeledInput.d.ts +1 -1
  160. package/cjs/core/LabeledInput/LabeledInput.js +49 -33
  161. package/cjs/core/LabeledInput/index.js +9 -4
  162. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -1
  163. package/cjs/core/LabeledSelect/LabeledSelect.js +56 -44
  164. package/cjs/core/LabeledSelect/index.js +9 -4
  165. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +2 -3
  166. package/cjs/core/LabeledTextarea/LabeledTextarea.js +49 -33
  167. package/cjs/core/LabeledTextarea/index.js +9 -4
  168. package/cjs/core/List/List.js +3 -3
  169. package/cjs/core/List/ListItem.d.ts +4 -4
  170. package/cjs/core/List/ListItem.js +55 -60
  171. package/cjs/core/List/index.js +16 -6
  172. package/cjs/core/Menu/Menu.d.ts +1 -1
  173. package/cjs/core/Menu/Menu.js +66 -78
  174. package/cjs/core/Menu/MenuDivider.js +4 -4
  175. package/cjs/core/Menu/MenuExtraContent.js +4 -4
  176. package/cjs/core/Menu/MenuItem.d.ts +1 -1
  177. package/cjs/core/Menu/MenuItem.js +143 -86
  178. package/cjs/core/Menu/MenuItemSkeleton.d.ts +1 -1
  179. package/cjs/core/Menu/MenuItemSkeleton.js +54 -43
  180. package/cjs/core/Menu/index.js +43 -13
  181. package/cjs/core/Modal/Modal.d.ts +1 -1
  182. package/cjs/core/Modal/Modal.js +38 -33
  183. package/cjs/core/Modal/ModalButtonBar.js +7 -4
  184. package/cjs/core/Modal/ModalContent.js +3 -3
  185. package/cjs/core/Modal/index.js +23 -8
  186. package/cjs/core/NonIdealState/ErrorPage.d.ts +6 -7
  187. package/cjs/core/NonIdealState/ErrorPage.js +187 -146
  188. package/cjs/core/NonIdealState/NonIdealState.d.ts +17 -1
  189. package/cjs/core/NonIdealState/NonIdealState.js +77 -37
  190. package/cjs/core/NonIdealState/index.js +16 -6
  191. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  192. package/cjs/core/NotificationMarker/NotificationMarker.js +29 -33
  193. package/cjs/core/NotificationMarker/index.js +9 -4
  194. package/cjs/core/Overlay/Overlay.d.ts +57 -0
  195. package/cjs/core/Overlay/Overlay.js +96 -0
  196. package/cjs/core/Overlay/index.d.ts +1 -0
  197. package/{esm/core/ProgressIndicators/ProgressRadial → cjs/core/Overlay}/index.js +10 -2
  198. package/cjs/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +6 -6
  199. package/cjs/core/ProgressIndicators/ProgressLinear.js +64 -0
  200. package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  201. package/cjs/core/ProgressIndicators/ProgressRadial.js +74 -0
  202. package/cjs/core/ProgressIndicators/index.d.ts +2 -2
  203. package/cjs/core/ProgressIndicators/index.js +16 -6
  204. package/cjs/core/Radio/Radio.d.ts +1 -6
  205. package/cjs/core/Radio/Radio.js +41 -42
  206. package/cjs/core/Radio/index.js +9 -4
  207. package/cjs/core/RadioTiles/RadioTile.d.ts +1 -6
  208. package/cjs/core/RadioTiles/RadioTile.js +46 -45
  209. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
  210. package/cjs/core/RadioTiles/RadioTileGroup.js +16 -31
  211. package/cjs/core/RadioTiles/index.js +16 -6
  212. package/cjs/core/SearchBox/SearchBox.d.ts +3 -3
  213. package/cjs/core/SearchBox/SearchBox.js +220 -128
  214. package/cjs/core/SearchBox/index.js +9 -4
  215. package/cjs/core/Select/Select.d.ts +5 -10
  216. package/cjs/core/Select/Select.js +291 -181
  217. package/cjs/core/Select/SelectTag.d.ts +1 -1
  218. package/cjs/core/Select/SelectTag.js +21 -34
  219. package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
  220. package/cjs/core/Select/SelectTagContainer.js +30 -39
  221. package/cjs/core/Select/index.js +9 -4
  222. package/cjs/core/SideNavigation/SideNavigation.d.ts +1 -1
  223. package/cjs/core/SideNavigation/SideNavigation.js +105 -54
  224. package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
  225. package/cjs/core/SideNavigation/SidenavButton.js +30 -33
  226. package/cjs/core/SideNavigation/SidenavSubmenu.js +23 -34
  227. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  228. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -35
  229. package/cjs/core/SideNavigation/index.js +35 -11
  230. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  231. package/cjs/core/SkipToContentLink/SkipToContentLink.js +20 -33
  232. package/cjs/core/SkipToContentLink/index.js +9 -4
  233. package/cjs/core/Slider/Slider.d.ts +5 -9
  234. package/cjs/core/Slider/Slider.js +343 -227
  235. package/cjs/core/Slider/Thumb.d.ts +4 -4
  236. package/cjs/core/Slider/Thumb.js +111 -84
  237. package/cjs/core/Slider/Track.d.ts +3 -3
  238. package/cjs/core/Slider/Track.js +72 -76
  239. package/cjs/core/Slider/index.js +9 -4
  240. package/cjs/core/StatusMessage/StatusMessage.d.ts +2 -2
  241. package/cjs/core/StatusMessage/StatusMessage.js +19 -32
  242. package/cjs/core/StatusMessage/index.js +9 -4
  243. package/cjs/core/Stepper/Stepper.d.ts +3 -3
  244. package/cjs/core/Stepper/Stepper.js +51 -36
  245. package/cjs/core/Stepper/StepperStep.d.ts +1 -1
  246. package/cjs/core/Stepper/StepperStep.js +84 -63
  247. package/cjs/core/Stepper/WorkflowDiagram.d.ts +1 -1
  248. package/cjs/core/Stepper/WorkflowDiagram.js +25 -33
  249. package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +3 -3
  250. package/cjs/core/Stepper/WorkflowDiagramStep.js +32 -36
  251. package/cjs/core/Stepper/index.d.ts +0 -4
  252. package/cjs/core/Stepper/index.js +17 -10
  253. package/cjs/core/Surface/Surface.d.ts +2 -2
  254. package/cjs/core/Surface/Surface.js +78 -70
  255. package/cjs/core/Surface/index.js +9 -4
  256. package/cjs/core/Table/SubRowExpander.d.ts +2 -2
  257. package/cjs/core/Table/SubRowExpander.js +35 -37
  258. package/cjs/core/Table/Table.d.ts +2 -2
  259. package/cjs/core/Table/Table.js +725 -448
  260. package/cjs/core/Table/TableCell.d.ts +2 -2
  261. package/cjs/core/Table/TableCell.js +113 -88
  262. package/cjs/core/Table/TablePaginator.d.ts +3 -3
  263. package/cjs/core/Table/TablePaginator.js +312 -159
  264. package/cjs/core/Table/TableRowMemoized.d.ts +4 -4
  265. package/cjs/core/Table/TableRowMemoized.js +137 -89
  266. package/cjs/core/Table/actionHandlers/expandHandler.js +12 -12
  267. package/cjs/core/Table/actionHandlers/filterHandler.js +25 -17
  268. package/cjs/core/Table/actionHandlers/index.js +56 -14
  269. package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -13
  270. package/cjs/core/Table/actionHandlers/selectHandler.js +123 -96
  271. package/cjs/core/Table/cells/DefaultCell.d.ts +2 -2
  272. package/cjs/core/Table/cells/DefaultCell.js +48 -38
  273. package/cjs/core/Table/cells/EditableCell.d.ts +2 -2
  274. package/cjs/core/Table/cells/EditableCell.js +75 -68
  275. package/cjs/core/Table/cells/index.js +16 -6
  276. package/cjs/core/Table/columns/actionColumn.d.ts +3 -3
  277. package/cjs/core/Table/columns/actionColumn.js +106 -96
  278. package/cjs/core/Table/columns/expanderColumn.d.ts +2 -2
  279. package/cjs/core/Table/columns/expanderColumn.js +45 -54
  280. package/cjs/core/Table/columns/index.js +41 -11
  281. package/cjs/core/Table/columns/selectionColumn.d.ts +4 -4
  282. package/cjs/core/Table/columns/selectionColumn.js +57 -51
  283. package/cjs/core/Table/filters/BaseFilter.d.ts +2 -2
  284. package/cjs/core/Table/filters/BaseFilter.js +24 -38
  285. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -2
  286. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +92 -72
  287. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +4 -4
  288. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +118 -79
  289. package/cjs/core/Table/filters/FilterButtonBar.d.ts +3 -3
  290. package/cjs/core/Table/filters/FilterButtonBar.js +39 -41
  291. package/cjs/core/Table/filters/FilterToggle.d.ts +3 -3
  292. package/cjs/core/Table/filters/FilterToggle.js +59 -51
  293. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  294. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +58 -52
  295. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  296. package/cjs/core/Table/filters/TextFilter/TextFilter.js +40 -44
  297. package/cjs/core/Table/filters/customFilterFunctions.js +16 -14
  298. package/cjs/core/Table/filters/defaultFilterFunctions.js +86 -81
  299. package/cjs/core/Table/filters/index.js +35 -11
  300. package/cjs/core/Table/filters/tableFilters.d.ts +5 -5
  301. package/cjs/core/Table/filters/tableFilters.js +44 -54
  302. package/cjs/core/Table/filters/types.d.ts +1 -1
  303. package/cjs/core/Table/filters/types.js +2 -2
  304. package/cjs/core/Table/hooks/index.js +67 -19
  305. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +101 -88
  306. package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
  307. package/cjs/core/Table/hooks/useExpanderCell.js +33 -47
  308. package/cjs/core/Table/hooks/useResizeColumns.js +362 -290
  309. package/cjs/core/Table/hooks/useScrollToRow.d.ts +2 -2
  310. package/cjs/core/Table/hooks/useScrollToRow.js +46 -60
  311. package/cjs/core/Table/hooks/useSelectionCell.js +17 -10
  312. package/cjs/core/Table/hooks/useStickyColumns.js +64 -62
  313. package/cjs/core/Table/hooks/useSubRowFiltering.js +95 -110
  314. package/cjs/core/Table/hooks/useSubRowSelection.js +32 -53
  315. package/cjs/core/Table/index.js +78 -18
  316. package/cjs/core/Table/utils.js +42 -40
  317. package/cjs/core/Tabs/Tab.d.ts +2 -2
  318. package/cjs/core/Tabs/Tab.js +51 -38
  319. package/cjs/core/Tabs/Tabs.d.ts +6 -42
  320. package/cjs/core/Tabs/Tabs.js +408 -364
  321. package/cjs/core/Tabs/index.d.ts +1 -1
  322. package/cjs/core/Tabs/index.js +17 -9
  323. package/cjs/core/Tag/Tag.d.ts +1 -1
  324. package/cjs/core/Tag/Tag.js +42 -40
  325. package/cjs/core/Tag/TagContainer.d.ts +1 -1
  326. package/cjs/core/Tag/TagContainer.js +23 -36
  327. package/cjs/core/Tag/index.js +16 -6
  328. package/cjs/core/Textarea/Textarea.d.ts +2 -9
  329. package/cjs/core/Textarea/Textarea.js +17 -41
  330. package/cjs/core/Textarea/index.js +9 -4
  331. package/cjs/core/ThemeProvider/ThemeContext.js +4 -26
  332. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +4 -4
  333. package/cjs/core/ThemeProvider/ThemeProvider.js +77 -54
  334. package/cjs/core/ThemeProvider/index.js +9 -4
  335. package/cjs/core/Tile/Tile.d.ts +157 -99
  336. package/cjs/core/Tile/Tile.js +417 -143
  337. package/cjs/core/Tile/index.js +9 -4
  338. package/cjs/core/TimePicker/TimePicker.d.ts +3 -3
  339. package/cjs/core/TimePicker/TimePicker.js +458 -259
  340. package/cjs/core/TimePicker/index.js +9 -4
  341. package/cjs/core/Toast/Toast.d.ts +5 -5
  342. package/cjs/core/Toast/Toast.js +192 -132
  343. package/cjs/core/Toast/Toaster.d.ts +5 -5
  344. package/cjs/core/Toast/Toaster.js +103 -100
  345. package/cjs/core/Toast/index.js +9 -4
  346. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  347. package/cjs/core/ToggleSwitch/ToggleSwitch.js +66 -53
  348. package/cjs/core/ToggleSwitch/index.js +9 -4
  349. package/cjs/core/Tooltip/Tooltip.d.ts +67 -7
  350. package/cjs/core/Tooltip/Tooltip.js +152 -38
  351. package/cjs/core/Tooltip/index.js +9 -4
  352. package/cjs/core/TransferList/TransferList.d.ts +6 -6
  353. package/cjs/core/TransferList/TransferList.js +184 -103
  354. package/cjs/core/TransferList/index.js +9 -4
  355. package/cjs/core/Tree/Tree.d.ts +5 -5
  356. package/cjs/core/Tree/Tree.js +205 -157
  357. package/cjs/core/Tree/TreeContext.d.ts +1 -1
  358. package/cjs/core/Tree/TreeContext.js +9 -31
  359. package/cjs/core/Tree/TreeNode.d.ts +2 -2
  360. package/cjs/core/Tree/TreeNode.js +207 -129
  361. package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
  362. package/cjs/core/Tree/TreeNodeExpander.js +26 -37
  363. package/cjs/core/Tree/index.js +23 -8
  364. package/cjs/core/Typography/Anchor/Anchor.js +3 -3
  365. package/cjs/core/Typography/Anchor/index.js +9 -4
  366. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +1 -1
  367. package/cjs/core/Typography/Blockquote/Blockquote.js +18 -35
  368. package/cjs/core/Typography/Blockquote/index.js +9 -4
  369. package/cjs/core/Typography/Code/Code.js +3 -3
  370. package/cjs/core/Typography/Code/index.js +9 -4
  371. package/cjs/core/Typography/Kbd/Kbd.d.ts +1 -1
  372. package/cjs/core/Typography/Kbd/Kbd.js +30 -46
  373. package/cjs/core/Typography/Kbd/index.js +15 -5
  374. package/cjs/core/Typography/Text/Text.d.ts +1 -1
  375. package/cjs/core/Typography/Text/Text.js +26 -38
  376. package/cjs/core/Typography/Text/index.js +9 -4
  377. package/cjs/core/Typography/index.js +50 -14
  378. package/cjs/core/index.d.ts +6 -5
  379. package/cjs/core/index.js +889 -184
  380. package/cjs/core/utils/color/ColorValue.d.ts +4 -4
  381. package/cjs/core/utils/color/ColorValue.js +535 -453
  382. package/cjs/core/utils/color/index.js +4 -17
  383. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  384. package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +20 -35
  385. package/cjs/core/utils/components/Box.js +3 -3
  386. package/cjs/core/utils/components/Divider.d.ts +1 -1
  387. package/cjs/core/utils/components/Divider.js +14 -33
  388. package/cjs/core/utils/components/Flex.d.ts +4 -4
  389. package/cjs/core/utils/components/Flex.js +93 -102
  390. package/cjs/core/utils/components/FocusTrap.d.ts +3 -3
  391. package/cjs/core/utils/components/FocusTrap.js +47 -60
  392. package/cjs/core/utils/components/Icon.d.ts +1 -1
  393. package/cjs/core/utils/components/Icon.js +25 -43
  394. package/cjs/core/utils/components/InputContainer.d.ts +2 -2
  395. package/cjs/core/utils/components/InputContainer.js +75 -46
  396. package/cjs/core/utils/components/InputFlexContainer.d.ts +1 -1
  397. package/cjs/core/utils/components/InputFlexContainer.js +22 -10
  398. package/cjs/core/utils/components/LinkAction.js +3 -3
  399. package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  400. package/cjs/core/utils/components/MiddleTextTruncation.js +32 -44
  401. package/cjs/core/utils/components/Popover.d.ts +3 -3
  402. package/cjs/core/utils/components/Popover.js +111 -135
  403. package/cjs/core/utils/components/Resizer.d.ts +2 -2
  404. package/cjs/core/utils/components/Resizer.js +246 -211
  405. package/cjs/core/utils/components/VirtualScroll.d.ts +2 -2
  406. package/cjs/core/utils/components/VirtualScroll.js +304 -245
  407. package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -1
  408. package/cjs/core/utils/components/VisuallyHidden.js +14 -33
  409. package/cjs/core/utils/components/WithCSSTransition.d.ts +2 -2
  410. package/cjs/core/utils/components/WithCSSTransition.js +43 -48
  411. package/cjs/core/utils/components/index.js +18 -31
  412. package/cjs/core/utils/functions/colors.js +36 -33
  413. package/cjs/core/utils/functions/date.js +10 -10
  414. package/cjs/core/utils/functions/dom.js +24 -17
  415. package/cjs/core/utils/functions/focusable.js +26 -17
  416. package/cjs/core/utils/functions/import.d.ts +6 -0
  417. package/cjs/core/utils/functions/import.js +61 -0
  418. package/cjs/core/utils/functions/index.d.ts +1 -0
  419. package/cjs/core/utils/functions/index.js +11 -23
  420. package/cjs/core/utils/functions/numbers.js +9 -9
  421. package/cjs/core/utils/functions/polymorphic.d.ts +5 -3
  422. package/cjs/core/utils/functions/polymorphic.js +43 -55
  423. package/cjs/core/utils/functions/supports.js +5 -4
  424. package/cjs/core/utils/hooks/index.js +16 -29
  425. package/cjs/core/utils/hooks/useContainerWidth.js +26 -41
  426. package/cjs/core/utils/hooks/useDragAndDrop.js +110 -109
  427. package/cjs/core/utils/hooks/useEventListener.js +22 -44
  428. package/cjs/core/utils/hooks/useGlobals.js +34 -51
  429. package/cjs/core/utils/hooks/useId.js +9 -30
  430. package/cjs/core/utils/hooks/useIntersection.js +30 -46
  431. package/cjs/core/utils/hooks/useIsClient.js +9 -31
  432. package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +6 -27
  433. package/cjs/core/utils/hooks/useLatestRef.js +9 -31
  434. package/cjs/core/utils/hooks/useMediaQuery.js +31 -53
  435. package/cjs/core/utils/hooks/useMergedRefs.js +15 -38
  436. package/cjs/core/utils/hooks/useOverflow.js +69 -78
  437. package/cjs/core/utils/hooks/useResizeObserver.js +22 -39
  438. package/cjs/core/utils/hooks/useSafeContext.js +9 -31
  439. package/cjs/core/utils/icons/StatusIconMap.d.ts +5 -5
  440. package/cjs/core/utils/icons/StatusIconMap.js +28 -34
  441. package/cjs/core/utils/icons/Svg.js +3 -3
  442. package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
  443. package/cjs/core/utils/icons/SvgCalendar.js +12 -29
  444. package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  445. package/cjs/core/utils/icons/SvgCaretDownSmall.js +12 -29
  446. package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  447. package/cjs/core/utils/icons/SvgCaretRightSmall.js +12 -29
  448. package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  449. package/cjs/core/utils/icons/SvgCaretUpSmall.js +12 -29
  450. package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
  451. package/cjs/core/utils/icons/SvgCheckmark.js +10 -29
  452. package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  453. package/cjs/core/utils/icons/SvgCheckmarkSmall.js +12 -29
  454. package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  455. package/cjs/core/utils/icons/SvgChevronLeft.js +12 -29
  456. package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  457. package/cjs/core/utils/icons/SvgChevronLeftDouble.js +12 -29
  458. package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
  459. package/cjs/core/utils/icons/SvgChevronRight.js +12 -29
  460. package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  461. package/cjs/core/utils/icons/SvgChevronRightDouble.js +12 -29
  462. package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
  463. package/cjs/core/utils/icons/SvgClose.js +12 -29
  464. package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  465. package/cjs/core/utils/icons/SvgCloseSmall.js +12 -29
  466. package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
  467. package/cjs/core/utils/icons/SvgColumnManager.js +12 -29
  468. package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
  469. package/cjs/core/utils/icons/SvgDocument.js +10 -29
  470. package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
  471. package/cjs/core/utils/icons/SvgFilter.js +10 -29
  472. package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  473. package/cjs/core/utils/icons/SvgFilterHollow.js +12 -29
  474. package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  475. package/cjs/core/utils/icons/SvgImportantSmall.js +12 -29
  476. package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  477. package/cjs/core/utils/icons/SvgInfoCircular.js +12 -29
  478. package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
  479. package/cjs/core/utils/icons/SvgMore.js +12 -29
  480. package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  481. package/cjs/core/utils/icons/SvgMoreVertical.js +12 -29
  482. package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
  483. package/cjs/core/utils/icons/SvgNew.js +12 -29
  484. package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
  485. package/cjs/core/utils/icons/SvgSearch.js +12 -29
  486. package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  487. package/cjs/core/utils/icons/SvgSmileyHappy.js +12 -29
  488. package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
  489. package/cjs/core/utils/icons/SvgSortDown.js +12 -29
  490. package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
  491. package/cjs/core/utils/icons/SvgSortUp.js +12 -29
  492. package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
  493. package/cjs/core/utils/icons/SvgStatusError.js +12 -29
  494. package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  495. package/cjs/core/utils/icons/SvgStatusSuccess.js +12 -29
  496. package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  497. package/cjs/core/utils/icons/SvgStatusWarning.js +12 -29
  498. package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
  499. package/cjs/core/utils/icons/SvgSwap.js +12 -29
  500. package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
  501. package/cjs/core/utils/icons/SvgUpload.js +12 -29
  502. package/cjs/core/utils/icons/index.js +34 -47
  503. package/cjs/core/utils/index.js +10 -23
  504. package/cjs/core/utils/props.d.ts +2 -2
  505. package/cjs/core/utils/props.js +2 -2
  506. package/cjs/core/utils/types.d.ts +1 -1
  507. package/cjs/core/utils/types.js +2 -2
  508. package/cjs/index.js +5 -18
  509. package/cjs/package.json +1 -0
  510. package/cjs/styles.js +453 -445
  511. package/cjs/types/react-table-config.js +2 -2
  512. package/esm/core/Alert/Alert.d.ts +5 -5
  513. package/esm/core/Alert/Alert.js +73 -28
  514. package/esm/core/Avatar/Avatar.d.ts +3 -7
  515. package/esm/core/Avatar/Avatar.js +48 -17
  516. package/esm/core/Avatar/index.d.ts +1 -1
  517. package/esm/core/Avatar/index.js +1 -1
  518. package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -5
  519. package/esm/core/AvatarGroup/AvatarGroup.js +63 -26
  520. package/esm/core/AvatarGroup/index.d.ts +1 -1
  521. package/esm/core/AvatarGroup/index.js +1 -1
  522. package/esm/core/Backdrop/Backdrop.d.ts +1 -1
  523. package/esm/core/Backdrop/Backdrop.js +10 -2
  524. package/esm/core/Badge/Badge.d.ts +1 -1
  525. package/esm/core/Badge/Badge.js +31 -16
  526. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
  527. package/esm/core/Breadcrumbs/Breadcrumbs.js +128 -31
  528. package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
  529. package/esm/core/ButtonGroup/ButtonGroup.js +59 -22
  530. package/esm/core/Buttons/Button/Button.d.ts +1 -1
  531. package/esm/core/Buttons/Button/Button.js +37 -5
  532. package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +1 -1
  533. package/esm/core/Buttons/DropdownButton/DropdownButton.js +54 -19
  534. package/esm/core/Buttons/IconButton/IconButton.d.ts +1 -1
  535. package/esm/core/Buttons/IconButton/IconButton.js +51 -7
  536. package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
  537. package/esm/core/Buttons/IdeasButton/IdeasButton.js +12 -2
  538. package/esm/core/Buttons/SplitButton/SplitButton.d.ts +1 -1
  539. package/esm/core/Buttons/SplitButton/SplitButton.js +59 -15
  540. package/esm/core/Carousel/Carousel.d.ts +3 -3
  541. package/esm/core/Carousel/Carousel.js +97 -70
  542. package/esm/core/Carousel/CarouselDot.d.ts +1 -1
  543. package/esm/core/Carousel/CarouselDot.js +19 -6
  544. package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
  545. package/esm/core/Carousel/CarouselDotsList.js +123 -63
  546. package/esm/core/Carousel/CarouselNavigation.d.ts +2 -2
  547. package/esm/core/Carousel/CarouselNavigation.js +85 -32
  548. package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
  549. package/esm/core/Carousel/CarouselSlide.js +29 -14
  550. package/esm/core/Carousel/CarouselSlider.js +65 -40
  551. package/esm/core/Checkbox/Checkbox.d.ts +9 -5
  552. package/esm/core/Checkbox/Checkbox.js +78 -28
  553. package/esm/core/ColorPicker/ColorBuilder.js +277 -166
  554. package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
  555. package/esm/core/ColorPicker/ColorInputPanel.js +437 -248
  556. package/esm/core/ColorPicker/ColorPalette.d.ts +1 -1
  557. package/esm/core/ColorPicker/ColorPalette.js +115 -80
  558. package/esm/core/ColorPicker/ColorPicker.d.ts +1 -6
  559. package/esm/core/ColorPicker/ColorPicker.js +75 -54
  560. package/esm/core/ColorPicker/ColorPickerContext.js +7 -5
  561. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  562. package/esm/core/ColorPicker/ColorSwatch.js +19 -7
  563. package/esm/core/ComboBox/ComboBox.d.ts +6 -6
  564. package/esm/core/ComboBox/ComboBox.js +385 -256
  565. package/esm/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
  566. package/esm/core/ComboBox/ComboBoxDropdown.js +32 -15
  567. package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
  568. package/esm/core/ComboBox/ComboBoxEndIcon.js +39 -12
  569. package/esm/core/ComboBox/ComboBoxInput.d.ts +2 -2
  570. package/esm/core/ComboBox/ComboBoxInput.js +197 -124
  571. package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
  572. package/esm/core/ComboBox/ComboBoxInputContainer.js +20 -5
  573. package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
  574. package/esm/core/ComboBox/ComboBoxMenu.js +94 -38
  575. package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +1 -1
  576. package/esm/core/ComboBox/ComboBoxMenuItem.js +59 -13
  577. package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
  578. package/esm/core/ComboBox/ComboBoxMultipleContainer.js +6 -2
  579. package/esm/core/ComboBox/helpers.d.ts +2 -2
  580. package/esm/core/ComboBox/helpers.js +38 -38
  581. package/esm/core/DatePicker/DatePicker.d.ts +2 -2
  582. package/esm/core/DatePicker/DatePicker.js +519 -325
  583. package/esm/core/Dialog/Dialog.d.ts +1 -1
  584. package/esm/core/Dialog/Dialog.js +65 -31
  585. package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
  586. package/esm/core/Dialog/DialogBackdrop.js +39 -19
  587. package/esm/core/Dialog/DialogContext.d.ts +1 -1
  588. package/esm/core/Dialog/DialogContext.js +1 -1
  589. package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
  590. package/esm/core/Dialog/DialogDragContext.js +4 -4
  591. package/esm/core/Dialog/DialogMain.d.ts +1 -1
  592. package/esm/core/Dialog/DialogMain.js +178 -108
  593. package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
  594. package/esm/core/Dialog/DialogTitleBar.js +45 -10
  595. package/esm/core/DropdownMenu/DropdownMenu.d.ts +4 -4
  596. package/esm/core/DropdownMenu/DropdownMenu.js +66 -22
  597. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +77 -21
  598. package/esm/core/ExpandableBlock/ExpandableBlock.js +225 -46
  599. package/esm/core/Fieldset/Fieldset.d.ts +1 -1
  600. package/esm/core/Fieldset/Fieldset.js +19 -8
  601. package/esm/core/FileUpload/FileEmptyCard.js +19 -8
  602. package/esm/core/FileUpload/FileUpload.d.ts +1 -1
  603. package/esm/core/FileUpload/FileUpload.js +49 -36
  604. package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
  605. package/esm/core/FileUpload/FileUploadCard.js +154 -76
  606. package/esm/core/FileUpload/FileUploadTemplate.d.ts +1 -1
  607. package/esm/core/FileUpload/FileUploadTemplate.js +37 -9
  608. package/esm/core/Footer/Footer.d.ts +4 -4
  609. package/esm/core/Footer/Footer.js +86 -55
  610. package/esm/core/Footer/FooterSeparator.js +1 -1
  611. package/esm/core/Header/Header.d.ts +3 -22
  612. package/esm/core/Header/Header.js +55 -15
  613. package/esm/core/Header/HeaderBasicButton.js +28 -7
  614. package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
  615. package/esm/core/Header/HeaderBreadcrumbs.js +32 -8
  616. package/esm/core/Header/HeaderButton.d.ts +1 -1
  617. package/esm/core/Header/HeaderButton.js +60 -13
  618. package/esm/core/Header/HeaderDropdownButton.js +43 -13
  619. package/esm/core/Header/HeaderLogo.d.ts +1 -1
  620. package/esm/core/Header/HeaderLogo.js +36 -5
  621. package/esm/core/Header/HeaderSplitButton.js +57 -13
  622. package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
  623. package/esm/core/InformationPanel/InformationPanel.js +71 -36
  624. package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
  625. package/esm/core/InformationPanel/InformationPanelContent.js +17 -3
  626. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
  627. package/esm/core/InformationPanel/InformationPanelHeader.js +32 -8
  628. package/esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
  629. package/esm/core/Input/Input.d.ts +1 -6
  630. package/esm/core/Input/Input.js +10 -9
  631. package/esm/core/InputGroup/InputGroup.d.ts +1 -1
  632. package/esm/core/InputGroup/InputGroup.js +37 -14
  633. package/esm/core/Label/Label.d.ts +1 -1
  634. package/esm/core/Label/Label.js +24 -5
  635. package/esm/core/LabeledInput/LabeledInput.d.ts +1 -1
  636. package/esm/core/LabeledInput/LabeledInput.js +43 -5
  637. package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -1
  638. package/esm/core/LabeledSelect/LabeledSelect.js +50 -16
  639. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +2 -3
  640. package/esm/core/LabeledTextarea/LabeledTextarea.js +43 -5
  641. package/esm/core/List/ListItem.d.ts +4 -4
  642. package/esm/core/List/ListItem.js +46 -28
  643. package/esm/core/Menu/Menu.d.ts +1 -1
  644. package/esm/core/Menu/Menu.js +58 -47
  645. package/esm/core/Menu/MenuDivider.js +1 -1
  646. package/esm/core/Menu/MenuExtraContent.js +1 -1
  647. package/esm/core/Menu/MenuItem.d.ts +1 -1
  648. package/esm/core/Menu/MenuItem.js +131 -57
  649. package/esm/core/Menu/MenuItemSkeleton.d.ts +1 -1
  650. package/esm/core/Menu/MenuItemSkeleton.js +44 -12
  651. package/esm/core/Modal/Modal.d.ts +1 -1
  652. package/esm/core/Modal/Modal.js +33 -6
  653. package/esm/core/NonIdealState/ErrorPage.d.ts +6 -7
  654. package/esm/core/NonIdealState/ErrorPage.js +177 -117
  655. package/esm/core/NonIdealState/NonIdealState.d.ts +17 -1
  656. package/esm/core/NonIdealState/NonIdealState.js +65 -6
  657. package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
  658. package/esm/core/NotificationMarker/NotificationMarker.js +20 -2
  659. package/esm/core/Overlay/Overlay.d.ts +57 -0
  660. package/esm/core/Overlay/Overlay.js +88 -0
  661. package/esm/core/Overlay/index.d.ts +1 -0
  662. package/esm/core/{ProgressIndicators/ProgressLinear → Overlay}/index.js +1 -2
  663. package/esm/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +6 -6
  664. package/esm/core/ProgressIndicators/{ProgressLinear/ProgressLinear.js → ProgressLinear.js} +33 -12
  665. package/esm/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
  666. package/esm/core/ProgressIndicators/ProgressRadial.js +64 -0
  667. package/esm/core/ProgressIndicators/index.d.ts +2 -2
  668. package/esm/core/ProgressIndicators/index.js +2 -2
  669. package/esm/core/Radio/Radio.d.ts +1 -6
  670. package/esm/core/Radio/Radio.js +32 -11
  671. package/esm/core/RadioTiles/RadioTile.d.ts +1 -6
  672. package/esm/core/RadioTiles/RadioTile.js +32 -14
  673. package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
  674. package/esm/core/RadioTiles/RadioTileGroup.js +10 -3
  675. package/esm/core/SearchBox/SearchBox.d.ts +3 -3
  676. package/esm/core/SearchBox/SearchBox.js +215 -97
  677. package/esm/core/Select/Select.d.ts +5 -10
  678. package/esm/core/Select/Select.js +283 -148
  679. package/esm/core/Select/SelectTag.d.ts +1 -1
  680. package/esm/core/Select/SelectTag.js +15 -3
  681. package/esm/core/Select/SelectTagContainer.d.ts +1 -1
  682. package/esm/core/Select/SelectTagContainer.js +20 -7
  683. package/esm/core/SideNavigation/SideNavigation.d.ts +1 -1
  684. package/esm/core/SideNavigation/SideNavigation.js +94 -21
  685. package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
  686. package/esm/core/SideNavigation/SidenavButton.js +24 -2
  687. package/esm/core/SideNavigation/SidenavSubmenu.js +14 -3
  688. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
  689. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +20 -4
  690. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
  691. package/esm/core/SkipToContentLink/SkipToContentLink.js +11 -2
  692. package/esm/core/Slider/Slider.d.ts +5 -9
  693. package/esm/core/Slider/Slider.js +319 -194
  694. package/esm/core/Slider/Thumb.d.ts +4 -4
  695. package/esm/core/Slider/Thumb.js +100 -52
  696. package/esm/core/Slider/Track.d.ts +3 -3
  697. package/esm/core/Slider/Track.js +67 -49
  698. package/esm/core/StatusMessage/StatusMessage.d.ts +2 -2
  699. package/esm/core/StatusMessage/StatusMessage.js +18 -5
  700. package/esm/core/Stepper/Stepper.d.ts +3 -3
  701. package/esm/core/Stepper/Stepper.js +45 -8
  702. package/esm/core/Stepper/StepperStep.d.ts +1 -1
  703. package/esm/core/Stepper/StepperStep.js +73 -31
  704. package/esm/core/Stepper/WorkflowDiagram.d.ts +1 -1
  705. package/esm/core/Stepper/WorkflowDiagram.js +19 -5
  706. package/esm/core/Stepper/WorkflowDiagramStep.d.ts +3 -3
  707. package/esm/core/Stepper/WorkflowDiagramStep.js +18 -4
  708. package/esm/core/Stepper/index.d.ts +0 -4
  709. package/esm/core/Stepper/index.js +0 -2
  710. package/esm/core/Surface/Surface.d.ts +2 -2
  711. package/esm/core/Surface/Surface.js +68 -39
  712. package/esm/core/Table/SubRowExpander.d.ts +2 -2
  713. package/esm/core/Table/SubRowExpander.js +29 -9
  714. package/esm/core/Table/Table.d.ts +2 -2
  715. package/esm/core/Table/Table.js +726 -411
  716. package/esm/core/Table/TableCell.d.ts +2 -2
  717. package/esm/core/Table/TableCell.js +87 -53
  718. package/esm/core/Table/TablePaginator.d.ts +3 -3
  719. package/esm/core/Table/TablePaginator.js +307 -125
  720. package/esm/core/Table/TableRowMemoized.d.ts +4 -4
  721. package/esm/core/Table/TableRowMemoized.js +129 -58
  722. package/esm/core/Table/actionHandlers/expandHandler.js +10 -10
  723. package/esm/core/Table/actionHandlers/filterHandler.js +23 -15
  724. package/esm/core/Table/actionHandlers/index.js +5 -1
  725. package/esm/core/Table/actionHandlers/resizeHandler.js +11 -11
  726. package/esm/core/Table/actionHandlers/selectHandler.js +117 -93
  727. package/esm/core/Table/cells/DefaultCell.d.ts +2 -2
  728. package/esm/core/Table/cells/DefaultCell.js +42 -7
  729. package/esm/core/Table/cells/EditableCell.d.ts +2 -2
  730. package/esm/core/Table/cells/EditableCell.js +70 -41
  731. package/esm/core/Table/columns/actionColumn.d.ts +3 -3
  732. package/esm/core/Table/columns/actionColumn.js +90 -58
  733. package/esm/core/Table/columns/expanderColumn.d.ts +2 -2
  734. package/esm/core/Table/columns/expanderColumn.js +38 -25
  735. package/esm/core/Table/columns/selectionColumn.d.ts +4 -4
  736. package/esm/core/Table/columns/selectionColumn.js +51 -23
  737. package/esm/core/Table/filters/BaseFilter.d.ts +2 -2
  738. package/esm/core/Table/filters/BaseFilter.js +15 -7
  739. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -2
  740. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +84 -42
  741. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +4 -4
  742. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +108 -46
  743. package/esm/core/Table/filters/FilterButtonBar.d.ts +3 -3
  744. package/esm/core/Table/filters/FilterButtonBar.js +28 -9
  745. package/esm/core/Table/filters/FilterToggle.d.ts +3 -3
  746. package/esm/core/Table/filters/FilterToggle.js +55 -20
  747. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
  748. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +50 -22
  749. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
  750. package/esm/core/Table/filters/TextFilter/TextFilter.js +32 -14
  751. package/esm/core/Table/filters/customFilterFunctions.js +14 -12
  752. package/esm/core/Table/filters/defaultFilterFunctions.js +84 -79
  753. package/esm/core/Table/filters/tableFilters.d.ts +5 -5
  754. package/esm/core/Table/filters/tableFilters.js +34 -25
  755. package/esm/core/Table/filters/types.d.ts +1 -1
  756. package/esm/core/Table/hooks/useColumnDragAndDrop.js +88 -81
  757. package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
  758. package/esm/core/Table/hooks/useExpanderCell.js +26 -20
  759. package/esm/core/Table/hooks/useResizeColumns.js +353 -287
  760. package/esm/core/Table/hooks/useScrollToRow.d.ts +2 -2
  761. package/esm/core/Table/hooks/useScrollToRow.js +42 -34
  762. package/esm/core/Table/hooks/useSelectionCell.js +10 -6
  763. package/esm/core/Table/hooks/useStickyColumns.js +61 -59
  764. package/esm/core/Table/hooks/useSubRowFiltering.js +90 -83
  765. package/esm/core/Table/hooks/useSubRowSelection.js +28 -27
  766. package/esm/core/Table/index.js +5 -1
  767. package/esm/core/Table/utils.js +40 -38
  768. package/esm/core/Tabs/Tab.d.ts +2 -2
  769. package/esm/core/Tabs/Tab.js +41 -7
  770. package/esm/core/Tabs/Tabs.d.ts +6 -42
  771. package/esm/core/Tabs/Tabs.js +391 -329
  772. package/esm/core/Tabs/index.d.ts +1 -1
  773. package/esm/core/Tabs/index.js +1 -1
  774. package/esm/core/Tag/Tag.d.ts +1 -1
  775. package/esm/core/Tag/Tag.js +35 -8
  776. package/esm/core/Tag/TagContainer.d.ts +1 -1
  777. package/esm/core/Tag/TagContainer.js +17 -5
  778. package/esm/core/Textarea/Textarea.d.ts +2 -9
  779. package/esm/core/Textarea/Textarea.js +11 -10
  780. package/esm/core/ThemeProvider/ThemeProvider.d.ts +4 -4
  781. package/esm/core/ThemeProvider/ThemeProvider.js +65 -21
  782. package/esm/core/Tile/Tile.d.ts +157 -99
  783. package/esm/core/Tile/Tile.js +397 -109
  784. package/esm/core/TimePicker/TimePicker.d.ts +3 -3
  785. package/esm/core/TimePicker/TimePicker.js +448 -228
  786. package/esm/core/Toast/Toast.d.ts +5 -5
  787. package/esm/core/Toast/Toast.js +180 -99
  788. package/esm/core/Toast/Toaster.d.ts +5 -5
  789. package/esm/core/Toast/Toaster.js +83 -67
  790. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
  791. package/esm/core/ToggleSwitch/ToggleSwitch.js +60 -22
  792. package/esm/core/Tooltip/Tooltip.d.ts +67 -7
  793. package/esm/core/Tooltip/Tooltip.js +161 -7
  794. package/esm/core/TransferList/TransferList.d.ts +6 -6
  795. package/esm/core/TransferList/TransferList.js +163 -93
  796. package/esm/core/Tree/Tree.d.ts +5 -5
  797. package/esm/core/Tree/Tree.js +197 -125
  798. package/esm/core/Tree/TreeContext.d.ts +1 -1
  799. package/esm/core/Tree/TreeContext.js +5 -5
  800. package/esm/core/Tree/TreeNode.d.ts +2 -2
  801. package/esm/core/Tree/TreeNode.js +195 -96
  802. package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
  803. package/esm/core/Tree/TreeNodeExpander.js +16 -5
  804. package/esm/core/Typography/Blockquote/Blockquote.d.ts +1 -1
  805. package/esm/core/Typography/Blockquote/Blockquote.js +12 -4
  806. package/esm/core/Typography/Kbd/Kbd.d.ts +1 -1
  807. package/esm/core/Typography/Kbd/Kbd.js +24 -15
  808. package/esm/core/Typography/Text/Text.d.ts +1 -1
  809. package/esm/core/Typography/Text/Text.js +20 -7
  810. package/esm/core/index.d.ts +6 -5
  811. package/esm/core/index.js +82 -14
  812. package/esm/core/utils/color/ColorValue.d.ts +4 -4
  813. package/esm/core/utils/color/ColorValue.js +524 -449
  814. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
  815. package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +11 -7
  816. package/esm/core/utils/components/Divider.d.ts +1 -1
  817. package/esm/core/utils/components/Divider.js +8 -2
  818. package/esm/core/utils/components/Flex.d.ts +4 -4
  819. package/esm/core/utils/components/Flex.js +87 -71
  820. package/esm/core/utils/components/FocusTrap.d.ts +3 -3
  821. package/esm/core/utils/components/FocusTrap.js +41 -32
  822. package/esm/core/utils/components/Icon.d.ts +1 -1
  823. package/esm/core/utils/components/Icon.js +19 -12
  824. package/esm/core/utils/components/InputContainer.d.ts +2 -2
  825. package/esm/core/utils/components/InputContainer.js +65 -15
  826. package/esm/core/utils/components/InputFlexContainer.d.ts +1 -1
  827. package/esm/core/utils/components/InputFlexContainer.js +13 -2
  828. package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
  829. package/esm/core/utils/components/MiddleTextTruncation.js +27 -17
  830. package/esm/core/utils/components/Popover.d.ts +3 -3
  831. package/esm/core/utils/components/Popover.js +103 -102
  832. package/esm/core/utils/components/Resizer.d.ts +2 -2
  833. package/esm/core/utils/components/Resizer.js +242 -184
  834. package/esm/core/utils/components/VirtualScroll.d.ts +2 -2
  835. package/esm/core/utils/components/VirtualScroll.js +297 -218
  836. package/esm/core/utils/components/VisuallyHidden.d.ts +1 -1
  837. package/esm/core/utils/components/VisuallyHidden.js +8 -2
  838. package/esm/core/utils/components/WithCSSTransition.d.ts +2 -2
  839. package/esm/core/utils/components/WithCSSTransition.js +38 -21
  840. package/esm/core/utils/functions/colors.js +30 -30
  841. package/esm/core/utils/functions/date.js +8 -8
  842. package/esm/core/utils/functions/dom.js +17 -14
  843. package/esm/core/utils/functions/focusable.js +24 -15
  844. package/esm/core/utils/functions/import.d.ts +6 -0
  845. package/esm/core/utils/functions/import.js +13 -0
  846. package/esm/core/utils/functions/index.d.ts +1 -0
  847. package/esm/core/utils/functions/index.js +1 -0
  848. package/esm/core/utils/functions/numbers.js +7 -7
  849. package/esm/core/utils/functions/polymorphic.d.ts +5 -3
  850. package/esm/core/utils/functions/polymorphic.js +32 -23
  851. package/esm/core/utils/functions/supports.js +2 -1
  852. package/esm/core/utils/hooks/useContainerWidth.js +16 -13
  853. package/esm/core/utils/hooks/useDragAndDrop.js +99 -80
  854. package/esm/core/utils/hooks/useEventListener.js +18 -18
  855. package/esm/core/utils/hooks/useGlobals.js +29 -24
  856. package/esm/core/utils/hooks/useId.js +2 -2
  857. package/esm/core/utils/hooks/useIntersection.js +25 -19
  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 -25
  862. package/esm/core/utils/hooks/useMergedRefs.js +11 -12
  863. package/esm/core/utils/hooks/useOverflow.js +62 -50
  864. package/esm/core/utils/hooks/useResizeObserver.js +17 -12
  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/styles.js +453 -447
  931. package/package.json +34 -30
  932. package/styles.css +575 -598
  933. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -65
  934. package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  935. package/cjs/core/ProgressIndicators/ProgressLinear/index.js +0 -10
  936. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -77
  937. package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  938. package/cjs/core/ProgressIndicators/ProgressRadial/index.js +0 -10
  939. package/cjs/core/Stepper/Wizard.d.ts +0 -46
  940. package/cjs/core/Stepper/Wizard.js +0 -55
  941. package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
  942. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -48
  943. package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
  944. package/esm/core/Stepper/Wizard.d.ts +0 -46
  945. package/esm/core/Stepper/Wizard.js +0 -29
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { Cell, CellProps, TableInstance } from 'react-table';
3
- export declare type TableCellProps<T extends Record<string, unknown>> = {
3
+ export type TableCellProps<T extends Record<string, unknown>> = {
4
4
  cell: Cell<T>;
5
5
  cellIndex: number;
6
6
  isDisabled: boolean;
@@ -9,5 +9,5 @@ export declare type TableCellProps<T extends Record<string, unknown>> = {
9
9
  expanderCell?: (cellProps: CellProps<T>) => React.ReactNode;
10
10
  density?: 'default' | 'condensed' | 'extra-condensed';
11
11
  };
12
- export declare const TableCell: <T extends Record<string, unknown>>(props: TableCellProps<T>) => JSX.Element;
12
+ export declare const TableCell: <T extends Record<string, unknown>>(props: TableCellProps<T>) => React.JSX.Element;
13
13
  export default TableCell;
@@ -10,60 +10,94 @@ import { SELECTION_CELL_ID } from './columns/index.js';
10
10
  import { DefaultCell } from './cells/index.js';
11
11
  import { Box } from '../utils/index.js';
12
12
  export const TableCell = (props) => {
13
- const { cell, cellIndex, isDisabled, tableHasSubRows, tableInstance, expanderCell, density, } = props;
14
- const hasSubRowExpander = cellIndex ===
15
- cell.row.cells.findIndex((c) => c.column.id !== SELECTION_CELL_ID);
16
- const getSubRowStyle = () => {
17
- if (!tableHasSubRows || !hasSubRowExpander) {
18
- return undefined;
19
- }
20
- // If it doesn't have sub-rows then shift by another level to align with expandable rows on the same depth
21
- const dynamicMargin = cell.row.depth + (cell.row.canExpand ? 0 : 1);
22
- let cellPadding = 16;
23
- let expanderMargin = 8;
24
- if (density === 'condensed') {
25
- cellPadding = 12;
26
- expanderMargin = 4;
27
- }
28
- else if (density === 'extra-condensed') {
29
- cellPadding = 8;
30
- expanderMargin = 4;
31
- }
32
- const multiplier = 26 + expanderMargin; // 26 = expander width
33
- return {
34
- paddingLeft: cellPadding + dynamicMargin * multiplier,
35
- };
13
+ const {
14
+ cell,
15
+ cellIndex,
16
+ isDisabled,
17
+ tableHasSubRows,
18
+ tableInstance,
19
+ expanderCell,
20
+ density,
21
+ } = props;
22
+ const hasSubRowExpander =
23
+ cellIndex ===
24
+ cell.row.cells.findIndex((c) => c.column.id !== SELECTION_CELL_ID);
25
+ const getSubRowStyle = () => {
26
+ if (!tableHasSubRows || !hasSubRowExpander) {
27
+ return undefined;
28
+ }
29
+ // If it doesn't have sub-rows then shift by another level to align with expandable rows on the same depth
30
+ const dynamicMargin = cell.row.depth + (cell.row.canExpand ? 0 : 1);
31
+ let cellPadding = 16;
32
+ let expanderMargin = 8;
33
+ if (density === 'condensed') {
34
+ cellPadding = 12;
35
+ expanderMargin = 4;
36
+ } else if (density === 'extra-condensed') {
37
+ cellPadding = 8;
38
+ expanderMargin = 4;
39
+ }
40
+ const multiplier = 26 + expanderMargin; // 26 = expander width
41
+ return {
42
+ paddingLeft: cellPadding + dynamicMargin * multiplier,
36
43
  };
37
- const cellElementProps = cell.getCellProps({
38
- className: cx('iui-table-cell', cell.column.cellClassName, {
39
- 'iui-table-cell-sticky': !!cell.column.sticky,
44
+ };
45
+ const cellElementProps = cell.getCellProps({
46
+ className: cx('iui-table-cell', cell.column.cellClassName, {
47
+ 'iui-table-cell-sticky': !!cell.column.sticky,
48
+ }),
49
+ style: {
50
+ ...getCellStyle(cell.column, !!tableInstance.state.isTableResizing),
51
+ ...getSubRowStyle(),
52
+ ...getStickyStyle(cell.column, tableInstance.visibleColumns),
53
+ },
54
+ });
55
+ const cellProps = {
56
+ ...tableInstance,
57
+ ...{ cell, row: cell.row, value: cell.value, column: cell.column },
58
+ };
59
+ const cellContent = React.createElement(
60
+ React.Fragment,
61
+ null,
62
+ tableHasSubRows &&
63
+ hasSubRowExpander &&
64
+ cell.row.canExpand &&
65
+ React.createElement(SubRowExpander, {
66
+ cell: cell,
67
+ isDisabled: isDisabled,
68
+ cellProps: cellProps,
69
+ expanderCell: expanderCell,
70
+ density: density,
71
+ }),
72
+ cell.render('Cell'),
73
+ );
74
+ const cellRendererProps = {
75
+ cellElementProps,
76
+ cellProps,
77
+ children: React.createElement(
78
+ React.Fragment,
79
+ null,
80
+ cellContent,
81
+ cell.column.sticky === 'left' &&
82
+ tableInstance.state.sticky.isScrolledToRight &&
83
+ React.createElement(Box, { className: 'iui-table-cell-shadow-right' }),
84
+ cell.column.sticky === 'right' &&
85
+ tableInstance.state.sticky.isScrolledToLeft &&
86
+ React.createElement(Box, { className: 'iui-table-cell-shadow-left' }),
87
+ ),
88
+ };
89
+ return React.createElement(
90
+ React.Fragment,
91
+ null,
92
+ cell.column.cellRenderer
93
+ ? cell.column.cellRenderer({
94
+ ...cellRendererProps,
95
+ isDisabled: () => isDisabled,
96
+ })
97
+ : React.createElement(DefaultCell, {
98
+ ...cellRendererProps,
99
+ isDisabled: () => isDisabled,
40
100
  }),
41
- style: {
42
- ...getCellStyle(cell.column, !!tableInstance.state.isTableResizing),
43
- ...getSubRowStyle(),
44
- ...getStickyStyle(cell.column, tableInstance.visibleColumns),
45
- },
46
- });
47
- const cellProps = {
48
- ...tableInstance,
49
- ...{ cell, row: cell.row, value: cell.value, column: cell.column },
50
- };
51
- const cellContent = (React.createElement(React.Fragment, null,
52
- tableHasSubRows && hasSubRowExpander && cell.row.canExpand && (React.createElement(SubRowExpander, { cell: cell, isDisabled: isDisabled, cellProps: cellProps, expanderCell: expanderCell, density: density })),
53
- cell.render('Cell')));
54
- const cellRendererProps = {
55
- cellElementProps,
56
- cellProps,
57
- children: (React.createElement(React.Fragment, null,
58
- cellContent,
59
- cell.column.sticky === 'left' &&
60
- tableInstance.state.sticky.isScrolledToRight && (React.createElement(Box, { className: 'iui-table-cell-shadow-right' })),
61
- cell.column.sticky === 'right' &&
62
- tableInstance.state.sticky.isScrolledToLeft && (React.createElement(Box, { className: 'iui-table-cell-shadow-left' })))),
63
- };
64
- return (React.createElement(React.Fragment, null, cell.column.cellRenderer ? (cell.column.cellRenderer({
65
- ...cellRendererProps,
66
- isDisabled: () => isDisabled,
67
- })) : (React.createElement(DefaultCell, { ...cellRendererProps, isDisabled: () => isDisabled }))));
101
+ );
68
102
  };
69
103
  export default TableCell;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
3
  import type { TablePaginatorRendererProps } from './Table.js';
4
- export declare type TablePaginatorProps = {
4
+ export type TablePaginatorProps = {
5
5
  /**
6
6
  * Control whether focusing tabs (using arrow keys) should automatically select them.
7
7
  * Use 'manual' if tab panel content is not preloaded.
@@ -72,5 +72,5 @@ export declare type TablePaginatorProps = {
72
72
  * paginatorRenderer={(props) => <TablePaginator {...props} />}
73
73
  * />
74
74
  */
75
- export declare const TablePaginator: (props: TablePaginatorProps) => JSX.Element | null;
75
+ export declare const TablePaginator: (props: TablePaginatorProps) => React.JSX.Element | null;
76
76
  export default TablePaginator;
@@ -7,17 +7,29 @@ import cx from 'classnames';
7
7
  import { IconButton, Button, DropdownButton } from '../Buttons/index.js';
8
8
  import { ProgressRadial } from '../ProgressIndicators/index.js';
9
9
  import { MenuItem } from '../Menu/index.js';
10
- import { getBoundedValue, useGlobals, useOverflow, useContainerWidth, SvgChevronLeft, SvgChevronRight, Box, } from '../utils/index.js';
10
+ import {
11
+ getBoundedValue,
12
+ useGlobals,
13
+ useOverflow,
14
+ useContainerWidth,
15
+ SvgChevronLeft,
16
+ SvgChevronRight,
17
+ Box,
18
+ } from '../utils/index.js';
11
19
  const defaultLocalization = {
12
- pageSizeLabel: (size) => `${size} per page`,
13
- rangeLabel: (startIndex, endIndex, totalRows, isLoading) => isLoading
14
- ? `${startIndex}-${endIndex}…`
15
- : `${startIndex}-${endIndex} of ${totalRows}`,
16
- previousPage: 'Previous page',
17
- nextPage: 'Next page',
18
- goToPageLabel: (page) => `Go to page ${page}`,
19
- rowsPerPageLabel: 'Rows per page',
20
- rowsSelectedLabel: (totalSelectedRowsCount) => `${totalSelectedRowsCount} ${totalSelectedRowsCount === 1 ? 'row' : 'rows'} selected`,
20
+ pageSizeLabel: (size) => `${size} per page`,
21
+ rangeLabel: (startIndex, endIndex, totalRows, isLoading) =>
22
+ isLoading
23
+ ? `${startIndex}-${endIndex}…`
24
+ : `${startIndex}-${endIndex} of ${totalRows}`,
25
+ previousPage: 'Previous page',
26
+ nextPage: 'Next page',
27
+ goToPageLabel: (page) => `Go to page ${page}`,
28
+ rowsPerPageLabel: 'Rows per page',
29
+ rowsSelectedLabel: (totalSelectedRowsCount) =>
30
+ `${totalSelectedRowsCount} ${
31
+ totalSelectedRowsCount === 1 ? 'row' : 'rows'
32
+ } selected`,
21
33
  };
22
34
  /**
23
35
  * Table paginator component. Recommended to pass to the `Table` as `paginatorRenderer` prop.
@@ -29,127 +41,297 @@ const defaultLocalization = {
29
41
  * />
30
42
  */
31
43
  export const TablePaginator = (props) => {
32
- const { currentPage, totalRowsCount, pageSize, onPageChange, totalSelectedRowsCount = 0, focusActivationMode = 'manual', isLoading = false, size = 'default', pageSizeList, onPageSizeChange, localization: userLocalization, className, ...rest } = props;
33
- useGlobals();
34
- const localization = React.useMemo(() => ({ ...defaultLocalization, ...userLocalization }), [userLocalization]);
35
- const pageListRef = React.useRef(null);
36
- const [focusedIndex, setFocusedIndex] = React.useState(currentPage);
37
- React.useEffect(() => {
38
- setFocusedIndex(currentPage);
39
- }, [currentPage]);
40
- const needFocus = React.useRef(false);
41
- const isMounted = React.useRef(false);
42
- React.useEffect(() => {
43
- // Checking `isMounted.current` prevents from focusing on initial load.
44
- // Checking `needFocus.current` prevents from focusing page when clicked on previous/next page.
45
- if (isMounted.current && needFocus.current) {
46
- const buttonToFocus = Array.from(pageListRef.current?.querySelectorAll('.iui-table-paginator-page-button') ?? []).find((el) => el.textContent?.trim() === (focusedIndex + 1).toString());
47
- buttonToFocus?.focus();
48
- needFocus.current = false;
49
- }
50
- isMounted.current = true;
51
- }, [focusedIndex]);
52
- const buttonSize = size != 'default' ? 'small' : undefined;
53
- const pageButton = React.useCallback((index, tabIndex = index === focusedIndex ? 0 : -1) => (React.createElement(Box, { as: 'button', key: index, type: 'button', className: cx('iui-table-paginator-page-button', {
44
+ const {
45
+ currentPage,
46
+ totalRowsCount,
47
+ pageSize,
48
+ onPageChange,
49
+ totalSelectedRowsCount = 0,
50
+ focusActivationMode = 'manual',
51
+ isLoading = false,
52
+ size = 'default',
53
+ pageSizeList,
54
+ onPageSizeChange,
55
+ localization: userLocalization,
56
+ className,
57
+ ...rest
58
+ } = props;
59
+ useGlobals();
60
+ const localization = React.useMemo(
61
+ () => ({ ...defaultLocalization, ...userLocalization }),
62
+ [userLocalization],
63
+ );
64
+ const pageListRef = React.useRef(null);
65
+ const [focusedIndex, setFocusedIndex] = React.useState(currentPage);
66
+ React.useEffect(() => {
67
+ setFocusedIndex(currentPage);
68
+ }, [currentPage]);
69
+ const needFocus = React.useRef(false);
70
+ const isMounted = React.useRef(false);
71
+ React.useEffect(() => {
72
+ // Checking `isMounted.current` prevents from focusing on initial load.
73
+ // Checking `needFocus.current` prevents from focusing page when clicked on previous/next page.
74
+ if (isMounted.current && needFocus.current) {
75
+ const buttonToFocus = Array.from(
76
+ pageListRef.current?.querySelectorAll(
77
+ '.iui-table-paginator-page-button',
78
+ ) ?? [],
79
+ ).find((el) => el.textContent?.trim() === (focusedIndex + 1).toString());
80
+ buttonToFocus?.focus();
81
+ needFocus.current = false;
82
+ }
83
+ isMounted.current = true;
84
+ }, [focusedIndex]);
85
+ const buttonSize = size != 'default' ? 'small' : undefined;
86
+ const pageButton = React.useCallback(
87
+ (index, tabIndex = index === focusedIndex ? 0 : -1) =>
88
+ React.createElement(
89
+ Box,
90
+ {
91
+ as: 'button',
92
+ key: index,
93
+ type: 'button',
94
+ className: cx('iui-table-paginator-page-button', {
54
95
  'iui-table-paginator-page-button-small': buttonSize === 'small',
55
- }), "data-iui-active": index === currentPage, onClick: () => onPageChange(index), "aria-current": index === currentPage, "aria-label": localization.goToPageLabel(index + 1), tabIndex: tabIndex }, index + 1)), [focusedIndex, currentPage, localization, buttonSize, onPageChange]);
56
- const totalPagesCount = Math.ceil(totalRowsCount / pageSize);
57
- const pageList = React.useMemo(() => new Array(totalPagesCount)
96
+ }),
97
+ 'data-iui-active': index === currentPage,
98
+ onClick: () => onPageChange(index),
99
+ 'aria-current': index === currentPage,
100
+ 'aria-label': localization.goToPageLabel(index + 1),
101
+ tabIndex: tabIndex,
102
+ },
103
+ index + 1,
104
+ ),
105
+ [focusedIndex, currentPage, localization, buttonSize, onPageChange],
106
+ );
107
+ const totalPagesCount = Math.ceil(totalRowsCount / pageSize);
108
+ const pageList = React.useMemo(
109
+ () =>
110
+ new Array(totalPagesCount)
58
111
  .fill(null)
59
- .map((_, index) => pageButton(index)), [pageButton, totalPagesCount]);
60
- const [overflowRef, visibleCount] = useOverflow(pageList);
61
- const [paginatorResizeRef, paginatorWidth] = useContainerWidth();
62
- const onKeyDown = (event) => {
63
- // alt + arrow keys are used by browser/assistive technologies
64
- if (event.altKey) {
65
- return;
112
+ .map((_, index) => pageButton(index)),
113
+ [pageButton, totalPagesCount],
114
+ );
115
+ const [overflowRef, visibleCount] = useOverflow(pageList);
116
+ const [paginatorResizeRef, paginatorWidth] = useContainerWidth();
117
+ const onKeyDown = (event) => {
118
+ // alt + arrow keys are used by browser/assistive technologies
119
+ if (event.altKey) {
120
+ return;
121
+ }
122
+ const focusPage = (delta) => {
123
+ const newFocusedIndex = getBoundedValue(
124
+ focusedIndex + delta,
125
+ 0,
126
+ totalPagesCount - 1,
127
+ );
128
+ needFocus.current = true;
129
+ if (focusActivationMode === 'auto') {
130
+ onPageChange(newFocusedIndex);
131
+ } else {
132
+ setFocusedIndex(newFocusedIndex);
133
+ }
134
+ };
135
+ switch (event.key) {
136
+ case 'ArrowRight': {
137
+ focusPage(+1);
138
+ event.preventDefault();
139
+ break;
140
+ }
141
+ case 'ArrowLeft': {
142
+ focusPage(-1);
143
+ event.preventDefault();
144
+ break;
145
+ }
146
+ case 'Enter':
147
+ case ' ':
148
+ case 'Spacebar': {
149
+ if (focusActivationMode === 'manual') {
150
+ onPageChange(focusedIndex);
66
151
  }
67
- const focusPage = (delta) => {
68
- const newFocusedIndex = getBoundedValue(focusedIndex + delta, 0, totalPagesCount - 1);
69
- needFocus.current = true;
70
- if (focusActivationMode === 'auto') {
71
- onPageChange(newFocusedIndex);
72
- }
73
- else {
74
- setFocusedIndex(newFocusedIndex);
75
- }
76
- };
77
- switch (event.key) {
78
- case 'ArrowRight': {
79
- focusPage(+1);
80
- event.preventDefault();
81
- break;
82
- }
83
- case 'ArrowLeft': {
84
- focusPage(-1);
85
- event.preventDefault();
86
- break;
152
+ break;
153
+ }
154
+ default:
155
+ break;
156
+ }
157
+ };
158
+ const halfVisibleCount = Math.floor(visibleCount / 2);
159
+ let startPage = focusedIndex - halfVisibleCount;
160
+ let endPage = focusedIndex + halfVisibleCount + 1;
161
+ if (startPage < 0) {
162
+ endPage = Math.min(totalPagesCount, endPage + Math.abs(startPage)); // If no room at the beginning, show extra pages at the end
163
+ startPage = 0;
164
+ }
165
+ if (endPage > totalPagesCount) {
166
+ startPage = Math.max(0, startPage - (endPage - totalPagesCount)); // If no room at the end, show extra pages at the beginning
167
+ endPage = totalPagesCount;
168
+ }
169
+ const hasNoRows = totalPagesCount === 0;
170
+ const showPagesList = totalPagesCount > 1 || isLoading;
171
+ const showPageSizeList =
172
+ pageSizeList && !!onPageSizeChange && !!totalRowsCount;
173
+ const ellipsis = React.createElement(
174
+ Box,
175
+ {
176
+ as: 'span',
177
+ className: cx('iui-table-paginator-ellipsis', {
178
+ 'iui-table-paginator-ellipsis-small': size === 'small',
179
+ }),
180
+ },
181
+ '\u2026',
182
+ );
183
+ const noRowsContent = React.createElement(
184
+ React.Fragment,
185
+ null,
186
+ isLoading
187
+ ? React.createElement(ProgressRadial, {
188
+ indeterminate: true,
189
+ size: 'small',
190
+ })
191
+ : React.createElement(
192
+ Button,
193
+ { styleType: 'borderless', disabled: true, size: buttonSize },
194
+ '1',
195
+ ),
196
+ );
197
+ if (!showPagesList && !showPageSizeList) {
198
+ return null;
199
+ }
200
+ return React.createElement(
201
+ Box,
202
+ {
203
+ className: cx('iui-table-paginator', className),
204
+ ref: paginatorResizeRef,
205
+ ...rest,
206
+ },
207
+ React.createElement(
208
+ Box,
209
+ { className: 'iui-left' },
210
+ totalSelectedRowsCount > 0 &&
211
+ React.createElement(
212
+ 'span',
213
+ null,
214
+ localization.rowsSelectedLabel(totalSelectedRowsCount),
215
+ ),
216
+ ),
217
+ showPagesList &&
218
+ React.createElement(
219
+ Box,
220
+ { className: 'iui-center', ref: overflowRef },
221
+ React.createElement(
222
+ IconButton,
223
+ {
224
+ styleType: 'borderless',
225
+ disabled: currentPage === 0,
226
+ onClick: () => onPageChange(currentPage - 1),
227
+ size: buttonSize,
228
+ 'aria-label': localization.previousPage,
229
+ },
230
+ React.createElement(SvgChevronLeft, null),
231
+ ),
232
+ React.createElement(
233
+ Box,
234
+ {
235
+ as: 'span',
236
+ className: 'iui-table-paginator-pages-group',
237
+ onKeyDown: onKeyDown,
238
+ ref: pageListRef,
239
+ },
240
+ (() => {
241
+ if (hasNoRows) {
242
+ return noRowsContent;
87
243
  }
88
- case 'Enter':
89
- case ' ':
90
- case 'Spacebar': {
91
- if (focusActivationMode === 'manual') {
92
- onPageChange(focusedIndex);
93
- }
94
- break;
244
+ if (visibleCount === 1) {
245
+ return pageButton(focusedIndex);
95
246
  }
96
- default:
97
- break;
98
- }
99
- };
100
- const halfVisibleCount = Math.floor(visibleCount / 2);
101
- let startPage = focusedIndex - halfVisibleCount;
102
- let endPage = focusedIndex + halfVisibleCount + 1;
103
- if (startPage < 0) {
104
- endPage = Math.min(totalPagesCount, endPage + Math.abs(startPage)); // If no room at the beginning, show extra pages at the end
105
- startPage = 0;
106
- }
107
- if (endPage > totalPagesCount) {
108
- startPage = Math.max(0, startPage - (endPage - totalPagesCount)); // If no room at the end, show extra pages at the beginning
109
- endPage = totalPagesCount;
110
- }
111
- const hasNoRows = totalPagesCount === 0;
112
- const showPagesList = totalPagesCount > 1 || isLoading;
113
- const showPageSizeList = pageSizeList && !!onPageSizeChange && !!totalRowsCount;
114
- const ellipsis = (React.createElement(Box, { as: 'span', className: cx('iui-table-paginator-ellipsis', {
115
- 'iui-table-paginator-ellipsis-small': size === 'small',
116
- }) }, "\u2026"));
117
- const noRowsContent = (React.createElement(React.Fragment, null, isLoading ? (React.createElement(ProgressRadial, { indeterminate: true, size: 'small' })) : (React.createElement(Button, { styleType: 'borderless', disabled: true, size: buttonSize }, "1"))));
118
- if (!showPagesList && !showPageSizeList) {
119
- return null;
120
- }
121
- return (React.createElement(Box, { className: cx('iui-table-paginator', className), ref: paginatorResizeRef, ...rest },
122
- React.createElement(Box, { className: 'iui-left' }, totalSelectedRowsCount > 0 && (React.createElement("span", null, localization.rowsSelectedLabel(totalSelectedRowsCount)))),
123
- showPagesList && (React.createElement(Box, { className: 'iui-center', ref: overflowRef },
124
- React.createElement(IconButton, { styleType: 'borderless', disabled: currentPage === 0, onClick: () => onPageChange(currentPage - 1), size: buttonSize, "aria-label": localization.previousPage },
125
- React.createElement(SvgChevronLeft, null)),
126
- React.createElement(Box, { as: 'span', className: 'iui-table-paginator-pages-group', onKeyDown: onKeyDown, ref: pageListRef }, (() => {
127
- if (hasNoRows) {
128
- return noRowsContent;
129
- }
130
- if (visibleCount === 1) {
131
- return pageButton(focusedIndex);
132
- }
133
- return (React.createElement(React.Fragment, null,
134
- startPage !== 0 && (React.createElement(React.Fragment, null,
135
- pageButton(0, 0),
136
- ellipsis)),
137
- pageList.slice(startPage, endPage),
138
- endPage !== totalPagesCount && !isLoading && (React.createElement(React.Fragment, null,
139
- ellipsis,
140
- pageButton(totalPagesCount - 1, 0))),
141
- isLoading && (React.createElement(React.Fragment, null,
142
- ellipsis,
143
- React.createElement(ProgressRadial, { indeterminate: true, size: 'small' })))));
144
- })()),
145
- React.createElement(IconButton, { styleType: 'borderless', disabled: currentPage === totalPagesCount - 1 || hasNoRows, onClick: () => onPageChange(currentPage + 1), size: buttonSize, "aria-label": localization.nextPage },
146
- React.createElement(SvgChevronRight, null)))),
147
- React.createElement(Box, { className: 'iui-right' }, showPageSizeList && (React.createElement(React.Fragment, null,
148
- localization.rowsPerPageLabel !== null &&
149
- paginatorWidth >= 1024 && (React.createElement(Box, { as: 'span', className: 'iui-table-paginator-page-size-label' }, localization.rowsPerPageLabel)),
150
- React.createElement(DropdownButton, { styleType: 'borderless', size: buttonSize, menuItems: (close) => pageSizeList.map((size) => (React.createElement(MenuItem, { key: size, isSelected: size === pageSize, onClick: () => {
247
+ return React.createElement(
248
+ React.Fragment,
249
+ null,
250
+ startPage !== 0 &&
251
+ React.createElement(
252
+ React.Fragment,
253
+ null,
254
+ pageButton(0, 0),
255
+ ellipsis,
256
+ ),
257
+ pageList.slice(startPage, endPage),
258
+ endPage !== totalPagesCount &&
259
+ !isLoading &&
260
+ React.createElement(
261
+ React.Fragment,
262
+ null,
263
+ ellipsis,
264
+ pageButton(totalPagesCount - 1, 0),
265
+ ),
266
+ isLoading &&
267
+ React.createElement(
268
+ React.Fragment,
269
+ null,
270
+ ellipsis,
271
+ React.createElement(ProgressRadial, {
272
+ indeterminate: true,
273
+ size: 'small',
274
+ }),
275
+ ),
276
+ );
277
+ })(),
278
+ ),
279
+ React.createElement(
280
+ IconButton,
281
+ {
282
+ styleType: 'borderless',
283
+ disabled: currentPage === totalPagesCount - 1 || hasNoRows,
284
+ onClick: () => onPageChange(currentPage + 1),
285
+ size: buttonSize,
286
+ 'aria-label': localization.nextPage,
287
+ },
288
+ React.createElement(SvgChevronRight, null),
289
+ ),
290
+ ),
291
+ React.createElement(
292
+ Box,
293
+ { className: 'iui-right' },
294
+ showPageSizeList &&
295
+ React.createElement(
296
+ React.Fragment,
297
+ null,
298
+ localization.rowsPerPageLabel !== null &&
299
+ paginatorWidth >= 1024 &&
300
+ React.createElement(
301
+ Box,
302
+ { as: 'span', className: 'iui-table-paginator-page-size-label' },
303
+ localization.rowsPerPageLabel,
304
+ ),
305
+ React.createElement(
306
+ DropdownButton,
307
+ {
308
+ styleType: 'borderless',
309
+ size: buttonSize,
310
+ menuItems: (close) =>
311
+ pageSizeList.map((size) =>
312
+ React.createElement(
313
+ MenuItem,
314
+ {
315
+ key: size,
316
+ isSelected: size === pageSize,
317
+ onClick: () => {
151
318
  close();
152
319
  onPageSizeChange(size);
153
- } }, localization.pageSizeLabel(size)))) }, localization.rangeLabel(currentPage * pageSize + 1, Math.min(totalRowsCount, (currentPage + 1) * pageSize), totalRowsCount, isLoading)))))));
320
+ },
321
+ },
322
+ localization.pageSizeLabel(size),
323
+ ),
324
+ ),
325
+ },
326
+ localization.rangeLabel(
327
+ currentPage * pageSize + 1,
328
+ Math.min(totalRowsCount, (currentPage + 1) * pageSize),
329
+ totalRowsCount,
330
+ isLoading,
331
+ ),
332
+ ),
333
+ ),
334
+ ),
335
+ );
154
336
  };
155
337
  export default TablePaginator;
@@ -22,11 +22,11 @@ export declare const TableRow: <T extends Record<string, unknown>>(props: {
22
22
  isDisabled: boolean;
23
23
  tableHasSubRows: boolean;
24
24
  tableInstance: TableInstance<T>;
25
- expanderCell?: ((cellProps: CellProps<T, any>) => React.ReactNode) | undefined;
25
+ expanderCell?: ((cellProps: CellProps<T>) => React.ReactNode) | undefined;
26
26
  bodyRef: HTMLDivElement | null;
27
27
  tableRowRef?: React.Ref<HTMLDivElement> | undefined;
28
28
  density?: "default" | "condensed" | "extra-condensed" | undefined;
29
- }) => JSX.Element;
29
+ }) => React.JSX.Element;
30
30
  export declare const TableRowMemoized: <T extends Record<string, unknown>>(props: {
31
31
  row: Row<T>;
32
32
  rowProps?: ((row: Row<T>) => React.ComponentPropsWithRef<'div'> & {
@@ -43,8 +43,8 @@ export declare const TableRowMemoized: <T extends Record<string, unknown>>(props
43
43
  isDisabled: boolean;
44
44
  tableHasSubRows: boolean;
45
45
  tableInstance: TableInstance<T>;
46
- expanderCell?: ((cellProps: CellProps<T, any>) => React.ReactNode) | undefined;
46
+ expanderCell?: ((cellProps: CellProps<T>) => React.ReactNode) | undefined;
47
47
  bodyRef: HTMLDivElement | null;
48
48
  tableRowRef?: React.Ref<HTMLDivElement> | undefined;
49
49
  density?: "default" | "condensed" | "extra-condensed" | undefined;
50
- }) => JSX.Element;
50
+ }) => React.JSX.Element;