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

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 (508) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +28 -22
  3. package/cjs/core/Alert/Alert.d.ts +0 -1
  4. package/cjs/core/Alert/Alert.js +0 -1
  5. package/cjs/core/Avatar/Avatar.d.ts +0 -1
  6. package/cjs/core/Avatar/Avatar.js +0 -1
  7. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -1
  8. package/cjs/core/AvatarGroup/AvatarGroup.js +0 -1
  9. package/cjs/core/Backdrop/Backdrop.d.ts +0 -1
  10. package/cjs/core/Backdrop/Backdrop.js +0 -1
  11. package/cjs/core/Badge/Badge.d.ts +0 -1
  12. package/cjs/core/Badge/Badge.js +0 -1
  13. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  14. package/cjs/core/Breadcrumbs/Breadcrumbs.js +0 -1
  15. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +0 -1
  16. package/cjs/core/ButtonGroup/ButtonGroup.js +0 -1
  17. package/cjs/core/Buttons/Button/Button.d.ts +0 -1
  18. package/cjs/core/Buttons/Button/Button.js +0 -1
  19. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
  20. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -1
  21. package/cjs/core/Buttons/IconButton/IconButton.d.ts +0 -2
  22. package/cjs/core/Buttons/IconButton/IconButton.js +0 -2
  23. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
  24. package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -1
  25. package/cjs/core/Carousel/Carousel.d.ts +0 -1
  26. package/cjs/core/Carousel/Carousel.js +0 -1
  27. package/cjs/core/Carousel/CarouselDotsList.d.ts +0 -1
  28. package/cjs/core/Carousel/CarouselDotsList.js +0 -1
  29. package/cjs/core/Checkbox/Checkbox.d.ts +0 -1
  30. package/cjs/core/Checkbox/Checkbox.js +0 -1
  31. package/cjs/core/ColorPicker/ColorBuilder.d.ts +0 -1
  32. package/cjs/core/ColorPicker/ColorBuilder.js +0 -1
  33. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +0 -1
  34. package/cjs/core/ColorPicker/ColorInputPanel.js +0 -1
  35. package/cjs/core/ColorPicker/ColorPalette.d.ts +0 -1
  36. package/cjs/core/ColorPicker/ColorPalette.js +0 -1
  37. package/cjs/core/ColorPicker/ColorPicker.d.ts +0 -1
  38. package/cjs/core/ColorPicker/ColorPicker.js +0 -1
  39. package/cjs/core/ColorPicker/ColorSwatch.d.ts +0 -1
  40. package/cjs/core/ColorPicker/ColorSwatch.js +0 -1
  41. package/cjs/core/ComboBox/ComboBox.d.ts +0 -1
  42. package/cjs/core/ComboBox/ComboBox.js +0 -1
  43. package/cjs/core/DatePicker/DatePicker.d.ts +0 -1
  44. package/cjs/core/DatePicker/DatePicker.js +0 -1
  45. package/cjs/core/Dialog/Dialog.d.ts +0 -1
  46. package/cjs/core/Dialog/Dialog.js +2 -2
  47. package/cjs/core/Dialog/DialogButtonBar.d.ts +0 -1
  48. package/cjs/core/Dialog/DialogButtonBar.js +0 -1
  49. package/cjs/core/Dialog/DialogContent.d.ts +0 -1
  50. package/cjs/core/Dialog/DialogContent.js +0 -1
  51. package/cjs/core/Dialog/DialogContext.d.ts +4 -0
  52. package/cjs/core/Dialog/DialogMain.d.ts +0 -1
  53. package/cjs/core/Dialog/DialogMain.js +2 -3
  54. package/cjs/core/Dialog/DialogTitleBar.d.ts +0 -1
  55. package/cjs/core/Dialog/DialogTitleBar.js +0 -1
  56. package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
  57. package/cjs/core/Dialog/DialogTitleBarTitle.js +0 -1
  58. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
  59. package/cjs/core/ExpandableBlock/ExpandableBlock.js +6 -4
  60. package/cjs/core/Fieldset/Fieldset.d.ts +0 -1
  61. package/cjs/core/Fieldset/Fieldset.js +0 -1
  62. package/cjs/core/FileUpload/FileUpload.d.ts +0 -1
  63. package/cjs/core/FileUpload/FileUpload.js +0 -1
  64. package/cjs/core/FileUpload/FileUploadCard.d.ts +0 -1
  65. package/cjs/core/FileUpload/FileUploadCard.js +1 -2
  66. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +0 -1
  67. package/cjs/core/FileUpload/FileUploadTemplate.js +0 -1
  68. package/cjs/core/Footer/Footer.d.ts +0 -1
  69. package/cjs/core/Footer/Footer.js +0 -1
  70. package/cjs/core/Footer/FooterItem.d.ts +0 -1
  71. package/cjs/core/Footer/FooterItem.js +0 -1
  72. package/cjs/core/Footer/FooterList.d.ts +0 -1
  73. package/cjs/core/Footer/FooterList.js +0 -1
  74. package/cjs/core/Footer/FooterSeparator.d.ts +0 -1
  75. package/cjs/core/Footer/FooterSeparator.js +0 -1
  76. package/cjs/core/Header/Header.d.ts +0 -1
  77. package/cjs/core/Header/Header.js +0 -1
  78. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +0 -1
  79. package/cjs/core/Header/HeaderBreadcrumbs.js +0 -1
  80. package/cjs/core/Header/HeaderButton.d.ts +0 -1
  81. package/cjs/core/Header/HeaderButton.js +0 -1
  82. package/cjs/core/Header/HeaderLogo.d.ts +0 -1
  83. package/cjs/core/Header/HeaderLogo.js +0 -1
  84. package/cjs/core/InformationPanel/InformationPanel.d.ts +0 -1
  85. package/cjs/core/InformationPanel/InformationPanel.js +0 -1
  86. package/cjs/core/InformationPanel/InformationPanelBody.d.ts +0 -1
  87. package/cjs/core/InformationPanel/InformationPanelBody.js +0 -1
  88. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +0 -1
  89. package/cjs/core/InformationPanel/InformationPanelContent.js +0 -1
  90. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +0 -1
  91. package/cjs/core/InformationPanel/InformationPanelHeader.js +0 -1
  92. package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
  93. package/cjs/core/InformationPanel/InformationPanelWrapper.js +0 -1
  94. package/cjs/core/Input/Input.d.ts +0 -1
  95. package/cjs/core/Input/Input.js +0 -1
  96. package/cjs/core/InputGroup/InputGroup.d.ts +0 -1
  97. package/cjs/core/InputGroup/InputGroup.js +0 -1
  98. package/cjs/core/Label/Label.d.ts +0 -1
  99. package/cjs/core/Label/Label.js +0 -1
  100. package/cjs/core/LabeledInput/LabeledInput.d.ts +0 -1
  101. package/cjs/core/LabeledInput/LabeledInput.js +0 -1
  102. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +0 -1
  103. package/cjs/core/LabeledSelect/LabeledSelect.js +0 -1
  104. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
  105. package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -1
  106. package/cjs/core/List/List.d.ts +0 -1
  107. package/cjs/core/List/List.js +0 -1
  108. package/cjs/core/List/ListItem.d.ts +0 -1
  109. package/cjs/core/List/ListItem.js +0 -1
  110. package/cjs/core/Menu/Menu.d.ts +0 -1
  111. package/cjs/core/Menu/Menu.js +0 -1
  112. package/cjs/core/Menu/MenuDivider.d.ts +0 -1
  113. package/cjs/core/Menu/MenuDivider.js +0 -1
  114. package/cjs/core/Menu/MenuExtraContent.d.ts +0 -1
  115. package/cjs/core/Menu/MenuExtraContent.js +0 -1
  116. package/cjs/core/Menu/MenuItem.d.ts +0 -1
  117. package/cjs/core/Menu/MenuItem.js +0 -1
  118. package/cjs/core/Menu/MenuItemSkeleton.d.ts +0 -1
  119. package/cjs/core/Menu/MenuItemSkeleton.js +0 -1
  120. package/cjs/core/Modal/Modal.d.ts +0 -1
  121. package/cjs/core/Modal/Modal.js +0 -1
  122. package/cjs/core/NonIdealState/NonIdealState.d.ts +0 -1
  123. package/cjs/core/NonIdealState/NonIdealState.js +0 -1
  124. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +0 -1
  125. package/cjs/core/NotificationMarker/NotificationMarker.js +0 -1
  126. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
  127. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
  128. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
  129. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
  130. package/cjs/core/Radio/Radio.d.ts +0 -1
  131. package/cjs/core/Radio/Radio.js +0 -1
  132. package/cjs/core/RadioTiles/RadioTile.d.ts +0 -1
  133. package/cjs/core/RadioTiles/RadioTile.js +0 -1
  134. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +0 -1
  135. package/cjs/core/RadioTiles/RadioTileGroup.js +0 -1
  136. package/cjs/core/SearchBox/SearchBox.d.ts +0 -1
  137. package/cjs/core/SearchBox/SearchBox.js +0 -1
  138. package/cjs/core/Select/Select.d.ts +0 -1
  139. package/cjs/core/Select/Select.js +0 -1
  140. package/cjs/core/Select/SelectTag.d.ts +0 -1
  141. package/cjs/core/Select/SelectTag.js +0 -1
  142. package/cjs/core/SideNavigation/SideNavigation.d.ts +0 -1
  143. package/cjs/core/SideNavigation/SideNavigation.js +0 -1
  144. package/cjs/core/SideNavigation/SidenavButton.d.ts +0 -1
  145. package/cjs/core/SideNavigation/SidenavButton.js +0 -1
  146. package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
  147. package/cjs/core/SideNavigation/SidenavSubmenu.js +0 -1
  148. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +0 -1
  149. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
  150. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
  151. package/cjs/core/SkipToContentLink/SkipToContentLink.js +0 -1
  152. package/cjs/core/Slider/Slider.d.ts +0 -1
  153. package/cjs/core/Slider/Slider.js +0 -1
  154. package/cjs/core/Slider/Track.js +2 -1
  155. package/cjs/core/Stepper/Stepper.d.ts +0 -1
  156. package/cjs/core/Stepper/Stepper.js +0 -1
  157. package/cjs/core/Stepper/WorkflowDiagram.d.ts +0 -1
  158. package/cjs/core/Stepper/WorkflowDiagram.js +0 -1
  159. package/cjs/core/Surface/Surface.d.ts +0 -1
  160. package/cjs/core/Surface/Surface.js +0 -1
  161. package/cjs/core/Table/Table.d.ts +0 -1
  162. package/cjs/core/Table/Table.js +18 -19
  163. package/cjs/core/Table/TableCell.js +3 -2
  164. package/cjs/core/Table/TablePaginator.d.ts +0 -1
  165. package/cjs/core/Table/TablePaginator.js +8 -9
  166. package/cjs/core/Table/TableRowMemoized.js +2 -2
  167. package/cjs/core/Table/cells/DefaultCell.js +4 -3
  168. package/cjs/core/Table/cells/EditableCell.js +1 -1
  169. package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
  170. package/cjs/core/Table/filters/BaseFilter.js +1 -2
  171. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  172. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  173. package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
  174. package/cjs/core/Table/filters/FilterButtonBar.js +1 -2
  175. package/cjs/core/Table/filters/FilterToggle.d.ts +0 -1
  176. package/cjs/core/Table/filters/FilterToggle.js +0 -1
  177. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  178. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  179. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  180. package/cjs/core/Table/filters/TextFilter/TextFilter.js +0 -1
  181. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -4
  182. package/cjs/core/Tabs/Tab.d.ts +0 -1
  183. package/cjs/core/Tabs/Tab.js +0 -1
  184. package/cjs/core/Tabs/Tabs.d.ts +0 -1
  185. package/cjs/core/Tabs/Tabs.js +4 -4
  186. package/cjs/core/Tag/Tag.d.ts +0 -1
  187. package/cjs/core/Tag/Tag.js +0 -1
  188. package/cjs/core/Tag/TagContainer.d.ts +0 -1
  189. package/cjs/core/Tag/TagContainer.js +0 -1
  190. package/cjs/core/Textarea/Textarea.d.ts +0 -1
  191. package/cjs/core/Textarea/Textarea.js +0 -1
  192. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +0 -2
  193. package/cjs/core/ThemeProvider/ThemeProvider.js +0 -2
  194. package/cjs/core/Tile/Tile.d.ts +0 -1
  195. package/cjs/core/Tile/Tile.js +1 -4
  196. package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
  197. package/cjs/core/TimePicker/TimePicker.js +0 -1
  198. package/cjs/core/Toast/Toast.d.ts +0 -1
  199. package/cjs/core/Toast/Toast.js +0 -1
  200. package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
  201. package/cjs/core/Toast/ToastWrapper.js +0 -1
  202. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  203. package/cjs/core/ToggleSwitch/ToggleSwitch.js +1 -3
  204. package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
  205. package/cjs/core/Tooltip/Tooltip.js +0 -1
  206. package/cjs/core/TransferList/TransferList.d.ts +69 -0
  207. package/cjs/core/TransferList/TransferList.js +148 -0
  208. package/cjs/core/TransferList/index.d.ts +3 -0
  209. package/cjs/core/TransferList/index.js +10 -0
  210. package/cjs/core/Tree/Tree.d.ts +0 -1
  211. package/cjs/core/Tree/Tree.js +0 -1
  212. package/cjs/core/Tree/TreeNode.d.ts +0 -1
  213. package/cjs/core/Tree/TreeNode.js +0 -1
  214. package/cjs/core/Tree/TreeNodeExpander.d.ts +0 -1
  215. package/cjs/core/Tree/TreeNodeExpander.js +0 -1
  216. package/cjs/core/Typography/Anchor/Anchor.d.ts +0 -1
  217. package/cjs/core/Typography/Anchor/Anchor.js +0 -1
  218. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  219. package/cjs/core/Typography/Blockquote/Blockquote.js +0 -1
  220. package/cjs/core/Typography/Code/Code.d.ts +0 -1
  221. package/cjs/core/Typography/Code/Code.js +0 -1
  222. package/cjs/core/Typography/Kbd/Kbd.d.ts +0 -1
  223. package/cjs/core/Typography/Kbd/Kbd.js +0 -1
  224. package/cjs/core/Typography/Text/Text.d.ts +0 -1
  225. package/cjs/core/Typography/Text/Text.js +0 -1
  226. package/cjs/core/index.d.ts +1 -0
  227. package/cjs/core/index.js +118 -116
  228. package/cjs/core/utils/components/Divider.d.ts +0 -1
  229. package/cjs/core/utils/components/Divider.js +0 -1
  230. package/cjs/core/utils/components/Flex.d.ts +0 -1
  231. package/cjs/core/utils/components/Flex.js +0 -1
  232. package/cjs/core/utils/components/Icon.d.ts +0 -1
  233. package/cjs/core/utils/components/Icon.js +0 -1
  234. package/cjs/core/utils/components/InputContainer.d.ts +0 -1
  235. package/cjs/core/utils/components/InputContainer.js +0 -1
  236. package/cjs/core/utils/components/InputFlexContainer.d.ts +0 -1
  237. package/cjs/core/utils/components/InputFlexContainer.js +0 -1
  238. package/cjs/core/utils/components/LinkAction.d.ts +0 -1
  239. package/cjs/core/utils/components/LinkAction.js +0 -1
  240. package/cjs/core/utils/components/Popover.d.ts +0 -1
  241. package/cjs/core/utils/components/Popover.js +0 -1
  242. package/cjs/core/utils/components/VisuallyHidden.d.ts +0 -1
  243. package/cjs/core/utils/components/VisuallyHidden.js +0 -1
  244. package/cjs/core/utils/functions/dom.d.ts +6 -0
  245. package/cjs/core/utils/functions/dom.js +20 -2
  246. package/cjs/core/utils/functions/index.d.ts +0 -1
  247. package/cjs/core/utils/functions/index.js +0 -1
  248. package/cjs/core/utils/functions/polymorphic.js +9 -1
  249. package/cjs/core/utils/hooks/useGlobals.d.ts +0 -2
  250. package/cjs/core/utils/hooks/useGlobals.js +0 -2
  251. package/cjs/styles.d.ts +5 -0
  252. package/cjs/styles.js +453 -0
  253. package/esm/core/Alert/Alert.d.ts +0 -1
  254. package/esm/core/Alert/Alert.js +0 -1
  255. package/esm/core/Avatar/Avatar.d.ts +0 -1
  256. package/esm/core/Avatar/Avatar.js +0 -1
  257. package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -1
  258. package/esm/core/AvatarGroup/AvatarGroup.js +0 -1
  259. package/esm/core/Backdrop/Backdrop.d.ts +0 -1
  260. package/esm/core/Backdrop/Backdrop.js +0 -1
  261. package/esm/core/Badge/Badge.d.ts +0 -1
  262. package/esm/core/Badge/Badge.js +0 -1
  263. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  264. package/esm/core/Breadcrumbs/Breadcrumbs.js +0 -1
  265. package/esm/core/ButtonGroup/ButtonGroup.d.ts +0 -1
  266. package/esm/core/ButtonGroup/ButtonGroup.js +0 -1
  267. package/esm/core/Buttons/Button/Button.d.ts +0 -1
  268. package/esm/core/Buttons/Button/Button.js +0 -1
  269. package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
  270. package/esm/core/Buttons/DropdownButton/DropdownButton.js +0 -1
  271. package/esm/core/Buttons/IconButton/IconButton.d.ts +0 -2
  272. package/esm/core/Buttons/IconButton/IconButton.js +0 -2
  273. package/esm/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
  274. package/esm/core/Buttons/SplitButton/SplitButton.js +0 -1
  275. package/esm/core/Carousel/Carousel.d.ts +0 -1
  276. package/esm/core/Carousel/Carousel.js +0 -1
  277. package/esm/core/Carousel/CarouselDotsList.d.ts +0 -1
  278. package/esm/core/Carousel/CarouselDotsList.js +0 -1
  279. package/esm/core/Checkbox/Checkbox.d.ts +0 -1
  280. package/esm/core/Checkbox/Checkbox.js +0 -1
  281. package/esm/core/ColorPicker/ColorBuilder.d.ts +0 -1
  282. package/esm/core/ColorPicker/ColorBuilder.js +0 -1
  283. package/esm/core/ColorPicker/ColorInputPanel.d.ts +0 -1
  284. package/esm/core/ColorPicker/ColorInputPanel.js +0 -1
  285. package/esm/core/ColorPicker/ColorPalette.d.ts +0 -1
  286. package/esm/core/ColorPicker/ColorPalette.js +0 -1
  287. package/esm/core/ColorPicker/ColorPicker.d.ts +0 -1
  288. package/esm/core/ColorPicker/ColorPicker.js +0 -1
  289. package/esm/core/ColorPicker/ColorSwatch.d.ts +0 -1
  290. package/esm/core/ColorPicker/ColorSwatch.js +0 -1
  291. package/esm/core/ComboBox/ComboBox.d.ts +0 -1
  292. package/esm/core/ComboBox/ComboBox.js +0 -1
  293. package/esm/core/DatePicker/DatePicker.d.ts +0 -1
  294. package/esm/core/DatePicker/DatePicker.js +0 -1
  295. package/esm/core/Dialog/Dialog.d.ts +0 -1
  296. package/esm/core/Dialog/Dialog.js +2 -2
  297. package/esm/core/Dialog/DialogButtonBar.d.ts +0 -1
  298. package/esm/core/Dialog/DialogButtonBar.js +0 -1
  299. package/esm/core/Dialog/DialogContent.d.ts +0 -1
  300. package/esm/core/Dialog/DialogContent.js +0 -1
  301. package/esm/core/Dialog/DialogContext.d.ts +4 -0
  302. package/esm/core/Dialog/DialogMain.d.ts +0 -1
  303. package/esm/core/Dialog/DialogMain.js +2 -3
  304. package/esm/core/Dialog/DialogTitleBar.d.ts +0 -1
  305. package/esm/core/Dialog/DialogTitleBar.js +0 -1
  306. package/esm/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
  307. package/esm/core/Dialog/DialogTitleBarTitle.js +0 -1
  308. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
  309. package/esm/core/ExpandableBlock/ExpandableBlock.js +6 -4
  310. package/esm/core/Fieldset/Fieldset.d.ts +0 -1
  311. package/esm/core/Fieldset/Fieldset.js +0 -1
  312. package/esm/core/FileUpload/FileUpload.d.ts +0 -1
  313. package/esm/core/FileUpload/FileUpload.js +0 -1
  314. package/esm/core/FileUpload/FileUploadCard.d.ts +0 -1
  315. package/esm/core/FileUpload/FileUploadCard.js +1 -2
  316. package/esm/core/FileUpload/FileUploadTemplate.d.ts +0 -1
  317. package/esm/core/FileUpload/FileUploadTemplate.js +0 -1
  318. package/esm/core/Footer/Footer.d.ts +0 -1
  319. package/esm/core/Footer/Footer.js +0 -1
  320. package/esm/core/Footer/FooterItem.d.ts +0 -1
  321. package/esm/core/Footer/FooterItem.js +0 -1
  322. package/esm/core/Footer/FooterList.d.ts +0 -1
  323. package/esm/core/Footer/FooterList.js +0 -1
  324. package/esm/core/Footer/FooterSeparator.d.ts +0 -1
  325. package/esm/core/Footer/FooterSeparator.js +0 -1
  326. package/esm/core/Header/Header.d.ts +0 -1
  327. package/esm/core/Header/Header.js +0 -1
  328. package/esm/core/Header/HeaderBreadcrumbs.d.ts +0 -1
  329. package/esm/core/Header/HeaderBreadcrumbs.js +0 -1
  330. package/esm/core/Header/HeaderButton.d.ts +0 -1
  331. package/esm/core/Header/HeaderButton.js +0 -1
  332. package/esm/core/Header/HeaderLogo.d.ts +0 -1
  333. package/esm/core/Header/HeaderLogo.js +0 -1
  334. package/esm/core/InformationPanel/InformationPanel.d.ts +0 -1
  335. package/esm/core/InformationPanel/InformationPanel.js +0 -1
  336. package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
  337. package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
  338. package/esm/core/InformationPanel/InformationPanelContent.d.ts +0 -1
  339. package/esm/core/InformationPanel/InformationPanelContent.js +0 -1
  340. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +0 -1
  341. package/esm/core/InformationPanel/InformationPanelHeader.js +0 -1
  342. package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
  343. package/esm/core/InformationPanel/InformationPanelWrapper.js +0 -1
  344. package/esm/core/Input/Input.d.ts +0 -1
  345. package/esm/core/Input/Input.js +0 -1
  346. package/esm/core/InputGroup/InputGroup.d.ts +0 -1
  347. package/esm/core/InputGroup/InputGroup.js +0 -1
  348. package/esm/core/Label/Label.d.ts +0 -1
  349. package/esm/core/Label/Label.js +0 -1
  350. package/esm/core/LabeledInput/LabeledInput.d.ts +0 -1
  351. package/esm/core/LabeledInput/LabeledInput.js +0 -1
  352. package/esm/core/LabeledSelect/LabeledSelect.d.ts +0 -1
  353. package/esm/core/LabeledSelect/LabeledSelect.js +0 -1
  354. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
  355. package/esm/core/LabeledTextarea/LabeledTextarea.js +0 -1
  356. package/esm/core/List/List.d.ts +0 -1
  357. package/esm/core/List/List.js +0 -1
  358. package/esm/core/List/ListItem.d.ts +0 -1
  359. package/esm/core/List/ListItem.js +0 -1
  360. package/esm/core/Menu/Menu.d.ts +0 -1
  361. package/esm/core/Menu/Menu.js +0 -1
  362. package/esm/core/Menu/MenuDivider.d.ts +0 -1
  363. package/esm/core/Menu/MenuDivider.js +0 -1
  364. package/esm/core/Menu/MenuExtraContent.d.ts +0 -1
  365. package/esm/core/Menu/MenuExtraContent.js +0 -1
  366. package/esm/core/Menu/MenuItem.d.ts +0 -1
  367. package/esm/core/Menu/MenuItem.js +0 -1
  368. package/esm/core/Menu/MenuItemSkeleton.d.ts +0 -1
  369. package/esm/core/Menu/MenuItemSkeleton.js +0 -1
  370. package/esm/core/Modal/Modal.d.ts +0 -1
  371. package/esm/core/Modal/Modal.js +0 -1
  372. package/esm/core/NonIdealState/NonIdealState.d.ts +0 -1
  373. package/esm/core/NonIdealState/NonIdealState.js +0 -1
  374. package/esm/core/NotificationMarker/NotificationMarker.d.ts +0 -1
  375. package/esm/core/NotificationMarker/NotificationMarker.js +0 -1
  376. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
  377. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
  378. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
  379. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
  380. package/esm/core/Radio/Radio.d.ts +0 -1
  381. package/esm/core/Radio/Radio.js +0 -1
  382. package/esm/core/RadioTiles/RadioTile.d.ts +0 -1
  383. package/esm/core/RadioTiles/RadioTile.js +0 -1
  384. package/esm/core/RadioTiles/RadioTileGroup.d.ts +0 -1
  385. package/esm/core/RadioTiles/RadioTileGroup.js +0 -1
  386. package/esm/core/SearchBox/SearchBox.d.ts +0 -1
  387. package/esm/core/SearchBox/SearchBox.js +0 -1
  388. package/esm/core/Select/Select.d.ts +0 -1
  389. package/esm/core/Select/Select.js +0 -1
  390. package/esm/core/Select/SelectTag.d.ts +0 -1
  391. package/esm/core/Select/SelectTag.js +0 -1
  392. package/esm/core/SideNavigation/SideNavigation.d.ts +0 -1
  393. package/esm/core/SideNavigation/SideNavigation.js +0 -1
  394. package/esm/core/SideNavigation/SidenavButton.d.ts +0 -1
  395. package/esm/core/SideNavigation/SidenavButton.js +0 -1
  396. package/esm/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
  397. package/esm/core/SideNavigation/SidenavSubmenu.js +0 -1
  398. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +0 -1
  399. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
  400. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
  401. package/esm/core/SkipToContentLink/SkipToContentLink.js +0 -1
  402. package/esm/core/Slider/Slider.d.ts +0 -1
  403. package/esm/core/Slider/Slider.js +0 -1
  404. package/esm/core/Slider/Track.js +2 -1
  405. package/esm/core/Stepper/Stepper.d.ts +0 -1
  406. package/esm/core/Stepper/Stepper.js +0 -1
  407. package/esm/core/Stepper/WorkflowDiagram.d.ts +0 -1
  408. package/esm/core/Stepper/WorkflowDiagram.js +0 -1
  409. package/esm/core/Surface/Surface.d.ts +0 -1
  410. package/esm/core/Surface/Surface.js +0 -1
  411. package/esm/core/Table/Table.d.ts +0 -1
  412. package/esm/core/Table/Table.js +19 -20
  413. package/esm/core/Table/TableCell.js +3 -2
  414. package/esm/core/Table/TablePaginator.d.ts +0 -1
  415. package/esm/core/Table/TablePaginator.js +9 -10
  416. package/esm/core/Table/TableRowMemoized.js +3 -3
  417. package/esm/core/Table/cells/DefaultCell.js +4 -3
  418. package/esm/core/Table/cells/EditableCell.js +2 -2
  419. package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
  420. package/esm/core/Table/filters/BaseFilter.js +2 -3
  421. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  422. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  423. package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
  424. package/esm/core/Table/filters/FilterButtonBar.js +2 -3
  425. package/esm/core/Table/filters/FilterToggle.d.ts +0 -1
  426. package/esm/core/Table/filters/FilterToggle.js +0 -1
  427. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  428. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  429. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  430. package/esm/core/Table/filters/TextFilter/TextFilter.js +0 -1
  431. package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -4
  432. package/esm/core/Tabs/Tab.d.ts +0 -1
  433. package/esm/core/Tabs/Tab.js +0 -1
  434. package/esm/core/Tabs/Tabs.d.ts +0 -1
  435. package/esm/core/Tabs/Tabs.js +4 -4
  436. package/esm/core/Tag/Tag.d.ts +0 -1
  437. package/esm/core/Tag/Tag.js +0 -1
  438. package/esm/core/Tag/TagContainer.d.ts +0 -1
  439. package/esm/core/Tag/TagContainer.js +0 -1
  440. package/esm/core/Textarea/Textarea.d.ts +0 -1
  441. package/esm/core/Textarea/Textarea.js +0 -1
  442. package/esm/core/ThemeProvider/ThemeProvider.d.ts +0 -2
  443. package/esm/core/ThemeProvider/ThemeProvider.js +0 -2
  444. package/esm/core/Tile/Tile.d.ts +0 -1
  445. package/esm/core/Tile/Tile.js +1 -4
  446. package/esm/core/TimePicker/TimePicker.d.ts +0 -1
  447. package/esm/core/TimePicker/TimePicker.js +0 -1
  448. package/esm/core/Toast/Toast.d.ts +0 -1
  449. package/esm/core/Toast/Toast.js +0 -1
  450. package/esm/core/Toast/ToastWrapper.d.ts +0 -1
  451. package/esm/core/Toast/ToastWrapper.js +0 -1
  452. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  453. package/esm/core/ToggleSwitch/ToggleSwitch.js +1 -3
  454. package/esm/core/Tooltip/Tooltip.d.ts +0 -1
  455. package/esm/core/Tooltip/Tooltip.js +0 -1
  456. package/esm/core/TransferList/TransferList.d.ts +69 -0
  457. package/esm/core/TransferList/TransferList.js +142 -0
  458. package/esm/core/TransferList/index.d.ts +3 -0
  459. package/esm/core/TransferList/index.js +6 -0
  460. package/esm/core/Tree/Tree.d.ts +0 -1
  461. package/esm/core/Tree/Tree.js +0 -1
  462. package/esm/core/Tree/TreeNode.d.ts +0 -1
  463. package/esm/core/Tree/TreeNode.js +0 -1
  464. package/esm/core/Tree/TreeNodeExpander.d.ts +0 -1
  465. package/esm/core/Tree/TreeNodeExpander.js +0 -1
  466. package/esm/core/Typography/Anchor/Anchor.d.ts +0 -1
  467. package/esm/core/Typography/Anchor/Anchor.js +0 -1
  468. package/esm/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  469. package/esm/core/Typography/Blockquote/Blockquote.js +0 -1
  470. package/esm/core/Typography/Code/Code.d.ts +0 -1
  471. package/esm/core/Typography/Code/Code.js +0 -1
  472. package/esm/core/Typography/Kbd/Kbd.d.ts +0 -1
  473. package/esm/core/Typography/Kbd/Kbd.js +0 -1
  474. package/esm/core/Typography/Text/Text.d.ts +0 -1
  475. package/esm/core/Typography/Text/Text.js +0 -1
  476. package/esm/core/index.d.ts +1 -0
  477. package/esm/core/index.js +1 -0
  478. package/esm/core/utils/components/Divider.d.ts +0 -1
  479. package/esm/core/utils/components/Divider.js +0 -1
  480. package/esm/core/utils/components/Flex.d.ts +0 -1
  481. package/esm/core/utils/components/Flex.js +0 -1
  482. package/esm/core/utils/components/Icon.d.ts +0 -1
  483. package/esm/core/utils/components/Icon.js +0 -1
  484. package/esm/core/utils/components/InputContainer.d.ts +0 -1
  485. package/esm/core/utils/components/InputContainer.js +0 -1
  486. package/esm/core/utils/components/InputFlexContainer.d.ts +0 -1
  487. package/esm/core/utils/components/InputFlexContainer.js +0 -1
  488. package/esm/core/utils/components/LinkAction.d.ts +0 -1
  489. package/esm/core/utils/components/LinkAction.js +0 -1
  490. package/esm/core/utils/components/Popover.d.ts +0 -1
  491. package/esm/core/utils/components/Popover.js +0 -1
  492. package/esm/core/utils/components/VisuallyHidden.d.ts +0 -1
  493. package/esm/core/utils/components/VisuallyHidden.js +0 -1
  494. package/esm/core/utils/functions/dom.d.ts +6 -0
  495. package/esm/core/utils/functions/dom.js +15 -1
  496. package/esm/core/utils/functions/index.d.ts +0 -1
  497. package/esm/core/utils/functions/index.js +0 -1
  498. package/esm/core/utils/functions/polymorphic.js +9 -1
  499. package/esm/core/utils/hooks/useGlobals.d.ts +0 -2
  500. package/esm/core/utils/hooks/useGlobals.js +0 -2
  501. package/esm/styles.d.ts +5 -0
  502. package/esm/styles.js +454 -0
  503. package/package.json +14 -11
  504. package/styles.css +1942 -0
  505. package/cjs/core/utils/functions/styles.d.ts +0 -6
  506. package/cjs/core/utils/functions/styles.js +0 -21
  507. package/esm/core/utils/functions/styles.d.ts +0 -6
  508. package/esm/core/utils/functions/styles.js +0 -17
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/side-navigation.css';
9
8
  /**
10
9
  * Subcomponent to be used in the `submenu` prop of `SideNavigation`.
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/side-navigation.css';
4
3
  declare type SidenavSubmenuHeaderProps = {
5
4
  /**
6
5
  * Actions shown at the end of the submenu label.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/side-navigation.css';
9
8
  /**
10
9
  * Header content for `SidenavSubmenu`. Supports truncated label and actions buttons.
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/skip-to-content.css';
4
3
  declare type SkipToContentLinkProps = {
5
4
  /**
6
5
  * The id of the main content that the link directs to. Don't forget the #!
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/skip-to-content.css';
9
8
  /**
10
9
  * `SkipToContentLink` is for screen reader and keyboard users and will not be visible unless tabbed to.
11
10
  * Provides a shortcut to the main content of the page without navigating through the header, etc.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/slider.css';
3
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
4
3
  import type { TooltipProps } from '../Tooltip/Tooltip.js';
5
4
  /**
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { getBoundedValue, useEventListener, Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/slider.css';
9
8
  import { Track } from './Track.js';
10
9
  import { Thumb } from './Thumb.js';
11
10
  const getPercentageOfRectangle = (rect, pointerX, pointerY, orientation) => {
@@ -3,6 +3,7 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
+ import { Box } from '../utils/index.js';
6
7
  function shouldDisplaySegment(segmentIndex, mode) {
7
8
  if ('odd-segments' === mode && 0 === (segmentIndex + 1) % 2) {
8
9
  return true;
@@ -49,7 +50,7 @@ export const Track = (props) => {
49
50
  ? 100.0 -
50
51
  (100.0 * (segment.right - sliderMin)) / (sliderMax - sliderMin)
51
52
  : 100;
52
- return (React.createElement(React.Fragment, { key: index }, shouldDisplaySegment(index, trackDisplayMode) ? (React.createElement("div", { className: 'iui-slider-track', style: {
53
+ return (React.createElement(React.Fragment, { key: index }, shouldDisplaySegment(index, trackDisplayMode) ? (React.createElement(Box, { className: 'iui-slider-track', style: {
53
54
  ...(orientation === 'horizontal'
54
55
  ? {
55
56
  left: `${lowPercent}%`,
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/stepper.css';
3
2
  export declare type StepperLocalization = {
4
3
  stepsCountLabel: (currentStep: number, totalSteps: number) => string;
5
4
  };
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import { Box } from '../utils/index.js';
7
- import '@itwin/itwinui-css/css/stepper.css';
8
7
  import { StepperStep } from './StepperStep.js';
9
8
  const defaultStepperLocalization = {
10
9
  stepsCountLabel: (currentStep, totalSteps) => `Step ${currentStep} of ${totalSteps}:`,
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/workflow-diagram.css';
3
2
  import type { StepperProps } from './Stepper.js';
4
3
  declare type WorkflowDiagramProps = Pick<StepperProps, 'steps'>;
5
4
  export declare const WorkflowDiagram: PolymorphicForwardRefComponent<"ol", WorkflowDiagramProps>;
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import { Box } from '../utils/index.js';
7
- import '@itwin/itwinui-css/css/workflow-diagram.css';
8
7
  import { WorkflowDiagramStep } from './WorkflowDiagramStep.js';
9
8
  export const WorkflowDiagram = React.forwardRef(
10
9
  // TODO: Remove this ref cast. ref and rest props should be applied on the same element
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/surface.css';
4
3
  declare type SurfaceBodyOwnProps = {
5
4
  /**
6
5
  * Gives padding to the surface body
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useSafeContext, supportsHas, Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/surface.css';
9
8
  /**
10
9
  * Helper function that returns one of the preset surface elevation values.
11
10
  */
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { CellProps, TableOptions, Row, TableState } from 'react-table';
3
3
  import type { CommonProps } from '../utils/index.js';
