@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.
@@ -1144,13 +1144,17 @@ function PaletteRows({ title, items, onRun, extra, ai = false, glyphKind, fallba
1144
1144
  if (!items.length && !extra) return null;
1145
1145
  return /* @__PURE__ */ jsxs4("section", { className: "matrx-alchemy-palette-section", children: [
1146
1146
  /* @__PURE__ */ jsx8("h3", { children: title }),
1147
- items.map((item) => /* @__PURE__ */ jsxs4("button", { type: "button", className: cn("matrx-alchemy-palette-row", ai && "matrx-alchemy-palette-row-ai"), "aria-label": item.ariaLabel, onClick: () => onRun?.(item), children: [
1148
- item.icon ? /* @__PURE__ */ jsx8(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx8(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
1149
- /* @__PURE__ */ jsxs4("span", { children: [
1150
- item.copyLabel ?? item.label,
1151
- item.hint ?? fallbackHint ? /* @__PURE__ */ jsx8("small", { className: "matrx-alchemy-menu-hint", children: item.hint ?? fallbackHint }) : null
1152
- ] })
1153
- ] }, item.id)),
1147
+ items.map((item) => {
1148
+ const label = item.copyLabel ?? item.label;
1149
+ const hint = item.hint ?? fallbackHint;
1150
+ return /* @__PURE__ */ jsxs4("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: [
1151
+ item.icon ? /* @__PURE__ */ jsx8(item.icon, { className: "matrx-alchemy-menu-icon" }) : /* @__PURE__ */ jsx8(PaletteGlyph, { ai, ...glyphKind ? { kind: glyphKind } : {} }),
1152
+ /* @__PURE__ */ jsxs4("span", { children: [
1153
+ label,
1154
+ hint ? /* @__PURE__ */ jsx8("small", { className: "matrx-alchemy-menu-hint", children: hint }) : null
1155
+ ] })
1156
+ ] }, item.id);
1157
+ }),
1154
1158
  extra
1155
1159
  ] });
1156
1160
  }