@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
package/dist/content-transfer.js
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
transformRows,
|
|
27
27
|
undoDraft
|
|
28
28
|
} from "@ai-matrx/kit/content-transfer";
|
|
29
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
29
30
|
|
|
30
31
|
// src/button.tsx
|
|
31
32
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -994,6 +995,7 @@ import {
|
|
|
994
995
|
normalizeTransferJson,
|
|
995
996
|
sealTransferArtifact
|
|
996
997
|
} from "@ai-matrx/kit/content-transfer";
|
|
998
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
997
999
|
import { Fragment, jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
998
1000
|
var resolve = (value) => typeof value === "function" ? value() : value;
|
|
999
1001
|
var asPayload = (value) => ({
|
|
@@ -1487,10 +1489,10 @@ function SourceConfiguration({
|
|
|
1487
1489
|
] }) : null
|
|
1488
1490
|
] }),
|
|
1489
1491
|
/* @__PURE__ */ jsxs4("p", { children: [
|
|
1490
|
-
text.length
|
|
1492
|
+
formatCount(text.length),
|
|
1491
1493
|
" characters \xB7 approximately",
|
|
1492
1494
|
" ",
|
|
1493
|
-
Math.ceil(text.length / 4)
|
|
1495
|
+
formatCount(Math.ceil(text.length / 4)),
|
|
1494
1496
|
" tokens"
|
|
1495
1497
|
] }),
|
|
1496
1498
|
error || buildError ? /* @__PURE__ */ jsx9("p", { role: "alert", children: error ?? buildError }) : null
|
|
@@ -2109,7 +2111,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
2109
2111
|
void preflight();
|
|
2110
2112
|
}
|
|
2111
2113
|
}, children: [
|
|
2112
|
-
/* @__PURE__ */ jsx10(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx10(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx10(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ jsx10(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx10(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
2114
|
+
/* @__PURE__ */ jsx10(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ jsx10(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ jsx10(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ jsx10(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ jsx10(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
2113
2115
|
/* @__PURE__ */ jsxs5(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
2114
2116
|
menuStatus === "loading" ? /* @__PURE__ */ jsx10("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ jsx10("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
2115
2117
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ jsxs5("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -2468,7 +2470,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
2468
2470
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
2469
2471
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
2470
2472
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
2471
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
2473
|
+
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${formatCount2(Number(value))}`).join(" \xB7 ");
|
|
2472
2474
|
return /* @__PURE__ */ jsx10(Dialog, { open, onOpenChange: (next) => {
|
|
2473
2475
|
if (!next) close();
|
|
2474
2476
|
}, children: /* @__PURE__ */ jsxs5(DialogContent, { onCloseAutoFocus: (event) => {
|