@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
package/dist/item.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
runCommand,
|
|
13
13
|
runToggle,
|
|
14
14
|
useItemMenuHost
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T3FKFPCW.js";
|
|
16
16
|
import "./chunk-J6637L6D.js";
|
|
17
17
|
import {
|
|
18
18
|
MenuLookContent,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
MenuLookSub,
|
|
23
23
|
MenuLookSubContent,
|
|
24
24
|
MenuLookSubTrigger
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-42GFQMLA.js";
|
|
26
26
|
import "./chunk-HEFTQUJ5.js";
|
|
27
27
|
import "./chunk-K4XCB576.js";
|
|
28
28
|
import {
|
|
@@ -44,16 +44,16 @@ import "./chunk-NDTDBBMM.js";
|
|
|
44
44
|
import "./chunk-KPZX2M2C.js";
|
|
45
45
|
import "./chunk-WFBPCMPF.js";
|
|
46
46
|
import "./chunk-OPF265PU.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-WVEDW5VO.js";
|
|
48
48
|
import "./chunk-BD77DHUO.js";
|
|
49
49
|
import "./chunk-BKCJUFD3.js";
|
|
50
50
|
import "./chunk-MOZRIHJF.js";
|
|
51
51
|
import {
|
|
52
52
|
DropdownMenu,
|
|
53
53
|
DropdownMenuTrigger
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-T57DLONB.js";
|
|
55
55
|
import "./chunk-BNXNIN2S.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-B5D3VIMC.js";
|
|
57
57
|
import "./chunk-WFITMVDB.js";
|
|
58
58
|
import "./chunk-WAT2XW7L.js";
|
|
59
59
|
import {
|
package/dist/lite-table.js
CHANGED
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
MAC_TABLE_SLOTS
|
|
13
13
|
} from "./chunk-5JZSBNEY.js";
|
|
14
14
|
import "./chunk-5Z5GTXKL.js";
|
|
15
|
-
import "./chunk-HS6GMHKZ.js";
|
|
16
15
|
import {
|
|
17
16
|
getTapTargetLinkComponent
|
|
18
17
|
} from "./chunk-WFBPCMPF.js";
|
|
19
18
|
import {
|
|
20
19
|
Button
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WVEDW5VO.js";
|
|
22
21
|
import "./chunk-BD77DHUO.js";
|
|
23
22
|
import "./chunk-BKCJUFD3.js";
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-T57DLONB.js";
|
|
25
24
|
import "./chunk-BNXNIN2S.js";
|
|
25
|
+
import "./chunk-HS6GMHKZ.js";
|
|
26
26
|
import "./chunk-WFITMVDB.js";
|
|
27
27
|
import "./chunk-WAT2XW7L.js";
|
|
28
28
|
import "./chunk-7IOSA55D.js";
|
package/dist/menu-look.cjs
CHANGED
|
@@ -429,7 +429,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ..
|
|
|
429
429
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
430
430
|
var DropdownMenuSubContent = React5.forwardRef(({ className, container, surface = "default", sideOffset = 2, alignOffset = -4, collisionPadding, onFocusOutside, children, ...props }, ref) => {
|
|
431
431
|
const portalContainer = usePortalContainer(container);
|
|
432
|
-
const [bottomClearance] = React5.useState(
|
|
432
|
+
const [bottomClearance] = React5.useState(sharedBottomClearance);
|
|
433
433
|
const padding = menuCollisionPadding(collisionPadding ?? 8, 0, bottomClearance);
|
|
434
434
|
const nested = useNestedSubmenuPlacement(ref, padding);
|
|
435
435
|
const keep = useSubmenuSurvivesParentPanelFocus(nested.ref, onFocusOutside);
|
|
@@ -451,18 +451,27 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, container, surface
|
|
|
451
451
|
) });
|
|
452
452
|
});
|
|
453
453
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
454
|
-
function readTopClearance() {
|
|
455
|
-
return readClearance("var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))");
|
|
456
|
-
}
|
|
457
|
-
function readBottomClearance() {
|
|
458
|
-
return readClearance("var(--matrx-floating-clearance, 0px)");
|
|
459
|
-
}
|
|
460
454
|
function menuCollisionPadding(caller, top, bottom, fallback = 0) {
|
|
461
455
|
const side = (key) => typeof caller === "number" ? caller : caller?.[key] ?? fallback;
|
|
462
456
|
return { top: Math.max(side("top"), top), right: side("right"), bottom: Math.max(side("bottom"), bottom), left: side("left") };
|
|
463
457
|
}
|
|
464
|
-
|
|
458
|
+
var CLEARANCE_REUSE_MS = 500;
|
|
459
|
+
var clearanceCache = /* @__PURE__ */ new Map();
|
|
460
|
+
var clock = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
461
|
+
function readClearance(height, shared = false) {
|
|
465
462
|
if (typeof document === "undefined") return 0;
|
|
463
|
+
const now = clock();
|
|
464
|
+
const held = shared ? clearanceCache.get(height) : void 0;
|
|
465
|
+
if (held && now - held.at < CLEARANCE_REUSE_MS) return held.px;
|
|
466
|
+
const px = measureClearance(height);
|
|
467
|
+
clearanceCache.set(height, { px, at: now });
|
|
468
|
+
return px;
|
|
469
|
+
}
|
|
470
|
+
var TOP_CLEARANCE = "var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))";
|
|
471
|
+
var BOTTOM_CLEARANCE = "var(--matrx-floating-clearance, 0px)";
|
|
472
|
+
var sharedTopClearance = () => readClearance(TOP_CLEARANCE, true);
|
|
473
|
+
var sharedBottomClearance = () => readClearance(BOTTOM_CLEARANCE, true);
|
|
474
|
+
function measureClearance(height) {
|
|
466
475
|
const probe = document.createElement("div");
|
|
467
476
|
probe.style.cssText = `position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:${height}`;
|
|
468
477
|
document.body.appendChild(probe);
|
|
@@ -472,8 +481,8 @@ function readClearance(height) {
|
|
|
472
481
|
}
|
|
473
482
|
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, container, surface = "default", children, onCloseAutoFocus, collisionPadding, ...props }, ref) => {
|
|
474
483
|
const portalContainer = usePortalContainer(container);
|
|
475
|
-
const [topClearance] = React5.useState(
|
|
476
|
-
const [bottomClearance] = React5.useState(
|
|
484
|
+
const [topClearance] = React5.useState(sharedTopClearance);
|
|
485
|
+
const [bottomClearance] = React5.useState(sharedBottomClearance);
|
|
477
486
|
const edges = useMenuScrollEdges(ref);
|
|
478
487
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
479
488
|
DropdownMenuPrimitive.Content,
|