@itwin/itwinui-react 3.0.0-dev.3 → 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 (63) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/cjs/core/Avatar/Avatar.d.ts +0 -4
  3. package/cjs/core/Avatar/Avatar.js +1 -5
  4. package/cjs/core/Avatar/index.d.ts +1 -1
  5. package/cjs/core/Avatar/index.js +1 -2
  6. package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -4
  7. package/cjs/core/AvatarGroup/AvatarGroup.js +1 -5
  8. package/cjs/core/AvatarGroup/index.d.ts +1 -1
  9. package/cjs/core/AvatarGroup/index.js +1 -2
  10. package/cjs/core/Header/Header.d.ts +1 -20
  11. package/cjs/core/Header/Header.js +1 -2
  12. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
  13. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +10 -17
  14. package/cjs/core/Slider/Slider.d.ts +2 -1
  15. package/cjs/core/Slider/Thumb.d.ts +2 -2
  16. package/cjs/core/Slider/Thumb.js +1 -1
  17. package/cjs/core/Stepper/index.d.ts +0 -4
  18. package/cjs/core/Stepper/index.js +1 -4
  19. package/cjs/core/Tabs/Tabs.d.ts +0 -36
  20. package/cjs/core/Tabs/Tabs.js +1 -29
  21. package/cjs/core/Tabs/index.d.ts +1 -1
  22. package/cjs/core/Tabs/index.js +1 -3
  23. package/cjs/core/Tile/Tile.d.ts +157 -99
  24. package/cjs/core/Tile/Tile.js +273 -99
  25. package/cjs/core/Tooltip/Tooltip.d.ts +67 -7
  26. package/cjs/core/Tooltip/Tooltip.js +96 -7
  27. package/cjs/core/index.d.ts +5 -5
  28. package/cjs/core/index.js +3 -8
  29. package/cjs/styles.js +1 -5
  30. package/esm/core/Avatar/Avatar.d.ts +0 -4
  31. package/esm/core/Avatar/Avatar.js +0 -4
  32. package/esm/core/Avatar/index.d.ts +1 -1
  33. package/esm/core/Avatar/index.js +1 -1
  34. package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -4
  35. package/esm/core/AvatarGroup/AvatarGroup.js +0 -4
  36. package/esm/core/AvatarGroup/index.d.ts +1 -1
  37. package/esm/core/AvatarGroup/index.js +1 -1
  38. package/esm/core/Header/Header.d.ts +1 -20
  39. package/esm/core/Header/Header.js +1 -2
  40. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
  41. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +11 -18
  42. package/esm/core/Slider/Slider.d.ts +2 -1
  43. package/esm/core/Slider/Thumb.d.ts +2 -2
  44. package/esm/core/Slider/Thumb.js +1 -1
  45. package/esm/core/Stepper/index.d.ts +0 -4
  46. package/esm/core/Stepper/index.js +0 -2
  47. package/esm/core/Tabs/Tabs.d.ts +0 -36
  48. package/esm/core/Tabs/Tabs.js +0 -26
  49. package/esm/core/Tabs/index.d.ts +1 -1
  50. package/esm/core/Tabs/index.js +1 -1
  51. package/esm/core/Tile/Tile.d.ts +157 -99
  52. package/esm/core/Tile/Tile.js +273 -99
  53. package/esm/core/Tooltip/Tooltip.d.ts +67 -7
  54. package/esm/core/Tooltip/Tooltip.js +97 -7
  55. package/esm/core/index.d.ts +5 -5
  56. package/esm/core/index.js +4 -4
  57. package/esm/styles.js +1 -5
  58. package/package.json +4 -3
  59. package/styles.css +54 -52
  60. package/cjs/core/Stepper/Wizard.d.ts +0 -46
  61. package/cjs/core/Stepper/Wizard.js +0 -55
  62. package/esm/core/Stepper/Wizard.d.ts +0 -46
  63. package/esm/core/Stepper/Wizard.js +0 -29
