@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.
Files changed (91) hide show
  1. package/CHANGELOG.md +30 -2
  2. package/dist/carousel.js +6 -6
  3. package/dist/{chunk-T4D7WAV7.js → chunk-42GFQMLA.js} +2 -2
  4. package/dist/{chunk-POJ3RR3K.js → chunk-B5D3VIMC.js} +1 -1
  5. package/dist/{chunk-POJ3RR3K.js.map → chunk-B5D3VIMC.js.map} +1 -1
  6. package/dist/{chunk-FRJ4PPA2.js → chunk-CZGZV35G.js} +2 -2
  7. package/dist/{chunk-ACZALXD6.js → chunk-K3XWUACX.js} +3 -3
  8. package/dist/{chunk-TV2IDHPZ.js → chunk-K5ZQROWN.js} +4 -4
  9. package/dist/{chunk-U46XUQI7.js → chunk-KSCSH7AO.js} +16 -14
  10. package/dist/chunk-KSCSH7AO.js.map +1 -0
  11. package/dist/{chunk-MTE6N7XU.js → chunk-NFJ63LIH.js} +2 -2
  12. package/dist/{chunk-XZGYKKCE.js → chunk-OUQT72UL.js} +3 -3
  13. package/dist/{chunk-WUD23YTG.js → chunk-P56Y43RL.js} +6 -6
  14. package/dist/{chunk-GMNROZQJ.js → chunk-QTPW44IJ.js} +2 -2
  15. package/dist/{chunk-QA7EHFRX.js → chunk-T3FKFPCW.js} +5 -5
  16. package/dist/{chunk-X6ZRHJQP.js → chunk-T57DLONB.js} +20 -11
  17. package/dist/chunk-T57DLONB.js.map +1 -0
  18. package/dist/{chunk-SOCNWQMX.js → chunk-TEMAM5ET.js} +3 -3
  19. package/dist/{chunk-CH2NWSES.js → chunk-TIV6M7Q7.js} +3 -3
  20. package/dist/{chunk-6XNYYROM.js → chunk-WVEDW5VO.js} +2 -2
  21. package/dist/clipboard-fallback-dialog.js +2 -2
  22. package/dist/controls.cjs +19 -10
  23. package/dist/controls.cjs.map +1 -1
  24. package/dist/controls.js +6 -6
  25. package/dist/data-table/data-row-inspector.cjs +99 -11
  26. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  27. package/dist/data-table/data-row-inspector.js +8 -7
  28. package/dist/data-table/data-row-window.cjs +99 -11
  29. package/dist/data-table/data-row-window.cjs.map +1 -1
  30. package/dist/data-table/data-row-window.js +9 -8
  31. package/dist/data-table/drill-chart.js +1 -1
  32. package/dist/data-table/host.cjs.map +1 -1
  33. package/dist/data-table/host.d.cts +6 -2
  34. package/dist/data-table/host.d.ts +6 -2
  35. package/dist/data-table/host.js +1 -1
  36. package/dist/data-table/index.cjs +39 -37
  37. package/dist/data-table/index.cjs.map +1 -1
  38. package/dist/data-table/index.d.cts +6 -2
  39. package/dist/data-table/index.d.ts +6 -2
  40. package/dist/data-table/index.js +19 -23
  41. package/dist/data-table/index.js.map +1 -1
  42. package/dist/data-table/pagination.cjs +19 -10
  43. package/dist/data-table/pagination.cjs.map +1 -1
  44. package/dist/data-table/pagination.js +4 -4
  45. package/dist/data-table/uuid-cell.cjs +99 -11
  46. package/dist/data-table/uuid-cell.cjs.map +1 -1
  47. package/dist/data-table/uuid-cell.js +5 -4
  48. package/dist/desktop.cjs +20 -11
  49. package/dist/desktop.cjs.map +1 -1
  50. package/dist/desktop.d.cts +1 -1
  51. package/dist/desktop.d.ts +1 -1
  52. package/dist/desktop.js +13 -13
  53. package/dist/desktop.js.map +1 -1
  54. package/dist/email-input-dialog.js +1 -1
  55. package/dist/index.cjs +31 -22
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.d.cts +9 -9
  58. package/dist/index.d.ts +9 -9
  59. package/dist/index.js +20 -20
  60. package/dist/item.cjs +19 -10
  61. package/dist/item.cjs.map +1 -1
  62. package/dist/item.js +5 -5
  63. package/dist/lite-table.js +3 -3
  64. package/dist/menu-look.cjs +19 -10
  65. package/dist/menu-look.cjs.map +1 -1
  66. package/dist/menu-look.js +2 -2
  67. package/dist/record-list.cjs +19 -10
  68. package/dist/record-list.cjs.map +1 -1
  69. package/dist/record-list.js +6 -6
  70. package/dist/settings.js +3 -3
  71. package/dist/swipe-deck.cjs +11 -2
  72. package/dist/swipe-deck.cjs.map +1 -1
  73. package/dist/swipe-deck.js +12 -3
  74. package/dist/swipe-deck.js.map +1 -1
  75. package/dist/text-input-dialog.js +1 -1
  76. package/dist/writing-field.js +3 -3
  77. package/package.json +2 -2
  78. package/dist/chunk-U46XUQI7.js.map +0 -1
  79. package/dist/chunk-X6ZRHJQP.js.map +0 -1
  80. /package/dist/{chunk-T4D7WAV7.js.map → chunk-42GFQMLA.js.map} +0 -0
  81. /package/dist/{chunk-FRJ4PPA2.js.map → chunk-CZGZV35G.js.map} +0 -0
  82. /package/dist/{chunk-ACZALXD6.js.map → chunk-K3XWUACX.js.map} +0 -0
  83. /package/dist/{chunk-TV2IDHPZ.js.map → chunk-K5ZQROWN.js.map} +0 -0
  84. /package/dist/{chunk-MTE6N7XU.js.map → chunk-NFJ63LIH.js.map} +0 -0
  85. /package/dist/{chunk-XZGYKKCE.js.map → chunk-OUQT72UL.js.map} +0 -0
  86. /package/dist/{chunk-WUD23YTG.js.map → chunk-P56Y43RL.js.map} +0 -0
  87. /package/dist/{chunk-GMNROZQJ.js.map → chunk-QTPW44IJ.js.map} +0 -0
  88. /package/dist/{chunk-QA7EHFRX.js.map → chunk-T3FKFPCW.js.map} +0 -0
  89. /package/dist/{chunk-SOCNWQMX.js.map → chunk-TEMAM5ET.js.map} +0 -0
  90. /package/dist/{chunk-CH2NWSES.js.map → chunk-TIV6M7Q7.js.map} +0 -0
  91. /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-QA7EHFRX.js";
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-T4D7WAV7.js";
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-6XNYYROM.js";
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-X6ZRHJQP.js";
54
+ } from "./chunk-T57DLONB.js";
55
55
  import "./chunk-BNXNIN2S.js";
56
- import "./chunk-POJ3RR3K.js";
56
+ import "./chunk-B5D3VIMC.js";
57
57
  import "./chunk-WFITMVDB.js";
58
58
  import "./chunk-WAT2XW7L.js";
59
59
  import {
@@ -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-6XNYYROM.js";
20
+ } from "./chunk-WVEDW5VO.js";
22
21
  import "./chunk-BD77DHUO.js";
23
22
  import "./chunk-BKCJUFD3.js";
24
- import "./chunk-X6ZRHJQP.js";
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";
@@ -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(readBottomClearance);
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
- function readClearance(height) {
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(readTopClearance);
476
- const [bottomClearance] = React5.useState(readBottomClearance);
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,