quirk-ui 0.0.329 → 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.
@@ -25,18 +25,18 @@ const Ee = [
25
25
  ],
26
26
  ["path", { d: "M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05", key: "14pb5j" }],
27
27
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
28
- ], Se = F("earth", Ee);
28
+ ], _e = F("earth", Ee);
29
29
  /**
30
30
  * @license lucide-react v0.488.0 - ISC
31
31
  *
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
34
  */
35
- const _e = [
35
+ const Se = [
36
36
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
37
37
  ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
38
38
  ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
39
- ], ze = F("menu", _e);
39
+ ], ze = F("menu", Se);
40
40
  /**
41
41
  * @license lucide-react v0.488.0 - ISC
42
42
  *
@@ -58,7 +58,7 @@ function Ie({
58
58
  title: se,
59
59
  logo: W,
60
60
  items: B,
61
- groups: m,
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, f] = h(null), [de, he] = h(0), [be, fe] = h(!1), [me, ue] = h(null), [c, N] = h([]), [g, M] = h(
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",
@@ -105,7 +105,7 @@ function Ie({
105
105
  "aria-label": "Locale Select",
106
106
  role: "menuitem",
107
107
  className: e.locale,
108
- children: /* @__PURE__ */ a(Se, { size: 16 })
108
+ children: /* @__PURE__ */ a(_e, { size: 16 })
109
109
  }
110
110
  ),
111
111
  content: ce
@@ -143,20 +143,20 @@ function Ie({
143
143
  ]);
144
144
  }, ge = () => {
145
145
  L("backward"), N((n) => n.slice(0, -1));
146
- }, S = T(null), v = T(null), _ = T(/* @__PURE__ */ new Map()), $e = () => {
146
+ }, _ = T(null), v = T(null), S = T(/* @__PURE__ */ new Map()), $e = () => {
147
147
  D((n) => !n);
148
148
  }, H = (n) => {
149
- const l = _.current.get(n);
149
+ const l = S.current.get(n);
150
150
  if (l && v.current) {
151
151
  const o = l.getBoundingClientRect(), d = v.current.getBoundingClientRect(), i = o.left - d.left + o.width / 2;
152
152
  ue(i);
153
153
  }
154
154
  }, we = (n) => {
155
- f((l) => l === n ? null : n);
155
+ m((l) => l === n ? null : n);
156
156
  }, q = R((n) => {
157
- S.current && !S.current.contains(n.target) && f(null);
157
+ _.current && !_.current.contains(n.target) && m(null);
158
158
  }, []), I = R(() => {
159
- U(), typeof window < "u" && window.innerWidth > 768 && (D(!1), f(null), typeof document < "u" && (document.body.style.overflow = ""));
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,17 +182,17 @@ function Ie({
182
182
  {
183
183
  className: `${e.linkWrapper} ${e.parent}`,
184
184
  onMouseEnter: () => {
185
- G(o), f(d), H(d);
185
+ G(o), m(d), H(d);
186
186
  },
187
187
  onMouseLeave: () => {
188
- G(null), M(0), f(null);
188
+ G(null), M(0), m(null);
189
189
  },
190
190
  children: [
191
191
  /* @__PURE__ */ a("div", { className: e.linkItem, children: /* @__PURE__ */ r(
192
192
  "button",
193
193
  {
194
194
  ref: (t) => {
195
- _.current.set(d, t);
195
+ S.current.set(d, t);
196
196
  },
197
197
  role: "menuitem",
198
198
  "aria-haspopup": "true",
@@ -233,7 +233,7 @@ function Ie({
233
233
  rel: t.isExternal ? "noopener noreferrer" : void 0,
234
234
  onClick: () => {
235
235
  var P;
236
- f(null), (P = t.onClick) == null || P.call(t);
236
+ m(null), (P = t.onClick) == null || P.call(t);
237
237
  },
238
238
  onMouseEnter: () => t.sublinks ? M(u) : null,
239
239
  role: "menuitem",
@@ -303,7 +303,7 @@ function Ie({
303
303
  )
304
304
  ]
305
305
  },
306
- o
306
+ l._key ?? `group-${o}`
307
307
  );
308
308
  }), w = (n, l = "") => n.map((o) => {
309
309
  const d = `${l}/${o.label}`;
@@ -316,18 +316,18 @@ function Ie({
316
316
  openPath: O,
317
317
  togglePath: we,
318
318
  updateTriangleIndicator: H,
319
- setOpenPath: f,
319
+ setOpenPath: m,
320
320
  renderLinks: w,
321
- buttonRefs: _
321
+ buttonRefs: S
322
322
  },
323
- d
323
+ o._key ?? d
324
324
  );
325
325
  });
326
326
  return /* @__PURE__ */ a(
327
327
  "header",
328
328
  {
329
- ref: S,
330
- className: `${oe ?? ""} ${Fe[x]} ${Ae[re]} ${e.navbar} ${ie ? e.sticky : ""} ${m && m.length ? e.advanced : e.default}`,
329
+ ref: _,
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" && m && /* @__PURE__ */ r("div", { className: e.grid, children: [
380
- ye(m),
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 && m && /* @__PURE__ */ a("div", { className: `${e.mobileMenu}`, children: m.map((n, l) => /* @__PURE__ */ a(
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}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.329",
4
+ "version": "0.0.331",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {