@itwin/itwinui-react 2.11.5 → 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 (931) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +30 -24
  3. package/cjs/core/Alert/Alert.d.ts +4 -5
  4. package/cjs/core/Alert/Alert.js +8 -11
  5. package/cjs/core/Alert/index.d.ts +0 -1
  6. package/cjs/core/Avatar/Avatar.d.ts +6 -15
  7. package/cjs/core/Avatar/Avatar.js +6 -9
  8. package/cjs/core/Avatar/index.d.ts +0 -1
  9. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +5 -10
  10. package/cjs/core/AvatarGroup/AvatarGroup.js +14 -18
  11. package/cjs/core/AvatarGroup/index.d.ts +0 -1
  12. package/cjs/core/Backdrop/Backdrop.d.ts +3 -4
  13. package/cjs/core/Backdrop/Backdrop.js +1 -3
  14. package/cjs/core/Backdrop/index.d.ts +0 -1
  15. package/cjs/core/Badge/Badge.d.ts +4 -7
  16. package/cjs/core/Badge/Badge.js +3 -6
  17. package/cjs/core/Badge/index.d.ts +0 -1
  18. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +4 -78
  19. package/cjs/core/Breadcrumbs/Breadcrumbs.js +5 -7
  20. package/cjs/core/Breadcrumbs/index.d.ts +0 -1
  21. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +4 -4
  22. package/cjs/core/ButtonGroup/ButtonGroup.js +15 -14
  23. package/cjs/core/ButtonGroup/index.d.ts +0 -1
  24. package/cjs/core/Buttons/Button/Button.d.ts +4 -11
  25. package/cjs/core/Buttons/Button/Button.js +4 -6
  26. package/cjs/core/Buttons/Button/index.d.ts +0 -1
  27. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +5 -22
  28. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -2
  29. package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -1
  30. package/cjs/core/Buttons/IconButton/IconButton.d.ts +2 -5
  31. package/cjs/core/Buttons/IconButton/IconButton.js +4 -7
  32. package/cjs/core/Buttons/IconButton/index.d.ts +0 -1
  33. package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +3 -3
  34. package/cjs/core/Buttons/IdeasButton/IdeasButton.js +0 -1
  35. package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -1
  36. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +2 -4
  37. package/cjs/core/Buttons/SplitButton/SplitButton.js +1 -3
  38. package/cjs/core/Buttons/SplitButton/index.d.ts +0 -1
  39. package/cjs/core/Buttons/index.d.ts +0 -5
  40. package/cjs/core/Carousel/Carousel.d.ts +24 -27
  41. package/cjs/core/Carousel/Carousel.js +22 -23
  42. package/cjs/core/Carousel/CarouselDot.d.ts +11 -9
  43. package/cjs/core/Carousel/CarouselDot.js +2 -1
  44. package/cjs/core/Carousel/CarouselDotsList.d.ts +11 -10
  45. package/cjs/core/Carousel/CarouselDotsList.js +1 -3
  46. package/cjs/core/Carousel/CarouselNavigation.d.ts +14 -5
  47. package/cjs/core/Carousel/CarouselNavigation.js +13 -9
  48. package/cjs/core/Carousel/CarouselSlide.d.ts +10 -8
  49. package/cjs/core/Carousel/CarouselSlide.js +1 -1
  50. package/cjs/core/Carousel/CarouselSlider.d.ts +2 -2
  51. package/cjs/core/Carousel/CarouselSlider.js +1 -1
  52. package/cjs/core/Carousel/index.d.ts +0 -1
  53. package/cjs/core/Checkbox/Checkbox.d.ts +4 -32
  54. package/cjs/core/Checkbox/Checkbox.js +3 -5
  55. package/cjs/core/Checkbox/index.d.ts +0 -1
  56. package/cjs/core/ColorPicker/ColorBuilder.d.ts +2 -5
  57. package/cjs/core/ColorPicker/ColorBuilder.js +3 -5
  58. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +4 -19
  59. package/cjs/core/ColorPicker/ColorInputPanel.js +4 -6
  60. package/cjs/core/ColorPicker/ColorPalette.d.ts +3 -17
  61. package/cjs/core/ColorPicker/ColorPalette.js +3 -5
  62. package/cjs/core/ColorPicker/ColorPicker.d.ts +4 -5
  63. package/cjs/core/ColorPicker/ColorPicker.js +3 -6
  64. package/cjs/core/ColorPicker/ColorSwatch.d.ts +4 -6
  65. package/cjs/core/ColorPicker/ColorSwatch.js +1 -3
  66. package/cjs/core/ColorPicker/index.d.ts +0 -5
  67. package/cjs/core/ComboBox/ComboBox.d.ts +4 -5
  68. package/cjs/core/ComboBox/ComboBox.js +5 -8
  69. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +3 -3
  70. package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +7 -5
  71. package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -1
  72. package/cjs/core/ComboBox/ComboBoxInput.d.ts +7 -6
  73. package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +3 -7
  74. package/cjs/core/ComboBox/ComboBoxInputContainer.js +4 -5
  75. package/cjs/core/ComboBox/ComboBoxMenu.d.ts +5 -2
  76. package/cjs/core/ComboBox/ComboBoxMenu.js +2 -2
  77. package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +6 -19
  78. package/cjs/core/ComboBox/ComboBoxMenuItem.js +8 -22
  79. package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +6 -3
  80. package/cjs/core/ComboBox/index.d.ts +0 -1
  81. package/cjs/core/DatePicker/DatePicker.d.ts +4 -5
  82. package/cjs/core/DatePicker/DatePicker.js +9 -12
  83. package/cjs/core/DatePicker/index.d.ts +0 -1
  84. package/cjs/core/Dialog/Dialog.d.ts +13 -10
  85. package/cjs/core/Dialog/Dialog.js +22 -23
  86. package/cjs/core/Dialog/DialogBackdrop.d.ts +4 -4
  87. package/cjs/core/Dialog/DialogBackdrop.js +1 -3
  88. package/cjs/core/Dialog/DialogButtonBar.d.ts +1 -9
  89. package/cjs/core/Dialog/DialogButtonBar.js +1 -34
  90. package/cjs/core/Dialog/DialogContent.d.ts +1 -9
  91. package/cjs/core/Dialog/DialogContent.js +1 -34
  92. package/cjs/core/Dialog/DialogContext.d.ts +4 -0
  93. package/cjs/core/Dialog/DialogMain.d.ts +3 -3
  94. package/cjs/core/Dialog/DialogMain.js +3 -5
  95. package/cjs/core/Dialog/DialogTitleBar.d.ts +5 -5
  96. package/cjs/core/Dialog/DialogTitleBar.js +1 -3
  97. package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +1 -9
  98. package/cjs/core/Dialog/DialogTitleBarTitle.js +1 -34
  99. package/cjs/core/Dialog/index.d.ts +0 -5
  100. package/cjs/core/DropdownMenu/DropdownMenu.js +0 -1
  101. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +9 -5
  102. package/cjs/core/ExpandableBlock/ExpandableBlock.js +14 -14
  103. package/cjs/core/ExpandableBlock/index.d.ts +0 -1
  104. package/cjs/core/Fieldset/Fieldset.d.ts +4 -4
  105. package/cjs/core/Fieldset/Fieldset.js +3 -6
  106. package/cjs/core/Fieldset/index.d.ts +0 -1
  107. package/cjs/core/FileUpload/FileEmptyCard.d.ts +4 -11
  108. package/cjs/core/FileUpload/FileEmptyCard.js +16 -13
  109. package/cjs/core/FileUpload/FileUpload.d.ts +4 -26
  110. package/cjs/core/FileUpload/FileUpload.js +3 -5
  111. package/cjs/core/FileUpload/FileUploadCard.d.ts +11 -52
  112. package/cjs/core/FileUpload/FileUploadCard.js +43 -36
  113. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +4 -4
  114. package/cjs/core/FileUpload/FileUploadTemplate.js +5 -8
  115. package/cjs/core/FileUpload/index.d.ts +0 -4
  116. package/cjs/core/Footer/Footer.d.ts +6 -11
  117. package/cjs/core/Footer/Footer.js +1 -3
  118. package/cjs/core/Footer/FooterItem.d.ts +1 -4
  119. package/cjs/core/Footer/FooterItem.js +1 -35
  120. package/cjs/core/Footer/FooterList.d.ts +1 -4
  121. package/cjs/core/Footer/FooterList.js +1 -35
  122. package/cjs/core/Footer/FooterSeparator.d.ts +1 -4
  123. package/cjs/core/Footer/FooterSeparator.js +3 -35
  124. package/cjs/core/Footer/index.d.ts +1 -1
  125. package/cjs/core/Header/Header.d.ts +5 -6
  126. package/cjs/core/Header/Header.js +7 -10
  127. package/cjs/core/Header/HeaderBasicButton.d.ts +2 -4
  128. package/cjs/core/Header/HeaderBasicButton.js +4 -11
  129. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +3 -3
  130. package/cjs/core/Header/HeaderBreadcrumbs.js +10 -9
  131. package/cjs/core/Header/HeaderButton.d.ts +5 -7
  132. package/cjs/core/Header/HeaderButton.js +8 -25
  133. package/cjs/core/Header/HeaderDropdownButton.d.ts +2 -4
  134. package/cjs/core/Header/HeaderDropdownButton.js +0 -1
  135. package/cjs/core/Header/HeaderLogo.d.ts +1 -3
  136. package/cjs/core/Header/HeaderLogo.js +5 -13
  137. package/cjs/core/Header/HeaderSplitButton.d.ts +2 -4
  138. package/cjs/core/Header/HeaderSplitButton.js +3 -4
  139. package/cjs/core/Header/index.d.ts +0 -4
  140. package/cjs/core/InformationPanel/InformationPanel.d.ts +4 -25
  141. package/cjs/core/InformationPanel/InformationPanel.js +3 -5
  142. package/cjs/core/InformationPanel/InformationPanelBody.d.ts +1 -10
  143. package/cjs/core/InformationPanel/InformationPanelBody.js +1 -35
  144. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +4 -5
  145. package/cjs/core/InformationPanel/InformationPanelContent.js +3 -6
  146. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +4 -5
  147. package/cjs/core/InformationPanel/InformationPanelHeader.js +5 -8
  148. package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +1 -7
  149. package/cjs/core/InformationPanel/InformationPanelWrapper.js +1 -35
  150. package/cjs/core/InformationPanel/index.d.ts +0 -5
  151. package/cjs/core/Input/Input.d.ts +3 -14
  152. package/cjs/core/Input/Input.js +1 -3
  153. package/cjs/core/Input/index.d.ts +0 -1
  154. package/cjs/core/InputGroup/InputGroup.d.ts +4 -5
  155. package/cjs/core/InputGroup/InputGroup.js +5 -8
  156. package/cjs/core/InputGroup/index.d.ts +0 -1
  157. package/cjs/core/Label/Label.d.ts +3 -10
  158. package/cjs/core/Label/Label.js +5 -8
  159. package/cjs/core/Label/index.d.ts +0 -1
  160. package/cjs/core/LabeledInput/LabeledInput.d.ts +2 -47
  161. package/cjs/core/LabeledInput/LabeledInput.js +0 -2
  162. package/cjs/core/LabeledInput/index.d.ts +0 -1
  163. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -2
  164. package/cjs/core/LabeledSelect/LabeledSelect.js +0 -2
  165. package/cjs/core/LabeledSelect/index.d.ts +0 -1
  166. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +4 -27
  167. package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -2
  168. package/cjs/core/LabeledTextarea/index.d.ts +0 -1
  169. package/cjs/core/List/List.d.ts +1 -6
  170. package/cjs/core/List/List.js +2 -34
  171. package/cjs/core/List/ListItem.d.ts +6 -14
  172. package/cjs/core/List/ListItem.js +9 -16
  173. package/cjs/core/List/index.d.ts +0 -2
  174. package/cjs/core/Menu/Menu.d.ts +4 -28
  175. package/cjs/core/Menu/Menu.js +2 -4
  176. package/cjs/core/Menu/MenuDivider.d.ts +1 -5
  177. package/cjs/core/Menu/MenuDivider.js +3 -35
  178. package/cjs/core/Menu/MenuExtraContent.d.ts +1 -7
  179. package/cjs/core/Menu/MenuExtraContent.js +3 -35
  180. package/cjs/core/Menu/MenuItem.d.ts +14 -61
  181. package/cjs/core/Menu/MenuItem.js +12 -24
  182. package/cjs/core/Menu/MenuItemSkeleton.d.ts +4 -6
  183. package/cjs/core/Menu/MenuItemSkeleton.js +8 -11
  184. package/cjs/core/Menu/index.d.ts +0 -5
  185. package/cjs/core/Modal/Modal.d.ts +5 -6
  186. package/cjs/core/Modal/Modal.js +3 -6
  187. package/cjs/core/Modal/ModalButtonBar.d.ts +1 -9
  188. package/cjs/core/Modal/ModalButtonBar.js +1 -26
  189. package/cjs/core/Modal/ModalContent.d.ts +1 -9
  190. package/cjs/core/Modal/ModalContent.js +1 -26
  191. package/cjs/core/Modal/index.d.ts +0 -3
  192. package/cjs/core/NonIdealState/NonIdealState.d.ts +4 -4
  193. package/cjs/core/NonIdealState/NonIdealState.js +7 -10
  194. package/cjs/core/NonIdealState/index.d.ts +1 -2
  195. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +4 -4
  196. package/cjs/core/NotificationMarker/NotificationMarker.js +1 -3
  197. package/cjs/core/NotificationMarker/index.d.ts +0 -1
  198. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +4 -5
  199. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +8 -11
  200. package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -1
  201. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +4 -5
  202. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +10 -13
  203. package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -1
  204. package/cjs/core/ProgressIndicators/index.d.ts +0 -2
  205. package/cjs/core/Radio/Radio.d.ts +4 -18
  206. package/cjs/core/Radio/Radio.js +3 -5
  207. package/cjs/core/Radio/index.d.ts +0 -1
  208. package/cjs/core/RadioTiles/RadioTile.d.ts +4 -22
  209. package/cjs/core/RadioTiles/RadioTile.js +6 -11
  210. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +5 -5
  211. package/cjs/core/RadioTiles/RadioTileGroup.js +4 -7
  212. package/cjs/core/RadioTiles/index.d.ts +0 -2
  213. package/cjs/core/SearchBox/SearchBox.d.ts +4 -17
  214. package/cjs/core/SearchBox/SearchBox.js +1 -3
  215. package/cjs/core/SearchBox/index.d.ts +0 -1
  216. package/cjs/core/Select/Select.d.ts +6 -2
  217. package/cjs/core/Select/Select.js +12 -13
  218. package/cjs/core/Select/SelectTag.d.ts +4 -6
  219. package/cjs/core/Select/SelectTag.js +4 -7
  220. package/cjs/core/Select/SelectTagContainer.d.ts +4 -8
  221. package/cjs/core/Select/SelectTagContainer.js +1 -2
  222. package/cjs/core/Select/index.d.ts +1 -1
  223. package/cjs/core/SideNavigation/SideNavigation.d.ts +4 -5
  224. package/cjs/core/SideNavigation/SideNavigation.js +7 -10
  225. package/cjs/core/SideNavigation/SidenavButton.d.ts +3 -5
  226. package/cjs/core/SideNavigation/SidenavButton.js +2 -7
  227. package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +2 -15
  228. package/cjs/core/SideNavigation/SidenavSubmenu.js +2 -4
  229. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +4 -9
  230. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +5 -8
  231. package/cjs/core/SideNavigation/index.d.ts +0 -4
  232. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +4 -14
  233. package/cjs/core/SkipToContentLink/SkipToContentLink.js +1 -3
  234. package/cjs/core/SkipToContentLink/index.d.ts +0 -1
  235. package/cjs/core/Slider/Slider.d.ts +4 -100
  236. package/cjs/core/Slider/Slider.js +6 -8
  237. package/cjs/core/Slider/Thumb.d.ts +3 -2
  238. package/cjs/core/Slider/Thumb.js +2 -1
  239. package/cjs/core/Slider/Track.js +2 -1
  240. package/cjs/core/Slider/index.d.ts +0 -1
  241. package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
  242. package/cjs/core/StatusMessage/StatusMessage.js +3 -18
  243. package/cjs/core/StatusMessage/index.d.ts +0 -1
  244. package/cjs/core/Stepper/Stepper.d.ts +2 -3
  245. package/cjs/core/Stepper/Stepper.js +3 -5
  246. package/cjs/core/Stepper/StepperStep.d.ts +3 -4
  247. package/cjs/core/Stepper/StepperStep.js +8 -8
  248. package/cjs/core/Stepper/Wizard.js +3 -1
  249. package/cjs/core/Stepper/WorkflowDiagram.d.ts +3 -4
  250. package/cjs/core/Stepper/WorkflowDiagram.js +5 -5
  251. package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
  252. package/cjs/core/Stepper/WorkflowDiagramStep.js +3 -2
  253. package/cjs/core/Stepper/index.d.ts +2 -3
  254. package/cjs/core/Surface/Surface.d.ts +5 -18
  255. package/cjs/core/Surface/Surface.js +7 -7
  256. package/cjs/core/Surface/index.d.ts +0 -1
  257. package/cjs/core/Table/Table.d.ts +0 -1
  258. package/cjs/core/Table/Table.js +19 -20
  259. package/cjs/core/Table/TableCell.js +3 -2
  260. package/cjs/core/Table/TablePaginator.d.ts +0 -1
  261. package/cjs/core/Table/TablePaginator.js +9 -10
  262. package/cjs/core/Table/TableRowMemoized.js +2 -2
  263. package/cjs/core/Table/cells/DefaultCell.js +4 -3
  264. package/cjs/core/Table/cells/EditableCell.js +1 -1
  265. package/cjs/core/Table/columns/actionColumn.js +1 -1
  266. package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
  267. package/cjs/core/Table/columns/expanderColumn.js +1 -1
  268. package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
  269. package/cjs/core/Table/filters/BaseFilter.js +2 -3
  270. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -3
  271. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  272. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +1 -2
  273. package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
  274. package/cjs/core/Table/filters/FilterButtonBar.js +2 -3
  275. package/cjs/core/Table/filters/FilterToggle.d.ts +2 -3
  276. package/cjs/core/Table/filters/FilterToggle.js +1 -2
  277. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  278. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -2
  279. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  280. package/cjs/core/Table/filters/TextFilter/TextFilter.js +1 -2
  281. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -4
  282. package/cjs/core/Tabs/Tab.d.ts +10 -4
  283. package/cjs/core/Tabs/Tab.js +7 -14
  284. package/cjs/core/Tabs/Tabs.d.ts +2 -3
  285. package/cjs/core/Tabs/Tabs.js +10 -13
  286. package/cjs/core/Tabs/index.d.ts +0 -2
  287. package/cjs/core/Tag/Tag.d.ts +4 -5
  288. package/cjs/core/Tag/Tag.js +5 -8
  289. package/cjs/core/Tag/TagContainer.d.ts +4 -5
  290. package/cjs/core/Tag/TagContainer.js +4 -7
  291. package/cjs/core/Tag/index.d.ts +0 -2
  292. package/cjs/core/Textarea/Textarea.d.ts +3 -10
  293. package/cjs/core/Textarea/Textarea.js +1 -3
  294. package/cjs/core/Textarea/index.d.ts +0 -1
  295. package/cjs/core/ThemeProvider/ThemeContext.d.ts +7 -0
  296. package/cjs/core/{Typography/Small/Small.js → ThemeProvider/ThemeContext.js} +2 -18
  297. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +11 -14
  298. package/cjs/core/ThemeProvider/ThemeProvider.js +6 -18
  299. package/cjs/core/ThemeProvider/index.d.ts +1 -1
  300. package/cjs/core/Tile/Tile.d.ts +6 -8
  301. package/cjs/core/Tile/Tile.js +18 -23
  302. package/cjs/core/Tile/index.d.ts +0 -1
  303. package/cjs/core/TimePicker/TimePicker.d.ts +3 -4
  304. package/cjs/core/TimePicker/TimePicker.js +5 -8
  305. package/cjs/core/TimePicker/index.d.ts +1 -1
  306. package/cjs/core/Toast/Toast.d.ts +0 -1
  307. package/cjs/core/Toast/Toast.js +5 -6
  308. package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
  309. package/cjs/core/Toast/ToastWrapper.js +2 -2
  310. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +4 -4
  311. package/cjs/core/ToggleSwitch/ToggleSwitch.js +4 -12
  312. package/cjs/core/ToggleSwitch/index.d.ts +0 -1
  313. package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
  314. package/cjs/core/Tooltip/Tooltip.js +1 -3
  315. package/cjs/core/Tooltip/index.d.ts +0 -1
  316. package/cjs/core/TransferList/TransferList.d.ts +69 -0
  317. package/cjs/core/TransferList/TransferList.js +148 -0
  318. package/cjs/core/TransferList/index.d.ts +3 -0
  319. package/cjs/core/{Typography/Headline → TransferList}/index.js +4 -4
  320. package/cjs/core/Tree/Tree.d.ts +1 -2
  321. package/cjs/core/Tree/Tree.js +4 -5
  322. package/cjs/core/Tree/TreeNode.d.ts +1 -2
  323. package/cjs/core/Tree/TreeNode.js +10 -16
  324. package/cjs/core/Tree/TreeNodeExpander.d.ts +4 -5
  325. package/cjs/core/Tree/TreeNodeExpander.js +3 -5
  326. package/cjs/core/Tree/index.d.ts +1 -3
  327. package/cjs/core/Typography/Anchor/Anchor.d.ts +1 -6
  328. package/cjs/core/Typography/Anchor/Anchor.js +1 -34
  329. package/cjs/core/Typography/Anchor/index.d.ts +0 -1
  330. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +4 -9
  331. package/cjs/core/Typography/Blockquote/Blockquote.js +1 -3
  332. package/cjs/core/Typography/Blockquote/index.d.ts +0 -1
  333. package/cjs/core/Typography/Code/Code.d.ts +1 -10
  334. package/cjs/core/Typography/Code/Code.js +1 -35
  335. package/cjs/core/Typography/Code/index.d.ts +0 -1
  336. package/cjs/core/Typography/Kbd/Kbd.d.ts +4 -6
  337. package/cjs/core/Typography/Kbd/Kbd.js +3 -6
  338. package/cjs/core/Typography/Kbd/index.d.ts +0 -1
  339. package/cjs/core/Typography/Text/Text.d.ts +3 -7
  340. package/cjs/core/Typography/Text/Text.js +2 -4
  341. package/cjs/core/Typography/Text/index.d.ts +0 -1
  342. package/cjs/core/Typography/index.d.ts +0 -17
  343. package/cjs/core/Typography/index.js +10 -22
  344. package/cjs/core/index.d.ts +11 -57
  345. package/cjs/core/index.js +118 -123
  346. package/cjs/core/utils/components/Box.d.ts +6 -0
  347. package/cjs/core/{Typography/Leading/index.js → utils/components/Box.js} +8 -4
  348. package/cjs/core/utils/components/Divider.d.ts +4 -5
  349. package/cjs/core/utils/components/Divider.js +2 -4
  350. package/cjs/core/utils/components/Flex.d.ts +1 -5
  351. package/cjs/core/utils/components/Flex.js +10 -7
  352. package/cjs/core/utils/components/Icon.d.ts +2 -25
  353. package/cjs/core/utils/components/Icon.js +2 -2
  354. package/cjs/core/utils/components/InputContainer.d.ts +0 -1
  355. package/cjs/core/utils/components/InputContainer.js +6 -11
  356. package/cjs/core/utils/components/InputFlexContainer.d.ts +3 -6
  357. package/cjs/core/utils/components/InputFlexContainer.js +3 -3
  358. package/cjs/core/utils/components/LinkAction.d.ts +2 -9
  359. package/cjs/core/utils/components/LinkAction.js +3 -37
  360. package/cjs/core/utils/components/Popover.d.ts +1 -2
  361. package/cjs/core/utils/components/Popover.js +2 -3
  362. package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -3
  363. package/cjs/core/utils/components/VisuallyHidden.js +3 -5
  364. package/cjs/core/utils/components/index.d.ts +1 -0
  365. package/cjs/core/utils/components/index.js +1 -0
  366. package/cjs/core/utils/functions/dom.d.ts +6 -0
  367. package/cjs/core/utils/functions/dom.js +20 -2
  368. package/cjs/core/utils/functions/index.d.ts +1 -1
  369. package/cjs/core/utils/functions/index.js +1 -1
  370. package/cjs/core/utils/functions/polymorphic.d.ts +198 -0
  371. package/cjs/core/utils/functions/polymorphic.js +89 -0
  372. package/cjs/core/utils/hooks/index.d.ts +1 -1
  373. package/cjs/core/utils/hooks/index.js +1 -1
  374. package/cjs/core/utils/hooks/useGlobals.d.ts +8 -0
  375. package/cjs/core/utils/hooks/useGlobals.js +77 -0
  376. package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +2 -2
  377. package/cjs/core/utils/icons/Svg.d.ts +1 -0
  378. package/cjs/core/{Typography/Body/index.js → utils/icons/Svg.js} +3 -4
  379. package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
  380. package/cjs/core/utils/icons/SvgCalendar.js +2 -1
  381. package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  382. package/cjs/core/utils/icons/SvgCaretDownSmall.js +2 -1
  383. package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  384. package/cjs/core/utils/icons/SvgCaretRightSmall.js +2 -1
  385. package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  386. package/cjs/core/utils/icons/SvgCaretUpSmall.js +2 -1
  387. package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
  388. package/cjs/core/utils/icons/SvgCheckmark.js +2 -1
  389. package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  390. package/cjs/core/utils/icons/SvgCheckmarkSmall.js +2 -1
  391. package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  392. package/cjs/core/utils/icons/SvgChevronLeft.js +2 -1
  393. package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  394. package/cjs/core/utils/icons/SvgChevronLeftDouble.js +2 -1
  395. package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
  396. package/cjs/core/utils/icons/SvgChevronRight.js +2 -1
  397. package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  398. package/cjs/core/utils/icons/SvgChevronRightDouble.js +2 -1
  399. package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
  400. package/cjs/core/utils/icons/SvgClose.js +2 -1
  401. package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  402. package/cjs/core/utils/icons/SvgCloseSmall.js +2 -1
  403. package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
  404. package/cjs/core/utils/icons/SvgColumnManager.js +2 -1
  405. package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
  406. package/cjs/core/utils/icons/SvgDocument.js +2 -1
  407. package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
  408. package/cjs/core/utils/icons/SvgFilter.js +2 -1
  409. package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  410. package/cjs/core/utils/icons/SvgFilterHollow.js +2 -1
  411. package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  412. package/cjs/core/utils/icons/SvgImportantSmall.js +2 -1
  413. package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  414. package/cjs/core/utils/icons/SvgInfoCircular.js +2 -1
  415. package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
  416. package/cjs/core/utils/icons/SvgMore.js +2 -1
  417. package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  418. package/cjs/core/utils/icons/SvgMoreVertical.js +2 -1
  419. package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
  420. package/cjs/core/utils/icons/SvgNew.js +2 -1
  421. package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
  422. package/cjs/core/utils/icons/SvgSearch.js +2 -1
  423. package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  424. package/cjs/core/utils/icons/SvgSmileyHappy.js +2 -1
  425. package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
  426. package/cjs/core/utils/icons/SvgSortDown.js +2 -1
  427. package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
  428. package/cjs/core/utils/icons/SvgSortUp.js +2 -1
  429. package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
  430. package/cjs/core/utils/icons/SvgStatusError.js +2 -1
  431. package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  432. package/cjs/core/utils/icons/SvgStatusSuccess.js +2 -1
  433. package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  434. package/cjs/core/utils/icons/SvgStatusWarning.js +2 -1
  435. package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
  436. package/cjs/core/utils/icons/SvgSwap.js +2 -1
  437. package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
  438. package/cjs/core/utils/icons/SvgUpload.js +2 -1
  439. package/cjs/core/utils/props.d.ts +10 -33
  440. package/{esm/core/Typography/Body/index.js → cjs/styles.d.ts} +1 -2
  441. package/cjs/styles.js +453 -0
  442. package/cjs/types/react-table-config.d.ts +1 -1
  443. package/esm/core/Alert/Alert.d.ts +4 -5
  444. package/esm/core/Alert/Alert.js +9 -11
  445. package/esm/core/Alert/index.d.ts +0 -1
  446. package/esm/core/Avatar/Avatar.d.ts +6 -15
  447. package/esm/core/Avatar/Avatar.js +7 -9
  448. package/esm/core/Avatar/index.d.ts +0 -1
  449. package/esm/core/AvatarGroup/AvatarGroup.d.ts +5 -10
  450. package/esm/core/AvatarGroup/AvatarGroup.js +15 -18
  451. package/esm/core/AvatarGroup/index.d.ts +0 -1
  452. package/esm/core/Backdrop/Backdrop.d.ts +3 -4
  453. package/esm/core/Backdrop/Backdrop.js +2 -4
  454. package/esm/core/Backdrop/index.d.ts +0 -1
  455. package/esm/core/Badge/Badge.d.ts +4 -7
  456. package/esm/core/Badge/Badge.js +4 -6
  457. package/esm/core/Badge/index.d.ts +0 -1
  458. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +4 -78
  459. package/esm/core/Breadcrumbs/Breadcrumbs.js +6 -8
  460. package/esm/core/Breadcrumbs/index.d.ts +0 -1
  461. package/esm/core/ButtonGroup/ButtonGroup.d.ts +4 -4
  462. package/esm/core/ButtonGroup/ButtonGroup.js +16 -15
  463. package/esm/core/ButtonGroup/index.d.ts +0 -1
  464. package/esm/core/Buttons/Button/Button.d.ts +4 -11
  465. package/esm/core/Buttons/Button/Button.js +5 -7
  466. package/esm/core/Buttons/Button/index.d.ts +0 -1
  467. package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +5 -22
  468. package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -3
  469. package/esm/core/Buttons/DropdownButton/index.d.ts +0 -1
  470. package/esm/core/Buttons/IconButton/IconButton.d.ts +2 -5
  471. package/esm/core/Buttons/IconButton/IconButton.js +5 -8
  472. package/esm/core/Buttons/IconButton/index.d.ts +0 -1
  473. package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +3 -3
  474. package/esm/core/Buttons/IdeasButton/IdeasButton.js +1 -2
  475. package/esm/core/Buttons/IdeasButton/index.d.ts +0 -1
  476. package/esm/core/Buttons/SplitButton/SplitButton.d.ts +2 -4
  477. package/esm/core/Buttons/SplitButton/SplitButton.js +2 -4
  478. package/esm/core/Buttons/SplitButton/index.d.ts +0 -1
  479. package/esm/core/Buttons/index.d.ts +0 -5
  480. package/esm/core/Carousel/Carousel.d.ts +24 -27
  481. package/esm/core/Carousel/Carousel.js +23 -24
  482. package/esm/core/Carousel/CarouselDot.d.ts +11 -9
  483. package/esm/core/Carousel/CarouselDot.js +2 -1
  484. package/esm/core/Carousel/CarouselDotsList.d.ts +11 -10
  485. package/esm/core/Carousel/CarouselDotsList.js +2 -4
  486. package/esm/core/Carousel/CarouselNavigation.d.ts +14 -5
  487. package/esm/core/Carousel/CarouselNavigation.js +14 -10
  488. package/esm/core/Carousel/CarouselSlide.d.ts +10 -8
  489. package/esm/core/Carousel/CarouselSlide.js +2 -2
  490. package/esm/core/Carousel/CarouselSlider.d.ts +2 -2
  491. package/esm/core/Carousel/CarouselSlider.js +2 -2
  492. package/esm/core/Carousel/index.d.ts +0 -1
  493. package/esm/core/Checkbox/Checkbox.d.ts +4 -32
  494. package/esm/core/Checkbox/Checkbox.js +4 -6
  495. package/esm/core/Checkbox/index.d.ts +0 -1
  496. package/esm/core/ColorPicker/ColorBuilder.d.ts +2 -5
  497. package/esm/core/ColorPicker/ColorBuilder.js +4 -6
  498. package/esm/core/ColorPicker/ColorInputPanel.d.ts +4 -19
  499. package/esm/core/ColorPicker/ColorInputPanel.js +5 -7
  500. package/esm/core/ColorPicker/ColorPalette.d.ts +3 -17
  501. package/esm/core/ColorPicker/ColorPalette.js +4 -6
  502. package/esm/core/ColorPicker/ColorPicker.d.ts +4 -5
  503. package/esm/core/ColorPicker/ColorPicker.js +4 -6
  504. package/esm/core/ColorPicker/ColorSwatch.d.ts +4 -6
  505. package/esm/core/ColorPicker/ColorSwatch.js +2 -4
  506. package/esm/core/ColorPicker/index.d.ts +0 -5
  507. package/esm/core/ComboBox/ComboBox.d.ts +4 -5
  508. package/esm/core/ComboBox/ComboBox.js +6 -9
  509. package/esm/core/ComboBox/ComboBoxDropdown.d.ts +3 -3
  510. package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +7 -5
  511. package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -2
  512. package/esm/core/ComboBox/ComboBoxInput.d.ts +7 -6
  513. package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +3 -7
  514. package/esm/core/ComboBox/ComboBoxInputContainer.js +5 -5
  515. package/esm/core/ComboBox/ComboBoxMenu.d.ts +5 -2
  516. package/esm/core/ComboBox/ComboBoxMenu.js +2 -2
  517. package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +6 -19
  518. package/esm/core/ComboBox/ComboBoxMenuItem.js +8 -19
  519. package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +6 -3
  520. package/esm/core/ComboBox/index.d.ts +0 -1
  521. package/esm/core/DatePicker/DatePicker.d.ts +4 -5
  522. package/esm/core/DatePicker/DatePicker.js +10 -12
  523. package/esm/core/DatePicker/index.d.ts +0 -1
  524. package/esm/core/Dialog/Dialog.d.ts +13 -10
  525. package/esm/core/Dialog/Dialog.js +23 -24
  526. package/esm/core/Dialog/DialogBackdrop.d.ts +4 -4
  527. package/esm/core/Dialog/DialogBackdrop.js +1 -3
  528. package/esm/core/Dialog/DialogButtonBar.d.ts +1 -9
  529. package/esm/core/Dialog/DialogButtonBar.js +2 -9
  530. package/esm/core/Dialog/DialogContent.d.ts +1 -9
  531. package/esm/core/Dialog/DialogContent.js +2 -9
  532. package/esm/core/Dialog/DialogContext.d.ts +4 -0
  533. package/esm/core/Dialog/DialogMain.d.ts +3 -3
  534. package/esm/core/Dialog/DialogMain.js +4 -6
  535. package/esm/core/Dialog/DialogTitleBar.d.ts +5 -5
  536. package/esm/core/Dialog/DialogTitleBar.js +2 -4
  537. package/esm/core/Dialog/DialogTitleBarTitle.d.ts +1 -9
  538. package/esm/core/Dialog/DialogTitleBarTitle.js +2 -9
  539. package/esm/core/Dialog/index.d.ts +0 -5
  540. package/esm/core/DropdownMenu/DropdownMenu.js +1 -2
  541. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +9 -5
  542. package/esm/core/ExpandableBlock/ExpandableBlock.js +15 -14
  543. package/esm/core/ExpandableBlock/index.d.ts +0 -1
  544. package/esm/core/Fieldset/Fieldset.d.ts +4 -4
  545. package/esm/core/Fieldset/Fieldset.js +4 -6
  546. package/esm/core/Fieldset/index.d.ts +0 -1
  547. package/esm/core/FileUpload/FileEmptyCard.d.ts +4 -11
  548. package/esm/core/FileUpload/FileEmptyCard.js +17 -14
  549. package/esm/core/FileUpload/FileUpload.d.ts +4 -26
  550. package/esm/core/FileUpload/FileUpload.js +4 -6
  551. package/esm/core/FileUpload/FileUploadCard.d.ts +11 -52
  552. package/esm/core/FileUpload/FileUploadCard.js +44 -37
  553. package/esm/core/FileUpload/FileUploadTemplate.d.ts +4 -4
  554. package/esm/core/FileUpload/FileUploadTemplate.js +6 -8
  555. package/esm/core/FileUpload/index.d.ts +0 -4
  556. package/esm/core/Footer/Footer.d.ts +6 -11
  557. package/esm/core/Footer/Footer.js +2 -4
  558. package/esm/core/Footer/FooterItem.d.ts +1 -4
  559. package/esm/core/Footer/FooterItem.js +2 -9
  560. package/esm/core/Footer/FooterList.d.ts +1 -4
  561. package/esm/core/Footer/FooterList.js +2 -9
  562. package/esm/core/Footer/FooterSeparator.d.ts +1 -4
  563. package/esm/core/Footer/FooterSeparator.js +4 -9
  564. package/esm/core/Footer/index.d.ts +1 -1
  565. package/esm/core/Header/Header.d.ts +5 -6
  566. package/esm/core/Header/Header.js +8 -10
  567. package/esm/core/Header/HeaderBasicButton.d.ts +2 -4
  568. package/esm/core/Header/HeaderBasicButton.js +5 -12
  569. package/esm/core/Header/HeaderBreadcrumbs.d.ts +3 -3
  570. package/esm/core/Header/HeaderBreadcrumbs.js +8 -9
  571. package/esm/core/Header/HeaderButton.d.ts +5 -7
  572. package/esm/core/Header/HeaderButton.js +9 -23
  573. package/esm/core/Header/HeaderDropdownButton.d.ts +2 -4
  574. package/esm/core/Header/HeaderDropdownButton.js +1 -2
  575. package/esm/core/Header/HeaderLogo.d.ts +1 -3
  576. package/esm/core/Header/HeaderLogo.js +6 -14
  577. package/esm/core/Header/HeaderSplitButton.d.ts +2 -4
  578. package/esm/core/Header/HeaderSplitButton.js +4 -5
  579. package/esm/core/Header/index.d.ts +0 -4
  580. package/esm/core/InformationPanel/InformationPanel.d.ts +4 -25
  581. package/esm/core/InformationPanel/InformationPanel.js +4 -6
  582. package/esm/core/InformationPanel/InformationPanelBody.d.ts +1 -10
  583. package/esm/core/InformationPanel/InformationPanelBody.js +2 -9
  584. package/esm/core/InformationPanel/InformationPanelContent.d.ts +4 -5
  585. package/esm/core/InformationPanel/InformationPanelContent.js +4 -6
  586. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +4 -5
  587. package/esm/core/InformationPanel/InformationPanelHeader.js +6 -8
  588. package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +1 -7
  589. package/esm/core/InformationPanel/InformationPanelWrapper.js +2 -9
  590. package/esm/core/InformationPanel/index.d.ts +0 -5
  591. package/esm/core/Input/Input.d.ts +3 -14
  592. package/esm/core/Input/Input.js +2 -4
  593. package/esm/core/Input/index.d.ts +0 -1
  594. package/esm/core/InputGroup/InputGroup.d.ts +4 -5
  595. package/esm/core/InputGroup/InputGroup.js +6 -8
  596. package/esm/core/InputGroup/index.d.ts +0 -1
  597. package/esm/core/Label/Label.d.ts +3 -10
  598. package/esm/core/Label/Label.js +6 -8
  599. package/esm/core/Label/index.d.ts +0 -1
  600. package/esm/core/LabeledInput/LabeledInput.d.ts +2 -47
  601. package/esm/core/LabeledInput/LabeledInput.js +1 -3
  602. package/esm/core/LabeledInput/index.d.ts +0 -1
  603. package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -2
  604. package/esm/core/LabeledSelect/LabeledSelect.js +1 -3
  605. package/esm/core/LabeledSelect/index.d.ts +0 -1
  606. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +4 -27
  607. package/esm/core/LabeledTextarea/LabeledTextarea.js +1 -3
  608. package/esm/core/LabeledTextarea/index.d.ts +0 -1
  609. package/esm/core/List/List.d.ts +1 -6
  610. package/esm/core/List/List.js +3 -9
  611. package/esm/core/List/ListItem.d.ts +6 -14
  612. package/esm/core/List/ListItem.js +10 -17
  613. package/esm/core/List/index.d.ts +0 -2
  614. package/esm/core/Menu/Menu.d.ts +4 -28
  615. package/esm/core/Menu/Menu.js +3 -5
  616. package/esm/core/Menu/MenuDivider.d.ts +1 -5
  617. package/esm/core/Menu/MenuDivider.js +4 -9
  618. package/esm/core/Menu/MenuExtraContent.d.ts +1 -7
  619. package/esm/core/Menu/MenuExtraContent.js +4 -9
  620. package/esm/core/Menu/MenuItem.d.ts +14 -61
  621. package/esm/core/Menu/MenuItem.js +13 -22
  622. package/esm/core/Menu/MenuItemSkeleton.d.ts +4 -6
  623. package/esm/core/Menu/MenuItemSkeleton.js +9 -11
  624. package/esm/core/Menu/index.d.ts +0 -5
  625. package/esm/core/Modal/Modal.d.ts +5 -6
  626. package/esm/core/Modal/Modal.js +4 -6
  627. package/esm/core/Modal/ModalButtonBar.d.ts +1 -9
  628. package/esm/core/Modal/ModalButtonBar.js +1 -2
  629. package/esm/core/Modal/ModalContent.d.ts +1 -9
  630. package/esm/core/Modal/ModalContent.js +1 -2
  631. package/esm/core/Modal/index.d.ts +0 -3
  632. package/esm/core/NonIdealState/NonIdealState.d.ts +4 -4
  633. package/esm/core/NonIdealState/NonIdealState.js +8 -10
  634. package/esm/core/NonIdealState/index.d.ts +1 -2
  635. package/esm/core/NotificationMarker/NotificationMarker.d.ts +4 -4
  636. package/esm/core/NotificationMarker/NotificationMarker.js +2 -4
  637. package/esm/core/NotificationMarker/index.d.ts +0 -1
  638. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +4 -5
  639. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +9 -11
  640. package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -1
  641. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +4 -5
  642. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +11 -13
  643. package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -1
  644. package/esm/core/ProgressIndicators/index.d.ts +0 -2
  645. package/esm/core/Radio/Radio.d.ts +4 -18
  646. package/esm/core/Radio/Radio.js +4 -6
  647. package/esm/core/Radio/index.d.ts +0 -1
  648. package/esm/core/RadioTiles/RadioTile.d.ts +4 -22
  649. package/esm/core/RadioTiles/RadioTile.js +7 -12
  650. package/esm/core/RadioTiles/RadioTileGroup.d.ts +5 -5
  651. package/esm/core/RadioTiles/RadioTileGroup.js +5 -7
  652. package/esm/core/RadioTiles/index.d.ts +0 -2
  653. package/esm/core/SearchBox/SearchBox.d.ts +4 -17
  654. package/esm/core/SearchBox/SearchBox.js +2 -4
  655. package/esm/core/SearchBox/index.d.ts +0 -1
  656. package/esm/core/Select/Select.d.ts +6 -2
  657. package/esm/core/Select/Select.js +13 -14
  658. package/esm/core/Select/SelectTag.d.ts +4 -6
  659. package/esm/core/Select/SelectTag.js +5 -7
  660. package/esm/core/Select/SelectTagContainer.d.ts +4 -8
  661. package/esm/core/Select/SelectTagContainer.js +2 -3
  662. package/esm/core/Select/index.d.ts +1 -1
  663. package/esm/core/SideNavigation/SideNavigation.d.ts +4 -5
  664. package/esm/core/SideNavigation/SideNavigation.js +8 -10
  665. package/esm/core/SideNavigation/SidenavButton.d.ts +3 -5
  666. package/esm/core/SideNavigation/SidenavButton.js +1 -6
  667. package/esm/core/SideNavigation/SidenavSubmenu.d.ts +2 -15
  668. package/esm/core/SideNavigation/SidenavSubmenu.js +3 -5
  669. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +4 -9
  670. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +6 -8
  671. package/esm/core/SideNavigation/index.d.ts +0 -4
  672. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +4 -14
  673. package/esm/core/SkipToContentLink/SkipToContentLink.js +2 -4
  674. package/esm/core/SkipToContentLink/index.d.ts +0 -1
  675. package/esm/core/Slider/Slider.d.ts +4 -100
  676. package/esm/core/Slider/Slider.js +7 -9
  677. package/esm/core/Slider/Thumb.d.ts +3 -2
  678. package/esm/core/Slider/Thumb.js +2 -1
  679. package/esm/core/Slider/Track.js +2 -1
  680. package/esm/core/Slider/index.d.ts +0 -1
  681. package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
  682. package/esm/core/StatusMessage/StatusMessage.js +4 -16
  683. package/esm/core/StatusMessage/index.d.ts +0 -1
  684. package/esm/core/Stepper/Stepper.d.ts +2 -3
  685. package/esm/core/Stepper/Stepper.js +4 -6
  686. package/esm/core/Stepper/StepperStep.d.ts +3 -4
  687. package/esm/core/Stepper/StepperStep.js +8 -7
  688. package/esm/core/Stepper/Wizard.js +3 -1
  689. package/esm/core/Stepper/WorkflowDiagram.d.ts +3 -4
  690. package/esm/core/Stepper/WorkflowDiagram.js +6 -6
  691. package/esm/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
  692. package/esm/core/Stepper/WorkflowDiagramStep.js +3 -2
  693. package/esm/core/Stepper/index.d.ts +2 -3
  694. package/esm/core/Surface/Surface.d.ts +5 -18
  695. package/esm/core/Surface/Surface.js +8 -8
  696. package/esm/core/Surface/index.d.ts +0 -1
  697. package/esm/core/Table/Table.d.ts +0 -1
  698. package/esm/core/Table/Table.js +20 -21
  699. package/esm/core/Table/TableCell.js +3 -2
  700. package/esm/core/Table/TablePaginator.d.ts +0 -1
  701. package/esm/core/Table/TablePaginator.js +10 -11
  702. package/esm/core/Table/TableRowMemoized.js +3 -3
  703. package/esm/core/Table/cells/DefaultCell.js +4 -3
  704. package/esm/core/Table/cells/EditableCell.js +2 -2
  705. package/esm/core/Table/columns/actionColumn.js +1 -1
  706. package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
  707. package/esm/core/Table/columns/expanderColumn.js +1 -1
  708. package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
  709. package/esm/core/Table/filters/BaseFilter.js +3 -4
  710. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -3
  711. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  712. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +2 -3
  713. package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
  714. package/esm/core/Table/filters/FilterButtonBar.js +3 -4
  715. package/esm/core/Table/filters/FilterToggle.d.ts +2 -3
  716. package/esm/core/Table/filters/FilterToggle.js +2 -3
  717. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  718. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +2 -3
  719. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  720. package/esm/core/Table/filters/TextFilter/TextFilter.js +2 -3
  721. package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -4
  722. package/esm/core/Tabs/Tab.d.ts +10 -4
  723. package/esm/core/Tabs/Tab.js +8 -14
  724. package/esm/core/Tabs/Tabs.d.ts +2 -3
  725. package/esm/core/Tabs/Tabs.js +11 -14
  726. package/esm/core/Tabs/index.d.ts +0 -2
  727. package/esm/core/Tag/Tag.d.ts +4 -5
  728. package/esm/core/Tag/Tag.js +6 -8
  729. package/esm/core/Tag/TagContainer.d.ts +4 -5
  730. package/esm/core/Tag/TagContainer.js +5 -7
  731. package/esm/core/Tag/index.d.ts +0 -2
  732. package/esm/core/Textarea/Textarea.d.ts +3 -10
  733. package/esm/core/Textarea/Textarea.js +2 -4
  734. package/esm/core/Textarea/index.d.ts +0 -1
  735. package/esm/core/ThemeProvider/ThemeContext.d.ts +7 -0
  736. package/esm/core/{Typography/Leading/index.js → ThemeProvider/ThemeContext.js} +2 -2
  737. package/esm/core/ThemeProvider/ThemeProvider.d.ts +11 -14
  738. package/esm/core/ThemeProvider/ThemeProvider.js +4 -16
  739. package/esm/core/ThemeProvider/index.d.ts +1 -1
  740. package/esm/core/Tile/Tile.d.ts +6 -8
  741. package/esm/core/Tile/Tile.js +19 -23
  742. package/esm/core/Tile/index.d.ts +0 -1
  743. package/esm/core/TimePicker/TimePicker.d.ts +3 -4
  744. package/esm/core/TimePicker/TimePicker.js +6 -8
  745. package/esm/core/TimePicker/index.d.ts +1 -1
  746. package/esm/core/Toast/Toast.d.ts +0 -1
  747. package/esm/core/Toast/Toast.js +6 -7
  748. package/esm/core/Toast/ToastWrapper.d.ts +0 -1
  749. package/esm/core/Toast/ToastWrapper.js +2 -2
  750. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +4 -4
  751. package/esm/core/ToggleSwitch/ToggleSwitch.js +5 -13
  752. package/esm/core/ToggleSwitch/index.d.ts +0 -1
  753. package/esm/core/Tooltip/Tooltip.d.ts +0 -1
  754. package/esm/core/Tooltip/Tooltip.js +2 -4
  755. package/esm/core/Tooltip/index.d.ts +0 -1
  756. package/esm/core/TransferList/TransferList.d.ts +69 -0
  757. package/esm/core/TransferList/TransferList.js +142 -0
  758. package/esm/core/TransferList/index.d.ts +3 -0
  759. package/esm/core/{Typography/Headline → TransferList}/index.js +2 -2
  760. package/esm/core/Tree/Tree.d.ts +1 -2
  761. package/esm/core/Tree/Tree.js +5 -6
  762. package/esm/core/Tree/TreeNode.d.ts +1 -2
  763. package/esm/core/Tree/TreeNode.js +11 -17
  764. package/esm/core/Tree/TreeNodeExpander.d.ts +4 -5
  765. package/esm/core/Tree/TreeNodeExpander.js +3 -4
  766. package/esm/core/Tree/index.d.ts +1 -3
  767. package/esm/core/Typography/Anchor/Anchor.d.ts +1 -6
  768. package/esm/core/Typography/Anchor/Anchor.js +2 -9
  769. package/esm/core/Typography/Anchor/index.d.ts +0 -1
  770. package/esm/core/Typography/Blockquote/Blockquote.d.ts +4 -9
  771. package/esm/core/Typography/Blockquote/Blockquote.js +2 -4
  772. package/esm/core/Typography/Blockquote/index.d.ts +0 -1
  773. package/esm/core/Typography/Code/Code.d.ts +1 -10
  774. package/esm/core/Typography/Code/Code.js +2 -9
  775. package/esm/core/Typography/Code/index.d.ts +0 -1
  776. package/esm/core/Typography/Kbd/Kbd.d.ts +4 -6
  777. package/esm/core/Typography/Kbd/Kbd.js +4 -6
  778. package/esm/core/Typography/Kbd/index.d.ts +0 -1
  779. package/esm/core/Typography/Text/Text.d.ts +3 -7
  780. package/esm/core/Typography/Text/Text.js +3 -5
  781. package/esm/core/Typography/Text/index.d.ts +0 -1
  782. package/esm/core/Typography/index.d.ts +0 -17
  783. package/esm/core/Typography/index.js +0 -6
  784. package/esm/core/index.d.ts +11 -57
  785. package/esm/core/index.js +3 -2
  786. package/esm/core/utils/components/Box.d.ts +6 -0
  787. package/esm/core/utils/components/Box.js +11 -0
  788. package/esm/core/utils/components/Divider.d.ts +4 -5
  789. package/esm/core/utils/components/Divider.js +2 -4
  790. package/esm/core/utils/components/Flex.d.ts +1 -5
  791. package/esm/core/utils/components/Flex.js +10 -7
  792. package/esm/core/utils/components/Icon.d.ts +2 -25
  793. package/esm/core/utils/components/Icon.js +2 -2
  794. package/esm/core/utils/components/InputContainer.d.ts +0 -1
  795. package/esm/core/utils/components/InputContainer.js +6 -11
  796. package/esm/core/utils/components/InputFlexContainer.d.ts +3 -6
  797. package/esm/core/utils/components/InputFlexContainer.js +3 -3
  798. package/esm/core/utils/components/LinkAction.d.ts +2 -9
  799. package/esm/core/utils/components/LinkAction.js +3 -11
  800. package/esm/core/utils/components/Popover.d.ts +1 -2
  801. package/esm/core/utils/components/Popover.js +1 -2
  802. package/esm/core/utils/components/VisuallyHidden.d.ts +1 -3
  803. package/esm/core/utils/components/VisuallyHidden.js +3 -5
  804. package/esm/core/utils/components/index.d.ts +1 -0
  805. package/esm/core/utils/components/index.js +1 -0
  806. package/esm/core/utils/functions/dom.d.ts +6 -0
  807. package/esm/core/utils/functions/dom.js +15 -1
  808. package/esm/core/utils/functions/index.d.ts +1 -1
  809. package/esm/core/utils/functions/index.js +1 -1
  810. package/esm/core/utils/functions/polymorphic.d.ts +198 -0
  811. package/esm/core/utils/functions/polymorphic.js +60 -0
  812. package/esm/core/utils/hooks/index.d.ts +1 -1
  813. package/esm/core/utils/hooks/index.js +1 -1
  814. package/esm/core/utils/hooks/useGlobals.d.ts +8 -0
  815. package/esm/core/utils/hooks/useGlobals.js +49 -0
  816. package/esm/core/utils/hooks/useIsThemeAlreadySet.js +1 -1
  817. package/esm/core/utils/icons/Svg.d.ts +1 -0
  818. package/esm/core/{Typography/Small/index.js → utils/icons/Svg.js} +2 -2
  819. package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
  820. package/esm/core/utils/icons/SvgCalendar.js +2 -1
  821. package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
  822. package/esm/core/utils/icons/SvgCaretDownSmall.js +2 -1
  823. package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
  824. package/esm/core/utils/icons/SvgCaretRightSmall.js +2 -1
  825. package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
  826. package/esm/core/utils/icons/SvgCaretUpSmall.js +2 -1
  827. package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
  828. package/esm/core/utils/icons/SvgCheckmark.js +2 -1
  829. package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
  830. package/esm/core/utils/icons/SvgCheckmarkSmall.js +2 -1
  831. package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
  832. package/esm/core/utils/icons/SvgChevronLeft.js +2 -1
  833. package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
  834. package/esm/core/utils/icons/SvgChevronLeftDouble.js +2 -1
  835. package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
  836. package/esm/core/utils/icons/SvgChevronRight.js +2 -1
  837. package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
  838. package/esm/core/utils/icons/SvgChevronRightDouble.js +2 -1
  839. package/esm/core/utils/icons/SvgClose.d.ts +1 -1
  840. package/esm/core/utils/icons/SvgClose.js +2 -1
  841. package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
  842. package/esm/core/utils/icons/SvgCloseSmall.js +2 -1
  843. package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
  844. package/esm/core/utils/icons/SvgColumnManager.js +2 -1
  845. package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
  846. package/esm/core/utils/icons/SvgDocument.js +2 -1
  847. package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
  848. package/esm/core/utils/icons/SvgFilter.js +2 -1
  849. package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
  850. package/esm/core/utils/icons/SvgFilterHollow.js +2 -1
  851. package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
  852. package/esm/core/utils/icons/SvgImportantSmall.js +2 -1
  853. package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
  854. package/esm/core/utils/icons/SvgInfoCircular.js +2 -1
  855. package/esm/core/utils/icons/SvgMore.d.ts +1 -1
  856. package/esm/core/utils/icons/SvgMore.js +2 -1
  857. package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
  858. package/esm/core/utils/icons/SvgMoreVertical.js +2 -1
  859. package/esm/core/utils/icons/SvgNew.d.ts +1 -1
  860. package/esm/core/utils/icons/SvgNew.js +2 -1
  861. package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
  862. package/esm/core/utils/icons/SvgSearch.js +2 -1
  863. package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
  864. package/esm/core/utils/icons/SvgSmileyHappy.js +2 -1
  865. package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
  866. package/esm/core/utils/icons/SvgSortDown.js +2 -1
  867. package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
  868. package/esm/core/utils/icons/SvgSortUp.js +2 -1
  869. package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
  870. package/esm/core/utils/icons/SvgStatusError.js +2 -1
  871. package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
  872. package/esm/core/utils/icons/SvgStatusSuccess.js +2 -1
  873. package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
  874. package/esm/core/utils/icons/SvgStatusWarning.js +2 -1
  875. package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
  876. package/esm/core/utils/icons/SvgSwap.js +2 -1
  877. package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
  878. package/esm/core/utils/icons/SvgUpload.js +2 -1
  879. package/esm/core/utils/props.d.ts +10 -33
  880. package/esm/{core/Typography/Title/index.js → styles.d.ts} +1 -2
  881. package/esm/styles.js +454 -0
  882. package/esm/types/react-table-config.d.ts +1 -1
  883. package/package.json +14 -11
  884. package/styles.css +1942 -0
  885. package/cjs/core/Typography/Body/Body.d.ts +0 -35
  886. package/cjs/core/Typography/Body/Body.js +0 -51
  887. package/cjs/core/Typography/Body/index.d.ts +0 -4
  888. package/cjs/core/Typography/Headline/Headline.d.ts +0 -22
  889. package/cjs/core/Typography/Headline/Headline.js +0 -48
  890. package/cjs/core/Typography/Headline/index.d.ts +0 -4
  891. package/cjs/core/Typography/Leading/Leading.d.ts +0 -22
  892. package/cjs/core/Typography/Leading/Leading.js +0 -48
  893. package/cjs/core/Typography/Leading/index.d.ts +0 -4
  894. package/cjs/core/Typography/Small/Small.d.ts +0 -22
  895. package/cjs/core/Typography/Small/index.d.ts +0 -4
  896. package/cjs/core/Typography/Small/index.js +0 -10
  897. package/cjs/core/Typography/Subheading/Subheading.d.ts +0 -22
  898. package/cjs/core/Typography/Subheading/Subheading.js +0 -48
  899. package/cjs/core/Typography/Subheading/index.d.ts +0 -4
  900. package/cjs/core/Typography/Subheading/index.js +0 -10
  901. package/cjs/core/Typography/Title/Title.d.ts +0 -22
  902. package/cjs/core/Typography/Title/Title.js +0 -48
  903. package/cjs/core/Typography/Title/index.d.ts +0 -4
  904. package/cjs/core/Typography/Title/index.js +0 -10
  905. package/cjs/core/utils/functions/styles.d.ts +0 -6
  906. package/cjs/core/utils/functions/styles.js +0 -21
  907. package/cjs/core/utils/hooks/useTheme.d.ts +0 -39
  908. package/cjs/core/utils/hooks/useTheme.js +0 -127
  909. package/esm/core/Typography/Body/Body.d.ts +0 -35
  910. package/esm/core/Typography/Body/Body.js +0 -22
  911. package/esm/core/Typography/Body/index.d.ts +0 -4
  912. package/esm/core/Typography/Headline/Headline.d.ts +0 -22
  913. package/esm/core/Typography/Headline/Headline.js +0 -19
  914. package/esm/core/Typography/Headline/index.d.ts +0 -4
  915. package/esm/core/Typography/Leading/Leading.d.ts +0 -22
  916. package/esm/core/Typography/Leading/Leading.js +0 -19
  917. package/esm/core/Typography/Leading/index.d.ts +0 -4
  918. package/esm/core/Typography/Small/Small.d.ts +0 -22
  919. package/esm/core/Typography/Small/Small.js +0 -19
  920. package/esm/core/Typography/Small/index.d.ts +0 -4
  921. package/esm/core/Typography/Subheading/Subheading.d.ts +0 -22
  922. package/esm/core/Typography/Subheading/Subheading.js +0 -19
  923. package/esm/core/Typography/Subheading/index.d.ts +0 -4
  924. package/esm/core/Typography/Subheading/index.js +0 -6
  925. package/esm/core/Typography/Title/Title.d.ts +0 -22
  926. package/esm/core/Typography/Title/Title.js +0 -19
  927. package/esm/core/Typography/Title/index.d.ts +0 -4
  928. package/esm/core/utils/functions/styles.d.ts +0 -6
  929. package/esm/core/utils/functions/styles.js +0 -17
  930. package/esm/core/utils/hooks/useTheme.d.ts +0 -39
  931. package/esm/core/utils/hooks/useTheme.js +0 -100
