@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
|
@@ -46,11 +46,13 @@ function cn(...inputs) {
|
|
|
46
46
|
// src/content-transfer/matrx-copy.tsx
|
|
47
47
|
var React9 = __toESM(require("react"), 1);
|
|
48
48
|
var import_content_transfer2 = require("@ai-matrx/kit/content-transfer");
|
|
49
|
+
var import_format2 = require("@ai-matrx/kit/format");
|
|
49
50
|
|
|
50
51
|
// src/content-transfer/index.tsx
|
|
51
52
|
var React8 = __toESM(require("react"), 1);
|
|
52
53
|
var import_react_dom = require("react-dom");
|
|
53
54
|
var import_content_transfer = require("@ai-matrx/kit/content-transfer");
|
|
55
|
+
var import_format = require("@ai-matrx/kit/format");
|
|
54
56
|
|
|
55
57
|
// src/button.tsx
|
|
56
58
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
@@ -1503,7 +1505,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1503
1505
|
void preflight();
|
|
1504
1506
|
}
|
|
1505
1507
|
}, children: [
|
|
1506
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
1508
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
1507
1509
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
1508
1510
|
menuStatus === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
1509
1511
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -1862,7 +1864,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1862
1864
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
1863
1865
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
1864
1866
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
1865
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
1867
|
+
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 ");
|
|
1866
1868
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Dialog, { open, onOpenChange: (next) => {
|
|
1867
1869
|
if (!next) close();
|
|
1868
1870
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -2615,10 +2617,10 @@ function SourceConfiguration({
|
|
|
2615
2617
|
] }) : null
|
|
2616
2618
|
] }),
|
|
2617
2619
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("p", { children: [
|
|
2618
|
-
text.length
|
|
2620
|
+
(0, import_format2.formatCount)(text.length),
|
|
2619
2621
|
" characters \xB7 approximately",
|
|
2620
2622
|
" ",
|
|
2621
|
-
Math.ceil(text.length / 4)
|
|
2623
|
+
(0, import_format2.formatCount)(Math.ceil(text.length / 4)),
|
|
2622
2624
|
" tokens"
|
|
2623
2625
|
] }),
|
|
2624
2626
|
error || buildError ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { role: "alert", children: error ?? buildError }) : null
|