@itwin/itwinui-react 3.0.0-dev.2 → 3.0.0-dev.4

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 (99) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/cjs/core/Alert/Alert.d.ts +2 -2
  3. package/cjs/core/Avatar/Avatar.d.ts +0 -4
  4. package/cjs/core/Avatar/Avatar.js +1 -5
  5. package/cjs/core/Avatar/index.d.ts +1 -1
  6. package/cjs/core/Avatar/index.js +1 -2
  7. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -4
  8. package/cjs/core/AvatarGroup/AvatarGroup.js +1 -5
  9. package/cjs/core/AvatarGroup/index.d.ts +1 -1
  10. package/cjs/core/AvatarGroup/index.js +1 -2
  11. package/cjs/core/FileUpload/FileUpload.d.ts +3 -4
  12. package/cjs/core/FileUpload/FileUpload.js +2 -2
  13. package/cjs/core/FileUpload/FileUploadTemplate.d.ts +1 -0
  14. package/cjs/core/FileUpload/FileUploadTemplate.js +1 -0
  15. package/cjs/core/Header/Header.d.ts +1 -20
  16. package/cjs/core/Header/Header.js +1 -2
  17. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
  18. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +10 -17
  19. package/cjs/core/Slider/Slider.d.ts +2 -1
  20. package/cjs/core/Slider/Thumb.d.ts +2 -2
  21. package/cjs/core/Slider/Thumb.js +1 -1
  22. package/cjs/core/Stepper/index.d.ts +0 -4
  23. package/cjs/core/Stepper/index.js +1 -4
  24. package/cjs/core/Tabs/Tabs.d.ts +0 -36
  25. package/cjs/core/Tabs/Tabs.js +1 -29
  26. package/cjs/core/Tabs/index.d.ts +1 -1
  27. package/cjs/core/Tabs/index.js +1 -3
  28. package/cjs/core/ThemeProvider/ThemeProvider.js +5 -2
  29. package/cjs/core/Tile/Tile.d.ts +157 -99
  30. package/cjs/core/Tile/Tile.js +273 -99
  31. package/cjs/core/Toast/Toast.d.ts +5 -10
  32. package/cjs/core/Toast/Toast.js +15 -13
  33. package/cjs/core/Toast/Toaster.d.ts +24 -26
  34. package/cjs/core/Toast/Toaster.js +91 -116
  35. package/cjs/core/Toast/index.d.ts +1 -4
  36. package/cjs/core/Toast/index.js +3 -6
  37. package/cjs/core/Tooltip/Tooltip.d.ts +67 -7
  38. package/cjs/core/Tooltip/Tooltip.js +96 -7
  39. package/cjs/core/index.d.ts +6 -7
  40. package/cjs/core/index.js +4 -12
  41. package/cjs/core/utils/components/Popover.d.ts +1 -1
  42. package/cjs/core/utils/functions/dom.d.ts +0 -8
  43. package/cjs/core/utils/functions/dom.js +1 -24
  44. package/cjs/core/utils/functions/polymorphic.d.ts +1 -1
  45. package/cjs/styles.js +1 -5
  46. package/esm/core/Alert/Alert.d.ts +2 -2
  47. package/esm/core/Avatar/Avatar.d.ts +0 -4
  48. package/esm/core/Avatar/Avatar.js +0 -4
  49. package/esm/core/Avatar/index.d.ts +1 -1
  50. package/esm/core/Avatar/index.js +1 -1
  51. package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -4
  52. package/esm/core/AvatarGroup/AvatarGroup.js +0 -4
  53. package/esm/core/AvatarGroup/index.d.ts +1 -1
  54. package/esm/core/AvatarGroup/index.js +1 -1
  55. package/esm/core/FileUpload/FileUpload.d.ts +3 -4
  56. package/esm/core/FileUpload/FileUpload.js +2 -2
  57. package/esm/core/FileUpload/FileUploadTemplate.d.ts +1 -0
  58. package/esm/core/FileUpload/FileUploadTemplate.js +1 -0
  59. package/esm/core/Header/Header.d.ts +1 -20
  60. package/esm/core/Header/Header.js +1 -2
  61. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
  62. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +11 -18
  63. package/esm/core/Slider/Slider.d.ts +2 -1
  64. package/esm/core/Slider/Thumb.d.ts +2 -2
  65. package/esm/core/Slider/Thumb.js +1 -1
  66. package/esm/core/Stepper/index.d.ts +0 -4
  67. package/esm/core/Stepper/index.js +0 -2
  68. package/esm/core/Tabs/Tabs.d.ts +0 -36
  69. package/esm/core/Tabs/Tabs.js +0 -26
  70. package/esm/core/Tabs/index.d.ts +1 -1
  71. package/esm/core/Tabs/index.js +1 -1
  72. package/esm/core/ThemeProvider/ThemeProvider.js +5 -2
  73. package/esm/core/Tile/Tile.d.ts +157 -99
  74. package/esm/core/Tile/Tile.js +273 -99
  75. package/esm/core/Toast/Toast.d.ts +5 -10
  76. package/esm/core/Toast/Toast.js +16 -14
  77. package/esm/core/Toast/Toaster.d.ts +24 -26
  78. package/esm/core/Toast/Toaster.js +85 -116
  79. package/esm/core/Toast/index.d.ts +1 -4
  80. package/esm/core/Toast/index.js +1 -3
  81. package/esm/core/Tooltip/Tooltip.d.ts +67 -7
  82. package/esm/core/Tooltip/Tooltip.js +97 -7
  83. package/esm/core/index.d.ts +6 -7
  84. package/esm/core/index.js +5 -5
  85. package/esm/core/utils/components/Popover.d.ts +1 -1
  86. package/esm/core/utils/functions/dom.d.ts +0 -8
  87. package/esm/core/utils/functions/dom.js +0 -19
  88. package/esm/core/utils/functions/polymorphic.d.ts +1 -1
  89. package/esm/styles.js +1 -5
  90. package/package.json +4 -3
  91. package/styles.css +55 -52
  92. package/cjs/core/Stepper/Wizard.d.ts +0 -46
  93. package/cjs/core/Stepper/Wizard.js +0 -55
  94. package/cjs/core/Toast/ToastWrapper.d.ts +0 -10
  95. package/cjs/core/Toast/ToastWrapper.js +0 -49
  96. package/esm/core/Stepper/Wizard.d.ts +0 -46
  97. package/esm/core/Stepper/Wizard.js +0 -29
  98. package/esm/core/Toast/ToastWrapper.d.ts +0 -10
  99. package/esm/core/Toast/ToastWrapper.js +0 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0-dev.4
