@itwin/itwinui-react 2.0.0-dev.0 → 2.0.0-dev.2

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 (242) hide show
  1. package/cjs/core/Alert/Alert.js +3 -3
  2. package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -2
  3. package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -3
  4. package/cjs/core/Buttons/IdeasButton/IdeasButton.js +1 -2
  5. package/cjs/core/Buttons/SplitButton/SplitButton.js +1 -3
  6. package/cjs/core/Carousel/CarouselNavigation.js +3 -4
  7. package/cjs/core/ColorPicker/ColorInputPanel.js +1 -2
  8. package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -2
  9. package/cjs/core/DatePicker/DatePicker.js +4 -8
  10. package/cjs/core/Dialog/DialogTitleBar.js +1 -2
  11. package/cjs/core/ExpandableBlock/ExpandableBlock.js +1 -2
  12. package/cjs/core/FileUpload/FileUploadTemplate.js +1 -2
  13. package/cjs/core/Header/Header.js +2 -3
  14. package/cjs/core/Header/HeaderBreadcrumbs.js +1 -2
  15. package/cjs/core/Header/HeaderDropdownButton.js +2 -5
  16. package/cjs/core/Header/HeaderSplitButton.js +1 -3
  17. package/cjs/core/InformationPanel/InformationPanelHeader.js +1 -2
  18. package/cjs/core/Menu/MenuItem.js +1 -2
  19. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -4
  20. package/cjs/core/Select/Select.js +1 -2
  21. package/cjs/core/SideNavigation/SideNavigation.js +1 -2
  22. package/cjs/core/Surface/Surface.d.ts +0 -2
  23. package/cjs/core/Surface/Surface.js +9 -7
  24. package/cjs/core/Table/SubRowExpander.js +2 -2
  25. package/cjs/core/Table/Table.js +1 -3
  26. package/cjs/core/Table/TablePaginator.js +2 -4
  27. package/cjs/core/Table/columns/actionColumn.js +2 -2
  28. package/cjs/core/Table/columns/expanderColumn.js +2 -2
  29. package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
  30. package/cjs/core/Table/filters/FilterToggle.js +1 -3
  31. package/cjs/core/Tabs/Tabs.d.ts +32 -12
  32. package/cjs/core/Tabs/Tabs.js +8 -1
  33. package/cjs/core/Tabs/index.d.ts +2 -2
  34. package/cjs/core/Tabs/index.js +2 -1
  35. package/cjs/core/Tag/Tag.js +1 -2
  36. package/cjs/core/Tile/Tile.js +3 -6
  37. package/cjs/core/Toast/Toast.js +1 -2
  38. package/cjs/core/Tree/TreeNodeExpander.js +2 -2
  39. package/cjs/core/Typography/Body/Body.d.ts +5 -3
  40. package/cjs/core/Typography/Body/Body.js +2 -3
  41. package/cjs/core/Typography/Headline/Headline.d.ts +2 -3
  42. package/cjs/core/Typography/Headline/Headline.js +2 -3
  43. package/cjs/core/Typography/Leading/Leading.d.ts +2 -3
  44. package/cjs/core/Typography/Leading/Leading.js +2 -3
  45. package/cjs/core/Typography/Small/Small.d.ts +2 -3
  46. package/cjs/core/Typography/Small/Small.js +2 -3
  47. package/cjs/core/Typography/Subheading/Subheading.d.ts +2 -3
  48. package/cjs/core/Typography/Subheading/Subheading.js +2 -3
  49. package/cjs/core/Typography/Text/Text.d.ts +2 -0
  50. package/cjs/core/Typography/Text/Text.js +2 -0
  51. package/cjs/core/Typography/Title/Title.d.ts +2 -3
  52. package/cjs/core/Typography/Title/Title.js +2 -3
  53. package/cjs/core/index.d.ts +1 -1
  54. package/cjs/core/index.js +4 -3
  55. package/cjs/core/utils/components/index.d.ts +0 -1
  56. package/cjs/core/utils/components/index.js +0 -1
  57. package/cjs/core/utils/functions/colors.d.ts +11 -11
  58. package/cjs/core/utils/functions/colors.js +11 -11
  59. package/cjs/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
  60. package/cjs/core/utils/icons/StatusIconMap.js +52 -0
  61. package/cjs/core/utils/icons/SvgCalendar.d.ts +2 -0
  62. package/cjs/core/utils/icons/SvgCalendar.js +47 -0
  63. package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
  64. package/cjs/core/utils/icons/SvgCaretDownSmall.js +47 -0
  65. package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
  66. package/cjs/core/utils/icons/SvgCaretRightSmall.js +47 -0
  67. package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
  68. package/cjs/core/utils/icons/SvgCaretUpSmall.js +47 -0
  69. package/cjs/core/utils/icons/SvgCheckmark.d.ts +2 -0
  70. package/cjs/core/utils/icons/SvgCheckmark.js +47 -0
  71. package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
  72. package/cjs/core/utils/icons/SvgCheckmarkSmall.js +47 -0
  73. package/cjs/core/utils/icons/SvgChevronLeft.d.ts +2 -0
  74. package/cjs/core/utils/icons/SvgChevronLeft.js +47 -0
  75. package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
  76. package/cjs/core/utils/icons/SvgChevronLeftDouble.js +47 -0
  77. package/cjs/core/utils/icons/SvgChevronRight.d.ts +2 -0
  78. package/cjs/core/utils/icons/SvgChevronRight.js +47 -0
  79. package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
  80. package/cjs/core/utils/icons/SvgChevronRightDouble.js +47 -0
  81. package/cjs/core/utils/icons/SvgClose.d.ts +2 -0
  82. package/cjs/core/utils/icons/SvgClose.js +47 -0
  83. package/cjs/core/utils/icons/SvgCloseSmall.d.ts +2 -0
  84. package/cjs/core/utils/icons/SvgCloseSmall.js +47 -0
  85. package/cjs/core/utils/icons/SvgColumnManager.d.ts +2 -0
  86. package/cjs/core/utils/icons/SvgColumnManager.js +47 -0
  87. package/cjs/core/utils/icons/SvgFilter.d.ts +2 -0
  88. package/cjs/core/utils/icons/SvgFilter.js +47 -0
  89. package/cjs/core/utils/icons/SvgFilterHollow.d.ts +2 -0
  90. package/cjs/core/utils/icons/SvgFilterHollow.js +47 -0
  91. package/cjs/core/utils/icons/SvgImportantSmall.d.ts +2 -0
  92. package/cjs/core/utils/icons/SvgImportantSmall.js +47 -0
  93. package/cjs/core/utils/icons/SvgInfoCircular.d.ts +2 -0
  94. package/cjs/core/utils/icons/SvgInfoCircular.js +47 -0
  95. package/cjs/core/utils/icons/SvgMore.d.ts +2 -0
  96. package/cjs/core/utils/icons/SvgMore.js +47 -0
  97. package/cjs/core/utils/icons/SvgMoreVertical.d.ts +2 -0
  98. package/cjs/core/utils/icons/SvgMoreVertical.js +47 -0
  99. package/cjs/core/utils/icons/SvgNew.d.ts +2 -0
  100. package/cjs/core/utils/icons/SvgNew.js +47 -0
  101. package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
  102. package/cjs/core/utils/icons/SvgSmileyHappy.js +47 -0
  103. package/cjs/core/utils/icons/SvgSortDown.d.ts +2 -0
  104. package/cjs/core/utils/icons/SvgSortDown.js +47 -0
  105. package/cjs/core/utils/icons/SvgSortUp.d.ts +2 -0
  106. package/cjs/core/utils/icons/SvgSortUp.js +47 -0
  107. package/cjs/core/utils/icons/SvgStatusError.d.ts +2 -0
  108. package/cjs/core/utils/icons/SvgStatusError.js +47 -0
  109. package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
  110. package/cjs/core/utils/icons/SvgStatusSuccess.js +47 -0
  111. package/cjs/core/utils/icons/SvgStatusWarning.d.ts +2 -0
  112. package/cjs/core/utils/icons/SvgStatusWarning.js +47 -0
  113. package/cjs/core/utils/icons/SvgSwap.d.ts +2 -0
  114. package/cjs/core/utils/icons/SvgSwap.js +47 -0
  115. package/cjs/core/utils/icons/SvgUpload.d.ts +2 -0
  116. package/cjs/core/utils/icons/SvgUpload.js +47 -0
  117. package/cjs/core/utils/icons/index.d.ts +29 -0
  118. package/cjs/core/utils/icons/index.js +49 -0
  119. package/cjs/core/utils/index.d.ts +1 -0
  120. package/cjs/core/utils/index.js +1 -0
  121. package/esm/core/Alert/Alert.js +4 -4
  122. package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -2
  123. package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -3
  124. package/esm/core/Buttons/IdeasButton/IdeasButton.js +1 -2
  125. package/esm/core/Buttons/SplitButton/SplitButton.js +1 -3
  126. package/esm/core/Carousel/CarouselNavigation.js +1 -2
  127. package/esm/core/ColorPicker/ColorInputPanel.js +1 -2
  128. package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -2
  129. package/esm/core/DatePicker/DatePicker.js +1 -5
  130. package/esm/core/Dialog/DialogTitleBar.js +1 -2
  131. package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -2
  132. package/esm/core/FileUpload/FileUploadTemplate.js +1 -2
  133. package/esm/core/Header/Header.js +2 -3
  134. package/esm/core/Header/HeaderBreadcrumbs.js +1 -2
  135. package/esm/core/Header/HeaderDropdownButton.js +1 -4
  136. package/esm/core/Header/HeaderSplitButton.js +1 -3
  137. package/esm/core/InformationPanel/InformationPanelHeader.js +1 -2
  138. package/esm/core/Menu/MenuItem.js +1 -2
  139. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +3 -5
  140. package/esm/core/Select/Select.js +1 -2
  141. package/esm/core/SideNavigation/SideNavigation.js +1 -2
  142. package/esm/core/Surface/Surface.d.ts +0 -2
  143. package/esm/core/Surface/Surface.js +9 -7
  144. package/esm/core/Table/SubRowExpander.js +1 -1
  145. package/esm/core/Table/Table.js +2 -4
  146. package/esm/core/Table/TablePaginator.js +1 -3
  147. package/esm/core/Table/columns/actionColumn.js +1 -1
  148. package/esm/core/Table/columns/expanderColumn.js +1 -1
  149. package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
  150. package/esm/core/Table/filters/FilterToggle.js +1 -3
  151. package/esm/core/Tabs/Tabs.d.ts +32 -12
  152. package/esm/core/Tabs/Tabs.js +8 -1
  153. package/esm/core/Tabs/index.d.ts +2 -2
  154. package/esm/core/Tabs/index.js +1 -1
  155. package/esm/core/Tag/Tag.js +1 -2
  156. package/esm/core/Tile/Tile.js +1 -4
  157. package/esm/core/Toast/Toast.js +1 -2
  158. package/esm/core/Tree/TreeNodeExpander.js +1 -1
  159. package/esm/core/Typography/Body/Body.d.ts +5 -3
  160. package/esm/core/Typography/Body/Body.js +2 -3
  161. package/esm/core/Typography/Headline/Headline.d.ts +2 -3
  162. package/esm/core/Typography/Headline/Headline.js +2 -3
  163. package/esm/core/Typography/Leading/Leading.d.ts +2 -3
  164. package/esm/core/Typography/Leading/Leading.js +2 -3
  165. package/esm/core/Typography/Small/Small.d.ts +2 -3
  166. package/esm/core/Typography/Small/Small.js +2 -3
  167. package/esm/core/Typography/Subheading/Subheading.d.ts +2 -3
  168. package/esm/core/Typography/Subheading/Subheading.js +2 -3
  169. package/esm/core/Typography/Text/Text.d.ts +2 -0
  170. package/esm/core/Typography/Text/Text.js +2 -0
  171. package/esm/core/Typography/Title/Title.d.ts +2 -3
  172. package/esm/core/Typography/Title/Title.js +2 -3
  173. package/esm/core/index.d.ts +1 -1
  174. package/esm/core/index.js +1 -1
  175. package/esm/core/utils/components/index.d.ts +0 -1
  176. package/esm/core/utils/components/index.js +0 -1
  177. package/esm/core/utils/functions/colors.d.ts +11 -11
  178. package/esm/core/utils/functions/colors.js +11 -11
  179. package/esm/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
  180. package/esm/core/utils/{components/icons.js → icons/StatusIconMap.js} +5 -5
  181. package/esm/core/utils/icons/SvgCalendar.d.ts +2 -0
  182. package/esm/core/utils/icons/SvgCalendar.js +20 -0
  183. package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
  184. package/esm/core/utils/icons/SvgCaretDownSmall.js +20 -0
  185. package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
  186. package/esm/core/utils/icons/SvgCaretRightSmall.js +20 -0
  187. package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
  188. package/esm/core/utils/icons/SvgCaretUpSmall.js +20 -0
  189. package/esm/core/utils/icons/SvgCheckmark.d.ts +2 -0
  190. package/esm/core/utils/icons/SvgCheckmark.js +20 -0
  191. package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
  192. package/esm/core/utils/icons/SvgCheckmarkSmall.js +20 -0
  193. package/esm/core/utils/icons/SvgChevronLeft.d.ts +2 -0
  194. package/esm/core/utils/icons/SvgChevronLeft.js +20 -0
  195. package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
  196. package/esm/core/utils/icons/SvgChevronLeftDouble.js +20 -0
  197. package/esm/core/utils/icons/SvgChevronRight.d.ts +2 -0
  198. package/esm/core/utils/icons/SvgChevronRight.js +20 -0
  199. package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
  200. package/esm/core/utils/icons/SvgChevronRightDouble.js +20 -0
  201. package/esm/core/utils/icons/SvgClose.d.ts +2 -0
  202. package/esm/core/utils/icons/SvgClose.js +20 -0
  203. package/esm/core/utils/icons/SvgCloseSmall.d.ts +2 -0
  204. package/esm/core/utils/icons/SvgCloseSmall.js +20 -0
  205. package/esm/core/utils/icons/SvgColumnManager.d.ts +2 -0
  206. package/esm/core/utils/icons/SvgColumnManager.js +20 -0
  207. package/esm/core/utils/icons/SvgFilter.d.ts +2 -0
  208. package/esm/core/utils/icons/SvgFilter.js +20 -0
  209. package/esm/core/utils/icons/SvgFilterHollow.d.ts +2 -0
  210. package/esm/core/utils/icons/SvgFilterHollow.js +20 -0
  211. package/esm/core/utils/icons/SvgImportantSmall.d.ts +2 -0
  212. package/esm/core/utils/icons/SvgImportantSmall.js +20 -0
  213. package/esm/core/utils/icons/SvgInfoCircular.d.ts +2 -0
  214. package/esm/core/utils/icons/SvgInfoCircular.js +20 -0
  215. package/esm/core/utils/icons/SvgMore.d.ts +2 -0
  216. package/esm/core/utils/icons/SvgMore.js +20 -0
  217. package/esm/core/utils/icons/SvgMoreVertical.d.ts +2 -0
  218. package/esm/core/utils/icons/SvgMoreVertical.js +20 -0
  219. package/esm/core/utils/icons/SvgNew.d.ts +2 -0
  220. package/esm/core/utils/icons/SvgNew.js +20 -0
  221. package/esm/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
  222. package/esm/core/utils/icons/SvgSmileyHappy.js +20 -0
  223. package/esm/core/utils/icons/SvgSortDown.d.ts +2 -0
  224. package/esm/core/utils/icons/SvgSortDown.js +20 -0
  225. package/esm/core/utils/icons/SvgSortUp.d.ts +2 -0
  226. package/esm/core/utils/icons/SvgSortUp.js +20 -0
  227. package/esm/core/utils/icons/SvgStatusError.d.ts +2 -0
  228. package/esm/core/utils/icons/SvgStatusError.js +20 -0
  229. package/esm/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
  230. package/esm/core/utils/icons/SvgStatusSuccess.js +20 -0
  231. package/esm/core/utils/icons/SvgStatusWarning.d.ts +2 -0
  232. package/esm/core/utils/icons/SvgStatusWarning.js +20 -0
  233. package/esm/core/utils/icons/SvgSwap.d.ts +2 -0
  234. package/esm/core/utils/icons/SvgSwap.js +20 -0
  235. package/esm/core/utils/icons/SvgUpload.d.ts +2 -0
  236. package/esm/core/utils/icons/SvgUpload.js +20 -0
  237. package/esm/core/utils/icons/index.d.ts +29 -0
  238. package/esm/core/utils/icons/index.js +33 -0
  239. package/esm/core/utils/index.d.ts +1 -0
  240. package/esm/core/utils/index.js +1 -0
  241. package/package.json +20 -4
  242. package/cjs/core/utils/components/icons.js +0 -32
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SvgStatusError = void 0;
38
+ /*---------------------------------------------------------------------------------------------
39
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40
+ * See LICENSE.md in the project root for license terms and full copyright notice.
41
+ *--------------------------------------------------------------------------------------------*/
42
+ var React = __importStar(require("react"));
43
+ var SvgStatusError = function (props) {
44
+ return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
45
+ React.createElement("path", { d: 'm8 0a8 8 0 1 0 8 8 8 8 0 0 0 -8-8zm1 12h-2v-2h2zm0-3h-2v-5h2z' })));
46
+ };
47
+ exports.SvgStatusError = SvgStatusError;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SvgStatusSuccess: (props: React.ComponentProps<'svg'>) => JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SvgStatusSuccess = void 0;
38
+ /*---------------------------------------------------------------------------------------------
39
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40
+ * See LICENSE.md in the project root for license terms and full copyright notice.
41
+ *--------------------------------------------------------------------------------------------*/
42
+ var React = __importStar(require("react"));
43
+ var SvgStatusSuccess = function (props) {
44
+ return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
45
+ React.createElement("path", { d: 'm8 0a8 8 0 1 0 8 8 8 8 0 0 0 -8-8zm-1.35 12-3.65-3.41 1.4-1.3 2.36 2.2 4.83-4.49 1.41 1.29z' })));
46
+ };
47
+ exports.SvgStatusSuccess = SvgStatusSuccess;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SvgStatusWarning: (props: React.ComponentProps<'svg'>) => JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SvgStatusWarning = void 0;
38
+ /*---------------------------------------------------------------------------------------------
39
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40
+ * See LICENSE.md in the project root for license terms and full copyright notice.
41
+ *--------------------------------------------------------------------------------------------*/
42
+ var React = __importStar(require("react"));
43
+ var SvgStatusWarning = function (props) {
44
+ return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
45
+ React.createElement("path", { d: 'm15.86807 13.26721-6.77-11.62a1.15 1.15 0 0 0 -1.1-.67 1.17 1.17 0 0 0 -1.1.69l-6.77 11.59a1.2 1.2 0 0 0 1.1 1.72h13.45a1.19 1.19 0 0 0 1.19-1.71zm-6.87-.29h-2v-2h2zm0-3h-2v-5h2z' })));
46
+ };
47
+ exports.SvgStatusWarning = SvgStatusWarning;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SvgSwap: (props: React.ComponentProps<'svg'>) => JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SvgSwap = void 0;
38
+ /*---------------------------------------------------------------------------------------------
39
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40
+ * See LICENSE.md in the project root for license terms and full copyright notice.
41
+ *--------------------------------------------------------------------------------------------*/
42
+ var React = __importStar(require("react"));
43
+ var SvgSwap = function (props) {
44
+ return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
45
+ React.createElement("path", { d: 'm5 15-3.78125-3.5 3.78125-3.5v2h8v3h-8zm6-7 3.78125-3.5-3.78125-3.5v2h-8v3h8z' })));
46
+ };
47
+ exports.SvgSwap = SvgSwap;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SvgUpload: (props: React.ComponentProps<'svg'>) => JSX.Element;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SvgUpload = void 0;
38
+ /*---------------------------------------------------------------------------------------------
39
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
40
+ * See LICENSE.md in the project root for license terms and full copyright notice.
41
+ *--------------------------------------------------------------------------------------------*/
42
+ var React = __importStar(require("react"));
43
+ var SvgUpload = function (props) {
44
+ return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
45
+ React.createElement("path", { d: 'm2 5h4v7h4v-7h4l-6-5zm12 6v3h-12v-3h-2v5h16v-5z' })));
46
+ };
47
+ exports.SvgUpload = SvgUpload;
@@ -0,0 +1,29 @@
1
+ export * from './StatusIconMap';
2
+ export * from './SvgStatusSuccess';
3
+ export * from './SvgStatusWarning';
4
+ export * from './SvgStatusError';
5
+ export * from './SvgInfoCircular';
6
+ export * from './SvgClose';
7
+ export * from './SvgCloseSmall';
8
+ export * from './SvgChevronLeft';
9
+ export * from './SvgChevronRight';
10
+ export * from './SvgChevronLeftDouble';
11
+ export * from './SvgChevronRightDouble';
12
+ export * from './SvgCaretUpSmall';
13
+ export * from './SvgCaretDownSmall';
14
+ export * from './SvgCaretRightSmall';
15
+ export * from './SvgSmileyHappy';
16
+ export * from './SvgSwap';
17
+ export * from './SvgUpload';
18
+ export * from './SvgMoreVertical';
19
+ export * from './SvgCheckmark';
20
+ export * from './SvgCheckmarkSmall';
21
+ export * from './SvgImportantSmall';
22
+ export * from './SvgSortUp';
23
+ export * from './SvgSortDown';
24
+ export * from './SvgColumnManager';
25
+ export * from './SvgMore';
26
+ export * from './SvgNew';
27
+ export * from './SvgFilter';
28
+ export * from './SvgFilterHollow';
29
+ export * from './SvgCalendar';
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /*---------------------------------------------------------------------------------------------
18
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
19
+ * See LICENSE.md in the project root for license terms and full copyright notice.
20
+ *--------------------------------------------------------------------------------------------*/
21
+ __exportStar(require("./StatusIconMap"), exports);
22
+ __exportStar(require("./SvgStatusSuccess"), exports);
23
+ __exportStar(require("./SvgStatusWarning"), exports);
24
+ __exportStar(require("./SvgStatusError"), exports);
25
+ __exportStar(require("./SvgInfoCircular"), exports);
26
+ __exportStar(require("./SvgClose"), exports);
27
+ __exportStar(require("./SvgCloseSmall"), exports);
28
+ __exportStar(require("./SvgChevronLeft"), exports);
29
+ __exportStar(require("./SvgChevronRight"), exports);
30
+ __exportStar(require("./SvgChevronLeftDouble"), exports);
31
+ __exportStar(require("./SvgChevronRightDouble"), exports);
32
+ __exportStar(require("./SvgCaretUpSmall"), exports);
33
+ __exportStar(require("./SvgCaretDownSmall"), exports);
34
+ __exportStar(require("./SvgCaretRightSmall"), exports);
35
+ __exportStar(require("./SvgSmileyHappy"), exports);
36
+ __exportStar(require("./SvgSwap"), exports);
37
+ __exportStar(require("./SvgUpload"), exports);
38
+ __exportStar(require("./SvgMoreVertical"), exports);
39
+ __exportStar(require("./SvgCheckmark"), exports);
40
+ __exportStar(require("./SvgCheckmarkSmall"), exports);
41
+ __exportStar(require("./SvgImportantSmall"), exports);
42
+ __exportStar(require("./SvgSortUp"), exports);
43
+ __exportStar(require("./SvgSortDown"), exports);
44
+ __exportStar(require("./SvgColumnManager"), exports);
45
+ __exportStar(require("./SvgMore"), exports);
46
+ __exportStar(require("./SvgNew"), exports);
47
+ __exportStar(require("./SvgFilter"), exports);
48
+ __exportStar(require("./SvgFilterHollow"), exports);
49
+ __exportStar(require("./SvgCalendar"), exports);
@@ -3,3 +3,4 @@ export * from './hooks';
3
3
  export * from './components';
