@zydon/common-v2
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,4 +0,4 @@ | ||
import React, { PropsWithChildren } from 'react'; | ||
import { ThemeProviderProps } from './props'; | ||
import React, { PropsWithChildren } from "react"; | ||
import { ThemeProviderProps } from "./props"; | ||
declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderProps>>; | ||
export default ThemeProvider; |
@@ -16,3 +16,3 @@ "use strict"; | ||
const typography_1 = __importDefault(require("./typography")); | ||
const ThemeProvider = ({ children, color, direction = 'ltr', themeMode = 'light', }) => { | ||
const ThemeProvider = ({ children, color, direction = "ltr", themeMode = "light", }) => { | ||
const themeOptions = (0, react_1.useMemo)(() => ({ | ||
@@ -28,4 +28,4 @@ palette: (0, palette_1.buildPalette)(color), | ||
theme.components = (0, overrides_1.default)(theme); | ||
return ((0, jsx_runtime_1.jsx)(styles_1.StyledEngineProvider, { injectFirst: true, children: (0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(material_1.CssBaseline, {}), (0, jsx_runtime_1.jsx)(globalStyles_1.default, {}), children] }) })); | ||
return ((0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, { theme: theme, children: [(0, jsx_runtime_1.jsx)(material_1.CssBaseline, {}), (0, jsx_runtime_1.jsx)(globalStyles_1.default, {}), children] })); | ||
}; | ||
exports.default = ThemeProvider; |
{ | ||
"name": "@zydon/common-v2", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Common resources", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
804826
10756