@itwin/itwinui-react 2.4.0-dev.1 → 2.4.0-dev.2
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/cjs/core/ThemeProvider/ThemeProvider.d.ts +23 -3
- package/cjs/core/ThemeProvider/ThemeProvider.js +21 -5
- package/cjs/core/ThemeProvider/index.d.ts +2 -2
- package/cjs/core/ThemeProvider/index.js +2 -1
- package/cjs/core/index.d.ts +2 -2
- package/cjs/core/index.js +3 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +23 -3
- package/esm/core/ThemeProvider/ThemeProvider.js +20 -4
- package/esm/core/ThemeProvider/index.d.ts +2 -2
- package/esm/core/ThemeProvider/index.js +1 -1
- package/esm/core/index.d.ts +2 -2
- package/esm/core/index.js +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import type { PolymorphicComponentProps, PolymorphicForwardRefComponent, ThemeOp
|
|
|
3
3
|
import '@itwin/itwinui-css/css/global.css';
|
|
4
4
|
import '@itwin/itwinui-variables/index.css';
|
|
5
5
|
export declare type ThemeProviderProps<T extends React.ElementType = 'div'> = PolymorphicComponentProps<T, ThemeProviderOwnProps>;
|
|
6
|
-
declare type
|
|
6
|
+
declare type RootWithThemeProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Theme to be applied. Can be 'light' or 'dark' or 'os'.
|
|
9
9
|
*
|
|
@@ -27,8 +27,8 @@ declare type RootProps = {
|
|
|
27
27
|
applyBackground?: boolean;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
declare type ThemeProviderOwnProps = Pick<
|
|
31
|
-
themeOptions?:
|
|
30
|
+
declare type ThemeProviderOwnProps = Pick<RootWithThemeProps, 'theme'> & ({
|
|
31
|
+
themeOptions?: RootWithThemeProps['themeOptions'];
|
|
32
32
|
children: Required<React.ReactNode>;
|
|
33
33
|
} | {
|
|
34
34
|
themeOptions?: ThemeOptions;
|
|
@@ -67,3 +67,23 @@ export declare const ThemeContext: React.Context<{
|
|
|
67
67
|
themeOptions?: ThemeOptions | undefined;
|
|
68
68
|
rootRef: React.RefObject<HTMLElement>;
|
|
69
69
|
} | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Root component that should wrap all iTwinUI components, preventing styles from leaking out of the tree.
|
|
72
|
+
*
|
|
73
|
+
* This is only needed when it's not possible to use ThemeProvider. For example, when building a package
|
|
74
|
+
* using iTwinUI v2, the package should have no opinion on the app theme, but the components in the package
|
|
75
|
+
* should probably still be scoped, to prevent potential conflicts with the rest of the page where it's used.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* <Root>
|
|
79
|
+
* // UI built using iTwinUI v2
|
|
80
|
+
* </Root>
|
|
81
|
+
*/
|
|
82
|
+
export declare const Root: PolymorphicForwardRefComponent<"div", RootProps>;
|
|
83
|
+
export declare type RootProps = {
|
|
84
|
+
/**
|
|
85
|
+
* Whether or not the root should have the recommended `background-color`.
|
|
86
|
+
* This is usually only relevant for the topmost root on the page.
|
|
87
|
+
*/
|
|
88
|
+
withBackground?: boolean;
|
|
89
|
+
} & React.ComponentProps<'div'>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ThemeContext = exports.ThemeProvider = void 0;
|
|
6
|
+
exports.Root = exports.ThemeContext = exports.ThemeProvider = void 0;
|
|
7
7
|
/*---------------------------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
9
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -51,14 +51,14 @@ exports.ThemeProvider = react_1.default.forwardRef((props, ref) => {
|
|
|
51
51
|
return (react_1.default.createElement(ThemeLogicWrapper, { theme: theme !== null && theme !== void 0 ? theme : parentContext === null || parentContext === void 0 ? void 0 : parentContext.theme, themeOptions: themeOptions !== null && themeOptions !== void 0 ? themeOptions : parentContext === null || parentContext === void 0 ? void 0 : parentContext.themeOptions }));
|
|
52
52
|
}
|
|
53
53
|
// now that we know there are children, we can render the root and provide the context value
|
|
54
|
-
return (react_1.default.createElement(
|
|
54
|
+
return (react_1.default.createElement(RootWithTheme, { theme: theme, themeOptions: themeOptions, ref: mergedRefs, ...rest },
|
|
55
55
|
react_1.default.createElement(exports.ThemeContext.Provider, { value: contextValue }, children)));
|
|
56
56
|
});
|
|
57
57
|
exports.default = exports.ThemeProvider;
|
|
58
58
|
exports.ThemeContext = react_1.default.createContext(undefined);
|
|
59
|
-
const
|
|
59
|
+
const RootWithTheme = react_1.default.forwardRef((props, forwardedRef) => {
|
|
60
60
|
var _a, _b, _c;
|
|
61
|
-
const { theme, children, themeOptions,
|
|
61
|
+
const { theme, children, themeOptions, ...rest } = props;
|
|
62
62
|
const ref = react_1.default.useRef(null);
|
|
63
63
|
const mergedRefs = (0, utils_1.useMergedRefs)(ref, forwardedRef);
|
|
64
64
|
const prefersDark = (0, utils_1.useMediaQuery)('(prefers-color-scheme: dark)');
|
|
@@ -67,9 +67,25 @@ const Root = react_1.default.forwardRef((props, forwardedRef) => {
|
|
|
67
67
|
const shouldApplyHC = (_a = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast) !== null && _a !== void 0 ? _a : prefersHighContrast;
|
|
68
68
|
const isThemeAlreadySet = (0, utils_1.useIsThemeAlreadySet)((_b = ref.current) === null || _b === void 0 ? void 0 : _b.ownerDocument);
|
|
69
69
|
const shouldApplyBackground = (_c = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.applyBackground) !== null && _c !== void 0 ? _c : !isThemeAlreadySet.current;
|
|
70
|
-
return (react_1.default.createElement(
|
|
70
|
+
return (react_1.default.createElement(exports.Root, { withBackground: shouldApplyBackground, "data-iui-theme": shouldApplyDark ? 'dark' : 'light', "data-iui-contrast": shouldApplyHC ? 'high' : 'default', ref: mergedRefs, ...rest }, children));
|
|
71
71
|
});
|
|
72
72
|
const ThemeLogicWrapper = ({ theme, themeOptions }) => {
|
|
73
73
|
(0, utils_1.useTheme)(theme, themeOptions);
|
|
74
74
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Root component that should wrap all iTwinUI components, preventing styles from leaking out of the tree.
|
|
78
|
+
*
|
|
79
|
+
* This is only needed when it's not possible to use ThemeProvider. For example, when building a package
|
|
80
|
+
* using iTwinUI v2, the package should have no opinion on the app theme, but the components in the package
|
|
81
|
+
* should probably still be scoped, to prevent potential conflicts with the rest of the page where it's used.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* <Root>
|
|
85
|
+
* // UI built using iTwinUI v2
|
|
86
|
+
* </Root>
|
|
87
|
+
*/
|
|
88
|
+
exports.Root = react_1.default.forwardRef((props, ref) => {
|
|
89
|
+
const { as: Element = 'div', className, withBackground, ...rest } = props;
|
|
90
|
+
return (react_1.default.createElement(Element, { className: (0, classnames_1.default)('iui-root', { 'iui-root-background': withBackground }, className), ref: ref, ...rest }));
|
|
91
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ThemeProvider } from './ThemeProvider';
|
|
2
|
-
export type { ThemeProviderProps } from './ThemeProvider';
|
|
1
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
2
|
+
export type { ThemeProviderProps, RootProps } from './ThemeProvider';
|
|
3
3
|
declare const _default: "./ThemeProvider";
|
|
4
4
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThemeProvider = void 0;
|
|
3
|
+
exports.Root = exports.ThemeProvider = 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 ThemeProvider_1 = require("./ThemeProvider");
|
|
9
9
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
|
|
10
|
+
Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return ThemeProvider_1.Root; } });
|
|
10
11
|
exports.default = './ThemeProvider';
|
package/cjs/core/index.d.ts
CHANGED
|
@@ -92,8 +92,8 @@ export { TimePicker } from './TimePicker';
|
|
|
92
92
|
export type { MeridiemType, TimePickerProps } from './TimePicker';
|
|
93
93
|
export { default as toaster } from './Toast';
|
|
94
94
|
export type { ToastOptions } from './Toast';
|
|
95
|
-
export { ThemeProvider } from './ThemeProvider';
|
|
96
|
-
export type { ThemeProviderProps } from './ThemeProvider';
|
|
95
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
96
|
+
export type { ThemeProviderProps, RootProps } from './ThemeProvider';
|
|
97
97
|
export { ToggleSwitch } from './ToggleSwitch';
|
|
98
98
|
export type { ToggleSwitchProps } from './ToggleSwitch';
|
|
99
99
|
export { Tooltip } from './Tooltip';
|
package/cjs/core/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LabeledInput = exports.Label = exports.Input = exports.InformationPanelContent = exports.InformationPanelBody = exports.InformationPanelHeader = exports.InformationPanelWrapper = exports.InformationPanel = exports.HorizontalTabs = exports.Tab = exports.Tabs = exports.VerticalTabs = exports.HeaderLogo = exports.HeaderButton = exports.HeaderBreadcrumbs = exports.Header = exports.defaultFooterElements = exports.Footer = 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;
|
|
7
|
-
exports.
|
|
8
|
-
exports.Icon = exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Title = exports.Subheading = exports.Small = exports.Leading = exports.Headline = void 0;
|
|
7
|
+
exports.Anchor = exports.TreeNodeExpander = exports.TreeNode = exports.Tree = exports.Tooltip = exports.ToggleSwitch = exports.Root = exports.ThemeProvider = exports.toaster = 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 = void 0;
|
|
8
|
+
exports.Icon = exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Title = exports.Subheading = exports.Small = exports.Leading = exports.Headline = exports.Body = void 0;
|
|
9
9
|
/*---------------------------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
11
11
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -151,6 +151,7 @@ var Toast_1 = require("./Toast");
|
|
|
151
151
|
Object.defineProperty(exports, "toaster", { enumerable: true, get: function () { return __importDefault(Toast_1).default; } });
|
|
152
152
|
var ThemeProvider_1 = require("./ThemeProvider");
|
|
153
153
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
|
|
154
|
+
Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return ThemeProvider_1.Root; } });
|
|
154
155
|
var ToggleSwitch_1 = require("./ToggleSwitch");
|
|
155
156
|
Object.defineProperty(exports, "ToggleSwitch", { enumerable: true, get: function () { return ToggleSwitch_1.ToggleSwitch; } });
|
|
156
157
|
var Tooltip_1 = require("./Tooltip");
|
|
@@ -3,7 +3,7 @@ import type { PolymorphicComponentProps, PolymorphicForwardRefComponent, ThemeOp
|
|
|
3
3
|
import '@itwin/itwinui-css/css/global.css';
|
|
4
4
|
import '@itwin/itwinui-variables/index.css';
|
|
5
5
|
export declare type ThemeProviderProps<T extends React.ElementType = 'div'> = PolymorphicComponentProps<T, ThemeProviderOwnProps>;
|
|
6
|
-
declare type
|
|
6
|
+
declare type RootWithThemeProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Theme to be applied. Can be 'light' or 'dark' or 'os'.
|
|
9
9
|
*
|
|
@@ -27,8 +27,8 @@ declare type RootProps = {
|
|
|
27
27
|
applyBackground?: boolean;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
declare type ThemeProviderOwnProps = Pick<
|
|
31
|
-
themeOptions?:
|
|
30
|
+
declare type ThemeProviderOwnProps = Pick<RootWithThemeProps, 'theme'> & ({
|
|
31
|
+
themeOptions?: RootWithThemeProps['themeOptions'];
|
|
32
32
|
children: Required<React.ReactNode>;
|
|
33
33
|
} | {
|
|
34
34
|
themeOptions?: ThemeOptions;
|
|
@@ -67,3 +67,23 @@ export declare const ThemeContext: React.Context<{
|
|
|
67
67
|
themeOptions?: ThemeOptions | undefined;
|
|
68
68
|
rootRef: React.RefObject<HTMLElement>;
|
|
69
69
|
} | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Root component that should wrap all iTwinUI components, preventing styles from leaking out of the tree.
|
|
72
|
+
*
|
|
73
|
+
* This is only needed when it's not possible to use ThemeProvider. For example, when building a package
|
|
74
|
+
* using iTwinUI v2, the package should have no opinion on the app theme, but the components in the package
|
|
75
|
+
* should probably still be scoped, to prevent potential conflicts with the rest of the page where it's used.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* <Root>
|
|
79
|
+
* // UI built using iTwinUI v2
|
|
80
|
+
* </Root>
|
|
81
|
+
*/
|
|
82
|
+
export declare const Root: PolymorphicForwardRefComponent<"div", RootProps>;
|
|
83
|
+
export declare type RootProps = {
|
|
84
|
+
/**
|
|
85
|
+
* Whether or not the root should have the recommended `background-color`.
|
|
86
|
+
* This is usually only relevant for the topmost root on the page.
|
|
87
|
+
*/
|
|
88
|
+
withBackground?: boolean;
|
|
89
|
+
} & React.ComponentProps<'div'>;
|
|
@@ -45,14 +45,14 @@ export const ThemeProvider = React.forwardRef((props, ref) => {
|
|
|
45
45
|
return (React.createElement(ThemeLogicWrapper, { theme: theme !== null && theme !== void 0 ? theme : parentContext === null || parentContext === void 0 ? void 0 : parentContext.theme, themeOptions: themeOptions !== null && themeOptions !== void 0 ? themeOptions : parentContext === null || parentContext === void 0 ? void 0 : parentContext.themeOptions }));
|
|
46
46
|
}
|
|
47
47
|
// now that we know there are children, we can render the root and provide the context value
|
|
48
|
-
return (React.createElement(
|
|
48
|
+
return (React.createElement(RootWithTheme, { theme: theme, themeOptions: themeOptions, ref: mergedRefs, ...rest },
|
|
49
49
|
React.createElement(ThemeContext.Provider, { value: contextValue }, children)));
|
|
50
50
|
});
|
|
51
51
|
export default ThemeProvider;
|
|
52
52
|
export const ThemeContext = React.createContext(undefined);
|
|
53
|
-
const
|
|
53
|
+
const RootWithTheme = React.forwardRef((props, forwardedRef) => {
|
|
54
54
|
var _a, _b, _c;
|
|
55
|
-
const { theme, children, themeOptions,
|
|
55
|
+
const { theme, children, themeOptions, ...rest } = props;
|
|
56
56
|
const ref = React.useRef(null);
|
|
57
57
|
const mergedRefs = useMergedRefs(ref, forwardedRef);
|
|
58
58
|
const prefersDark = useMediaQuery('(prefers-color-scheme: dark)');
|
|
@@ -61,9 +61,25 @@ const Root = React.forwardRef((props, forwardedRef) => {
|
|
|
61
61
|
const shouldApplyHC = (_a = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast) !== null && _a !== void 0 ? _a : prefersHighContrast;
|
|
62
62
|
const isThemeAlreadySet = useIsThemeAlreadySet((_b = ref.current) === null || _b === void 0 ? void 0 : _b.ownerDocument);
|
|
63
63
|
const shouldApplyBackground = (_c = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.applyBackground) !== null && _c !== void 0 ? _c : !isThemeAlreadySet.current;
|
|
64
|
-
return (React.createElement(
|
|
64
|
+
return (React.createElement(Root, { withBackground: shouldApplyBackground, "data-iui-theme": shouldApplyDark ? 'dark' : 'light', "data-iui-contrast": shouldApplyHC ? 'high' : 'default', ref: mergedRefs, ...rest }, children));
|
|
65
65
|
});
|
|
66
66
|
const ThemeLogicWrapper = ({ theme, themeOptions }) => {
|
|
67
67
|
useTheme(theme, themeOptions);
|
|
68
68
|
return React.createElement(React.Fragment, null);
|
|
69
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Root component that should wrap all iTwinUI components, preventing styles from leaking out of the tree.
|
|
72
|
+
*
|
|
73
|
+
* This is only needed when it's not possible to use ThemeProvider. For example, when building a package
|
|
74
|
+
* using iTwinUI v2, the package should have no opinion on the app theme, but the components in the package
|
|
75
|
+
* should probably still be scoped, to prevent potential conflicts with the rest of the page where it's used.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* <Root>
|
|
79
|
+
* // UI built using iTwinUI v2
|
|
80
|
+
* </Root>
|
|
81
|
+
*/
|
|
82
|
+
export const Root = React.forwardRef((props, ref) => {
|
|
83
|
+
const { as: Element = 'div', className, withBackground, ...rest } = props;
|
|
84
|
+
return (React.createElement(Element, { className: cx('iui-root', { 'iui-root-background': withBackground }, className), ref: ref, ...rest }));
|
|
85
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ThemeProvider } from './ThemeProvider';
|
|
2
|
-
export type { ThemeProviderProps } from './ThemeProvider';
|
|
1
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
2
|
+
export type { ThemeProviderProps, RootProps } from './ThemeProvider';
|
|
3
3
|
declare const _default: "./ThemeProvider";
|
|
4
4
|
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 { ThemeProvider } from './ThemeProvider';
|
|
5
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
6
6
|
export default './ThemeProvider';
|
package/esm/core/index.d.ts
CHANGED
|
@@ -92,8 +92,8 @@ export { TimePicker } from './TimePicker';
|
|
|
92
92
|
export type { MeridiemType, TimePickerProps } from './TimePicker';
|
|
93
93
|
export { default as toaster } from './Toast';
|
|
94
94
|
export type { ToastOptions } from './Toast';
|
|
95
|
-
export { ThemeProvider } from './ThemeProvider';
|
|
96
|
-
export type { ThemeProviderProps } from './ThemeProvider';
|
|
95
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
96
|
+
export type { ThemeProviderProps, RootProps } from './ThemeProvider';
|
|
97
97
|
export { ToggleSwitch } from './ToggleSwitch';
|
|
98
98
|
export type { ToggleSwitchProps } from './ToggleSwitch';
|
|
99
99
|
export { Tooltip } from './Tooltip';
|
package/esm/core/index.js
CHANGED
|
@@ -49,7 +49,7 @@ export { Textarea } from './Textarea';
|
|
|
49
49
|
export { Tile } from './Tile';
|
|
50
50
|
export { TimePicker } from './TimePicker';
|
|
51
51
|
export { default as toaster } from './Toast';
|
|
52
|
-
export { ThemeProvider } from './ThemeProvider';
|
|
52
|
+
export { ThemeProvider, Root } from './ThemeProvider';
|
|
53
53
|
export { ToggleSwitch } from './ToggleSwitch';
|
|
54
54
|
export { Tooltip } from './Tooltip';
|
|
55
55
|
export { Tree, TreeNode, TreeNodeExpander } from './Tree';
|