@astral/ui 4.21.0 → 4.21.1

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,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,4 @@
1
- import styled from '@mui/material/styles/styled';
1
+ import { styled } from '@mui/material/styles';
2
2
  export const SkeletonWrapper = styled('div') `
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
3
- import MuiThemeProvider from '@mui/material/styles/ThemeProvider';
3
+ import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
4
4
  import { GlobalStyles } from '../GlobalStyles';
5
5
  export const ThemeProvider = (props) => {
6
6
  const { children, theme, withScopedStyles = false } = props;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="src/components/declaration/emotion" />
2
- import type { Theme as MuiTheme } from '@mui/material/styles/createTheme';
2
+ import type { Theme as MuiTheme } from '@mui/material/styles';
3
3
  import { type Typography } from '@mui/material/styles/createTypography';
4
4
  import { type CSSProperties } from 'react';
5
5
  import type { Elevation } from './elevation';
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
+ export declare const SkeletonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.SkeletonWrapper = void 0;
7
- const styled_1 = __importDefault(require("@mui/material/styles/styled"));
8
- exports.SkeletonWrapper = (0, styled_1.default)('div') `
4
+ const styles_1 = require("@mui/material/styles");
5
+ exports.SkeletonWrapper = (0, styles_1.styled)('div') `
9
6
  display: flex;
10
7
  flex-direction: column;
11
8
  gap: ${({ theme }) => theme.spacing(5)};
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.ThemeProvider = void 0;
7
4
  const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const react_1 = require("@emotion/react");
9
- const ThemeProvider_1 = __importDefault(require("@mui/material/styles/ThemeProvider"));
6
+ const styles_1 = require("@mui/material/styles");
10
7
  const GlobalStyles_1 = require("../GlobalStyles");
11
8
  const ThemeProvider = (props) => {
12
9
  const { children, theme, withScopedStyles = false } = props;
13
- return ((0, jsx_runtime_1.jsx)(ThemeProvider_1.default, { theme: theme, children: (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(GlobalStyles_1.GlobalStyles, { withScopedStyles: withScopedStyles, children: children }) }) }));
10
+ return ((0, jsx_runtime_1.jsx)(styles_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(GlobalStyles_1.GlobalStyles, { withScopedStyles: withScopedStyles, children: children }) }) }));
14
11
  };
15
12
  exports.ThemeProvider = ThemeProvider;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="src/components/declaration/emotion" />
2
- import type { Theme as MuiTheme } from '@mui/material/styles/createTheme';
2
+ import type { Theme as MuiTheme } from '@mui/material/styles';
3
3
  import { type Typography } from '@mui/material/styles/createTypography';
4
4
  import { type CSSProperties } from 'react';
5
5
  import type { Elevation } from './elevation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.21.0",
3
+ "version": "4.21.1",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {