mayak-common-library 0.0.20 → 0.0.22

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.js CHANGED
@@ -631,6 +631,7 @@ var _theme = {
631
631
  };
632
632
 
633
633
  // src/theme/index.tsx
634
+ var import_styles3 = require("@mui/material/styles");
634
635
  function ThemeRegistry(props) {
635
636
  const { children } = props;
636
637
  const [{ cache, flush }] = (0, import_react6.useState)(() => {
@@ -677,7 +678,7 @@ function ThemeRegistry(props) {
677
678
  }
678
679
  );
679
680
  });
680
- return /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children));
681
+ return /* @__PURE__ */ React.createElement(import_styles3.StyledEngineProvider, { injectFirst: true }, /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children)));
681
682
  }
682
683
 
683
684
  // src/providers/Providers.tsx
package/dist/index.mjs CHANGED
@@ -581,6 +581,7 @@ var _theme = {
581
581
  };
582
582
 
583
583
  // src/theme/index.tsx
584
+ import { StyledEngineProvider } from "@mui/material/styles";
584
585
  function ThemeRegistry(props) {
585
586
  const { children } = props;
586
587
  const [{ cache, flush }] = useState3(() => {
@@ -627,7 +628,7 @@ function ThemeRegistry(props) {
627
628
  }
628
629
  );
629
630
  });
630
- return /* @__PURE__ */ React.createElement(CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(CssBaseline, null), children));
631
+ return /* @__PURE__ */ React.createElement(StyledEngineProvider, { injectFirst: true }, /* @__PURE__ */ React.createElement(CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(CssBaseline, null), children)));
631
632
  }
632
633
 
633
634
  // src/providers/Providers.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",