@astral/ui 0.3.1-beta.1 → 0.3.1-beta.5

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,23 +1,18 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.ThemeProvider = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var material_1 = require("@mui/material");
17
- var react_1 = require("@emotion/react");
18
- var GlobalStyles_1 = require("../GlobalStyles");
19
- var ThemeProvider = function (_a) {
20
- var theme = _a.theme, children = _a.children;
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
- };
23
- exports.ThemeProvider = ThemeProvider;
4
+ // import { FC } from 'react';
5
+ var styles_1 = require("@mui/material/styles");
6
+ Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return styles_1.ThemeProvider; } });
7
+ // import { CssBaseline } from '@mui/material';
8
+ // // import { GlobalStyles } from '../GlobalStyles';
9
+ // import { Theme } from '../theme';
10
+ // type Props = { theme: Theme };
11
+ // export const ThemeProvider: FC<Props> = ({ theme, children }) => {
12
+ // return (
13
+ // <MuiThemeProvider theme={theme}>
14
+ // <CssBaseline />
15
+ // {children}
16
+ // </MuiThemeProvider>
17
+ // );
18
+ // };
@@ -1,19 +1,14 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { ThemeProvider as MuiThemeProvider } from '@mui/material';
14
- import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
15
- import { GlobalStyles } from '../GlobalStyles';
16
- export var ThemeProvider = function (_a) {
17
- var theme = _a.theme, children = _a.children;
18
- return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
19
- };
1
+ // import { FC } from 'react';
2
+ export { ThemeProvider } from '@mui/material/styles';
3
+ // import { CssBaseline } from '@mui/material';
4
+ // // import { GlobalStyles } from '../GlobalStyles';
5
+ // import { Theme } from '../theme';
6
+ // type Props = { theme: Theme };
7
+ // export const ThemeProvider: FC<Props> = ({ theme, children }) => {
8
+ // return (
9
+ // <MuiThemeProvider theme={theme}>
10
+ // <CssBaseline />
11
+ // {children}
12
+ // </MuiThemeProvider>
13
+ // );
14
+ // };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.3.1-beta.1",
3
+ "version": "0.3.1-beta.5",
4
4
  "type": "module",
5
5
  "source": "./src/index.ts",
6
6
  "jest": {
@@ -1,7 +1 @@
1
- import { FC } from 'react';
2
- import { Theme } from '../theme';
3
- declare type Props = {
4
- theme: Theme;
5
- };
6
- export declare const ThemeProvider: FC<Props>;
7
- export {};
1
+ export { ThemeProvider } from '@mui/material/styles';
@@ -1 +1,2 @@
1
1
  export { default as createCache } from '@emotion/cache';
2
+ export type { EmotionCache } from '@emotion/cache';