@ai-matrx/design-system 0.19.15 → 0.19.17
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 +14 -0
- 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/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/index.cjs +14 -14
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +14 -14
- package/dist/data-table/index.js.map +1 -1
- package/dist/tap-target.css +12 -0
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -942,7 +945,7 @@ function TableTitleRow({
|
|
|
942
945
|
"div",
|
|
943
946
|
{
|
|
944
947
|
"data-matrx-table-title-search": true,
|
|
945
|
-
className: "order-last w-full min-w-0 sm:order-none sm:w-auto sm:max-w-md sm:flex-1",
|
|
948
|
+
className: "order-last w-full min-w-0 sm:order-none sm:w-auto sm:min-w-64 sm:max-w-md sm:flex-1",
|
|
946
949
|
children: search
|
|
947
950
|
}
|
|
948
951
|
) : null,
|
|
@@ -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 })
|
|
@@ -9684,7 +9684,7 @@ function MatrxDataTableCore({
|
|
|
9684
9684
|
),
|
|
9685
9685
|
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
9686
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "text-xs font-medium text-foreground", children: [
|
|
9687
|
-
|
|
9687
|
+
(0, import_format3.formatCount)(selectionCount),
|
|
9688
9688
|
" ",
|
|
9689
9689
|
selectionNoun,
|
|
9690
9690
|
selectionCount === 1 ? "" : "s",
|
|
@@ -10363,7 +10363,7 @@ function MatrxDataTableCore({
|
|
|
10363
10363
|
}
|
|
10364
10364
|
) : null,
|
|
10365
10365
|
/* @__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
|
|
10366
|
+
/* @__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
10367
|
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { children: [
|
|
10368
10368
|
"Source fixed through",
|
|
10369
10369
|
" ",
|