package/cjs/core/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InformationPanelHeader = exports.InformationPanelWrapper = exports.InformationPanel = exports.HorizontalTabs = exports.Tab = exports.Tabs = exports.VerticalTabs = exports.TransferList = exports.ListItem = exports.List = exports.HeaderLogo = exports.HeaderButton = exports.HeaderBreadcrumbs = exports.Header = exports.defaultFooterElements = exports.Footer = exports.FileEmptyCard = exports.FileUploadCard = exports.FileUploadTemplate = exports.FileUpload = exports.Fieldset = exports.ExpandableBlock = exports.NonIdealState = exports.ErrorPage = exports.DropdownMenu = exports.Dialog = exports.generateLocalizedStrings = exports.DatePicker = exports.ComboBox = exports.ColorPalette = exports.ColorInputPanel = exports.ColorBuilder = exports.ColorSwatch = exports.ColorPicker = exports.Checkbox = exports.Carousel = exports.ButtonGroup = exports.SplitButton = exports.IdeasButton = exports.IconButton = exports.DropdownButton = exports.Button = exports.Breadcrumbs = exports.Badge = exports.Backdrop = exports.UserIconGroup = exports.AvatarGroup = exports.UserIcon = exports.Avatar = exports.Alert = void 0;
4
- exports.Tooltip = exports.ToggleSwitch = exports.ThemeProvider = exports.useToaster = exports.TimePicker = exports.Tile = exports.Textarea = exports.TagContainer = exports.Tag = exports.SelectionColumn = exports.ExpanderColumn = exports.ActionColumn = exports.TablePaginator = exports.EditableCell = exports.DefaultCell = exports.FilterButtonBar = exports.BaseFilter = exports.tableFilters = exports.Table = exports.Surface = exports.StatusMessage = exports.Slider = exports.SkipToContentLink = exports.SidenavSubmenuHeader = exports.SidenavSubmenu = exports.SidenavButton = exports.SideNavigation = exports.Select = exports.RadioTileGroup = exports.RadioTile = exports.Radio = exports.ProgressRadial = exports.ProgressLinear = exports.NotificationMarker = exports.ModalContent = exports.ModalButtonBar = exports.Modal = exports.MenuItemSkeleton = exports.MenuExtraContent = exports.MenuDivider = exports.MenuItem = exports.Menu = exports.LabeledTextarea = exports.LabeledSelect = exports.InputGroup = exports.LabeledInput = exports.Label = exports.Input = exports.InformationPanelContent = exports.InformationPanelBody = void 0;
5
- exports.Divider = exports.VisuallyHidden = exports.Flex = exports.Icon = exports.LinkAction = exports.LinkBox = exports.MiddleTextTruncation = exports.ColorValue = exports.getUserColor = exports.SearchBox = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Anchor = exports.TreeNodeExpander = exports.TreeNode = exports.Tree = void 0;
3
+ exports.Label = exports.Input = exports.InformationPanelContent = exports.InformationPanelBody = exports.InformationPanelHeader = exports.InformationPanelWrapper = exports.InformationPanel = exports.Tab = exports.Tabs = exports.TransferList = exports.ListItem = exports.List = exports.HeaderLogo = exports.HeaderButton = exports.HeaderBreadcrumbs = exports.Header = exports.defaultFooterElements = exports.Footer = exports.FileEmptyCard = exports.FileUploadCard = exports.FileUploadTemplate = exports.FileUpload = exports.Fieldset = exports.ExpandableBlock = exports.NonIdealState = exports.ErrorPage = exports.DropdownMenu = exports.Dialog = exports.generateLocalizedStrings = exports.DatePicker = exports.ComboBox = exports.ColorPalette = exports.ColorInputPanel = exports.ColorBuilder = exports.ColorSwatch = exports.ColorPicker = exports.Checkbox = exports.Carousel = exports.ButtonGroup = exports.SplitButton = exports.IdeasButton = exports.IconButton = exports.DropdownButton = exports.Button = exports.Breadcrumbs = exports.Badge = exports.Backdrop = exports.AvatarGroup = exports.Avatar = exports.Alert = void 0;
4
+ exports.Anchor = exports.TreeNodeExpander = exports.TreeNode = exports.Tree = exports.Tooltip = exports.ToggleSwitch = exports.ThemeProvider = exports.useToaster = exports.TimePicker = exports.Tile = exports.Textarea = exports.TagContainer = exports.Tag = exports.SelectionColumn = exports.ExpanderColumn = exports.ActionColumn = exports.TablePaginator = exports.EditableCell = exports.DefaultCell = exports.FilterButtonBar = exports.BaseFilter = exports.tableFilters = exports.Table = exports.Surface = exports.StatusMessage = exports.Slider = exports.SkipToContentLink = exports.SidenavSubmenuHeader = exports.SidenavSubmenu = exports.SidenavButton = exports.SideNavigation = exports.Select = exports.RadioTileGroup = exports.RadioTile = exports.Radio = exports.ProgressRadial = exports.ProgressLinear = exports.NotificationMarker = exports.ModalContent = exports.ModalButtonBar = exports.Modal = exports.MenuItemSkeleton = exports.MenuExtraContent = exports.MenuDivider = exports.MenuItem = exports.Menu = exports.LabeledTextarea = exports.LabeledSelect = exports.InputGroup = exports.LabeledInput = void 0;
5
+ exports.Divider = exports.VisuallyHidden = exports.Flex = exports.Icon = exports.LinkAction = exports.LinkBox = exports.MiddleTextTruncation = exports.ColorValue = exports.getUserColor = exports.SearchBox = exports.WorkflowDiagram = exports.Stepper = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = void 0;
6
6
  /*---------------------------------------------------------------------------------------------
7
7
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
8
8
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -11,10 +11,8 @@ var index_js_1 = require("./Alert/index.js");
11
11
  Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return index_js_1.Alert; } });
12
12
  var index_js_2 = require("./Avatar/index.js");
13
13
  Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return index_js_2.Avatar; } });
14
- Object.defineProperty(exports, "UserIcon", { enumerable: true, get: function () { return index_js_2.UserIcon; } });
15
14
  var index_js_3 = require("./AvatarGroup/index.js");
16
15
  Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return index_js_3.AvatarGroup; } });
17
- Object.defineProperty(exports, "UserIconGroup", { enumerable: true, get: function () { return index_js_3.UserIconGroup; } });
18
16
  var index_js_4 = require("./Backdrop/index.js");
19
17
  Object.defineProperty(exports, "Backdrop", { enumerable: true, get: function () { return index_js_4.Backdrop; } });
20
18
  var index_js_5 = require("./Badge/index.js");
@@ -74,10 +72,8 @@ Object.defineProperty(exports, "ListItem", { enumerable: true, get: function ()
74
72
  var index_js_23 = require("./TransferList/index.js");
75
73
  Object.defineProperty(exports, "TransferList", { enumerable: true, get: function () { return index_js_23.TransferList; } });
76
74
  var index_js_24 = require("./Tabs/index.js");
77
- Object.defineProperty(exports, "VerticalTabs", { enumerable: true, get: function () { return index_js_24.VerticalTabs; } });
78
75
  Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return index_js_24.Tabs; } });
79
76
  Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return index_js_24.Tab; } });
80
- Object.defineProperty(exports, "HorizontalTabs", { enumerable: true, get: function () { return index_js_24.HorizontalTabs; } });
81
77
  var index_js_25 = require("./InformationPanel/index.js");
82
78
  Object.defineProperty(exports, "InformationPanel", { enumerable: true, get: function () { return index_js_25.InformationPanel; } });
83
79
  Object.defineProperty(exports, "InformationPanelWrapper", { enumerable: true, get: function () { return index_js_25.InformationPanelWrapper; } });
@@ -171,7 +167,6 @@ Object.defineProperty(exports, "Kbd", { enumerable: true, get: function () { ret
171
167
  Object.defineProperty(exports, "KbdKeys", { enumerable: true, get: function () { return index_js_54.KbdKeys; } });
172
168
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return index_js_54.Text; } });
173
169
  var index_js_55 = require("./Stepper/index.js");
174
- Object.defineProperty(exports, "Wizard", { enumerable: true, get: function () { return index_js_55.Wizard; } });
175
170
  Object.defineProperty(exports, "Stepper", { enumerable: true, get: function () { return index_js_55.Stepper; } });
176
171
  Object.defineProperty(exports, "WorkflowDiagram", { enumerable: true, get: function () { return index_js_55.WorkflowDiagram; } });
177
172
  var index_js_56 = require("./SearchBox/index.js");
package/cjs/styles.js CHANGED
@@ -244,11 +244,7 @@ const styles = {
244
244
  "iui-indeterminate": "_iui3-indeterminate",
245
245
  "iui-progress-indicator-linear-animate-indeterminate": "_iui3-progress-indicator-linear-animate-indeterminate",
246
246
  "iui-progress-indicator-radial": "_iui3-progress-indicator-radial",
247
- "iui-radial": "_iui3-radial",
248
- "iui-inner-content": "_iui3-inner-content",
249
- "iui-x-small": "_iui3-x-small",
250
247
  "rotate-indeterminate": "_iui3-rotate-indeterminate",
251
- "dash-indeterminate": "_iui3-dash-indeterminate",
252
248
  "iui-progress-indicator-overlay": "_iui3-progress-indicator-overlay",
253
249
  "iui-overlay-exiting": "_iui3-overlay-exiting",
254
250
  closeAnimation,
@@ -377,9 +373,9 @@ const styles = {
377
373
  "iui-tile": "_iui3-tile",
378
374
  "iui-folder": "_iui3-folder",
379
375
  "iui-tile-thumbnail": "_iui3-tile-thumbnail",
376
+ "iui-tile-name": "_iui3-tile-name",
380
377
  "iui-tile-more-options": "_iui3-tile-more-options",
381
378
  "iui-tile-metadata": "_iui3-tile-metadata",
382
- "iui-tile-name": "_iui3-tile-name",
383
379
  "iui-tile-description": "_iui3-tile-description",
384
380
  "iui-thumbnail-icon": "_iui3-thumbnail-icon",
385
381
  "iui-tile-thumbnail-picture": "_iui3-tile-thumbnail-picture",
@@ -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;
@@ -37,8 +37,4 @@ export const Avatar = React.forwardRef((props, ref) => {
37
37
  [`iui-${status}`]: !!status,
38
38
  }), "aria-label": statusTitles[status] }))));
39
39
  });
40
- /**
41
- * @deprecated Since v2, this has been renamed to `Avatar`
42
- */
43
- export const UserIcon = Avatar;
44
40
  export default 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;
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export { Avatar, UserIcon } from './Avatar.js';
5
+ export { Avatar } from './Avatar.js';
6
6
  export 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;
