@ai-matrx/design-system 0.18.15 → 0.18.18
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 +24 -0
- package/dist/content-transfer.cjs +11 -7
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +11 -7
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +11 -7
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +11 -7
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +11 -7
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +11 -7
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +19 -9
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +19 -9
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +20 -20
|
@@ -2039,13 +2039,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
2039
2039
|
if (!items.length && !extra) return null;
|
|
2040
2040
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("section", { className: "matrx-alchemy-palette-section", children: [
|
|
2041
2041
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { children: title }),
|
|
2042
|
-
items.map((item) =>
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
item.
|
|
2047
|
-
|
|
2048
|
-
|
|
2042
|
+
items.map((item) => {
|
|
2043
|
+
const label = item.copyLabel ?? item.label;
|
|
2044
|
+
const hint = item.hint ?? fallbackHint;
|
|
2045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel ?? `${label}${hint ? ` ${hint}` : ""}`, onClick: () => onRun?.(item), children: [
|
|
2046
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
2047
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { children: [
|
|
2048
|
+
label,
|
|
2049
|
+
hint ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
2050
|
+
] })
|
|
2051
|
+
] }, item.id);
|
|
2052
|
+
}),
|
|
2049
2053
|
extra
|
|
2050
2054
|
] });
|
|
2051
2055
|
}
|
|
@@ -7261,6 +7265,12 @@ function MatrxDataTableCore({
|
|
|
7261
7265
|
...appendQuery?.scroll
|
|
7262
7266
|
});
|
|
7263
7267
|
const rootRef = (0, import_react13.useRef)(null);
|
|
7268
|
+
const setDiagnosticBoundaryRef = (0, import_react13.useCallback)((node) => {
|
|
7269
|
+
rootRef.current = node;
|
|
7270
|
+
if (!node) return;
|
|
7271
|
+
node.style.setProperty("outline", "2px solid #2563eb", "important");
|
|
7272
|
+
node.style.setProperty("outline-offset", "-2px", "important");
|
|
7273
|
+
}, []);
|
|
7264
7274
|
useClippedContentGuard(rootRef, {
|
|
7265
7275
|
label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
|
|
7266
7276
|
});
|
|
@@ -8128,7 +8138,7 @@ function MatrxDataTableCore({
|
|
|
8128
8138
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
8129
8139
|
"div",
|
|
8130
8140
|
{
|
|
8131
|
-
ref:
|
|
8141
|
+
ref: setDiagnosticBoundaryRef,
|
|
8132
8142
|
"data-matrx-table": true,
|
|
8133
8143
|
"data-url-state-table": urlState?.id,
|
|
8134
8144
|
className: cn(
|
|
@@ -8670,7 +8680,7 @@ function MatrxDataTableCore({
|
|
|
8670
8680
|
setSort({ id, direction: "desc" });
|
|
8671
8681
|
return;
|
|
8672
8682
|
}
|
|
8673
|
-
setSort(
|
|
8683
|
+
setSort({ id, direction: "asc" });
|
|
8674
8684
|
},
|
|
8675
8685
|
filterKind: meta?.kind ?? null,
|
|
8676
8686
|
filterValue: columnFilters[id],
|