@ai-matrx/design-system 0.86.357 → 0.86.359
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 +30 -2
- package/dist/carousel.js +6 -6
- package/dist/{chunk-T4D7WAV7.js → chunk-42GFQMLA.js} +2 -2
- package/dist/{chunk-POJ3RR3K.js → chunk-B5D3VIMC.js} +1 -1
- package/dist/{chunk-POJ3RR3K.js.map → chunk-B5D3VIMC.js.map} +1 -1
- package/dist/{chunk-FRJ4PPA2.js → chunk-CZGZV35G.js} +2 -2
- package/dist/{chunk-ACZALXD6.js → chunk-K3XWUACX.js} +3 -3
- package/dist/{chunk-TV2IDHPZ.js → chunk-K5ZQROWN.js} +4 -4
- package/dist/{chunk-U46XUQI7.js → chunk-KSCSH7AO.js} +16 -14
- package/dist/chunk-KSCSH7AO.js.map +1 -0
- package/dist/{chunk-MTE6N7XU.js → chunk-NFJ63LIH.js} +2 -2
- package/dist/{chunk-XZGYKKCE.js → chunk-OUQT72UL.js} +3 -3
- package/dist/{chunk-WUD23YTG.js → chunk-P56Y43RL.js} +6 -6
- package/dist/{chunk-GMNROZQJ.js → chunk-QTPW44IJ.js} +2 -2
- package/dist/{chunk-QA7EHFRX.js → chunk-T3FKFPCW.js} +5 -5
- package/dist/{chunk-X6ZRHJQP.js → chunk-T57DLONB.js} +20 -11
- package/dist/chunk-T57DLONB.js.map +1 -0
- package/dist/{chunk-SOCNWQMX.js → chunk-TEMAM5ET.js} +3 -3
- package/dist/{chunk-CH2NWSES.js → chunk-TIV6M7Q7.js} +3 -3
- package/dist/{chunk-6XNYYROM.js → chunk-WVEDW5VO.js} +2 -2
- package/dist/clipboard-fallback-dialog.js +2 -2
- package/dist/controls.cjs +19 -10
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.js +6 -6
- package/dist/data-table/data-row-inspector.cjs +99 -11
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +8 -7
- package/dist/data-table/data-row-window.cjs +99 -11
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +9 -8
- package/dist/data-table/drill-chart.js +1 -1
- package/dist/data-table/host.cjs.map +1 -1
- package/dist/data-table/host.d.cts +6 -2
- package/dist/data-table/host.d.ts +6 -2
- package/dist/data-table/host.js +1 -1
- package/dist/data-table/index.cjs +39 -37
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +6 -2
- package/dist/data-table/index.d.ts +6 -2
- package/dist/data-table/index.js +19 -23
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +19 -10
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +4 -4
- package/dist/data-table/uuid-cell.cjs +99 -11
- package/dist/data-table/uuid-cell.cjs.map +1 -1
- package/dist/data-table/uuid-cell.js +5 -4
- package/dist/desktop.cjs +20 -11
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.d.cts +1 -1
- package/dist/desktop.d.ts +1 -1
- package/dist/desktop.js +13 -13
- package/dist/desktop.js.map +1 -1
- package/dist/email-input-dialog.js +1 -1
- package/dist/index.cjs +31 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +20 -20
- package/dist/item.cjs +19 -10
- package/dist/item.cjs.map +1 -1
- package/dist/item.js +5 -5
- package/dist/lite-table.js +3 -3
- package/dist/menu-look.cjs +19 -10
- package/dist/menu-look.cjs.map +1 -1
- package/dist/menu-look.js +2 -2
- package/dist/record-list.cjs +19 -10
- package/dist/record-list.cjs.map +1 -1
- package/dist/record-list.js +6 -6
- package/dist/settings.js +3 -3
- package/dist/swipe-deck.cjs +11 -2
- package/dist/swipe-deck.cjs.map +1 -1
- package/dist/swipe-deck.js +12 -3
- package/dist/swipe-deck.js.map +1 -1
- package/dist/text-input-dialog.js +1 -1
- package/dist/writing-field.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-U46XUQI7.js.map +0 -1
- package/dist/chunk-X6ZRHJQP.js.map +0 -1
- /package/dist/{chunk-T4D7WAV7.js.map → chunk-42GFQMLA.js.map} +0 -0
- /package/dist/{chunk-FRJ4PPA2.js.map → chunk-CZGZV35G.js.map} +0 -0
- /package/dist/{chunk-ACZALXD6.js.map → chunk-K3XWUACX.js.map} +0 -0
- /package/dist/{chunk-TV2IDHPZ.js.map → chunk-K5ZQROWN.js.map} +0 -0
- /package/dist/{chunk-MTE6N7XU.js.map → chunk-NFJ63LIH.js.map} +0 -0
- /package/dist/{chunk-XZGYKKCE.js.map → chunk-OUQT72UL.js.map} +0 -0
- /package/dist/{chunk-WUD23YTG.js.map → chunk-P56Y43RL.js.map} +0 -0
- /package/dist/{chunk-GMNROZQJ.js.map → chunk-QTPW44IJ.js.map} +0 -0
- /package/dist/{chunk-QA7EHFRX.js.map → chunk-T3FKFPCW.js.map} +0 -0
- /package/dist/{chunk-SOCNWQMX.js.map → chunk-TEMAM5ET.js.map} +0 -0
- /package/dist/{chunk-CH2NWSES.js.map → chunk-TIV6M7Q7.js.map} +0 -0
- /package/dist/{chunk-6XNYYROM.js.map → chunk-WVEDW5VO.js.map} +0 -0
|
@@ -3,16 +3,17 @@ import "../chunk-QFP4BUKZ.js";
|
|
|
3
3
|
import {
|
|
4
4
|
RecordId,
|
|
5
5
|
shortUuid
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-KSCSH7AO.js";
|
|
7
|
+
import "../chunk-WVEDW5VO.js";
|
|
8
8
|
import "../chunk-BD77DHUO.js";
|
|
9
9
|
import "../chunk-BKCJUFD3.js";
|
|
10
10
|
import "../chunk-PIQJULQB.js";
|
|
11
11
|
import "../chunk-MOZRIHJF.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-T57DLONB.js";
|
|
13
13
|
import "../chunk-BNXNIN2S.js";
|
|
14
|
+
import "../chunk-HS6GMHKZ.js";
|
|
14
15
|
import "../chunk-ORXB4A5E.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-B5D3VIMC.js";
|
|
16
17
|
import "../chunk-4JAYMFQO.js";
|
|
17
18
|
import "../chunk-WFITMVDB.js";
|
|
18
19
|
import "../chunk-WAT2XW7L.js";
|
package/dist/desktop.cjs
CHANGED
|
@@ -3896,7 +3896,7 @@ var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, .
|
|
|
3896
3896
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
3897
3897
|
var DropdownMenuSubContent = React25.forwardRef(({ className, container, surface = "default", sideOffset = 2, alignOffset = -4, collisionPadding, onFocusOutside, children, ...props }, ref) => {
|
|
3898
3898
|
const portalContainer = usePortalContainer(container);
|
|
3899
|
-
const [bottomClearance] = React25.useState(
|
|
3899
|
+
const [bottomClearance] = React25.useState(sharedBottomClearance);
|
|
3900
3900
|
const padding = menuCollisionPadding(collisionPadding ?? 8, 0, bottomClearance);
|
|
3901
3901
|
const nested = useNestedSubmenuPlacement(ref, padding);
|
|
3902
3902
|
const keep = useSubmenuSurvivesParentPanelFocus(nested.ref, onFocusOutside);
|
|
@@ -3918,18 +3918,27 @@ var DropdownMenuSubContent = React25.forwardRef(({ className, container, surface
|
|
|
3918
3918
|
) });
|
|
3919
3919
|
});
|
|
3920
3920
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
3921
|
-
function readTopClearance() {
|
|
3922
|
-
return readClearance("var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))");
|
|
3923
|
-
}
|
|
3924
|
-
function readBottomClearance() {
|
|
3925
|
-
return readClearance("var(--matrx-floating-clearance, 0px)");
|
|
3926
|
-
}
|
|
3927
3921
|
function menuCollisionPadding(caller, top, bottom, fallback = 0) {
|
|
3928
3922
|
const side = (key2) => typeof caller === "number" ? caller : caller?.[key2] ?? fallback;
|
|
3929
3923
|
return { top: Math.max(side("top"), top), right: side("right"), bottom: Math.max(side("bottom"), bottom), left: side("left") };
|
|
3930
3924
|
}
|
|
3931
|
-
|
|
3925
|
+
var CLEARANCE_REUSE_MS = 500;
|
|
3926
|
+
var clearanceCache = /* @__PURE__ */ new Map();
|
|
3927
|
+
var clock = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
3928
|
+
function readClearance(height, shared = false) {
|
|
3932
3929
|
if (typeof document === "undefined") return 0;
|
|
3930
|
+
const now = clock();
|
|
3931
|
+
const held = shared ? clearanceCache.get(height) : void 0;
|
|
3932
|
+
if (held && now - held.at < CLEARANCE_REUSE_MS) return held.px;
|
|
3933
|
+
const px = measureClearance(height);
|
|
3934
|
+
clearanceCache.set(height, { px, at: now });
|
|
3935
|
+
return px;
|
|
3936
|
+
}
|
|
3937
|
+
var TOP_CLEARANCE = "var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))";
|
|
3938
|
+
var BOTTOM_CLEARANCE = "var(--matrx-floating-clearance, 0px)";
|
|
3939
|
+
var sharedTopClearance = () => readClearance(TOP_CLEARANCE, true);
|
|
3940
|
+
var sharedBottomClearance = () => readClearance(BOTTOM_CLEARANCE, true);
|
|
3941
|
+
function measureClearance(height) {
|
|
3933
3942
|
const probe = document.createElement("div");
|
|
3934
3943
|
probe.style.cssText = `position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:${height}`;
|
|
3935
3944
|
document.body.appendChild(probe);
|
|
@@ -3939,8 +3948,8 @@ function readClearance(height) {
|
|
|
3939
3948
|
}
|
|
3940
3949
|
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, container, surface = "default", children, onCloseAutoFocus, collisionPadding, ...props }, ref) => {
|
|
3941
3950
|
const portalContainer = usePortalContainer(container);
|
|
3942
|
-
const [topClearance] = React25.useState(
|
|
3943
|
-
const [bottomClearance] = React25.useState(
|
|
3951
|
+
const [topClearance] = React25.useState(sharedTopClearance);
|
|
3952
|
+
const [bottomClearance] = React25.useState(sharedBottomClearance);
|
|
3944
3953
|
const edges = useMenuScrollEdges(ref);
|
|
3945
3954
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3946
3955
|
DropdownMenuPrimitive.Content,
|
|
@@ -5816,7 +5825,7 @@ function TableFilterBar({ columns, rows, state, onChange, shown, label, noun })
|
|
|
5816
5825
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { "data-slot": "data-table-filter-bar", className: "flex h-table-filter-bar shrink-0 items-center gap-2 border-b border-separator px-3", children: [
|
|
5817
5826
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: [
|
|
5818
5827
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TableFilterTokens, { columns, state, onChange }),
|
|
5819
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, { tone: "secondary", className: "shrink-0 tabular-nums", "data-table-filter-count": shown, children: `${active ? `${shown} of ${rows.length}` : `${rows.length}`}${noun ? ` ${rows.length === 1 ? noun[0] : noun[1]}` : ""}` })
|
|
5828
|
+
active || noun ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, { tone: "secondary", className: "shrink-0 tabular-nums", "data-table-filter-count": shown, children: `${active ? `${shown} of ${rows.length}` : `${rows.length}`}${noun ? ` ${rows.length === 1 ? noun[0] : noun[1]}` : ""}` }) : null
|
|
5820
5829
|
] }),
|
|
5821
5830
|
searchable ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5822
5831
|
SearchField,
|