@ai-matrx/design-system 0.18.15 → 0.18.18

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.
@@ -544,13 +544,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
544
544
  if (!items.length && !extra) return null;
545
545
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { className: "matrx-alchemy-palette-section", children: [
546
546
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h3", { children: title }),
547
- items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
548
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
549
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
550
- item.copyLabel ?? item.label,
551
- item.hint ?? fallbackHint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
552
- ] })
553
- ] }, item.id)),
547
+ items.map((item) => {
548
+ const label = item.copyLabel ?? item.label;
549
+ const hint = item.hint ?? fallbackHint;
550
+ return /* @__PURE__ */ (0, import_jsx_runtime7.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: [
551
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
552
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { children: [
553
+ label,
554
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
555
+ ] })
556
+ ] }, item.id);
557
+ }),
554
558
  extra
555
559
  ] });
556
560
  }