@alfadocs/ui-kit-debug 1.85.0 → 1.86.0

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,26 @@
1
- import { jsx as e, jsxs as t, Fragment as V } from "react/jsx-runtime";
2
- import { forwardRef as h, useId as Z, useState as y, useCallback as D, useImperativeHandle as ee, useContext as N, useEffect as _, useRef as I, createContext as se } from "react";
3
- import { c as C } from "./index-D2ZczOXr.js";
4
- import { useTranslation as de } from "react-i18next";
1
+ import { jsx as e, jsxs as i, Fragment as A } from "react/jsx-runtime";
2
+ import { forwardRef as b, useId as oe, useState as h, useCallback as H, useImperativeHandle as ie, useContext as k, useEffect as j, useRef as _, createContext as ce } from "react";
3
+ import { c as M } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as le } from "react-i18next";
5
5
  import * as m from "@radix-ui/react-navigation-menu";
6
- import { I as ae } from "./icon-button-S8_weU3g.js";
6
+ import { I as ue } from "./icon-button-S8_weU3g.js";
7
7
  import { S as f } from "./sheet-uZZXaO_S.js";
8
- import { u as ne } from "./use-visual-viewport-pin-ChurOsHM.js";
9
- import { C as R } from "./chevron-down-DWE7GSq9.js";
10
- import { X as re } from "./x-B5YnXwCz.js";
11
- import { M as oe } from "./menu-Op71AWIC.js";
12
- const g = se("desktop"), ie = C(
8
+ import { u as pe } from "./use-visual-viewport-pin-ChurOsHM.js";
9
+ import { C as B } from "./chevron-down-DWE7GSq9.js";
10
+ import { X as me } from "./x-B5YnXwCz.js";
11
+ import { M as ve } from "./menu-Op71AWIC.js";
12
+ const O = "--sticky-header-clearance", N = /* @__PURE__ */ new Map();
13
+ let T = "";
14
+ function V(s, n) {
15
+ if (typeof document > "u") return;
16
+ n === null ? N.delete(s) : N.set(s, n);
17
+ const d = N.size === 0 ? "" : `${Math.ceil(Math.max(...N.values()))}px`;
18
+ if (d === T) return;
19
+ T = d;
20
+ const a = document.documentElement;
21
+ d ? a.style.setProperty(O, d) : a.style.removeProperty(O);
22
+ }
23
+ const g = ce("desktop"), fe = M(
13
24
  [
14
25
  "ds:w-full ds:z-[var(--z-sticky)]",
15
26
  "ds:transition-[background-color,box-shadow,transform] ds:duration-[var(--animation-duration)]",
@@ -84,7 +95,7 @@ const g = se("desktop"), ie = C(
84
95
  },
85
96
  defaultVariants: { variant: "pill", sticky: "none" }
86
97
  }
87
- ), te = [
98
+ ), ge = [
88
99
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
89
100
  "ds:w-full ds:max-w-[1400px] ds:mx-auto",
90
101
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:sm:ps-[var(--spacing-lg)] ds:sm:pe-[var(--spacing-lg)]",
@@ -102,7 +113,7 @@ const g = se("desktop"), ie = C(
102
113
  "ds:border ds:border-[color:var(--card-border)]",
103
114
  "ds:transition-colors ds:duration-[var(--animation-duration)]",
104
115
  "ds:motion-reduce:transition-none"
105
- ].join(" "), ce = C(
116
+ ].join(" "), he = M(
106
117
  [
107
118
  "ds:inline-flex ds:items-center",
108
119
  "type-body-sm ds:font-medium",
@@ -119,7 +130,7 @@ const g = se("desktop"), ie = C(
119
130
  "ds:data-[active=true]:text-[var(--primary)]",
120
131
  "ds:data-[active=true]:[box-shadow:inset_0_-2px_0_var(--primary)]"
121
132
  ].join(" ")
122
- ), le = [
133
+ ), be = [
123
134
  "ds:group ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
124
135
  "type-body-sm ds:font-medium",
125
136
  // Mirror the navLinkVariants colour + inline padding so triggers and
@@ -133,12 +144,12 @@ const g = se("desktop"), ie = C(
133
144
  "ds:hover:text-[var(--primary)]",
134
145
  "ds:data-[state=open]:text-[var(--primary)]",
135
146
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
136
- ].join(" "), ue = [
147
+ ].join(" "), xe = [
137
148
  "ds:size-3 ds:shrink-0",
138
149
  "ds:transition-transform ds:duration-[var(--animation-duration)]",
139
150
  "ds:group-data-[state=open]:rotate-180",
140
151
  "ds:motion-reduce:transition-none"
141
- ].join(" "), pe = C(
152
+ ].join(" "), we = M(
142
153
  [
143
154
  // Radix portals Content into the Viewport; sizing + position is
144
155
  // governed by the Viewport — keep Content's own paint to padding
@@ -164,7 +175,7 @@ const g = se("desktop"), ie = C(
164
175
  },
165
176
  defaultVariants: { wide: !1 }
166
177
  }
167
- ), me = [
178
+ ), ye = [
168
179
  // Position the Viewport flush below the pill / nav row. Radix sets
169
180
  // `--radix-navigation-menu-viewport-width` and `…-height` so the
170
181
  // panel sizes itself to whichever Content is currently active.
@@ -183,7 +194,7 @@ const g = se("desktop"), ie = C(
183
194
  "ds:data-[state=open]:zoom-in-95 ds:data-[state=closed]:zoom-out-95",
184
195
  "ds:origin-top ds:transition-[width,height] ds:duration-[var(--animation-duration)]",
185
196
  "ds:motion-reduce:animate-none ds:motion-reduce:transition-none"
186
- ].join(" "), z = [
197
+ ].join(" "), S = [
187
198
  "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-sm)]",
188
199
  "ds:no-underline ds:text-[var(--foreground)]",
189
200
  "ds:pb-[var(--spacing-sm)]",
@@ -197,10 +208,10 @@ const g = se("desktop"), ie = C(
197
208
  "ds:hover:[&_[data-card-arrow]]:text-[var(--primary)]",
198
209
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
199
210
  "ds:group/cardlink"
200
- ].join(" "), ve = [
211
+ ].join(" "), Ne = [
201
212
  "ds:pb-[var(--spacing-sm)]"
202
213
  // Match the linked-card variant: no separator rule under the title.
203
- ].join(" "), fe = [
214
+ ].join(" "), ke = [
204
215
  "ds:block ds:no-underline",
205
216
  "type-body-sm ds:font-medium ds:text-[var(--muted-foreground)]",
206
217
  "ds:rounded-[var(--radius-sm)]",
@@ -211,24 +222,24 @@ const g = se("desktop"), ie = C(
211
222
  "ds:data-[active=true]:text-[var(--primary)]",
212
223
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
213
224
  ].join(" ");
214
- function ge() {
215
- const [s, o] = y(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
216
- return _(() => {
225
+ function Ce() {
226
+ const [s, n] = h(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
227
+ return j(() => {
217
228
  if (typeof window > "u" || !window.matchMedia) return;
218
- const d = window.matchMedia("(prefers-reduced-motion: reduce)"), a = () => o(d.matches);
229
+ const d = window.matchMedia("(prefers-reduced-motion: reduce)"), a = () => n(d.matches);
219
230
  return d.addEventListener("change", a), () => d.removeEventListener("change", a);
220
231
  }, []), s;
221
232
  }
222
- function he(s, o, d) {
223
- const [a, i] = y(!1), [r, n] = y(!1), l = I(0), u = I(!1);
224
- return _(() => {
233
+ function He(s, n, d) {
234
+ const [a, t] = h(!1), [o, r] = h(!1), l = _(0), u = _(!1);
235
+ return j(() => {
225
236
  if (!s || typeof window > "u") return;
226
237
  l.current = window.scrollY;
227
238
  const v = () => {
228
239
  const p = window.scrollY;
229
- if (i(p > d), o === "scroll-up") {
230
- const b = p - l.current;
231
- b > 4 && p > d ? n(!0) : (b < -4 || p <= d) && n(!1);
240
+ if (t(p > d), n === "scroll-up") {
241
+ const x = p - l.current;
242
+ x > 4 && p > d ? r(!0) : (x < -4 || p <= d) && r(!1);
232
243
  }
233
244
  l.current = p, u.current = !1;
234
245
  }, c = () => {
@@ -237,45 +248,59 @@ function he(s, o, d) {
237
248
  return window.addEventListener("scroll", c, { passive: !0 }), v(), () => {
238
249
  window.removeEventListener("scroll", c);
239
250
  };
240
- }, [s, o, d]), { stuck: a, hidden: r };
251
+ }, [s, n, d]), { stuck: a, hidden: o };
252
+ }
253
+ function je(s, n) {
254
+ j(() => {
255
+ if (!s || !n) return;
256
+ const d = {}, a = () => {
257
+ const o = parseFloat(getComputedStyle(s).top) || 0;
258
+ V(d, o + s.offsetHeight);
259
+ };
260
+ a();
261
+ const t = typeof ResizeObserver > "u" ? null : new ResizeObserver(a);
262
+ return t == null || t.observe(s), () => {
263
+ t == null || t.disconnect(), V(d, null);
264
+ };
265
+ }, [s, n]);
241
266
  }
242
- function B({
267
+ function Y({
243
268
  logo: s,
244
- homeHref: o,
269
+ homeHref: n,
245
270
  resolvedHomeLabel: d,
246
271
  resolvedNavLabel: a,
247
- resolvedMenuLabel: i,
248
- navSlot: r,
249
- actionsSlot: n,
272
+ resolvedMenuLabel: t,
273
+ navSlot: o,
274
+ actionsSlot: r,
250
275
  persistActions: l,
251
276
  menuOpen: u,
252
277
  setMenuOpen: v,
253
278
  sheetId: c
254
279
  }) {
255
- const p = !!r || !!n && !l;
256
- return /* @__PURE__ */ t(V, { children: [
280
+ const p = !!o || !!r && !l;
281
+ return /* @__PURE__ */ i(A, { children: [
257
282
  /* @__PURE__ */ e(
258
283
  "a",
259
284
  {
260
- href: o,
285
+ href: n,
261
286
  "aria-label": d,
262
287
  className: "ds:inline-flex ds:items-center ds:rounded-[var(--radius-sm)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
263
288
  children: s
264
289
  }
265
290
  ),
266
- r ? /* @__PURE__ */ e(g.Provider, { value: "desktop", children: /* @__PURE__ */ t(
291
+ o ? /* @__PURE__ */ e(g.Provider, { value: "desktop", children: /* @__PURE__ */ i(
267
292
  m.Root,
268
293
  {
269
294
  "aria-label": a,
270
295
  className: "ds:hidden ds:md:flex ds:relative ds:items-center ds:ms-[var(--spacing-lg)] ds:flex-1 ds:[&>div:first-of-type]:flex ds:[&>div:first-of-type]:flex-1",
271
296
  delayDuration: 150,
272
297
  children: [
273
- /* @__PURE__ */ e(m.List, { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:gap-[var(--spacing-md)] ds:list-none ds:m-0 ds:ps-0", children: r }),
274
- /* @__PURE__ */ e("div", { className: "ds:absolute ds:top-full ds:start-0 ds:end-0 ds:flex ds:justify-center ds:pointer-events-none", children: /* @__PURE__ */ e("div", { className: "ds:pointer-events-auto", children: /* @__PURE__ */ e(m.Viewport, { className: me }) }) })
298
+ /* @__PURE__ */ e(m.List, { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:gap-[var(--spacing-md)] ds:list-none ds:m-0 ds:ps-0", children: o }),
299
+ /* @__PURE__ */ e("div", { className: "ds:absolute ds:top-full ds:start-0 ds:end-0 ds:flex ds:justify-center ds:pointer-events-none", children: /* @__PURE__ */ e("div", { className: "ds:pointer-events-auto", children: /* @__PURE__ */ e(m.Viewport, { className: ye }) }) })
275
300
  ]
276
301
  }
277
302
  ) }) : null,
278
- n ? /* @__PURE__ */ e(
303
+ r ? /* @__PURE__ */ e(
279
304
  "div",
280
305
  {
281
306
  className: [
@@ -284,115 +309,123 @@ function B({
284
309
  l ? "ds:flex" : "ds:hidden ds:md:flex",
285
310
  "ds:items-center ds:gap-[var(--spacing-sm)] ds:ms-auto"
286
311
  ].join(" "),
287
- children: n
312
+ children: r
288
313
  }
289
314
  ) : null,
290
- p ? /* @__PURE__ */ t(f, { open: u, onOpenChange: v, children: [
315
+ p ? /* @__PURE__ */ i(f, { open: u, onOpenChange: v, children: [
291
316
  /* @__PURE__ */ e(f.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
292
- ae,
317
+ ue,
293
318
  {
294
319
  size: "md",
295
320
  intent: "ghost",
296
321
  className: "ds:ms-auto ds:md:hidden",
297
- icon: u ? /* @__PURE__ */ e(re, { "aria-hidden": "true" }) : /* @__PURE__ */ e(oe, { "aria-hidden": "true" }),
322
+ icon: u ? /* @__PURE__ */ e(me, { "aria-hidden": "true" }) : /* @__PURE__ */ e(ve, { "aria-hidden": "true" }),
298
323
  "aria-controls": c,
299
324
  "aria-expanded": u,
300
- "aria-label": i
325
+ "aria-label": t
301
326
  }
302
327
  ) }),
303
- /* @__PURE__ */ t(f.Content, { side: "end", size: "md", id: c, children: [
328
+ /* @__PURE__ */ i(f.Content, { side: "end", size: "md", id: c, children: [
304
329
  /* @__PURE__ */ e(f.Header, { children: /* @__PURE__ */ e(f.Title, { children: a }) }),
305
- /* @__PURE__ */ e(f.Body, { children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
306
- r ? /* @__PURE__ */ e(g.Provider, { value: "mobile", children: /* @__PURE__ */ e(
330
+ /* @__PURE__ */ e(f.Body, { children: /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
331
+ o ? /* @__PURE__ */ e(g.Provider, { value: "mobile", children: /* @__PURE__ */ e(
307
332
  "nav",
308
333
  {
309
334
  "aria-label": a,
310
335
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
311
336
  "data-mobile-nav": "true",
312
- children: r
337
+ children: o
313
338
  }
314
339
  ) }) : null,
315
- n && !l ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:mt-[var(--spacing-md)]", children: n }) : null
340
+ r && !l ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:mt-[var(--spacing-md)]", children: r }) : null
316
341
  ] }) })
317
342
  ] })
318
343
  ] }) : null
319
344
  ] });
320
345
  }
321
- const E = h(
346
+ const K = b(
322
347
  ({
323
348
  logo: s,
324
- homeHref: o = "/",
349
+ homeHref: n = "/",
325
350
  homeLabel: d,
326
351
  navSlot: a,
327
- actionsSlot: i,
328
- variant: r = "pill",
329
- sticky: n = "none",
352
+ actionsSlot: t,
353
+ variant: o = "pill",
354
+ sticky: r = "none",
330
355
  stickyOffset: l = 80,
331
356
  menuLabel: u,
332
357
  navLabel: v,
333
358
  persistActions: c = !1,
334
359
  id: p,
335
- className: b,
336
- ...q
337
- }, F) => {
338
- const { t: x } = de("ui"), j = ge(), S = Z(), W = `${p ?? S}-sheet`, [w, k] = y(!1), A = r === "transparent" || n === "scroll-up", { stuck: X, hidden: $ } = he(
339
- A,
340
- n,
360
+ className: x,
361
+ ...X
362
+ }, G) => {
363
+ const { t: w } = le("ui"), P = Ce(), J = oe(), Q = `${p ?? J}-sheet`, [y, C] = h(!1), U = o === "transparent" || r === "scroll-up", { stuck: Z, hidden: ee } = He(
364
+ U,
365
+ r,
341
366
  l
342
- ), H = j ? !1 : $, G = ne({
343
- disabled: n === "none" || H
344
- }), M = D(() => k(!0), []), L = D(() => k(!1), []);
345
- ee(
346
- F,
367
+ ), L = P ? !1 : ee, R = pe({
368
+ disabled: r === "none" || L
369
+ }), [se, de] = h(null), ae = H(
370
+ (I) => {
371
+ R(I), de(I);
372
+ },
373
+ [R]
374
+ );
375
+ je(se, r !== "none");
376
+ const D = H(() => C(!0), []), E = H(() => C(!1), []);
377
+ ie(
378
+ G,
347
379
  () => ({
348
- openMenu: M,
349
- closeMenu: L,
350
- getMenuOpen: () => w
380
+ openMenu: D,
381
+ closeMenu: E,
382
+ getMenuOpen: () => y
351
383
  }),
352
- [M, L, w]
384
+ [D, E, y]
353
385
  );
354
- const J = d ?? x("publicHeader.homeLabel", "AlfaDocs — home"), Q = v ?? x("publicHeader.primaryNavLabel", "Primary"), U = u ?? (w ? x("publicHeader.closeMenu", "Close menu") : x("publicHeader.openMenu", "Open menu")), P = {
386
+ const ne = d ?? w("publicHeader.homeLabel", "AlfaDocs — home"), re = v ?? w("publicHeader.primaryNavLabel", "Primary"), te = u ?? (y ? w("publicHeader.closeMenu", "Close menu") : w("publicHeader.openMenu", "Open menu")), z = {
355
387
  logo: s,
356
- homeHref: o,
357
- resolvedHomeLabel: J,
358
- resolvedNavLabel: Q,
359
- resolvedMenuLabel: U,
388
+ homeHref: n,
389
+ resolvedHomeLabel: ne,
390
+ resolvedNavLabel: re,
391
+ resolvedMenuLabel: te,
360
392
  navSlot: a,
361
- actionsSlot: i,
393
+ actionsSlot: t,
362
394
  persistActions: c,
363
- menuOpen: w,
364
- setMenuOpen: k,
365
- sheetId: W
395
+ menuOpen: y,
396
+ setMenuOpen: C,
397
+ sheetId: Q
366
398
  };
367
399
  return /* @__PURE__ */ e(
368
400
  "header",
369
401
  {
370
- ...q,
371
- ref: G,
402
+ ...X,
403
+ ref: ae,
372
404
  "data-component": "public-header",
373
405
  "data-component-id": p,
374
- "data-variant": r,
375
- "data-stuck": X ? "true" : void 0,
376
- "data-hidden": H ? "true" : void 0,
377
- "data-state": j ? "reduced-motion" : void 0,
378
- className: ie({ variant: r, sticky: n, className: b }),
379
- children: r === "pill" ? /* @__PURE__ */ e(
406
+ "data-variant": o,
407
+ "data-sticky": r === "none" ? void 0 : r,
408
+ "data-stuck": Z ? "true" : void 0,
409
+ "data-hidden": L ? "true" : void 0,
410
+ "data-state": P ? "reduced-motion" : void 0,
411
+ className: fe({ variant: o, sticky: r, className: x }),
412
+ children: o === "pill" ? /* @__PURE__ */ e(
380
413
  "div",
381
414
  {
382
415
  "data-component": "public-header-container",
383
- className: te,
384
- children: /* @__PURE__ */ e(B, { ...P })
416
+ className: ge,
417
+ children: /* @__PURE__ */ e(Y, { ...z })
385
418
  }
386
- ) : /* @__PURE__ */ e(B, { ...P })
419
+ ) : /* @__PURE__ */ e(Y, { ...z })
387
420
  }
388
421
  );
389
422
  }
390
423
  );
391
- E.displayName = "PublicHeader";
392
- const T = h(({ active: s, className: o, children: d, ...a }, i) => N(g) === "mobile" ? /* @__PURE__ */ e(
424
+ K.displayName = "PublicHeader";
425
+ const F = b(({ active: s, className: n, children: d, ...a }, t) => k(g) === "mobile" ? /* @__PURE__ */ e(
393
426
  "a",
394
427
  {
395
- ref: i,
428
+ ref: t,
396
429
  ...a,
397
430
  "data-active": s ? "true" : void 0,
398
431
  "aria-current": s ? "page" : void 0,
@@ -407,30 +440,30 @@ const T = h(({ active: s, className: o, children: d, ...a }, i) => N(g) === "mob
407
440
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
408
441
  "ds:data-[active=true]:text-[var(--primary)]",
409
442
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
410
- o
443
+ n
411
444
  ].filter(Boolean).join(" "),
412
445
  children: d
413
446
  }
414
447
  ) : /* @__PURE__ */ e(m.Item, { children: /* @__PURE__ */ e(m.Link, { asChild: !0, active: s, children: /* @__PURE__ */ e(
415
448
  "a",
416
449
  {
417
- ref: i,
450
+ ref: t,
418
451
  ...a,
419
452
  "data-active": s ? "true" : void 0,
420
453
  "aria-current": s ? "page" : void 0,
421
- className: [ce(), o].filter(Boolean).join(" "),
454
+ className: [he(), n].filter(Boolean).join(" "),
422
455
  children: d
423
456
  }
424
457
  ) }) }));
425
- T.displayName = "PublicHeader.NavLink";
426
- const O = h(({ label: s, wide: o = !1, children: d, id: a }, i) => N(g) === "mobile" ? /* @__PURE__ */ t(
458
+ F.displayName = "PublicHeader.NavLink";
459
+ const q = b(({ label: s, wide: n = !1, children: d, id: a }, t) => k(g) === "mobile" ? /* @__PURE__ */ i(
427
460
  "details",
428
461
  {
429
462
  id: a,
430
463
  "data-component": "public-header-nav-dropdown",
431
464
  className: "ds:group ds:border-b ds:border-[color:var(--border)]",
432
465
  children: [
433
- /* @__PURE__ */ t(
466
+ /* @__PURE__ */ i(
434
467
  "summary",
435
468
  {
436
469
  className: [
@@ -444,7 +477,7 @@ const O = h(({ label: s, wide: o = !1, children: d, id: a }, i) => N(g) === "mob
444
477
  children: [
445
478
  /* @__PURE__ */ e("span", { children: s }),
446
479
  /* @__PURE__ */ e(
447
- R,
480
+ B,
448
481
  {
449
482
  "aria-hidden": "true",
450
483
  className: "ds:size-3 ds:shrink-0 ds:transition-transform ds:duration-[var(--animation-duration)] ds:group-[[open]]:rotate-180 ds:motion-reduce:transition-none"
@@ -456,39 +489,39 @@ const O = h(({ label: s, wide: o = !1, children: d, id: a }, i) => N(g) === "mob
456
489
  /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]", children: d })
457
490
  ]
458
491
  }
459
- ) : /* @__PURE__ */ t(m.Item, { "data-component": "public-header-nav-dropdown", children: [
460
- /* @__PURE__ */ t(
492
+ ) : /* @__PURE__ */ i(m.Item, { "data-component": "public-header-nav-dropdown", children: [
493
+ /* @__PURE__ */ i(
461
494
  m.Trigger,
462
495
  {
463
- ref: i,
496
+ ref: t,
464
497
  id: a,
465
- className: le,
498
+ className: be,
466
499
  children: [
467
500
  s,
468
- /* @__PURE__ */ e(R, { "aria-hidden": "true", className: ue })
501
+ /* @__PURE__ */ e(B, { "aria-hidden": "true", className: xe })
469
502
  ]
470
503
  }
471
504
  ),
472
505
  /* @__PURE__ */ e(
473
506
  m.Content,
474
507
  {
475
- className: pe({ wide: o }),
508
+ className: we({ wide: n }),
476
509
  children: d
477
510
  }
478
511
  )
479
512
  ] }));
480
- O.displayName = "PublicHeader.NavDropdown";
481
- const K = h(({ href: s, title: o, subtitle: d, children: a }, i) => {
482
- const r = N(g), n = /* @__PURE__ */ e(
513
+ q.displayName = "PublicHeader.NavDropdown";
514
+ const W = b(({ href: s, title: n, subtitle: d, children: a }, t) => {
515
+ const o = k(g), r = /* @__PURE__ */ e(
483
516
  "span",
484
517
  {
485
518
  "data-card-title": !0,
486
519
  className: "type-title-card ds:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
487
- children: o
520
+ children: n
488
521
  }
489
- ), v = /* @__PURE__ */ t(V, { children: [
490
- /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
491
- n,
522
+ ), v = /* @__PURE__ */ i(A, { children: [
523
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
524
+ r,
492
525
  d ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: d }) : null
493
526
  ] }),
494
527
  /* @__PURE__ */ e(
@@ -497,7 +530,7 @@ const K = h(({ href: s, title: o, subtitle: d, children: a }, i) => {
497
530
  "data-card-arrow": !0,
498
531
  "aria-hidden": "true",
499
532
  className: "ds:flex-none ds:text-[var(--muted-foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:rtl:-scale-x-100",
500
- children: /* @__PURE__ */ t(
533
+ children: /* @__PURE__ */ i(
501
534
  "svg",
502
535
  {
503
536
  xmlns: "http://www.w3.org/2000/svg",
@@ -519,13 +552,13 @@ const K = h(({ href: s, title: o, subtitle: d, children: a }, i) => {
519
552
  )
520
553
  ] });
521
554
  let c;
522
- return s ? r === "mobile" ? c = /* @__PURE__ */ e("a", { href: s, className: z, children: v }) : c = /* @__PURE__ */ e(m.Link, { asChild: !0, children: /* @__PURE__ */ e("a", { href: s, className: z, children: v }) }) : c = /* @__PURE__ */ t("div", { className: ve, children: [
523
- n,
555
+ return s ? o === "mobile" ? c = /* @__PURE__ */ e("a", { href: s, className: S, children: v }) : c = /* @__PURE__ */ e(m.Link, { asChild: !0, children: /* @__PURE__ */ e("a", { href: s, className: S, children: v }) }) : c = /* @__PURE__ */ i("div", { className: Ne, children: [
556
+ r,
524
557
  d ? /* @__PURE__ */ e("span", { className: "ds:block type-body-sm ds:text-[var(--muted-foreground)] ds:mt-[var(--spacing-xs)]", children: d }) : null
525
- ] }), /* @__PURE__ */ t(
558
+ ] }), /* @__PURE__ */ i(
526
559
  "div",
527
560
  {
528
- ref: i,
561
+ ref: t,
529
562
  "data-component": "public-header-dropdown-card",
530
563
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
531
564
  children: [
@@ -535,28 +568,28 @@ const K = h(({ href: s, title: o, subtitle: d, children: a }, i) => {
535
568
  }
536
569
  );
537
570
  });
538
- K.displayName = "PublicHeader.DropdownCard";
539
- const Y = h(({ active: s, className: o, children: d, ...a }, i) => {
540
- const r = N(g), n = /* @__PURE__ */ e(
571
+ W.displayName = "PublicHeader.DropdownCard";
572
+ const $ = b(({ active: s, className: n, children: d, ...a }, t) => {
573
+ const o = k(g), r = /* @__PURE__ */ e(
541
574
  "a",
542
575
  {
543
- ref: i,
576
+ ref: t,
544
577
  ...a,
545
578
  "data-active": s ? "true" : void 0,
546
579
  "aria-current": s ? "page" : void 0,
547
- className: [fe, o].filter(Boolean).join(" "),
580
+ className: [ke, n].filter(Boolean).join(" "),
548
581
  children: d
549
582
  }
550
583
  );
551
- return /* @__PURE__ */ e("li", { "data-component": "public-header-dropdown-link", children: r === "mobile" ? n : /* @__PURE__ */ e(m.Link, { asChild: !0, active: s, children: n }) });
584
+ return /* @__PURE__ */ e("li", { "data-component": "public-header-dropdown-link", children: o === "mobile" ? r : /* @__PURE__ */ e(m.Link, { asChild: !0, active: s, children: r }) });
552
585
  });
553
- Y.displayName = "PublicHeader.DropdownLink";
554
- const Le = Object.assign(E, {
555
- NavLink: T,
556
- NavDropdown: O,
557
- DropdownCard: K,
558
- DropdownLink: Y
559
- }), Pe = {
586
+ $.displayName = "PublicHeader.DropdownLink";
587
+ const Oe = Object.assign(K, {
588
+ NavLink: F,
589
+ NavDropdown: q,
590
+ DropdownCard: W,
591
+ DropdownLink: $
592
+ }), Te = {
560
593
  id: "public-header",
561
594
  capabilities: ["open", "close"],
562
595
  state: {
@@ -597,7 +630,7 @@ const Le = Object.assign(E, {
597
630
  }
598
631
  };
599
632
  export {
600
- Le as P,
601
- Pe as p
633
+ Oe as P,
634
+ Te as p
602
635
  };
603
- //# sourceMappingURL=public-header.agent-DPPdCBi_.js.map
636
+ //# sourceMappingURL=public-header.agent-_ArDD1Xr.js.map