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.es.js CHANGED
@@ -11,7 +11,7 @@
11
11
  }
12
12
  })();
13
13
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
14
- import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, styled, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment } from "@mui/material";
14
+ import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, styled, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, unstable_ClassNameGenerator } from "@mui/material";
15
15
  import * as React from "react";
16
16
  import React__default, { useRef, useEffect, useState, useCallback, useMemo, useLayoutEffect, createContext, forwardRef, createElement, useContext, Component } from "react";
17
17
  import { CacheProvider } from "@emotion/react";
@@ -16268,9 +16268,22 @@ var createCache = function createCache2(options) {
16268
16268
  cache.sheet.hydrate(nodesToHydrate);
16269
16269
  return cache;
16270
16270
  };
16271
- const sixCache = createCache({ key: "sixseconds", prepend: false });
16271
+ unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
16272
16272
  function MuiProvider({ children }) {
16273
- return /* @__PURE__ */ jsx(CacheProvider, { value: sixCache, children });
16273
+ const [cache, setCache] = useState(null);
16274
+ useEffect(() => {
16275
+ if (typeof window !== "undefined") {
16276
+ const emotionCache = createCache({
16277
+ key: "sixseconds",
16278
+ prepend: false
16279
+ });
16280
+ setCache(emotionCache);
16281
+ }
16282
+ }, []);
16283
+ if (!cache) {
16284
+ return /* @__PURE__ */ jsx(Fragment, { children });
16285
+ }
16286
+ return /* @__PURE__ */ jsx(CacheProvider, { value: cache, children });
16274
16287
  }
16275
16288
  const App = () => {
16276
16289
  return /* @__PURE__ */ jsxs(Fragment, { children: [