@groupeactual/ui-kit 0.2.4 → 0.2.6
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/cjs/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/DesignSystemProvider.tsx +1 -2
package/dist/cjs/index.js
CHANGED
|
@@ -51795,8 +51795,7 @@ var MaterialThemeProvider = function (_a) {
|
|
|
51795
51795
|
var children = _a.children;
|
|
51796
51796
|
var themeName = React.useContext(DesignSystemContext).themeName;
|
|
51797
51797
|
var muiTokens = useMaterialThemeTokens(themeName).muiTokens;
|
|
51798
|
-
|
|
51799
|
-
var theme = createTheme(muiTokens);
|
|
51798
|
+
var theme = React.useMemo(function () { return createTheme(muiTokens); }, [muiTokens]);
|
|
51800
51799
|
return jsxRuntime.jsx(ThemeProvider, __assign({ theme: theme }, { children: children }));
|
|
51801
51800
|
};
|
|
51802
51801
|
var DesignSystemProvider = function (_a) {
|