@ai-matrx/design-system 0.86.349 → 0.86.351

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 (96) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/dist/carousel.cjs.map +1 -1
  3. package/dist/carousel.js +5 -5
  4. package/dist/chunk-4WSXAP24.js +51 -0
  5. package/dist/chunk-4WSXAP24.js.map +1 -0
  6. package/dist/{chunk-XTP6HOB6.js → chunk-6XNYYROM.js} +1 -1
  7. package/dist/chunk-6XNYYROM.js.map +1 -0
  8. package/dist/{chunk-CEA6X445.js → chunk-CFUXEGW2.js} +2 -2
  9. package/dist/{chunk-54UK6P7E.js → chunk-FLWSEDUW.js} +3 -3
  10. package/dist/{chunk-BC7LMEOD.js → chunk-GJ6UGQ4X.js} +7 -3
  11. package/dist/chunk-GJ6UGQ4X.js.map +1 -0
  12. package/dist/{chunk-6CDAHINE.js → chunk-GMNROZQJ.js} +4 -4
  13. package/dist/{chunk-6CDAHINE.js.map → chunk-GMNROZQJ.js.map} +1 -1
  14. package/dist/{chunk-6QKT52FR.js → chunk-MTE6N7XU.js} +2 -2
  15. package/dist/{chunk-S6F34AX5.js → chunk-QA7EHFRX.js} +2 -2
  16. package/dist/{chunk-CJBSBKG5.js → chunk-SOCNWQMX.js} +2 -2
  17. package/dist/{chunk-GLLPO66A.js → chunk-U46XUQI7.js} +2 -2
  18. package/dist/{chunk-KYH42WEX.js → chunk-UGQRAQTE.js} +433 -344
  19. package/dist/chunk-UGQRAQTE.js.map +1 -0
  20. package/dist/{chunk-TWRC7NP4.js → chunk-WUD23YTG.js} +4 -4
  21. package/dist/{chunk-MIJMP4WI.js → chunk-YRF22M5S.js} +6 -1
  22. package/dist/{chunk-MIJMP4WI.js.map → chunk-YRF22M5S.js.map} +1 -1
  23. package/dist/clipboard-fallback-dialog.cjs.map +1 -1
  24. package/dist/clipboard-fallback-dialog.js +1 -1
  25. package/dist/controls.cjs +547 -458
  26. package/dist/controls.cjs.map +1 -1
  27. package/dist/controls.css +52 -18
  28. package/dist/controls.d.cts +51 -3
  29. package/dist/controls.d.ts +51 -3
  30. package/dist/controls.js +13 -5
  31. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  32. package/dist/data-table/data-row-inspector.js +4 -4
  33. package/dist/data-table/data-row-window.cjs.map +1 -1
  34. package/dist/data-table/data-row-window.js +5 -5
  35. package/dist/data-table/index.cjs +53 -43
  36. package/dist/data-table/index.cjs.map +1 -1
  37. package/dist/data-table/index.js +52 -45
  38. package/dist/data-table/index.js.map +1 -1
  39. package/dist/data-table/pagination.cjs.map +1 -1
  40. package/dist/data-table/pagination.js +2 -2
  41. package/dist/data-table/spreadsheet.cjs +6 -2
  42. package/dist/data-table/spreadsheet.cjs.map +1 -1
  43. package/dist/data-table/spreadsheet.d.cts +4 -1
  44. package/dist/data-table/spreadsheet.d.ts +4 -1
  45. package/dist/data-table/spreadsheet.js +3 -1
  46. package/dist/data-table/uuid-cell.cjs.map +1 -1
  47. package/dist/data-table/uuid-cell.js +2 -2
  48. package/dist/desktop.cjs +158 -16
  49. package/dist/desktop.cjs.map +1 -1
  50. package/dist/desktop.css +46 -0
  51. package/dist/desktop.d.cts +6 -5
  52. package/dist/desktop.d.ts +6 -5
  53. package/dist/desktop.js +127 -17
  54. package/dist/desktop.js.map +1 -1
  55. package/dist/index.cjs +19 -9
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.d.cts +10 -1
  58. package/dist/index.d.ts +10 -1
  59. package/dist/index.js +21 -14
  60. package/dist/index.js.map +1 -1
  61. package/dist/item.cjs.map +1 -1
  62. package/dist/item.js +2 -2
  63. package/dist/lite-table.cjs.map +1 -1
  64. package/dist/lite-table.js +1 -1
  65. package/dist/notice-stack.cjs +70 -0
  66. package/dist/notice-stack.cjs.map +1 -0
  67. package/dist/notice-stack.d.cts +60 -0
  68. package/dist/notice-stack.d.ts +60 -0
  69. package/dist/notice-stack.js +16 -0
  70. package/dist/notice-stack.js.map +1 -0
  71. package/dist/record-list.cjs.map +1 -1
  72. package/dist/record-list.js +2 -2
  73. package/dist/settings.cjs +2 -2
  74. package/dist/settings.cjs.map +1 -1
  75. package/dist/settings.js +3 -3
  76. package/dist/swipe-deck.cjs +95 -25
  77. package/dist/swipe-deck.cjs.map +1 -1
  78. package/dist/swipe-deck.css +14 -0
  79. package/dist/swipe-deck.d.cts +20 -0
  80. package/dist/swipe-deck.d.ts +20 -0
  81. package/dist/swipe-deck.js +87 -25
  82. package/dist/swipe-deck.js.map +1 -1
  83. package/dist/writing-field.cjs +2 -2
  84. package/dist/writing-field.cjs.map +1 -1
  85. package/dist/writing-field.js +2 -2
  86. package/package.json +12 -18
  87. package/dist/chunk-BC7LMEOD.js.map +0 -1
  88. package/dist/chunk-KYH42WEX.js.map +0 -1
  89. package/dist/chunk-XTP6HOB6.js.map +0 -1
  90. /package/dist/{chunk-CEA6X445.js.map → chunk-CFUXEGW2.js.map} +0 -0
  91. /package/dist/{chunk-54UK6P7E.js.map → chunk-FLWSEDUW.js.map} +0 -0
  92. /package/dist/{chunk-6QKT52FR.js.map → chunk-MTE6N7XU.js.map} +0 -0
  93. /package/dist/{chunk-S6F34AX5.js.map → chunk-QA7EHFRX.js.map} +0 -0
  94. /package/dist/{chunk-CJBSBKG5.js.map → chunk-SOCNWQMX.js.map} +0 -0
  95. /package/dist/{chunk-GLLPO66A.js.map → chunk-U46XUQI7.js.map} +0 -0
  96. /package/dist/{chunk-TWRC7NP4.js.map → chunk-WUD23YTG.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -4312,6 +4312,7 @@ __export(src_exports, {
4312
4312
  CommandInput: () => CommandInput,
4313
4313
  CommandItem: () => CommandItem,
4314
4314
  CommandList: () => CommandList,
4315
+ CommandRowClose: () => CommandRowClose,
4315
4316
  CommandSeparator: () => CommandSeparator,
4316
4317
  CommandShortcut: () => CommandShortcut,
4317
4318
  ConfirmDialog: () => ConfirmDialog,
@@ -6369,6 +6370,10 @@ var CommandInput = React17.forwardRef(({ className, ...props }, ref) => {
6369
6370
  ] });
6370
6371
  });
