@astral/ui 0.35.0 → 0.36.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Theme } from '../theme';
|
|
3
|
-
declare type
|
|
3
|
+
export declare type ThemeProviderProps = {
|
|
4
4
|
theme: Theme;
|
|
5
|
+
children: ReactNode;
|
|
5
6
|
};
|
|
6
|
-
export declare const ThemeProvider: FC<
|
|
7
|
-
export {};
|
|
7
|
+
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
@@ -16,8 +16,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
16
16
|
var material_1 = require("@mui/material");
|
|
17
17
|
var react_1 = require("@emotion/react");
|
|
18
18
|
var GlobalStyles_1 = require("../GlobalStyles");
|
|
19
|
-
var ThemeProvider = function (
|
|
20
|
-
var theme =
|
|
19
|
+
var ThemeProvider = function (props) {
|
|
20
|
+
var theme = props.theme, children = props.children;
|
|
21
21
|
return ((0, jsx_runtime_1.jsx)(material_1.ThemeProvider, __assign({ theme: theme }, { children: (0, jsx_runtime_1.jsxs)(react_1.ThemeProvider, __assign({ theme: theme }, { children: [(0, jsx_runtime_1.jsx)(GlobalStyles_1.GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
|
|
22
22
|
};
|
|
23
23
|
exports.ThemeProvider = ThemeProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Theme } from '../theme';
|
|
3
|
-
declare type
|
|
3
|
+
export declare type ThemeProviderProps = {
|
|
4
4
|
theme: Theme;
|
|
5
|
+
children: ReactNode;
|
|
5
6
|
};
|
|
6
|
-
export declare const ThemeProvider: FC<
|
|
7
|
-
export {};
|
|
7
|
+
export declare const ThemeProvider: FC<ThemeProviderProps>;
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import { ThemeProvider as MuiThemeProvider } from '@mui/material';
|
|
14
14
|
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
|
|
15
15
|
import { GlobalStyles } from '../GlobalStyles';
|
|
16
|
-
export var ThemeProvider = function (
|
|
17
|
-
var theme =
|
|
16
|
+
export var ThemeProvider = function (props) {
|
|
17
|
+
var theme = props.theme, children = props.children;
|
|
18
18
|
return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@astral/icons": "^0.
|
|
11
|
+
"@astral/icons": "^0.36.0",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.9.0",
|
|
14
14
|
"@emotion/server": "11.4.0",
|