@alfadocs/ui-kit 0.25.1 → 0.30.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.
Files changed (205) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  5. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  6. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  7. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  8. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  9. package/dist/_chunks/booking-BYuc_8HV.js +2250 -0
  10. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -142
  11. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  12. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  13. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  14. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  15. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  16. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-DYbp--s-.js} +3 -3
  17. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  18. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  19. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  20. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  21. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  22. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  23. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  24. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  25. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  26. package/dist/_chunks/{header-DqmKROIY.js → header-CkMb1TZS.js} +24 -24
  27. package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
  28. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  29. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  30. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  31. package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
  32. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  33. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  34. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  35. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  36. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  37. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  38. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  39. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  40. package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
  41. package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
  42. package/dist/_chunks/patient-shell-CAXYzbRw.js +173 -0
  43. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  44. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  45. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  46. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  47. package/dist/_chunks/public-footer.agent-CA29gxHJ.js +516 -0
  48. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  49. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  50. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  51. package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
  52. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  53. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  54. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  55. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  56. package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
  57. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  58. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  59. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  60. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  61. package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
  62. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  63. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  64. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  65. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  66. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  67. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  68. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  69. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  70. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  71. package/dist/agent-catalog.json +151 -51
  72. package/dist/components/agenda-card/index.js +1 -1
  73. package/dist/components/agenda-tray/index.js +1 -1
  74. package/dist/components/ai-prompt-input/index.js +1 -1
  75. package/dist/components/audio-recorder/index.js +1 -1
  76. package/dist/components/autocomplete/index.js +1 -1
  77. package/dist/components/avatar/index.js +1 -1
  78. package/dist/components/benefit-card/index.js +1 -1
  79. package/dist/components/booking/booking-types.d.ts +145 -0
  80. package/dist/components/booking/booking.agent.d.ts +4 -0
  81. package/dist/components/booking/booking.d.ts +6 -0
  82. package/dist/components/booking/cascade.d.ts +96 -0
  83. package/dist/components/booking/details-form.d.ts +32 -0
  84. package/dist/components/booking/index.d.ts +5 -0
  85. package/dist/components/booking/index.js +8 -0
  86. package/dist/components/button/index.js +1 -1
  87. package/dist/components/calendar/index.js +1 -1
  88. package/dist/components/card/index.js +1 -1
  89. package/dist/components/carousel/index.js +1 -1
  90. package/dist/components/chat-input/index.js +1 -1
  91. package/dist/components/chat-message/index.js +1 -1
  92. package/dist/components/checkbox/checkbox.d.ts +6 -2
  93. package/dist/components/command-palette/index.js +1 -1
  94. package/dist/components/contact-card/index.js +1 -1
  95. package/dist/components/data-table/index.js +1 -1
  96. package/dist/components/date-picker/index.js +1 -1
  97. package/dist/components/date-range-picker/index.js +1 -1
  98. package/dist/components/date-time-picker/index.js +1 -1
  99. package/dist/components/description-list/index.js +1 -1
  100. package/dist/components/dialog/index.js +1 -1
  101. package/dist/components/empty-state/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/header/index.js +1 -1
  104. package/dist/components/header-settings/index.js +16 -15
  105. package/dist/components/icon-button/index.js +1 -1
  106. package/dist/components/index.d.ts +4 -1
  107. package/dist/components/key-value-pair/index.js +1 -1
  108. package/dist/components/link/index.js +1 -1
  109. package/dist/components/link/link.d.ts +7 -0
  110. package/dist/components/locale-picker/index.js +1 -1
  111. package/dist/components/map-view/index.js +1 -1
  112. package/dist/components/matrix-rain/index.js +1 -1
  113. package/dist/components/message-card/index.js +1 -1
  114. package/dist/components/message-tray/index.js +1 -1
  115. package/dist/components/notification-card/index.js +1 -1
  116. package/dist/components/notification-tray/index.js +1 -1
  117. package/dist/components/password-input/index.js +1 -1
  118. package/dist/components/patient-search/index.d.ts +4 -0
  119. package/dist/components/patient-search/index.js +6 -0
  120. package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
  121. package/dist/components/patient-search/patient-search.d.ts +103 -0
  122. package/dist/components/payment-form/index.js +1 -1
  123. package/dist/components/pdf-viewer/index.js +1 -1
  124. package/dist/components/popover/index.js +1 -1
  125. package/dist/components/privacy-lock/index.js +1 -1
  126. package/dist/components/public-footer/index.d.ts +6 -0
  127. package/dist/components/public-footer/index.js +10 -0
  128. package/dist/components/public-footer/legal-urls.d.ts +18 -0
  129. package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
  130. package/dist/components/public-footer/public-footer.d.ts +51 -0
  131. package/dist/components/public-footer/socials.d.ts +9 -0
  132. package/dist/components/public-header/index.js +1 -1
  133. package/dist/components/recaptcha-widget/index.js +1 -1
  134. package/dist/components/reviews-panel/index.d.ts +4 -0
  135. package/dist/components/reviews-panel/index.js +6 -0
  136. package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
  137. package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
  138. package/dist/components/search-bar/index.js +1 -1
  139. package/dist/components/search-input/index.js +1 -1
  140. package/dist/components/sheet/index.js +1 -1
  141. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  142. package/dist/components/slot-grid/index.js +1 -1
  143. package/dist/components/spinner/index.js +1 -1
  144. package/dist/components/stepper-accordion/index.js +4 -3
  145. package/dist/components/task-tray/index.js +1 -1
  146. package/dist/components/theme-toggle/index.js +1 -1
  147. package/dist/components/timeline/index.js +1 -1
  148. package/dist/components/toast/index.js +1 -1
  149. package/dist/components/transcript-panel/index.js +1 -1
  150. package/dist/components/workflow/index.js +1 -1
  151. package/dist/hooks/index.js +1 -1
  152. package/dist/i18n/config.js +4923 -49
  153. package/dist/i18n/locales/ar.d.ts +272 -0
  154. package/dist/i18n/locales/de.d.ts +272 -0
  155. package/dist/i18n/locales/el.d.ts +272 -0
  156. package/dist/i18n/locales/es.d.ts +272 -0
  157. package/dist/i18n/locales/fr.d.ts +272 -0
  158. package/dist/i18n/locales/hi.d.ts +272 -0
  159. package/dist/i18n/locales/ja.d.ts +272 -0
  160. package/dist/i18n/locales/nl.d.ts +272 -0
  161. package/dist/i18n/locales/pl.d.ts +272 -0
  162. package/dist/i18n/locales/pt.d.ts +272 -0
  163. package/dist/i18n/locales/ro.d.ts +272 -0
  164. package/dist/i18n/locales/ru.d.ts +272 -0
  165. package/dist/i18n/locales/sq.d.ts +272 -0
  166. package/dist/i18n/locales/sv.d.ts +272 -0
  167. package/dist/i18n/locales/tr.d.ts +272 -0
  168. package/dist/i18n/locales/zh.d.ts +272 -0
  169. package/dist/i18n/resources.d.ts +544 -0
  170. package/dist/index.js +364 -348
  171. package/dist/locales/ar.json +273 -1
  172. package/dist/locales/de.json +273 -1
  173. package/dist/locales/el.json +273 -1
  174. package/dist/locales/en.json +273 -1
  175. package/dist/locales/es.json +273 -1
  176. package/dist/locales/fr.json +273 -1
  177. package/dist/locales/hi.json +273 -1
  178. package/dist/locales/it.json +273 -1
  179. package/dist/locales/ja.json +273 -1
  180. package/dist/locales/nl.json +273 -1
  181. package/dist/locales/pl.json +273 -1
  182. package/dist/locales/pt.json +273 -1
  183. package/dist/locales/ro.json +273 -1
  184. package/dist/locales/ru.json +273 -1
  185. package/dist/locales/sq.json +273 -1
  186. package/dist/locales/sv.json +273 -1
  187. package/dist/locales/tr.json +273 -1
  188. package/dist/locales/zh.json +273 -1
  189. package/dist/patterns/alia-assistant/index.js +1 -1
  190. package/dist/patterns/patient-shell/index.js +1 -1
  191. package/dist/tokens.css +1 -1
  192. package/package.json +17 -1
  193. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  194. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  195. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  196. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  197. package/dist/_chunks/slot-grid-CgpYgBkW.js +0 -502
  198. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  199. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  200. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  201. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  202. package/dist/components/stepper-calendar/index.d.ts +0 -4
  203. package/dist/components/stepper-calendar/index.js +0 -6
  204. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  205. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