6371
6372
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
6373
+ function CommandRowClose({ className }) {
6374
+ const owns = useSearchRowCloseSlotClaim();
6375
+ return owns ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CloseControl, { className: cn("-mr-1", className) }) : null;
6376
+ }
6372
6377
  var CommandList = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
6373
6378
  import_cmdk.Command.List,
6374
6379
  {
@@ -10072,12 +10077,12 @@ function RowGroup({ title, danger, className, children, ...props }) {
10072
10077
  );
10073
10078
  }
10074
10079
  var Tile = React52.forwardRef(
10075
- ({ layout = "row", variant = "outline", icon, title, wrapTitle, line, end, selected, selectedStyle, tooltip, level, fit, endInset, oneLine, dashed, hoverStyle, danger, dimmed, glyphTone, hero, tone, dense, asChild = false, className, children, onClick, type, ...props }, ref) => {
10080
+ ({ layout = "row", variant = "outline", icon, title, wrapTitle, line, end, selected, selectedStyle, tooltip, level, fit, endInset, oneLine, dashed, hoverStyle, danger, dimmed, glyphTone, hero, tone, iconTone, dense, asChild = false, className, children, onClick, type, ...props }, ref) => {
10076
10081
  const Component = asChild ? import_react_slot5.Slot : "button";
10077
10082
  const ariaDisabled = props["aria-disabled"];
10078
10083
  const inert = ariaDisabled === true || ariaDisabled === "true";
10079
10084
  const body = /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
10080
- icon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "matrx-tile-icon", children: icon }) : null,
10085
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "matrx-tile-icon", "data-tone": iconTone && iconTone !== "neutral" ? iconTone : void 0, children: icon }) : null,
10081
10086
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "matrx-tile-text", children: [
10082
10087
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "matrx-tile-title", children: title }),
10083
10088
  line ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "matrx-tile-line", children: line }) : null
