@itwin/itwinui-react 2.11.11 → 2.12.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 +21 -2
  2. package/cjs/core/Alert/Alert.d.ts +0 -1
  3. package/cjs/core/Alert/Alert.js +0 -1
  4. package/cjs/core/Avatar/Avatar.d.ts +0 -1
  5. package/cjs/core/Avatar/Avatar.js +0 -1
  6. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -1
  7. package/cjs/core/AvatarGroup/AvatarGroup.js +0 -1
  8. package/cjs/core/Backdrop/Backdrop.d.ts +0 -1
  9. package/cjs/core/Backdrop/Backdrop.js +0 -1
  10. package/cjs/core/Badge/Badge.d.ts +0 -1
  11. package/cjs/core/Badge/Badge.js +0 -1
  12. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  13. package/cjs/core/Breadcrumbs/Breadcrumbs.js +0 -1
  14. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +0 -1
  15. package/cjs/core/ButtonGroup/ButtonGroup.js +0 -1
  16. package/cjs/core/Buttons/Button/Button.d.ts +0 -1
  17. package/cjs/core/Buttons/Button/Button.js +0 -1
  18. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +2 -3
  19. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -2
  20. package/cjs/core/Buttons/IconButton/IconButton.d.ts +0 -2
  21. package/cjs/core/Buttons/IconButton/IconButton.js +0 -2
  22. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
  23. package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -1
  24. package/cjs/core/Carousel/Carousel.d.ts +3 -2
  25. package/cjs/core/Carousel/Carousel.js +2 -3
  26. package/cjs/core/Carousel/CarouselDotsList.d.ts +0 -1
  27. package/cjs/core/Carousel/CarouselDotsList.js +0 -1
  28. package/cjs/core/Checkbox/Checkbox.d.ts +0 -1
  29. package/cjs/core/Checkbox/Checkbox.js +0 -1
  30. package/cjs/core/ColorPicker/ColorBuilder.d.ts +0 -1
  31. package/cjs/core/ColorPicker/ColorBuilder.js +0 -1
  32. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +0 -1
  33. package/cjs/core/ColorPicker/ColorInputPanel.js +0 -1
  34. package/cjs/core/ColorPicker/ColorPalette.d.ts +0 -1
  35. package/cjs/core/ColorPicker/ColorPalette.js +0 -1
  36. package/cjs/core/ColorPicker/ColorPicker.d.ts +0 -1
  37. package/cjs/core/ColorPicker/ColorPicker.js +0 -1
  38. package/cjs/core/ColorPicker/ColorSwatch.d.ts +0 -1
  39. package/cjs/core/ColorPicker/ColorSwatch.js +0 -1
  40. package/cjs/core/ComboBox/ComboBox.d.ts +0 -1
  41. package/cjs/core/ComboBox/ComboBox.js +0 -1
  42. package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +1 -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 +2 -3
  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 +1 -2
  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 +0 -1
  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 -4
  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/Stepper/Stepper.d.ts +0 -1
  155. package/cjs/core/Stepper/Stepper.js +0 -1
  156. package/cjs/core/Stepper/WorkflowDiagram.d.ts +0 -1
  157. package/cjs/core/Stepper/WorkflowDiagram.js +0 -1
  158. package/cjs/core/Surface/Surface.d.ts +0 -1
  159. package/cjs/core/Surface/Surface.js +0 -1
  160. package/cjs/core/Table/Table.d.ts +0 -1
  161. package/cjs/core/Table/Table.js +0 -1
  162. package/cjs/core/Table/TablePaginator.d.ts +0 -1
  163. package/cjs/core/Table/TablePaginator.js +0 -1
  164. package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
  165. package/cjs/core/Table/filters/BaseFilter.js +0 -1
  166. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  167. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  168. package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
  169. package/cjs/core/Table/filters/FilterButtonBar.js +0 -1
  170. package/cjs/core/Table/filters/FilterToggle.d.ts +0 -1
  171. package/cjs/core/Table/filters/FilterToggle.js +0 -1
  172. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  173. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  174. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  175. package/cjs/core/Table/filters/TextFilter/TextFilter.js +0 -1
  176. package/cjs/core/Tabs/Tab.d.ts +0 -1
  177. package/cjs/core/Tabs/Tab.js +0 -1
  178. package/cjs/core/Tabs/Tabs.d.ts +0 -1
  179. package/cjs/core/Tabs/Tabs.js +0 -1
  180. package/cjs/core/Tag/Tag.d.ts +0 -1
  181. package/cjs/core/Tag/Tag.js +0 -1
  182. package/cjs/core/Tag/TagContainer.d.ts +0 -1
  183. package/cjs/core/Tag/TagContainer.js +0 -1
  184. package/cjs/core/Textarea/Textarea.d.ts +0 -1
  185. package/cjs/core/Textarea/Textarea.js +0 -1
  186. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +20 -2
  187. package/cjs/core/ThemeProvider/ThemeProvider.js +15 -4
  188. package/cjs/core/Tile/Tile.d.ts +0 -1
  189. package/cjs/core/Tile/Tile.js +0 -1
  190. package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
  191. package/cjs/core/TimePicker/TimePicker.js +0 -1
  192. package/cjs/core/Toast/Toast.d.ts +0 -1
  193. package/cjs/core/Toast/Toast.js +0 -1
  194. package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
  195. package/cjs/core/Toast/ToastWrapper.js +0 -1
  196. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  197. package/cjs/core/ToggleSwitch/ToggleSwitch.js +0 -1
  198. package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
  199. package/cjs/core/Tooltip/Tooltip.js +0 -1
  200. package/cjs/core/Tree/Tree.d.ts +0 -1
  201. package/cjs/core/Tree/Tree.js +0 -1
  202. package/cjs/core/Tree/TreeNode.d.ts +0 -1
  203. package/cjs/core/Tree/TreeNode.js +0 -1
  204. package/cjs/core/Tree/TreeNodeExpander.d.ts +0 -1
  205. package/cjs/core/Tree/TreeNodeExpander.js +0 -1
  206. package/cjs/core/Typography/Anchor/Anchor.d.ts +0 -1
  207. package/cjs/core/Typography/Anchor/Anchor.js +0 -1
  208. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  209. package/cjs/core/Typography/Blockquote/Blockquote.js +0 -1
  210. package/cjs/core/Typography/Body/Body.d.ts +0 -1
  211. package/cjs/core/Typography/Body/Body.js +0 -1
  212. package/cjs/core/Typography/Code/Code.d.ts +0 -1
  213. package/cjs/core/Typography/Code/Code.js +0 -1
  214. package/cjs/core/Typography/Headline/Headline.d.ts +0 -1
  215. package/cjs/core/Typography/Headline/Headline.js +0 -1
  216. package/cjs/core/Typography/Kbd/Kbd.d.ts +0 -1
  217. package/cjs/core/Typography/Kbd/Kbd.js +0 -1
  218. package/cjs/core/Typography/Leading/Leading.d.ts +0 -1
  219. package/cjs/core/Typography/Leading/Leading.js +0 -1
  220. package/cjs/core/Typography/Small/Small.d.ts +0 -1
  221. package/cjs/core/Typography/Small/Small.js +0 -1
  222. package/cjs/core/Typography/Subheading/Subheading.d.ts +0 -1
  223. package/cjs/core/Typography/Subheading/Subheading.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/Typography/Title/Title.d.ts +0 -1
  227. package/cjs/core/Typography/Title/Title.js +0 -1
  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 +2 -1
  232. package/cjs/core/utils/components/Icon.d.ts +0 -1
  233. package/cjs/core/utils/components/Icon.js +2 -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 +2 -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 +1 -2
  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 +15 -1
  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/hooks/useStyles.d.ts +10 -0
  249. package/cjs/core/utils/hooks/useStyles.js +93 -0
  250. package/cjs/core/utils/hooks/useTheme.d.ts +2 -2
  251. package/cjs/core/utils/hooks/useTheme.js +4 -2
  252. package/cjs/styles.js +348 -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 +2 -3
  270. package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -2
  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 +3 -2
  276. package/esm/core/Carousel/Carousel.js +3 -4
  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/ComboBox/ComboBoxDropdown.d.ts +1 -1
  294. package/esm/core/DatePicker/DatePicker.d.ts +0 -1
  295. package/esm/core/DatePicker/DatePicker.js +0 -1
  296. package/esm/core/Dialog/Dialog.d.ts +2 -3
  297. package/esm/core/Dialog/Dialog.js +2 -2
  298. package/esm/core/Dialog/DialogButtonBar.d.ts +0 -1
  299. package/esm/core/Dialog/DialogButtonBar.js +0 -1
  300. package/esm/core/Dialog/DialogContent.d.ts +0 -1
  301. package/esm/core/Dialog/DialogContent.js +0 -1
  302. package/esm/core/Dialog/DialogContext.d.ts +4 -0
  303. package/esm/core/Dialog/DialogMain.d.ts +1 -2
  304. package/esm/core/Dialog/DialogMain.js +2 -3
  305. package/esm/core/Dialog/DialogTitleBar.d.ts +0 -1
  306. package/esm/core/Dialog/DialogTitleBar.js +0 -1
  307. package/esm/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
  308. package/esm/core/Dialog/DialogTitleBarTitle.js +0 -1
  309. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
  310. package/esm/core/ExpandableBlock/ExpandableBlock.js +6 -4
  311. package/esm/core/Fieldset/Fieldset.d.ts +0 -1
  312. package/esm/core/Fieldset/Fieldset.js +0 -1
  313. package/esm/core/FileUpload/FileUpload.d.ts +0 -1
  314. package/esm/core/FileUpload/FileUpload.js +0 -1
  315. package/esm/core/FileUpload/FileUploadCard.d.ts +0 -1
  316. package/esm/core/FileUpload/FileUploadCard.js +0 -1
  317. package/esm/core/FileUpload/FileUploadTemplate.d.ts +0 -1
  318. package/esm/core/FileUpload/FileUploadTemplate.js +0 -1
  319. package/esm/core/Footer/Footer.d.ts +0 -1
  320. package/esm/core/Footer/Footer.js +0 -1
  321. package/esm/core/Footer/FooterItem.d.ts +0 -1
  322. package/esm/core/Footer/FooterItem.js +0 -1
  323. package/esm/core/Footer/FooterList.d.ts +0 -1
  324. package/esm/core/Footer/FooterList.js +0 -1
  325. package/esm/core/Footer/FooterSeparator.d.ts +0 -1
  326. package/esm/core/Footer/FooterSeparator.js +0 -1
  327. package/esm/core/Header/Header.d.ts +0 -1
  328. package/esm/core/Header/Header.js +0 -1
  329. package/esm/core/Header/HeaderBreadcrumbs.d.ts +0 -1
  330. package/esm/core/Header/HeaderBreadcrumbs.js +0 -1
  331. package/esm/core/Header/HeaderButton.d.ts +0 -1
  332. package/esm/core/Header/HeaderButton.js +0 -1
  333. package/esm/core/Header/HeaderLogo.d.ts +0 -1
  334. package/esm/core/Header/HeaderLogo.js +0 -1
  335. package/esm/core/InformationPanel/InformationPanel.d.ts +0 -1
  336. package/esm/core/InformationPanel/InformationPanel.js +0 -1
  337. package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
  338. package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
  339. package/esm/core/InformationPanel/InformationPanelContent.d.ts +0 -1
  340. package/esm/core/InformationPanel/InformationPanelContent.js +0 -1
  341. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +0 -1
  342. package/esm/core/InformationPanel/InformationPanelHeader.js +0 -1
  343. package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
  344. package/esm/core/InformationPanel/InformationPanelWrapper.js +0 -1
  345. package/esm/core/Input/Input.d.ts +0 -1
  346. package/esm/core/Input/Input.js +0 -1
  347. package/esm/core/InputGroup/InputGroup.d.ts +0 -1
  348. package/esm/core/InputGroup/InputGroup.js +0 -1
  349. package/esm/core/Label/Label.d.ts +0 -1
  350. package/esm/core/Label/Label.js +0 -1
  351. package/esm/core/LabeledInput/LabeledInput.d.ts +0 -1
  352. package/esm/core/LabeledInput/LabeledInput.js +0 -1
  353. package/esm/core/LabeledSelect/LabeledSelect.d.ts +0 -1
  354. package/esm/core/LabeledSelect/LabeledSelect.js +0 -1
  355. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
  356. package/esm/core/LabeledTextarea/LabeledTextarea.js +0 -1
  357. package/esm/core/List/List.d.ts +0 -1
  358. package/esm/core/List/List.js +0 -1
  359. package/esm/core/List/ListItem.d.ts +0 -1
  360. package/esm/core/List/ListItem.js +0 -1
  361. package/esm/core/Menu/Menu.d.ts +0 -1
  362. package/esm/core/Menu/Menu.js +0 -1
  363. package/esm/core/Menu/MenuDivider.d.ts +0 -1
  364. package/esm/core/Menu/MenuDivider.js +0 -1
  365. package/esm/core/Menu/MenuExtraContent.d.ts +0 -1
  366. package/esm/core/Menu/MenuExtraContent.js +0 -1
  367. package/esm/core/Menu/MenuItem.d.ts +0 -4
  368. package/esm/core/Menu/MenuItem.js +0 -1
  369. package/esm/core/Menu/MenuItemSkeleton.d.ts +0 -1
  370. package/esm/core/Menu/MenuItemSkeleton.js +0 -1
  371. package/esm/core/Modal/Modal.d.ts +0 -1
  372. package/esm/core/Modal/Modal.js +0 -1
  373. package/esm/core/NonIdealState/NonIdealState.d.ts +0 -1
  374. package/esm/core/NonIdealState/NonIdealState.js +0 -1
  375. package/esm/core/NotificationMarker/NotificationMarker.d.ts +0 -1
  376. package/esm/core/NotificationMarker/NotificationMarker.js +0 -1
  377. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
  378. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
  379. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
  380. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
  381. package/esm/core/Radio/Radio.d.ts +0 -1
  382. package/esm/core/Radio/Radio.js +0 -1
  383. package/esm/core/RadioTiles/RadioTile.d.ts +0 -1
  384. package/esm/core/RadioTiles/RadioTile.js +0 -1
  385. package/esm/core/RadioTiles/RadioTileGroup.d.ts +0 -1
  386. package/esm/core/RadioTiles/RadioTileGroup.js +0 -1
  387. package/esm/core/SearchBox/SearchBox.d.ts +0 -1
  388. package/esm/core/SearchBox/SearchBox.js +0 -1
  389. package/esm/core/Select/Select.d.ts +0 -1
  390. package/esm/core/Select/Select.js +0 -1
  391. package/esm/core/Select/SelectTag.d.ts +0 -1
  392. package/esm/core/Select/SelectTag.js +0 -1
  393. package/esm/core/SideNavigation/SideNavigation.d.ts +0 -1
  394. package/esm/core/SideNavigation/SideNavigation.js +0 -1
  395. package/esm/core/SideNavigation/SidenavButton.d.ts +0 -1
  396. package/esm/core/SideNavigation/SidenavButton.js +0 -1
  397. package/esm/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
  398. package/esm/core/SideNavigation/SidenavSubmenu.js +0 -1
  399. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +0 -1
  400. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
  401. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
  402. package/esm/core/SkipToContentLink/SkipToContentLink.js +0 -1
  403. package/esm/core/Slider/Slider.d.ts +0 -1
  404. package/esm/core/Slider/Slider.js +0 -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 +0 -1
  413. package/esm/core/Table/TablePaginator.d.ts +0 -1
  414. package/esm/core/Table/TablePaginator.js +0 -1
  415. package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
  416. package/esm/core/Table/filters/BaseFilter.js +0 -1
  417. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  418. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  419. package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
  420. package/esm/core/Table/filters/FilterButtonBar.js +0 -1
  421. package/esm/core/Table/filters/FilterToggle.d.ts +0 -1
  422. package/esm/core/Table/filters/FilterToggle.js +0 -1
  423. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  424. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  425. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  426. package/esm/core/Table/filters/TextFilter/TextFilter.js +0 -1
  427. package/esm/core/Tabs/Tab.d.ts +0 -1
  428. package/esm/core/Tabs/Tab.js +0 -1
  429. package/esm/core/Tabs/Tabs.d.ts +0 -1
  430. package/esm/core/Tabs/Tabs.js +0 -1
  431. package/esm/core/Tag/Tag.d.ts +0 -1
  432. package/esm/core/Tag/Tag.js +0 -1
  433. package/esm/core/Tag/TagContainer.d.ts +0 -1
  434. package/esm/core/Tag/TagContainer.js +0 -1
  435. package/esm/core/Textarea/Textarea.d.ts +0 -1
  436. package/esm/core/Textarea/Textarea.js +0 -1
  437. package/esm/core/ThemeProvider/ThemeProvider.d.ts +20 -2
  438. package/esm/core/ThemeProvider/ThemeProvider.js +15 -4
  439. package/esm/core/Tile/Tile.d.ts +0 -1
  440. package/esm/core/Tile/Tile.js +0 -1
  441. package/esm/core/TimePicker/TimePicker.d.ts +0 -1
  442. package/esm/core/TimePicker/TimePicker.js +0 -1
  443. package/esm/core/Toast/Toast.d.ts +0 -1
  444. package/esm/core/Toast/Toast.js +0 -1
  445. package/esm/core/Toast/ToastWrapper.d.ts +0 -1
  446. package/esm/core/Toast/ToastWrapper.js +0 -1
  447. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  448. package/esm/core/ToggleSwitch/ToggleSwitch.js +0 -1
  449. package/esm/core/Tooltip/Tooltip.d.ts +0 -1
  450. package/esm/core/Tooltip/Tooltip.js +0 -1
  451. package/esm/core/Tree/Tree.d.ts +0 -1
  452. package/esm/core/Tree/Tree.js +0 -1
  453. package/esm/core/Tree/TreeNode.d.ts +0 -1
  454. package/esm/core/Tree/TreeNode.js +0 -1
  455. package/esm/core/Tree/TreeNodeExpander.d.ts +0 -1
  456. package/esm/core/Tree/TreeNodeExpander.js +0 -1
  457. package/esm/core/Typography/Anchor/Anchor.d.ts +0 -1
  458. package/esm/core/Typography/Anchor/Anchor.js +0 -1
  459. package/esm/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  460. package/esm/core/Typography/Blockquote/Blockquote.js +0 -1
  461. package/esm/core/Typography/Body/Body.d.ts +0 -1
  462. package/esm/core/Typography/Body/Body.js +0 -1
  463. package/esm/core/Typography/Code/Code.d.ts +0 -1
  464. package/esm/core/Typography/Code/Code.js +0 -1
  465. package/esm/core/Typography/Headline/Headline.d.ts +0 -1
  466. package/esm/core/Typography/Headline/Headline.js +0 -1
  467. package/esm/core/Typography/Kbd/Kbd.d.ts +0 -1
  468. package/esm/core/Typography/Kbd/Kbd.js +0 -1
  469. package/esm/core/Typography/Leading/Leading.d.ts +0 -1
  470. package/esm/core/Typography/Leading/Leading.js +0 -1
  471. package/esm/core/Typography/Small/Small.d.ts +0 -1
  472. package/esm/core/Typography/Small/Small.js +0 -1
  473. package/esm/core/Typography/Subheading/Subheading.d.ts +0 -1
  474. package/esm/core/Typography/Subheading/Subheading.js +0 -1
  475. package/esm/core/Typography/Text/Text.d.ts +0 -1
  476. package/esm/core/Typography/Text/Text.js +0 -1
  477. package/esm/core/Typography/Title/Title.d.ts +0 -1
  478. package/esm/core/Typography/Title/Title.js +0 -1
  479. package/esm/core/utils/components/Divider.d.ts +0 -1
  480. package/esm/core/utils/components/Divider.js +0 -1
  481. package/esm/core/utils/components/Flex.d.ts +0 -1
  482. package/esm/core/utils/components/Flex.js +2 -1
  483. package/esm/core/utils/components/Icon.d.ts +0 -1
  484. package/esm/core/utils/components/Icon.js +2 -1
  485. package/esm/core/utils/components/InputContainer.d.ts +0 -1
  486. package/esm/core/utils/components/InputContainer.js +0 -1
  487. package/esm/core/utils/components/InputFlexContainer.d.ts +0 -1
  488. package/esm/core/utils/components/InputFlexContainer.js +2 -1
  489. package/esm/core/utils/components/LinkAction.d.ts +0 -1
  490. package/esm/core/utils/components/LinkAction.js +0 -1
  491. package/esm/core/utils/components/Popover.d.ts +1 -2
  492. package/esm/core/utils/components/Popover.js +0 -1
  493. package/esm/core/utils/components/VisuallyHidden.d.ts +0 -1
  494. package/esm/core/utils/components/VisuallyHidden.js +0 -1
  495. package/esm/core/utils/functions/dom.d.ts +6 -0
  496. package/esm/core/utils/functions/dom.js +13 -0
  497. package/esm/core/utils/functions/index.d.ts +0 -1
  498. package/esm/core/utils/functions/index.js +0 -1
  499. package/esm/core/utils/hooks/useStyles.d.ts +10 -0
  500. package/esm/core/utils/hooks/useStyles.js +66 -0
  501. package/esm/core/utils/hooks/useTheme.d.ts +2 -2
  502. package/esm/core/utils/hooks/useTheme.js +4 -2
  503. package/esm/styles.js +348 -0
  504. package/package.json +8 -6
  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 { useTheme, StatusIconMap, WithCSSTransition, SvgChevronRight, Icon, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/expandable-block.css';
9
8
  /**
10
9
  * Container that allows content to be hidden behind a brief title and a caption.
11
10
  * @example
@@ -16,7 +15,7 @@ import '@itwin/itwinui-css/css/expandable-block.css';
16
15
  * <ExpandableBlock title='Block with icon' endIcon={<SvgPlaceholder />}>Content</ExpandableBlock>
17
16
  */
18
17
  export const ExpandableBlock = (props) => {
19
- const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', ...rest } = props;
18
+ const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', disabled = false, ...rest } = props;
20
19
  useTheme();
21
20
  const icon = endIcon !== null && endIcon !== void 0 ? endIcon : (status && StatusIconMap[status]());
22
21
  const [expanded, setExpanded] = React.useState(isExpanded);
@@ -24,11 +23,14 @@ export const ExpandableBlock = (props) => {
24
23
  setExpanded(isExpanded);
25
24
  }, [isExpanded]);
26
25
  const handleToggle = () => {
26
+ if (disabled) {
27
+ return;
28
+ }
27
29
  setExpanded(!expanded);
28
30
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(!expanded);
29
31
  };
30
32
  const onKeyDown = (event) => {
31
- if (event.altKey) {
33
+ if (event.altKey || disabled) {
32
34
  return;
33
35
  }
34
36
  if (event.key === 'Enter' ||
@@ -43,7 +45,7 @@ export const ExpandableBlock = (props) => {
43
45
  'iui-small': size === 'small',
44
46
  'iui-borderless': styleType === 'borderless',
45
47
  }, className), style: style, ...rest },
46
- React.createElement("div", { "aria-expanded": expanded, className: 'iui-header', tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
48
+ React.createElement("div", { role: 'button', "aria-expanded": expanded, className: 'iui-header', "aria-disabled": disabled, tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
47
49
  React.createElement(SvgChevronRight, { className: 'iui-icon', "aria-hidden": true }),
48
50
  React.createElement("span", { className: 'iui-expandable-block-label' },
49
51
  React.createElement("div", { className: 'iui-title' }, title),
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/fieldset.css';
3
2
  export declare type FieldsetProps = {
4
3
  /**
5
4
  * The caption or title for the fieldset.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/fieldset.css';
9
8
  /**
10
9
  * Fieldset component to group several inputs, controls and labels within a form.
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/file-upload.css';
4
3
  export declare type FileUploadProps = {
5
4
  /**
6
5
  * Content shown over `children` when file is being dragged onto the component.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme, useMergedRefs } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/file-upload.css';
9
8
  /**
10
9
  * File upload component to be wrapped around `FileUploadTemplate` or any arbitrary component.
11
10
  * Provides support for dragging and dropping multiple files.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/file-upload.css';
3
2
  export declare type FileUploadCardIconProps = React.ComponentPropsWithRef<'span'>;
4
3
  export declare type FileUploadCardInfoProps = React.ComponentPropsWithRef<'span'>;
5
4
  export declare type FileUploadCardTitleProps = React.ComponentPropsWithRef<'span'>;
@@ -7,7 +7,6 @@ import { getWindow, SvgDocument, useMergedRefs, useSafeContext, useId, mergeEven
7
7
  import cx from 'classnames';
8
8
  import { FileEmptyCard } from './FileEmptyCard.js';
9
9
  import { Anchor } from '../Typography/Anchor/Anchor.js';
10
- import '@itwin/itwinui-css/css/file-upload.css';
11
10
  const toBytes = (bytes) => {
12
11
  const units = [' bytes', 'KB', 'MB', 'GB', 'TB'];
13
12
  let i = 0;
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/file-upload.css';
3
2
  export declare type FileUploadTemplateProps = {
4
3
  /**
5
4
  * Callback fired when a file is selected from the device.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme, SvgUpload } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/file-upload.css';
9
8
  import { Anchor } from '../Typography/Anchor/Anchor.js';
10
9
  /**
11
10
  * Default template to be used with the `FileUpload` wrapper component.
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { StylingProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/footer.css';
4
3
  export declare type TitleTranslations = {
5
4
  termsOfService: string;
6
5
  privacy: string;
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/footer.css';
9
8
  import { FooterItem } from './FooterItem.js';
10
9
  import { FooterSeparator } from './FooterSeparator.js';
11
10
  import { FooterList } from './FooterList.js';
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/footer.css';
3
2
  export declare type FooterItemProps = React.ComponentPropsWithRef<'li'>;
4
3
  /**
5
4
  * Footer item. Recommended to use inside `Footer.List`.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/footer.css';
9
8
  /**
10
9
  * Footer item. Recommended to use inside `Footer.List`.
11
10
  */
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/footer.css';
3
2
  export declare type FooterListProps = React.ComponentPropsWithRef<'ul'>;
4
3
  /**
5
4
  * Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/footer.css';
9
8
  /**
10
9
  * Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
11
10
  */
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/footer.css';
3
2
  export declare type FooterSeparatorProps = Omit<React.ComponentPropsWithRef<'li'>, 'children'>;
4
3
  /**
5
4
  * Footer separator. Recommended to use inside `Footer.List`.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/footer.css';
9
8
  /**
10
9
  * Footer separator. Recommended to use inside `Footer.List`.
11
10
  */
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/header.css';
4
3
  export declare type HeaderTranslations = {
5
4
  /**
6
5
  * 'More' menu button aria-label.
@@ -6,7 +6,6 @@ import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { IconButton } from '../Buttons/index.js';
8
8
  import { useTheme, SvgMoreVertical } from '../utils/index.js';
9
- import '@itwin/itwinui-css/css/header.css';
10
9
  import { DropdownMenu } from '../DropdownMenu/index.js';
11
10
  const defaultTranslations = {
12
11
  moreOptions: 'More options',
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/header.css';
3
2
  export declare type HeaderBreadcrumbsProps = {
4
3
  /**
5
4
  * Array of elements, chevrons will be put between them.
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import { useTheme, SvgChevronRight } from '../utils/index.js';
7
- import '@itwin/itwinui-css/css/header.css';
8
7
  /**
9
8
  * Header breadcrumbs, adds chevron between each provided items.
10
9
  * @example
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { ButtonProps } from '../Buttons/index.js';
3
3
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
4
- import '@itwin/itwinui-css/css/header.css';
5
4
  import type { HeaderDropdownButtonProps } from './HeaderDropdownButton.js';
6
5
  export declare type HeaderButtonProps = {
7
6
  /**
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/header.css';
9
8
  import { HeaderSplitButton } from './HeaderSplitButton.js';
10
9
  import { HeaderDropdownButton } from './HeaderDropdownButton.js';
11
10
  import { HeaderBasicButton } from './HeaderBasicButton.js';
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { PolymorphicForwardRefComponent, PolymorphicComponentProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/header.css';
4
3
  declare type HeaderLogoOwnProps = {
5
4
  /**
6
5
  * Logo shown before the main content.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/header.css';
9
8
  /**
10
9
  * Header Title section
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/information-panel.css';
4
3
  export declare type InformationPanelProps = {
5
4
  /**
6
5
  * Is the panel open?
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useMergedRefs, useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/information-panel.css';
9
8
  /**
10
9
  * InformationPanel provides a way to view additional content or attributes
11
10
  * without leaving the main content area (e.g. Table).
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/information-panel.css';
4
3
  export declare type InformationPanelBodyProps = {
5
4
  /**
6
5
  * Content of the InformationPanelBody.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/information-panel.css';
9
8
  /**
10
9
  * Body of the `InformationPanel` containing the main content.
11
10
  */
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/information-panel.css';
4
3
  export declare type InformationPanelContentProps = {
5
4
  /**
6
5
  * If set to 'inline', the label/input pairs will be shown on the same line.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/information-panel.css';
9
8
  /**
10
9
  * The `InformationPanelContent` component should be used inside `InformationPanelBody`
11
10
  * to style rows of key/value pairs, where the key is ideally represented by a `Label` component
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/information-panel.css';
4
3
  export declare type InformationPanelHeaderProps = {
5
4
  /**
6
5
  * Callback fired when close icon is clicked.
@@ -6,7 +6,6 @@ import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { IconButton } from '../Buttons/index.js';
8
8
  import { useTheme, SvgCloseSmall } from '../utils/index.js';
9
- import '@itwin/itwinui-css/css/information-panel.css';
10
9
  /**
11
10
  * Header of the InformationPanel to be passed in the `header` prop.
12
11
  *
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/information-panel.css';
4
3
  export declare type InformationPanelWrapperProps = {
5
4
  children?: React.ReactNode;
6
5
  } & Omit<CommonProps, 'title'>;
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/information-panel.css';
9
8
  /**
10
9
  * InformationPanelWrapper should contain the `InformationPanel`
11
10
  * and the component over which the panel will overlay.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/input.css';
3
2
  export declare type InputProps = {
4
3
  /**
5
4
  * Set focus on input element.
@@ -5,7 +5,6 @@
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
7
  import { useMergedRefs, useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/input.css';
9
8
  /**
10
9
  * Basic input component
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/utils.css';
4
3
  export declare type InputGroupProps = {
5
4
  /**
6
5
  * Label of the group.
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
6
6
  import { StatusIconMap, useTheme, InputContainer } from '../utils/index.js';
7
- import '@itwin/itwinui-css/css/utils.css';
8
7
  /**
9
8
  * Group Checkbox/Radio components together
10
9
  * @example
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/utils.css';
3
2
  declare type LabelOwnProps<T extends React.ElementType = 'label'> = {
4
3
  /**
5
4
  * What element should the label be rendered as?
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/utils.css';
9
8
  /**
10
9
  * A standalone label to be used with input components (using `htmlFor`).
11
10
  * Can be rendered as any element, e.g. span, using the `as` prop.
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { InputProps } from '../Input/Input.js';
3
- import '@itwin/itwinui-css/css/input.css';
4
3
  export declare type LabeledInputProps = {
5
4
  /**
6
5
  * Label of the input.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { Input } from '../Input/Input.js';
7
7
  import { StatusIconMap, useTheme, InputContainer, useId, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/input.css';
9
8
  /**
10
9
  * Basic labeled input component
11
10
  * @example
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { SelectProps } from '../Select/Select.js';
3
3
  import type { LabeledInputProps } from '../LabeledInput/index.js';
4
- import '@itwin/itwinui-css/css/input.css';
5
4
  export declare type LabeledSelectProps<T> = {
6
5
  /**
7
6
  * Label of the select.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { Select } from '../Select/index.js';
7
7
  import { StatusIconMap, useTheme, InputContainer, useId, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/input.css';
9
8
  /**
10
9
  * Labeled select component to select value from options.
11
10
  * @example
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { TextareaProps } from '../Textarea/Textarea.js';
3
3
  import type { LabeledInputProps } from '../LabeledInput/index.js';
4
- import '@itwin/itwinui-css/css/input.css';
5
4
  export declare type LabeledTextareaProps = {
6
5
  /**
7
6
  * Label for the textarea.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { StatusIconMap, useTheme, InputContainer, useId, } from '../utils/index.js';
7
7
  import { Textarea } from '../Textarea/index.js';
8
- import '@itwin/itwinui-css/css/input.css';
9
8
  /**
10
9
  * Textarea wrapper that allows for additional styling and labelling
11
10
  * @example
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent, PolymorphicComponentProps } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/menu.css';
3
2
  export declare const List: PolymorphicForwardRefComponent<"ul", ListOwnProps>;
4
3
  declare type ListOwnProps = {};
5
4
  export declare type ListProps = PolymorphicComponentProps<'ul', ListOwnProps>;
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  export const List = React.forwardRef((props, ref) => {
10
9
  const { as: Element = 'ul', className, ...rest } = props;
11
10
  useTheme();
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent, PolymorphicComponentProps } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/menu.css';
3
2
  declare type ListItemOwnProps = {
4
3
  /**
5
4
  * Size of the ListItem. Can be explicitly specified to be 'large',
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  const ListItemComponent = React.forwardRef((props, ref) => {
10
9
  const { as: Element = 'li', size = 'default', disabled = false, active = false, actionable = false, focused = false, className, ...rest } = props;
11
10
  useTheme();
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/menu.css';
4
3
  export declare type MenuProps = {
5
4
  /**
6
5
  * ARIA role. For menu use 'menu', for select use 'listbox'.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme, useMergedRefs, getFocusableElements, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  /**
10
9
  * Basic menu component. Can be used for select or dropdown components.
11
10
  */
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/menu.css';
4
3
  export declare type MenuDividerProps = Omit<CommonProps, 'title'>;
5
4
  /**
6
5
  * Divider between menu items. Should be used inside `Menu`.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  /**
10
9
  * Divider between menu items. Should be used inside `Menu`.
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/menu.css';
4
3
  export declare type MenuExtraContentProps = {
5
4
  children: React.ReactNode;
6
5
  } & Omit<CommonProps, 'title'>;
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  /**
10
9
  * Component that allows to have any additional content inside `Menu`.
11
10
  * @example
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/menu.css';
4
3
  export declare type MenuItemProps = {
5
4
  /**
6
5
  * Item is selected.
@@ -104,9 +103,6 @@ export declare const MenuItem: React.ForwardRefExoticComponent<{
104
103
  */
105
104
  children?: React.ReactNode;
106
105
  } & {
107
- /**
108
- * Context used to provide menu item ref to sub-menu items.
109
- */
110
106
  title?: string | undefined;
111
107
  id?: string | undefined;
112
108
  } & {
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme, Popover, useMergedRefs, SvgCaretRightSmall, } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  import { Menu } from './Menu.js';
10
9
  /**
11
10
  * Context used to provide menu item ref to sub-menu items.
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/menu.css';
4
3
  export declare type MenuItemSkeletonProps = {
5
4
  /**
6
5
  * Flag whether to show skeleton for sub-label.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import cx from 'classnames';
7
7
  import { useTheme, VisuallyHidden } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/menu.css';
9
8
  /**
10
9
  * Menu item that uses skeletons to indicate loading state.
11
10
  */
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { CommonProps } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/dialog.css';
4
3
  import type { DialogMainProps } from '../Dialog/index.js';
5
4
  export declare type ModalProps = {
6
5
  /**
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import ReactDOM from 'react-dom';
7
7
  import { useTheme, getContainer, getDocument } from '../utils/index.js';
8
- import '@itwin/itwinui-css/css/dialog.css';
9
8
  import { Dialog } from '../Dialog/index.js';
10
9
  /**
11
10
  * Modal component which can wrap any content.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/non-ideal-state.css';
3
2
  export declare type NonIdealStateProps = {
4
3
  /**
5
4
  * An svg component, preferably from @itwin/itwinui-illustrations-react.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/non-ideal-state.css';
9
8
  /**
10
9
  * A stylized display to communicate common http errors and other non-ideal states.
11
10
  * Works well with svgs from @itwin/itwinui-illustrations-react.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/utils.css';
3
2
  export declare type NotificationMarkerProps = {
4
3
  /**
5
4
  * Content of the NotificationMarker.
@@ -5,7 +5,6 @@
5
5
  import * as React from 'react';
6
6
  import { useTheme } from '../utils/index.js';
7
7
  import cx from 'classnames';
8
- import '@itwin/itwinui-css/css/utils.css';
9
8
  /**
10
9
  * A small notification circle to the top-right of the passed children prop.
11
10
  * This can be applied to almost anything but mostly intended for icons within buttons with `styleType = default / borderless`.