4
- import '@itwin/itwinui-css/css/table.css';
5
4
  import type { TableFilterValue } from './filters/index.js';
6
5
  export declare const tableResizeStartAction = "tableResizeStart";
7
6
  export declare type TablePaginatorRendererProps = {
@@ -6,8 +6,7 @@ import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { actions as TableActions, useFlexLayout, useFilters, useRowSelect, useSortBy, useTable, useExpanded, usePagination, useColumnOrder, useGlobalFilter, } from 'react-table';
8
8
  import { ProgressRadial } from '../ProgressIndicators/index.js';
9
- import { useGlobals, useResizeObserver, SvgSortDown, SvgSortUp, useIsomorphicLayoutEffect, } from '../utils/index.js';
10
- import '@itwin/itwinui-css/css/table.css';
9
+ import { useGlobals, useResizeObserver, SvgSortDown, SvgSortUp, useIsomorphicLayoutEffect, Box, } from '../utils/index.js';
11
10
  import { getCellStyle, getStickyStyle } from './utils.js';
12
11
  import { TableRowMemoized } from './TableRowMemoized.js';
13
12
  import { FilterToggle } from './filters/index.js';
@@ -380,7 +379,7 @@ export const Table = (props) => {
380
379
  }, []);
381
380
  const isHeaderDirectClick = React.useRef(false);
