@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
package/dist/data-table/index.js
CHANGED
|
@@ -2029,13 +2029,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
|
|
|
2029
2029
|
if (!items.length && !extra) return null;
|
|
2030
2030
|
return /* @__PURE__ */ jsxs13("section", { className: "matrx-alchemy-palette-section", children: [
|
|
2031
2031
|
/* @__PURE__ */ jsx21("h3", { children: title }),
|
|
2032
|
-
items.map((item) =>
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
item.
|
|
2037
|
-
|
|
2038
|
-
|
|
2032
|
+
items.map((item) => {
|
|
2033
|
+
const label = item.copyLabel ?? item.label;
|
|
2034
|
+
const hint = item.hint ?? fallbackHint;
|
|
2035
|
+
return /* @__PURE__ */ jsxs13("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: [
|
|
2036
|
+
item.icon ? /* @__PURE__ */ jsx21(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx21(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
|
|
2037
|
+
/* @__PURE__ */ jsxs13("span", { children: [
|
|
2038
|
+
label,
|
|
2039
|
+
hint ? /* @__PURE__ */ jsx21("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
|
|
2040
|
+
] })
|
|
2041
|
+
] }, item.id);
|
|
2042
|
+
}),
|
|
2039
2043
|
extra
|
|
2040
2044
|
] });
|
|
2041
2045
|
}
|
|
@@ -7267,6 +7271,12 @@ function MatrxDataTableCore({
|
|
|
7267
7271
|
...appendQuery?.scroll
|
|
7268
7272
|
});
|
|
7269
7273
|
const rootRef = useRef6(null);
|
|
7274
|
+
const setDiagnosticBoundaryRef = useCallback4((node) => {
|
|
7275
|
+
rootRef.current = node;
|
|
7276
|
+
if (!node) return;
|
|
7277
|
+
node.style.setProperty("outline", "2px solid #2563eb", "important");
|
|
7278
|
+
node.style.setProperty("outline-offset", "-2px", "important");
|
|
7279
|
+
}, []);
|
|
7270
7280
|
useClippedContentGuard(rootRef, {
|
|
7271
7281
|
label: typeof copy === "object" && copy.listLabel ? `Table: ${copy.listLabel}` : "MatrxDataTable"
|
|
7272
7282
|
});
|
|
@@ -8134,7 +8144,7 @@ function MatrxDataTableCore({
|
|
|
8134
8144
|
/* @__PURE__ */ jsxs26(
|
|
8135
8145
|
"div",
|
|
8136
8146
|
{
|
|
8137
|
-
ref:
|
|
8147
|
+
ref: setDiagnosticBoundaryRef,
|
|
8138
8148
|
"data-matrx-table": true,
|
|
8139
8149
|
"data-url-state-table": urlState?.id,
|
|
8140
8150
|
className: cn(
|
|
@@ -8676,7 +8686,7 @@ function MatrxDataTableCore({
|
|
|
8676
8686
|
setSort({ id, direction: "desc" });
|
|
8677
8687
|
return;
|
|
8678
8688
|
}
|
|
8679
|
-
setSort(
|
|
8689
|
+
setSort({ id, direction: "asc" });
|
|
8680
8690
|
},
|
|
8681
8691
|
filterKind: meta?.kind ?? null,
|
|
8682
8692
|
filterValue: columnFilters[id],
|