quirk-ui 0.0.330 → 0.0.331
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.
|
@@ -58,7 +58,7 @@ function Ie({
|
|
|
58
58
|
title: se,
|
|
59
59
|
logo: W,
|
|
60
60
|
items: B,
|
|
61
|
-
groups:
|
|
61
|
+
groups: f,
|
|
62
62
|
utilityItems: s,
|
|
63
63
|
isSticky: ie = !1,
|
|
64
64
|
showSearch: C = !0,
|
|
@@ -70,7 +70,7 @@ function Ie({
|
|
|
70
70
|
localeSelectComponent: ce,
|
|
71
71
|
className: oe
|
|
72
72
|
}) {
|
|
73
|
-
const [b, D] = h(!1), [O,
|
|
73
|
+
const [b, D] = h(!1), [O, m] = h(null), [de, he] = h(0), [be, fe] = h(!1), [me, ue] = h(null), [c, N] = h([]), [g, M] = h(
|
|
74
74
|
0
|
|
75
75
|
), [pe, G] = h(null), [p, ve] = h(!1), [$, L] = h("forward"), E = () => /* @__PURE__ */ a(
|
|
76
76
|
"div",
|
|
@@ -152,11 +152,11 @@ function Ie({
|
|
|
152
152
|
ue(i);
|
|
153
153
|
}
|
|
154
154
|
}, we = (n) => {
|
|
155
|
-
|
|
155
|
+
m((l) => l === n ? null : n);
|
|
156
156
|
}, q = R((n) => {
|
|
157
|
-
_.current && !_.current.contains(n.target) &&
|
|
157
|
+
_.current && !_.current.contains(n.target) && m(null);
|
|
158
158
|
}, []), I = R(() => {
|
|
159
|
-
U(), typeof window < "u" && window.innerWidth > 768 && (D(!1),
|
|
159
|
+
U(), typeof window < "u" && window.innerWidth > 768 && (D(!1), m(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
160
160
|
}, []), U = R(() => {
|
|
161
161
|
if (v.current) {
|
|
162
162
|
const n = v.current.getBoundingClientRect().width;
|
|
@@ -182,10 +182,10 @@ function Ie({
|
|
|
182
182
|
{
|
|
183
183
|
className: `${e.linkWrapper} ${e.parent}`,
|
|
184
184
|
onMouseEnter: () => {
|
|
185
|
-
G(o),
|
|
185
|
+
G(o), m(d), H(d);
|
|
186
186
|
},
|
|
187
187
|
onMouseLeave: () => {
|
|
188
|
-
G(null), M(0),
|
|
188
|
+
G(null), M(0), m(null);
|
|
189
189
|
},
|
|
190
190
|
children: [
|
|
191
191
|
/* @__PURE__ */ a("div", { className: e.linkItem, children: /* @__PURE__ */ r(
|
|
@@ -233,7 +233,7 @@ function Ie({
|
|
|
233
233
|
rel: t.isExternal ? "noopener noreferrer" : void 0,
|
|
234
234
|
onClick: () => {
|
|
235
235
|
var P;
|
|
236
|
-
|
|
236
|
+
m(null), (P = t.onClick) == null || P.call(t);
|
|
237
237
|
},
|
|
238
238
|
onMouseEnter: () => t.sublinks ? M(u) : null,
|
|
239
239
|
role: "menuitem",
|
|
@@ -316,7 +316,7 @@ function Ie({
|
|
|
316
316
|
openPath: O,
|
|
317
317
|
togglePath: we,
|
|
318
318
|
updateTriangleIndicator: H,
|
|
319
|
-
setOpenPath:
|
|
319
|
+
setOpenPath: m,
|
|
320
320
|
renderLinks: w,
|
|
321
321
|
buttonRefs: S
|
|
322
322
|
},
|
|
@@ -327,7 +327,7 @@ function Ie({
|
|
|
327
327
|
"header",
|
|
328
328
|
{
|
|
329
329
|
ref: _,
|
|
330
|
-
className: `${oe ?? ""} ${Fe[x]} ${Ae[re]} ${e.navbar} ${ie ? e.sticky : ""} ${
|
|
330
|
+
className: `${oe ?? ""} ${Fe[x]} ${Ae[re]} ${e.navbar} ${ie ? e.sticky : ""} ${f && f.length ? e.advanced : e.default}`,
|
|
331
331
|
role: "navigation",
|
|
332
332
|
"aria-label": "Main navigation",
|
|
333
333
|
children: /* @__PURE__ */ r(
|
|
@@ -376,15 +376,15 @@ function Ie({
|
|
|
376
376
|
] }),
|
|
377
377
|
j && /* @__PURE__ */ a(V, {})
|
|
378
378
|
] }),
|
|
379
|
-
!p && k === "advanced" &&
|
|
380
|
-
ye(
|
|
379
|
+
!p && k === "advanced" && f && /* @__PURE__ */ r("div", { className: e.grid, children: [
|
|
380
|
+
f.length && ye(f),
|
|
381
381
|
C && /* @__PURE__ */ r(ee, { children: [
|
|
382
382
|
/* @__PURE__ */ a("span", { className: e.separator }),
|
|
383
383
|
/* @__PURE__ */ a(E, {})
|
|
384
384
|
] }),
|
|
385
385
|
j && /* @__PURE__ */ a(V, {})
|
|
386
386
|
] }),
|
|
387
|
-
p && k === "advanced" && b && c.length === 0 &&
|
|
387
|
+
p && k === "advanced" && b && c.length === 0 && f && /* @__PURE__ */ a("div", { className: `${e.mobileMenu}`, children: f.map((n, l) => /* @__PURE__ */ a(
|
|
388
388
|
"div",
|
|
389
389
|
{
|
|
390
390
|
className: `${e.mobileMenuItem} ${$ === "forward" ? e.fadeInFromLeft : e.fadeInFromRight}`,
|