382
381
  return (React.createElement(React.Fragment, null,
383
- React.createElement("div", { ref: (element) => {
382
+ React.createElement(Box, { ref: (element) => {
384
383
  ownerDocument.current = element === null || element === void 0 ? void 0 : element.ownerDocument;
385
384
  if (isResizable) {
386
385
  resizeRef(element);
@@ -399,14 +398,14 @@ export const Table = (props) => {
399
398
  const headerGroupProps = headerGroup.getHeaderGroupProps({
400
399
  className: 'iui-table-row',
401
400
  });
402
- return (React.createElement("div", { className: 'iui-table-header-wrapper', ref: headerRef, onScroll: () => {
401
+ return (React.createElement(Box, { className: 'iui-table-header-wrapper', ref: headerRef, onScroll: () => {
403
402
  if (headerRef.current && bodyRef.current) {
404
403
  bodyRef.current.scrollLeft = headerRef.current.scrollLeft;
405
404
  updateStickyState();
406
405
  }
407
406
  }, key: headerGroupProps.key },
408
- React.createElement("div", { className: 'iui-table-header' },
409
- React.createElement("div", { ...headerGroupProps }, headerGroup.headers.map((column, index) => {
407
+ React.createElement(Box, { className: 'iui-table-header' },
408
+ React.createElement(Box, { ...headerGroupProps }, headerGroup.headers.map((column, index) => {
410
409
  const { onClick, ...restSortProps } = column.getSortByToggleProps();
411
410
  const columnProps = column.getHeaderProps({
412
411
  ...restSortProps,
@@ -421,7 +420,7 @@ export const Table = (props) => {
421
420
  flexWrap: 'unset',
422
421
  },
423
422
  });
424
- return (React.createElement("div", { ...columnProps, ...column.getDragAndDropProps(), key: columnProps.key, title: undefined, ref: (el) => {
423
+ return (React.createElement(Box, { ...columnProps, ...column.getDragAndDropProps(), key: columnProps.key, title: undefined, ref: (el) => {
425
424
  if (el) {
426
425
  columnRefs.current[column.id] = el;
427
426
  column.resizeWidth =
@@ -442,24 +441,24 @@ export const Table = (props) => {
442
441
  } },
443
442
  column.render('Header'),
444
443
  (showFilterButton(column) ||
445
- showSortButton(column)) && (React.createElement("div", { className: 'iui-table-header-actions-container' },
444
+ showSortButton(column)) && (React.createElement(Box, { className: 'iui-table-header-actions-container' },
446
445
  showFilterButton(column) && (React.createElement(FilterToggle, { column: column })),
447
- showSortButton(column) && (React.createElement("div", { className: 'iui-table-cell-end-icon' }, column.isSortedDesc ||
446
+ showSortButton(column) && (React.createElement(Box, { className: 'iui-table-cell-end-icon' }, column.isSortedDesc ||
448
447
  (!column.isSorted && column.sortDescFirst) ? (React.createElement(SvgSortDown, { className: 'iui-table-sort', "aria-hidden": true })) : (React.createElement(SvgSortUp, { className: 'iui-table-sort', "aria-hidden": true })))))),
449
448
  isResizable &&
450
449
  column.isResizerVisible &&
451
450
  (index !== headerGroup.headers.length - 1 ||
452
- columnResizeMode === 'expand') && (React.createElement("div", { ...column.getResizerProps(), className: 'iui-table-resizer' },
453
- React.createElement("div", { className: 'iui-table-resizer-bar' }))),
451
+ columnResizeMode === 'expand') && (React.createElement(Box, { ...column.getResizerProps(), className: 'iui-table-resizer' },
452
+ React.createElement(Box, { className: 'iui-table-resizer-bar' }))),
454
453
  enableColumnReordering &&
455
- !column.disableReordering && (React.createElement("div", { className: 'iui-table-reorder-bar' })),
454
+ !column.disableReordering && (React.createElement(Box, { className: 'iui-table-reorder-bar' })),
456
455
  column.sticky === 'left' &&
457
- state.sticky.isScrolledToRight && (React.createElement("div", { className: 'iui-table-cell-shadow-right' })),
456
+ state.sticky.isScrolledToRight && (React.createElement(Box, { className: 'iui-table-cell-shadow-right' })),
458
457
  column.sticky === 'right' &&
459
- state.sticky.isScrolledToLeft && (React.createElement("div", { className: 'iui-table-cell-shadow-left' }))));
458
+ state.sticky.isScrolledToLeft && (React.createElement(Box, { className: 'iui-table-cell-shadow-left' }))));
460
459
  })))));
461
460
  }),
462
- React.createElement("div", { ...getTableBodyProps({
461
+ React.createElement(Box, { ...getTableBodyProps({
463
462
  className: cx('iui-table-body', {
464
463
  'iui-zebra-striping': styleType === 'zebra-rows',
465
464
  }),
@@ -471,16 +470,16 @@ export const Table = (props) => {
471
470
  }
472
471
  }, tabIndex: -1, "aria-multiselectable": (isSelectable && selectionMode === 'multi') || undefined },
473
472
  data.length !== 0 && (React.createElement(React.Fragment, null, enableVirtualization ? (React.createElement(VirtualScroll, { itemsLength: page.length, itemRenderer: virtualizedItemRenderer, scrollToIndex: scrollToIndex })) : (page.map((_, index) => getPreparedRow(index))))),
474
- isLoading && data.length === 0 && (React.createElement("div", { className: 'iui-table-empty' },
473
+ isLoading && data.length === 0 && (React.createElement(Box, { className: 'iui-table-empty' },
475
474
  React.createElement(ProgressRadial, { indeterminate: true }))),
476
- isLoading && data.length !== 0 && (React.createElement("div", { className: 'iui-table-row' },
477
- React.createElement("div", { className: 'iui-table-cell', style: { justifyContent: 'center' } },
475
+ isLoading && data.length !== 0 && (React.createElement(Box, { className: 'iui-table-row' },
476
+ React.createElement(Box, { className: 'iui-table-cell', style: { justifyContent: 'center' } },
478
477
  React.createElement(ProgressRadial, { indeterminate: true, size: 'small', style: { float: 'none', marginLeft: 0 } })))),
479
- !isLoading && data.length === 0 && !areFiltersSet && (React.createElement("div", { className: 'iui-table-empty' },
478
+ !isLoading && data.length === 0 && !areFiltersSet && (React.createElement(Box, { className: 'iui-table-empty' },
480
479
  React.createElement("div", null, emptyTableContent))),
481
480
  !isLoading &&
482
481
  (data.length === 0 || rows.length === 0) &&
483
- areFiltersSet && (React.createElement("div", { className: 'iui-table-empty' },
482
+ areFiltersSet && (React.createElement(Box, { className: 'iui-table-empty' },
484
483
  React.createElement("div", null, emptyFilteredTableContent)))), paginatorRenderer === null || paginatorRenderer === void 0 ? void 0 :
485
484
  paginatorRenderer(paginatorRendererProps))));
486
485
  };
@@ -8,6 +8,7 @@ import { getCellStyle, getStickyStyle } from './utils.js';
8
8
  import { SubRowExpander } from './SubRowExpander.js';
9
9
  import { SELECTION_CELL_ID } from './columns/index.js';
10
10
  import { DefaultCell } from './cells/index.js';
11
+ import { Box } from '../utils/index.js';
11
12
  export const TableCell = (props) => {
12
13
  const { cell, cellIndex, isDisabled, tableHasSubRows, tableInstance, expanderCell, density, } = props;
13
14
  const hasSubRowExpander = cellIndex ===
@@ -56,9 +57,9 @@ export const TableCell = (props) => {
56
57
  children: (React.createElement(React.Fragment, null,
57
58
  cellContent,
58
59
  cell.column.sticky === 'left' &&
59
- tableInstance.state.sticky.isScrolledToRight && (React.createElement("div", { className: 'iui-table-cell-shadow-right' })),
60
+ tableInstance.state.sticky.isScrolledToRight && (React.createElement(Box, { className: 'iui-table-cell-shadow-right' })),
60
61
  cell.column.sticky === 'right' &&
61
- tableInstance.state.sticky.isScrolledToLeft && (React.createElement("div", { className: 'iui-table-cell-shadow-left' })))),
62
+ tableInstance.state.sticky.isScrolledToLeft && (React.createElement(Box, { className: 'iui-table-cell-shadow-left' })))),
62
63
  };
63
64
  return (React.createElement(React.Fragment, null, cell.column.cellRenderer ? (cell.column.cellRenderer({
64
65
  ...cellRendererProps,
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import '@itwin/itwinui-css/css/table.css';
3
2
  import type { CommonProps } from '../utils/index.js';
4
3
  import type { TablePaginatorRendererProps } from './Table.js';
5
4
  export declare type TablePaginatorProps = {
@@ -4,11 +4,10 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import '@itwin/itwinui-css/css/table.css';
8
7
  import { IconButton, Button, DropdownButton } from '../Buttons/index.js';
9
8
  import { ProgressRadial } from '../ProgressIndicators/index.js';
10
9
  import { MenuItem } from '../Menu/index.js';
11
- import { getBoundedValue, useGlobals, useOverflow, useContainerWidth, SvgChevronLeft, SvgChevronRight, } from '../utils/index.js';
10
+ import { getBoundedValue, useGlobals, useOverflow, useContainerWidth, SvgChevronLeft, SvgChevronRight, Box, } from '../utils/index.js';
12
11
  const defaultLocalization = {
13
12
  pageSizeLabel: (size) => `${size} per page`,
14
13
  rangeLabel: (startIndex, endIndex, totalRows, isLoading) => isLoading
@@ -52,7 +51,7 @@ export const TablePaginator = (props) => {
52
51
  isMounted.current = true;
53
52
  }, [focusedIndex]);
54
53
  const buttonSize = size != 'default' ? 'small' : undefined;
55
- const pageButton = React.useCallback((index, tabIndex = index === focusedIndex ? 0 : -1) => (React.createElement("button", { key: index, type: 'button', className: cx('iui-table-paginator-page-button', {
54
+ 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', {
56
55
  'iui-table-paginator-page-button-small': buttonSize === 'small',
57
56
  }), "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]);
58
57
  const totalPagesCount = Math.ceil(totalRowsCount / pageSize);
@@ -113,19 +112,19 @@ export const TablePaginator = (props) => {
113
112
  const hasNoRows = totalPagesCount === 0;
114
113
  const showPagesList = totalPagesCount > 1 || isLoading;
115
114
  const showPageSizeList = pageSizeList && !!onPageSizeChange && !!totalRowsCount;
116
- const ellipsis = (React.createElement("span", { className: cx('iui-table-paginator-ellipsis', {
115
+ const ellipsis = (React.createElement(Box, { as: 'span', className: cx('iui-table-paginator-ellipsis', {
117
116
  'iui-table-paginator-ellipsis-small': size === 'small',
118
117
  }) }, "\u2026"));
119
118
  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"))));
120
119
  if (!showPagesList && !showPageSizeList) {
121
120
  return null;
122
121
  }
123
- return (React.createElement("div", { className: cx('iui-table-paginator', className), ref: paginatorResizeRef, ...rest },
124
- React.createElement("div", { className: 'iui-left' }, totalSelectedRowsCount > 0 && (React.createElement("span", null, localization.rowsSelectedLabel(totalSelectedRowsCount)))),
125
- showPagesList && (React.createElement("div", { className: 'iui-center', ref: overflowRef },
122
+ return (React.createElement(Box, { className: cx('iui-table-paginator', className), ref: paginatorResizeRef, ...rest },
123
+ React.createElement(Box, { className: 'iui-left' }, totalSelectedRowsCount > 0 && (React.createElement("span", null, localization.rowsSelectedLabel(totalSelectedRowsCount)))),
124
+ showPagesList && (React.createElement(Box, { className: 'iui-center', ref: overflowRef },
126
125
  React.createElement(IconButton, { styleType: 'borderless', disabled: currentPage === 0, onClick: () => onPageChange(currentPage - 1), size: buttonSize, "aria-label": localization.previousPage },
127
126
  React.createElement(SvgChevronLeft, null)),
128
- React.createElement("span", { className: 'iui-table-paginator-pages-group', onKeyDown: onKeyDown, ref: pageListRef }, (() => {
127
+ React.createElement(Box, { as: 'span', className: 'iui-table-paginator-pages-group', onKeyDown: onKeyDown, ref: pageListRef }, (() => {
129
128
  if (hasNoRows) {
130
129
  return noRowsContent;
131
130
  }
@@ -146,9 +145,9 @@ export const TablePaginator = (props) => {
146
145
  })()),
147
146
  React.createElement(IconButton, { styleType: 'borderless', disabled: currentPage === totalPagesCount - 1 || hasNoRows, onClick: () => onPageChange(currentPage + 1), size: buttonSize, "aria-label": localization.nextPage },
148
147
  React.createElement(SvgChevronRight, null)))),
149
- React.createElement("div", { className: 'iui-right' }, showPageSizeList && (React.createElement(React.Fragment, null,
148
+ React.createElement(Box, { className: 'iui-right' }, showPageSizeList && (React.createElement(React.Fragment, null,
150
149
  localization.rowsPerPageLabel !== null &&
151
- paginatorWidth >= 1024 && (React.createElement("span", { className: 'iui-table-paginator-page-size-label' }, localization.rowsPerPageLabel)),
150
+ paginatorWidth >= 1024 && (React.createElement(Box, { as: 'span', className: 'iui-table-paginator-page-size-label' }, localization.rowsPerPageLabel)),
152
151
  React.createElement(DropdownButton, { styleType: 'borderless', size: buttonSize, menuItems: (close) => pageSizeList.map((size) => (React.createElement(MenuItem, { key: size, isSelected: size === pageSize, onClick: () => {
153
152
  close();
154
153
  onPageSizeChange(size);
@@ -4,7 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import { useIntersection, useMergedRefs, WithCSSTransition, } from '../utils/index.js';
7
+ import { Box, useIntersection, useMergedRefs, WithCSSTransition, } from '../utils/index.js';
8
8
  import { TableCell } from './TableCell.js';
9
9
  /**
10
10
  * Memoization is needed to avoid unnecessary re-renders of all rows when additional data is added when lazy-loading.
@@ -51,7 +51,7 @@ export const TableRow = (props) => {
51
51
  };
52
52
  const refs = useMergedRefs(intersectionRef, mergedProps.ref, tableRowRef);
53
53
  return (React.createElement(React.Fragment, null,
54
- React.createElement("div", { ...mergedProps, ref: refs, onClick: (event) => {
54
+ React.createElement(Box, { ...mergedProps, ref: refs, onClick: (event) => {
55
55
  var _a;
56
56
  (_a = mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.onClick) === null || _a === void 0 ? void 0 : _a.call(mergedProps, event);
57
57
  onClick === null || onClick === void 0 ? void 0 : onClick(event, row);
@@ -59,7 +59,7 @@ export const TableRow = (props) => {
59
59
  return (React.createElement(TableCell, { key: cell.getCellProps().key, cell: cell, cellIndex: index, isDisabled: isDisabled, tableHasSubRows: tableHasSubRows, tableInstance: tableInstance, expanderCell: expanderCell, density: density }));
60
60
  })),
61
61
  subComponent && (React.createElement(WithCSSTransition, { in: row.isExpanded },
62
- React.createElement("div", { className: cx('iui-table-row', 'iui-table-expanded-content'), "aria-disabled": isDisabled }, subComponent(row))))));
62
+ React.createElement(Box, { className: cx('iui-table-row', 'iui-table-expanded-content'), "aria-disabled": isDisabled }, subComponent(row))))));
63
63
  };
64
64
  const hasAnySelectedSubRow = (row, selectedRowIds) => {
65
65
  if (selectedRowIds === null || selectedRowIds === void 0 ? void 0 : selectedRowIds[row.id]) {
@@ -4,6 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
+ import { Box } from '../../utils/index.js';
7
8
  /**
8
9
  * Default cell.
9
10
  * It should be passed to `cellRenderer`.
@@ -19,9 +20,9 @@ export const DefaultCell = (props) => {
19
20
  // Omitting `cellProps`
20
21
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
21
22
  const { cellElementProps: { className: cellElementClassName, style: cellElementStyle, ...cellElementProps }, children, startIcon, endIcon, cellProps, isDisabled, className, style, status, ...rest } = props;
22
- return (React.createElement("div", { ...cellElementProps, ...rest, className: cx(cellElementClassName, className), "aria-disabled": (isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(cellProps.row.original)) || undefined, "data-iui-status": status, style: { ...cellElementStyle, ...style } },
23
- startIcon && (React.createElement("div", { className: 'iui-table-cell-start-icon' }, startIcon)),
23
+ return (React.createElement(Box, { ...cellElementProps, ...rest, className: cx(cellElementClassName, className), "aria-disabled": (isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(cellProps.row.original)) || undefined, "data-iui-status": status, style: { ...cellElementStyle, ...style } },
24
+ startIcon && (React.createElement(Box, { className: 'iui-table-cell-start-icon' }, startIcon)),
24
25
  children,
25
- endIcon && React.createElement("div", { className: 'iui-table-cell-end-icon' }, endIcon)));
26
+ endIcon && React.createElement(Box, { className: 'iui-table-cell-end-icon' }, endIcon)));
26
27
  };
27
28
  export default DefaultCell;
@@ -3,7 +3,7 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
- import { getRandomValue } from '../../utils/index.js';
6
+ import { Box, getRandomValue } from '../../utils/index.js';
7
7
  /**
8
8
  * Editable cell.
9
9
  * It should be passed to `cellRenderer`.
@@ -26,7 +26,7 @@ export const EditableCell = (props) => {
26
26
  }, [cellProps.value]);
27
27
  const [key, setKey] = React.useState(getRandomValue(10));
28
28
  const [isDirty, setIsDirty] = React.useState(false);
29
- return (React.createElement("div", { ...cellElementProps, contentEditable: true, suppressContentEditableWarning: true, key: key, ...rest, onInput: (e) => {
29
+ return (React.createElement(Box, { ...cellElementProps, contentEditable: true, suppressContentEditableWarning: true, key: key, ...rest, onInput: (e) => {
30
30
  var _a;
31
31
  setValue(sanitizeString(e.target.innerText));
32
32
  setIsDirty(true);
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/table.css';
3
2
  import type { CommonProps } from '../../utils/index.js';
4
3
  export declare type BaseFilterProps = {
5
4
  /**
@@ -4,8 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import '@itwin/itwinui-css/css/table.css';
8
- import { useGlobals } from '../../utils/index.js';
7
+ import { Box, useGlobals } from '../../utils/index.js';
9
8
  /**
10
9
  * Filter wrapper that should be used when creating custom filters.
11
10
  * @example
@@ -23,7 +22,7 @@ import { useGlobals } from '../../utils/index.js';
23
22
  export const BaseFilter = (props) => {
24
23
  const { children, className, style, id } = props;
25
24
  useGlobals();
26
- return (React.createElement("div", { className: cx('iui-table-column-filter', className), style: style,
25
+ return (React.createElement(Box, { className: cx('iui-table-column-filter', className), style: style,
27
26
  // Prevents from triggering sort
28
27
  onClick: (e) => {
29
28
  e.stopPropagation();
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
3
3
  import type { TableFilterProps } from '../types.js';
4
- import '@itwin/itwinui-css/css/table.css';
5
4
  export declare type DateRangeTranslation = {
6
5
  from: string;
7
6
  to: string;
@@ -6,7 +6,6 @@ import * as React from 'react';
6
6
  import { useGlobals } from '../../../utils/index.js';
7
7
  import { FilterButtonBar } from '../FilterButtonBar.js';
8
8
  import { BaseFilter } from '../BaseFilter.js';
9
- import '@itwin/itwinui-css/css/table.css';
10
9
  import DatePickerInput from './DatePickerInput.js';
11
10
  const defaultStrings = {
12
11
  from: 'From',
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/table.css';
3
2
  import type { CommonProps } from '../../utils/index.js';
4
3
  export declare type FilterButtonBarTranslation = {
5
4
  filter: string;
@@ -4,8 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import '@itwin/itwinui-css/css/table.css';
8
- import { useGlobals } from '../../utils/index.js';
7
+ import { Box, useGlobals } from '../../utils/index.js';
9
8
  import { Button } from '../../Buttons/index.js';
10
9
  const defaultStrings = {
11
10
  filter: 'Filter',
@@ -20,7 +19,7 @@ export const FilterButtonBar = (props) => {
20
19
  const { children, setFilter, clearFilter, translatedLabels, className, style, id, } = props;
21
20
  const translatedStrings = { ...defaultStrings, ...translatedLabels };
22
21
  useGlobals();
23
- return (React.createElement("div", { className: cx('iui-button-bar', className), style: style, id: id },
22
+ return (React.createElement(Box, { className: cx('iui-button-bar', className), style: style, id: id },
24
23
  children,
25
24
  React.createElement(Button, { styleType: 'high-visibility', onClick: setFilter }, translatedStrings.filter),
26
25
  React.createElement(Button, { onClick: clearFilter }, translatedStrings.clear)));
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { HeaderGroup } from 'react-table';
3
- import '@itwin/itwinui-css/css/table.css';
4
3
  import type { CommonProps } from '../../utils/index.js';
5
4
  export declare type FilterToggleProps<T extends Record<string, unknown>> = {
6
5
  column: HeaderGroup<T>;
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import '@itwin/itwinui-css/css/table.css';
8
7
  import { useGlobals, Popover, SvgFilterHollow, SvgFilter, } from '../../utils/index.js';
9
8
  import { IconButton } from '../../Buttons/index.js';
10
9
  /**
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
3
3
  import type { TableFilterProps } from '../types.js';
4
- import '@itwin/itwinui-css/css/table.css';
5
4
  export declare type NumberRangeTranslation = {
6
5
  from: string;
7
6
  to: string;
@@ -6,7 +6,6 @@ import * as React from 'react';
6
6
  import { useGlobals } from '../../../utils/index.js';
7
7
  import { FilterButtonBar } from '../FilterButtonBar.js';
8
8
  import { BaseFilter } from '../BaseFilter.js';
9
- import '@itwin/itwinui-css/css/table.css';
10
9
  import { LabeledInput } from '../../../LabeledInput/index.js';
11
10
  const defaultStrings = {
12
11
  from: 'From',
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import '@itwin/itwinui-css/css/table.css';
3
2
  import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
4
3
  import type { TableFilterProps } from '../types.js';
5
4
  export declare type TextFilterProps<T extends Record<string, unknown>> = TableFilterProps<T> & {
@@ -3,7 +3,6 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
- import '@itwin/itwinui-css/css/table.css';
7
6
  import { useGlobals } from '../../../utils/index.js';
8
7
  import { Input } from '../../../Input/index.js';
9
8
  import { FilterButtonBar } from '../FilterButtonBar.js';
@@ -1,4 +1,5 @@
1
1
  import { actions, makePropGetter, useGetLatest } from 'react-table';
2
+ import styles from '../../../styles.js';
2
3
  const REORDER_ACTIONS = {
3
4
  columnDragStart: 'columnDragStart',
4
5
  columnDragEnd: 'columnDragEnd',
@@ -20,13 +21,13 @@ const defaultGetDragAndDropProps = (isEnabled) => (props, { instance, header, })
20
21
  };
21
22
  const setOnDragColumnStyle = (event, position) => {
22
23
  const columnElement = event.currentTarget;
23
- columnElement.classList.remove('iui-table-reorder-column-right');
24
- columnElement.classList.remove('iui-table-reorder-column-left');
24
+ columnElement.classList.remove(styles['iui-table-reorder-column-right']);
25
+ columnElement.classList.remove(styles['iui-table-reorder-column-left']);
25
26
  if (position === 'left') {
26
- columnElement.classList.add('iui-table-reorder-column-left');
27
+ columnElement.classList.add(styles['iui-table-reorder-column-left']);
27
28
  }
28
29
  else if (position === 'right') {
29
- columnElement.classList.add('iui-table-reorder-column-right');
30
+ columnElement.classList.add(styles['iui-table-reorder-column-right']);
30
31
  }
31
32
  };
32
33
  const reorderColumns = (tableColumns, srcIndex, dstIndex) => {
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/tabs.css';
4
3
  declare type TabProps = {
5
4
  /**
6
5
  * The main label shown in the tab.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { Box } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tabs.css';
9
8
  /**
10
9
  * Individual tab component to be used in the `labels` prop of `Tabs`.
11
10
  * @example
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/tabs.css';
3
2
  export declare type OverflowOptions = {
4
3
  /**
5
4
  * Whether to allow tabs list to scroll when there is overflow,
@@ -5,8 +5,8 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useMergedRefs, getBoundedValue, useContainerWidth, useIsomorphicLayoutEffect, useIsClient, useResizeObserver, Box, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tabs.css';
9
8
  import { Tab } from './Tab.js';
9
+ import styles from '../../styles.js';
10
10
  /**
11
11
  * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
12
12
  * @example
@@ -85,7 +85,7 @@ export const Tabs = (props) => {
85
85
  const [focusedIndex, setFocusedIndex] = React.useState();
86
86
  React.useEffect(() => {
87
87
  if (tablistRef.current && focusedIndex !== undefined) {
88
- const tab = tablistRef.current.querySelectorAll('.iui-tab')[focusedIndex];
88
+ const tab = tablistRef.current.querySelectorAll(`.${styles['iui-tab']}`)[focusedIndex];
89
89
  tab === null || tab === void 0 ? void 0 : tab.focus();
90
90
  }
91
91
  }, [focusedIndex]);
@@ -93,7 +93,7 @@ export const Tabs = (props) => {
93
93
  useIsomorphicLayoutEffect(() => {
94
94
  var _a;
95
95
  setHasSublabel(type !== 'pill' && // pill tabs should never have sublabels
96
- !!((_a = tablistRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.iui-tab-description')));
96
+ !!((_a = tablistRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(`.${styles['iui-tab-description']}`)));
97
97
  }, [type]);
98
98
  const enableHorizontalScroll = React.useCallback((e) => {
99
99
  var _a;
@@ -203,7 +203,7 @@ export const Tabs = (props) => {
203
203
  if (ownerDoc !== null &&
204
204
  (overflowOptions === null || overflowOptions === void 0 ? void 0 : overflowOptions.useOverflow) &&
205
205
  currentActiveIndex !== undefined) {
206
- const activeTab = ownerDoc.querySelectorAll('.iui-tab')[currentActiveIndex];
206
+ const activeTab = ownerDoc.querySelectorAll(`.${styles['iui-tab']}`)[currentActiveIndex];
207
207
  const isVertical = orientation === 'vertical';
208
208
  const tabPlacement = isTabHidden(activeTab, isVertical);
209
209
  if (tabPlacement) {