@@ -0,0 +1,173 @@
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { forwardRef as w, useState as k } from "react";
3
+ import { useTranslation as m } from "react-i18next";
4
+ import { A } from "./app-frame-BYx1gcV7.js";
5
+ import { I as H } from "./icon-button-BRHSSFmZ.js";
6
+ import { D as i } from "./dropdown-menu-DZxwF23X.js";
7
+ import { H as x, g as C, f as B, e as M, a as N, c as T, d as O } from "./header-CkMb1TZS.js";
8
+ import { L as P } from "./logo-_Z-jLq80.js";
9
+ import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-DkyC6GvS.js";
10
+ import { T as E } from "./theme-root-BOO73p5t.js";
11
+ import { a as q } from "./tooltip-DHik5yRI.js";
12
+ import { u as F } from "./use-theme-C2dHKUAN.js";
13
+ import { S as U } from "./settings-ca2Yi9R8.js";
14
+ import { c as G } from "./createLucideIcon-CrFbzy84.js";
15
+ import { L as J } from "./log-out-616hnn2-.js";
16
+ /**
17
+ * @license lucide-react v1.8.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */
22
+ const K = [
23
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
24
+ ["path", { d: "m21 3-7 7", key: "1l2asr" }],
25
+ ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
26
+ ["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
27
+ ], Q = G("maximize-2", K);
28
+ function V(r) {
29
+ return r > 99 ? "99+" : String(r);
30
+ }
31
+ function X(r) {
32
+ if (r.startsWith("/") || r.startsWith("#") || r.startsWith("?"))
33
+ return !0;
34
+ try {
35
+ const t = new URL(r, window.location.origin);
36
+ return t.protocol === "http:" || t.protocol === "https:";
37
+ } catch {
38
+ return !1;
39
+ }
40
+ }
41
+ function Y({
42
+ logoutHref: r,
43
+ onToggleFullscreen: t
44
+ }) {
45
+ const { t: a } = m();
46
+ return /* @__PURE__ */ n(i.Root, { children: [
47
+ /* @__PURE__ */ e(i.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
48
+ H,
49
+ {
50
+ icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
51
+ "aria-label": a("patientShell.settings.triggerAria"),
52
+ tooltip: a("patientShell.settings.triggerAria"),
53
+ "data-testid": "patient-shell-settings-trigger"
54
+ }
55
+ ) }),
56
+ /* @__PURE__ */ n(i.Content, { align: "end", children: [
57
+ /* @__PURE__ */ e(
58
+ i.Item,
59
+ {
60
+ startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
61
+ onSelect: t,
62
+ "data-testid": "patient-shell-fullscreen",
63
+ children: a("patientShell.settings.fullscreen")
64
+ }
65
+ ),
66
+ /* @__PURE__ */ e(i.Separator, {}),
67
+ /* @__PURE__ */ e(
68
+ i.Item,
69
+ {
70
+ startIcon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
71
+ onSelect: () => {
72
+ typeof window > "u" || X(r) && window.location.assign(r);
73
+ },
74
+ "data-testid": "patient-shell-logout",
75
+ children: a("patientShell.settings.logout")
76
+ }
77
+ )
78
+ ] })
79
+ ] });
80
+ }
81
+ function Z({ menuItems: r }) {
82
+ return /* @__PURE__ */ e(j, { children: r.map((t) => {
83
+ const a = typeof t.badgeCount == "number" && t.badgeCount > 0 ? t.badgeCount : void 0;
84
+ return /* @__PURE__ */ n(
85
+ R,
86
+ {
87
+ href: t.href,
88
+ "aria-label": t.label,
89
+ isActive: t.isActive,
90
+ children: [
91
+ t.icon ? /* @__PURE__ */ e(_, { children: t.icon }) : null,
92
+ /* @__PURE__ */ e(z, { children: t.label }),
93
+ a !== void 0 ? /* @__PURE__ */ e(D, { children: V(a) }) : null
94
+ ]
95
+ },
96
+ t.id
97
+ );
98
+ }) });
99
+ }
100
+ const $ = w(
101
+ ({
102
+ menuItems: r,
103
+ logoutHref: t,
104
+ onToggleFullscreen: a,
105
+ brandLogo: p,
106
+ brandHref: u = "/",
107
+ mainAriaLabel: f,
108
+ sidebarState: o,
109
+ children: g,
110
+ // `userName` and `userAvatarSrc` are declared on the public API
111
+ // for forward-compatibility (future profile-pill work) — they are
112
+ // intentionally unused today because the legacy patient chrome
113
+ // carries no profile pill.
114
+ userName: ee,
115
+ userAvatarSrc: te
116
+ }, s) => {
117
+ const { t: d } = m(), { theme: S, accessibility: b, resolvedTheme: l } = F(), v = S !== "system" || b !== "system", y = l.startsWith("dark") ? "dark" : "light", I = l.endsWith("-accessible"), [L, c] = k(!1), h = /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
118
+ A,
119
+ {
120
+ mainAriaLabel: f,
121
+ header: /* @__PURE__ */ n(x, { children: [
122
+ /* @__PURE__ */ n(C, { children: [
123
+ /* @__PURE__ */ e(B, { href: "#main-content" }),
124
+ /* @__PURE__ */ e(M, { onMenuOpen: () => c(!0) }),
125
+ /* @__PURE__ */ e(
126
+ N,
127
+ {
128
+ logo: p ?? /* @__PURE__ */ e(P, { variant: "monochrome", size: "md", decorative: !0 }),
129
+ href: u,
130
+ "aria-label": d("patientShell.brand.homeAria")
131
+ }
132
+ )
133
+ ] }),
134
+ /* @__PURE__ */ e(T, {}),
135
+ /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
136
+ Y,
137
+ {
138
+ logoutHref: t,
139
+ onToggleFullscreen: a
140
+ }
141
+ ) })
142
+ ] }),
143
+ sidebar: /* @__PURE__ */ e(
144
+ W,
145
+ {
146
+ ...o !== void 0 ? { state: o } : { defaultState: "expanded" },
147
+ open: L,
148
+ onOpenChange: c,
149
+ "aria-label": d("patientShell.sidebar.panelLabel"),
150
+ "data-testid": "patient-shell-sidebar",
151
+ children: /* @__PURE__ */ e(Z, { menuItems: r })
152
+ }
153
+ ),
154
+ children: g
155
+ }
156
+ ) });
157
+ return v ? /* @__PURE__ */ e(
158
+ E,
159
+ {
160
+ ref: s,
161
+ theme: y,
162
+ accessible: I,
163
+ className: "ds:contents",
164
+ children: h
165
+ }
166
+ ) : /* @__PURE__ */ e("div", { ref: s, className: "ds:contents", children: h });
167
+ }
168
+ );
169
+ $.displayName = "PatientShell";
170
+ export {
171
+ $ as P
172
+ };
173
+ //# sourceMappingURL=patient-shell-CAXYzbRw.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as m, Fragment as ne } from "react/jsx-runtime";
2
2
  import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo as j, useImperativeHandle as ae, useId as oe, useCallback as ie } from "react";
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as q } from "react-i18next";
5
- import { S as J } from "./spinner-DirtWZNG.js";
5
+ import { S as J } from "./spinner-CCByyvcb.js";
6
6
  import { A as W } from "./alert-ywPR59NE.js";
