@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.
- package/CHANGELOG.md +16 -2
- package/dist/content-transfer.cjs +6 -4
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +6 -4
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +1 -1
- package/dist/data-table/data-row-inspector.cjs +6 -4
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +6 -4
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +6 -4
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +6 -4
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/filter-engine.d.cts +1 -1
- package/dist/data-table/filter-engine.d.ts +1 -1
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +21 -14
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +2 -2
- package/dist/data-table/index.d.ts +2 -2
- package/dist/data-table/index.js +21 -14
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +1 -1
- package/dist/data-table/infer-filter.d.ts +1 -1
- package/dist/data-table/layered-filters.d.cts +1 -1
- package/dist/data-table/layered-filters.d.ts +1 -1
- package/dist/data-table/query-control.d.cts +1 -1
- package/dist/data-table/query-control.d.ts +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +1 -1
- package/dist/data-table/types.d.ts +1 -1
- package/dist/data-table/url-state.d.cts +1 -1
- package/dist/data-table/url-state.d.ts +1 -1
- package/dist/data-table/xlsx.d.cts +1 -1
- package/dist/data-table/xlsx.d.ts +1 -1
- package/dist/{types-DqlfNcC5.d.cts → types-CRCy-Zy_.d.cts} +1 -1
- package/dist/{types-lNw7TnTM.d.ts → types-Ch60uNn-.d.ts} +1 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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)
|
|
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
|
|
4302
|
+
(0, import_format2.formatCount)(text.length),
|
|
4298
4303
|
" characters \xB7 approximately",
|
|
4299
4304
|
" ",
|
|
4300
|
-
Math.ceil(text.length / 4)
|
|
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
|
-
|
|
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
|
|
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
|
" ",
|