@ai-matrx/design-system 0.19.16 → 0.19.18

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 (41) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/dist/content-transfer.cjs +6 -4
  3. package/dist/content-transfer.cjs.map +1 -1
  4. package/dist/content-transfer.js +6 -4
  5. package/dist/content-transfer.js.map +1 -1
  6. package/dist/data-table/copy-helpers.d.cts +1 -1
  7. package/dist/data-table/copy-helpers.d.ts +1 -1
  8. package/dist/data-table/data-row-inspector.cjs +6 -4
  9. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  10. package/dist/data-table/data-row-inspector.js +6 -4
  11. package/dist/data-table/data-row-inspector.js.map +1 -1
  12. package/dist/data-table/data-row-window.cjs +6 -4
  13. package/dist/data-table/data-row-window.cjs.map +1 -1
  14. package/dist/data-table/data-row-window.js +6 -4
  15. package/dist/data-table/data-row-window.js.map +1 -1
  16. package/dist/data-table/filter-engine.d.cts +1 -1
  17. package/dist/data-table/filter-engine.d.ts +1 -1
  18. package/dist/data-table/host.d.cts +1 -1
  19. package/dist/data-table/host.d.ts +1 -1
  20. package/dist/data-table/index.cjs +21 -14
  21. package/dist/data-table/index.cjs.map +1 -1
  22. package/dist/data-table/index.d.cts +2 -2
  23. package/dist/data-table/index.d.ts +2 -2
  24. package/dist/data-table/index.js +21 -14
  25. package/dist/data-table/index.js.map +1 -1
  26. package/dist/data-table/infer-filter.d.cts +1 -1
  27. package/dist/data-table/infer-filter.d.ts +1 -1
  28. package/dist/data-table/layered-filters.d.cts +1 -1
  29. package/dist/data-table/layered-filters.d.ts +1 -1
  30. package/dist/data-table/query-control.d.cts +1 -1
  31. package/dist/data-table/query-control.d.ts +1 -1
  32. package/dist/data-table/types.cjs.map +1 -1
  33. package/dist/data-table/types.d.cts +1 -1
  34. package/dist/data-table/types.d.ts +1 -1
  35. package/dist/data-table/url-state.d.cts +1 -1
  36. package/dist/data-table/url-state.d.ts +1 -1
  37. package/dist/data-table/xlsx.d.cts +1 -1
  38. package/dist/data-table/xlsx.d.ts +1 -1
  39. package/dist/{types-DqlfNcC5.d.cts → types-CRCy-Zy_.d.cts} +1 -1
  40. package/dist/{types-lNw7TnTM.d.ts → types-Ch60uNn-.d.ts} +1 -1
  41. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-DqlfNcC5.cjs';
1
+ import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-CRCy-Zy_.cjs';
2
2
  import 'react';
3
3
  import './copy-types.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-lNw7TnTM.js';
1
+ import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-Ch60uNn-.js';
2
2
  import 'react';
3
3
  import './copy-types.js';
4
4
 
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { ComponentType, ReactNode, MouseEventHandler } from 'react';
3
3
  import { CopyControlProps } from './copy-types.cjs';
4
4
  export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.cjs';
5
- import { b as TableSavedViewsProps, c as MatrxDataTableDensity } from '../types-DqlfNcC5.cjs';
5
+ import { b as TableSavedViewsProps, c as MatrxDataTableDensity } from '../types-CRCy-Zy_.cjs';
6
6
 
