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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +28 -22
  3. package/cjs/core/Alert/Alert.d.ts +0 -1
  4. package/cjs/core/Alert/Alert.js +0 -1
  5. package/cjs/core/Avatar/Avatar.d.ts +0 -1
  6. package/cjs/core/Avatar/Avatar.js +0 -1
  7. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -1
  8. package/cjs/core/AvatarGroup/AvatarGroup.js +0 -1
  9. package/cjs/core/Backdrop/Backdrop.d.ts +0 -1
  10. package/cjs/core/Backdrop/Backdrop.js +0 -1
  11. package/cjs/core/Badge/Badge.d.ts +0 -1
  12. package/cjs/core/Badge/Badge.js +0 -1
  13. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  14. package/cjs/core/Breadcrumbs/Breadcrumbs.js +0 -1
  15. package/cjs/core/ButtonGroup/ButtonGroup.d.ts +0 -1
  16. package/cjs/core/ButtonGroup/ButtonGroup.js +0 -1
  17. package/cjs/core/Buttons/Button/Button.d.ts +0 -1
  18. package/cjs/core/Buttons/Button/Button.js +0 -1
  19. package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
  20. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -1
  21. package/cjs/core/Buttons/IconButton/IconButton.d.ts +0 -2
  22. package/cjs/core/Buttons/IconButton/IconButton.js +0 -2
  23. package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
  24. package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -1
  25. package/cjs/core/Carousel/Carousel.d.ts +0 -1
  26. package/cjs/core/Carousel/Carousel.js +0 -1
  27. package/cjs/core/Carousel/CarouselDotsList.d.ts +0 -1
  28. package/cjs/core/Carousel/CarouselDotsList.js +0 -1
  29. package/cjs/core/Checkbox/Checkbox.d.ts +0 -1
  30. package/cjs/core/Checkbox/Checkbox.js +0 -1
  31. package/cjs/core/ColorPicker/ColorBuilder.d.ts +0 -1
  32. package/cjs/core/ColorPicker/ColorBuilder.js +0 -1
  33. package/cjs/core/ColorPicker/ColorInputPanel.d.ts +0 -1
  34. package/cjs/core/ColorPicker/ColorInputPanel.js +0 -1
  35. package/cjs/core/ColorPicker/ColorPalette.d.ts +0 -1
  36. package/cjs/core/ColorPicker/ColorPalette.js +0 -1
  37. package/cjs/core/ColorPicker/ColorPicker.d.ts +0 -1
  38. package/cjs/core/ColorPicker/ColorPicker.js +0 -1
  39. package/cjs/core/ColorPicker/ColorSwatch.d.ts +0 -1
  40. package/cjs/core/ColorPicker/ColorSwatch.js +0 -1
  41. package/cjs/core/ComboBox/ComboBox.d.ts +0 -1
  42. package/cjs/core/ComboBox/ComboBox.js +0 -1
  43. package/cjs/core/DatePicker/DatePicker.d.ts +0 -1
  44. package/cjs/core/DatePicker/DatePicker.js +0 -1
  45. package/cjs/core/Dialog/Dialog.d.ts +0 -1
  46. package/cjs/core/Dialog/Dialog.js +2 -2
  47. package/cjs/core/Dialog/DialogButtonBar.d.ts +0 -1
  48. package/cjs/core/Dialog/DialogButtonBar.js +0 -1
  49. package/cjs/core/Dialog/DialogContent.d.ts +0 -1
  50. package/cjs/core/Dialog/DialogContent.js +0 -1
  51. package/cjs/core/Dialog/DialogContext.d.ts +4 -0
  52. package/cjs/core/Dialog/DialogMain.d.ts +0 -1
  53. package/cjs/core/Dialog/DialogMain.js +2 -3
  54. package/cjs/core/Dialog/DialogTitleBar.d.ts +0 -1
  55. package/cjs/core/Dialog/DialogTitleBar.js +0 -1
  56. package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
  57. package/cjs/core/Dialog/DialogTitleBarTitle.js +0 -1
  58. package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
  59. package/cjs/core/ExpandableBlock/ExpandableBlock.js +6 -4
  60. package/cjs/core/Fieldset/Fieldset.d.ts +0 -1
  61. package/cjs/core/Fieldset/Fieldset.js +0 -1
  62. package/cjs/core/FileUpload/FileUpload.d.ts +0 -1
  63. package/cjs/core/FileUpload/FileUpload.js +0 -1
  64. package/cjs/core/FileUpload/FileUploadCard.d.ts +0 -1
  65. package/cjs/core/FileUpload/FileUploadCard.js +1 -2
  66. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +0 -1
  67. package/cjs/core/FileUpload/FileUploadTemplate.js +0 -1
  68. package/cjs/core/Footer/Footer.d.ts +0 -1
  69. package/cjs/core/Footer/Footer.js +0 -1
  70. package/cjs/core/Footer/FooterItem.d.ts +0 -1
  71. package/cjs/core/Footer/FooterItem.js +0 -1
  72. package/cjs/core/Footer/FooterList.d.ts +0 -1
  73. package/cjs/core/Footer/FooterList.js +0 -1
  74. package/cjs/core/Footer/FooterSeparator.d.ts +0 -1
  75. package/cjs/core/Footer/FooterSeparator.js +0 -1
  76. package/cjs/core/Header/Header.d.ts +0 -1
  77. package/cjs/core/Header/Header.js +0 -1
  78. package/cjs/core/Header/HeaderBreadcrumbs.d.ts +0 -1
  79. package/cjs/core/Header/HeaderBreadcrumbs.js +0 -1
  80. package/cjs/core/Header/HeaderButton.d.ts +0 -1
  81. package/cjs/core/Header/HeaderButton.js +0 -1
  82. package/cjs/core/Header/HeaderLogo.d.ts +0 -1
  83. package/cjs/core/Header/HeaderLogo.js +0 -1
  84. package/cjs/core/InformationPanel/InformationPanel.d.ts +0 -1
  85. package/cjs/core/InformationPanel/InformationPanel.js +0 -1
  86. package/cjs/core/InformationPanel/InformationPanelBody.d.ts +0 -1
  87. package/cjs/core/InformationPanel/InformationPanelBody.js +0 -1
  88. package/cjs/core/InformationPanel/InformationPanelContent.d.ts +0 -1
  89. package/cjs/core/InformationPanel/InformationPanelContent.js +0 -1
  90. package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +0 -1
  91. package/cjs/core/InformationPanel/InformationPanelHeader.js +0 -1
  92. package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
  93. package/cjs/core/InformationPanel/InformationPanelWrapper.js +0 -1
  94. package/cjs/core/Input/Input.d.ts +0 -1
  95. package/cjs/core/Input/Input.js +0 -1
  96. package/cjs/core/InputGroup/InputGroup.d.ts +0 -1
  97. package/cjs/core/InputGroup/InputGroup.js +0 -1
  98. package/cjs/core/Label/Label.d.ts +0 -1
  99. package/cjs/core/Label/Label.js +0 -1
  100. package/cjs/core/LabeledInput/LabeledInput.d.ts +0 -1
  101. package/cjs/core/LabeledInput/LabeledInput.js +0 -1
  102. package/cjs/core/LabeledSelect/LabeledSelect.d.ts +0 -1
  103. package/cjs/core/LabeledSelect/LabeledSelect.js +0 -1
  104. package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
  105. package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -1
  106. package/cjs/core/List/List.d.ts +0 -1
  107. package/cjs/core/List/List.js +0 -1
  108. package/cjs/core/List/ListItem.d.ts +0 -1
  109. package/cjs/core/List/ListItem.js +0 -1
  110. package/cjs/core/Menu/Menu.d.ts +0 -1
  111. package/cjs/core/Menu/Menu.js +0 -1
  112. package/cjs/core/Menu/MenuDivider.d.ts +0 -1
  113. package/cjs/core/Menu/MenuDivider.js +0 -1
  114. package/cjs/core/Menu/MenuExtraContent.d.ts +0 -1
  115. package/cjs/core/Menu/MenuExtraContent.js +0 -1
  116. package/cjs/core/Menu/MenuItem.d.ts +0 -1
  117. package/cjs/core/Menu/MenuItem.js +0 -1
  118. package/cjs/core/Menu/MenuItemSkeleton.d.ts +0 -1
  119. package/cjs/core/Menu/MenuItemSkeleton.js +0 -1
  120. package/cjs/core/Modal/Modal.d.ts +0 -1
  121. package/cjs/core/Modal/Modal.js +0 -1
  122. package/cjs/core/NonIdealState/NonIdealState.d.ts +0 -1
  123. package/cjs/core/NonIdealState/NonIdealState.js +0 -1
  124. package/cjs/core/NotificationMarker/NotificationMarker.d.ts +0 -1
  125. package/cjs/core/NotificationMarker/NotificationMarker.js +0 -1
  126. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
  127. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
  128. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
  129. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
  130. package/cjs/core/Radio/Radio.d.ts +0 -1
  131. package/cjs/core/Radio/Radio.js +0 -1
  132. package/cjs/core/RadioTiles/RadioTile.d.ts +0 -1
  133. package/cjs/core/RadioTiles/RadioTile.js +0 -1
  134. package/cjs/core/RadioTiles/RadioTileGroup.d.ts +0 -1
  135. package/cjs/core/RadioTiles/RadioTileGroup.js +0 -1
  136. package/cjs/core/SearchBox/SearchBox.d.ts +0 -1
  137. package/cjs/core/SearchBox/SearchBox.js +0 -1
  138. package/cjs/core/Select/Select.d.ts +0 -1
  139. package/cjs/core/Select/Select.js +0 -1
  140. package/cjs/core/Select/SelectTag.d.ts +0 -1
  141. package/cjs/core/Select/SelectTag.js +0 -1
  142. package/cjs/core/SideNavigation/SideNavigation.d.ts +0 -1
  143. package/cjs/core/SideNavigation/SideNavigation.js +0 -1
  144. package/cjs/core/SideNavigation/SidenavButton.d.ts +0 -1
  145. package/cjs/core/SideNavigation/SidenavButton.js +0 -1
  146. package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
  147. package/cjs/core/SideNavigation/SidenavSubmenu.js +0 -1
  148. package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +0 -1
  149. package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
  150. package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
  151. package/cjs/core/SkipToContentLink/SkipToContentLink.js +0 -1
  152. package/cjs/core/Slider/Slider.d.ts +0 -1
  153. package/cjs/core/Slider/Slider.js +0 -1
  154. package/cjs/core/Slider/Track.js +2 -1
  155. package/cjs/core/Stepper/Stepper.d.ts +0 -1
  156. package/cjs/core/Stepper/Stepper.js +0 -1
  157. package/cjs/core/Stepper/WorkflowDiagram.d.ts +0 -1
  158. package/cjs/core/Stepper/WorkflowDiagram.js +0 -1
  159. package/cjs/core/Surface/Surface.d.ts +0 -1
  160. package/cjs/core/Surface/Surface.js +0 -1
  161. package/cjs/core/Table/Table.d.ts +0 -1
  162. package/cjs/core/Table/Table.js +18 -19
  163. package/cjs/core/Table/TableCell.js +3 -2
  164. package/cjs/core/Table/TablePaginator.d.ts +0 -1
  165. package/cjs/core/Table/TablePaginator.js +8 -9
  166. package/cjs/core/Table/TableRowMemoized.js +2 -2
  167. package/cjs/core/Table/cells/DefaultCell.js +4 -3
  168. package/cjs/core/Table/cells/EditableCell.js +1 -1
  169. package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
  170. package/cjs/core/Table/filters/BaseFilter.js +1 -2
  171. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  172. package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  173. package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
  174. package/cjs/core/Table/filters/FilterButtonBar.js +1 -2
  175. package/cjs/core/Table/filters/FilterToggle.d.ts +0 -1
  176. package/cjs/core/Table/filters/FilterToggle.js +0 -1
  177. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  178. package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  179. package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  180. package/cjs/core/Table/filters/TextFilter/TextFilter.js +0 -1
  181. package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -4
  182. package/cjs/core/Tabs/Tab.d.ts +0 -1
  183. package/cjs/core/Tabs/Tab.js +0 -1
  184. package/cjs/core/Tabs/Tabs.d.ts +0 -1
  185. package/cjs/core/Tabs/Tabs.js +4 -4
  186. package/cjs/core/Tag/Tag.d.ts +0 -1
  187. package/cjs/core/Tag/Tag.js +0 -1
  188. package/cjs/core/Tag/TagContainer.d.ts +0 -1
  189. package/cjs/core/Tag/TagContainer.js +0 -1
  190. package/cjs/core/Textarea/Textarea.d.ts +0 -1
  191. package/cjs/core/Textarea/Textarea.js +0 -1
  192. package/cjs/core/ThemeProvider/ThemeProvider.d.ts +0 -2
  193. package/cjs/core/ThemeProvider/ThemeProvider.js +0 -2
  194. package/cjs/core/Tile/Tile.d.ts +0 -1
  195. package/cjs/core/Tile/Tile.js +1 -4
  196. package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
  197. package/cjs/core/TimePicker/TimePicker.js +0 -1
  198. package/cjs/core/Toast/Toast.d.ts +0 -1
  199. package/cjs/core/Toast/Toast.js +0 -1
  200. package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
  201. package/cjs/core/Toast/ToastWrapper.js +0 -1
  202. package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  203. package/cjs/core/ToggleSwitch/ToggleSwitch.js +1 -3
  204. package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
  205. package/cjs/core/Tooltip/Tooltip.js +0 -1
  206. package/cjs/core/TransferList/TransferList.d.ts +69 -0
  207. package/cjs/core/TransferList/TransferList.js +148 -0
  208. package/cjs/core/TransferList/index.d.ts +3 -0
  209. package/cjs/core/TransferList/index.js +10 -0
  210. package/cjs/core/Tree/Tree.d.ts +0 -1
  211. package/cjs/core/Tree/Tree.js +0 -1
  212. package/cjs/core/Tree/TreeNode.d.ts +0 -1
  213. package/cjs/core/Tree/TreeNode.js +0 -1
  214. package/cjs/core/Tree/TreeNodeExpander.d.ts +0 -1
  215. package/cjs/core/Tree/TreeNodeExpander.js +0 -1
  216. package/cjs/core/Typography/Anchor/Anchor.d.ts +0 -1
  217. package/cjs/core/Typography/Anchor/Anchor.js +0 -1
  218. package/cjs/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  219. package/cjs/core/Typography/Blockquote/Blockquote.js +0 -1
  220. package/cjs/core/Typography/Code/Code.d.ts +0 -1
  221. package/cjs/core/Typography/Code/Code.js +0 -1
  222. package/cjs/core/Typography/Kbd/Kbd.d.ts +0 -1
  223. package/cjs/core/Typography/Kbd/Kbd.js +0 -1
  224. package/cjs/core/Typography/Text/Text.d.ts +0 -1
  225. package/cjs/core/Typography/Text/Text.js +0 -1
  226. package/cjs/core/index.d.ts +1 -0
  227. package/cjs/core/index.js +118 -116
  228. package/cjs/core/utils/components/Divider.d.ts +0 -1
  229. package/cjs/core/utils/components/Divider.js +0 -1
  230. package/cjs/core/utils/components/Flex.d.ts +0 -1
  231. package/cjs/core/utils/components/Flex.js +0 -1
  232. package/cjs/core/utils/components/Icon.d.ts +0 -1
  233. package/cjs/core/utils/components/Icon.js +0 -1
  234. package/cjs/core/utils/components/InputContainer.d.ts +0 -1
  235. package/cjs/core/utils/components/InputContainer.js +0 -1
  236. package/cjs/core/utils/components/InputFlexContainer.d.ts +0 -1
  237. package/cjs/core/utils/components/InputFlexContainer.js +0 -1
  238. package/cjs/core/utils/components/LinkAction.d.ts +0 -1
  239. package/cjs/core/utils/components/LinkAction.js +0 -1
  240. package/cjs/core/utils/components/Popover.d.ts +0 -1
  241. package/cjs/core/utils/components/Popover.js +0 -1
  242. package/cjs/core/utils/components/VisuallyHidden.d.ts +0 -1
  243. package/cjs/core/utils/components/VisuallyHidden.js +0 -1
  244. package/cjs/core/utils/functions/dom.d.ts +6 -0
  245. package/cjs/core/utils/functions/dom.js +20 -2
  246. package/cjs/core/utils/functions/index.d.ts +0 -1
  247. package/cjs/core/utils/functions/index.js +0 -1
  248. package/cjs/core/utils/functions/polymorphic.js +9 -1
  249. package/cjs/core/utils/hooks/useGlobals.d.ts +0 -2
  250. package/cjs/core/utils/hooks/useGlobals.js +0 -2
  251. package/cjs/styles.d.ts +5 -0
  252. package/cjs/styles.js +453 -0
  253. package/esm/core/Alert/Alert.d.ts +0 -1
  254. package/esm/core/Alert/Alert.js +0 -1
  255. package/esm/core/Avatar/Avatar.d.ts +0 -1
  256. package/esm/core/Avatar/Avatar.js +0 -1
  257. package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -1
  258. package/esm/core/AvatarGroup/AvatarGroup.js +0 -1
  259. package/esm/core/Backdrop/Backdrop.d.ts +0 -1
  260. package/esm/core/Backdrop/Backdrop.js +0 -1
  261. package/esm/core/Badge/Badge.d.ts +0 -1
  262. package/esm/core/Badge/Badge.js +0 -1
  263. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  264. package/esm/core/Breadcrumbs/Breadcrumbs.js +0 -1
  265. package/esm/core/ButtonGroup/ButtonGroup.d.ts +0 -1
  266. package/esm/core/ButtonGroup/ButtonGroup.js +0 -1
  267. package/esm/core/Buttons/Button/Button.d.ts +0 -1
  268. package/esm/core/Buttons/Button/Button.js +0 -1
  269. package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
  270. package/esm/core/Buttons/DropdownButton/DropdownButton.js +0 -1
  271. package/esm/core/Buttons/IconButton/IconButton.d.ts +0 -2
  272. package/esm/core/Buttons/IconButton/IconButton.js +0 -2
  273. package/esm/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
  274. package/esm/core/Buttons/SplitButton/SplitButton.js +0 -1
  275. package/esm/core/Carousel/Carousel.d.ts +0 -1
  276. package/esm/core/Carousel/Carousel.js +0 -1
  277. package/esm/core/Carousel/CarouselDotsList.d.ts +0 -1
  278. package/esm/core/Carousel/CarouselDotsList.js +0 -1
  279. package/esm/core/Checkbox/Checkbox.d.ts +0 -1
  280. package/esm/core/Checkbox/Checkbox.js +0 -1
  281. package/esm/core/ColorPicker/ColorBuilder.d.ts +0 -1
  282. package/esm/core/ColorPicker/ColorBuilder.js +0 -1
  283. package/esm/core/ColorPicker/ColorInputPanel.d.ts +0 -1
  284. package/esm/core/ColorPicker/ColorInputPanel.js +0 -1
  285. package/esm/core/ColorPicker/ColorPalette.d.ts +0 -1
  286. package/esm/core/ColorPicker/ColorPalette.js +0 -1
  287. package/esm/core/ColorPicker/ColorPicker.d.ts +0 -1
  288. package/esm/core/ColorPicker/ColorPicker.js +0 -1
  289. package/esm/core/ColorPicker/ColorSwatch.d.ts +0 -1
  290. package/esm/core/ColorPicker/ColorSwatch.js +0 -1
  291. package/esm/core/ComboBox/ComboBox.d.ts +0 -1
  292. package/esm/core/ComboBox/ComboBox.js +0 -1
  293. package/esm/core/DatePicker/DatePicker.d.ts +0 -1
  294. package/esm/core/DatePicker/DatePicker.js +0 -1
  295. package/esm/core/Dialog/Dialog.d.ts +0 -1
  296. package/esm/core/Dialog/Dialog.js +2 -2
  297. package/esm/core/Dialog/DialogButtonBar.d.ts +0 -1
  298. package/esm/core/Dialog/DialogButtonBar.js +0 -1
  299. package/esm/core/Dialog/DialogContent.d.ts +0 -1
  300. package/esm/core/Dialog/DialogContent.js +0 -1
  301. package/esm/core/Dialog/DialogContext.d.ts +4 -0
  302. package/esm/core/Dialog/DialogMain.d.ts +0 -1
  303. package/esm/core/Dialog/DialogMain.js +2 -3
  304. package/esm/core/Dialog/DialogTitleBar.d.ts +0 -1
  305. package/esm/core/Dialog/DialogTitleBar.js +0 -1
  306. package/esm/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
  307. package/esm/core/Dialog/DialogTitleBarTitle.js +0 -1
  308. package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
  309. package/esm/core/ExpandableBlock/ExpandableBlock.js +6 -4
  310. package/esm/core/Fieldset/Fieldset.d.ts +0 -1
  311. package/esm/core/Fieldset/Fieldset.js +0 -1
  312. package/esm/core/FileUpload/FileUpload.d.ts +0 -1
  313. package/esm/core/FileUpload/FileUpload.js +0 -1
  314. package/esm/core/FileUpload/FileUploadCard.d.ts +0 -1
  315. package/esm/core/FileUpload/FileUploadCard.js +1 -2
  316. package/esm/core/FileUpload/FileUploadTemplate.d.ts +0 -1
  317. package/esm/core/FileUpload/FileUploadTemplate.js +0 -1
  318. package/esm/core/Footer/Footer.d.ts +0 -1
  319. package/esm/core/Footer/Footer.js +0 -1
  320. package/esm/core/Footer/FooterItem.d.ts +0 -1
  321. package/esm/core/Footer/FooterItem.js +0 -1
  322. package/esm/core/Footer/FooterList.d.ts +0 -1
  323. package/esm/core/Footer/FooterList.js +0 -1
  324. package/esm/core/Footer/FooterSeparator.d.ts +0 -1
  325. package/esm/core/Footer/FooterSeparator.js +0 -1
  326. package/esm/core/Header/Header.d.ts +0 -1
  327. package/esm/core/Header/Header.js +0 -1
  328. package/esm/core/Header/HeaderBreadcrumbs.d.ts +0 -1
  329. package/esm/core/Header/HeaderBreadcrumbs.js +0 -1
  330. package/esm/core/Header/HeaderButton.d.ts +0 -1
  331. package/esm/core/Header/HeaderButton.js +0 -1
  332. package/esm/core/Header/HeaderLogo.d.ts +0 -1
  333. package/esm/core/Header/HeaderLogo.js +0 -1
  334. package/esm/core/InformationPanel/InformationPanel.d.ts +0 -1
  335. package/esm/core/InformationPanel/InformationPanel.js +0 -1
  336. package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
  337. package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
  338. package/esm/core/InformationPanel/InformationPanelContent.d.ts +0 -1
  339. package/esm/core/InformationPanel/InformationPanelContent.js +0 -1
  340. package/esm/core/InformationPanel/InformationPanelHeader.d.ts +0 -1
  341. package/esm/core/InformationPanel/InformationPanelHeader.js +0 -1
  342. package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
  343. package/esm/core/InformationPanel/InformationPanelWrapper.js +0 -1
  344. package/esm/core/Input/Input.d.ts +0 -1
  345. package/esm/core/Input/Input.js +0 -1
  346. package/esm/core/InputGroup/InputGroup.d.ts +0 -1
  347. package/esm/core/InputGroup/InputGroup.js +0 -1
  348. package/esm/core/Label/Label.d.ts +0 -1
  349. package/esm/core/Label/Label.js +0 -1
  350. package/esm/core/LabeledInput/LabeledInput.d.ts +0 -1
  351. package/esm/core/LabeledInput/LabeledInput.js +0 -1
  352. package/esm/core/LabeledSelect/LabeledSelect.d.ts +0 -1
  353. package/esm/core/LabeledSelect/LabeledSelect.js +0 -1
  354. package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
  355. package/esm/core/LabeledTextarea/LabeledTextarea.js +0 -1
  356. package/esm/core/List/List.d.ts +0 -1
  357. package/esm/core/List/List.js +0 -1
  358. package/esm/core/List/ListItem.d.ts +0 -1
  359. package/esm/core/List/ListItem.js +0 -1
  360. package/esm/core/Menu/Menu.d.ts +0 -1
  361. package/esm/core/Menu/Menu.js +0 -1
  362. package/esm/core/Menu/MenuDivider.d.ts +0 -1
  363. package/esm/core/Menu/MenuDivider.js +0 -1
  364. package/esm/core/Menu/MenuExtraContent.d.ts +0 -1
  365. package/esm/core/Menu/MenuExtraContent.js +0 -1
  366. package/esm/core/Menu/MenuItem.d.ts +0 -1
  367. package/esm/core/Menu/MenuItem.js +0 -1
  368. package/esm/core/Menu/MenuItemSkeleton.d.ts +0 -1
  369. package/esm/core/Menu/MenuItemSkeleton.js +0 -1
  370. package/esm/core/Modal/Modal.d.ts +0 -1
  371. package/esm/core/Modal/Modal.js +0 -1
  372. package/esm/core/NonIdealState/NonIdealState.d.ts +0 -1
  373. package/esm/core/NonIdealState/NonIdealState.js +0 -1
  374. package/esm/core/NotificationMarker/NotificationMarker.d.ts +0 -1
  375. package/esm/core/NotificationMarker/NotificationMarker.js +0 -1
  376. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
  377. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
  378. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
  379. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
  380. package/esm/core/Radio/Radio.d.ts +0 -1
  381. package/esm/core/Radio/Radio.js +0 -1
  382. package/esm/core/RadioTiles/RadioTile.d.ts +0 -1
  383. package/esm/core/RadioTiles/RadioTile.js +0 -1
  384. package/esm/core/RadioTiles/RadioTileGroup.d.ts +0 -1
  385. package/esm/core/RadioTiles/RadioTileGroup.js +0 -1
  386. package/esm/core/SearchBox/SearchBox.d.ts +0 -1
  387. package/esm/core/SearchBox/SearchBox.js +0 -1
  388. package/esm/core/Select/Select.d.ts +0 -1
  389. package/esm/core/Select/Select.js +0 -1
  390. package/esm/core/Select/SelectTag.d.ts +0 -1
  391. package/esm/core/Select/SelectTag.js +0 -1
  392. package/esm/core/SideNavigation/SideNavigation.d.ts +0 -1
  393. package/esm/core/SideNavigation/SideNavigation.js +0 -1
  394. package/esm/core/SideNavigation/SidenavButton.d.ts +0 -1
  395. package/esm/core/SideNavigation/SidenavButton.js +0 -1
  396. package/esm/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
  397. package/esm/core/SideNavigation/SidenavSubmenu.js +0 -1
  398. package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +0 -1
  399. package/esm/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
  400. package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
  401. package/esm/core/SkipToContentLink/SkipToContentLink.js +0 -1
  402. package/esm/core/Slider/Slider.d.ts +0 -1
  403. package/esm/core/Slider/Slider.js +0 -1
  404. package/esm/core/Slider/Track.js +2 -1
  405. package/esm/core/Stepper/Stepper.d.ts +0 -1
  406. package/esm/core/Stepper/Stepper.js +0 -1
  407. package/esm/core/Stepper/WorkflowDiagram.d.ts +0 -1
  408. package/esm/core/Stepper/WorkflowDiagram.js +0 -1
  409. package/esm/core/Surface/Surface.d.ts +0 -1
  410. package/esm/core/Surface/Surface.js +0 -1
  411. package/esm/core/Table/Table.d.ts +0 -1
  412. package/esm/core/Table/Table.js +19 -20
  413. package/esm/core/Table/TableCell.js +3 -2
  414. package/esm/core/Table/TablePaginator.d.ts +0 -1
  415. package/esm/core/Table/TablePaginator.js +9 -10
  416. package/esm/core/Table/TableRowMemoized.js +3 -3
  417. package/esm/core/Table/cells/DefaultCell.js +4 -3
  418. package/esm/core/Table/cells/EditableCell.js +2 -2
  419. package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
  420. package/esm/core/Table/filters/BaseFilter.js +2 -3
  421. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
  422. package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
  423. package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
  424. package/esm/core/Table/filters/FilterButtonBar.js +2 -3
  425. package/esm/core/Table/filters/FilterToggle.d.ts +0 -1
  426. package/esm/core/Table/filters/FilterToggle.js +0 -1
  427. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
  428. package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +0 -1
  429. package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
  430. package/esm/core/Table/filters/TextFilter/TextFilter.js +0 -1
  431. package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -4
  432. package/esm/core/Tabs/Tab.d.ts +0 -1
  433. package/esm/core/Tabs/Tab.js +0 -1
  434. package/esm/core/Tabs/Tabs.d.ts +0 -1
  435. package/esm/core/Tabs/Tabs.js +4 -4
  436. package/esm/core/Tag/Tag.d.ts +0 -1
  437. package/esm/core/Tag/Tag.js +0 -1
  438. package/esm/core/Tag/TagContainer.d.ts +0 -1
  439. package/esm/core/Tag/TagContainer.js +0 -1
  440. package/esm/core/Textarea/Textarea.d.ts +0 -1
  441. package/esm/core/Textarea/Textarea.js +0 -1
  442. package/esm/core/ThemeProvider/ThemeProvider.d.ts +0 -2
  443. package/esm/core/ThemeProvider/ThemeProvider.js +0 -2
  444. package/esm/core/Tile/Tile.d.ts +0 -1
  445. package/esm/core/Tile/Tile.js +1 -4
  446. package/esm/core/TimePicker/TimePicker.d.ts +0 -1
  447. package/esm/core/TimePicker/TimePicker.js +0 -1
  448. package/esm/core/Toast/Toast.d.ts +0 -1
  449. package/esm/core/Toast/Toast.js +0 -1
  450. package/esm/core/Toast/ToastWrapper.d.ts +0 -1
  451. package/esm/core/Toast/ToastWrapper.js +0 -1
  452. package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
  453. package/esm/core/ToggleSwitch/ToggleSwitch.js +1 -3
  454. package/esm/core/Tooltip/Tooltip.d.ts +0 -1
  455. package/esm/core/Tooltip/Tooltip.js +0 -1
  456. package/esm/core/TransferList/TransferList.d.ts +69 -0
  457. package/esm/core/TransferList/TransferList.js +142 -0
  458. package/esm/core/TransferList/index.d.ts +3 -0
  459. package/esm/core/TransferList/index.js +6 -0
  460. package/esm/core/Tree/Tree.d.ts +0 -1
  461. package/esm/core/Tree/Tree.js +0 -1
  462. package/esm/core/Tree/TreeNode.d.ts +0 -1
  463. package/esm/core/Tree/TreeNode.js +0 -1
  464. package/esm/core/Tree/TreeNodeExpander.d.ts +0 -1
  465. package/esm/core/Tree/TreeNodeExpander.js +0 -1
  466. package/esm/core/Typography/Anchor/Anchor.d.ts +0 -1
  467. package/esm/core/Typography/Anchor/Anchor.js +0 -1
  468. package/esm/core/Typography/Blockquote/Blockquote.d.ts +0 -1
  469. package/esm/core/Typography/Blockquote/Blockquote.js +0 -1
  470. package/esm/core/Typography/Code/Code.d.ts +0 -1
  471. package/esm/core/Typography/Code/Code.js +0 -1
  472. package/esm/core/Typography/Kbd/Kbd.d.ts +0 -1
  473. package/esm/core/Typography/Kbd/Kbd.js +0 -1
  474. package/esm/core/Typography/Text/Text.d.ts +0 -1
  475. package/esm/core/Typography/Text/Text.js +0 -1
  476. package/esm/core/index.d.ts +1 -0
  477. package/esm/core/index.js +1 -0
  478. package/esm/core/utils/components/Divider.d.ts +0 -1
  479. package/esm/core/utils/components/Divider.js +0 -1
  480. package/esm/core/utils/components/Flex.d.ts +0 -1
  481. package/esm/core/utils/components/Flex.js +0 -1
  482. package/esm/core/utils/components/Icon.d.ts +0 -1
  483. package/esm/core/utils/components/Icon.js +0 -1
  484. package/esm/core/utils/components/InputContainer.d.ts +0 -1
  485. package/esm/core/utils/components/InputContainer.js +0 -1
  486. package/esm/core/utils/components/InputFlexContainer.d.ts +0 -1
  487. package/esm/core/utils/components/InputFlexContainer.js +0 -1
  488. package/esm/core/utils/components/LinkAction.d.ts +0 -1
  489. package/esm/core/utils/components/LinkAction.js +0 -1
  490. package/esm/core/utils/components/Popover.d.ts +0 -1
  491. package/esm/core/utils/components/Popover.js +0 -1
  492. package/esm/core/utils/components/VisuallyHidden.d.ts +0 -1
  493. package/esm/core/utils/components/VisuallyHidden.js +0 -1
  494. package/esm/core/utils/functions/dom.d.ts +6 -0
  495. package/esm/core/utils/functions/dom.js +15 -1
  496. package/esm/core/utils/functions/index.d.ts +0 -1
  497. package/esm/core/utils/functions/index.js +0 -1
  498. package/esm/core/utils/functions/polymorphic.js +9 -1
  499. package/esm/core/utils/hooks/useGlobals.d.ts +0 -2
  500. package/esm/core/utils/hooks/useGlobals.js +0 -2
  501. package/esm/styles.d.ts +5 -0
  502. package/esm/styles.js +454 -0
  503. package/package.json +14 -11
  504. package/styles.css +1942 -0
  505. package/cjs/core/utils/functions/styles.d.ts +0 -6
  506. package/cjs/core/utils/functions/styles.js +0 -21
  507. package/esm/core/utils/functions/styles.d.ts +0 -6
  508. package/esm/core/utils/functions/styles.js +0 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0-dev.1