7
7
  import { loadStripe as de } from "@stripe/stripe-js";
8
8
  import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
@@ -587,4 +587,4 @@ export {
587
587
  ye as p,
588
588
  ee as s
589
589
  };
590
- //# sourceMappingURL=payment-form-F7uh0Rqr.js.map
590
+ //# sourceMappingURL=payment-form-Ds3rxvad.js.map
@@ -5,7 +5,7 @@ import { c as J } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as pe } from "react-i18next";
6
6
  import * as ee from "@radix-ui/react-popover";
7
7
  import Me from "pdfjs-dist/build/pdf.worker.min.mjs?url";
8
- import { S as Le } from "./spinner-DirtWZNG.js";
8
+ import { S as Le } from "./spinner-CCByyvcb.js";
9
9
  import { A as we } from "./alert-ywPR59NE.js";
10
10
  import { u as Ze } from "./registry-C9nwlNyL.js";
11
11
  import { X as Be } from "./x-CCcI3eJp.js";
@@ -917,4 +917,4 @@ export {
917
917
  nt as P,
918
918
  Xe as p
919
919
  };
920
- //# sourceMappingURL=pdf-viewer-CuYaVR1I.js.map
920
+ //# sourceMappingURL=pdf-viewer-CIuaocnq.js.map
@@ -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-C4CGcYuz.js";
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
- // Border kept (transparent) so the forced-colors override below can
65
- // repaint a visible edge in HCM. In normal modes the soft drop-shadow
66
- // carries the edge cue; the heavy `--border` (grey-800 since WCAG
67
- // 1.4.11 bump in 67fef8c) made the popover read as a charcoal box.
68
- "ds:relative ds:bg-[var(--popover)] ds:border ds:border-transparent ds:rounded-[var(--radius-md)]",
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 [I, b] = C(c ?? !1), m = i !== void 0, l = m ? i : I, n = g(
109
+ const [b, I] = C(c ?? !1), m = i !== void 0, l = m ? i : b, n = g(
106
110
  (z) => {
107
- m || b(z), t == null || t(z);
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
- }, I) => {
180
- const { headingId: b, descriptionId: m } = u(y), l = u(M), {
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: I,
197
+ ref: b,
194
198
  side: a,
195
199
  align: o,
196
200
  sideOffset: 8,
197
201
  collisionPadding: 8,
198
- "aria-labelledby": b,
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--derJ_wq.js.map
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-C4CGcYuz.js";
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-BKsI6ReN.js.map
193
+ //# sourceMappingURL=privacy-lock-BI4vi9Ud.js.map