@ai-matrx/design-system 0.18.12 → 0.18.14
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 +12 -0
- package/dist/content-transfer.cjs +31 -15
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.css +26 -7
- package/dist/content-transfer.js +31 -15
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +31 -15
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +31 -15
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +31 -15
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +31 -15
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +50 -32
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +50 -32
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.matrx-alchemy-palette-row > span { min-width: 0; }
|
|
87
87
|
.matrx-alchemy-palette-row-ai { color: hsl(var(--primary, 262 43% 51%)); }
|
|
88
88
|
.matrx-alchemy-palette :is(button:hover, button:focus-visible) { background: hsl(var(--accent, 240 5% 96%)); outline: none; }
|
|
89
|
-
.matrx-alchemy-palette :is(button:focus-visible) { box-shadow: 0 0 0 2px hsl(var(--ring, 240 5% 65%)); }
|
|
89
|
+
.matrx-alchemy-palette :is(button:focus-visible) { box-shadow: inset 0 0 0 2px hsl(var(--ring, 240 5% 65%)); }
|
|
90
90
|
.matrx-alchemy-palette-status { margin: 0.25rem 0.375rem; color: hsl(var(--muted-foreground, 240 4% 46%)); font-size: 0.75rem; }
|
|
91
91
|
.matrx-alchemy-notice,
|
|
92
92
|
.matrx-alchemy-meta {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
.matrx-alchemy-workspace-grid {
|
|
102
102
|
display: grid;
|
|
103
|
-
grid-template-columns: minmax(0, 2fr) minmax(
|
|
103
|
+
grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
|
|
104
104
|
gap: 1rem;
|
|
105
105
|
min-height: 0;
|
|
106
106
|
}
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
min-height: 0;
|
|
109
109
|
overflow: auto;
|
|
110
110
|
overscroll-behavior: contain;
|
|
111
|
-
padding
|
|
111
|
+
padding: 0.25rem;
|
|
112
112
|
}
|
|
113
113
|
.matrx-alchemy-main {
|
|
114
114
|
display: grid;
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
.matrx-alchemy-preview {
|
|
202
202
|
display: block;
|
|
203
203
|
width: 100%;
|
|
204
|
-
min-height:
|
|
204
|
+
min-height: 16rem;
|
|
205
205
|
padding: 0.75rem;
|
|
206
206
|
border: 1px solid hsl(var(--border, 240 6% 90%));
|
|
207
207
|
border-radius: 0.375rem;
|
|
@@ -323,11 +323,11 @@
|
|
|
323
323
|
margin: auto;
|
|
324
324
|
translate: none;
|
|
325
325
|
height: fit-content;
|
|
326
|
-
width: min(
|
|
326
|
+
width: min(48rem, calc(100vw - 2rem));
|
|
327
327
|
max-width: calc(100vw - 2rem);
|
|
328
|
-
padding:
|
|
328
|
+
padding: 1rem;
|
|
329
329
|
display: grid;
|
|
330
|
-
gap:
|
|
330
|
+
gap: 0.75rem;
|
|
331
331
|
}
|
|
332
332
|
[data-slot="dialog-overlay"]:has(+ .matrx-alchemy-workspace) {
|
|
333
333
|
position: fixed;
|
|
@@ -456,3 +456,22 @@
|
|
|
456
456
|
width: 0.875rem;
|
|
457
457
|
height: 0.875rem;
|
|
458
458
|
}
|
|
459
|
+
|
|
460
|
+
.matrx-alchemy-data-controls { max-height: none; }
|
|
461
|
+
.matrx-alchemy-data-controls-body { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
|
|
462
|
+
.matrx-alchemy-preview-label { display: flex; align-items: center; gap: 0.5rem; }
|
|
463
|
+
.matrx-alchemy-preview-label select { width: auto; min-width: 10rem; max-width: 100%; }
|
|
464
|
+
|
|
465
|
+
/* Subset shaping uses the same dialog chrome without recursive transfer controls. */
|
|
466
|
+
.matrx-alchemy-subset { width: min(48rem, calc(100vw - 2rem)); height: min(80dvh, 42rem); }
|
|
467
|
+
.matrx-alchemy-subset-body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.75rem; }
|
|
468
|
+
.matrx-alchemy-subset-columns { max-height: 8rem; overflow: auto; margin: 0; padding: 0.25rem; border: 0; font-size: 0.8125rem; }
|
|
469
|
+
.matrx-alchemy-subset-columns legend { font-weight: 500; }
|
|
470
|
+
.matrx-alchemy-subset-table { min-height: 18rem; overflow: hidden; }
|
|
471
|
+
.matrx-alchemy-subset-format { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; }
|
|
472
|
+
.matrx-alchemy-subset-format select { min-height: 2rem; border: 1px solid hsl(var(--border)); border-radius: 0.375rem; background: hsl(var(--background)); color: inherit; padding: 0.25rem 0.5rem; }
|
|
473
|
+
@media (max-width: 767px) { .matrx-alchemy-subset { width: 100%; } }
|
|
474
|
+
|
|
475
|
+
.matrx-alchemy-feedback { position: fixed; z-index: 10002; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.75rem; width: max-content; max-width: calc(100vw - 2rem); padding: 0.5rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 4px 16px hsl(var(--foreground) / 0.12); font-size: 0.8125rem; }
|
|
476
|
+
.matrx-alchemy-feedback button { flex-shrink: 0; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 0.25rem; background: transparent; color: inherit; cursor: pointer; }
|
|
477
|
+
.matrx-alchemy-feedback button:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -2px; }
|
package/dist/content-transfer.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// src/content-transfer/index.tsx
|
|
5
5
|
import * as React8 from "react";
|
|
6
|
+
import { createPortal } from "react-dom";
|
|
6
7
|
import {
|
|
7
8
|
applySectionSelection,
|
|
8
9
|
applyTransferLimits,
|
|
@@ -1592,7 +1593,10 @@ function ContentTransferMenuSession({ source, surface, label, projection, sectio
|
|
|
1592
1593
|
}, children: /* @__PURE__ */ jsx8(MenuPresentation, { ...action, label: action.label }) }, action.id)) }) : null
|
|
1593
1594
|
] })
|
|
1594
1595
|
] }),
|
|
1595
|
-
notice ? /* @__PURE__ */
|
|
1596
|
+
notice && triggerRef.current ? createPortal(/* @__PURE__ */ jsxs4("div", { className: "matrx-alchemy-feedback", children: [
|
|
1597
|
+
/* @__PURE__ */ jsx8("span", { role: "status", children: notice }),
|
|
1598
|
+
/* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "Dismiss Alchemy feedback", onClick: () => setNotice(null), children: "\xD7" })
|
|
1599
|
+
] }), triggerRef.current.ownerDocument.body) : null,
|
|
1596
1600
|
Object.values(workspaces).map((saved) => /* @__PURE__ */ jsx8(PreparationWorkspace, { restoreFocus: () => triggerRef.current?.focus(), open: workspaceOpen && workspaceKey === saved.key, state: saved, scopes, onClose: () => setWorkspaceOpen(false), onChange: (next) => setWorkspaces((current) => ({ ...current, [saved.key]: next })), transport, adapters, captureScope: workspaceCaptures.current.get(saved.key) ?? capturePrimary, ...ai ? { ai } : {}, onOutcome: report }, saved.key))
|
|
1597
1601
|
] });
|
|
1598
1602
|
}
|
|
@@ -1909,15 +1913,36 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1909
1913
|
/* @__PURE__ */ jsx8("input", { type: "number", min: "0", value: controls[key] ?? "", onChange: (e) => changeControls({ ...controls, [key]: Number.isNaN(e.target.valueAsNumber) ? null : e.target.valueAsNumber }) })
|
|
1910
1914
|
] }, key))
|
|
1911
1915
|
] }) : null,
|
|
1912
|
-
rows ? /* @__PURE__ */
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
+
rows ? /* @__PURE__ */ jsxs4("details", { className: "matrx-alchemy-options matrx-alchemy-data-controls", children: [
|
|
1917
|
+
/* @__PURE__ */ jsxs4("summary", { children: [
|
|
1918
|
+
"Data selection \xB7 ",
|
|
1919
|
+
controls.visibleColumns.length,
|
|
1920
|
+
" columns",
|
|
1921
|
+
controls.search || controls.sort || controls.top != null || controls.selectedOnly || Object.values(controls.filters).some(Boolean) ? " \xB7 customized" : " \xB7 all rows"
|
|
1922
|
+
] }),
|
|
1923
|
+
/* @__PURE__ */ jsx8("div", { className: "matrx-alchemy-data-controls-body", children: /* @__PURE__ */ jsx8(RowControls, { rows, controls, change: changeControls }) })
|
|
1924
|
+
] }) : null,
|
|
1925
|
+
state.snapshot.sections.length ? /* @__PURE__ */ jsxs4("details", { className: "matrx-alchemy-options", children: [
|
|
1926
|
+
/* @__PURE__ */ jsxs4("summary", { children: [
|
|
1927
|
+
"Sections \xB7 ",
|
|
1928
|
+
controls.sections.length,
|
|
1929
|
+
" included"
|
|
1930
|
+
] }),
|
|
1931
|
+
/* @__PURE__ */ jsx8("fieldset", { "aria-label": "Included sections", children: state.snapshot.sections.map((section) => /* @__PURE__ */ jsxs4("label", { children: [
|
|
1916
1932
|
/* @__PURE__ */ jsx8("input", { type: "checkbox", checked: controls.sections.includes(section.id), onChange: (e) => changeControls({ ...controls, sections: e.target.checked ? [...controls.sections, section.id] : controls.sections.filter((id) => id !== section.id) }) }),
|
|
1917
1933
|
" ",
|
|
1918
1934
|
section.label
|
|
1919
|
-
] }, section.id))
|
|
1935
|
+
] }, section.id)) })
|
|
1920
1936
|
] }) : null,
|
|
1937
|
+
/* @__PURE__ */ jsxs4("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1938
|
+
"Output format",
|
|
1939
|
+
/* @__PURE__ */ jsxs4("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1940
|
+
formats.map((f) => /* @__PURE__ */ jsx8("option", { value: f, children: LABEL[f] }, f)),
|
|
1941
|
+
state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx8("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1942
|
+
workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx8("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1943
|
+
] })
|
|
1944
|
+
] }),
|
|
1945
|
+
/* @__PURE__ */ jsx8("textarea", { className: "matrx-alchemy-preview", "aria-label": "Prepared output", "aria-invalid": bufferError ? true : void 0, "aria-describedby": bufferError ? "alchemy-buffer-error" : void 0, value: buffer, onChange: (e) => editBuffer(e.target.value) }),
|
|
1921
1946
|
/* @__PURE__ */ jsxs4("div", { className: "matrx-alchemy-coverage", children: [
|
|
1922
1947
|
/* @__PURE__ */ jsxs4("span", { children: [
|
|
1923
1948
|
state.snapshot.coverage.included.toLocaleString(),
|
|
@@ -1944,15 +1969,6 @@ function PreparationWorkspace({ restoreFocus, open, state, scopes, onClose, onCh
|
|
|
1944
1969
|
] }, `${o.path}-${o.reason}-${i}`)) })
|
|
1945
1970
|
] }) : null
|
|
1946
1971
|
] }),
|
|
1947
|
-
/* @__PURE__ */ jsxs4("label", { className: "matrx-alchemy-preview-label", children: [
|
|
1948
|
-
"Output format",
|
|
1949
|
-
/* @__PURE__ */ jsxs4("select", { "aria-label": "Output format", value: format, onChange: (e) => setFormat(e.target.value), children: [
|
|
1950
|
-
formats.map((f) => /* @__PURE__ */ jsx8("option", { value: f, children: LABEL[f] }, f)),
|
|
1951
|
-
state.draft.payload.kind === "rows" ? /* @__PURE__ */ jsx8("option", { value: "xlsx", children: "Excel workbook" }) : null,
|
|
1952
|
-
workspaceAdapters.map((adapter) => /* @__PURE__ */ jsx8("option", { value: adapter.id, children: adapter.label }, adapter.id))
|
|
1953
|
-
] })
|
|
1954
|
-
] }),
|
|
1955
|
-
/* @__PURE__ */ jsx8("textarea", { className: "matrx-alchemy-preview", "aria-label": "Prepared output", "aria-invalid": bufferError ? true : void 0, "aria-describedby": bufferError ? "alchemy-buffer-error" : void 0, value: buffer, onChange: (e) => editBuffer(e.target.value) }),
|
|
1956
1972
|
bufferError ? /* @__PURE__ */ jsx8("p", { id: "alchemy-buffer-error", role: "alert", className: "matrx-alchemy-error", children: bufferError }) : null,
|
|
1957
1973
|
formatError ? /* @__PURE__ */ jsx8("p", { role: "alert", className: "matrx-alchemy-error", children: formatError }) : null,
|
|
1958
1974
|
bufferError ? /* @__PURE__ */ jsx8(Button, { className: "matrx-alchemy-workspace-secondary", type: "button", variant: "outline", disabled: busy !== null, onClick: () => {
|