@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.
@@ -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) => /* @__PURE__ */ jsxs13("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
2033
- item.icon ? /* @__PURE__ */ jsx21(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx21(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
2034
- /* @__PURE__ */ jsxs13("span", { children: [
2035
- item.copyLabel ?? item.label,
2036
- item.hint ?? fallbackHint ? /* @__PURE__ */ jsx21("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
2037
- ] })
2038
- ] }, item.id)),
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(null);
8683
+ setSort({ id, direction: "asc" });
8680
8684
  },
8681
8685
  filterKind: meta?.kind ?? null,
8682
8686
  filterValue: columnFilters[id],