4
+
5
+ ### Major Changes
6
+
7
+ - [#1383](https://github.com/iTwin/iTwinUI/pull/1383): Removed previously-deprecated `UserIcon` and `UserIconGroup` components. Also removed `userIcon` prop from `Header`.
8
+ - [#1384](https://github.com/iTwin/iTwinUI/pull/1384): Removed previously-deprecated `Wizard` component (replaced by `Stepper` and `WorkflowDiagram`).
9
+ - [#1255](https://github.com/iTwin/iTwinUI/pull/1255): Updated Tile component to be composition of customizable subcomponents: `Tile.Name`, `Tile.NameIcon`, `Tile.NameLabel`, `Tile.Action`, `Tile.ThumbnailArea`, `Tile.ThumbnailPicture`, `Tile.BadgeContainer`, `Tile.TypeIndicator`, `Tile.QuickAction`, `Tile.ContentArea`, `Tile.Description`, `Tile.MoreOptions`, `Tile.Metadata`, `Tile.Buttons`. Certain props have been removed as they are now subcomponents: `name`, `description`, `metadata`, `thumbnail`, `badge`, `leftIcon`, `rightIcon`, `button`, `moreOptions`, `isActionable` props have been removed.
10
+
11
+ - [#1356](https://github.com/iTwin/iTwinUI/pull/1356): ProgressRadial has been refactored to be a single `<div>` instead of using a nested svg. Also it is recommended to explicitly set `size` when using in other components.
12
+ - [#1311](https://github.com/iTwin/iTwinUI/pull/1311): - Removed Tippy.js as dependency in Tooltip. Using FloatingUI instead.
13
+ - [#1388](https://github.com/iTwin/iTwinUI/pull/1388): Removed deprecated `HorizontalTabs` and `VerticalTabs` (replaced by `orientation` prop in `Tabs`).
14
+
15
+ ### Minor Changes
16
+
17
+ - [#1362](https://github.com/iTwin/iTwinUI/pull/1362): All elements under the root will now get a default focus styling matching `--iui-color-border-accent`.
18
+
19
+ ### Patch Changes
20
+
21
+ - [#1360](https://github.com/iTwin/iTwinUI/pull/1360): The `color-scheme` property will now be correctly set for dark theme, resulting in better theming of built-in html elements.
22
+
23
+ ## 3.0.0-dev.3
24
+
25
+ ### Major Changes
26
+
27
+ - [#1330](https://github.com/iTwin/iTwinUI/pull/1330): Deprecated `FileUploadTemplate`. Removed all of its references.
28
+ - [#1351](https://github.com/iTwin/iTwinUI/pull/1351): `toaster` import has been removed and replaced with `useToaster` which returns a toaster object with the same API.
29
+
3
30
  ## 3.0.0-dev.2
4
31
 
5
32
  ### Major Changes
@@ -47,6 +74,14 @@
47
74
  - Updated dependencies:
48
75
  - @itwin/itwinui-css@2.0.0-dev.0
49
76
 
77
+ ## 2.11.7
78
+
79
+ ### Patch Changes
80
+
81
+ - [#1376](https://github.com/iTwin/iTwinUI/pull/1376): Fix issue where a nested expandable block's expander icon would always display as expanded.
82
+ - Updated dependencies:
83
+ - @itwin/itwinui-css@1.11.2
84
+
50
85
  ## 2.11.6
51
86
 
52
87
  ### Patch Changes
@@ -45,8 +45,8 @@ export declare const Alert: PolymorphicForwardRefComponent<"div", AlertOwnProps>
45
45
  Icon: PolymorphicForwardRefComponent<"span", Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
46
46
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
47
47
  }, "as" | "fill" | "key" | "size" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
48
- size?: "small" | "auto" | "medium" | "large" | import("../utils/types.js").AnyString | undefined;
49
- fill?: "default" | "positive" | "warning" | "negative" | import("../utils/types.js").AnyString | "informational" | undefined;
48
+ size?: "small" | "auto" | "large" | "medium" | import("../utils/types.js").AnyString | undefined;
49
+ fill?: "default" | "informational" | "negative" | "positive" | "warning" | import("../utils/types.js").AnyString | undefined;
50
50
  } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
51
51
  as?: "span" | undefined;
52
52
  }>;
@@ -52,8 +52,4 @@ export declare const defaultStatusTitles: StatusTitles;
52
52
  * <Avatar size='x-large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
53
53
  */
54
54
  export declare const Avatar: PolymorphicForwardRefComponent<"span", AvatarProps>;
55
- /**
56
- * @deprecated Since v2, this has been renamed to `Avatar`
57
- */
58
- export declare const UserIcon: PolymorphicForwardRefComponent<"span", AvatarProps>;
59
55
  export default Avatar;
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserIcon = exports.Avatar = exports.defaultStatusTitles = void 0;
29
+ exports.Avatar = exports.defaultStatusTitles = void 0;
30
30
  /*---------------------------------------------------------------------------------------------
31
31
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
32
32
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -66,8 +66,4 @@ exports.Avatar = React.forwardRef((props, ref) => {
66
66
  [`iui-${status}`]: !!status,
67
67
  }), "aria-label": statusTitles[status] }))));
68
68
  });
69
- /**
70
- * @deprecated Since v2, this has been renamed to `Avatar`
71
- */
72
- exports.UserIcon = exports.Avatar;
73
69
  exports.default = exports.Avatar;
@@ -1,3 +1,3 @@
1
- export { Avatar, UserIcon } from './Avatar.js';
1
+ export { Avatar } from './Avatar.js';
2
2
  declare const _default: "./Avatar";
3
3
  export default _default;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserIcon = exports.Avatar = void 0;
3
+ exports.Avatar = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  var Avatar_js_1 = require("./Avatar.js");
9
9
  Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_js_1.Avatar; } });
10
- Object.defineProperty(exports, "UserIcon", { enumerable: true, get: function () { return Avatar_js_1.UserIcon; } });
11
10
  exports.default = './Avatar';
@@ -58,8 +58,4 @@ declare type AvatarGroupProps = {
58
58
  * </AvatarGroup>
59
59
  */
60
60
  export declare const AvatarGroup: PolymorphicForwardRefComponent<"div", AvatarGroupProps>;
61
- /**
62
- * @deprecated Since v2, this has been renamed to `AvatarGroup`
63
- */
64
- export declare const UserIconGroup: PolymorphicForwardRefComponent<"div", AvatarGroupProps>;
65
61
  export default AvatarGroup;
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserIconGroup = exports.AvatarGroup = void 0;
29
+ exports.AvatarGroup = void 0;
30
30
  /*---------------------------------------------------------------------------------------------
31
31
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
32
32
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -85,8 +85,4 @@ exports.AvatarGroup = React.forwardRef((props, ref) => {
85
85
  : `${maxLength}+`),
86
86
  React.createElement(index_js_1.Box, { className: 'iui-stroke' }))))));
87
87
  });
88
- /**
89
- * @deprecated Since v2, this has been renamed to `AvatarGroup`
90
- */
91
- exports.UserIconGroup = exports.AvatarGroup;
92
88
  exports.default = exports.AvatarGroup;
@@ -1,3 +1,3 @@
1
- export { AvatarGroup, UserIconGroup } from './AvatarGroup.js';
1
+ export { AvatarGroup } from './AvatarGroup.js';
2
2
  declare const _default: "./AvatarGroup";
3
3
  export default _default;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserIconGroup = exports.AvatarGroup = void 0;
3
+ exports.AvatarGroup = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  var AvatarGroup_js_1 = require("./AvatarGroup.js");
9
9
  Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return AvatarGroup_js_1.AvatarGroup; } });
10
- Object.defineProperty(exports, "UserIconGroup", { enumerable: true, get: function () { return AvatarGroup_js_1.UserIconGroup; } });
11
10
  exports.default = './AvatarGroup';
@@ -4,7 +4,6 @@ declare type FileUploadProps = {
4
4
  /**
5
5
  * Content shown over `children` when file is being dragged onto the component.
6
6
  * Should always be used when drag content differs from `children` being wrapped.
7
- * Can be skipped if wrapping `FileUploadTemplate`.
8
7
  */
9
8
  dragContent?: React.ReactNode;
10
9
  /**
@@ -13,15 +12,15 @@ declare type FileUploadProps = {
13
12
  onFileDropped: (files: FileList) => void;
14
13
  /**
15
14
  * Component to wrap `FileUpload` around.
16
- * Either pass `FileUploadTemplate` (for default state) or a different component to wrap.
15
+ * Either pass `FileUploadCard` (for default state) or a different component to wrap.
17
16
  */
18
17
  children: React.ReactNode;
19
18
  };
20
19
  /**
21
- * File upload component to be wrapped around `FileUploadTemplate` or any arbitrary component.
20
+ * File upload component to be wrapped around `FileUploadCard` or any arbitrary component.
22
21
  * Provides support for dragging and dropping multiple files.
23
22
  * @example
24
- * <FileUpload onFileDropped={console.log}><FileUploadTemplate /></FileUpload>
23
+ * <FileUpload onFileDropped={console.log}><FileUploadCard /></FileUpload>
25
24
  * <FileUpload dragContent='Drop file here' onFileDropped={console.log}><Textarea /></FileUpload>
26
25
  */
27
26
  export declare const FileUpload: PolymorphicForwardRefComponent<"div", FileUploadProps>;
@@ -35,10 +35,10 @@ 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
  /**
38
- * File upload component to be wrapped around `FileUploadTemplate` or any arbitrary component.
38
+ * File upload component to be wrapped around `FileUploadCard` or any arbitrary component.
39
39
  * Provides support for dragging and dropping multiple files.
40
40
  * @example
41
- * <FileUpload onFileDropped={console.log}><FileUploadTemplate /></FileUpload>
41
+ * <FileUpload onFileDropped={console.log}><FileUploadCard /></FileUpload>
42
42
  * <FileUpload dragContent='Drop file here' onFileDropped={console.log}><Textarea /></FileUpload>
43
43
  */
44
44
  exports.FileUpload = React.forwardRef((props, ref) => {
@@ -32,6 +32,7 @@ declare type FileUploadTemplateProps = {
32
32
  children?: React.ReactNode;
33
33
  };
34
34
  /**
35
+ * @deprecated Use `FileUploadCard` instead.
35
36
  * Default template to be used with the `FileUpload` wrapper component.
36
37
  * Contains a hidden input with styled labels (customizable).
37
38
  * @example
@@ -36,6 +36,7 @@ const classnames_1 = __importDefault(require("classnames"));
36
36
  const index_js_1 = require("../utils/index.js");
37
37
  const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
38
38
  /**
39
+ * @deprecated Use `FileUploadCard` instead.
39
40
  * Default template to be used with the `FileUpload` wrapper component.
40
41
  * Contains a hidden input with styled labels (customizable).
41
42
  * @example
@@ -26,11 +26,8 @@ declare type HeaderProps = {
26
26
  breadcrumbs?: React.ReactNode;
27
27
  /**
28
28
  * Content displayed to the left of the `menuItems`
29
- * (expects array of `IconButton`, potentially wrapped in a `DropdownMenu`)
29
+ * (expects array of icons/avatars wrapped in `IconButton` and/or `DropdownMenu`).
30
30
  *
31
- * Since v2, `userIcon` is deprecated.
32
- * The new recommendation is to add `Avatar` (Called `UserIcon` before v2) to the end of `actions`.
33
- * `Avatar` can be wrapped in `IconButton` and `DropdownMenu` if needed.
34
31
  * @example
35
32
  * [
36
33
  * <IconButton><SvgNotification /></IconButton>,
@@ -51,22 +48,6 @@ declare type HeaderProps = {
51
48
  * Children is put in the center of the Header.
52
49
  */
53
50
  children?: React.ReactNode;
54
- /**
55
- * @deprecated Since v2, add your `UserIcon` (called `Avatar` since v2) to the end of `actions` itself
56
- *
57
- * User icon
58
- *
59
- * It's size and transition will be handled between slim/not slim state of the
60
- * Header
61
- * (expects `UserIcon`, can be wrapped in `IconButton` and `DropdownMenu` if needed)
62
- * @example
63
- * <DropdownMenu menuItems={...}>
64
- * <IconButton styleType='borderless'>
65
- * <UserIcon ... />
66
- * </IconButton>
67
- * </DropdownMenu>
68
- */
69
- userIcon?: React.ReactNode;
70
51
  /**
71
52
  * Items in the more dropdown menu.
72
53
  * Pass a function that takes the `close` argument (to close the menu),
@@ -67,7 +67,7 @@ const defaultTranslations = {
67
67
  * />
68
68
  */
69
69
  exports.Header = React.forwardRef((props, forwardedRef) => {
70
- const { appLogo, breadcrumbs, isSlim = false, actions, userIcon, menuItems, translatedStrings, className, children, ...rest } = props;
70
+ const { appLogo, breadcrumbs, isSlim = false, actions, menuItems, translatedStrings, className, children, ...rest } = props;
71
71
  const headerTranslations = { ...defaultTranslations, ...translatedStrings };
72
72
  return (React.createElement(index_js_2.Box, { as: 'header', className: (0, classnames_1.default)('iui-page-header', className), "data-iui-size": isSlim ? 'slim' : undefined, ref: forwardedRef, ...rest },
73
73
  React.createElement(index_js_2.Box, { className: 'iui-page-header-left' },
@@ -77,7 +77,6 @@ exports.Header = React.forwardRef((props, forwardedRef) => {
77
77
  children && React.createElement(index_js_2.Box, { className: 'iui-page-header-center' }, children),
78
78
  React.createElement(index_js_2.Box, { className: 'iui-page-header-right' },
79
79
  actions,
80
- userIcon,
81
80
  menuItems && (React.createElement(index_js_3.DropdownMenu, { menuItems: menuItems },
82
81
  React.createElement(index_js_1.IconButton, { styleType: 'borderless', "aria-label": headerTranslations.moreOptions },
83
82
  React.createElement(index_js_2.SvgMoreVertical, { "aria-hidden": true })))))));
@@ -3,12 +3,12 @@ import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
3
3
  declare type ProgressRadialProps = {
4
4
  /**
5
5
  * Progress percentage. Should be a number between 0 and 100.
6
- * @default 0
7
6
  */
8
7
  value?: number;
9
8
  /**
10
9
  * Progress variant. If true, value will be ignored.
11
- * @default false
10
+ *
11
+ * @default false if value is provided, true otherwise
12
12
  */
13
13
  indeterminate?: boolean;
14
14
  /**
@@ -50,28 +50,21 @@ const index_js_1 = require("../../utils/index.js");
50
50
  * <ProgressRadial size={'small'} indeterminate/>
51
51
  */
52
52
  exports.ProgressRadial = React.forwardRef((props, forwardedRef) => {
53
- const { value = 0, indeterminate = false, status, children, size = '', className, ...rest } = props;
53
+ const { value, indeterminate = value === undefined, status, size, className, style, children, ...rest } = props;
54
54
  const statusMap = {
55
55
  negative: React.createElement(index_js_1.SvgImportantSmall, { "aria-hidden": true }),
56
56
  positive: React.createElement(index_js_1.SvgCheckmarkSmall, { "aria-hidden": true }),
57
57
  };
58
- const fillStyle = {
59
- strokeDashoffset: status === 'positive'
60
- ? 0
61
- : 88 -
62
- Math.min(88, Math.max(0, indeterminate ? 88 : (88 * value) / 100)),
63
- };
64
58
  return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-progress-indicator-radial', {
65
- 'iui-determinate': !indeterminate,
66
59
  'iui-indeterminate': indeterminate,
67
- [`iui-${size}`]: !!size,
68
- [`iui-${status}`]: !!status,
69
- }, className), ref: forwardedRef, ...rest },
70
- React.createElement(index_js_1.Box, { as: 'svg', className: 'iui-radial', viewBox: '0 0 32 32', "aria-hidden": 'true' },
71
- React.createElement(index_js_1.Box, { as: 'circle', className: 'iui-track', cx: '16', cy: '16', r: '14' }),
72
- React.createElement(index_js_1.Box, { as: 'circle', className: 'iui-fill', cx: '16', cy: '16', r: '14', style: fillStyle })),
73
- React.createElement(React.Fragment, null,
74
- status && (React.createElement(index_js_1.Box, { as: 'span', className: 'iui-inner-content' }, statusMap[status])),
75
- !status && children && (React.createElement(index_js_1.Box, { as: 'span', className: 'iui-inner-content' }, children)))));
60
+ 'iui-determinate': !indeterminate,
61
+ }, className), "data-iui-size": size, "data-iui-status": status, ref: forwardedRef, style: {
62
+ ...(value !== undefined && {
63
+ '--iui-progress-percentage': `${(0, index_js_1.getBoundedValue)(value, 0, 100)}%`,
64
+ }),
65
+ ...style,
66
+ }, ...rest }, size !== 'x-small'
67
+ ? children ?? (!!status ? statusMap[status] : null)
68
+ : null));
76
69
  });
77
70
  exports.default = exports.ProgressRadial;
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { PolymorphicForwardRefComponent } from '../utils/index.js';
3
- import type { TooltipProps } from '../Tooltip/Tooltip.js';
3
+ import type { Tooltip } from '../Tooltip/index.js';
4
4
  /**
5
5
  * Determines which segments are shown with color.
6
6
  */
7
7
  export declare type TrackDisplayMode = 'auto' | 'none' | 'odd-segments' | 'even-segments';
8
+ declare type TooltipProps = React.ComponentProps<typeof Tooltip>;
8
9
  export declare type SliderProps = {
9
10
  /**
10
11
  * Set focus on first thumb in slider element.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { TooltipProps } from '../Tooltip/Tooltip.js';
2
+ import { Tooltip } from '../Tooltip/index.js';
3
3
  import type { SliderProps } from './Slider.js';
4
4
  declare type ThumbProps = {
5
5
  /**
@@ -49,7 +49,7 @@ declare type ThumbProps = {
49
49
  /**
50
50
  * Additional tooltip props.
51
51
  */
52
- tooltipProps: Omit<TooltipProps, 'children'>;
52
+ tooltipProps: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
53
53
  /**
54
54
  * Additional props for Thumb.
55
55
  */
@@ -86,7 +86,7 @@ const Thumb = (props) => {
86
86
  return (100.0 * (adjustedValue - sliderMin)) / (sliderMax - sliderMin);
87
87
  }, [adjustedValue, sliderMax, sliderMin]);
88
88
  const { style, className, ...rest } = thumbProps || {};
89
- return (React.createElement(index_js_1.Tooltip, { placement: 'top', trigger: tooltipProps?.visible == null ? 'mouseenter click focus' : undefined, ...tooltipProps },
89
+ return (React.createElement(index_js_1.Tooltip, { placement: 'top', autoUpdateOptions: { animationFrame: true }, ...tooltipProps },
90
90
  React.createElement(index_js_2.Box, { ...rest, "data-index": index, ref: thumbRef, style: {
91
91
  ...style,
92
92
  ...(orientation === 'horizontal'
@@ -1,7 +1,3 @@
1
- export { Wizard } from './Wizard.js';
2
1
  export { Stepper } from './Stepper.js';
3
2
  export { WorkflowDiagram } from './WorkflowDiagram.js';
4
- export type { WizardType, WizardLocalization } from './Wizard.js';
5
3
  export type { StepProperties, StepperLocalization } from './Stepper.js';
6
- declare const _default: "./Wizard";
7
- export default _default;
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowDiagram = exports.Stepper = exports.Wizard = void 0;
3
+ exports.WorkflowDiagram = exports.Stepper = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
- var Wizard_js_1 = require("./Wizard.js");
9
- Object.defineProperty(exports, "Wizard", { enumerable: true, get: function () { return Wizard_js_1.Wizard; } });
10
8
  var Stepper_js_1 = require("./Stepper.js");
11
9
  Object.defineProperty(exports, "Stepper", { enumerable: true, get: function () { return Stepper_js_1.Stepper; } });
12
10
  var WorkflowDiagram_js_1 = require("./WorkflowDiagram.js");
13
11
  Object.defineProperty(exports, "WorkflowDiagram", { enumerable: true, get: function () { return WorkflowDiagram_js_1.WorkflowDiagram; } });
14
- exports.default = './Wizard';
@@ -99,16 +99,6 @@ export declare type TabsProps = {
99
99
  */
100
100
  children?: React.ReactNode;
101
101
  } & TabsOrientationProps & TabsTypeProps & TabsOverflowProps;
102
- /**
103
- * @deprecated Since v2, use `TabProps` with `Tabs`
104
- */
105
- declare type HorizontalTabsProps = Omit<TabsProps, 'orientation'>;
106
- /**
107
- * @deprecated Since v2, use `TabProps` with `Tabs`
108
- */
109
- declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'> & {
110
- type?: 'default' | 'borderless';
111
- };
112
102
  /**
113
103
  * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
114
104
  * @example
@@ -137,30 +127,4 @@ declare type VerticalTabsProps = Omit<TabsProps, 'orientation' | 'type'> & {
137
127
  * <Tabs labels={tabsWithIcons} type='pill' />
138
128
  */
139
129
  export declare const Tabs: (props: TabsProps) => JSX.Element;
140
- /**
141
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
142
- *
143
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
144
- * @example
145
- * const tabs = [
146
- * <Tab label='Label 1' sublabel='First tab' />,
147
- * <Tab label='Label 2' sublabel='Active tab' />,
148
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
149
- * ];
150
- * <HorizontalTabs labels={tabs} activeIndex={1}>Tabpanel content</HorizontalTabs>
151
- */
152
- export declare const HorizontalTabs: (props: HorizontalTabsProps) => JSX.Element;
153
- /**
154
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
155
- *
156
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
157
- * @example
158
- * const tabs = [
159
- * <Tab label='Label 1' sublabel='First tab' />,
160
- * <Tab label='Label 2' sublabel='Active tab' />,
161
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
162
- * ];
163
- * <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
164
- */
165
- export declare const VerticalTabs: (props: VerticalTabsProps) => JSX.Element;
166
130
  export default Tabs;
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.VerticalTabs = exports.HorizontalTabs = exports.Tabs = void 0;
29
+ exports.Tabs = void 0;
30
30
  /*---------------------------------------------------------------------------------------------
31
31
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
32
32
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -383,32 +383,4 @@ const Tabs = (props) => {
383
383
  children && (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-tabs-content', contentClassName), role: 'tabpanel' }, children))));
384
384
  };
385
385
  exports.Tabs = Tabs;
386
- /**
387
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
388
- *
389
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
390
- * @example
391
- * const tabs = [
392
- * <Tab label='Label 1' sublabel='First tab' />,
393
- * <Tab label='Label 2' sublabel='Active tab' />,
394
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
395
- * ];
396
- * <HorizontalTabs labels={tabs} activeIndex={1}>Tabpanel content</HorizontalTabs>
397
- */
398
- const HorizontalTabs = (props) => (React.createElement(exports.Tabs, { orientation: 'horizontal', ...props }));
399
- exports.HorizontalTabs = HorizontalTabs;
400
- /**
401
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
402
- *
403
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
404
- * @example
405
- * const tabs = [
406
- * <Tab label='Label 1' sublabel='First tab' />,
407
- * <Tab label='Label 2' sublabel='Active tab' />,
408
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
409
- * ];
410
- * <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
411
- */
412
- const VerticalTabs = (props) => (React.createElement(exports.Tabs, { orientation: 'vertical', ...props }));
413
- exports.VerticalTabs = VerticalTabs;
414
386
  exports.default = exports.Tabs;
@@ -1,2 +1,2 @@
1
- export { Tabs, VerticalTabs, HorizontalTabs } from './Tabs.js';
1
+ export { Tabs } from './Tabs.js';
2
2
  export { Tab } from './Tab.js';
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tab = exports.HorizontalTabs = exports.VerticalTabs = exports.Tabs = void 0;
3
+ exports.Tab = exports.Tabs = void 0;
4
4
  /*---------------------------------------------------------------------------------------------
5
5
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
6
  * See LICENSE.md in the project root for license terms and full copyright notice.
7
7
  *--------------------------------------------------------------------------------------------*/
8
8
  var Tabs_js_1 = require("./Tabs.js");
9
9
  Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_js_1.Tabs; } });
10
- Object.defineProperty(exports, "VerticalTabs", { enumerable: true, get: function () { return Tabs_js_1.VerticalTabs; } });
11
- Object.defineProperty(exports, "HorizontalTabs", { enumerable: true, get: function () { return Tabs_js_1.HorizontalTabs; } });
12
10
  var Tab_js_1 = require("./Tab.js");
13
11
  Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return Tab_js_1.Tab; } });
@@ -35,6 +35,7 @@ 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 ThemeContext_js_1 = require("./ThemeContext.js");
38
+ const Toaster_js_1 = require("../Toast/Toaster.js");
38
39
  /**
39
40
  * This component provides global styles and applies theme to the entire tree
40
41
  * that it is wrapping around. The `theme` prop is optional and defaults to the
@@ -71,8 +72,10 @@ exports.ThemeProvider = React.forwardRef((props, ref) => {
71
72
  const contextValue = React.useMemo(() => ({ theme, themeOptions, portalContainerRef }), [theme, themeOptions]);
72
73
  return (React.createElement(ThemeContext_js_1.ThemeContext.Provider, { value: contextValue },
73
74
  React.createElement(Root, { theme: theme, shouldApplyBackground: shouldApplyBackground, themeOptions: themeOptions, ref: ref, ...rest },
74
- children,
75
- React.createElement("div", { ref: portalContainerRef }))));
75
+ React.createElement(Toaster_js_1.ToastProvider, null,
76
+ children,
77
+ React.createElement("div", { ref: portalContainerRef },
78
+ React.createElement(Toaster_js_1.Toaster, null))))));
76
79
  });
77
80
  exports.default = exports.ThemeProvider;
78
81
  const Root = React.forwardRef((props, forwardedRef) => {