7
7
  interface TableLinkProps {
8
8
  href: string;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { ComponentType, ReactNode, MouseEventHandler } from 'react';
3
3
  import { CopyControlProps } from './copy-types.js';
4
4
  export { AgentPayloadInput, AiCustomSource, AiVariant, CopyExportConfig } from './copy-types.js';
5
- import { b as TableSavedViewsProps, c as MatrxDataTableDensity } from '../types-lNw7TnTM.js';
5
+ import { b as TableSavedViewsProps, c as MatrxDataTableDensity } from '../types-Ch60uNn-.js';
6
6
 
7
7
  interface TableLinkProps {
8
8
  href: string;
@@ -219,6 +219,9 @@ var Button = React.forwardRef(
219
219
  );
220
220
  Button.displayName = "Button";
221
221
 
222
+ // src/data-table/MatrxDataTable.tsx
223
+ var import_format3 = require("@ai-matrx/kit/format");
224
+
222
225
  // src/checkbox.tsx
223
226
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"), 1);
224
227
  var React2 = __toESM(require("react"), 1);
@@ -2136,11 +2139,13 @@ function GenericTablePagination({
2136
2139
  // src/content-transfer/matrx-copy.tsx
2137
2140
  var React14 = __toESM(require("react"), 1);
2138
2141
  var import_content_transfer2 = require("@ai-matrx/kit/content-transfer");
2142
+ var import_format2 = require("@ai-matrx/kit/format");
2139
2143
 
2140
2144
  // src/content-transfer/index.tsx
2141
2145
  var React13 = __toESM(require("react"), 1);
2142
2146
  var import_react_dom = require("react-dom");
2143
2147
  var import_content_transfer = require("@ai-matrx/kit/content-transfer");
2148
+ var import_format = require("@ai-matrx/kit/format");
2144
2149
 
2145
2150
  // src/popover.tsx
2146
2151
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
@@ -3182,7 +3187,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
3182
3187
  void preflight();
3183
3188
  }
3184
3189
  }, children: [
3185
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
3190
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
3186
3191
  /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
3187
3192
  menuStatus === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
3188
3193
  copyAvailable || downloadAvailable ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("section", { className: "matrx-alchemy-output", children: [
@@ -3541,7 +3546,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
3541
3546
  const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
3542
3547
  const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
3543
3548
  const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
3544
- const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value).toLocaleString()}`).join(" \xB7 ");
3549
+ const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${(0, import_format.formatCount)(Number(value))}`).join(" \xB7 ");
3545
3550
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Dialog, { open, onOpenChange: (next) => {
3546
3551
  if (!next) close();
3547
3552
  }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(DialogContent, { onCloseAutoFocus: (event) => {
@@ -4294,10 +4299,10 @@ function SourceConfiguration({
4294
4299
  ] }) : null
4295
4300
  ] }),
4296
4301
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("p", { children: [
4297
- text.length.toLocaleString(),
4302
+ (0, import_format2.formatCount)(text.length),
4298
4303
  " characters \xB7 approximately",
4299
4304
  " ",
4300
- Math.ceil(text.length / 4).toLocaleString(),
4305
+ (0, import_format2.formatCount)(Math.ceil(text.length / 4)),
4301
4306
  " tokens"
4302
4307
  ] }),
4303
4308
  error || buildError ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { role: "alert", children: error ?? buildError }) : null
@@ -5602,7 +5607,7 @@ function ColumnHeaderCell({
5602
5607
  "."
5603
5608
  ] })
5604
5609
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: label }),
5605
- filterKind ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "inline-flex items-center", children: [
5610
+ filterKind || sortable ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "inline-flex items-center", children: [
5606
5611
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Popover, { open: filterOpen, onOpenChange: setFilterOpen, children: [
5607
5612
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Tooltip, { children: [
5608
5613
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
@@ -5615,12 +5620,7 @@ function ColumnHeaderCell({
5615
5620
  "rounded p-0.5 transition-colors",
5616
5621
  filterActive ? "text-primary hover:text-primary/80" : "text-muted-foreground/40 hover:text-muted-foreground"
5617
5622
  ),
5618
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
5619
- ListFilter,
5620
- {
5621
- className: cn("h-3 w-3", filterActive && "fill-primary/20")
5622
- }
5623
- )
5623
+ children: filterKind ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ArrowUpDown, { className: "h-3 w-3" })
5624
5624
  }
5625
5625
  ) }) }),
5626
5626
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TooltipContent, { children: menuLabel })
@@ -9540,7 +9540,14 @@ function MatrxDataTableCore({
9540
9540
  ] }) : null
9541
9541
  ] }) : null,
9542
9542
  renderedFacets ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToolbarFacets, { facets: renderedFacets }) : null,
9543
- toolbar?.leading,
9543
+ toolbar?.leading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
9544
+ "div",
9545
+ {
9546
+ "data-matrx-table-toolbar-extras": true,
9547
+ className: "order-last flex w-full min-w-0 flex-wrap items-center gap-2",
9548
+ children: toolbar.leading
9549
+ }
9550
+ ) : null,
9544
9551
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
9545
9552
  "div",
9546
9553
  {
@@ -9684,7 +9691,7 @@ function MatrxDataTableCore({
9684
9691
  ),
9685
9692
  selection && selectionCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex shrink-0 flex-wrap items-center gap-2 rounded-md border border-primary/30 bg-primary/5 px-2 py-1.5", children: [
9686
9693
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "text-xs font-medium text-foreground", children: [
9687
- selectionCount.toLocaleString(),
9694
+ (0, import_format3.formatCount)(selectionCount),
9688
9695
  " ",
9689
9696
  selectionNoun,
9690
9697
  selectionCount === 1 ? "" : "s",
@@ -10363,7 +10370,7 @@ function MatrxDataTableCore({
10363
10370
  }
10364
10371
  ) : null,
10365
10372
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "min-w-0 flex-1", children: [
10366
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length.toLocaleString()} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${appendQuery.pagination.totalItems.toLocaleString()}`}` }),
10373
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${(0, import_format3.formatCount)(data.length)} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${(0, import_format3.formatCount)(appendQuery.pagination.totalItems)}`}` }),
10367
10374
  appendQuery.pagination.sourceUntil ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { children: [
10368
10375
  "Source fixed through",
10369
10376
  " ",