sixseconds-modules 2.0.3 → 2.0.4
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 +11 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12906,21 +12906,25 @@ function ShadowIsland({ children }) {
|
|
|
12906
12906
|
return /* @__PURE__ */ jsx("div", { ref: hostRef, className: "sixseconds-header-shadow-host", suppressHydrationWarning: true });
|
|
12907
12907
|
}
|
|
12908
12908
|
function IsolatedProviders({ cache, children }) {
|
|
12909
|
-
const overlayRef = useRef(null);
|
|
12910
12909
|
const theme = useMemo(
|
|
12911
12910
|
() => createTheme({
|
|
12912
12911
|
typography: { fontFamily: "'Inter', sans-serif" },
|
|
12913
12912
|
components: {
|
|
12914
|
-
|
|
12915
|
-
|
|
12913
|
+
// Keep every MUI overlay INSIDE the shadow root. By default Dialog/Menu/
|
|
12914
|
+
// Popover (via Modal) and Tooltip/Autocomplete (via Popper) portal to
|
|
12915
|
+
// document.body — which is OUTSIDE the shadow boundary. There the HOST
|
|
12916
|
+
// app's MUI theme styles them (identical `.MuiPaper`/`.MuiDialog` class
|
|
12917
|
+
// names) while our shadow-scoped styles do NOT reach them, so spacing
|
|
12918
|
+
// collapses. `disablePortal` renders them in-tree instead, so they stay
|
|
12919
|
+
// isolated and correctly styled. (Backdrops/poppers are position:fixed,
|
|
12920
|
+
// so they still overlay the viewport correctly from inside the tree.)
|
|
12921
|
+
MuiModal: { defaultProps: { disablePortal: true } },
|
|
12922
|
+
MuiPopper: { defaultProps: { disablePortal: true } }
|
|
12916
12923
|
}
|
|
12917
12924
|
}),
|
|
12918
12925
|
[]
|
|
12919
12926
|
);
|
|
12920
|
-
return /* @__PURE__ */ jsx(CacheProvider, { value: cache, children: /* @__PURE__ */
|
|
12921
|
-
children,
|
|
12922
|
-
/* @__PURE__ */ jsx("div", { ref: overlayRef, className: "sixseconds-header-overlays" })
|
|
12923
|
-
] }) });
|
|
12927
|
+
return /* @__PURE__ */ jsx(CacheProvider, { value: cache, children: /* @__PURE__ */ jsx(ThemeProvider, { theme, children }) });
|
|
12924
12928
|
}
|
|
12925
12929
|
const DangerDialog = ({
|
|
12926
12930
|
open,
|