@ai-matrx/associations 0.13.3 → 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 +13 -0
- package/dist/react/index.cjs +8 -7
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +9 -8
- 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
|
}
|
|
@@ -3546,7 +3547,7 @@ function AssociationCardGrid({
|
|
|
3546
3547
|
const role = store.registry.getEntityInfo(token).contentRole;
|
|
3547
3548
|
return !role || !roleIds.has(role);
|
|
3548
3549
|
}) : [];
|
|
3549
|
-
return /* @__PURE__ */ jsxs10("div", { className: cn8("space-y-5", className), children: [
|
|
3550
|
+
return /* @__PURE__ */ jsxs10("div", { className: cn8("@container space-y-5", className), children: [
|
|
3550
3551
|
CONTENT_ROLES.map((role) => {
|
|
3551
3552
|
const inRole = list.filter(
|
|
3552
3553
|
(token) => store.registry.getEntityInfo(token).contentRole === role.id
|
|
@@ -3565,7 +3566,7 @@ function AssociationCardGrid({
|
|
|
3565
3566
|
] }),
|
|
3566
3567
|
/* @__PURE__ */ jsx12("p", { className: "hidden text-xs text-muted-foreground sm:block", children: role.tagline })
|
|
3567
3568
|
] }),
|
|
3568
|
-
/* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2
|
|
3569
|
+
/* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: inRole.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
|
|
3569
3570
|
] }, role.id);
|
|
3570
3571
|
}),
|
|
3571
3572
|
roleless.length > 0 && /* @__PURE__ */ jsxs10("section", { children: [
|
|
@@ -3573,7 +3574,7 @@ function AssociationCardGrid({
|
|
|
3573
3574
|
/* @__PURE__ */ jsx12("h3", { className: "text-sm font-semibold text-foreground", children: "Filed under" }),
|
|
3574
3575
|
/* @__PURE__ */ jsx12("p", { className: "hidden text-xs text-muted-foreground sm:block", children: "Libraries, topics and other places this is kept." })
|
|
3575
3576
|
] }),
|
|
3576
|
-
/* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2
|
|
3577
|
+
/* @__PURE__ */ jsx12("div", { className: "grid grid-cols-1 gap-2 @md:grid-cols-2 @3xl:grid-cols-3", children: roleless.map((token) => /* @__PURE__ */ jsx12(AssociationCard, { token }, token)) })
|
|
3577
3578
|
] })
|
|
3578
3579
|
] });
|
|
3579
3580
|
}
|