achery-ui 0.11.2 → 0.12.0

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.
package/dist/index.cjs CHANGED
@@ -2192,8 +2192,17 @@ function NavGroup({ label: label4, items, activeId, onItemClick, renderLink, col
2192
2192
  ] });
2193
2193
  }
2194
2194
  function NavItem({ item: item2, active, onClick, renderLink, collapsed }) {
2195
+ const leading = item2.icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: item2.icon }) : item2.glyph ? /* @__PURE__ */ jsxRuntime.jsx(
2196
+ Glyph,
2197
+ {
2198
+ name: item2.glyph,
2199
+ size: 14,
2200
+ "aria-hidden": "true",
2201
+ ...item2.iconColor ? { style: { color: item2.iconColor } } : {}
2202
+ }
2203
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", {});
2195
2204
  const content3 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2196
- item2.glyph ? /* @__PURE__ */ jsxRuntime.jsx(Glyph, { name: item2.glyph, size: 14, "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
2205
+ leading,
2197
2206
  !collapsed && /* @__PURE__ */ jsxRuntime.jsx("span", { children: item2.label }),
2198
2207
  !collapsed && item2.count !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: item2.countTone === "accent" ? countAccent : navItemCount, children: item2.count })
2199
2208
  ] });