@candy.thieves/ui-kit-lumos 0.0.35 → 0.0.37

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.js CHANGED
@@ -4431,25 +4431,25 @@ var Ti = { button: "_button_1sk9f_1" }, Ei = ({ text: e, maxLength: t, expandLab
4431
4431
  activeItem: "_activeItem_watj5_118",
4432
4432
  disabled: "_disabled_watj5_131",
4433
4433
  line: "_line_watj5_137"
4434
- }, Ni = ({ items: e, activeId: t, onValueChange: n, onLogout: r, logOutIcon: i }) => /* @__PURE__ */ u("nav", {
4434
+ }, Ni = ({ items: e, userId: t, activeId: n, onValueChange: r, onLogout: i, logOutIcon: a }) => /* @__PURE__ */ u("nav", {
4435
4435
  className: X.navBar,
4436
4436
  children: [
4437
4437
  /* @__PURE__ */ l("ul", { children: e.map((e) => {
4438
- let r = t === e.id, i = !!e.disabled, { handleClick: a, resolvedHref: o } = mi(e.href, () => n?.(e.id));
4438
+ let i = n === e.id, a = !!e.disabled, { handleClick: o, resolvedHref: s } = mi(typeof e.href == "function" ? t ? e.href(t) : void 0 : e.href, () => r?.(e.id));
4439
4439
  return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ u(N, {
4440
4440
  as: "a",
4441
- href: i ? void 0 : o,
4442
- className: d(X.navItem, r && X.activeItem, i && X.disabled),
4441
+ href: a ? void 0 : s,
4442
+ className: d(X.navItem, i && X.activeItem, a && X.disabled),
4443
4443
  onClick: (e) => {
4444
- if (i) {
4444
+ if (a) {
4445
4445
  e.preventDefault();
4446
4446
  return;
4447
4447
  }
4448
- a(e);
4448
+ o(e);
4449
4449
  },
4450
- tabIndex: i ? oe.DISABLED : oe.ENABLED,
4451
- "aria-disabled": i,
4452
- children: [r && e.activeIcon ? e.activeIcon : e.icon, /* @__PURE__ */ l(V, {
4450
+ tabIndex: a ? oe.DISABLED : oe.ENABLED,
4451
+ "aria-disabled": a,
4452
+ children: [i && e.activeIcon ? e.activeIcon : e.icon, /* @__PURE__ */ l(V, {
4453
4453
  variant: "body2",
4454
4454
  children: e.label
4455
4455
  })]
@@ -4458,8 +4458,8 @@ var Ti = { button: "_button_1sk9f_1" }, Ei = ({ text: e, maxLength: t, expandLab
4458
4458
  /* @__PURE__ */ u(N, {
4459
4459
  type: "button",
4460
4460
  className: X.logOutBtn,
4461
- onClick: r,
4462
- children: [i, /* @__PURE__ */ l(V, {
4461
+ onClick: i,
4462
+ children: [a, /* @__PURE__ */ l(V, {
4463
4463
  variant: "body2",
4464
4464
  children: "Log Out"
4465
4465
  })]