@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.
- package/CHANGELOG.md +28 -0
- package/cjs/core/Avatar/Avatar.d.ts +0 -4
- package/cjs/core/Avatar/Avatar.js +1 -5
- package/cjs/core/Avatar/index.d.ts +1 -1
- package/cjs/core/Avatar/index.js +1 -2
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -4
- package/cjs/core/AvatarGroup/AvatarGroup.js +1 -5
- package/cjs/core/AvatarGroup/index.d.ts +1 -1
- package/cjs/core/AvatarGroup/index.js +1 -2
- package/cjs/core/Header/Header.d.ts +1 -20
- package/cjs/core/Header/Header.js +1 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +10 -17
- package/cjs/core/Slider/Slider.d.ts +2 -1
- package/cjs/core/Slider/Thumb.d.ts +2 -2
- package/cjs/core/Slider/Thumb.js +1 -1
- package/cjs/core/Stepper/index.d.ts +0 -4
- package/cjs/core/Stepper/index.js +1 -4
- package/cjs/core/Tabs/Tabs.d.ts +0 -36
- package/cjs/core/Tabs/Tabs.js +1 -29
- package/cjs/core/Tabs/index.d.ts +1 -1
- package/cjs/core/Tabs/index.js +1 -3
- package/cjs/core/Tile/Tile.d.ts +157 -99
- package/cjs/core/Tile/Tile.js +273 -99
- package/cjs/core/Tooltip/Tooltip.d.ts +67 -7
- package/cjs/core/Tooltip/Tooltip.js +96 -7
- package/cjs/core/index.d.ts +5 -5
- package/cjs/core/index.js +3 -8
- package/cjs/styles.js +1 -5
- package/esm/core/Avatar/Avatar.d.ts +0 -4
- package/esm/core/Avatar/Avatar.js +0 -4
- package/esm/core/Avatar/index.d.ts +1 -1
- package/esm/core/Avatar/index.js +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -4
- package/esm/core/AvatarGroup/AvatarGroup.js +0 -4
- package/esm/core/AvatarGroup/index.d.ts +1 -1
- package/esm/core/AvatarGroup/index.js +1 -1
- package/esm/core/Header/Header.d.ts +1 -20
- package/esm/core/Header/Header.js +1 -2
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +11 -18
- package/esm/core/Slider/Slider.d.ts +2 -1
- package/esm/core/Slider/Thumb.d.ts +2 -2
- package/esm/core/Slider/Thumb.js +1 -1
- package/esm/core/Stepper/index.d.ts +0 -4
- package/esm/core/Stepper/index.js +0 -2
- package/esm/core/Tabs/Tabs.d.ts +0 -36
- package/esm/core/Tabs/Tabs.js +0 -26
- package/esm/core/Tabs/index.d.ts +1 -1
- package/esm/core/Tabs/index.js +1 -1
- package/esm/core/Tile/Tile.d.ts +157 -99
- package/esm/core/Tile/Tile.js +273 -99
- package/esm/core/Tooltip/Tooltip.d.ts +67 -7
- package/esm/core/Tooltip/Tooltip.js +97 -7
- package/esm/core/index.d.ts +5 -5
- package/esm/core/index.js +4 -4
- package/esm/styles.js +1 -5
- package/package.json +4 -3
- package/styles.css +54 -52
- package/cjs/core/Stepper/Wizard.d.ts +0 -46
- package/cjs/core/Stepper/Wizard.js +0 -55
- package/esm/core/Stepper/Wizard.d.ts +0 -46
- package/esm/core/Stepper/Wizard.js +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
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
|
+
|
|
3
23
|
## 3.0.0-dev.3
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
|
@@ -54,6 +74,14 @@
|
|
|
54
74
|
- Updated dependencies:
|
|
55
75
|
- @itwin/itwinui-css@2.0.0-dev.0
|
|
56
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
|
+
|
|
57
85
|
## 2.11.6
|
|
58
86
|
|
|
59
87
|
### Patch Changes
|
|
@@ -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.
|
|
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;
|
package/cjs/core/Avatar/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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.
|
|
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,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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';
|
|
@@ -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
|
|
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,
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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 {
|
|
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
|
|
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<
|
|
52
|
+
tooltipProps: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
|
|
53
53
|
/**
|
|
54
54
|
* Additional props for Thumb.
|
|
55
55
|
*/
|
package/cjs/core/Slider/Thumb.js
CHANGED
|
@@ -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',
|
|
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 =
|
|
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';
|
package/cjs/core/Tabs/Tabs.d.ts
CHANGED
|
@@ -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;
|
package/cjs/core/Tabs/Tabs.js
CHANGED
|
@@ -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.
|
|
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;
|
package/cjs/core/Tabs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tabs
|
|
1
|
+
export { Tabs } from './Tabs.js';
|
|
2
2
|
export { Tab } from './Tab.js';
|
package/cjs/core/Tabs/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tab = exports.
|
|
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; } });
|