@candy.thieves/ui-kit-lumos 0.0.77 → 0.0.78
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 +26 -19
- package/dist/index.js.map +1 -1
- package/dist/types/components/Header/Header.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4460,25 +4460,32 @@ var U = {
|
|
|
4460
4460
|
mobileMenu: "_mobileMenu_1t9fh_126",
|
|
4461
4461
|
mobileMenuItem: "_mobileMenuItem_1t9fh_151",
|
|
4462
4462
|
authActions: "_authActions_1t9fh_158"
|
|
4463
|
-
}, ta = ({ brandName: e = "Lumos", className: t, isAuthenticated: n = !
|
|
4464
|
-
let
|
|
4463
|
+
}, ta = ({ brandName: e = "Lumos", className: t, isAuthenticated: n = !1, logoHref: r = "/", logInLabel: i = "Log in", mobileAuthenticatedMenuItems: a, mobileMenuLabel: s = "Open menu", notificationCount: c = 0, notificationLabel: l = "Notifications", onLogInClick: p, onNotificationClick: m, onSignUpClick: h, signUpLabel: g = "Sign up", showNotifications: _ = !0, linkTag: v = "a", ...y }) => {
|
|
4464
|
+
let b = c > 0 ? `${l}, ${c} unread` : l, x = o(() => n ? a ?? [] : [{
|
|
4465
4465
|
id: "log-in",
|
|
4466
4466
|
label: i,
|
|
4467
|
-
onSelect:
|
|
4467
|
+
onSelect: p
|
|
4468
4468
|
}, {
|
|
4469
4469
|
id: "sign-up",
|
|
4470
|
-
label:
|
|
4471
|
-
onSelect:
|
|
4472
|
-
}]
|
|
4470
|
+
label: g,
|
|
4471
|
+
onSelect: h
|
|
4472
|
+
}], [
|
|
4473
|
+
n,
|
|
4474
|
+
a,
|
|
4475
|
+
i,
|
|
4476
|
+
g,
|
|
4477
|
+
p,
|
|
4478
|
+
h
|
|
4479
|
+
]);
|
|
4473
4480
|
return /* @__PURE__ */ u("header", {
|
|
4474
4481
|
className: f(G.header, t),
|
|
4475
|
-
...
|
|
4482
|
+
...y,
|
|
4476
4483
|
children: /* @__PURE__ */ d("div", {
|
|
4477
4484
|
className: G.container,
|
|
4478
4485
|
children: [/* @__PURE__ */ u(W, {
|
|
4479
4486
|
variant: "large",
|
|
4480
4487
|
className: G.logo,
|
|
4481
|
-
children: /* @__PURE__ */ u(
|
|
4488
|
+
children: /* @__PURE__ */ u(v, {
|
|
4482
4489
|
href: r,
|
|
4483
4490
|
className: G.logoLink,
|
|
4484
4491
|
children: e
|
|
@@ -4486,15 +4493,15 @@ var U = {
|
|
|
4486
4493
|
}), /* @__PURE__ */ d("div", {
|
|
4487
4494
|
className: G.actions,
|
|
4488
4495
|
children: [
|
|
4489
|
-
n && /* @__PURE__ */ u(R, {
|
|
4496
|
+
n && _ && /* @__PURE__ */ u(R, {
|
|
4490
4497
|
type: "button",
|
|
4491
4498
|
variant: "text",
|
|
4492
4499
|
className: G.notificationButton,
|
|
4493
|
-
"aria-label":
|
|
4494
|
-
onClick:
|
|
4500
|
+
"aria-label": b,
|
|
4501
|
+
onClick: m,
|
|
4495
4502
|
children: /* @__PURE__ */ u(ke, {
|
|
4496
4503
|
size: 24,
|
|
4497
|
-
msgCounter:
|
|
4504
|
+
msgCounter: c
|
|
4498
4505
|
})
|
|
4499
4506
|
}),
|
|
4500
4507
|
!n && /* @__PURE__ */ d("div", {
|
|
@@ -4503,20 +4510,20 @@ var U = {
|
|
|
4503
4510
|
type: "button",
|
|
4504
4511
|
variant: "text",
|
|
4505
4512
|
style: { minWidth: "6.25rem" },
|
|
4506
|
-
onClick:
|
|
4513
|
+
onClick: p,
|
|
4507
4514
|
children: i
|
|
4508
4515
|
}), /* @__PURE__ */ u(R, {
|
|
4509
4516
|
type: "button",
|
|
4510
4517
|
variant: "primary",
|
|
4511
4518
|
style: { minWidth: "6.25rem" },
|
|
4512
|
-
onClick:
|
|
4513
|
-
children:
|
|
4519
|
+
onClick: h,
|
|
4520
|
+
children: g
|
|
4514
4521
|
})]
|
|
4515
4522
|
}),
|
|
4516
|
-
|
|
4517
|
-
ariaLabel:
|
|
4518
|
-
items:
|
|
4519
|
-
linkTag:
|
|
4523
|
+
x.length > 0 && /* @__PURE__ */ u(Ni, {
|
|
4524
|
+
ariaLabel: s,
|
|
4525
|
+
items: x,
|
|
4526
|
+
linkTag: v,
|
|
4520
4527
|
triggerClassName: G.mobileMenuButton,
|
|
4521
4528
|
contentClassName: G.mobileMenu
|
|
4522
4529
|
})
|