@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.
@@ -588,13 +588,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
588
588
  if (!items.length && !extra) return null;
589
589
  return /* @__PURE__ */ jsxs5("section", { className: "matrx-alchemy-palette-section", children: [
590
590
  /* @__PURE__ */ jsx10("h3", { children: title }),
591
- items.map((item) => /* @__PURE__ */ jsxs5("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
592
- item.icon ? /* @__PURE__ */ jsx10(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx10(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
593
- /* @__PURE__ */ jsxs5("span", { children: [
594
- item.copyLabel ?? item.label,
595
- item.hint ?? fallbackHint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
596
- ] })
597
- ] }, item.id)),
591
+ items.map((item) => {
592
+ const label = item.copyLabel ?? item.label;
593
+ const hint = item.hint ?? fallbackHint;
594
+ return /* @__PURE__ */ jsxs5("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: [
595
+ item.icon ? /* @__PURE__ */ jsx10(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx10(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
596
+ /* @__PURE__ */ jsxs5("span", { children: [
597
+ label,
598
+ hint ? /* @__PURE__ */ jsx10("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
599
+ ] })
600
+ ] }, item.id);
601
+ }),
598
602
  extra
599
603
  ] });
600
604
  }