@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
|
@@ -411,11 +411,13 @@ function useMatrxDataTableHost() {
|
|
|
411
411
|
// src/content-transfer/matrx-copy.tsx
|
|
412
412
|
var React9 = __toESM(require("react"), 1);
|
|
413
413
|
var import_content_transfer2 = require("@ai-matrx/kit/content-transfer");
|
|
414
|
+
var import_format2 = require("@ai-matrx/kit/format");
|
|
414
415
|
|
|
415
416
|
// src/content-transfer/index.tsx
|
|
416
417
|
var React8 = __toESM(require("react"), 1);
|
|
417
418
|
var import_react_dom = require("react-dom");
|
|
418
419
|
var import_content_transfer = require("@ai-matrx/kit/content-transfer");
|
|
420
|
+
var import_format = require("@ai-matrx/kit/format");
|
|
419
421
|
|
|
420
422
|
// src/button.tsx
|
|
421
423
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
@@ -1554,7 +1556,7 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1554
1556
|
void preflight();
|
|
1555
1557
|
}
|
|
1556
1558
|
}, children: [
|
|
1557
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass" }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent" }) }),
|
|
1559
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(PopoverTrigger, { asChild: true, children: triggerVariant === "glass" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TapTargetButton, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "glass", disabled }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(TapTargetButtonTransparent, { ref: triggerRef, icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlchemyGlyph, { icon }), tooltip: false, ariaLabel: `Copy, transform or export ${sourceLabel}`, "data-alchemy-trigger": "transparent", disabled }) }),
|
|
1558
1560
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(PopoverContent, { align: "end", className: "matrx-alchemy-menu matrx-alchemy-palette", "aria-label": "Alchemy output options", onCloseAutoFocus: () => triggerRef.current?.focus(), children: [
|
|
1559
1561
|
menuStatus === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "matrx-alchemy-palette-status", children: "Inspecting content\u2026" }) : menuStatus !== "idle" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "matrx-alchemy-error", children: menuStatus }) : null,
|
|
1560
1562
|
copyAvailable || downloadAvailable ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { className: "matrx-alchemy-output", children: [
|
|
@@ -1913,7 +1915,7 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1913
1915
|
const formats = COPIES.filter((f) => supportsBuiltIn(f, state.draft.payload));
|
|
1914
1916
|
const workspaceAdapters = adapters.filter((adapter) => adapter.supports(state.draft.payload));
|
|
1915
1917
|
const displayedOmissions = preparedArtifact?.omissions ?? state.draft.omissions;
|
|
1916
|
-
const limitText = Object.entries(state.preferences.limits).filter(([, value]) => value != null).map(([key, value]) => `${key.replace(/^max/, "max ")} ${Number(value)
|
|
1918
|
+
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 ");
|
|
1917
1919
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Dialog, { open, onOpenChange: (next) => {
|
|
1918
1920
|
if (!next) close();
|
|
1919
1921
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogContent, { onCloseAutoFocus: (event) => {
|
|
@@ -2666,10 +2668,10 @@ function SourceConfiguration({
|
|
|
2666
2668
|
] }) : null
|
|
2667
2669
|
] }),
|
|
2668
2670
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { children: [
|
|
2669
|
-
text.length
|
|
2671
|
+
(0, import_format2.formatCount)(text.length),
|
|
2670
2672
|
" characters \xB7 approximately",
|
|
2671
2673
|
" ",
|
|
2672
|
-
Math.ceil(text.length / 4)
|
|
2674
|
+
(0, import_format2.formatCount)(Math.ceil(text.length / 4)),
|
|
2673
2675
|
" tokens"
|
|
2674
2676
|
] }),
|
|
2675
2677
|
error || buildError ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { role: "alert", children: error ?? buildError }) : null
|