@candy.thieves/ui-kit-lumos 0.0.47 → 0.0.49

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
@@ -3978,19 +3978,19 @@ var _i = "#", vi = (e, t) => {
3978
3978
  navItem: "_navItem_1411h_70",
3979
3979
  activeItem: "_activeItem_1411h_88",
3980
3980
  line: "_line_1411h_92"
3981
- }, yi = ({ items: e, activeId: t, onValueChange: n }) => /* @__PURE__ */ l("div", { children: /* @__PURE__ */ u("nav", {
3981
+ }, yi = ({ userId: e, items: t, activeId: n, onValueChange: r, linkTag: i = "a" }) => /* @__PURE__ */ l("div", { children: /* @__PURE__ */ u("nav", {
3982
3982
  className: W.navBar,
3983
3983
  children: [/* @__PURE__ */ l("ul", {
3984
3984
  className: W.list,
3985
- children: e.map((e) => {
3986
- let r = t === e.id, { handleClick: i, resolvedHref: a } = vi(e.href, () => n?.(e.id));
3985
+ children: t.map((t) => {
3986
+ let a = n === t.id, { handleClick: o, resolvedHref: s } = vi(typeof t.href == "function" ? e ? t.href(e) : void 0 : t.href, () => r?.(t.id));
3987
3987
  return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(j, {
3988
- as: "a",
3989
- href: a,
3990
- className: d(W.navItem, r && W.activeItem),
3991
- onClick: i,
3992
- children: r && e.activeIcon ? e.activeIcon : e.icon
3993
- }) }, e.id);
3988
+ as: i,
3989
+ href: s,
3990
+ className: d(W.navItem, a && W.activeItem),
3991
+ onClick: o,
3992
+ children: a && t.activeIcon ? t.activeIcon : t.icon
3993
+ }) }, t.id);
3994
3994
  })
3995
3995
  }), /* @__PURE__ */ l("div", { className: W.line })]
3996
3996
  }) }), G = {
@@ -4198,7 +4198,7 @@ var Ei = { iconButton: "_iconButton_iqf7o_55" }, Di = ({ ...e }) => {
4198
4198
  });
4199
4199
  });
4200
4200
  Oi.displayName = "RadioGroup";
4201
- var ki = { button: "_button_1sk9f_1" }, Ai = ({ text: e, maxLength: t, expandLabel: n = "Show more", collapseLabel: r = "Hide", className: i, onExpandedChange: a }) => {
4201
+ var ki = { button: "_button_11i5l_1" }, Ai = ({ text: e, maxLength: t, expandLabel: n = "Show more", collapseLabel: r = "Hide", className: i, onExpandedChange: a }) => {
4202
4202
  let [o, c] = s(!1);
4203
4203
  return e.length > t ? /* @__PURE__ */ u(z, {
4204
4204
  className: i,
@@ -4207,7 +4207,6 @@ var ki = { button: "_button_1sk9f_1" }, Ai = ({ text: e, maxLength: t, expandLab
4207
4207
  o ? e : ee(e, t),
4208
4208
  " ",
4209
4209
  /* @__PURE__ */ l(j, {
4210
- as: "a",
4211
4210
  className: d("typography-link", ki.button),
4212
4211
  onClick: () => {
4213
4212
  let e = !o;