@@ -14442,11 +14447,8 @@ function ValueShell({ kind, glyph: Glyph, text, copy, state, record, peek, wrap
14442
14447
  const { open, setHovered, setHeld, setPinned, trigger } = usePinnedHover();
14443
14448
  const off = state !== "ok";
14444
14449
  const value = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: cn("min-w-0", wrap ? "whitespace-pre-line break-words" : "truncate", off ? "text-muted-foreground line-through" : "text-foreground"), children: text });
14445
- const body = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
14446
- Glyph ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Glyph, { className: "size-[1em] shrink-0 text-muted-foreground" }) : null,
14447
- value,
14448
- off ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "shrink-0 text-muted-foreground no-underline", children: `\xB7 ${CONTACT_STATE_LABEL[state]}` }) : null
14449
- ] });
14450
+ const status = off ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "shrink-0 text-muted-foreground no-underline", children: `\xB7 ${CONTACT_STATE_LABEL[state]}` }) : null;
14451
+ const glyph = Glyph ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Glyph, { className: "size-[var(--matrx-control-glyph)] shrink-0 text-muted-foreground" }) : null;
14450
14452
  return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
14451
14453
  "span",
14452
14454
  {
@@ -14470,14 +14472,22 @@ function ValueShell({ kind, glyph: Glyph, text, copy, state, record, peek, wrap
14470
14472
  type: "button",
14471
14473
  dense: true,
14472
14474
  variant: "quiet",
14473
- title: body,
14475
+ ...glyph ? { icon: glyph } : {},
14476
+ title: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
14477
+ value,
14478
+ status
14479
+ ] }),
14474
14480
  className: "min-w-0 max-w-full",
14475
14481
  onClick: () => setPinned((p) => !p)
14476
14482
  }
14477
14483
  ),
14478
14484
  children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Peek, { record, size: "sm", onHoldChange: setHeld })
14479
14485
  }
14480
- ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: cn("inline-flex min-w-0 max-w-full gap-1", wrap ? "items-start" : "items-center"), children: body }),
14486
+ ) : /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: cn("inline-flex min-w-0 max-w-full gap-1", wrap ? "items-start" : "items-center"), children: [
14487
+ glyph,
14488
+ value,
14489
+ status
14490
+ ] }),
14481
14491
  /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CopyButton, { text: copy, kind })
14482
14492
  ]
14483
14493
  }