quirk-ui 0.0.204 → 0.0.205
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as v } from "react";
|
|
3
3
|
import { E as g } from "./external-link-BOPobeQJ.js";
|
|
4
4
|
import { C as k } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
-
import './assets/NavLink.css';const p = "_navbar_wd0jm_5", f = "_left_wd0jm_18", h = "_container_wd0jm_19", I = "_logo_wd0jm_23",
|
|
5
|
+
import './assets/NavLink.css';const p = "_navbar_wd0jm_5", f = "_left_wd0jm_18", h = "_container_wd0jm_19", I = "_logo_wd0jm_23", C = "_nav_wd0jm_5", N = "_center_wd0jm_38", T = "_hidden_wd0jm_44", y = "_visible_wd0jm_51", x = "_right_wd0jm_66", E = "_title_wd0jm_72", $ = "_sublinks_wd0jm_82", M = "_sublinksInner_wd0jm_94", W = "_linkItem_wd0jm_108", L = "_minimal_wd0jm_113", z = "_menuToggle_wd0jm_117", R = "_linkWrapper_wd0jm_121", D = "_triangle_wd0jm_159", S = "_transparent_wd0jm_164", q = "_sticky_wd0jm_216", A = "_twoColumn_wd0jm_245", B = "_utilityMobile_wd0jm_292", F = "_utility_wd0jm_292", G = "_navInner_wd0jm_320", H = "_grid_wd0jm_329", J = "_sublinkToggle_wd0jm_355", K = "_link_wd0jm_108", Q = "_newTabIcon_wd0jm_370", U = "_open_wd0jm_378", V = "_show_wd0jm_433", X = "_sublinksColumn_wd0jm_481", Y = "_chevron_wd0jm_491", Z = "_parent_wd0jm_570", e = {
|
|
6
6
|
navbar: p,
|
|
7
7
|
left: f,
|
|
8
8
|
container: h,
|
|
9
9
|
logo: I,
|
|
10
|
-
nav:
|
|
11
|
-
center:
|
|
12
|
-
hidden:
|
|
10
|
+
nav: C,
|
|
11
|
+
center: N,
|
|
12
|
+
hidden: T,
|
|
13
13
|
visible: y,
|
|
14
14
|
right: x,
|
|
15
15
|
title: E,
|
|
@@ -28,36 +28,34 @@ import './assets/NavLink.css';const p = "_navbar_wd0jm_5", f = "_left_wd0jm_18",
|
|
|
28
28
|
utility: F,
|
|
29
29
|
navInner: G,
|
|
30
30
|
grid: H,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
chevron: O,
|
|
40
|
-
parent: P
|
|
31
|
+
sublinkToggle: J,
|
|
32
|
+
link: K,
|
|
33
|
+
newTabIcon: Q,
|
|
34
|
+
open: U,
|
|
35
|
+
show: V,
|
|
36
|
+
sublinksColumn: X,
|
|
37
|
+
chevron: Y,
|
|
38
|
+
parent: Z
|
|
41
39
|
};
|
|
42
|
-
function
|
|
40
|
+
function sn({
|
|
43
41
|
link: n,
|
|
44
42
|
path: s,
|
|
45
43
|
parentPath: r,
|
|
46
44
|
openPath: u,
|
|
47
|
-
togglePath:
|
|
45
|
+
togglePath: c,
|
|
48
46
|
updateTriangleIndicator: w,
|
|
49
|
-
setOpenPath:
|
|
47
|
+
setOpenPath: l,
|
|
50
48
|
renderLinks: b,
|
|
51
49
|
buttonRefs: j
|
|
52
50
|
}) {
|
|
53
|
-
var
|
|
54
|
-
const
|
|
55
|
-
return j.current.set(s, m.current), /* @__PURE__ */
|
|
51
|
+
var a;
|
|
52
|
+
const i = u === s, t = !!((a = n.sublinks) != null && a.length), m = v(null);
|
|
53
|
+
return j.current.set(s, m.current), /* @__PURE__ */ _(
|
|
56
54
|
"div",
|
|
57
55
|
{
|
|
58
56
|
className: `${e.linkWrapper} ${r ? "" : e.parent}`,
|
|
59
57
|
children: [
|
|
60
|
-
/* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */ _(
|
|
61
59
|
"a",
|
|
62
60
|
{
|
|
63
61
|
href: n.href,
|
|
@@ -66,10 +64,10 @@ function tn({
|
|
|
66
64
|
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
67
65
|
onClick: () => {
|
|
68
66
|
var d;
|
|
69
|
-
|
|
67
|
+
l(null), (d = n.onClick) == null || d.call(n);
|
|
70
68
|
},
|
|
71
69
|
onMouseEnter: () => {
|
|
72
|
-
r ||
|
|
70
|
+
r || l(null);
|
|
73
71
|
},
|
|
74
72
|
role: "menuitem",
|
|
75
73
|
children: [
|
|
@@ -77,28 +75,28 @@ function tn({
|
|
|
77
75
|
n.isExternal && /* @__PURE__ */ o(g, { className: e.newTabIcon, size: 16 })
|
|
78
76
|
]
|
|
79
77
|
}
|
|
80
|
-
) : /* @__PURE__ */
|
|
78
|
+
) : /* @__PURE__ */ _(
|
|
81
79
|
"button",
|
|
82
80
|
{
|
|
83
81
|
ref: m,
|
|
84
|
-
"aria-haspopup":
|
|
85
|
-
"aria-expanded":
|
|
86
|
-
className: `${e.sublinkToggle} ${
|
|
87
|
-
onClick: () =>
|
|
82
|
+
"aria-haspopup": t ? "true" : void 0,
|
|
83
|
+
"aria-expanded": i,
|
|
84
|
+
className: `${e.sublinkToggle} ${i ? e.open : ""}`,
|
|
85
|
+
onClick: () => c(s),
|
|
88
86
|
onMouseEnter: () => {
|
|
89
|
-
w(s),
|
|
87
|
+
w(s), l(s);
|
|
90
88
|
},
|
|
91
89
|
children: [
|
|
92
90
|
n.label,
|
|
93
|
-
|
|
91
|
+
t && /* @__PURE__ */ o(k, { size: 18, className: e.chevron })
|
|
94
92
|
]
|
|
95
93
|
}
|
|
96
94
|
) }),
|
|
97
|
-
|
|
95
|
+
t && /* @__PURE__ */ o(
|
|
98
96
|
"div",
|
|
99
97
|
{
|
|
100
|
-
className: `${e.sublinks} ${
|
|
101
|
-
onMouseLeave: () =>
|
|
98
|
+
className: `${e.sublinks} ${i ? e.show : ""}`,
|
|
99
|
+
onMouseLeave: () => c(s),
|
|
102
100
|
role: "menu",
|
|
103
101
|
"aria-label": `${n.label} submenu`,
|
|
104
102
|
children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: e.sublinksInner, children: /* @__PURE__ */ o("div", { className: e.sublinksColumn, children: b(n.sublinks, s) }) }) })
|
|
@@ -110,6 +108,6 @@ function tn({
|
|
|
110
108
|
);
|
|
111
109
|
}
|
|
112
110
|
export {
|
|
113
|
-
|
|
111
|
+
sn as N,
|
|
114
112
|
e as s
|
|
115
113
|
};
|
|
@@ -1,162 +1,185 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { s as e, N as
|
|
4
|
-
import { CallToAction as
|
|
5
|
-
import { ButtonGroup as
|
|
6
|
-
import { X as
|
|
7
|
-
import { c as
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as t, useRef as k, useCallback as b, useEffect as _ } from "react";
|
|
3
|
+
import { s as e, N as se } from "../../NavLink-D8ccaE3T.js";
|
|
4
|
+
import { CallToAction as D } from "../CallToAction/index.js";
|
|
5
|
+
import { ButtonGroup as V } from "../ButtonGroup/index.js";
|
|
6
|
+
import { X as ie } from "../../x-CnsEH4Ox.js";
|
|
7
|
+
import { c as re } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
8
|
+
import { C as ce } from "../../chevron-down-DSUzBz9F.js";
|
|
8
9
|
/**
|
|
9
10
|
* @license lucide-react v0.488.0 - ISC
|
|
10
11
|
*
|
|
11
12
|
* This source code is licensed under the ISC license.
|
|
12
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
14
|
*/
|
|
14
|
-
const
|
|
15
|
+
const oe = [
|
|
15
16
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
16
17
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
17
18
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
18
|
-
],
|
|
19
|
+
], te = re("menu", oe), de = {
|
|
19
20
|
default: e.default,
|
|
20
21
|
minimal: e.minimal
|
|
21
|
-
},
|
|
22
|
+
}, he = {
|
|
22
23
|
left: e.left,
|
|
23
24
|
center: e.center,
|
|
24
25
|
right: e.right
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
-
title:
|
|
28
|
-
logo:
|
|
27
|
+
function Ne({
|
|
28
|
+
title: H,
|
|
29
|
+
logo: y,
|
|
29
30
|
items: x,
|
|
30
|
-
groups:
|
|
31
|
+
groups: C,
|
|
31
32
|
utilityItems: l,
|
|
32
|
-
isSticky:
|
|
33
|
-
isTransparent:
|
|
33
|
+
isSticky: U = !1,
|
|
34
|
+
isTransparent: q = !1,
|
|
34
35
|
alignment: p = "right",
|
|
35
|
-
variant:
|
|
36
|
+
variant: F = "default",
|
|
36
37
|
navigationType: L = "default",
|
|
37
|
-
className:
|
|
38
|
+
className: J
|
|
38
39
|
}) {
|
|
39
|
-
const [
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
const
|
|
45
|
-
|
|
40
|
+
const [o, R] = t(!1), [g, h] = t(null), [K, P] = t(0), [Q, Y] = t(!1), [Z, I] = t(null), w = k(null), m = k(null), S = k(/* @__PURE__ */ new Map()), ee = () => {
|
|
41
|
+
R((a) => !a);
|
|
42
|
+
}, ne = (a) => {
|
|
43
|
+
const s = S.current.get(a);
|
|
44
|
+
if (s && m.current) {
|
|
45
|
+
const c = s.getBoundingClientRect(), d = m.current.getBoundingClientRect(), i = c.left - d.left + c.width / 4;
|
|
46
|
+
I(i);
|
|
46
47
|
}
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
}, []),
|
|
52
|
-
|
|
53
|
-
}, []),
|
|
54
|
-
|
|
55
|
-
}, []),
|
|
48
|
+
}, ae = (a) => {
|
|
49
|
+
h((s) => s === a ? null : a);
|
|
50
|
+
}, M = b((a) => {
|
|
51
|
+
w.current && !w.current.contains(a.target) && h(null);
|
|
52
|
+
}, []), E = b(() => {
|
|
53
|
+
h(null);
|
|
54
|
+
}, []), A = b(() => {
|
|
55
|
+
T(), typeof window < "u" && window.innerWidth > 768 && (R(!1), h(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
56
|
+
}, []), T = b(() => {
|
|
56
57
|
if (m.current) {
|
|
57
|
-
const
|
|
58
|
-
|
|
58
|
+
const a = m.current.getBoundingClientRect().width;
|
|
59
|
+
P(a), Y(!0);
|
|
59
60
|
}
|
|
60
61
|
}, []);
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
return
|
|
64
|
-
|
|
62
|
+
_(() => {
|
|
63
|
+
const a = typeof window < "u", s = typeof document < "u";
|
|
64
|
+
return a && (window.addEventListener("resize", A), window.addEventListener("scroll", E)), s && document.addEventListener("click", M), T(), () => {
|
|
65
|
+
a && (window.removeEventListener("resize", A), window.removeEventListener("scroll", E)), s && document.removeEventListener("click", M);
|
|
65
66
|
};
|
|
66
|
-
}, []),
|
|
67
|
+
}, []), _(() => {
|
|
67
68
|
if (typeof document < "u")
|
|
68
|
-
return document.body.style.overflow =
|
|
69
|
+
return document.body.style.overflow = o ? "hidden" : "", () => {
|
|
69
70
|
document.body.style.overflow = "";
|
|
70
71
|
};
|
|
71
|
-
}, [
|
|
72
|
-
const
|
|
73
|
-
const [
|
|
72
|
+
}, [o]);
|
|
73
|
+
const le = (a) => {
|
|
74
|
+
const [s, c] = t(null), [d, N] = t(
|
|
74
75
|
null
|
|
75
76
|
);
|
|
76
|
-
return console.log("GROUPS",
|
|
77
|
-
var
|
|
78
|
-
const
|
|
79
|
-
return /* @__PURE__ */
|
|
77
|
+
return console.log("GROUPS", a), a.map((i, u) => {
|
|
78
|
+
var O, W, B, G;
|
|
79
|
+
const z = `group-${u}`, $ = d === u, r = (O = i.primaryItems) == null ? void 0 : O[s ?? 0];
|
|
80
|
+
return /* @__PURE__ */ f(
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
|
-
className: e.
|
|
83
|
-
onMouseEnter: () =>
|
|
83
|
+
className: `${e.linkWrapper} ${e.parent}`,
|
|
84
|
+
onMouseEnter: () => N(u),
|
|
84
85
|
onMouseLeave: () => {
|
|
85
|
-
|
|
86
|
+
N(null), c(null);
|
|
86
87
|
},
|
|
87
88
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
/* @__PURE__ */ n("div", { className: e.linkItem, children: /* @__PURE__ */ f(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
"aria-haspopup": "true",
|
|
93
|
+
"aria-expanded": $,
|
|
94
|
+
className: `${e.sublinkToggle} ${$ ? e.open : ""} `,
|
|
95
|
+
children: [
|
|
96
|
+
i.title,
|
|
97
|
+
/* @__PURE__ */ n(ce, { size: 18, className: e.chevron })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
) }),
|
|
101
|
+
$ && /* @__PURE__ */ n(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: `${e.sublinks} ${e.show}`,
|
|
105
|
+
role: "menu",
|
|
106
|
+
"aria-label": `${i.title} submenu`,
|
|
107
|
+
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ f("div", { className: e.sublinksInner, children: [
|
|
108
|
+
/* @__PURE__ */ n("div", { className: e.sublinksColumn, children: (W = i.primaryItems) == null ? void 0 : W.map((j, X) => /* @__PURE__ */ n(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: e.linkItem,
|
|
112
|
+
onMouseEnter: () => c(X),
|
|
113
|
+
children: j.label
|
|
114
|
+
},
|
|
115
|
+
j._key ?? X
|
|
116
|
+
)) }),
|
|
117
|
+
(r == null ? void 0 : r.sublinks) && ((B = r == null ? void 0 : r.sublinks) == null ? void 0 : B.length) > 0 && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: (r == null ? void 0 : r.sublinks) && v(
|
|
118
|
+
r.sublinks,
|
|
119
|
+
`${z}-${s}`
|
|
120
|
+
) }),
|
|
121
|
+
(i == null ? void 0 : i.secondaryItems) && ((G = i == null ? void 0 : i.secondaryItems) == null ? void 0 : G.length) > 0 && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: v(i.secondaryItems, `${z}-secondary`) }),
|
|
122
|
+
i.spotlight && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: i.spotlight })
|
|
123
|
+
] }) })
|
|
124
|
+
}
|
|
125
|
+
)
|
|
103
126
|
]
|
|
104
127
|
},
|
|
105
|
-
|
|
128
|
+
u
|
|
106
129
|
);
|
|
107
130
|
});
|
|
108
|
-
},
|
|
109
|
-
const
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
|
|
131
|
+
}, v = (a, s = "") => a.map((c) => {
|
|
132
|
+
const d = `${s}/${c.label}`;
|
|
133
|
+
return /* @__PURE__ */ n(
|
|
134
|
+
se,
|
|
112
135
|
{
|
|
113
|
-
link:
|
|
114
|
-
path:
|
|
115
|
-
parentPath:
|
|
136
|
+
link: c,
|
|
137
|
+
path: d,
|
|
138
|
+
parentPath: s,
|
|
116
139
|
openPath: g,
|
|
117
|
-
togglePath:
|
|
118
|
-
updateTriangleIndicator:
|
|
119
|
-
setOpenPath:
|
|
120
|
-
renderLinks:
|
|
121
|
-
buttonRefs:
|
|
140
|
+
togglePath: ae,
|
|
141
|
+
updateTriangleIndicator: ne,
|
|
142
|
+
setOpenPath: h,
|
|
143
|
+
renderLinks: v,
|
|
144
|
+
buttonRefs: S
|
|
122
145
|
},
|
|
123
|
-
|
|
146
|
+
d
|
|
124
147
|
);
|
|
125
148
|
});
|
|
126
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ n(
|
|
127
150
|
"header",
|
|
128
151
|
{
|
|
129
|
-
ref:
|
|
130
|
-
className: `${
|
|
152
|
+
ref: w,
|
|
153
|
+
className: `${J ?? ""} ${he[p]} ${de[F]} ${e.navbar} ${U ? e.sticky : ""} ${q ? e.transparent : ""} `,
|
|
131
154
|
role: "navigation",
|
|
132
155
|
"aria-label": "Main navigation",
|
|
133
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ f(
|
|
134
157
|
"div",
|
|
135
158
|
{
|
|
136
159
|
className: `${e.container} ${(!l || l.length === 0) && p !== "center" ? e.twoColumn : ""}`,
|
|
137
160
|
children: [
|
|
138
|
-
|
|
139
|
-
/* @__PURE__ */
|
|
161
|
+
y ? /* @__PURE__ */ n("div", { className: e.logo, children: y }) : /* @__PURE__ */ n("div", { className: e.title, children: H }),
|
|
162
|
+
/* @__PURE__ */ n(
|
|
140
163
|
"nav",
|
|
141
164
|
{
|
|
142
165
|
ref: m,
|
|
143
166
|
style: {
|
|
144
|
-
left: p === "center" ? `calc(50% - ${
|
|
167
|
+
left: p === "center" ? `calc(50% - ${K / 2}px)` : "0"
|
|
145
168
|
},
|
|
146
|
-
className: `${e.nav} ${
|
|
169
|
+
className: `${e.nav} ${o ? e.open : ""} ${Q ? e.visible : e.hidden}`,
|
|
147
170
|
id: "main-menu",
|
|
148
171
|
role: "menubar",
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ f("div", { className: e.navInner, children: [
|
|
173
|
+
/* @__PURE__ */ n(
|
|
151
174
|
"svg",
|
|
152
175
|
{
|
|
153
|
-
style: { left: `${
|
|
176
|
+
style: { left: `${Z}px` },
|
|
154
177
|
className: `${e.triangle} ${g ? e.show : ""}`,
|
|
155
178
|
width: 16,
|
|
156
179
|
height: 12,
|
|
157
180
|
viewBox: "0 0 100 75",
|
|
158
181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
-
children: /* @__PURE__ */
|
|
182
|
+
children: /* @__PURE__ */ n(
|
|
160
183
|
"polygon",
|
|
161
184
|
{
|
|
162
185
|
points: "50,5 95,70 5,70",
|
|
@@ -167,28 +190,28 @@ function ue({
|
|
|
167
190
|
)
|
|
168
191
|
}
|
|
169
192
|
),
|
|
170
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ n(
|
|
171
194
|
"div",
|
|
172
195
|
{
|
|
173
196
|
className: `${e.triangle} ${g ? e.show : ""}`
|
|
174
197
|
}
|
|
175
198
|
),
|
|
176
|
-
L === "default" && x && /* @__PURE__ */
|
|
177
|
-
L === "advanced" &&
|
|
199
|
+
L === "default" && x && /* @__PURE__ */ n("div", { className: e.grid, children: v(x) }),
|
|
200
|
+
L === "advanced" && C && /* @__PURE__ */ n("div", { className: e.grid, children: le(C) })
|
|
178
201
|
] })
|
|
179
202
|
}
|
|
180
203
|
),
|
|
181
|
-
l && /* @__PURE__ */
|
|
182
|
-
|
|
204
|
+
l && /* @__PURE__ */ n("nav", { className: e.utility, children: /* @__PURE__ */ n(V, { children: l.map((a, s) => /* @__PURE__ */ n(
|
|
205
|
+
D,
|
|
183
206
|
{
|
|
184
207
|
as: "a",
|
|
185
|
-
href:
|
|
186
|
-
variant:
|
|
187
|
-
displayType:
|
|
188
|
-
imageSrc:
|
|
189
|
-
imageAlt:
|
|
190
|
-
"aria-label":
|
|
191
|
-
children: l[1].imageSrc ? /* @__PURE__ */
|
|
208
|
+
href: a.href ?? "/",
|
|
209
|
+
variant: a.variant ?? "primary",
|
|
210
|
+
displayType: a.displayType ?? "text",
|
|
211
|
+
imageSrc: a.imageSrc,
|
|
212
|
+
imageAlt: a.imageAlt,
|
|
213
|
+
"aria-label": a.ariaLabel ?? a.label,
|
|
214
|
+
children: l[1].imageSrc ? /* @__PURE__ */ n(
|
|
192
215
|
"img",
|
|
193
216
|
{
|
|
194
217
|
className: e.utilityImage,
|
|
@@ -197,14 +220,14 @@ function ue({
|
|
|
197
220
|
}
|
|
198
221
|
) : l[1].label
|
|
199
222
|
},
|
|
200
|
-
|
|
223
|
+
a._key || s
|
|
201
224
|
)) }) }),
|
|
202
|
-
l && /* @__PURE__ */
|
|
225
|
+
l && /* @__PURE__ */ n(
|
|
203
226
|
"nav",
|
|
204
227
|
{
|
|
205
|
-
className: `${e.utilityMobile} ${
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
|
|
228
|
+
className: `${e.utilityMobile} ${o ? e.open : ""}`,
|
|
229
|
+
children: /* @__PURE__ */ n(V, { alignment: "center", children: /* @__PURE__ */ n(
|
|
230
|
+
D,
|
|
208
231
|
{
|
|
209
232
|
as: "a",
|
|
210
233
|
href: l[1].href ?? "/",
|
|
@@ -213,7 +236,7 @@ function ue({
|
|
|
213
236
|
imageSrc: l[1].imageSrc,
|
|
214
237
|
imageAlt: l[1].imageAlt,
|
|
215
238
|
"aria-label": l[1].ariaLabel ?? l[1].label,
|
|
216
|
-
children: l[1].imageSrc ? /* @__PURE__ */
|
|
239
|
+
children: l[1].imageSrc ? /* @__PURE__ */ n(
|
|
217
240
|
"img",
|
|
218
241
|
{
|
|
219
242
|
className: e.utilityImage,
|
|
@@ -225,15 +248,15 @@ function ue({
|
|
|
225
248
|
) })
|
|
226
249
|
}
|
|
227
250
|
),
|
|
228
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ n(
|
|
229
252
|
"button",
|
|
230
253
|
{
|
|
231
254
|
className: e.menuToggle,
|
|
232
|
-
onClick:
|
|
233
|
-
"aria-label":
|
|
234
|
-
"aria-expanded":
|
|
255
|
+
onClick: ee,
|
|
256
|
+
"aria-label": o ? "Close menu" : "Open menu",
|
|
257
|
+
"aria-expanded": o,
|
|
235
258
|
"aria-controls": "main-menu",
|
|
236
|
-
children:
|
|
259
|
+
children: o ? /* @__PURE__ */ n(ie, { size: 24 }) : /* @__PURE__ */ n(te, { size: 24 })
|
|
237
260
|
}
|
|
238
261
|
)
|
|
239
262
|
]
|
|
@@ -243,5 +266,5 @@ function ue({
|
|
|
243
266
|
);
|
|
244
267
|
}
|
|
245
268
|
export {
|
|
246
|
-
|
|
269
|
+
Ne as Navbar
|
|
247
270
|
};
|