decentraland-ui2 0.8.3 → 0.8.4-12640248412.commit-39a4584
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/provider.d.ts +4 -2
- package/dist/theme/provider.js +2 -3
- package/dist/theme/provider.js.map +1 -1
- package/dist/theme/types.d.ts +11 -2
- package/package.json +2 -2
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,
|
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,EACL,KAAK,IAAI,UAAU,EACnB,IAAI,IAAI,SAAS,EACjB,aAAa,IAAI,gBAAgB,GAClC,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAA;AAC9D,cAAc,sBAAsB,CAAA;AACpC,OAAO,KAAK,eAAe,MAAM,iCAAiC,CAAA;AAClE,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,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"}
|
package/dist/theme/provider.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
import React, { ReactNode } from "react";
|
2
2
|
import type { Theme } from "./types";
|
3
|
-
|
3
|
+
type ThemeProviderProps = {
|
4
4
|
theme: Theme;
|
5
5
|
children: ReactNode;
|
6
6
|
};
|
7
|
-
|
7
|
+
declare const ThemeProvider: React.MemoExoticComponent<(props: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
8
|
+
export type { ThemeProviderProps };
|
9
|
+
export { ThemeProvider };
|
package/dist/theme/provider.js
CHANGED
@@ -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
|
-
|
6
|
-
|
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,
|
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"}
|
package/dist/theme/types.d.ts
CHANGED
@@ -1,2 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
|
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
|
+
"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": "
|
93
|
+
"commit": "39a4584fd827a93c84bced76dbc5d9e2e9118447"
|
94
94
|
}
|