4
4
  export * from './props';
5
5
  export * from './color';
6
+ export * from './icons';
@@ -23,3 +23,4 @@ __exportStar(require("./hooks"), exports);
23
23
  __exportStar(require("./components"), exports);
24
24
  __exportStar(require("./props"), exports);
25
25
  __exportStar(require("./color"), exports);
26
+ __exportStar(require("./icons"), exports);
@@ -24,10 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
- import SvgCloseSmall from '@itwin/itwinui-icons-react/cjs/icons/CloseSmall';
28
27
  import cx from 'classnames';
29
28
  import React from 'react';
30
- import { useTheme, StatusIconMap } from '../utils';
29
+ import { useTheme, StatusIconMap, SvgCloseSmall } from '../utils';
31
30
  import '@itwin/itwinui-css/css/alert.css';
32
31
  /**
33
32
  * A small box to quickly grab user attention and communicate a brief message
@@ -48,12 +47,13 @@ export var Alert = function (props) {
48
47
  var children = props.children, className = props.className, _a = props.type, type = _a === void 0 ? 'informational' : _a, clickableText = props.clickableText, clickableTextProps = props.clickableTextProps, onClose = props.onClose, style = props.style, _b = props.isSticky, isSticky = _b === void 0 ? false : _b, rest = __rest(props, ["children", "className", "type", "clickableText", "clickableTextProps", "onClose", "style", "isSticky"]);
49
48
  useTheme();
50
49
  var StatusIcon = StatusIconMap[type];
51
- return (React.createElement("div", __assign({ className: cx("iui-alert-".concat(type), { 'iui-sticky': isSticky }, className), style: style }, rest),
50
+ return (React.createElement("div", __assign({ className: cx('iui-alert', className), "data-iui-status": type, "data-iui-variant": isSticky ? 'sticky' : undefined, style: style }, rest),
52
51
  React.createElement(StatusIcon, { className: 'iui-alert-icon' }),
53
52
  React.createElement("span", { className: 'iui-alert-message' },
54
53
  children,
55
54
  clickableText && (React.createElement("a", __assign({}, clickableTextProps, { className: cx('iui-alert-link', clickableTextProps === null || clickableTextProps === void 0 ? void 0 : clickableTextProps.className) }), clickableText))),
56
55
  onClose && (React.createElement("button", { onClick: onClose, "aria-label": 'Close', type: 'button', className: 'iui-alert-button' },
57
- React.createElement(SvgCloseSmall, { "aria-hidden": true, className: 'iui-alert-button-icon' })))));
56
+ React.createElement("span", { className: 'iui-alert-button-icon', "aria-hidden": true },
57
+ React.createElement(SvgCloseSmall, null))))));
58
58
  };
59
59
  export default Alert;
@@ -26,8 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
- import { useTheme, useMergedRefs, useOverflow } from '../utils';
30
- import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
29
+ import { useTheme, useMergedRefs, useOverflow, SvgChevronRight, } from '../utils';
31
30
  import '@itwin/itwinui-css/css/breadcrumbs.css';
32
31
  /**
33
32
  * A breadcrumb trail is used as a navigational aid to help users keep track
@@ -28,9 +28,7 @@ import React from 'react';
28
28
  import cx from 'classnames';
29
29
  import { Button } from '../Button';
30
30
  import { DropdownMenu } from '../../DropdownMenu';
31
- import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
32
- import SvgCaretUpSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretUpSmall';
33
- import { useTheme, useMergedRefs } from '../../utils';
31
+ import { SvgCaretDownSmall, SvgCaretUpSmall, useTheme, useMergedRefs, } from '../../utils';
34
32
  import '@itwin/itwinui-css/css/button.css';
35
33
  /**
36
34
  * Button that opens a DropdownMenu.
@@ -25,8 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import React from 'react';
28
- import SvgSmileyHappy from '@itwin/itwinui-icons-react/cjs/icons/SmileyHappy';
29
- import { useTheme } from '../../utils';
28
+ import { SvgSmileyHappy, useTheme } from '../../utils';
30
29
  import { Button } from '../Button';
31
30
  /**
32
31
  * Ideas button
@@ -29,9 +29,7 @@ import React from 'react';
29
29
  import { Button } from '../Button';
30
30
  import { IconButton } from '../IconButton';
31
31
  import { DropdownMenu } from '../../DropdownMenu';
32
- import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
33
- import SvgCaretUpSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretUpSmall';
34
- import { useTheme } from '../../utils';
32
+ import { SvgCaretDownSmall, SvgCaretUpSmall, useTheme, } from '../../utils';
35
33
  import '@itwin/itwinui-css/css/button.css';
36
34
  /**
37
35
  * Split button component with a DropdownMenu.
@@ -29,8 +29,7 @@ import cx from 'classnames';
29
29
  import { CarouselContext } from './CarouselContext';
30
30
  import { IconButton } from '../Buttons';
31
31
  import { CarouselDotsList } from './CarouselDotsList';
32
- import SvgChevronLeft from '@itwin/itwinui-icons-react/cjs/icons/ChevronLeft';
33
- import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
32
+ import { SvgChevronLeft, SvgChevronRight } from '../utils';
34
33
  /** Button for switching to previous slide */
