@alfadocs/ui-kit 0.25.0 → 0.25.2
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/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
- package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
- package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
- package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
- package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
- package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
- package/dist/_chunks/booking-CXngC-1u.js +1743 -0
- package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-9eOXumpH.js} +113 -142
- package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
- package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
- package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
- package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
- package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
- package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-CeEfEAxh.js} +2 -2
- package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
- package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
- package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
- package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
- package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
- package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
- package/dist/_chunks/eye-LHlSU38h.js +21 -0
- package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
- package/dist/_chunks/{header-DqmKROIY.js → header-B8V_sNPy.js} +2 -2
- package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
- package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
- package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
- package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
- package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
- package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
- package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
- package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
- package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
- package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
- package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
- package/dist/_chunks/patient-shell-Bq8CjRYF.js +173 -0
- package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
- package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
- package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
- package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
- package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
- package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
- package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
- package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
- package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
- package/dist/_chunks/{slot-grid-CgpYgBkW.js → slot-grid-DoodeQGZ.js} +4 -4
- package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
- package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
- package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
- package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
- package/dist/_chunks/stethoscope-B8kpbtjh.js +35 -0
- package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
- package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
- package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
- package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
- package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
- package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
- package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
- package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
- package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
- package/dist/agent-catalog.json +56 -51
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking.agent.d.ts +4 -0
- package/dist/components/booking/booking.d.ts +91 -0
- package/dist/components/booking/index.d.ts +4 -0
- package/dist/components/booking/index.js +6 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +60 -48
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +4 -3
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/i18n/config.js +1090 -46
- package/dist/i18n/locales/ar.d.ts +58 -0
- package/dist/i18n/locales/de.d.ts +58 -0
- package/dist/i18n/locales/el.d.ts +58 -0
- package/dist/i18n/locales/es.d.ts +58 -0
- package/dist/i18n/locales/fr.d.ts +58 -0
- package/dist/i18n/locales/hi.d.ts +58 -0
- package/dist/i18n/locales/ja.d.ts +58 -0
- package/dist/i18n/locales/nl.d.ts +58 -0
- package/dist/i18n/locales/pl.d.ts +58 -0
- package/dist/i18n/locales/pt.d.ts +58 -0
- package/dist/i18n/locales/ro.d.ts +58 -0
- package/dist/i18n/locales/ru.d.ts +58 -0
- package/dist/i18n/locales/sq.d.ts +58 -0
- package/dist/i18n/locales/sv.d.ts +58 -0
- package/dist/i18n/locales/tr.d.ts +58 -0
- package/dist/i18n/locales/zh.d.ts +58 -0
- package/dist/i18n/resources.d.ts +116 -0
- package/dist/index.js +270 -269
- package/dist/locales/ar.json +59 -1
- package/dist/locales/de.json +59 -1
- package/dist/locales/el.json +59 -1
- package/dist/locales/en.json +59 -1
- package/dist/locales/es.json +59 -1
- package/dist/locales/fr.json +59 -1
- package/dist/locales/hi.json +59 -1
- package/dist/locales/it.json +59 -1
- package/dist/locales/ja.json +59 -1
- package/dist/locales/nl.json +59 -1
- package/dist/locales/pl.json +59 -1
- package/dist/locales/pt.json +59 -1
- package/dist/locales/ro.json +59 -1
- package/dist/locales/ru.json +59 -1
- package/dist/locales/sq.json +59 -1
- package/dist/locales/sv.json +59 -1
- package/dist/locales/tr.json +59 -1
- package/dist/locales/zh.json +59 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
- package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
- package/dist/_chunks/patient-shell-B164drIa.js +0 -173
- package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
- package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
- package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
- package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
- package/dist/components/stepper-calendar/index.d.ts +0 -4
- package/dist/components/stepper-calendar/index.js +0 -6
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
|
@@ -3,7 +3,7 @@ import { useState as C, useCallback as g, useRef as R, useEffect as h, useMemo a
|
|
|
3
3
|
import * as v from "@radix-ui/react-popover";
|
|
4
4
|
import { c as G } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as J } from "react-i18next";
|
|
6
|
-
import { I as K } from "./icon-button-
|
|
6
|
+
import { I as K } from "./icon-button-BRHSSFmZ.js";
|
|
7
7
|
import { u as Q } from "./registry-C9nwlNyL.js";
|
|
8
8
|
import { X as U } from "./x-CCcI3eJp.js";
|
|
9
9
|
const Y = {
|
|
@@ -61,11 +61,15 @@ function Z(e) {
|
|
|
61
61
|
}
|
|
62
62
|
const _ = G(
|
|
63
63
|
[
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
|
|
64
|
+
// `--card-border` 32% alpha provides a subtle edge that survives dark
|
|
65
|
+
// without becoming a heavy outline. The previous transparent border
|
|
66
|
+
// relied on the drop-shadow alone, which reads as a faint halo against
|
|
67
|
+
// dark surfaces and lets the popover float as an unbounded blob; the
|
|
68
|
+
// earlier heavy `--border` (grey-800 since WCAG 1.4.11 bump in 67fef8c)
|
|
69
|
+
// overcorrected the other way and made the popover read as a charcoal
|
|
70
|
+
// box. The forced-colors override below upgrades the border to
|
|
71
|
+
// `CanvasText` so HCM still repaints a fully visible edge.
|
|
72
|
+
"ds:relative ds:bg-[var(--popover)] ds:border ds:border-[color:var(--card-border)] ds:rounded-[var(--radius-md)]",
|
|
69
73
|
"ds:p-[var(--spacing-md)]",
|
|
70
74
|
"ds:shadow-[var(--shadow-lg)]",
|
|
71
75
|
"ds:z-[var(--z-popover)]",
|
|
@@ -102,9 +106,9 @@ function T({
|
|
|
102
106
|
defaultOpen: c,
|
|
103
107
|
modal: P
|
|
104
108
|
}) {
|
|
105
|
-
const [
|
|
109
|
+
const [b, I] = C(c ?? !1), m = i !== void 0, l = m ? i : b, n = g(
|
|
106
110
|
(z) => {
|
|
107
|
-
m ||
|
|
111
|
+
m || I(z), t == null || t(z);
|
|
108
112
|
},
|
|
109
113
|
[m, t]
|
|
110
114
|
), d = R(null), p = e === "hover" || e === "hover-or-click", a = g(() => {
|
|
@@ -176,8 +180,8 @@ const B = f(
|
|
|
176
180
|
className: t,
|
|
177
181
|
children: c,
|
|
178
182
|
...P
|
|
179
|
-
},
|
|
180
|
-
const { headingId:
|
|
183
|
+
}, b) => {
|
|
184
|
+
const { headingId: I, descriptionId: m } = u(y), l = u(M), {
|
|
181
185
|
isHoverMode: n,
|
|
182
186
|
clearHoverTimer: d,
|
|
183
187
|
closeWithDelay: p
|
|
@@ -190,12 +194,12 @@ const B = f(
|
|
|
190
194
|
return /* @__PURE__ */ s(v.Portal, { children: /* @__PURE__ */ $(
|
|
191
195
|
v.Content,
|
|
192
196
|
{
|
|
193
|
-
ref:
|
|
197
|
+
ref: b,
|
|
194
198
|
side: a,
|
|
195
199
|
align: o,
|
|
196
200
|
sideOffset: 8,
|
|
197
201
|
collisionPadding: 8,
|
|
198
|
-
"aria-labelledby":
|
|
202
|
+
"aria-labelledby": I,
|
|
199
203
|
"aria-describedby": m,
|
|
200
204
|
className: _({ size: r, className: t }),
|
|
201
205
|
"data-component": "popover",
|
|
@@ -290,4 +294,4 @@ export {
|
|
|
290
294
|
ae as P,
|
|
291
295
|
Y as p
|
|
292
296
|
};
|
|
293
|
-
//# sourceMappingURL=popover
|
|
297
|
+
//# sourceMappingURL=popover-D0slaBB9.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as q, useState as G, useCallback as g, useRef as L, useImper
|
|
|
3
3
|
import { useTranslation as V } from "react-i18next";
|
|
4
4
|
import * as i from "@radix-ui/react-dialog";
|
|
5
5
|
import { B as u } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { I as W } from "./icon-button-
|
|
6
|
+
import { I as W } from "./icon-button-BRHSSFmZ.js";
|
|
7
7
|
import { L as X } from "./logo-_Z-jLq80.js";
|
|
8
8
|
import { u as Y } from "./registry-C9nwlNyL.js";
|
|
9
9
|
import { E as h } from "./eye-off-xEXDAh5z.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ee as P,
|
|
191
191
|
$ as p
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=privacy-lock-
|
|
193
|
+
//# sourceMappingURL=privacy-lock-BI4vi9Ud.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as i, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h, useId as Q, useState as y, useCallback as M, useImperativeHandle as U, useContext as N, useEffect as B, useRef as D, createContext as Z } from "react";
|
|
3
3
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ss } from "react-i18next";
|
|
5
5
|
import * as m from "@radix-ui/react-navigation-menu";
|
|
6
|
-
import { I as es } from "./icon-button-
|
|
7
|
-
import { S as f } from "./sheet-
|
|
6
|
+
import { I as es } from "./icon-button-BRHSSFmZ.js";
|
|
7
|
+
import { S as f } from "./sheet-D8M8hf8B.js";
|
|
8
8
|
import { C as I } from "./chevron-down-BX_NP2Yh.js";
|
|
9
9
|
import { X as ds } from "./x-CCcI3eJp.js";
|
|
10
10
|
import { M as as } from "./menu-XRhW3_99.js";
|
|
@@ -28,18 +28,25 @@ const g = Z("desktop"), ns = C(
|
|
|
28
28
|
"ds:bg-transparent ds:text-[var(--foreground)]",
|
|
29
29
|
"ds:data-[stuck=true]:bg-[var(--card)]",
|
|
30
30
|
"ds:data-[stuck=true]:shadow-[var(--shadow-md)]",
|
|
31
|
+
// Once stuck, pair the elevation shadow with a tokenized
|
|
32
|
+
// block-end border so the header has a clear edge against the
|
|
33
|
+
// page below it — shadow alone fades to a faint halo on dark
|
|
34
|
+
// surfaces, leaving the bar reading as unbounded.
|
|
35
|
+
"ds:data-[stuck=true]:border-block-end ds:data-[stuck=true]:border-[color:var(--border)]",
|
|
31
36
|
"ds:forced-colors:border-b ds:forced-colors:border-[CanvasText]"
|
|
32
37
|
].join(" "),
|
|
33
38
|
// `dark` flips its own scope into the dark token set so nav
|
|
34
|
-
// links + buttons inside read off-white text on the
|
|
39
|
+
// links + buttons inside read off-white text on the dark
|
|
35
40
|
// surface. Without the `theme-dark` scope the children inherit
|
|
36
|
-
// the light-theme `--foreground`
|
|
37
|
-
//
|
|
41
|
+
// the light-theme `--foreground` and fail color-contrast at
|
|
42
|
+
// ~1.3:1. `--background` already resolves to a dark step under
|
|
43
|
+
// `theme-dark`, so we compose the surface from the standard
|
|
44
|
+
// theme token rather than locking to a raw ramp step.
|
|
38
45
|
dark: [
|
|
39
46
|
"ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
|
|
40
47
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:sm:ps-[var(--spacing-lg)] ds:sm:pe-[var(--spacing-lg)]",
|
|
41
48
|
"ds:h-14 ds:md:h-16",
|
|
42
|
-
"theme-dark ds:bg-[var(--
|
|
49
|
+
"theme-dark ds:bg-[var(--background)] ds:text-[var(--foreground)]"
|
|
43
50
|
].join(" "),
|
|
44
51
|
// `pill` matches alfadocs.com's floating rounded-pill header.
|
|
45
52
|
// The outer header is fully transparent (no border, no bg) and
|
|
@@ -89,7 +96,8 @@ const g = Z("desktop"), ns = C(
|
|
|
89
96
|
"ds:inline-flex ds:items-center",
|
|
90
97
|
"type-body-sm ds:font-medium",
|
|
91
98
|
// Muted-foreground reads as secondary text and matches alfadocs.com's
|
|
92
|
-
// nav-link colour (
|
|
99
|
+
// nav-link colour (the reference's slate-grey). `--foreground` was too
|
|
100
|
+
// dark vs the ref.
|
|
93
101
|
"ds:text-[var(--muted-foreground)]",
|
|
94
102
|
"ds:rounded-[var(--radius-sm)]",
|
|
95
103
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
|
|
@@ -100,7 +108,7 @@ const g = Z("desktop"), ns = C(
|
|
|
100
108
|
"ds:data-[active=true]:text-[var(--primary)]",
|
|
101
109
|
"ds:data-[active=true]:[box-shadow:inset_0_-2px_0_var(--primary)]"
|
|
102
110
|
].join(" ")
|
|
103
|
-
),
|
|
111
|
+
), ts = [
|
|
104
112
|
"ds:group ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
105
113
|
"type-body-sm ds:font-medium",
|
|
106
114
|
// Mirror the navLinkVariants colour + inline padding so triggers and
|
|
@@ -114,7 +122,7 @@ const g = Z("desktop"), ns = C(
|
|
|
114
122
|
"ds:hover:text-[var(--primary)]",
|
|
115
123
|
"ds:data-[state=open]:text-[var(--primary)]",
|
|
116
124
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
117
|
-
].join(" "),
|
|
125
|
+
].join(" "), is = [
|
|
118
126
|
"ds:size-3 ds:shrink-0",
|
|
119
127
|
"ds:transition-transform ds:duration-[var(--animation-duration)]",
|
|
120
128
|
"ds:group-data-[state=open]:rotate-180",
|
|
@@ -199,13 +207,13 @@ function ps() {
|
|
|
199
207
|
}, []), e;
|
|
200
208
|
}
|
|
201
209
|
function vs(e, n, d) {
|
|
202
|
-
const [a,
|
|
210
|
+
const [a, t] = y(!1), [r, o] = y(!1), c = D(0), p = D(!1);
|
|
203
211
|
return B(() => {
|
|
204
212
|
if (!e || typeof window > "u") return;
|
|
205
213
|
c.current = window.scrollY;
|
|
206
214
|
const l = () => {
|
|
207
215
|
const v = window.scrollY;
|
|
208
|
-
if (
|
|
216
|
+
if (t(v > d), n === "scroll-up") {
|
|
209
217
|
const b = v - c.current;
|
|
210
218
|
b > 4 && v > d ? o(!0) : (b < -4 || v <= d) && o(!1);
|
|
211
219
|
}
|
|
@@ -223,14 +231,14 @@ function R({
|
|
|
223
231
|
homeHref: n,
|
|
224
232
|
resolvedHomeLabel: d,
|
|
225
233
|
resolvedNavLabel: a,
|
|
226
|
-
resolvedMenuLabel:
|
|
234
|
+
resolvedMenuLabel: t,
|
|
227
235
|
navSlot: r,
|
|
228
236
|
actionsSlot: o,
|
|
229
237
|
menuOpen: c,
|
|
230
238
|
setMenuOpen: p,
|
|
231
239
|
sheetId: l
|
|
232
240
|
}) {
|
|
233
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ i(_, { children: [
|
|
234
242
|
/* @__PURE__ */ s(
|
|
235
243
|
"a",
|
|
236
244
|
{
|
|
@@ -240,7 +248,7 @@ function R({
|
|
|
240
248
|
children: e
|
|
241
249
|
}
|
|
242
250
|
),
|
|
243
|
-
r ? /* @__PURE__ */ s(g.Provider, { value: "desktop", children: /* @__PURE__ */
|
|
251
|
+
r ? /* @__PURE__ */ s(g.Provider, { value: "desktop", children: /* @__PURE__ */ i(
|
|
244
252
|
m.Root,
|
|
245
253
|
{
|
|
246
254
|
"aria-label": a,
|
|
@@ -253,7 +261,7 @@ function R({
|
|
|
253
261
|
}
|
|
254
262
|
) }) : null,
|
|
255
263
|
o ? /* @__PURE__ */ s("div", { className: "ds:hidden ds:md:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ms-auto", children: o }) : null,
|
|
256
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ i(f, { open: c, onOpenChange: p, children: [
|
|
257
265
|
/* @__PURE__ */ s(f.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
258
266
|
es,
|
|
259
267
|
{
|
|
@@ -263,12 +271,12 @@ function R({
|
|
|
263
271
|
icon: c ? /* @__PURE__ */ s(ds, { "aria-hidden": "true" }) : /* @__PURE__ */ s(as, { "aria-hidden": "true" }),
|
|
264
272
|
"aria-controls": l,
|
|
265
273
|
"aria-expanded": c,
|
|
266
|
-
"aria-label":
|
|
274
|
+
"aria-label": t
|
|
267
275
|
}
|
|
268
276
|
) }),
|
|
269
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ i(f.Content, { side: "end", size: "md", id: l, children: [
|
|
270
278
|
/* @__PURE__ */ s(f.Header, { children: /* @__PURE__ */ s(f.Title, { children: a }) }),
|
|
271
|
-
/* @__PURE__ */ s(f.Body, { children: /* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ s(f.Body, { children: /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
272
280
|
r ? /* @__PURE__ */ s(g.Provider, { value: "mobile", children: /* @__PURE__ */ s(
|
|
273
281
|
"nav",
|
|
274
282
|
{
|
|
@@ -290,7 +298,7 @@ const E = h(
|
|
|
290
298
|
homeHref: n = "/",
|
|
291
299
|
homeLabel: d,
|
|
292
300
|
navSlot: a,
|
|
293
|
-
actionsSlot:
|
|
301
|
+
actionsSlot: t,
|
|
294
302
|
variant: r = "pill",
|
|
295
303
|
sticky: o = "none",
|
|
296
304
|
stickyOffset: c = 80,
|
|
@@ -321,7 +329,7 @@ const E = h(
|
|
|
321
329
|
resolvedNavLabel: J,
|
|
322
330
|
resolvedMenuLabel: K,
|
|
323
331
|
navSlot: a,
|
|
324
|
-
actionsSlot:
|
|
332
|
+
actionsSlot: t,
|
|
325
333
|
menuOpen: w,
|
|
326
334
|
setMenuOpen: k,
|
|
327
335
|
sheetId: q
|
|
@@ -350,10 +358,10 @@ const E = h(
|
|
|
350
358
|
}
|
|
351
359
|
);
|
|
352
360
|
E.displayName = "PublicHeader";
|
|
353
|
-
const T = h(({ active: e, className: n, children: d, ...a },
|
|
361
|
+
const T = h(({ active: e, className: n, children: d, ...a }, t) => N(g) === "mobile" ? /* @__PURE__ */ s(
|
|
354
362
|
"a",
|
|
355
363
|
{
|
|
356
|
-
ref:
|
|
364
|
+
ref: t,
|
|
357
365
|
...a,
|
|
358
366
|
"data-active": e ? "true" : void 0,
|
|
359
367
|
"aria-current": e ? "page" : void 0,
|
|
@@ -375,7 +383,7 @@ const T = h(({ active: e, className: n, children: d, ...a }, i) => N(g) === "mob
|
|
|
375
383
|
) : /* @__PURE__ */ s(m.Item, { children: /* @__PURE__ */ s(m.Link, { asChild: !0, active: e, children: /* @__PURE__ */ s(
|
|
376
384
|
"a",
|
|
377
385
|
{
|
|
378
|
-
ref:
|
|
386
|
+
ref: t,
|
|
379
387
|
...a,
|
|
380
388
|
"data-active": e ? "true" : void 0,
|
|
381
389
|
"aria-current": e ? "page" : void 0,
|
|
@@ -384,14 +392,14 @@ const T = h(({ active: e, className: n, children: d, ...a }, i) => N(g) === "mob
|
|
|
384
392
|
}
|
|
385
393
|
) }) }));
|
|
386
394
|
T.displayName = "PublicHeader.NavLink";
|
|
387
|
-
const V = h(({ label: e, wide: n = !1, children: d, id: a },
|
|
395
|
+
const V = h(({ label: e, wide: n = !1, children: d, id: a }, t) => N(g) === "mobile" ? /* @__PURE__ */ i(
|
|
388
396
|
"details",
|
|
389
397
|
{
|
|
390
398
|
id: a,
|
|
391
399
|
"data-component": "public-header-nav-dropdown",
|
|
392
400
|
className: "ds:group ds:border-b ds:border-[color:var(--border)]",
|
|
393
401
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ i(
|
|
395
403
|
"summary",
|
|
396
404
|
{
|
|
397
405
|
className: [
|
|
@@ -417,16 +425,16 @@ const V = h(({ label: e, wide: n = !1, children: d, id: a }, i) => N(g) === "mob
|
|
|
417
425
|
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]", children: d })
|
|
418
426
|
]
|
|
419
427
|
}
|
|
420
|
-
) : /* @__PURE__ */
|
|
421
|
-
/* @__PURE__ */
|
|
428
|
+
) : /* @__PURE__ */ i(m.Item, { "data-component": "public-header-nav-dropdown", children: [
|
|
429
|
+
/* @__PURE__ */ i(
|
|
422
430
|
m.Trigger,
|
|
423
431
|
{
|
|
424
|
-
ref:
|
|
432
|
+
ref: t,
|
|
425
433
|
id: a,
|
|
426
|
-
className:
|
|
434
|
+
className: ts,
|
|
427
435
|
children: [
|
|
428
436
|
e,
|
|
429
|
-
/* @__PURE__ */ s(I, { "aria-hidden": "true", className:
|
|
437
|
+
/* @__PURE__ */ s(I, { "aria-hidden": "true", className: is })
|
|
430
438
|
]
|
|
431
439
|
}
|
|
432
440
|
),
|
|
@@ -439,7 +447,7 @@ const V = h(({ label: e, wide: n = !1, children: d, id: a }, i) => N(g) === "mob
|
|
|
439
447
|
)
|
|
440
448
|
] }));
|
|
441
449
|
V.displayName = "PublicHeader.NavDropdown";
|
|
442
|
-
const O = h(({ href: e, title: n, subtitle: d, children: a },
|
|
450
|
+
const O = h(({ href: e, title: n, subtitle: d, children: a }, t) => {
|
|
443
451
|
const r = N(g), o = /* @__PURE__ */ s(
|
|
444
452
|
"span",
|
|
445
453
|
{
|
|
@@ -447,8 +455,8 @@ const O = h(({ href: e, title: n, subtitle: d, children: a }, i) => {
|
|
|
447
455
|
className: "type-title-card ds:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
448
456
|
children: n
|
|
449
457
|
}
|
|
450
|
-
), l = /* @__PURE__ */
|
|
451
|
-
/* @__PURE__ */
|
|
458
|
+
), l = /* @__PURE__ */ i(_, { children: [
|
|
459
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
452
460
|
o,
|
|
453
461
|
d ? /* @__PURE__ */ s("span", { className: "type-body-sm ds:text-[var(--muted-foreground)]", children: d }) : null
|
|
454
462
|
] }),
|
|
@@ -458,7 +466,7 @@ const O = h(({ href: e, title: n, subtitle: d, children: a }, i) => {
|
|
|
458
466
|
"data-card-arrow": !0,
|
|
459
467
|
"aria-hidden": "true",
|
|
460
468
|
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",
|
|
461
|
-
children: /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ i(
|
|
462
470
|
"svg",
|
|
463
471
|
{
|
|
464
472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -480,13 +488,13 @@ const O = h(({ href: e, title: n, subtitle: d, children: a }, i) => {
|
|
|
480
488
|
)
|
|
481
489
|
] });
|
|
482
490
|
let u;
|
|
483
|
-
return e ? r === "mobile" ? u = /* @__PURE__ */ s("a", { href: e, className: z, children: l }) : u = /* @__PURE__ */ s(m.Link, { asChild: !0, children: /* @__PURE__ */ s("a", { href: e, className: z, children: l }) }) : u = /* @__PURE__ */
|
|
491
|
+
return e ? r === "mobile" ? u = /* @__PURE__ */ s("a", { href: e, className: z, children: l }) : u = /* @__PURE__ */ s(m.Link, { asChild: !0, children: /* @__PURE__ */ s("a", { href: e, className: z, children: l }) }) : u = /* @__PURE__ */ i("div", { className: us, children: [
|
|
484
492
|
o,
|
|
485
493
|
d ? /* @__PURE__ */ s("span", { className: "ds:block type-body-sm ds:text-[var(--muted-foreground)] ds:mt-[var(--spacing-xs)]", children: d }) : null
|
|
486
|
-
] }), /* @__PURE__ */
|
|
494
|
+
] }), /* @__PURE__ */ i(
|
|
487
495
|
"div",
|
|
488
496
|
{
|
|
489
|
-
ref:
|
|
497
|
+
ref: t,
|
|
490
498
|
"data-component": "public-header-dropdown-card",
|
|
491
499
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
492
500
|
children: [
|
|
@@ -497,11 +505,11 @@ const O = h(({ href: e, title: n, subtitle: d, children: a }, i) => {
|
|
|
497
505
|
);
|
|
498
506
|
});
|
|
499
507
|
O.displayName = "PublicHeader.DropdownCard";
|
|
500
|
-
const S = h(({ active: e, className: n, children: d, ...a },
|
|
508
|
+
const S = h(({ active: e, className: n, children: d, ...a }, t) => {
|
|
501
509
|
const r = N(g), o = /* @__PURE__ */ s(
|
|
502
510
|
"a",
|
|
503
511
|
{
|
|
504
|
-
ref:
|
|
512
|
+
ref: t,
|
|
505
513
|
...a,
|
|
506
514
|
"data-active": e ? "true" : void 0,
|
|
507
515
|
"aria-current": e ? "page" : void 0,
|
|
@@ -556,4 +564,4 @@ export {
|
|
|
556
564
|
Cs as P,
|
|
557
565
|
js as p
|
|
558
566
|
};
|
|
559
|
-
//# sourceMappingURL=public-header.agent-
|
|
567
|
+
//# sourceMappingURL=public-header.agent-5U3S9QiC.js.map
|