@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.
- package/dist/_chunks/{booking-CNNtMjXC.js → booking-ya6O9yBv.js} +302 -303
- package/dist/_chunks/booking-ya6O9yBv.js.map +1 -0
- package/dist/_chunks/{public-header.agent-DPPdCBi_.js → public-header.agent-_ArDD1Xr.js} +169 -136
- package/dist/_chunks/public-header.agent-_ArDD1Xr.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/sticky-header-clearance.d.ts +8 -0
- package/dist/components/_shared/sticky-header-clearance.d.ts.map +1 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts.map +1 -1
- package/dist/components/booking/step-focus.d.ts +5 -4
- package/dist/components/booking/step-focus.d.ts.map +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-CNNtMjXC.js.map +0 -1
- package/dist/_chunks/public-header.agent-DPPdCBi_.js.map +0 -1
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
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
|
|
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
|
|
9
|
-
import { C as
|
|
10
|
-
import { X as
|
|
11
|
-
import { M as
|
|
12
|
-
const
|
|
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
|
-
),
|
|
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(" "),
|
|
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
|
-
),
|
|
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(" "),
|
|
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(" "),
|
|
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
|
-
),
|
|
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(" "),
|
|
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(" "),
|
|
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(" "),
|
|
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
|
|
215
|
-
const [s,
|
|
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 = () =>
|
|
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
|
|
223
|
-
const [a,
|
|
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 (
|
|
230
|
-
const
|
|
231
|
-
|
|
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,
|
|
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
|
|
267
|
+
function Y({
|
|
243
268
|
logo: s,
|
|
244
|
-
homeHref:
|
|
269
|
+
homeHref: n,
|
|
245
270
|
resolvedHomeLabel: d,
|
|
246
271
|
resolvedNavLabel: a,
|
|
247
|
-
resolvedMenuLabel:
|
|
248
|
-
navSlot:
|
|
249
|
-
actionsSlot:
|
|
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 = !!
|
|
256
|
-
return /* @__PURE__ */
|
|
280
|
+
const p = !!o || !!r && !l;
|
|
281
|
+
return /* @__PURE__ */ i(A, { children: [
|
|
257
282
|
/* @__PURE__ */ e(
|
|
258
283
|
"a",
|
|
259
284
|
{
|
|
260
|
-
href:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
312
|
+
children: r
|
|
288
313
|
}
|
|
289
314
|
) : null,
|
|
290
|
-
p ? /* @__PURE__ */
|
|
315
|
+
p ? /* @__PURE__ */ i(f, { open: u, onOpenChange: v, children: [
|
|
291
316
|
/* @__PURE__ */ e(f.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
292
|
-
|
|
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(
|
|
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":
|
|
325
|
+
"aria-label": t
|
|
301
326
|
}
|
|
302
327
|
) }),
|
|
303
|
-
/* @__PURE__ */
|
|
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__ */
|
|
306
|
-
|
|
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:
|
|
337
|
+
children: o
|
|
313
338
|
}
|
|
314
339
|
) }) : null,
|
|
315
|
-
|
|
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
|
|
346
|
+
const K = b(
|
|
322
347
|
({
|
|
323
348
|
logo: s,
|
|
324
|
-
homeHref:
|
|
349
|
+
homeHref: n = "/",
|
|
325
350
|
homeLabel: d,
|
|
326
351
|
navSlot: a,
|
|
327
|
-
actionsSlot:
|
|
328
|
-
variant:
|
|
329
|
-
sticky:
|
|
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:
|
|
336
|
-
...
|
|
337
|
-
},
|
|
338
|
-
const { t:
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
),
|
|
343
|
-
disabled:
|
|
344
|
-
}),
|
|
345
|
-
|
|
346
|
-
|
|
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:
|
|
349
|
-
closeMenu:
|
|
350
|
-
getMenuOpen: () =>
|
|
380
|
+
openMenu: D,
|
|
381
|
+
closeMenu: E,
|
|
382
|
+
getMenuOpen: () => y
|
|
351
383
|
}),
|
|
352
|
-
[
|
|
384
|
+
[D, E, y]
|
|
353
385
|
);
|
|
354
|
-
const
|
|
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:
|
|
357
|
-
resolvedHomeLabel:
|
|
358
|
-
resolvedNavLabel:
|
|
359
|
-
resolvedMenuLabel:
|
|
388
|
+
homeHref: n,
|
|
389
|
+
resolvedHomeLabel: ne,
|
|
390
|
+
resolvedNavLabel: re,
|
|
391
|
+
resolvedMenuLabel: te,
|
|
360
392
|
navSlot: a,
|
|
361
|
-
actionsSlot:
|
|
393
|
+
actionsSlot: t,
|
|
362
394
|
persistActions: c,
|
|
363
|
-
menuOpen:
|
|
364
|
-
setMenuOpen:
|
|
365
|
-
sheetId:
|
|
395
|
+
menuOpen: y,
|
|
396
|
+
setMenuOpen: C,
|
|
397
|
+
sheetId: Q
|
|
366
398
|
};
|
|
367
399
|
return /* @__PURE__ */ e(
|
|
368
400
|
"header",
|
|
369
401
|
{
|
|
370
|
-
...
|
|
371
|
-
ref:
|
|
402
|
+
...X,
|
|
403
|
+
ref: ae,
|
|
372
404
|
"data-component": "public-header",
|
|
373
405
|
"data-component-id": p,
|
|
374
|
-
"data-variant":
|
|
375
|
-
"data-
|
|
376
|
-
"data-
|
|
377
|
-
"data-
|
|
378
|
-
|
|
379
|
-
|
|
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:
|
|
384
|
-
children: /* @__PURE__ */ e(
|
|
416
|
+
className: ge,
|
|
417
|
+
children: /* @__PURE__ */ e(Y, { ...z })
|
|
385
418
|
}
|
|
386
|
-
) : /* @__PURE__ */ e(
|
|
419
|
+
) : /* @__PURE__ */ e(Y, { ...z })
|
|
387
420
|
}
|
|
388
421
|
);
|
|
389
422
|
}
|
|
390
423
|
);
|
|
391
|
-
|
|
392
|
-
const
|
|
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:
|
|
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
|
-
|
|
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:
|
|
450
|
+
ref: t,
|
|
418
451
|
...a,
|
|
419
452
|
"data-active": s ? "true" : void 0,
|
|
420
453
|
"aria-current": s ? "page" : void 0,
|
|
421
|
-
className: [
|
|
454
|
+
className: [he(), n].filter(Boolean).join(" "),
|
|
422
455
|
children: d
|
|
423
456
|
}
|
|
424
457
|
) }) }));
|
|
425
|
-
|
|
426
|
-
const
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
460
|
-
/* @__PURE__ */
|
|
492
|
+
) : /* @__PURE__ */ i(m.Item, { "data-component": "public-header-nav-dropdown", children: [
|
|
493
|
+
/* @__PURE__ */ i(
|
|
461
494
|
m.Trigger,
|
|
462
495
|
{
|
|
463
|
-
ref:
|
|
496
|
+
ref: t,
|
|
464
497
|
id: a,
|
|
465
|
-
className:
|
|
498
|
+
className: be,
|
|
466
499
|
children: [
|
|
467
500
|
s,
|
|
468
|
-
/* @__PURE__ */ e(
|
|
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:
|
|
508
|
+
className: we({ wide: n }),
|
|
476
509
|
children: d
|
|
477
510
|
}
|
|
478
511
|
)
|
|
479
512
|
] }));
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
const
|
|
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:
|
|
520
|
+
children: n
|
|
488
521
|
}
|
|
489
|
-
), v = /* @__PURE__ */
|
|
490
|
-
/* @__PURE__ */
|
|
491
|
-
|
|
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__ */
|
|
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 ?
|
|
523
|
-
|
|
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__ */
|
|
558
|
+
] }), /* @__PURE__ */ i(
|
|
526
559
|
"div",
|
|
527
560
|
{
|
|
528
|
-
ref:
|
|
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
|
-
|
|
539
|
-
const
|
|
540
|
-
const
|
|
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:
|
|
576
|
+
ref: t,
|
|
544
577
|
...a,
|
|
545
578
|
"data-active": s ? "true" : void 0,
|
|
546
579
|
"aria-current": s ? "page" : void 0,
|
|
547
|
-
className: [
|
|
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:
|
|
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
|
-
|
|
554
|
-
const
|
|
555
|
-
NavLink:
|
|
556
|
-
NavDropdown:
|
|
557
|
-
DropdownCard:
|
|
558
|
-
DropdownLink:
|
|
559
|
-
}),
|
|
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
|
-
|
|
601
|
-
|
|
633
|
+
Oe as P,
|
|
634
|
+
Te as p
|
|
602
635
|
};
|
|
603
|
-
//# sourceMappingURL=public-header.agent-
|
|
636
|
+
//# sourceMappingURL=public-header.agent-_ArDD1Xr.js.map
|