@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/menu-look.js
CHANGED
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
MenuLookSubContent,
|
|
35
35
|
MenuLookSubTrigger,
|
|
36
36
|
menuLookItemClass
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-42GFQMLA.js";
|
|
38
38
|
import "./chunk-HEFTQUJ5.js";
|
|
39
39
|
import "./chunk-OPF265PU.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-T57DLONB.js";
|
|
41
41
|
import "./chunk-BNXNIN2S.js";
|
|
42
42
|
import "./chunk-FXXSZNER.js";
|
|
43
43
|
import "./chunk-DGNHZBJY.js";
|
package/dist/record-list.cjs
CHANGED
|
@@ -1047,7 +1047,7 @@ var DropdownMenuSubTrigger = React7.forwardRef(({ className, inset, children, ..
|
|
|
1047
1047
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1048
1048
|
var DropdownMenuSubContent = React7.forwardRef(({ className, container, surface = "default", sideOffset = 2, alignOffset = -4, collisionPadding, onFocusOutside, children, ...props }, ref) => {
|
|
1049
1049
|
const portalContainer = usePortalContainer(container);
|
|
1050
|
-
const [bottomClearance] = React7.useState(
|
|
1050
|
+
const [bottomClearance] = React7.useState(sharedBottomClearance);
|
|
1051
1051
|
const padding = menuCollisionPadding(collisionPadding ?? 8, 0, bottomClearance);
|
|
1052
1052
|
const nested = useNestedSubmenuPlacement(ref, padding);
|
|
1053
1053
|
const keep = useSubmenuSurvivesParentPanelFocus(nested.ref, onFocusOutside);
|
|
@@ -1069,18 +1069,27 @@ var DropdownMenuSubContent = React7.forwardRef(({ className, container, surface
|
|
|
1069
1069
|
) });
|
|
1070
1070
|
});
|
|
1071
1071
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1072
|
-
function readTopClearance() {
|
|
1073
|
-
return readClearance("var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))");
|
|
1074
|
-
}
|
|
1075
|
-
function readBottomClearance() {
|
|
1076
|
-
return readClearance("var(--matrx-floating-clearance, 0px)");
|
|
1077
|
-
}
|
|
1078
1072
|
function menuCollisionPadding(caller, top, bottom, fallback = 0) {
|
|
1079
1073
|
const side = (key) => typeof caller === "number" ? caller : caller?.[key] ?? fallback;
|
|
1080
1074
|
return { top: Math.max(side("top"), top), right: side("right"), bottom: Math.max(side("bottom"), bottom), left: side("left") };
|
|
1081
1075
|
}
|
|
1082
|
-
|
|
1076
|
+
var CLEARANCE_REUSE_MS = 500;
|
|
1077
|
+
var clearanceCache = /* @__PURE__ */ new Map();
|
|
1078
|
+
var clock = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
1079
|
+
function readClearance(height, shared = false) {
|
|
1083
1080
|
if (typeof document === "undefined") return 0;
|
|
1081
|
+
const now = clock();
|
|
1082
|
+
const held = shared ? clearanceCache.get(height) : void 0;
|
|
1083
|
+
if (held && now - held.at < CLEARANCE_REUSE_MS) return held.px;
|
|
1084
|
+
const px = measureClearance(height);
|
|
1085
|
+
clearanceCache.set(height, { px, at: now });
|
|
1086
|
+
return px;
|
|
1087
|
+
}
|
|
1088
|
+
var TOP_CLEARANCE = "var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))";
|
|
1089
|
+
var BOTTOM_CLEARANCE = "var(--matrx-floating-clearance, 0px)";
|
|
1090
|
+
var sharedTopClearance = () => readClearance(TOP_CLEARANCE, true);
|
|
1091
|
+
var sharedBottomClearance = () => readClearance(BOTTOM_CLEARANCE, true);
|
|
1092
|
+
function measureClearance(height) {
|
|
1084
1093
|
const probe = document.createElement("div");
|
|
1085
1094
|
probe.style.cssText = `position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:${height}`;
|
|
1086
1095
|
document.body.appendChild(probe);
|
|
@@ -1090,8 +1099,8 @@ function readClearance(height) {
|
|
|
1090
1099
|
}
|
|
1091
1100
|
var DropdownMenuContent = React7.forwardRef(({ className, sideOffset = 4, container, surface = "default", children, onCloseAutoFocus, collisionPadding, ...props }, ref) => {
|
|
1092
1101
|
const portalContainer = usePortalContainer(container);
|
|
1093
|
-
const [topClearance] = React7.useState(
|
|
1094
|
-
const [bottomClearance] = React7.useState(
|
|
1102
|
+
const [topClearance] = React7.useState(sharedTopClearance);
|
|
1103
|
+
const [bottomClearance] = React7.useState(sharedBottomClearance);
|
|
1095
1104
|
const edges = useMenuScrollEdges(ref);
|
|
1096
1105
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1097
1106
|
DropdownMenuPrimitive.Content,
|