@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
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
normalizeTransferJson,
|
|
18
18
|
sealTransferArtifact as sealTransferArtifact2
|
|
19
19
|
} from "@ai-matrx/kit/content-transfer";
|
|
20
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
20
21
|
|
|
21
22
|
// src/content-transfer/index.tsx
|
|
22
23
|
import * as React8 from "react";
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
transformRows,
|
|
44
45
|
undoDraft
|
|
45
46
|
} from "@ai-matrx/kit/content-transfer";
|
|
47
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
46
48
|
|
|
47
49
|
// src/button.tsx
|
|
48
50
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -1499,7 +1501,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1499
1501
|
void preflight();
|
|
1500
1502
|
}
|
|
1501
1503
|
}, children: [
|
|
1502
|
-
/* @__PURE__ */ jsx9(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx9(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx9(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ jsx9(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx9(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
1504
|
+
/* @__PURE__ */ jsx9(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx9(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx9(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ jsx9(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx9(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
1503
1505
|
/* @__PURE__ */ jsxs4(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
1504
1506
|
menuStatus === "loading" ? /* @__PURE__ */ jsx9("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ jsx9("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
1505
1507
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ jsxs4("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -1858,7 +1860,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1858
1860
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
1859
1861
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
1860
1862
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
1861
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
1863
|
+
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${formatCount(Number(value))}`).join(" \xB7 ");
|
|
1862
1864
|
return /* @__PURE__ */ jsx9(Dialog, { open, onOpenChange: (next) => {
|
|
1863
1865
|
if (!next) close();
|
|
1864
1866
|
}, children: /* @__PURE__ */ jsxs4(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -2611,10 +2613,10 @@ function SourceConfiguration({
|
|
|
2611
2613
|
] }) : null
|
|
2612
2614
|
] }),
|
|
2613
2615
|
/* @__PURE__ */ jsxs5("p", { children: [
|
|
2614
|
-
text.length
|
|
2616
|
+
formatCount2(text.length),
|
|
2615
2617
|
" characters \xB7 approximately",
|
|
2616
2618
|
" ",
|
|
2617
|
-
Math.ceil(text.length / 4)
|
|
2619
|
+
formatCount2(Math.ceil(text.length / 4)),
|
|
2618
2620
|
" tokens"
|
|
2619
2621
|
] }),
|
|
2620
2622
|
error || buildError ? /* @__PURE__ */ jsx10("p", { role: "alert", children: error ?? buildError }) : null
|