@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
@@ -3,16 +3,17 @@ import "../chunk-QFP4BUKZ.js";
3
3
  import {
4
4
  RecordId,
5
5
  shortUuid
6
- } from "../chunk-U46XUQI7.js";
7
- import "../chunk-6XNYYROM.js";
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-X6ZRHJQP.js";
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-POJ3RR3K.js";
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(readBottomClearance);
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
- function readClearance(height) {
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(readTopClearance);
3943
- const [bottomClearance] = React25.useState(readBottomClearance);
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,