35
34
  var PreviousButton = React.forwardRef(function (props, ref) {
36
35
  var context = React.useContext(CarouselContext);
@@ -28,9 +28,8 @@ import React from 'react';
28
28
  import cx from 'classnames';
29
29
  import { IconButton } from '../Buttons';
30
30
  import { Input } from '../Input';
31
- import { ColorValue, InputContainer, useTheme } from '../utils';
31
+ import { ColorValue, InputContainer, useTheme, SvgSwap, } from '../utils';
32
32
  import { useColorPickerContext } from './ColorPickerContext';
33
- import SvgSwap from '@itwin/itwinui-icons-react/cjs/icons/Swap';
34
33
  import '@itwin/itwinui-css/css/color-picker.css';
35
34
  /**
36
35
  * `ColorInputPanel` shows input fields to enter precise color values in the specified format.
@@ -26,9 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import cx from 'classnames';
28
28
  import React from 'react';
29
- import { useSafeContext, useMergedRefs } from '../utils';
29
+ import { useSafeContext, useMergedRefs, SvgCaretDownSmall } from '../utils';
30
30
  import { ComboBoxActionContext, ComboBoxRefsContext } from './helpers';
31
- import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
32
31
  export var ComboBoxEndIcon = React.forwardRef(function (props, forwardedRef) {
33
32
  var className = props.className, children = props.children, onClickProp = props.onClick, disabled = props.disabled, isOpen = props.isOpen, rest = __rest(props, ["className", "children", "onClick", "disabled", "isOpen"]);
34
33
  var dispatch = useSafeContext(ComboBoxActionContext);
@@ -24,13 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
- import SvgChevronLeft from '@itwin/itwinui-icons-react/cjs/icons/ChevronLeft';
28
- import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
29
- import SvgChevronLeftDouble from '@itwin/itwinui-icons-react/cjs/icons/ChevronLeftDouble';
30
- import SvgChevronRightDouble from '@itwin/itwinui-icons-react/cjs/icons/ChevronRightDouble';
31
27
  import cx from 'classnames';
32
28
  import React from 'react';
33
- import { useTheme } from '../utils';
29
+ import { useTheme, SvgChevronLeft, SvgChevronRight, SvgChevronLeftDouble, SvgChevronRightDouble, } from '../utils';
34
30
  import '@itwin/itwinui-css/css/date-picker.css';
35
31
  import { IconButton } from '../Buttons/IconButton';
36
32
  import { TimePicker } from '../TimePicker';
@@ -26,8 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
- import SvgClose from '@itwin/itwinui-icons-react/cjs/icons/Close';
30
- import { useTheme } from '../utils';
29
+ import { useTheme, SvgClose } from '../utils';
31
30
  import { IconButton } from '../Buttons';
32
31
  import '@itwin/itwinui-css/css/dialog.css';
33
32
  import { useDialogContext } from './DialogContext';
@@ -24,10 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
- import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
28
27
  import cx from 'classnames';
29
28
  import React from 'react';
30
- import { useTheme, StatusIconMap, WithCSSTransition, } from '../utils';
29
+ import { useTheme, StatusIconMap, WithCSSTransition, SvgChevronRight, } from '../utils';
31
30
  import '@itwin/itwinui-css/css/expandable-block.css';
32
31
  /**
33
32
  * Container that allows content to be hidden behind a brief title and a caption.
@@ -3,9 +3,8 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import React from 'react';
6
- import { useTheme } from '../utils';
6
+ import { useTheme, SvgUpload } from '../utils';
7
7
  import '@itwin/itwinui-css/css/file-upload.css';
8
- import SvgUpload from '@itwin/itwinui-icons-react/cjs/icons/Upload';
9
8
  /**
10
9
  * Default template to be used with the `FileUpload` wrapper component.
11
10
  * Contains a hidden input with styled labels (customizable).
@@ -24,11 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
- import SvgMoreVertical from '@itwin/itwinui-icons-react/cjs/icons/MoreVertical';
28
27
  import cx from 'classnames';
29
28
  import React from 'react';
30
29
  import { IconButton } from '../Buttons';
31
- import { useTheme } from '../utils';
30
+ import { useTheme, SvgMoreVertical } from '../utils';
32
31
  import '@itwin/itwinui-css/css/header.css';
33
32
  import { DropdownMenu } from '../DropdownMenu';
34
33
  var defaultTranslations = {
@@ -65,7 +64,7 @@ export var Header = function (props) {
65
64
  var appLogo = props.appLogo, breadcrumbs = props.breadcrumbs, _a = props.isSlim, isSlim = _a === void 0 ? false : _a, actions = props.actions, userIcon = props.userIcon, menuItems = props.menuItems, translatedStrings = props.translatedStrings, className = props.className, children = props.children, rest = __rest(props, ["appLogo", "breadcrumbs", "isSlim", "actions", "userIcon", "menuItems", "translatedStrings", "className", "children"]);
66
65
  useTheme();
67
66
  var headerTranslations = __assign(__assign({}, defaultTranslations), translatedStrings);
68
- return (React.createElement("header", __assign({ className: cx('iui-page-header', { 'iui-slim': isSlim }, className) }, rest),
67
+ return (React.createElement("header", __assign({ className: cx('iui-page-header', className), "data-iui-size": isSlim ? 'slim' : undefined }, rest),
69
68
  React.createElement("div", { className: 'iui-page-header-left' },
70
69
  appLogo,
71
70
  breadcrumbs && React.createElement("div", { className: 'iui-page-header-divider' }),
@@ -33,9 +33,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
33
33
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
34
34
  * See LICENSE.md in the project root for license terms and full copyright notice.
35
35
  *--------------------------------------------------------------------------------------------*/
36
- import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
37
36
  import React from 'react';
38
- import { useTheme } from '../utils';
37
+ import { useTheme, SvgChevronRight } from '../utils';
39
38
  import '@itwin/itwinui-css/css/header.css';
40
39
  /**
41
40
  * Header breadcrumbs, adds chevron between each provided items.
@@ -27,10 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import cx from 'classnames';
28
28
  import React from 'react';
29
29
  import { DropdownMenu } from '../DropdownMenu';
30
- import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
31
- import SvgCaretUpSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretUpSmall';
32
- import { useTheme } from '../utils';
33
- import { useMergedRefs } from '../utils';
30
+ import { useTheme, useMergedRefs, SvgCaretDownSmall, SvgCaretUpSmall, } from '../utils';
34
31
  import { HeaderBasicButton } from './HeaderBasicButton';
35
32
  export var HeaderDropdownButton = React.forwardRef(function (props, ref) {
36
33
  var menuItems = props.menuItems, className = props.className, children = props.children, rest = __rest(props, ["menuItems", "className", "children"]);
@@ -27,9 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import cx from 'classnames';
28
28
  import React from 'react';
29
29
  import { DropdownMenu } from '../DropdownMenu';
30
- import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
31
- import SvgCaretUpSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretUpSmall';
32
- import { useTheme } from '../utils';
30
+ import { useTheme, SvgCaretDownSmall, SvgCaretUpSmall, } from '../utils';
33
31
  import { HeaderBasicButton } from './HeaderBasicButton';
34
32
  export var HeaderSplitButton = React.forwardRef(function (props, forwardedRef) {
35
33
  var menuItems = props.menuItems, className = props.className, _a = props.menuPlacement, menuPlacement = _a === void 0 ? 'bottom-end' : _a, children = props.children, style = props.style, title = props.title, disabled = props.disabled, rest = __rest(props, ["menuItems", "className", "menuPlacement", "children", "style", "title", "disabled"]);
@@ -27,8 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
29
  import { IconButton } from '../Buttons';
30
- import SvgCloseSmall from '@itwin/itwinui-icons-react/cjs/icons/CloseSmall';
31
- import { useTheme } from '../utils';
30
+ import { useTheme, SvgCloseSmall } from '../utils';
32
31
  import '@itwin/itwinui-css/css/information-panel.css';
33
32
  /**
34
33
  * Header of the InformationPanel to be passed in the `header` prop.
@@ -26,9 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) {
26
26
  *--------------------------------------------------------------------------------------------*/
27
27
  import React from 'react';
28
28
  import cx from 'classnames';
29
- import { useTheme, Popover, useMergedRefs } from '../utils';
29
+ import { useTheme, Popover, useMergedRefs, SvgCaretRightSmall, } from '../utils';
30
30
  import '@itwin/itwinui-css/css/menu.css';
31
- import SvgCaretRightSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretRightSmall';
32
31
  import { Menu } from './Menu';
33
32
  /**
34
33
  * Context used to provide menu item ref to sub-menu items.
@@ -24,11 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
25
  * See LICENSE.md in the project root for license terms and full copyright notice.
26
26
  *--------------------------------------------------------------------------------------------*/
27
- import Positive from '@itwin/itwinui-icons-react/cjs/icons/CheckmarkSmall';
28
- import Negative from '@itwin/itwinui-icons-react/cjs/icons/ImportantSmall';
29
27
  import cx from 'classnames';
30
28
  import React from 'react';
31
- import { useTheme } from '../../utils';
29
+ import { useTheme, SvgCheckmarkSmall, SvgImportantSmall, } from '../../utils';
32
30
  import '@itwin/itwinui-css/css/progress-indicator.css';
33
31
  /**
34
32
  * Circular Progress Indicator
@@ -50,8 +48,8 @@ export var ProgressRadial = function (props) {
50
48
  var _b = props.value, value = _b === void 0 ? 0 : _b, _c = props.indeterminate, indeterminate = _c === void 0 ? false : _c, status = props.status, children = props.children, _d = props.size, size = _d === void 0 ? '' : _d, className = props.className, style = props.style, rest = __rest(props, ["value", "indeterminate", "status", "children", "size", "className", "style"]);
51
49
  useTheme();
52
50
  var statusMap = {
53
- negative: React.createElement(Negative, { "aria-hidden": true }),
54
- positive: React.createElement(Positive, { "aria-hidden": true }),
51
+ negative: React.createElement(SvgImportantSmall, { "aria-hidden": true }),
52
+ positive: React.createElement(SvgCheckmarkSmall, { "aria-hidden": true }),
55
53
  };
56
54
  var fillStyle = {
57
55
  strokeDashoffset: status === 'positive'