@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.16 — 2026-09-13
4
+
5
+ Sortable table headers now toggle directly between ascending and descending.
6
+ Clearing a sort remains available in the column menu. This fixes the misleading
7
+ first click on a table whose default sort is descending: it now visibly changes
8
+ the row order instead of clearing the sort and leaving already-descending input
9
+ unchanged.
10
+
11
+ ### Consumer action
12
+
13
+ Update to 0.18.16. No host configuration changes are required.
14
+
3
15
  ## 0.18.15
4
16
 
5
17
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -1163,13 +1163,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
1163
1163
  if (!items.length && !extra) return null;
1164
1164
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "matrx-alchemy-palette-section", children: [
1165
1165
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: title }),
1166
- items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
1167
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
1168
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
1169
- item.copyLabel ?? item.label,
1170
- item.hint ?? fallbackHint ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
1171
- ] })
1172
- ] }, item.id)),
1166
+ items.map((item) => {
1167
+ const label = item.copyLabel ?? item.label;
1168
+ const hint = item.hint ?? fallbackHint;
1169
+ return /* @__PURE__ */ (0, import_jsx_runtime8.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: [
1170
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
1171
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
1172
+ label,
1173
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
1174
+ ] })
1175
+ ] }, item.id);
1176
+ }),
1173
1177
  extra
1174
1178
  ] });
1175
1179
  }