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