@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.
@@ -535,13 +535,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
535
535
  if (!items.length && !extra) return null;
536
536
  return /* @__PURE__ */ jsxs3("section", { className: "matrx-alchemy-palette-section", children: [
537
537
  /* @__PURE__ */ jsx7("h3", { children: title }),
538
- items.map((item) => /* @__PURE__ */ jsxs3("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
539
- item.icon ? /* @__PURE__ */ jsx7(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx7(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
540
- /* @__PURE__ */ jsxs3("span", { children: [
541
- item.copyLabel ?? item.label,
542
- item.hint ?? fallbackHint ? /* @__PURE__ */ jsx7("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
543
- ] })
544
- ] }, item.id)),
538
+ items.map((item) => {
539
+ const label = item.copyLabel ?? item.label;
540
+ const hint = item.hint ?? fallbackHint;
541
+ return /* @__PURE__ */ jsxs3("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: [
542
+ item.icon ? /* @__PURE__ */ jsx7(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx7(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
543
+ /* @__PURE__ */ jsxs3("span", { children: [
544
+ label,
545
+ hint ? /* @__PURE__ */ jsx7("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
546
+ ] })
547
+ ] }, item.id);
548
+ }),
545
549
  extra
546
550
  ] });
547
551
  }