@@ -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 { useTheme } 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
@@ -22,8 +21,8 @@ import { useTheme } from '../../utils/index.js';
22
21
  */
23
22
  export const BaseFilter = (props) => {
24
23
  const { children, className, style, id } = props;
25
- useTheme();
26
- return (React.createElement("div", { className: cx('iui-table-column-filter', className), style: style,
24
+ useGlobals();
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,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { LabeledInputProps } from '../../../LabeledInput/index.js';
1
+ import * as React from 'react';
2
+ import { LabeledInput } from '../../../LabeledInput/index.js';
3
3
  export declare type DatePickerInputProps = {
4
4
  date?: Date;
5
5
  onChange: (date?: Date) => void;
@@ -13,6 +13,6 @@ export declare type DatePickerInputProps = {
13
13
  * The 'to' date for the 'from' DatePickerInput or the 'from' date for the 'to' DatePickerInput
14
14
  */
15
15
  selectedDate?: Date;
16
- } & Omit<LabeledInputProps, 'value' | 'onChange' | 'svgIcon' | 'displayStyle'>;
16
+ } & Omit<React.ComponentProps<typeof LabeledInput>, 'value' | 'onChange' | 'svgIcon' | 'displayStyle'>;
17
17
  declare const DatePickerInput: (props: DatePickerInputProps) => JSX.Element;
18
18
  export default DatePickerInput;
@@ -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;
@@ -3,10 +3,9 @@
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 { useTheme } from '../../../utils/index.js';
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',
@@ -30,7 +29,7 @@ const defaultParseInput = (text) => {
30
29
  export const DateRangeFilter = (props) => {
31
30
  var _a, _b, _c, _d;
32
31
  const { column, translatedLabels, setFilter, clearFilter, formatDate = defaultFormatDate, parseInput = defaultParseInput, placeholder = 'MMM dd, yyyy', } = props;
33
- useTheme();
32
+ useGlobals();
34
33
  const translatedStrings = { ...defaultStrings, ...translatedLabels };
35
34
  const [from, setFrom] = React.useState(((_a = column.filterValue) === null || _a === void 0 ? void 0 : _a[0]) ? new Date((_b = column.filterValue) === null || _b === void 0 ? void 0 : _b[0]) : undefined);
36
35
  const onFromChange = React.useCallback((date) => {
@@ -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 { useTheme } 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',
@@ -19,8 +18,8 @@ const defaultStrings = {
19
18
  export const FilterButtonBar = (props) => {
20
19
  const { children, setFilter, clearFilter, translatedLabels, className, style, id, } = props;
21
20
  const translatedStrings = { ...defaultStrings, ...translatedLabels };
22
- useTheme();
23
- return (React.createElement("div", { className: cx('iui-button-bar', className), style: style, id: id },
21
+ useGlobals();
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,10 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { HeaderGroup } from 'react-table';
3
- import '@itwin/itwinui-css/css/table.css';
4
- import type { StylingProps } from '../../utils/index.js';
3
+ import type { CommonProps } from '../../utils/index.js';
5
4
  export declare type FilterToggleProps<T extends Record<string, unknown>> = {
6
5
  column: HeaderGroup<T>;
7
- } & StylingProps;
6
+ } & CommonProps;
8
7
  /**
9
8
  * Handles showing filter icon and opening filter component.
10
9
  */
@@ -4,15 +4,14 @@
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 { useTheme, Popover, SvgFilterHollow, SvgFilter, } from '../../utils/index.js';
7
+ import { useGlobals, Popover, SvgFilterHollow, SvgFilter, } from '../../utils/index.js';
9
8
  import { IconButton } from '../../Buttons/index.js';
10
9
  /**
11
10
  * Handles showing filter icon and opening filter component.
12
11
  */
13
12
  export const FilterToggle = (props) => {
14
13
  const { column, className, ...rest } = props;
15
- useTheme();
14
+ useGlobals();
16
15
  const [isVisible, setIsVisible] = React.useState(false);
17
16
  const close = React.useCallback(() => setIsVisible(false), []);
18
17
  const setFilter = React.useCallback((filterValue) => {
@@ -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;
@@ -3,10 +3,9 @@
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 { useTheme } from '../../../utils/index.js';
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',
@@ -15,7 +14,7 @@ const defaultStrings = {
15
14
  export const NumberRangeFilter = (props) => {
16
15
  var _a, _b, _c, _d;
17
16
  const { column, translatedLabels, setFilter, clearFilter } = props;
18
- useTheme();
17
+ useGlobals();
19
18
  const translatedStrings = { ...defaultStrings, ...translatedLabels };
20
19
  const [from, setFrom] = React.useState((_b = (_a = column.filterValue) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : '');
21
20
  const [to, setTo] = React.useState((_d = (_c = column.filterValue) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '');
@@ -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,15 +3,14 @@
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
- import { useTheme } from '../../../utils/index.js';
6
+ import { useGlobals } from '../../../utils/index.js';
8
7
  import { Input } from '../../../Input/index.js';
9
8
  import { FilterButtonBar } from '../FilterButtonBar.js';
10
9
  import { BaseFilter } from '../BaseFilter.js';
11
10
  export const TextFilter = (props) => {
12
11
  var _a;
13
12
  const { column, translatedLabels, setFilter, clearFilter } = props;
14
- useTheme();
13
+ useGlobals();
15
14
  const [text, setText] = React.useState((_a = column.filterValue) !== null && _a !== void 0 ? _a : '');
16
15
  const onKeyDown = (event) => {
17
16
  if (event.altKey) {
@@ -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,6 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/tabs.css';
3
- export declare type TabProps = {
2
+ import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
+ declare type TabProps = {
4
4
  /**
5
5
  * The main label shown in the tab.
6
6
  */
@@ -21,7 +21,13 @@ export declare type TabProps = {
21
21
  * Custom content appended to the tab.
22
22
  */
23
23
  children?: React.ReactNode;
24
- } & React.HTMLAttributes<HTMLButtonElement>;
24
+ /**
25
+ * Whether the tab has active styling.
26
+ *
27
+ * This will be automatically set by the parent `Tabs` component.
28
+ */
29
+ active?: boolean;
30
+ };
25
31
  /**
26
32
  * Individual tab component to be used in the `labels` prop of `Tabs`.
27
33
  * @example
@@ -30,5 +36,5 @@ export declare type TabProps = {
30
36
  * <Tab label='Label 2' startIcon={<SvgPlaceholder />} />,
31
37
  * ];
32
38
  */
33
- export declare const Tab: (props: TabProps) => JSX.Element;
39
+ export declare const Tab: PolymorphicForwardRefComponent<"button", TabProps>;
34
40
  export default TabProps;
@@ -4,8 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
- import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tabs.css';
7
+ import { Box } from '../utils/index.js';
9
8
  /**
10
9
  * Individual tab component to be used in the `labels` prop of `Tabs`.
11
10
  * @example
@@ -14,17 +13,12 @@ import '@itwin/itwinui-css/css/tabs.css';
14
13
  * <Tab label='Label 2' startIcon={<SvgPlaceholder />} />,
15
14
  * ];
16
15
  */
17
- export const Tab = (props) => {
18
- const { label, sublabel, startIcon, children, className, ...rest } = props;
19
- useTheme();
20
- return (React.createElement("button", { className: cx('iui-tab', className), role: 'tab', tabIndex: -1, ...rest },
21
- startIcon &&
22
- React.cloneElement(startIcon, {
23
- className: 'iui-tab-icon',
24
- 'aria-hidden': true,
25
- }),
26
- label && (React.createElement("span", { className: 'iui-tab-label' },
16
+ export const Tab = React.forwardRef((props, forwardedRef) => {
17
+ const { label, sublabel, startIcon, children, active = false, className, ...rest } = props;
18
+ return (React.createElement(Box, { as: 'button', className: cx('iui-tab', { 'iui-active': active }, className), role: 'tab', tabIndex: -1, ref: forwardedRef, ...rest },
19
+ !!startIcon ? (React.createElement(Box, { as: 'span', className: 'iui-tab-icon', "aria-hidden": true }, startIcon)) : null,
20
+ label && (React.createElement(Box, { as: 'span', className: 'iui-tab-label' },
27
21
  React.createElement("div", null, label),
28
- sublabel && React.createElement("div", { className: 'iui-tab-description' }, sublabel))),
22
+ sublabel && React.createElement(Box, { className: 'iui-tab-description' }, sublabel))),
29
23
  children));
30
- };
24
+ });
@@ -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,
@@ -103,11 +102,11 @@ export declare type TabsProps = {
103
102
  /**
104
103
  * @deprecated Since v2, use `TabProps` with `Tabs`
105
104
  */
106
- export declare type HorizontalTabsProps = Omit<TabsProps, 'orientation'>;
105
+ declare type HorizontalTabsProps = Omit<TabsProps, 'orientation'>;
107
106
  /**
108
107
  * @deprecated Since v2, use `TabProps` with `Tabs`
109
108
  */
110
- export declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'> & {
109
+ declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'> & {
111
110
  type?: 'default' | 'borderless';
112
111
  };
113
112
  /**
@@ -4,9 +4,9 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
- import { useTheme, useMergedRefs, getBoundedValue, useContainerWidth, useIsomorphicLayoutEffect, useIsClient, useResizeObserver, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tabs.css';
7
+ import { useMergedRefs, getBoundedValue, useContainerWidth, useIsomorphicLayoutEffect, useIsClient, useResizeObserver, Box, } from '../utils/index.js';
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
@@ -52,7 +52,6 @@ export const Tabs = (props) => {
52
52
  delete props.overflowOptions;
53
53
  }
54
54
  const { labels, activeIndex, onTabSelected, focusActivationMode = 'auto', type = 'default', color = 'blue', orientation = 'horizontal', tabsClassName, contentClassName, wrapperClassName, children, ...rest } = props;
55
- useTheme();
56
55
  const isClient = useIsClient();
57
56
  const tablistRef = React.useRef(null);
58
57
  const [tablistSizeRef, tabsWidth] = useContainerWidth(type !== 'default');
@@ -86,7 +85,7 @@ export const Tabs = (props) => {
86
85
  const [focusedIndex, setFocusedIndex] = React.useState();
87
86
  React.useEffect(() => {
88
87
  if (tablistRef.current && focusedIndex !== undefined) {
89
- const tab = tablistRef.current.querySelectorAll('.iui-tab')[focusedIndex];
88
+ const tab = tablistRef.current.querySelectorAll(`.${styles['iui-tab']}`)[focusedIndex];
90
89
  tab === null || tab === void 0 ? void 0 : tab.focus();
91
90
  }
92
91
  }, [focusedIndex]);
@@ -94,7 +93,7 @@ export const Tabs = (props) => {
94
93
  useIsomorphicLayoutEffect(() => {
95
94
  var _a;
96
95
  setHasSublabel(type !== 'pill' && // pill tabs should never have sublabels
97
- !!((_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']}`)));
98
97
  }, [type]);
99
98
  const enableHorizontalScroll = React.useCallback((e) => {
100
99
  var _a;
@@ -204,7 +203,7 @@ export const Tabs = (props) => {
204
203
  if (ownerDoc !== null &&
205
204
  (overflowOptions === null || overflowOptions === void 0 ? void 0 : overflowOptions.useOverflow) &&
206
205
  currentActiveIndex !== undefined) {
207
- const activeTab = ownerDoc.querySelectorAll('.iui-tab')[currentActiveIndex];
206
+ const activeTab = ownerDoc.querySelectorAll(`.${styles['iui-tab']}`)[currentActiveIndex];
208
207
  const isVertical = orientation === 'vertical';
209
208
  const tabPlacement = isTabHidden(activeTab, isVertical);
210
209
  if (tabPlacement) {
@@ -336,9 +335,7 @@ export const Tabs = (props) => {
336
335
  return (React.createElement("li", { key: index }, !React.isValidElement(label) ? (React.createElement(Tab, { label: label, className: cx({
337
336
  'iui-active': index === currentActiveIndex,
338
337
  }), tabIndex: index === currentActiveIndex ? 0 : -1, onClick: onClick, "aria-selected": index === currentActiveIndex })) : (React.cloneElement(label, {
339
- className: cx(label.props.className, {
340
- 'iui-active': index === currentActiveIndex,
341
- }),
338
+ active: index === currentActiveIndex,
342
339
  'aria-selected': index === currentActiveIndex,
343
340
  tabIndex: index === currentActiveIndex ? 0 : -1,
344
341
  onClick: (args) => {
@@ -348,16 +345,16 @@ export const Tabs = (props) => {
348
345
  },
349
346
  }))));
350
347
  }, [currentActiveIndex, onTabClick]);
351
- return (React.createElement("div", { className: cx('iui-tabs-wrapper', `iui-${orientation}`, wrapperClassName), style: stripeProperties },
352
- React.createElement("ul", { className: cx('iui-tabs', `iui-${type}`, {
348
+ return (React.createElement(Box, { className: cx('iui-tabs-wrapper', `iui-${orientation}`, wrapperClassName), style: stripeProperties },
349
+ React.createElement(Box, { as: 'ul', className: cx('iui-tabs', `iui-${type}`, {
353
350
  'iui-green': color === 'green',
354
351
  'iui-animated': type !== 'default' && isClient,
355
352
  'iui-not-animated': type !== 'default' && !isClient,
356
353
  'iui-large': hasSublabel,
357
354
  }, tabsClassName), "data-iui-overflow": overflowOptions === null || overflowOptions === void 0 ? void 0 : overflowOptions.useOverflow, "data-iui-scroll-placement": scrollingPlacement, role: 'tablist', ref: refs, onKeyDown: onKeyDown, ...rest }, labels.map((label, index) => createTab(label, index))),
358
- actions && (React.createElement("div", { className: 'iui-tabs-actions-wrapper' },
359
- React.createElement("div", { className: 'iui-tabs-actions' }, actions))),
360
- children && (React.createElement("div", { className: cx('iui-tabs-content', contentClassName), role: 'tabpanel' }, children))));
355
+ actions && (React.createElement(Box, { className: 'iui-tabs-actions-wrapper' },
356
+ React.createElement(Box, { className: 'iui-tabs-actions' }, actions))),
357
+ children && (React.createElement(Box, { className: cx('iui-tabs-content', contentClassName), role: 'tabpanel' }, children))));
361
358
  };
362
359
  /**
363
360
  * @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
@@ -1,4 +1,2 @@
1
1
  export { Tabs, VerticalTabs, HorizontalTabs } from './Tabs.js';
2
- export type { TabsProps, VerticalTabsProps, HorizontalTabsProps, } from './Tabs.js';
3
2
  export { Tab } from './Tab.js';
4
- export type { TabProps } from './Tab.js';
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/tag.css';
4
- export declare type TagProps = {
2
+ import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
+ declare type TagProps = {
5
4
  /**
6
5
  * Callback function that handles click on close icon.
7
6
  * Close icon is shown only when this function is passed.
@@ -18,12 +17,12 @@ export declare type TagProps = {
18
17
  * @default 'default'
19
18
  */
20
19
  variant?: 'default' | 'basic';
21
- } & CommonProps;
20
+ };
22
21
  /**
23
22
  * Tag for showing categories, filters etc.
24
23
  * @example
25
24
  * <Tag onRemove={() => alert('Closed a tag!')}>I'm a tag</Tag>
26
25
  * <Tag variant='basic'>Basic tag</Tag>
27
26
  */
28
- export declare const Tag: (props: TagProps) => JSX.Element;
27
+ export declare const Tag: PolymorphicForwardRefComponent<"span", TagProps>;
29
28
  export default Tag;
@@ -4,8 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
- import { useTheme, SvgCloseSmall } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tag.css';
7
+ import { SvgCloseSmall, Box } from '../utils/index.js';
9
8
  import { IconButton } from '../Buttons/index.js';
10
9
  /**
11
10
  * Tag for showing categories, filters etc.
@@ -13,15 +12,14 @@ import { IconButton } from '../Buttons/index.js';
13
12
  * <Tag onRemove={() => alert('Closed a tag!')}>I'm a tag</Tag>
14
13
  * <Tag variant='basic'>Basic tag</Tag>
15
14
  */
16
- export const Tag = (props) => {
15
+ export const Tag = React.forwardRef((props, forwardedRef) => {
17
16
  const { className, variant = 'default', children, onRemove, ...rest } = props;
18
- useTheme();
19
- return (React.createElement("span", { className: cx({
17
+ return (React.createElement(Box, { as: 'span', className: cx({
20
18
  'iui-tag-basic': variant === 'basic',
21
19
  'iui-tag': variant === 'default',
22
- }, className), ...rest },
23
- variant === 'default' ? (React.createElement("span", { className: 'iui-tag-label' }, children)) : (children),
20
+ }, className), ref: forwardedRef, ...rest },
21
+ variant === 'default' ? (React.createElement(Box, { as: 'span', className: 'iui-tag-label' }, children)) : (children),
24
22
  onRemove && (React.createElement(IconButton, { styleType: 'borderless', size: 'small', onClick: onRemove, "aria-label": 'Delete tag', className: 'iui-tag-button' },
25
23
  React.createElement(SvgCloseSmall, { "aria-hidden": true })))));
26
- };
24
+ });
27
25
  export default Tag;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/tag.css';
4
- export declare type TagContainerProps = {
2
+ import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
+ declare type TagContainerProps = {
5
4
  /**
6
5
  * Tags inside the container.
7
6
  */
@@ -17,12 +16,12 @@ export declare type TagContainerProps = {
17
16
  * @default 'none'
18
17
  */
19
18
  background?: 'none' | 'filled';
20
- } & Omit<CommonProps, 'title'>;
19
+ };
21
20
  /**
22
21
  * TagContainer for grouping tags.
23
22
  * @example
24
23
  * <TagContainer><Tag>Tag 1</Tag><Tag>Tag 2</Tag></TagContainer>
25
24
  * <TagContainer><Tag variant='basic'>Basic tag</Tag><Tag variant='basic'>Basic tag 2</Tag></TagContainer>
26
25
  */
27
- export declare const TagContainer: (props: TagContainerProps) => JSX.Element;
26
+ export declare const TagContainer: PolymorphicForwardRefComponent<"div", TagContainerProps>;
28
27
  export default TagContainer;
@@ -4,20 +4,18 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
- import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/tag.css';
7
+ import { Box } from '../utils/index.js';
9
8
  /**
10
9
  * TagContainer for grouping tags.
11
10
  * @example
12
11
  * <TagContainer><Tag>Tag 1</Tag><Tag>Tag 2</Tag></TagContainer>
13
12
  * <TagContainer><Tag variant='basic'>Basic tag</Tag><Tag variant='basic'>Basic tag 2</Tag></TagContainer>
14
13
  */
15
- export const TagContainer = (props) => {
14
+ export const TagContainer = React.forwardRef((props, forwardedRef) => {
16
15
  const { className, children, overflow, background = 'none', ...rest } = props;
17
- useTheme();
18
- return (React.createElement("div", { className: cx('iui-tag-container', {
16
+ return (React.createElement(Box, { className: cx('iui-tag-container', {
19
17
  [`iui-${overflow}`]: !!overflow,
20
18
  'iui-visible': background !== 'none',
21
- }, className), ...rest }, children));
22
- };
19
+ }, className), ref: forwardedRef, ...rest }, children));
20
+ });
23
21
  export default TagContainer;
@@ -1,6 +1,4 @@
1
1
  export { Tag } from './Tag.js';
2
- export type { TagProps } from './Tag.js';
3
2
  declare const _default: "./Tag";
4
3
  export default _default;
5
4
  export { TagContainer } from './TagContainer.js';
6
- export type { TagContainerProps } from './TagContainer.js';
@@ -1,23 +1,16 @@
1
- import * as React from 'react';
2
- import '@itwin/itwinui-css/css/input.css';
1
+ import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
2
  export declare type TextareaProps = {
4
3
  /**
5
4
  * Set focus on textarea element.
6
5
  * @default false
7
6
  */
8
7
  setFocus?: boolean;
9
- } & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
8
+ };
10
9
  /**
11
10
  * Basic textarea component
12
11
  * @example
13
12
  * <Textarea setFocus={true} placeholder='This is a textarea' />
14
13
  * <Textarea disabled={true} placeholder='This is a disabled textarea' />
15
14
  */
16
- export declare const Textarea: React.ForwardRefExoticComponent<{
17
- /**
18
- * Set focus on textarea element.
19
- * @default false
20
- */
21
- setFocus?: boolean | undefined;
22
- } & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
15
+ export declare const Textarea: PolymorphicForwardRefComponent<"textarea", TextareaProps>;
23
16
  export default Textarea;
@@ -4,8 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
- import { useMergedRefs, useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/input.css';
7
+ import { useMergedRefs, Box } from '../utils/index.js';
9
8
  /**
10
9
  * Basic textarea component
11
10
  * @example
@@ -14,7 +13,6 @@ import '@itwin/itwinui-css/css/input.css';
14
13
  */
15
14
  export const Textarea = React.forwardRef((props, ref) => {
16
15
  const { className, rows = 3, setFocus = false, ...rest } = props;
17
- useTheme();
18
16
  const textAreaRef = React.useRef(null);
19
17
  const refs = useMergedRefs(ref, textAreaRef);
20
18
  React.useEffect(() => {
@@ -22,6 +20,6 @@ export const Textarea = React.forwardRef((props, ref) => {
22
20
  textAreaRef.current.focus();
23
21
  }
24
22
  }, [setFocus]);
25
- return (React.createElement("textarea", { className: cx('iui-input', className), rows: rows, ref: refs, ...rest }));
23
+ return (React.createElement(Box, { as: 'textarea', className: cx('iui-input', className), rows: rows, ref: refs, ...rest }));
26
24
  });
27
25
  export default Textarea;
@@ -1,4 +1,3 @@
1
1
  export { Textarea } from './Textarea.js';
2
- export type { TextareaProps } from './Textarea.js';
3
2
  declare const _default: "./Textarea";
4
3
  export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import type { ThemeOptions, ThemeType } from './ThemeProvider.js';
3
+ export declare const ThemeContext: React.Context<{
4
+ theme?: ThemeType | undefined;
5
+ themeOptions?: ThemeOptions | undefined;
6
+ rootRef: React.RefObject<HTMLElement>;
7
+ } | undefined>;
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export { Leading } from './Leading.js';
6
- export default './Leading';
5
+ import * as React from 'react';
6
+ export const ThemeContext = React.createContext(undefined);