@@ -56,8 +56,4 @@ export const AvatarGroup = React.forwardRef((props, ref) => {
56
56
  : `${maxLength}+`),
57
57
  React.createElement(Box, { className: 'iui-stroke' }))))));
58
58
  });
59
- /**
60
- * @deprecated Since v2, this has been renamed to `AvatarGroup`
61
- */
62
- export const UserIconGroup = AvatarGroup;
63
59
  export default 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;
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export { AvatarGroup, UserIconGroup } from './AvatarGroup.js';
5
+ export { AvatarGroup } from './AvatarGroup.js';
6
6
  export default './AvatarGroup';
@@ -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),
@@ -38,7 +38,7 @@ const defaultTranslations = {
38
38
  * />
39
39
  */
40
40
  export const Header = React.forwardRef((props, forwardedRef) => {
41
- const { appLogo, breadcrumbs, isSlim = false, actions, userIcon, menuItems, translatedStrings, className, children, ...rest } = props;
41
+ const { appLogo, breadcrumbs, isSlim = false, actions, menuItems, translatedStrings, className, children, ...rest } = props;
42
42
  const headerTranslations = { ...defaultTranslations, ...translatedStrings };
43
43
  return (React.createElement(Box, { as: 'header', className: cx('iui-page-header', className), "data-iui-size": isSlim ? 'slim' : undefined, ref: forwardedRef, ...rest },
44
44
  React.createElement(Box, { className: 'iui-page-header-left' },
@@ -48,7 +48,6 @@ export const Header = React.forwardRef((props, forwardedRef) => {
48
48
  children && React.createElement(Box, { className: 'iui-page-header-center' }, children),
49
49
  React.createElement(Box, { className: 'iui-page-header-right' },
50
50
  actions,
51
- userIcon,
52
51
  menuItems && (React.createElement(DropdownMenu, { menuItems: menuItems },
53
52
  React.createElement(IconButton, { styleType: 'borderless', "aria-label": headerTranslations.moreOptions },
54
53
  React.createElement(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
  /**
@@ -4,7 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  import cx from 'classnames';
6
6
  import * as React from 'react';
7
- import { SvgCheckmarkSmall, SvgImportantSmall, Box, } from '../../utils/index.js';
7
+ import { SvgCheckmarkSmall, SvgImportantSmall, Box, getBoundedValue, } from '../../utils/index.js';
8
8
  /**
9
9
  * Circular Progress Indicator
10
10
  * @example
@@ -21,28 +21,21 @@ import { SvgCheckmarkSmall, SvgImportantSmall, Box, } from '../../utils/index.js
21
21
  * <ProgressRadial size={'small'} indeterminate/>
22
22
  */
23
23
  export const ProgressRadial = React.forwardRef((props, forwardedRef) => {
24
- const { value = 0, indeterminate = false, status, children, size = '', className, ...rest } = props;
24
+ const { value, indeterminate = value === undefined, status, size, className, style, children, ...rest } = props;
25
25
  const statusMap = {
26
26
  negative: React.createElement(SvgImportantSmall, { "aria-hidden": true }),
27
27
  positive: React.createElement(SvgCheckmarkSmall, { "aria-hidden": true }),
28
28
  };
29
- const fillStyle = {
30
- strokeDashoffset: status === 'positive'
31
- ? 0
32
- : 88 -
33
- Math.min(88, Math.max(0, indeterminate ? 88 : (88 * value) / 100)),
34
- };
35
29
  return (React.createElement(Box, { className: cx('iui-progress-indicator-radial', {
36
- 'iui-determinate': !indeterminate,
37
30
  'iui-indeterminate': indeterminate,
38
- [`iui-${size}`]: !!size,
39
- [`iui-${status}`]: !!status,
40
- }, className), ref: forwardedRef, ...rest },
41
- React.createElement(Box, { as: 'svg', className: 'iui-radial', viewBox: '0 0 32 32', "aria-hidden": 'true' },
42
- React.createElement(Box, { as: 'circle', className: 'iui-track', cx: '16', cy: '16', r: '14' }),
43
- React.createElement(Box, { as: 'circle', className: 'iui-fill', cx: '16', cy: '16', r: '14', style: fillStyle })),
44
- React.createElement(React.Fragment, null,
45
- status && (React.createElement(Box, { as: 'span', className: 'iui-inner-content' }, statusMap[status])),
46
- !status && children && (React.createElement(Box, { as: 'span', className: 'iui-inner-content' }, children)))));
31
+ 'iui-determinate': !indeterminate,
32
+ }, className), "data-iui-size": size, "data-iui-status": status, ref: forwardedRef, style: {
33
+ ...(value !== undefined && {
34
+ '--iui-progress-percentage': `${getBoundedValue(value, 0, 100)}%`,
35
+ }),
36
+ ...style,
37
+ }, ...rest }, size !== 'x-small'
38
+ ? children ?? (!!status ? statusMap[status] : null)
39
+ : null));
47
40
  });
48
41
  export default 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
  */
@@ -57,7 +57,7 @@ export const Thumb = (props) => {
57
57
  return (100.0 * (adjustedValue - sliderMin)) / (sliderMax - sliderMin);
58
58
  }, [adjustedValue, sliderMax, sliderMin]);
59
59
  const { style, className, ...rest } = thumbProps || {};
60
- return (React.createElement(Tooltip, { placement: 'top', trigger: tooltipProps?.visible == null ? 'mouseenter click focus' : undefined, ...tooltipProps },
60
+ return (React.createElement(Tooltip, { placement: 'top', autoUpdateOptions: { animationFrame: true }, ...tooltipProps },
61
61
  React.createElement(Box, { ...rest, "data-index": index, ref: thumbRef, style: {
62
62
  ...style,
63
63
  ...(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;
@@ -2,7 +2,5 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export { Wizard } from './Wizard.js';
6
5
  export { Stepper } from './Stepper.js';
7
6
  export { WorkflowDiagram } from './WorkflowDiagram.js';
8
- export 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;
@@ -353,30 +353,4 @@ export const Tabs = (props) => {
353
353
  React.createElement(Box, { className: 'iui-tabs-actions' }, actions))),
354
354
  children && (React.createElement(Box, { className: cx('iui-tabs-content', contentClassName), role: 'tabpanel' }, children))));
355
355
  };
356
- /**
357
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'horizontal'`
358
- *
359
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
360
- * @example
361
- * const tabs = [
362
- * <Tab label='Label 1' sublabel='First tab' />,
363
- * <Tab label='Label 2' sublabel='Active tab' />,
364
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
365
- * ];
366
- * <HorizontalTabs labels={tabs} activeIndex={1}>Tabpanel content</HorizontalTabs>
367
- */
368
- export const HorizontalTabs = (props) => (React.createElement(Tabs, { orientation: 'horizontal', ...props }));
369
- /**
370
- * @deprecated Since v2, directly use `Tabs` with `orientation: 'vertical'`
371
- *
372
- * Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
373
- * @example
374
- * const tabs = [
375
- * <Tab label='Label 1' sublabel='First tab' />,
376
- * <Tab label='Label 2' sublabel='Active tab' />,
377
- * <Tab label='Label 3' sublabel='Disabled tab' disabled icon={<SvgPlaceholder />} />,
378
- * ];
379
- * <VerticalTabs labels={tabs} activeIndex={1}>Tabpanel content</VerticalTabs>
380
- */
381
- export const VerticalTabs = (props) => (React.createElement(Tabs, { orientation: 'vertical', ...props }));
382
356
  export default 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';
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- export { Tabs, VerticalTabs, HorizontalTabs } from './Tabs.js';
5
+ export { Tabs } from './Tabs.js';
6
6
  export { Tab } from './Tab.js';