@ai-matrx/design-system 0.19.16 → 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 +10 -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/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 +13 -13
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +13 -13
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-table/index.js
CHANGED
|
@@ -183,6 +183,9 @@ var Button = React.forwardRef(
|
|
|
183
183
|
);
|
|
184
184
|
Button.displayName = "Button";
|
|
185
185
|
|
|
186
|
+
// src/data-table/MatrxDataTable.tsx
|
|
187
|
+
import { formatCount as formatCount3 } from "@ai-matrx/kit/format";
|
|
188
|
+
|
|
186
189
|
// src/checkbox.tsx
|
|
187
190
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
188
191
|
import * as React2 from "react";
|
|
@@ -2106,6 +2109,7 @@ import {
|
|
|
2106
2109
|
normalizeTransferJson,
|
|
2107
2110
|
sealTransferArtifact as sealTransferArtifact2
|
|
2108
2111
|
} from "@ai-matrx/kit/content-transfer";
|
|
2112
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
2109
2113
|
|
|
2110
2114
|
// src/content-transfer/index.tsx
|
|
2111
2115
|
import * as React13 from "react";
|
|
@@ -2132,6 +2136,7 @@ import {
|
|
|
2132
2136
|
transformRows,
|
|
2133
2137
|
undoDraft
|
|
2134
2138
|
} from "@ai-matrx/kit/content-transfer";
|
|
2139
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
2135
2140
|
|
|
2136
2141
|
// src/popover.tsx
|
|
2137
2142
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
@@ -3177,7 +3182,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
3177
3182
|
void preflight();
|
|
3178
3183
|
}
|
|
3179
3184
|
}, children: [
|
|
3180
|
-
/* @__PURE__ */ jsx23(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx23(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ jsx23(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
3185
|
+
/* @__PURE__ */ jsx23(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx23(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ jsx23(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx23(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
3181
3186
|
/* @__PURE__ */ jsxs15(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
3182
3187
|
menuStatus === "loading" ? /* @__PURE__ */ jsx23("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ jsx23("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
3183
3188
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ jsxs15("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -3536,7 +3541,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
3536
3541
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
3537
3542
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
3538
3543
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
3539
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
3544
|
+
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${formatCount(Number(value))}`).join(" \xB7 ");
|
|
3540
3545
|
return /* @__PURE__ */ jsx23(Dialog, { open, onOpenChange: (next) => {
|
|
3541
3546
|
if (!next) close();
|
|
3542
3547
|
}, children: /* @__PURE__ */ jsxs15(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -4289,10 +4294,10 @@ function SourceConfiguration({
|
|
|
4289
4294
|
] }) : null
|
|
4290
4295
|
] }),
|
|
4291
4296
|
/* @__PURE__ */ jsxs16("p", { children: [
|
|
4292
|
-
text.length
|
|
4297
|
+
formatCount2(text.length),
|
|
4293
4298
|
" characters \xB7 approximately",
|
|
4294
4299
|
" ",
|
|
4295
|
-
Math.ceil(text.length / 4)
|
|
4300
|
+
formatCount2(Math.ceil(text.length / 4)),
|
|
4296
4301
|
" tokens"
|
|
4297
4302
|
] }),
|
|
4298
4303
|
error || buildError ? /* @__PURE__ */ jsx24("p", { role: "alert", children: error ?? buildError }) : null
|
|
@@ -5609,7 +5614,7 @@ function ColumnHeaderCell({
|
|
|
5609
5614
|
"."
|
|
5610
5615
|
] })
|
|
5611
5616
|
] }) : /* @__PURE__ */ jsx28("span", { className: "truncate text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: label }),
|
|
5612
|
-
filterKind ? /* @__PURE__ */ jsxs19("div", { className: "inline-flex items-center", children: [
|
|
5617
|
+
filterKind || sortable ? /* @__PURE__ */ jsxs19("div", { className: "inline-flex items-center", children: [
|
|
5613
5618
|
/* @__PURE__ */ jsxs19(Popover, { open: filterOpen, onOpenChange: setFilterOpen, children: [
|
|
5614
5619
|
/* @__PURE__ */ jsxs19(Tooltip, { children: [
|
|
5615
5620
|
/* @__PURE__ */ jsx28(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx28(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx28(
|
|
@@ -5622,12 +5627,7 @@ function ColumnHeaderCell({
|
|
|
5622
5627
|
"rounded p-0.5 transition-colors",
|
|
5623
5628
|
filterActive ? "text-primary hover:text-primary/80" : "text-muted-foreground/40 hover:text-muted-foreground"
|
|
5624
5629
|
),
|
|
5625
|
-
children: /* @__PURE__ */ jsx28(
|
|
5626
|
-
ListFilter,
|
|
5627
|
-
{
|
|
5628
|
-
className: cn("h-3 w-3", filterActive && "fill-primary/20")
|
|
5629
|
-
}
|
|
5630
|
-
)
|
|
5630
|
+
children: filterKind ? /* @__PURE__ */ jsx28(ListFilter, { className: cn("h-3 w-3", filterActive && "fill-primary/20") }) : /* @__PURE__ */ jsx28(ArrowUpDown, { className: "h-3 w-3" })
|
|
5631
5631
|
}
|
|
5632
5632
|
) }) }),
|
|
5633
5633
|
/* @__PURE__ */ jsx28(TooltipContent, { children: menuLabel })
|
|
@@ -9700,7 +9700,7 @@ function MatrxDataTableCore({
|
|
|
9700
9700
|
),
|
|
9701
9701
|
selection && selectionCount > 0 ? /* @__PURE__ */ jsxs28("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: [
|
|
9702
9702
|
/* @__PURE__ */ jsxs28("span", { className: "text-xs font-medium text-foreground", children: [
|
|
9703
|
-
selectionCount
|
|
9703
|
+
formatCount3(selectionCount),
|
|
9704
9704
|
" ",
|
|
9705
9705
|
selectionNoun,
|
|
9706
9706
|
selectionCount === 1 ? "" : "s",
|
|
@@ -10379,7 +10379,7 @@ function MatrxDataTableCore({
|
|
|
10379
10379
|
}
|
|
10380
10380
|
) : null,
|
|
10381
10381
|
/* @__PURE__ */ jsxs28("div", { className: "min-w-0 flex-1", children: [
|
|
10382
|
-
/* @__PURE__ */ jsx38("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length
|
|
10382
|
+
/* @__PURE__ */ jsx38("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${formatCount3(data.length)} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${formatCount3(appendQuery.pagination.totalItems)}`}` }),
|
|
10383
10383
|
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ jsxs28("p", { children: [
|
|
10384
10384
|
"Source fixed through",
|
|
10385
10385
|
" ",
|