@ai-matrx/design-system 0.18.15 → 0.18.16
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 +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 +12 -8
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +12 -8
- 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/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
|
}
|
|
@@ -8676,7 +8680,7 @@ function MatrxDataTableCore({
|
|
|
8676
8680
|
setSort({ id, direction: "desc" });
|
|
8677
8681
|
return;
|
|
8678
8682
|
}
|
|
8679
|
-
setSort(
|
|
8683
|
+
setSort({ id, direction: "asc" });
|
|
8680
8684
|
},
|
|
8681
8685
|
filterKind: meta?.kind ?? null,
|
|
8682
8686
|
filterValue: columnFilters[id],
|