4
+
5
+ ### Major Changes
6
+
7
+ - [#1302](https://github.com/iTwin/iTwinUI/pull/1302): The dependencies on `@itwin/itwinui-css` and `@itwin/itwinui-variable` have been removed. This means `@itwin/itwinui-react` will bring its own stylesheet.
8
+ - [#1322](https://github.com/iTwin/iTwinUI/pull/1322): All css imports within components have been removed. `@itwin/itwinui-react/styles.css` must now be manually imported at the entrypoint.
9
+ - [#1302](https://github.com/iTwin/iTwinUI/pull/1302): All elements have had their class names changed to prevent conflict with older versions. It is strongly recommended to switch these internal classes with your own classes or data attributes.
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1321](https://github.com/iTwin/iTwinUI/pull/1321): Added `disabled` prop to ExpandableBlock component. When activated, it triggers the "disabled" CSS styling for the ExpandableBlock and disables user interaction with it.
14
+ - [#1073](https://github.com/iTwin/iTwinUI/pull/1073): Added new `TransferList` component which is used to move one or more items between lists. Added the following subcomponents: `TransferList.ListWrapper`, `TransferList.ListboxWrapper`, `TransferList.ListboxLabel`, `TransferList.Listbox`, `TransferList.Item`, and `TransferList.Toolbar`
15
+ - [#1323](https://github.com/iTwin/iTwinUI/pull/1323): Added `placement` prop to `Dialog` to allow placing it at one of the corners.
16
+
3
17
  ## 3.0.0-dev.0
4
18
 
5
19
  ### Major Changes
@@ -21,6 +35,12 @@
21
35
  - Updated dependencies:
22
36
  - @itwin/itwinui-css@2.0.0-dev.0
23
37
 
38
+ ## 2.11.5
39
+
40
+ ### Patch Changes
41
+
42
+ - [#1329](https://github.com/iTwin/iTwinUI/pull/1329): Fixed an issue where the visually hidden `FileUploadCard.Input` was inadvertently showing when focused.
43
+
24
44
  ## 2.11.4
25
45
 
26
46
  ### Patch Changes
package/README.md CHANGED
@@ -39,43 +39,49 @@ yarn add @itwin/itwinui-react
39
39
 
40
40
  ---
41
41
 
42
- ## Usage
42
+ ## Setup
43
43
 
44
- Import the component you want and start using it!
44
+ Wrap your application entrypoint in `ThemeProvider` and import `styles.css`.
45
45
 
46
46
  ```jsx
47
- import { Button } from '@itwin/itwinui-react';
48
-
49
- const App = () => (
50
- <Button>Hello!</Button>
51
- );
47
+ import { ThemeProvider } from '@itwin/itwinui-react';
48
+ import '@itwin/itwinui-react/styles.css';
49
+
50
+ export default function App() {
51
+ return (
52
+ <>
53
+ <ThemeProvider>
54
+ {/* Your components go here. */}
55
+ </ThemeProvider>
56
+ </>
57
+ );
58
+ }
52
59
  ```
53
60
 
54
- Yes, that's really all you need as you can see in this live interactive demo:
55
-
56
- [![Edit in CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/s/github/iTwin/iTwinUI/tree/main/cra-sandbox?file=/src/App.tsx)
61
+ ThemeProvider has a `theme` prop which accepts one of the following values:
62
+ - `light` (default)
63
+ - `dark`
64
+ - `os` (respects the color scheme of the operating system)
65
+ - `inherit`
57
66
 
58
67
  ---
59
68
 
60
- ## Theming
69
+ ## Usage
61
70
 
62
- By default, all components use the light theme, but we recommend wrapping your root element with `ThemeProvider`. You can pass one of the following values to its `theme` prop:
63
- - `light` (default)
64
- - `dark`
65
- - `os` (which respects the color scheme of the operating system)
71
+ After setting up ThemeProvider and styles, import the component you want and start using it!
66
72
 
67
73
  ```jsx
68
- import { ThemeProvider } from '@itwin/itwinui-react';
74
+ import { Button } from '@itwin/itwinui-react';
69
75
 
70
- const App = () => (
71
- <>
72
- <ThemeProvider theme='dark'>
73
- {/* Your components go here. */}
74
- </ThemeProvider>
75
- </>
76
+ const Page = () => (
77
+ <Button>Hello!</Button>
76
78
  );
77
79
  ```
78
80
 
81
+ Check out this template for a live interactive demo:
82
+
83
+ [![Edit in CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/s/github/iTwin/iTwinUI/tree/main/cra-sandbox?file=/src/App.tsx)
84
+
79
85
  ---
80
86
 
81
87
  ## FAQ
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/alert.css';
3
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
4
3
  declare type AlertProps = {
5
4
  /**
@@ -33,7 +33,6 @@ exports.Alert = void 0;
33
33
  *--------------------------------------------------------------------------------------------*/
34
34
  const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
- require("@itwin/itwinui-css/css/alert.css");
37
36
  const index_js_1 = require("../utils/index.js");
38
37
  /**
39
38
  * A small box to quickly grab user attention and communicate a brief message
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/avatar.css';
4
3
  export declare type AvatarStatus = 'online' | 'busy' | 'away' | 'offline';
5
4
  declare type StatusTitles = {
6
5
  [key in Exclude<AvatarStatus, ''>]: string;
@@ -34,7 +34,6 @@ exports.UserIcon = exports.Avatar = exports.defaultStatusTitles = void 0;
34
34
  const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/avatar.css");
38
37
  exports.defaultStatusTitles = {
39
38
  away: 'Away',
40
39
  busy: 'Busy',
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/avatar.css';
4
3
  declare type AvatarGroupProps = {
5
4
  /**
6
5
  * Max number of avatars unstacked.
@@ -34,7 +34,6 @@ exports.UserIconGroup = exports.AvatarGroup = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/avatar.css");
38
37
  /**
39
38
  * Group Avatars together.
40
39
  *
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/backdrop.css';
3
2
  export declare type BackdropProps = {
4
3
  /**
5
4
  * Flag whether backdrop should be shown.
@@ -34,7 +34,6 @@ exports.Backdrop = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/backdrop.css");
38
37
  exports.Backdrop = React.forwardRef((props, ref) => {
39
38
  const { isVisible = true, className, ...rest } = props;
40
39
  return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-backdrop', { 'iui-backdrop-visible': isVisible }, className), ref: ref, ...rest }));
@@ -1,6 +1,5 @@
1
1
  import { SoftBackgrounds } from '../utils/index.js';
2
2
  import type { AnyString, PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/badge.css';
4
3
  declare type BadgeProps = {
5
4
  /**
6
5
  * Background color of the badge.
@@ -34,7 +34,6 @@ exports.Badge = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/badge.css");
38
37
  /**
39
38
  * Helper function that returns one of the preset badge color values.
40
39
  */
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/breadcrumbs.css';
4
3
  declare type BreadcrumbsProps = {
5
4
  /**
6
5
  * Index of the currently active breadcrumb.
@@ -34,7 +34,6 @@ exports.Breadcrumbs = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/breadcrumbs.css");
38
37
  /**
39
38
  * A breadcrumb trail is used as a navigational aid to help users keep track
40
39
  * of their place in the application. It is often placed before a page's main content.
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/button.css';
4
3
  declare type ButtonGroupProps = {
5
4
  /**
6
5
  * Buttons in the ButtonGroup.
@@ -34,7 +34,6 @@ exports.ButtonGroup = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/button.css");
38
37
  /**
39
38
  * Group buttons together for common actions.
40
39
  * Handles responsive overflow when the `overflowButton` prop is specified.
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
3
- import '@itwin/itwinui-css/css/button.css';
4
3
  export declare type ButtonProps = {
5
4
  /**
6
5
  * Modify size of the button.
@@ -34,7 +34,6 @@ exports.Button = void 0;
34
34
  const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
36
  const index_js_1 = require("../../utils/index.js");
37
- require("@itwin/itwinui-css/css/button.css");
38
37
  /**
39
38
  * Generic button component
40
39
  * @example
@@ -2,7 +2,6 @@
2
2
  import type { ButtonProps } from '../Button/Button.js';
3
3
  import type { DropdownMenuProps } from '../../DropdownMenu/index.js';
4
4
  import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
5
- import '@itwin/itwinui-css/css/button.css';
6
5
  export declare type DropdownButtonProps = {
7
6
  /**
8
7
  * Items in the dropdown menu.
@@ -36,7 +36,6 @@ const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../Button/index.js");
37
37
  const index_js_2 = require("../../DropdownMenu/index.js");
38
38
  const index_js_3 = require("../../utils/index.js");
39
- require("@itwin/itwinui-css/css/button.css");
40
39
  /**
41
40
  * Button that opens a DropdownMenu.
42
41
  * @example
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { ButtonProps } from '../Button/Button.js';
3
3
  import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
4
- import '@itwin/itwinui-css/css/button.css';
5
- import '@itwin/itwinui-css/css/tooltip.css';
6
4
  export declare type IconButtonProps = {
7
5
  /**
8
6
  * Button gets active style.
@@ -34,8 +34,6 @@ exports.IconButton = void 0;
34
34
  const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
36
  const index_js_1 = require("../../utils/index.js");
37
- require("@itwin/itwinui-css/css/button.css");
38
- require("@itwin/itwinui-css/css/tooltip.css");
39
37
  /**
40
38
  * Icon button
41
39
  * @example
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import type { ButtonProps } from '../Button/Button.js';
3
3
  import type { Placement } from 'tippy.js';
4
4
  import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
5
- import '@itwin/itwinui-css/css/button.css';
6
5
  export declare type SplitButtonProps = ButtonProps & {
7
6
  /**
8
7
  * Items in the dropdown menu.
@@ -37,7 +37,6 @@ const index_js_1 = require("../Button/index.js");
37
37
  const index_js_2 = require("../IconButton/index.js");
38
38
  const index_js_3 = require("../../DropdownMenu/index.js");
39
39
  const index_js_4 = require("../../utils/index.js");
40
- require("@itwin/itwinui-css/css/button.css");
41
40
  /**
42
41
  * Split button component with a DropdownMenu.
43
42
  *
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/carousel.css';
4
3
  declare type CarouselProps = {
5
4
  /**
6
5
  * Index of the currently shown slide.
@@ -34,7 +34,6 @@ exports.Carousel = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/carousel.css");
38
37
  const CarouselContext_js_1 = require("./CarouselContext.js");
39
38
  const CarouselSlider_js_1 = require("./CarouselSlider.js");
40
39
  const CarouselSlide_js_1 = require("./CarouselSlide.js");
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/carousel.css';
3
2
  declare type CarouselDotsListProps = {
4
3
  /** Number of total dots/slides in the carousel. Will be inferred from Carousel context or children. Otherwise, it is required to be passed. */
5
4
  length?: number;
@@ -36,7 +36,6 @@ const classnames_1 = __importDefault(require("classnames"));
36
36
  const CarouselContext_js_1 = require("./CarouselContext.js");
37
37
  const index_js_1 = require("../utils/index.js");
38
38
  const CarouselDot_js_1 = require("./CarouselDot.js");
39
- require("@itwin/itwinui-css/css/carousel.css");
40
39
  /**
41
40
  * The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
42
41
  * choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/checkbox.css';
4
3
  declare type CheckboxProps = {
5
4
  /**
6
5
  * Text that will be shown next to the checkbox.
@@ -35,7 +35,6 @@ const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
36
  const index_js_1 = require("../ProgressIndicators/index.js");
37
37
  const index_js_2 = require("../utils/index.js");
38
- require("@itwin/itwinui-css/css/checkbox.css");
39
38
  /**
40
39
  * Simple input checkbox
41
40
  * @example
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/color-picker.css';
3
2
  /**
4
3
  * `ColorBuilder` consists of two parts:
5
4
  * a color canvas to adjust saturation and lightness values,
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
37
  const index_js_2 = require("../Slider/index.js");
38
- require("@itwin/itwinui-css/css/color-picker.css");
39
38
  const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
40
39
  const getVerticalPercentageOfRectangle = (rect, pointer) => {
41
40
  const position = (0, index_js_1.getBoundedValue)(pointer, rect.top, rect.bottom);
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/color-picker.css';
3
2
  declare type ColorInputPanelProps = {
4
3
  /**
5
4
  * The default color format to be inputted in the panel.
@@ -37,7 +37,6 @@ const index_js_1 = require("../Buttons/index.js");
37
37
  const index_js_2 = require("../Input/index.js");
38
38
  const index_js_3 = require("../utils/index.js");
39
39
  const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
40
- require("@itwin/itwinui-css/css/color-picker.css");
41
40
  /**
42
41
  * `ColorInputPanel` shows input fields to enter precise color values in the specified format.
43
42
  * It also allows switching between the specified formats using a swap button.
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ColorValue } from '../utils/index.js';
3
3
  import type { ColorType, PolymorphicForwardRefComponent } from '../utils/index.js';
4
- import '@itwin/itwinui-css/css/color-picker.css';
5
4
  export declare type ColorPaletteProps = {
6
5
  /**
7
6
  * Label shown above the palette.
@@ -37,7 +37,6 @@ const index_js_1 = require("../utils/index.js");
37
37
  const ColorPicker_js_1 = require("./ColorPicker.js");
38
38
  const ColorSwatch_js_1 = require("./ColorSwatch.js");
39
39
  const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
40
- require("@itwin/itwinui-css/css/color-picker.css");
41
40
  /**
42
41
  * `ColorPalette` is used to show a group of `ColorSwatch` components.
43
42
  * @example
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/color-picker.css';
3
2
  import { ColorValue } from '../utils/index.js';
4
3
  import type { ColorType, PolymorphicForwardRefComponent } from '../utils/index.js';
5
4
  export declare const getColorValue: (color: ColorType | ColorValue | undefined) => ColorValue;
@@ -32,7 +32,6 @@ exports.ColorPicker = exports.getColorValue = void 0;
32
32
  * See LICENSE.md in the project root for license terms and full copyright notice.
33
33
  *--------------------------------------------------------------------------------------------*/
34
34
  const React = __importStar(require("react"));
35
- require("@itwin/itwinui-css/css/color-picker.css");
36
35
  const index_js_1 = require("../utils/index.js");
37
36
  const classnames_1 = __importDefault(require("classnames"));
38
37
  const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
@@ -1,4 +1,3 @@
1
- import '@itwin/itwinui-css/css/color-picker.css';
2
1
  import { ColorValue } from '../utils/index.js';
3
2
  import type { ColorType, PolymorphicForwardRefComponent } from '../utils/index.js';
4
3
  declare type ColorSwatchProps = {
@@ -33,7 +33,6 @@ exports.ColorSwatch = void 0;
33
33
  *--------------------------------------------------------------------------------------------*/
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
- require("@itwin/itwinui-css/css/color-picker.css");
37
36
  const index_js_1 = require("../utils/index.js");
38
37
  const ColorPicker_js_1 = require("./ColorPicker.js");
39
38
  /**
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  import type { SelectOption } from '../Select/index.js';
3
3
  import type { Input } from '../Input/Input.js';
4
4
  import type { PopoverProps, InputContainerProps, CommonProps } from '../utils/index.js';
5
- import 'tippy.js/animations/shift-away.css';
6
5
  declare type ActionType = 'added' | 'removed';
7
6
  declare type MultipleOnChangeProps<T> = {
8
7
  value: T;
@@ -36,7 +36,6 @@ const index_js_1 = require("../Menu/index.js");
36
36
  const SelectTag_js_1 = __importDefault(require("../Select/SelectTag.js"));
37
37
  const index_js_2 = require("../Typography/index.js");
38
38
  const index_js_3 = require("../utils/index.js");
39
- require("tippy.js/animations/shift-away.css");
40
39
  const helpers_js_1 = require("./helpers.js");
41
40
  const ComboBoxDropdown_js_1 = require("./ComboBoxDropdown.js");
42
41
  const ComboBoxEndIcon_js_1 = require("./ComboBoxEndIcon.js");
@@ -1,5 +1,4 @@
1
1
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
2
- import '@itwin/itwinui-css/css/date-picker.css';
3
2
  import type { TimePickerProps } from '../TimePicker/TimePicker.js';
4
3
  /**
5
4
  * Generate localized months and days strings using `Intl.DateTimeFormat` for passed locale to use in DatePicker component.
@@ -34,7 +34,6 @@ exports.DatePicker = exports.generateLocalizedStrings = void 0;
34
34
  const classnames_1 = __importDefault(require("classnames"));
35
35
  const React = __importStar(require("react"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/date-picker.css");
38
37
  const index_js_2 = require("../Buttons/IconButton/index.js");
39
38
  const index_js_3 = require("../TimePicker/index.js");
40
39
  const isSameDay = (a, b) => {
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import '@itwin/itwinui-css/css/dialog.css';
3
2
  import type { DialogContextProps } from './DialogContext.js';
4
3
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
5
4
  declare type DialogProps = {
@@ -33,7 +33,6 @@ exports.Dialog = void 0;
33
33
  *--------------------------------------------------------------------------------------------*/
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
- require("@itwin/itwinui-css/css/dialog.css");
37
36
  const DialogTitleBar_js_1 = require("./DialogTitleBar.js");
38
37
  const DialogContent_js_1 = require("./DialogContent.js");
39
38
  const DialogBackdrop_js_1 = require("./DialogBackdrop.js");
@@ -42,7 +41,7 @@ const DialogButtonBar_js_1 = require("./DialogButtonBar.js");
42
41
  const DialogMain_js_1 = require("./DialogMain.js");
43
42
  const index_js_1 = require("../utils/index.js");
44
43
  const DialogComponent = React.forwardRef((props, ref) => {
45
- const { trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', className, ...rest } = props;
44
+ const { trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', placement, className, ...rest } = props;
46
45
  const dialogRootRef = React.useRef(null);
47
46
  const refs = (0, index_js_1.useMergedRefs)(ref, dialogRootRef);
48
47
  return (React.createElement(DialogContext_js_1.DialogContext.Provider, { value: {
@@ -58,6 +57,7 @@ const DialogComponent = React.forwardRef((props, ref) => {
58
57
  isResizable,
59
58
  relativeTo,
60
59
  dialogRootRef,
60
+ placement,
61
61
  } },
62
62
  React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-dialog-wrapper', className), "data-iui-relative": relativeTo === 'container', ref: refs, ...rest })));
63
63
  });
@@ -1,4 +1,3 @@
1
- import '@itwin/itwinui-css/css/dialog.css';
2
1
  /**
3
2
  * Container for Buttons in `Dialog`. Recommended to be used as a child of `Dialog`.
4
3
  * @example
@@ -6,7 +6,6 @@ exports.DialogButtonBar = void 0;
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  const index_js_1 = require("../utils/index.js");
9
- require("@itwin/itwinui-css/css/dialog.css");
10
9
  /**
11
10
  * Container for Buttons in `Dialog`. Recommended to be used as a child of `Dialog`.
12
11
  * @example
@@ -1,4 +1,3 @@
1
- import '@itwin/itwinui-css/css/dialog.css';
2
1
  /**
3
2
  * Container for content in `Dialog`. Recommended to be used as a child of `Dialog`.
4
3
  * @example
@@ -6,7 +6,6 @@ exports.DialogContent = void 0;
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  const index_js_1 = require("../utils/index.js");
9
- require("@itwin/itwinui-css/css/dialog.css");
10
9
  /**
11
10
  * Container for content in `Dialog`. Recommended to be used as a child of `Dialog`.
12
11
  * @example
@@ -65,6 +65,10 @@ export declare type DialogContextProps = {
65
65
  * Dialog root ref. For internal use.
66
66
  */
67
67
  dialogRootRef?: React.RefObject<HTMLDivElement>;
68
+ /**
69
+ * Determines the positioning of Dialog on page.
70
+ */
71
+ placement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
68
72
  };
69
73
  export declare const DialogContext: React.Context<DialogContextProps | undefined>;
70
74
  export declare const useDialogContext: () => DialogContextProps;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/dialog.css';
4
3
  import type { DialogContextProps } from './DialogContext.js';
5
4
  export declare type DialogMainProps = {
6
5
  /**
@@ -34,7 +34,6 @@ exports.DialogMain = void 0;
34
34
  const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
- require("@itwin/itwinui-css/css/dialog.css");
38
37
  const DialogContext_js_1 = require("./DialogContext.js");
39
38
  const react_transition_group_1 = require("react-transition-group");
40
39
  const DialogDragContext_js_1 = require("./DialogDragContext.js");
@@ -61,7 +60,7 @@ const useDragAndDrop_js_1 = __importDefault(require("../utils/hooks/useDragAndDr
61
60
  */
62
61
  exports.DialogMain = React.forwardRef((props, ref) => {
63
62
  const dialogContext = (0, DialogContext_js_1.useDialogContext)();
64
- const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, ...rest } = props;
63
+ const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, placement = dialogContext.placement, ...rest } = props;
65
64
  const [style, setStyle] = React.useState();
66
65
  const dialogRef = React.useRef(null);
67
66
  const refs = (0, index_js_1.useMergedRefs)(dialogRef, ref);
@@ -142,7 +141,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
142
141
  'iui-dialog-full-page': styleType === 'fullPage',
143
142
  'iui-dialog-visible': isOpen,
144
143
  'iui-dialog-draggable': isDraggable,
145
- }, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
144
+ }, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
146
145
  transform,
147
146
  overflow: 'unset',
148
147
  ...style,
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import '@itwin/itwinui-css/css/dialog.css';
4
3
  import type { DialogContextProps } from './DialogContext.js';
5
4
  declare type DialogTitleBarProps = {
6
5
  /**
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
35
35
  const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
37
  const index_js_2 = require("../Buttons/index.js");
38
- require("@itwin/itwinui-css/css/dialog.css");
39
38
  const DialogContext_js_1 = require("./DialogContext.js");
40
39
  const DialogTitleBarTitle_js_1 = require("./DialogTitleBarTitle.js");
41
40
  const DialogDragContext_js_1 = require("./DialogDragContext.js");
@@ -1,4 +1,3 @@
1
- import '@itwin/itwinui-css/css/dialog.css';
2
1
  /**
3
2
  * Dialog title bar. Recommended to be used as a child of `Dialog`.
4
3
  * @example
@@ -6,7 +6,6 @@ exports.DialogTitleBarTitle = void 0;
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  const index_js_1 = require("../utils/index.js");
9
- require("@itwin/itwinui-css/css/dialog.css");
10
9
  /**
11
10
  * Dialog title bar. Recommended to be used as a child of `Dialog`.
12
11
  * @example