@ai-matrx/associations 0.13.4 → 0.13.5
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/CHANGELOG.md +4 -0
- package/dist/react/index.cjs +5 -4
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +6 -5
- package/dist/react/index.js.map +1 -1
- package/package.json +3 -3
package/dist/react/index.js
CHANGED
|
@@ -2016,7 +2016,7 @@ import {
|
|
|
2016
2016
|
useState as useState6
|
|
2017
2017
|
} from "react";
|
|
2018
2018
|
import { createPortal } from "react-dom";
|
|
2019
|
-
import { cn as cn2 } from "@ai-matrx/design-system";
|
|
2019
|
+
import { cn as cn2, FloatingLayer, useFloatingLayerZIndex } from "@ai-matrx/design-system";
|
|
2020
2020
|
|
|
2021
2021
|
// src/react/icons.tsx
|
|
2022
2022
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -2205,6 +2205,7 @@ function DefaultWindowShell({
|
|
|
2205
2205
|
className
|
|
2206
2206
|
}) {
|
|
2207
2207
|
const panelRef = useRef7(null);
|
|
2208
|
+
const zIndex = useFloatingLayerZIndex(50);
|
|
2208
2209
|
const [mounted, setMounted] = useState6(false);
|
|
2209
2210
|
const [isMobile, setIsMobile] = useState6(false);
|
|
2210
2211
|
const [rect, setRect] = useState6(() => centred());
|
|
@@ -2281,19 +2282,19 @@ function DefaultWindowShell({
|
|
|
2281
2282
|
height: rect.height
|
|
2282
2283
|
};
|
|
2283
2284
|
return createPortal(
|
|
2284
|
-
/* @__PURE__ */ jsxs3(
|
|
2285
|
+
/* @__PURE__ */ jsx5(FloatingLayer, { children: /* @__PURE__ */ jsxs3(
|
|
2285
2286
|
"div",
|
|
2286
2287
|
{
|
|
2287
2288
|
ref: panelRef,
|
|
2288
2289
|
role: "dialog",
|
|
2289
2290
|
"aria-labelledby": labelId,
|
|
2290
2291
|
tabIndex: -1,
|
|
2291
|
-
style,
|
|
2292
|
+
style: { ...style, zIndex },
|
|
2292
2293
|
className: cn2(
|
|
2293
2294
|
// Non-modal by design: no backdrop element exists, so the page
|
|
2294
2295
|
// behind keeps every click. `pointer-events-auto` re-asserts our
|
|
2295
2296
|
// own subtree in case a Radix surface left <body> inert.
|
|
2296
|
-
"pointer-events-auto fixed
|
|
2297
|
+
"pointer-events-auto fixed flex flex-col overflow-hidden border border-border bg-card text-card-foreground shadow-xl outline-none",
|
|
2297
2298
|
isMobile ? "inset-x-0 bottom-0 max-h-[85dvh] rounded-t-xl" : "rounded-xl",
|
|
2298
2299
|
className
|
|
2299
2300
|
),
|
|
@@ -2367,7 +2368,7 @@ function DefaultWindowShell({
|
|
|
2367
2368
|
)
|
|
2368
2369
|
]
|
|
2369
2370
|
}
|
|
2370
|
-
),
|
|
2371
|
+
) }),
|
|
2371
2372
|
document.body
|
|
2372
2373
|
);
|
|
2373
2374
|
}
|