@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
|
@@ -384,6 +384,7 @@ import {
|
|
|
384
384
|
normalizeTransferJson,
|
|
385
385
|
sealTransferArtifact as sealTransferArtifact2
|
|
386
386
|
} from "@ai-matrx/kit/content-transfer";
|
|
387
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
387
388
|
|
|
388
389
|
// src/content-transfer/index.tsx
|
|
389
390
|
import * as React8 from "react";
|
|
@@ -410,6 +411,7 @@ import {
|
|
|
410
411
|
transformRows,
|
|
411
412
|
undoDraft
|
|
412
413
|
} from "@ai-matrx/kit/content-transfer";
|
|
414
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
413
415
|
|
|
414
416
|
// src/button.tsx
|
|
415
417
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -1552,7 +1554,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1552
1554
|
void preflight();
|
|
1553
1555
|
}
|
|
1554
1556
|
}, children: [
|
|
1555
|
-
/* @__PURE__ */ jsx12(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx12(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx12(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ jsx12(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx12(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
1557
|
+
/* @__PURE__ */ jsx12(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx12(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx12(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ jsx12(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx12(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
1556
1558
|
/* @__PURE__ */ jsxs6(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
1557
1559
|
menuStatus === "loading" ? /* @__PURE__ */ jsx12("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ jsx12("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
1558
1560
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ jsxs6("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -1911,7 +1913,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1911
1913
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
1912
1914
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
1913
1915
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
1914
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
1916
|
+
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${formatCount(Number(value))}`).join(" \xB7 ");
|
|
1915
1917
|
return /* @__PURE__ */ jsx12(Dialog, { open, onOpenChange: (next) => {
|
|
1916
1918
|
if (!next) close();
|
|
1917
1919
|
}, children: /* @__PURE__ */ jsxs6(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -2664,10 +2666,10 @@ function SourceConfiguration({
|
|
|
2664
2666
|
] }) : null
|
|
2665
2667
|
] }),
|
|
2666
2668
|
/* @__PURE__ */ jsxs7("p", { children: [
|
|
2667
|
-
text.length
|
|
2669
|
+
formatCount2(text.length),
|
|
2668
2670
|
" characters \xB7 approximately",
|
|
2669
2671
|
" ",
|
|
2670
|
-
Math.ceil(text.length / 4)
|
|
2672
|
+
formatCount2(Math.ceil(text.length / 4)),
|
|
2671
2673
|
" tokens"
|
|
2672
2674
|
] }),
|
|
2673
2675
|
error || buildError ? /* @__PURE__ */ jsx13("p", { role: "alert", children: error ?? buildError }) : null
|