@candy.thieves/ui-kit-lumos 0.0.66 → 0.0.67

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
@@ -3434,49 +3434,53 @@ var R = {
3434
3434
  });
3435
3435
  pi.displayName = "ButtonLegacy";
3436
3436
  var mi = {
3437
- trigger: "_trigger_bqvgk_55",
3438
- content: "_content_bqvgk_75",
3439
- item: "_item_bqvgk_86",
3440
- itemIcon: "_itemIcon_bqvgk_107",
3441
- itemLabel: "_itemLabel_bqvgk_115"
3442
- }, hi = ({ ariaLabel: e, className: t, contentClassName: n, contentProps: r, itemClassName: i, items: a, modal: o = !0, portalProps: s, trigger: c, triggerClassName: l, ...p }) => {
3443
- let { align: m = "end", className: h, side: _ = "bottom", sideOffset: v = 6, ...y } = r ?? {};
3437
+ trigger: "_trigger_1vq4m_55",
3438
+ content: "_content_1vq4m_75",
3439
+ item: "_item_1vq4m_86",
3440
+ itemIcon: "_itemIcon_1vq4m_108",
3441
+ itemLabel: "_itemLabel_1vq4m_116"
3442
+ }, hi = ({ ariaLabel: e, className: t, contentClassName: n, contentProps: r, itemClassName: i, items: a, linkTag: o = "a", modal: s = !0, portalProps: c, trigger: p, triggerClassName: m, ...h }) => {
3443
+ let { align: _ = "end", className: v, side: y = "bottom", sideOffset: b = 6, ...x } = r ?? {};
3444
3444
  return /* @__PURE__ */ d(g.Root, {
3445
- modal: o,
3446
- ...p,
3445
+ modal: s,
3446
+ ...h,
3447
3447
  children: [/* @__PURE__ */ u(g.Trigger, {
3448
3448
  asChild: !0,
3449
- children: c ?? /* @__PURE__ */ u(z, {
3449
+ children: p ?? /* @__PURE__ */ u(z, {
3450
3450
  type: "button",
3451
3451
  variant: "text",
3452
- className: f(mi.trigger, l),
3452
+ className: f(mi.trigger, m),
3453
3453
  "aria-label": e,
3454
3454
  children: /* @__PURE__ */ u(On, { size: 24 })
3455
3455
  })
3456
3456
  }), /* @__PURE__ */ u(g.Portal, {
3457
- ...s,
3457
+ ...c,
3458
3458
  children: /* @__PURE__ */ u(g.Content, {
3459
- className: f(mi.content, t, n, h),
3460
- side: _,
3461
- align: m,
3462
- sideOffset: v,
3463
- ...y,
3459
+ className: f(mi.content, t, n, v),
3460
+ side: y,
3461
+ align: _,
3462
+ sideOffset: b,
3463
+ ...x,
3464
3464
  children: a.map((e) => {
3465
- let { className: t, ...n } = e.itemProps ?? {};
3466
- return /* @__PURE__ */ d(g.Item, {
3465
+ let { className: t, ...n } = e.itemProps ?? {}, r = e.disabled ? void 0 : e.href, a = /* @__PURE__ */ d(l, { children: [e.icon && /* @__PURE__ */ u("span", {
3466
+ className: mi.itemIcon,
3467
+ "aria-hidden": !0,
3468
+ children: e.icon
3469
+ }), /* @__PURE__ */ u("span", {
3470
+ className: mi.itemLabel,
3471
+ children: e.label
3472
+ })] });
3473
+ return /* @__PURE__ */ u(g.Item, {
3474
+ asChild: !!r,
3467
3475
  disabled: e.disabled,
3468
3476
  textValue: e.textValue,
3469
3477
  className: f(mi.item, "typography-body1", i, t),
3470
3478
  onSelect: e.onSelect,
3471
3479
  ...n,
3472
- children: [e.icon && /* @__PURE__ */ u("span", {
3473
- className: mi.itemIcon,
3474
- "aria-hidden": !0,
3475
- children: e.icon
3476
- }), /* @__PURE__ */ u("span", {
3477
- className: mi.itemLabel,
3478
- children: e.label
3479
- })]
3480
+ children: r ? /* @__PURE__ */ u(o, {
3481
+ href: r,
3482
+ children: a
3483
+ }) : a
3480
3484
  }, e.id);
3481
3485
  })
3482
3486
  })
@@ -4262,16 +4266,16 @@ var W = {
4262
4266
  children: n
4263
4267
  });
4264
4268
  }, K = {
4265
- header: "_header_1abkx_55",
4266
- container: "_container_1abkx_23",
4267
- logo: "_logo_1abkx_85",
4268
- logoLink: "_logoLink_1abkx_89",
4269
- actions: "_actions_1abkx_99",
4270
- notificationButton: "_notificationButton_1abkx_106",
4271
- mobileMenuButton: "_mobileMenuButton_1abkx_126",
4272
- mobileMenu: "_mobileMenu_1abkx_126",
4273
- mobileMenuItem: "_mobileMenuItem_1abkx_151",
4274
- authActions: "_authActions_1abkx_158"
4269
+ header: "_header_10hvk_55",
4270
+ container: "_container_10hvk_23",
4271
+ logo: "_logo_10hvk_85",
4272
+ logoLink: "_logoLink_10hvk_89",
4273
+ actions: "_actions_10hvk_99",
4274
+ notificationButton: "_notificationButton_10hvk_106",
4275
+ mobileMenuButton: "_mobileMenuButton_10hvk_126",
4276
+ mobileMenu: "_mobileMenu_10hvk_126",
4277
+ mobileMenuItem: "_mobileMenuItem_10hvk_151",
4278
+ authActions: "_authActions_10hvk_158"
4275
4279
  }, Li = ({ brandName: e = "Lumos", className: t, isAuthenticated: n = !0, logoHref: r = "/", logInLabel: i = "Log in", mobileAuthenticatedMenuItems: a, mobileMenuLabel: o = "Open menu", notificationCount: s = 0, notificationLabel: c = "Notifications", onLogInClick: l, onNotificationClick: p, onSignUpClick: m, signUpLabel: h = "Sign up", linkTag: g = "a", ..._ }) => {
4276
4280
  let v = s > 0 ? `${c}, ${s} unread` : c, y = [{
4277
4281
  id: "log-in",
@@ -4332,6 +4336,7 @@ var W = {
4332
4336
  /* @__PURE__ */ u(hi, {
4333
4337
  ariaLabel: o,
4334
4338
  items: x,
4339
+ linkTag: g,
4335
4340
  triggerClassName: K.mobileMenuButton,
4336
4341
  contentClassName: K.mobileMenu
4337
4342
  })