sixseconds-modules 1.6.144 → 1.6.145

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.cjs.js CHANGED
@@ -16286,9 +16286,22 @@ var createCache = function createCache2(options) {
16286
16286
  cache.sheet.hydrate(nodesToHydrate);
16287
16287
  return cache;
16288
16288
  };
16289
- const sixCache = createCache({ key: "sixseconds", prepend: false });
16289
+ material.unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
16290
16290
  function MuiProvider({ children }) {
16291
- return /* @__PURE__ */ jsxRuntime.jsx(react.CacheProvider, { value: sixCache, children });
16291
+ const [cache, setCache] = React.useState(null);
16292
+ React.useEffect(() => {
16293
+ if (typeof window !== "undefined") {
16294
+ const emotionCache = createCache({
16295
+ key: "sixseconds",
16296
+ prepend: false
16297
+ });
16298
+ setCache(emotionCache);
16299
+ }
16300
+ }, []);
16301
+ if (!cache) {
16302
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
16303
+ }
16304
+ return /* @__PURE__ */ jsxRuntime.jsx(react.CacheProvider, { value: cache, children });
16292
16305
  }
16293
16306
  const App = () => {
16294
16307
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [