@candy.thieves/ui-kit-lumos 0.0.75 → 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.css +1 -1
- package/dist/index.js +35 -32
- 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
|
@@ -4450,39 +4450,42 @@ var U = {
|
|
|
4450
4450
|
children: n
|
|
4451
4451
|
});
|
|
4452
4452
|
}, G = {
|
|
4453
|
-
header: "
|
|
4454
|
-
container: "
|
|
4455
|
-
logo: "
|
|
4456
|
-
logoLink: "
|
|
4457
|
-
actions: "
|
|
4458
|
-
notificationButton: "
|
|
4459
|
-
mobileMenuButton: "
|
|
4460
|
-
mobileMenu: "
|
|
4461
|
-
mobileMenuItem: "
|
|
4462
|
-
authActions: "
|
|
4463
|
-
}, ta = ({ brandName: e = "Lumos", className: t, isAuthenticated: n = !
|
|
4464
|
-
let
|
|
4453
|
+
header: "_header_1t9fh_55",
|
|
4454
|
+
container: "_container_1t9fh_23",
|
|
4455
|
+
logo: "_logo_1t9fh_85",
|
|
4456
|
+
logoLink: "_logoLink_1t9fh_89",
|
|
4457
|
+
actions: "_actions_1t9fh_99",
|
|
4458
|
+
notificationButton: "_notificationButton_1t9fh_106",
|
|
4459
|
+
mobileMenuButton: "_mobileMenuButton_1t9fh_126",
|
|
4460
|
+
mobileMenu: "_mobileMenu_1t9fh_126",
|
|
4461
|
+
mobileMenuItem: "_mobileMenuItem_1t9fh_151",
|
|
4462
|
+
authActions: "_authActions_1t9fh_158"
|
|
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
|
-
}],
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4470
|
+
label: g,
|
|
4471
|
+
onSelect: h
|
|
4472
|
+
}], [
|
|
4473
|
+
n,
|
|
4474
|
+
a,
|
|
4475
|
+
i,
|
|
4476
|
+
g,
|
|
4477
|
+
p,
|
|
4478
|
+
h
|
|
4479
|
+
]);
|
|
4477
4480
|
return /* @__PURE__ */ u("header", {
|
|
4478
4481
|
className: f(G.header, t),
|
|
4479
|
-
...
|
|
4482
|
+
...y,
|
|
4480
4483
|
children: /* @__PURE__ */ d("div", {
|
|
4481
4484
|
className: G.container,
|
|
4482
4485
|
children: [/* @__PURE__ */ u(W, {
|
|
4483
4486
|
variant: "large",
|
|
4484
4487
|
className: G.logo,
|
|
4485
|
-
children: /* @__PURE__ */ u(
|
|
4488
|
+
children: /* @__PURE__ */ u(v, {
|
|
4486
4489
|
href: r,
|
|
4487
4490
|
className: G.logoLink,
|
|
4488
4491
|
children: e
|
|
@@ -4490,15 +4493,15 @@ var U = {
|
|
|
4490
4493
|
}), /* @__PURE__ */ d("div", {
|
|
4491
4494
|
className: G.actions,
|
|
4492
4495
|
children: [
|
|
4493
|
-
n && /* @__PURE__ */ u(R, {
|
|
4496
|
+
n && _ && /* @__PURE__ */ u(R, {
|
|
4494
4497
|
type: "button",
|
|
4495
4498
|
variant: "text",
|
|
4496
4499
|
className: G.notificationButton,
|
|
4497
|
-
"aria-label":
|
|
4498
|
-
onClick:
|
|
4500
|
+
"aria-label": b,
|
|
4501
|
+
onClick: m,
|
|
4499
4502
|
children: /* @__PURE__ */ u(ke, {
|
|
4500
4503
|
size: 24,
|
|
4501
|
-
msgCounter:
|
|
4504
|
+
msgCounter: c
|
|
4502
4505
|
})
|
|
4503
4506
|
}),
|
|
4504
4507
|
!n && /* @__PURE__ */ d("div", {
|
|
@@ -4507,20 +4510,20 @@ var U = {
|
|
|
4507
4510
|
type: "button",
|
|
4508
4511
|
variant: "text",
|
|
4509
4512
|
style: { minWidth: "6.25rem" },
|
|
4510
|
-
onClick:
|
|
4513
|
+
onClick: p,
|
|
4511
4514
|
children: i
|
|
4512
4515
|
}), /* @__PURE__ */ u(R, {
|
|
4513
4516
|
type: "button",
|
|
4514
4517
|
variant: "primary",
|
|
4515
4518
|
style: { minWidth: "6.25rem" },
|
|
4516
|
-
onClick:
|
|
4517
|
-
children:
|
|
4519
|
+
onClick: h,
|
|
4520
|
+
children: g
|
|
4518
4521
|
})]
|
|
4519
4522
|
}),
|
|
4520
|
-
/* @__PURE__ */ u(Ni, {
|
|
4521
|
-
ariaLabel:
|
|
4523
|
+
x.length > 0 && /* @__PURE__ */ u(Ni, {
|
|
4524
|
+
ariaLabel: s,
|
|
4522
4525
|
items: x,
|
|
4523
|
-
linkTag:
|
|
4526
|
+
linkTag: v,
|
|
4524
4527
|
triggerClassName: G.mobileMenuButton,
|
|
4525
4528
|
contentClassName: G.mobileMenu
|
|
4526
4529
|
})
|