decentraland-ui2 0.8.3-12638246167.commit-2df5d90 → 0.8.4-12640248412.commit-39a4584

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import emotionCache from "@emotion/cache";
2
2
  import * as emotionReact from "@emotion/react";
3
3
  import emotionStyled from "@emotion/styled";
4
4
  import * as muiIcons from "@mui/icons-material";
5
- export { light as lightTheme, dark as darkTheme } from "./theme";
5
+ export { light as lightTheme, dark as darkTheme, ThemeProvider as DclThemeProvider, } from "./theme";
6
6
  export * as dclColors from "./theme/colors";
7
7
  export * from "@mui/material";
8
8
  export { emotionReact, emotionStyled, emotionCache, muiIcons };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import * as emotionReact from "@emotion/react";
3
3
  import emotionStyled from "@emotion/styled";
4
4
  import * as muiIcons from "@mui/icons-material";
5
5
  // Export Themes
6
- export { light as lightTheme, dark as darkTheme } from "./theme";
6
+ export { light as lightTheme, dark as darkTheme, ThemeProvider as DclThemeProvider, } from "./theme";
7
7
  export * as dclColors from "./theme/colors";
8
8
  export * from "@mui/material";
9
9
  export { emotionReact, emotionStyled, emotionCache, muiIcons };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C,gBAAgB;AAChB,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAA;AAC9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CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AAErC,OAAO,KAAK,eAAe,MAAM,eAAe,CAAA"}
@@ -1,7 +1,9 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import type { Theme } from "./types";
3
- export type ThemeProviderProps = {
3
+ type ThemeProviderProps = {
4
4
  theme: Theme;
5
5
  children: ReactNode;
6
6
  };
7
- export declare const ThemeProvider: React.MemoExoticComponent<(props: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element>;
7
+ declare const ThemeProvider: React.MemoExoticComponent<(props: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export type { ThemeProviderProps };
9
+ export { ThemeProvider };
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Experimental_CssVarsProvider as CssVarsProvider } from "@mui/material/styles";
4
4
  import { CssBaseline } from "@mui/material";
5
- export const ThemeProvider = React.memo((props) => (
6
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
- _jsxs(CssVarsProvider, { theme: props.theme, children: [_jsx(CssBaseline, {}), props.children] })));
5
+ const ThemeProvider = React.memo((props) => (_jsxs(CssVarsProvider, { theme: props.theme, children: [_jsx(CssBaseline, {}), props.children] })));
6
+ export { ThemeProvider };
8
7
  //# sourceMappingURL=provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/theme/provider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,4BAA4B,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ3C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAyB,EAAE,EAAE,CAAC;AACrE,8DAA8D;AAC9D,MAAC,eAAe,IAAC,KAAK,EAAE,KAAK,CAAC,KAAY,aACxC,KAAC,WAAW,KAAG,EACd,KAAK,CAAC,QAAQ,IACC,CACnB,CAAC,CAAA"}
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/theme/provider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,4BAA4B,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ3C,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,KAAyB,EAAE,EAAE,CAAC,CAC9D,MAAC,eAAe,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,aACjC,KAAC,WAAW,KAAG,EACd,KAAK,CAAC,QAAQ,IACC,CACnB,CAAC,CAAA;AAGF,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,2 +1,11 @@
1
- import { CssVarsTheme, ThemeOptions } from "@mui/material";
2
- export type Theme = ThemeOptions & Partial<CssVarsTheme>;
1
+ import { SupportedColorScheme } from "@mui/material";
2
+ type Theme = {
3
+ cssVarPrefix?: string;
4
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
5
+ } | {
6
+ $$material: {
7
+ cssVarPrefix?: string;
8
+ colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
9
+ };
10
+ } | undefined;
11
+ export type { Theme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentraland-ui2",
3
- "version": "0.8.3-12638246167.commit-2df5d90",
3
+ "version": "0.8.4-12640248412.commit-39a4584",
4
4
  "description": "Decentraland's UI components and styles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -90,5 +90,5 @@
90
90
  "files": [
91
91
  "dist"
92
92
  ],
93
- "commit": "2df5d905d284bdcd973dd23cea0efcd6dac3780a"
93
+ "commit": "39a4584fd827a93c84bced76dbc5d9e2e9118447"
94
94
  }