@itwin/itwinui-react 1.48.0 → 2.0.0-dev.0
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 +6 -0
- package/README.md +4 -22
- package/cjs/core/Alert/Alert.d.ts +7 -6
- package/cjs/core/Alert/Alert.js +12 -7
- package/cjs/core/Avatar/Avatar.d.ts +69 -0
- package/cjs/core/{UserIcon/UserIcon.js → Avatar/Avatar.js} +15 -11
- package/cjs/core/Avatar/index.d.ts +4 -0
- package/cjs/core/{UserIcon → Avatar}/index.js +5 -4
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +70 -0
- package/cjs/core/{UserIconGroup/UserIconGroup.js → AvatarGroup/AvatarGroup.js} +23 -19
- package/cjs/core/AvatarGroup/index.d.ts +4 -0
- package/cjs/core/{UserIconGroup → AvatarGroup}/index.js +5 -4
- package/cjs/core/Badge/Badge.js +2 -4
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/core/Buttons/Button/Button.js +5 -14
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -1
- package/cjs/core/Buttons/IconButton/IconButton.js +3 -9
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +1 -1
- package/cjs/core/Buttons/SplitButton/SplitButton.js +4 -6
- package/cjs/core/Checkbox/Checkbox.d.ts +1 -29
- package/cjs/core/Checkbox/Checkbox.js +3 -3
- package/cjs/core/ColorPicker/ColorBuilder.js +16 -27
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +1 -6
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +2 -4
- package/cjs/core/Dialog/Dialog.d.ts +4 -4
- package/cjs/core/Dialog/Dialog.js +1 -1
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +5 -2
- package/cjs/core/Dialog/DialogMain.d.ts +1 -1
- package/cjs/core/Dialog/DialogMain.js +7 -1
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +4 -4
- package/cjs/core/Header/Header.d.ts +16 -6
- package/cjs/core/Header/Header.js +7 -9
- package/cjs/core/Header/HeaderBasicButton.d.ts +6 -0
- package/cjs/core/Header/HeaderBasicButton.js +52 -0
- package/cjs/core/Header/HeaderBreadcrumbs.js +6 -4
- package/cjs/core/Header/HeaderButton.d.ts +3 -2
- package/cjs/core/Header/HeaderButton.js +10 -18
- package/cjs/core/Header/HeaderDropdownButton.d.ts +6 -0
- package/cjs/core/Header/HeaderDropdownButton.js +56 -0
- package/cjs/core/Header/HeaderLogo.js +3 -3
- package/cjs/core/Header/HeaderSplitButton.d.ts +6 -0
- package/cjs/core/Header/HeaderSplitButton.js +56 -0
- package/cjs/core/Input/Input.d.ts +1 -1
- package/cjs/core/Input/Input.js +3 -4
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +1 -1
- package/cjs/core/Label/Label.d.ts +1 -1
- package/cjs/core/Label/Label.js +1 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/cjs/core/LabeledInput/LabeledInput.js +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/cjs/core/Radio/Radio.d.ts +1 -29
- package/cjs/core/Radio/Radio.js +3 -3
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +1 -1
- package/cjs/core/Select/Select.d.ts +1 -1
- package/cjs/core/Select/Select.js +9 -12
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +1 -2
- package/cjs/core/Stepper/Stepper.d.ts +40 -0
- package/cjs/core/{Wizard/Wizard.js → Stepper/Stepper.js} +11 -28
- package/cjs/core/{Wizard/Step.d.ts → Stepper/StepperStep.d.ts} +6 -7
- package/cjs/core/{Wizard/Step.js → Stepper/StepperStep.js} +10 -10
- package/cjs/core/Stepper/Wizard.d.ts +46 -0
- package/cjs/core/Stepper/Wizard.js +55 -0
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +6 -0
- package/cjs/core/Stepper/WorkflowDiagram.js +43 -0
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +5 -0
- package/cjs/core/Stepper/WorkflowDiagramStep.js +42 -0
- package/cjs/core/Stepper/index.d.ts +8 -0
- package/cjs/core/{Wizard → Stepper}/index.js +5 -1
- package/cjs/core/Surface/Surface.js +2 -4
- package/cjs/core/Table/SubRowExpander.js +1 -1
- package/cjs/core/Table/Table.d.ts +5 -4
- package/cjs/core/Table/Table.js +30 -21
- package/cjs/core/Table/TableCell.js +4 -4
- package/cjs/core/Table/TablePaginator.js +14 -15
- package/cjs/core/Table/TableRowMemoized.d.ts +2 -0
- package/cjs/core/Table/TableRowMemoized.js +10 -13
- package/cjs/core/Table/cells/DefaultCell.js +4 -9
- package/cjs/core/Table/columns/actionColumn.js +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +1 -1
- package/cjs/core/Table/filters/BaseFilter.js +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +1 -1
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +4 -4
- package/cjs/core/Table/hooks/useResizeColumns.js +110 -106
- package/cjs/core/Tabs/Tab.d.ts +0 -8
- package/cjs/core/Tabs/Tab.js +1 -5
- package/cjs/core/Tabs/Tabs.js +8 -11
- package/cjs/core/Tabs/index.d.ts +2 -2
- package/cjs/core/Tabs/index.js +1 -2
- package/cjs/core/Textarea/Textarea.d.ts +1 -1
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +27 -17
- package/cjs/core/ThemeProvider/ThemeProvider.js +64 -7
- package/cjs/core/Tile/Tile.d.ts +19 -1
- package/cjs/core/Tile/Tile.js +35 -12
- package/cjs/core/Toast/Toast.d.ts +3 -3
- package/cjs/core/Toast/Toast.js +3 -3
- package/cjs/core/Toast/ToastWrapper.d.ts +1 -1
- package/cjs/core/Toast/ToastWrapper.js +1 -1
- package/cjs/core/Tree/TreeNode.js +1 -7
- package/cjs/core/index.d.ts +8 -8
- package/cjs/core/index.js +13 -10
- package/cjs/core/utils/components/Popover.d.ts +2 -2
- package/cjs/core/utils/components/Popover.js +1 -1
- package/cjs/core/utils/components/Resizer.d.ts +5 -0
- package/cjs/core/utils/components/Resizer.js +7 -1
- package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -0
- package/cjs/core/utils/components/VisuallyHidden.js +1 -0
- package/cjs/core/utils/functions/colors.d.ts +1 -1
- package/cjs/core/utils/functions/colors.js +1 -1
- package/cjs/core/utils/functions/dom.js +1 -0
- package/cjs/core/utils/hooks/index.d.ts +1 -0
- package/cjs/core/utils/hooks/index.js +1 -0
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +17 -0
- package/cjs/core/utils/hooks/useMediaQuery.js +2 -1
- package/cjs/core/utils/hooks/useTheme.d.ts +20 -3
- package/cjs/core/utils/hooks/useTheme.js +57 -58
- package/esm/core/Alert/Alert.d.ts +7 -6
- package/esm/core/Alert/Alert.js +12 -7
- package/esm/core/Avatar/Avatar.d.ts +69 -0
- package/esm/core/{UserIcon/UserIcon.js → Avatar/Avatar.js} +13 -9
- package/esm/core/Avatar/index.d.ts +4 -0
- package/esm/core/{UserIcon → Avatar}/index.js +2 -2
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +70 -0
- package/esm/core/{UserIconGroup/UserIconGroup.js → AvatarGroup/AvatarGroup.js} +21 -17
- package/esm/core/AvatarGroup/index.d.ts +4 -0
- package/esm/core/{UserIconGroup → AvatarGroup}/index.js +2 -2
- package/esm/core/Badge/Badge.js +3 -5
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/core/Buttons/Button/Button.js +5 -14
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -1
- package/esm/core/Buttons/IconButton/IconButton.js +3 -9
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +1 -1
- package/esm/core/Buttons/SplitButton/SplitButton.js +4 -6
- package/esm/core/Checkbox/Checkbox.d.ts +1 -29
- package/esm/core/Checkbox/Checkbox.js +3 -3
- package/esm/core/ColorPicker/ColorBuilder.js +17 -28
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +2 -7
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -4
- package/esm/core/Dialog/Dialog.d.ts +4 -4
- package/esm/core/Dialog/Dialog.js +1 -1
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +5 -2
- package/esm/core/Dialog/DialogMain.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.js +7 -1
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +4 -4
- package/esm/core/Header/Header.d.ts +16 -6
- package/esm/core/Header/Header.js +7 -9
- package/esm/core/Header/HeaderBasicButton.d.ts +6 -0
- package/esm/core/Header/HeaderBasicButton.js +46 -0
- package/esm/core/Header/HeaderBreadcrumbs.js +6 -4
- package/esm/core/Header/HeaderButton.d.ts +3 -2
- package/esm/core/Header/HeaderButton.js +10 -18
- package/esm/core/Header/HeaderDropdownButton.d.ts +6 -0
- package/esm/core/Header/HeaderDropdownButton.js +50 -0
- package/esm/core/Header/HeaderLogo.js +3 -3
- package/esm/core/Header/HeaderSplitButton.d.ts +6 -0
- package/esm/core/Header/HeaderSplitButton.js +50 -0
- package/esm/core/Input/Input.d.ts +1 -1
- package/esm/core/Input/Input.js +3 -4
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +1 -1
- package/esm/core/Label/Label.d.ts +1 -1
- package/esm/core/Label/Label.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/esm/core/LabeledInput/LabeledInput.js +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/esm/core/Radio/Radio.d.ts +1 -29
- package/esm/core/Radio/Radio.js +3 -3
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/Select/Select.d.ts +1 -1
- package/esm/core/Select/Select.js +9 -12
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +1 -2
- package/esm/core/Stepper/Stepper.d.ts +40 -0
- package/esm/core/{Wizard/Wizard.js → Stepper/Stepper.js} +10 -27
- package/esm/core/{Wizard/Step.d.ts → Stepper/StepperStep.d.ts} +6 -7
- package/esm/core/{Wizard/Step.js → Stepper/StepperStep.js} +8 -8
- package/esm/core/Stepper/Wizard.d.ts +46 -0
- package/esm/core/Stepper/Wizard.js +49 -0
- package/esm/core/Stepper/WorkflowDiagram.d.ts +6 -0
- package/esm/core/Stepper/WorkflowDiagram.js +37 -0
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +5 -0
- package/esm/core/Stepper/WorkflowDiagramStep.js +35 -0
- package/esm/core/Stepper/index.d.ts +8 -0
- package/esm/core/{Wizard → Stepper}/index.js +2 -0
- package/esm/core/Surface/Surface.js +3 -5
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +5 -4
- package/esm/core/Table/Table.js +30 -21
- package/esm/core/Table/TableCell.js +4 -4
- package/esm/core/Table/TablePaginator.js +14 -15
- package/esm/core/Table/TableRowMemoized.d.ts +2 -0
- package/esm/core/Table/TableRowMemoized.js +10 -13
- package/esm/core/Table/cells/DefaultCell.js +4 -9
- package/esm/core/Table/columns/actionColumn.js +1 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -1
- package/esm/core/Table/filters/BaseFilter.js +1 -1
- package/esm/core/Table/filters/FilterToggle.js +1 -1
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +4 -4
- package/esm/core/Table/hooks/useResizeColumns.js +110 -106
- package/esm/core/Tabs/Tab.d.ts +0 -8
- package/esm/core/Tabs/Tab.js +0 -4
- package/esm/core/Tabs/Tabs.js +9 -12
- package/esm/core/Tabs/index.d.ts +2 -2
- package/esm/core/Tabs/index.js +1 -1
- package/esm/core/Textarea/Textarea.d.ts +1 -1
- package/esm/core/Textarea/Textarea.js +2 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +27 -17
- package/esm/core/ThemeProvider/ThemeProvider.js +64 -6
- package/esm/core/Tile/Tile.d.ts +19 -1
- package/esm/core/Tile/Tile.js +36 -13
- package/esm/core/Toast/Toast.d.ts +3 -3
- package/esm/core/Toast/Toast.js +3 -3
- package/esm/core/Toast/ToastWrapper.d.ts +1 -1
- package/esm/core/Toast/ToastWrapper.js +1 -1
- package/esm/core/Tree/TreeNode.js +2 -8
- package/esm/core/index.d.ts +8 -8
- package/esm/core/index.js +4 -4
- package/esm/core/utils/components/Popover.d.ts +2 -2
- package/esm/core/utils/components/Popover.js +1 -1
- package/esm/core/utils/components/Resizer.d.ts +5 -0
- package/esm/core/utils/components/Resizer.js +7 -1
- package/esm/core/utils/components/VisuallyHidden.d.ts +1 -0
- package/esm/core/utils/components/VisuallyHidden.js +1 -0
- package/esm/core/utils/functions/colors.d.ts +1 -1
- package/esm/core/utils/functions/colors.js +1 -1
- package/esm/core/utils/functions/dom.js +1 -0
- package/esm/core/utils/hooks/index.d.ts +1 -0
- package/esm/core/utils/hooks/index.js +1 -0
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/esm/core/utils/hooks/useMediaQuery.js +2 -1
- package/esm/core/utils/hooks/useTheme.d.ts +20 -3
- package/esm/core/utils/hooks/useTheme.js +56 -57
- package/package.json +3 -2
- package/cjs/core/UserIcon/UserIcon.d.ts +0 -57
- package/cjs/core/UserIcon/index.d.ts +0 -4
- package/cjs/core/UserIconGroup/UserIconGroup.d.ts +0 -62
- package/cjs/core/UserIconGroup/index.d.ts +0 -4
- package/cjs/core/Wizard/Wizard.d.ts +0 -54
- package/cjs/core/Wizard/index.d.ts +0 -4
- package/esm/core/UserIcon/UserIcon.d.ts +0 -57
- package/esm/core/UserIcon/index.d.ts +0 -4
- package/esm/core/UserIconGroup/UserIconGroup.d.ts +0 -62
- package/esm/core/UserIconGroup/index.d.ts +0 -4
- package/esm/core/Wizard/Wizard.d.ts +0 -54
- package/esm/core/Wizard/index.d.ts +0 -4
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import '@itwin/itwinui-css/css/global.css';
|
|
2
|
+
import '@itwin/itwinui-variables/index.css';
|
|
2
3
|
export declare type ThemeOptions = {
|
|
3
4
|
/**
|
|
4
5
|
* Document to which the theme will be applied.
|
|
5
6
|
* Can be specified to handle popup windows.
|
|
6
7
|
* @default document
|
|
8
|
+
*
|
|
9
|
+
* @deprecated This prop will continue to work in `useTheme` but
|
|
10
|
+
* we recommend rendering `ThemeProvider` in the correct document instead.
|
|
7
11
|
*/
|
|
8
12
|
ownerDocument?: Document;
|
|
9
13
|
/**
|
|
@@ -13,10 +17,23 @@ export declare type ThemeOptions = {
|
|
|
13
17
|
highContrast?: boolean;
|
|
14
18
|
};
|
|
15
19
|
export declare type ThemeType = 'light' | 'dark' | 'os';
|
|
20
|
+
export declare type UseThemeProps = {
|
|
21
|
+
/**
|
|
22
|
+
* Theme to be applied. If not set, light theme will be used.
|
|
23
|
+
*/
|
|
24
|
+
theme?: ThemeType;
|
|
25
|
+
/**
|
|
26
|
+
* Options that can be specified to override default theming behavior.
|
|
27
|
+
*/
|
|
28
|
+
themeOptions?: ThemeOptions;
|
|
29
|
+
};
|
|
16
30
|
/**
|
|
17
|
-
* Hook that applies styling and theme to all components.
|
|
18
|
-
* Defaults to light theme if none provided
|
|
31
|
+
* Hook that conditionally applies styling and theme to all components.
|
|
32
|
+
* Defaults to light theme if none provided.
|
|
33
|
+
*
|
|
34
|
+
* If ThemeProvider is used as an ancestor, this hook will not do anything.
|
|
35
|
+
*
|
|
19
36
|
* @param theme Light, dark, or based on OS setting.
|
|
20
37
|
* @param themeOptions Options that override default theming behavior.
|
|
21
38
|
*/
|
|
22
|
-
export declare const useTheme: (theme?:
|
|
39
|
+
export declare const useTheme: (theme?: UseThemeProps['theme'], themeOptions?: UseThemeProps['themeOptions']) => void;
|
|
@@ -3,77 +3,76 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { ThemeContext } from '../../ThemeProvider/ThemeProvider';
|
|
7
|
+
import { getDocument, getWindow } from '../functions';
|
|
8
|
+
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
|
|
6
9
|
import '@itwin/itwinui-css/css/global.css';
|
|
7
|
-
import
|
|
8
|
-
import { useMediaQuery } from './useMediaQuery';
|
|
10
|
+
import '@itwin/itwinui-variables/index.css';
|
|
9
11
|
/**
|
|
10
|
-
* Hook that applies styling and theme to all components.
|
|
11
|
-
* Defaults to light theme if none provided
|
|
12
|
+
* Hook that conditionally applies styling and theme to all components.
|
|
13
|
+
* Defaults to light theme if none provided.
|
|
14
|
+
*
|
|
15
|
+
* If ThemeProvider is used as an ancestor, this hook will not do anything.
|
|
16
|
+
*
|
|
12
17
|
* @param theme Light, dark, or based on OS setting.
|
|
13
18
|
* @param themeOptions Options that override default theming behavior.
|
|
14
19
|
*/
|
|
15
20
|
export var useTheme = function (theme, themeOptions) {
|
|
16
21
|
var _a;
|
|
22
|
+
var themeContext = React.useContext(ThemeContext);
|
|
17
23
|
var ownerDocument = (_a = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.ownerDocument) !== null && _a !== void 0 ? _a : getDocument();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (!(ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.body.classList.contains('iui-body'))) {
|
|
22
|
-
ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.body.classList.add('iui-body');
|
|
23
|
-
}
|
|
24
|
-
}, [ownerDocument]);
|
|
25
|
-
React.useLayoutEffect(function () {
|
|
26
|
-
var _a, _b, _c, _d, _e;
|
|
27
|
-
if (!ownerDocument) {
|
|
24
|
+
useIsomorphicLayoutEffect(function () {
|
|
25
|
+
// exit early if theme was already set by provider
|
|
26
|
+
if (themeContext || !ownerDocument) {
|
|
28
27
|
return;
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
var addOSTheme = function (_a) {
|
|
32
|
-
var isDark = _a.matches;
|
|
33
|
-
if (isDark) {
|
|
34
|
-
applyTheme('dark', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
38
|
-
}
|
|
39
|
-
};
|
|
29
|
+
ownerDocument.body.classList.toggle('iui-root', true);
|
|
40
30
|
switch (theme) {
|
|
41
31
|
case 'light':
|
|
42
|
-
(_c = prefersDarkMediaQuery === null || prefersDarkMediaQuery === void 0 ? void 0 : prefersDarkMediaQuery.removeEventListener) === null || _c === void 0 ? void 0 : _c.call(prefersDarkMediaQuery, 'change', addOSTheme);
|
|
43
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
44
|
-
break;
|
|
45
32
|
case 'dark':
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
56
|
-
}
|
|
57
|
-
break;
|
|
58
|
-
default:
|
|
59
|
-
if (ownerDocument.documentElement.className.indexOf('iui-theme') === -1) {
|
|
60
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
33
|
+
case 'os': {
|
|
34
|
+
return handleTheme(theme, ownerDocument, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast);
|
|
35
|
+
}
|
|
36
|
+
default: {
|
|
37
|
+
// set light theme by default
|
|
38
|
+
if (ownerDocument.documentElement.dataset.iuiTheme == null) {
|
|
39
|
+
return handleTheme('light', ownerDocument, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast);
|
|
61
40
|
}
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
62
43
|
}
|
|
63
|
-
|
|
64
|
-
var _a;
|
|
65
|
-
(_a = prefersDarkMediaQuery === null || prefersDarkMediaQuery === void 0 ? void 0 : prefersDarkMediaQuery.removeEventListener) === null || _a === void 0 ? void 0 : _a.call(prefersDarkMediaQuery, 'change', addOSTheme);
|
|
66
|
-
};
|
|
67
|
-
}, [highContrast, ownerDocument, theme]);
|
|
44
|
+
}, [theme, themeContext, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast, ownerDocument]);
|
|
68
45
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Helper function to apply the specified theme, or detect the OS theme.
|
|
48
|
+
* Returns a cleanup function to remove the change handlers.
|
|
49
|
+
*/
|
|
50
|
+
var handleTheme = function (theme, ownerDocument, highContrast) {
|
|
51
|
+
var _a, _b, _c, _d, _e;
|
|
52
|
+
var root = ownerDocument.documentElement;
|
|
53
|
+
var _window = (_a = ownerDocument.defaultView) !== null && _a !== void 0 ? _a : getWindow();
|
|
54
|
+
var applyThemeAttributes = function (isDark, isHC) {
|
|
55
|
+
if (isDark === void 0) { isDark = false; }
|
|
56
|
+
if (isHC === void 0) { isHC = false; }
|
|
57
|
+
root.dataset.iuiTheme = isDark ? 'dark' : 'light';
|
|
58
|
+
root.dataset.iuiContrast = isHC ? 'high' : 'default';
|
|
59
|
+
};
|
|
60
|
+
var prefersDarkQuery = (_b = _window === null || _window === void 0 ? void 0 : _window.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_window, '(prefers-color-scheme: dark)');
|
|
61
|
+
var prefersHCQuery = (_c = _window === null || _window === void 0 ? void 0 : _window.matchMedia) === null || _c === void 0 ? void 0 : _c.call(_window, '(prefers-contrast: more)');
|
|
62
|
+
var changeHandler = function () {
|
|
63
|
+
var isDark = theme === 'dark' || (theme === 'os' && (prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.matches));
|
|
64
|
+
var isHC = highContrast !== null && highContrast !== void 0 ? highContrast : prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.matches;
|
|
65
|
+
applyThemeAttributes(isDark, isHC);
|
|
66
|
+
};
|
|
67
|
+
// call handler once to set initial theme
|
|
68
|
+
changeHandler();
|
|
69
|
+
// add listeners in supported browsers
|
|
70
|
+
(_d = prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.addEventListener) === null || _d === void 0 ? void 0 : _d.call(prefersDarkQuery, 'change', changeHandler);
|
|
71
|
+
(_e = prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.addEventListener) === null || _e === void 0 ? void 0 : _e.call(prefersHCQuery, 'change', changeHandler);
|
|
72
|
+
// return cleanup function to remove event listeners (should be returned from useEffect)
|
|
73
|
+
return function () {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
(_a = prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.removeEventListener) === null || _a === void 0 ? void 0 : _a.call(prefersDarkQuery, 'change', changeHandler);
|
|
76
|
+
(_b = prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.removeEventListener) === null || _b === void 0 ? void 0 : _b.call(prefersHCQuery, 'change', changeHandler);
|
|
77
|
+
};
|
|
79
78
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/itwinui-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-dev.0",
|
|
4
4
|
"author": "Bentley Systems",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
"createComponent": "node ../../scripts/createComponent.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@itwin/itwinui-css": "
|
|
47
|
+
"@itwin/itwinui-css": "1.0.0-dev.13",
|
|
48
48
|
"@itwin/itwinui-icons-react": "^1.10.1",
|
|
49
49
|
"@itwin/itwinui-illustrations-react": "^1.3.1",
|
|
50
|
+
"@itwin/itwinui-variables": "1.0.0-dev.0",
|
|
50
51
|
"@tippyjs/react": "^4.2.6",
|
|
51
52
|
"@types/react-table": "^7.0.18",
|
|
52
53
|
"classnames": "^2.2.6",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/user-icon.css';
|
|
4
|
-
export declare type UserIconStatus = 'online' | 'busy' | 'away' | 'offline';
|
|
5
|
-
export declare type StatusTitles = {
|
|
6
|
-
[key in Exclude<UserIconStatus, ''>]: string;
|
|
7
|
-
};
|
|
8
|
-
export declare type UserIconProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Size of a user icon.
|
|
11
|
-
* @default 'small'
|
|
12
|
-
*/
|
|
13
|
-
size?: 'small' | 'medium' | 'large' | 'x-large';
|
|
14
|
-
/**
|
|
15
|
-
* Status/Availability of a user.
|
|
16
|
-
*/
|
|
17
|
-
status?: UserIconStatus;
|
|
18
|
-
/**
|
|
19
|
-
* Text which will appear when hovering over the icon.
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Abbreviation to be displayed.
|
|
24
|
-
*/
|
|
25
|
-
abbreviation?: string;
|
|
26
|
-
/**
|
|
27
|
-
* User image to be displayed. MUST be an <img> element!
|
|
28
|
-
*/
|
|
29
|
-
image?: JSX.Element;
|
|
30
|
-
/**
|
|
31
|
-
* Color of the icon. You can use `getUserColor` function to generate color from user name or email.
|
|
32
|
-
* @default 'white'
|
|
33
|
-
*/
|
|
34
|
-
backgroundColor?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Translated status messages shown on hover.
|
|
37
|
-
*/
|
|
38
|
-
translatedStatusTitles?: StatusTitles;
|
|
39
|
-
} & Omit<CommonProps, 'title'>;
|
|
40
|
-
export declare const defaultStatusTitles: StatusTitles;
|
|
41
|
-
/**
|
|
42
|
-
* Basic user icon component
|
|
43
|
-
* @example
|
|
44
|
-
* <caption>Small icon with abbreviation</caption>
|
|
45
|
-
* <UserIcon size='small' title='Terry Rivers' abbreviation='TR' backgroundColor='green'/>
|
|
46
|
-
* @example
|
|
47
|
-
* <caption>Medium icon with image</caption>
|
|
48
|
-
* <UserIcon size='medium' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
|
|
49
|
-
* @example
|
|
50
|
-
* <caption>Large icon with status</caption>
|
|
51
|
-
* <UserIcon size='large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' status='online' />
|
|
52
|
-
* @example
|
|
53
|
-
* <caption>X-large icon with image</caption>
|
|
54
|
-
* <UserIcon size='x-large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
|
|
55
|
-
*/
|
|
56
|
-
export declare const UserIcon: (props: UserIconProps) => JSX.Element;
|
|
57
|
-
export default UserIcon;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/user-icon.css';
|
|
4
|
-
export declare type UserIconGroupProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Max number of icons unstacked.
|
|
7
|
-
* @default 5
|
|
8
|
-
*/
|
|
9
|
-
maxIcons?: number;
|
|
10
|
-
/**
|
|
11
|
-
* If true, group will be stacked to take less space.
|
|
12
|
-
* @default true
|
|
13
|
-
*/
|
|
14
|
-
stacked?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* If true, group will be animated on hover.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
animated?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Size of user and count icons.
|
|
22
|
-
* @default 'small'
|
|
23
|
-
*/
|
|
24
|
-
iconSize?: 'small' | 'medium' | 'large' | 'x-large';
|
|
25
|
-
/**
|
|
26
|
-
* User Icons in the group.
|
|
27
|
-
*/
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* User Count Icon props.
|
|
31
|
-
*/
|
|
32
|
-
countIconProps?: React.ComponentPropsWithRef<'div'>;
|
|
33
|
-
} & Omit<CommonProps, 'title'>;
|
|
34
|
-
/**
|
|
35
|
-
* Group User Icons together.
|
|
36
|
-
*
|
|
37
|
-
* User Icons stacking is based on `maxIcons` count. If you provide 8 User Icons and keep default 5 `maxIcons` count,
|
|
38
|
-
* this component will show 5 User Icons and User Count Icon with "3" in it.
|
|
39
|
-
*
|
|
40
|
-
* You can add custom User Count Icon behavior by using `countIconProps`.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* <UserIconGroup iconSize='medium'>
|
|
44
|
-
* <UserIcon
|
|
45
|
-
* abbreviation="TR"
|
|
46
|
-
* backgroundColor={getUserColor("Terry Rivers")}
|
|
47
|
-
* title="Terry Rivers"
|
|
48
|
-
* />
|
|
49
|
-
* <UserIcon
|
|
50
|
-
* abbreviation="RM"
|
|
51
|
-
* backgroundColor={getUserColor("Robin Mercer")}
|
|
52
|
-
* title="Robin Mercer"
|
|
53
|
-
* />
|
|
54
|
-
* <UserIcon
|
|
55
|
-
* abbreviation="JM"
|
|
56
|
-
* backgroundColor={getUserColor("Jean Mullins")}
|
|
57
|
-
* title="Jean Mullins"
|
|
58
|
-
* />
|
|
59
|
-
* </UserIconGroup>
|
|
60
|
-
*/
|
|
61
|
-
export declare const UserIconGroup: (props: UserIconGroupProps) => JSX.Element;
|
|
62
|
-
export default UserIconGroup;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/wizard.css';
|
|
3
|
-
export declare type WizardLocalization = {
|
|
4
|
-
stepsCountLabel: (currentStep: number, totalSteps: number) => string;
|
|
5
|
-
};
|
|
6
|
-
export declare type WizardType = 'default' | 'long' | 'workflow';
|
|
7
|
-
export declare type StepProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The title/label of the step.
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* A tooltip giving detailed description to this step.
|
|
14
|
-
*/
|
|
15
|
-
description?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type WizardProps = {
|
|
18
|
-
/**
|
|
19
|
-
* Current step index, 0 - based.
|
|
20
|
-
*/
|
|
21
|
-
currentStep?: number;
|
|
22
|
-
/**
|
|
23
|
-
* An array of step objects.
|
|
24
|
-
*/
|
|
25
|
-
steps: StepProperties[];
|
|
26
|
-
/**
|
|
27
|
-
* The type of Wizard to display.
|
|
28
|
-
* @default 'default'
|
|
29
|
-
*/
|
|
30
|
-
type?: WizardType;
|
|
31
|
-
/**
|
|
32
|
-
* Option to provide localized strings.
|
|
33
|
-
*/
|
|
34
|
-
localization?: WizardLocalization;
|
|
35
|
-
/**
|
|
36
|
-
* Click handler on completed step.
|
|
37
|
-
*/
|
|
38
|
-
onStepClick?: (clickedIndex: number) => void;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
42
|
-
* It may also be used for navigation.
|
|
43
|
-
*
|
|
44
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* <Wizard
|
|
48
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
49
|
-
* currentStep={0}
|
|
50
|
-
* type='long'
|
|
51
|
-
* />
|
|
52
|
-
*/
|
|
53
|
-
export declare const Wizard: React.ForwardRefExoticComponent<WizardProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
export default Wizard;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/user-icon.css';
|
|
4
|
-
export declare type UserIconStatus = 'online' | 'busy' | 'away' | 'offline';
|
|
5
|
-
export declare type StatusTitles = {
|
|
6
|
-
[key in Exclude<UserIconStatus, ''>]: string;
|
|
7
|
-
};
|
|
8
|
-
export declare type UserIconProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Size of a user icon.
|
|
11
|
-
* @default 'small'
|
|
12
|
-
*/
|
|
13
|
-
size?: 'small' | 'medium' | 'large' | 'x-large';
|
|
14
|
-
/**
|
|
15
|
-
* Status/Availability of a user.
|
|
16
|
-
*/
|
|
17
|
-
status?: UserIconStatus;
|
|
18
|
-
/**
|
|
19
|
-
* Text which will appear when hovering over the icon.
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Abbreviation to be displayed.
|
|
24
|
-
*/
|
|
25
|
-
abbreviation?: string;
|
|
26
|
-
/**
|
|
27
|
-
* User image to be displayed. MUST be an <img> element!
|
|
28
|
-
*/
|
|
29
|
-
image?: JSX.Element;
|
|
30
|
-
/**
|
|
31
|
-
* Color of the icon. You can use `getUserColor` function to generate color from user name or email.
|
|
32
|
-
* @default 'white'
|
|
33
|
-
*/
|
|
34
|
-
backgroundColor?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Translated status messages shown on hover.
|
|
37
|
-
*/
|
|
38
|
-
translatedStatusTitles?: StatusTitles;
|
|
39
|
-
} & Omit<CommonProps, 'title'>;
|
|
40
|
-
export declare const defaultStatusTitles: StatusTitles;
|
|
41
|
-
/**
|
|
42
|
-
* Basic user icon component
|
|
43
|
-
* @example
|
|
44
|
-
* <caption>Small icon with abbreviation</caption>
|
|
45
|
-
* <UserIcon size='small' title='Terry Rivers' abbreviation='TR' backgroundColor='green'/>
|
|
46
|
-
* @example
|
|
47
|
-
* <caption>Medium icon with image</caption>
|
|
48
|
-
* <UserIcon size='medium' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
|
|
49
|
-
* @example
|
|
50
|
-
* <caption>Large icon with status</caption>
|
|
51
|
-
* <UserIcon size='large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' status='online' />
|
|
52
|
-
* @example
|
|
53
|
-
* <caption>X-large icon with image</caption>
|
|
54
|
-
* <UserIcon size='x-large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
|
|
55
|
-
*/
|
|
56
|
-
export declare const UserIcon: (props: UserIconProps) => JSX.Element;
|
|
57
|
-
export default UserIcon;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/user-icon.css';
|
|
4
|
-
export declare type UserIconGroupProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Max number of icons unstacked.
|
|
7
|
-
* @default 5
|
|
8
|
-
*/
|
|
9
|
-
maxIcons?: number;
|
|
10
|
-
/**
|
|
11
|
-
* If true, group will be stacked to take less space.
|
|
12
|
-
* @default true
|
|
13
|
-
*/
|
|
14
|
-
stacked?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* If true, group will be animated on hover.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
animated?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Size of user and count icons.
|
|
22
|
-
* @default 'small'
|
|
23
|
-
*/
|
|
24
|
-
iconSize?: 'small' | 'medium' | 'large' | 'x-large';
|
|
25
|
-
/**
|
|
26
|
-
* User Icons in the group.
|
|
27
|
-
*/
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* User Count Icon props.
|
|
31
|
-
*/
|
|
32
|
-
countIconProps?: React.ComponentPropsWithRef<'div'>;
|
|
33
|
-
} & Omit<CommonProps, 'title'>;
|
|
34
|
-
/**
|
|
35
|
-
* Group User Icons together.
|
|
36
|
-
*
|
|
37
|
-
* User Icons stacking is based on `maxIcons` count. If you provide 8 User Icons and keep default 5 `maxIcons` count,
|
|
38
|
-
* this component will show 5 User Icons and User Count Icon with "3" in it.
|
|
39
|
-
*
|
|
40
|
-
* You can add custom User Count Icon behavior by using `countIconProps`.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* <UserIconGroup iconSize='medium'>
|
|
44
|
-
* <UserIcon
|
|
45
|
-
* abbreviation="TR"
|
|
46
|
-
* backgroundColor={getUserColor("Terry Rivers")}
|
|
47
|
-
* title="Terry Rivers"
|
|
48
|
-
* />
|
|
49
|
-
* <UserIcon
|
|
50
|
-
* abbreviation="RM"
|
|
51
|
-
* backgroundColor={getUserColor("Robin Mercer")}
|
|
52
|
-
* title="Robin Mercer"
|
|
53
|
-
* />
|
|
54
|
-
* <UserIcon
|
|
55
|
-
* abbreviation="JM"
|
|
56
|
-
* backgroundColor={getUserColor("Jean Mullins")}
|
|
57
|
-
* title="Jean Mullins"
|
|
58
|
-
* />
|
|
59
|
-
* </UserIconGroup>
|
|
60
|
-
*/
|
|
61
|
-
export declare const UserIconGroup: (props: UserIconGroupProps) => JSX.Element;
|
|
62
|
-
export default UserIconGroup;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/wizard.css';
|
|
3
|
-
export declare type WizardLocalization = {
|
|
4
|
-
stepsCountLabel: (currentStep: number, totalSteps: number) => string;
|
|
5
|
-
};
|
|
6
|
-
export declare type WizardType = 'default' | 'long' | 'workflow';
|
|
7
|
-
export declare type StepProperties = {
|
|
8
|
-
/**
|
|
9
|
-
* The title/label of the step.
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* A tooltip giving detailed description to this step.
|
|
14
|
-
*/
|
|
15
|
-
description?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type WizardProps = {
|
|
18
|
-
/**
|
|
19
|
-
* Current step index, 0 - based.
|
|
20
|
-
*/
|
|
21
|
-
currentStep?: number;
|
|
22
|
-
/**
|
|
23
|
-
* An array of step objects.
|
|
24
|
-
*/
|
|
25
|
-
steps: StepProperties[];
|
|
26
|
-
/**
|
|
27
|
-
* The type of Wizard to display.
|
|
28
|
-
* @default 'default'
|
|
29
|
-
*/
|
|
30
|
-
type?: WizardType;
|
|
31
|
-
/**
|
|
32
|
-
* Option to provide localized strings.
|
|
33
|
-
*/
|
|
34
|
-
localization?: WizardLocalization;
|
|
35
|
-
/**
|
|
36
|
-
* Click handler on completed step.
|
|
37
|
-
*/
|
|
38
|
-
onStepClick?: (clickedIndex: number) => void;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
42
|
-
* It may also be used for navigation.
|
|
43
|
-
*
|
|
44
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* <Wizard
|
|
48
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
49
|
-
* currentStep={0}
|
|
50
|
-
* type='long'
|
|
51
|
-
* />
|
|
52
|
-
*/
|
|
53
|
-
export declare const Wizard: React.ForwardRefExoticComponent<WizardProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
export default Wizard;
|