@moon-x/react-sdk 0.9.0 → 0.9.1
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4492,6 +4492,7 @@ function ScopedContainer(param) {
|
|
|
4492
4492
|
});
|
|
4493
4493
|
}
|
|
4494
4494
|
// src/components/vanilla-ui/root-card.tsx
|
|
4495
|
+
var MODAL_PORTAL_Z_INDEX = 2147483646;
|
|
4495
4496
|
function RootCard(param) {
|
|
4496
4497
|
var children = param.children, _param_centerContent = param.centerContent, centerContent = _param_centerContent === void 0 ? true : _param_centerContent, _param_embedded = param.embedded, embedded = _param_embedded === void 0 ? false : _param_embedded, _param_isDark = param.isDark, isDark = _param_isDark === void 0 ? false : _param_isDark, theme = param.theme, appearance = param.appearance;
|
|
4497
4498
|
var minHeight = "500px";
|
|
@@ -4582,7 +4583,7 @@ function RootCard(param) {
|
|
|
4582
4583
|
if (typeof window === "undefined") return;
|
|
4583
4584
|
var portalDiv = document.createElement("div");
|
|
4584
4585
|
portalDiv.id = "moonkey-modal-portal";
|
|
4585
|
-
portalDiv.style.cssText = "\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index:
|
|
4586
|
+
portalDiv.style.cssText = "\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ".concat(MODAL_PORTAL_Z_INDEX, ";\n pointer-events: none;\n ");
|
|
4586
4587
|
document.body.appendChild(portalDiv);
|
|
4587
4588
|
setPortalContainer(portalDiv);
|
|
4588
4589
|
return function() {
|
package/dist/index.mjs
CHANGED
|
@@ -3574,6 +3574,7 @@ function ScopedContainer(param) {
|
|
|
3574
3574
|
}
|
|
3575
3575
|
// src/components/vanilla-ui/root-card.tsx
|
|
3576
3576
|
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
3577
|
+
var MODAL_PORTAL_Z_INDEX = 2147483646;
|
|
3577
3578
|
function RootCard(param) {
|
|
3578
3579
|
var children = param.children, _param_centerContent = param.centerContent, centerContent = _param_centerContent === void 0 ? true : _param_centerContent, _param_embedded = param.embedded, embedded = _param_embedded === void 0 ? false : _param_embedded, _param_isDark = param.isDark, isDark = _param_isDark === void 0 ? false : _param_isDark, theme = param.theme, appearance = param.appearance;
|
|
3579
3580
|
var minHeight = "500px";
|
|
@@ -3664,7 +3665,7 @@ function RootCard(param) {
|
|
|
3664
3665
|
if (typeof window === "undefined") return;
|
|
3665
3666
|
var portalDiv = document.createElement("div");
|
|
3666
3667
|
portalDiv.id = "moonkey-modal-portal";
|
|
3667
|
-
portalDiv.style.cssText = "\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index:
|
|
3668
|
+
portalDiv.style.cssText = "\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ".concat(MODAL_PORTAL_Z_INDEX, ";\n pointer-events: none;\n ");
|
|
3668
3669
|
document.body.appendChild(portalDiv);
|
|
3669
3670
|
setPortalContainer(portalDiv);
|
|
3670
3671
|
return function() {
|