@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
|
@@ -1,55 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Wizard = void 0;
|
|
27
|
-
/*---------------------------------------------------------------------------------------------
|
|
28
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
29
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
|
-
*--------------------------------------------------------------------------------------------*/
|
|
31
|
-
const React = __importStar(require("react"));
|
|
32
|
-
const Stepper_js_1 = require("./Stepper.js");
|
|
33
|
-
const WorkflowDiagram_js_1 = require("./WorkflowDiagram.js");
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Since v2, use `Stepper` (type = `default` | `long`) or WorkflowDiagram (type = `workflow`)
|
|
36
|
-
*
|
|
37
|
-
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
38
|
-
* It may also be used for navigation.
|
|
39
|
-
*
|
|
40
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* <Wizard
|
|
44
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
45
|
-
* currentStep={0}
|
|
46
|
-
* type='long'
|
|
47
|
-
* />
|
|
48
|
-
*/
|
|
49
|
-
exports.Wizard = React.forwardRef(
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
-
(props, ref) => {
|
|
52
|
-
const { currentStep, steps, type = 'default', localization, onStepClick, ...rest } = props;
|
|
53
|
-
return type !== 'workflow' ? (React.createElement(Stepper_js_1.Stepper, { type: type, currentStep: currentStep, steps: steps, localization: localization, onStepClick: onStepClick, ref: ref, ...rest })) : (React.createElement(WorkflowDiagram_js_1.WorkflowDiagram, { steps: steps, ref: ref, ...rest }));
|
|
54
|
-
});
|
|
55
|
-
exports.default = exports.Wizard;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { StepperProps, StepperLocalization } from './Stepper.js';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Since v2:
|
|
5
|
-
*
|
|
6
|
-
* - For `default` | `long`, use `StepperType` with `Stepper` instead
|
|
7
|
-
* - For `workflow`, use `WorkflowDiagram` instead
|
|
8
|
-
*/
|
|
9
|
-
export declare type WizardType = 'default' | 'long' | 'workflow';
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Since v2, use `StepperLocalization` with `Stepper`
|
|
12
|
-
*/
|
|
13
|
-
export declare type WizardLocalization = StepperLocalization;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Since v2, use `StepperProps` with `Stepper` or `WorkflowDiagramProps` with `WorkflowDiagram`
|
|
16
|
-
*/
|
|
17
|
-
export declare type WizardProps = {
|
|
18
|
-
/**
|
|
19
|
-
* The type of Wizard to display.
|
|
20
|
-
* @default 'default'
|
|
21
|
-
*/
|
|
22
|
-
type?: WizardType;
|
|
23
|
-
} & Omit<StepperProps, 'type'>;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Since v2, use `Stepper` (type = `default` | `long`) or WorkflowDiagram (type = `workflow`)
|
|
26
|
-
*
|
|
27
|
-
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
28
|
-
* It may also be used for navigation.
|
|
29
|
-
*
|
|
30
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* <Wizard
|
|
34
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
35
|
-
* currentStep={0}
|
|
36
|
-
* type='long'
|
|
37
|
-
* />
|
|
38
|
-
*/
|
|
39
|
-
export declare const Wizard: React.ForwardRefExoticComponent<{
|
|
40
|
-
/**
|
|
41
|
-
* The type of Wizard to display.
|
|
42
|
-
* @default 'default'
|
|
43
|
-
*/
|
|
44
|
-
type?: WizardType | undefined;
|
|
45
|
-
} & Omit<StepperProps, "type"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
export default Wizard;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { Stepper } from './Stepper.js';
|
|
7
|
-
import { WorkflowDiagram } from './WorkflowDiagram.js';
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Since v2, use `Stepper` (type = `default` | `long`) or WorkflowDiagram (type = `workflow`)
|
|
10
|
-
*
|
|
11
|
-
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
12
|
-
* It may also be used for navigation.
|
|
13
|
-
*
|
|
14
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* <Wizard
|
|
18
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
19
|
-
* currentStep={0}
|
|
20
|
-
* type='long'
|
|
21
|
-
* />
|
|
22
|
-
*/
|
|
23
|
-
export const Wizard = React.forwardRef(
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
-
(props, ref) => {
|
|
26
|
-
const { currentStep, steps, type = 'default', localization, onStepClick, ...rest } = props;
|
|
27
|
-
return type !== 'workflow' ? (React.createElement(Stepper, { type: type, currentStep: currentStep, steps: steps, localization: localization, onStepClick: onStepClick, ref: ref, ...rest })) : (React.createElement(WorkflowDiagram, { steps: steps, ref: ref, ...rest }));
|
|
28
|
-
});
|
|
29
|
-
export default Wizard;
|