@alfadocs/ui-kit 0.41.2 → 0.43.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 (199) hide show
  1. package/dist/_chunks/address-autocomplete-CSjMrBvu.js +358 -0
  2. package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
  3. package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
  4. package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
  5. package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
  6. package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
  7. package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
  8. package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
  9. package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
  10. package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
  11. package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
  12. package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
  13. package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
  14. package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
  15. package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
  16. package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
  17. package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
  18. package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
  19. package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
  20. package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
  21. package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
  22. package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
  23. package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
  24. package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
  25. package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
  26. package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
  27. package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
  28. package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
  29. package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
  30. package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
  31. package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
  32. package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
  33. package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
  34. package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
  35. package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
  36. package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
  37. package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
  38. package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
  39. package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
  40. package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
  41. package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
  42. package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
  43. package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
  44. package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
  45. package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
  46. package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
  47. package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
  48. package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
  49. package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
  50. package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
  51. package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
  52. package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
  53. package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
  54. package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
  55. package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
  56. package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
  57. package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
  58. package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
  59. package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
  60. package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
  61. package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
  62. package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
  63. package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
  64. package/dist/agent-catalog.json +1 -1
  65. package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
  66. package/dist/components/_shared/calendar-class-names.d.ts +8 -0
  67. package/dist/components/_shared/index.d.ts +2 -0
  68. package/dist/components/_shared/insert-result.d.ts +78 -6
  69. package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
  70. package/dist/components/address-autocomplete/index.d.ts +4 -0
  71. package/dist/components/address-autocomplete/index.js +6 -0
  72. package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
  73. package/dist/components/badge/badge.d.ts +1 -1
  74. package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
  75. package/dist/components/bmi-calculator/index.js +1 -1
  76. package/dist/components/booking/index.js +1 -1
  77. package/dist/components/breadcrumb/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/card/card.d.ts +1 -1
  80. package/dist/components/chart/chart.d.ts +10 -0
  81. package/dist/components/chart/index.js +1 -1
  82. package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
  83. package/dist/components/cycle-calculator/index.js +1 -1
  84. package/dist/components/data-table/index.js +1 -1
  85. package/dist/components/date-picker/date-picker.d.ts +0 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  88. package/dist/components/date-range-picker/index.js +1 -1
  89. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/document-scanner/index.js +1 -1
  93. package/dist/components/dropdown-menu/index.js +1 -1
  94. package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/freemium-paywall/index.js +1 -1
  97. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
  98. package/dist/components/gestational-age-calculator/index.js +1 -1
  99. package/dist/components/header/header.d.ts +8 -0
  100. package/dist/components/header/index.js +1 -1
  101. package/dist/components/header-settings/index.js +1 -1
  102. package/dist/components/index.d.ts +3 -1
  103. package/dist/components/kbd/index.js +1 -1
  104. package/dist/components/map-view/index.js +1 -1
  105. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  106. package/dist/components/patient-search/index.js +1 -1
  107. package/dist/components/payment-form/index.js +1 -1
  108. package/dist/components/pdf-viewer/index.js +1 -1
  109. package/dist/components/practice-results/index.js +1 -1
  110. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  111. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
  112. package/dist/components/public-header/index.js +1 -1
  113. package/dist/components/public-header/public-header.d.ts +1 -1
  114. package/dist/components/radio-group/index.js +1 -1
  115. package/dist/components/rich-text-editor/index.js +1 -1
  116. package/dist/components/sheet/index.js +1 -1
  117. package/dist/components/sign-document/index.js +1 -1
  118. package/dist/components/sign-document/sign-document.d.ts +12 -0
  119. package/dist/components/signature-capture/index.js +1 -1
  120. package/dist/components/stat/stat.d.ts +1 -1
  121. package/dist/components/tab-bar/index.d.ts +3 -0
  122. package/dist/components/tab-bar/index.js +5 -0
  123. package/dist/components/tab-bar/tab-bar.d.ts +104 -0
  124. package/dist/components/theme-toggle/index.js +1 -1
  125. package/dist/components/toast/index.js +1 -1
  126. package/dist/components/unit-converter/index.js +1 -1
  127. package/dist/components/unit-converter/unit-converter.d.ts +11 -1
  128. package/dist/components/workflow/index.js +1 -1
  129. package/dist/i18n/locales/ar.d.ts +17 -0
  130. package/dist/i18n/locales/ar.js +18 -1
  131. package/dist/i18n/locales/de.d.ts +17 -0
  132. package/dist/i18n/locales/de.js +18 -1
  133. package/dist/i18n/locales/el.d.ts +17 -0
  134. package/dist/i18n/locales/el.js +18 -1
  135. package/dist/i18n/locales/en.d.ts +17 -0
  136. package/dist/i18n/locales/en.js +18 -1
  137. package/dist/i18n/locales/es.d.ts +17 -0
  138. package/dist/i18n/locales/es.js +18 -1
  139. package/dist/i18n/locales/fr.d.ts +17 -0
  140. package/dist/i18n/locales/fr.js +18 -1
  141. package/dist/i18n/locales/hi.d.ts +17 -0
  142. package/dist/i18n/locales/hi.js +18 -1
  143. package/dist/i18n/locales/it.d.ts +17 -0
  144. package/dist/i18n/locales/it.js +18 -1
  145. package/dist/i18n/locales/ja.d.ts +17 -0
  146. package/dist/i18n/locales/ja.js +18 -1
  147. package/dist/i18n/locales/nl.d.ts +17 -0
  148. package/dist/i18n/locales/nl.js +18 -1
  149. package/dist/i18n/locales/pl.d.ts +17 -0
  150. package/dist/i18n/locales/pl.js +18 -1
  151. package/dist/i18n/locales/pt.d.ts +17 -0
  152. package/dist/i18n/locales/pt.js +18 -1
  153. package/dist/i18n/locales/ro.d.ts +17 -0
  154. package/dist/i18n/locales/ro.js +18 -1
  155. package/dist/i18n/locales/ru.d.ts +17 -0
  156. package/dist/i18n/locales/ru.js +18 -1
  157. package/dist/i18n/locales/sq.d.ts +17 -0
  158. package/dist/i18n/locales/sq.js +18 -1
  159. package/dist/i18n/locales/sv.d.ts +17 -0
  160. package/dist/i18n/locales/sv.js +18 -1
  161. package/dist/i18n/locales/tr.d.ts +17 -0
  162. package/dist/i18n/locales/tr.js +18 -1
  163. package/dist/i18n/locales/zh.d.ts +17 -0
  164. package/dist/i18n/locales/zh.js +18 -1
  165. package/dist/index.js +605 -599
  166. package/dist/locales/ar.json +18 -1
  167. package/dist/locales/de.json +18 -1
  168. package/dist/locales/el.json +18 -1
  169. package/dist/locales/en.json +18 -1
  170. package/dist/locales/es.json +18 -1
  171. package/dist/locales/fr.json +18 -1
  172. package/dist/locales/hi.json +18 -1
  173. package/dist/locales/it.json +18 -1
  174. package/dist/locales/ja.json +18 -1
  175. package/dist/locales/nl.json +18 -1
  176. package/dist/locales/pl.json +18 -1
  177. package/dist/locales/pt.json +18 -1
  178. package/dist/locales/ro.json +18 -1
  179. package/dist/locales/ru.json +18 -1
  180. package/dist/locales/sq.json +18 -1
  181. package/dist/locales/sv.json +18 -1
  182. package/dist/locales/tr.json +18 -1
  183. package/dist/locales/zh.json +18 -1
  184. package/dist/patterns/alia-assistant/index.js +1 -1
  185. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  186. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
  187. package/dist/patterns/patient-shell/index.js +1 -1
  188. package/dist/tokens.css +1411 -2
  189. package/package.json +16 -1
  190. package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
  191. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
  192. package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
  193. package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
  194. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
  195. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
  196. package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
  197. package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
  198. package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
  199. package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
@@ -0,0 +1,428 @@
1
+ import { jsxs as n, jsx as e, Fragment as T } from "react/jsx-runtime";
2
+ import { forwardRef as b, useState as P } from "react";
3
+ import { useTranslation as M } from "react-i18next";
4
+ import { c as p } from "./index-D2ZczOXr.js";
5
+ import { A as E } from "./app-frame-BYx1gcV7.js";
6
+ import { A as $ } from "./avatar-BNQNhoyL.js";
7
+ import { A as D } from "./alert-ywPR59NE.js";
8
+ import { C } from "./card-DPmk26CL.js";
9
+ import { D as i } from "./dropdown-menu-CUEXqKis.js";
10
+ import { T as F } from "./tab-bar-Xetknddo.js";
11
+ import { a as S, H as q, g as G, f as w, e as J, c as K, d as Q } from "./header-Ce1Br27u.js";
12
+ import { H as U } from "./header-settings-Bx0Biimh.js";
13
+ import { S as X } from "./sign-in-with-alfadocs-button-DeHBFRNS.js";
14
+ import { S as Y, a as Z, j as _, k as ee, i as ae, h as A } from "./sidebar-_vJXI9rB.js";
15
+ import { T as se } from "./theme-root-BOO73p5t.js";
16
+ import { a as te } from "./tooltip-DvmfrNvB.js";
17
+ import { u as re } from "./use-theme-C2dHKUAN.js";
18
+ import { L as ne } from "./logo-yituK7sE.js";
19
+ const de = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), le = p(
20
+ [
21
+ "ds:[font-family:var(--font-serif)]",
22
+ "ds:font-semibold",
23
+ "ds:leading-none",
24
+ "ds:tracking-[0.01em]",
25
+ "ds:whitespace-nowrap",
26
+ // Forced-colors: drop the transparent text-fill and paint the label
27
+ // as solid CanvasText so it never disappears under Windows HCM —
28
+ // a gradient/transparent fill has no meaning there.
29
+ "ds:forced-colors:text-[CanvasText]",
30
+ "ds:forced-colors:[-webkit-text-fill-color:CanvasText]"
31
+ ],
32
+ {
33
+ variants: {
34
+ size: {
35
+ sm: "ds:text-[calc(var(--logo-size-sm)*0.95)]",
36
+ md: "ds:text-[calc(var(--logo-size-md)*0.95)]",
37
+ lg: "ds:text-[calc(var(--logo-size-lg)*0.95)]",
38
+ xl: "ds:text-[calc(var(--logo-size-xl)*0.95)]"
39
+ },
40
+ tone: {
41
+ // Brand gradient filled into the glyphs via background-clip:text.
42
+ // `--gradient-wordmark` rides the theme aliases, so it stays
43
+ // AA-safe and adapts per theme on its own (and flattens to a solid
44
+ // ink in the accessible / forced-colors blocks — see tokens).
45
+ gradient: [
46
+ "ds:italic",
47
+ "ds:bg-[image:var(--gradient-wordmark)]",
48
+ "ds:bg-clip-text",
49
+ "ds:text-transparent",
50
+ "ds:[-webkit-text-fill-color:transparent]"
51
+ ],
52
+ // Monochrome: solid currentColor ink, upright, no gradient — for
53
+ // print, single-colour work, and coloured chrome (e.g. app-shell
54
+ // headers) where the lockup must ride the surrounding ink.
55
+ solid: "ds:text-current"
56
+ }
57
+ },
58
+ defaultVariants: { size: "md", tone: "gradient" }
59
+ }
60
+ ), h = b(
61
+ ({
62
+ name: s,
63
+ monochrome: r = !1,
64
+ tone: a = "auto",
65
+ size: t = "md",
66
+ className: d,
67
+ ...l
68
+ }, o) => /* @__PURE__ */ n(
69
+ "span",
70
+ {
71
+ ref: o,
72
+ role: "img",
73
+ "aria-label": `Alfadocs ${s}`.trim(),
74
+ className: de({ className: d }),
75
+ "data-component": "product-lockup",
76
+ ...l,
77
+ children: [
78
+ /* @__PURE__ */ e(
79
+ ne,
80
+ {
81
+ variant: r ? "monochrome" : "wordmark",
82
+ tone: a,
83
+ size: t,
84
+ decorative: !0
85
+ }
86
+ ),
87
+ /* @__PURE__ */ e(
88
+ "span",
89
+ {
90
+ "aria-hidden": !0,
91
+ className: le({
92
+ size: t,
93
+ tone: r ? "solid" : "gradient"
94
+ }),
95
+ children: s
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ )
101
+ );
102
+ h.displayName = "ProductLockup";
103
+ function ie(s) {
104
+ return s > 99 ? "99+" : String(s);
105
+ }
106
+ function oe({
107
+ user: s,
108
+ labels: r,
109
+ onSignOut: a,
110
+ onToggleFullscreen: t
111
+ }) {
112
+ const { t: d } = M(), l = r.fullscreen ?? d("patientShell.settings.fullscreen");
113
+ return (
114
+ // Non-modal: an account menu shouldn't inert/aria-hide the whole shell
115
+ // behind it (which leaves the still-focusable chrome inside an
116
+ // aria-hidden region — an `aria-hidden-focus` violation).
117
+ /* @__PURE__ */ n(i.Root, { modal: !1, children: [
118
+ /* @__PURE__ */ e(i.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
119
+ "button",
120
+ {
121
+ type: "button",
122
+ "aria-label": r.accountMenu,
123
+ "data-testid": "marketplace-account-trigger",
124
+ className: "ds:rounded-full ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)] ds:justify-center ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
125
+ children: [
126
+ /* @__PURE__ */ e($, { name: s.name, src: s.avatarSrc, size: "md" }),
127
+ /* @__PURE__ */ e("span", { className: "ds:hidden ds:sm:inline", children: s.name })
128
+ ]
129
+ }
130
+ ) }),
131
+ /* @__PURE__ */ n(i.Content, { align: "end", children: [
132
+ /* @__PURE__ */ e(i.Label, { children: /* @__PURE__ */ n("span", { className: "ds:flex ds:flex-col", children: [
133
+ /* @__PURE__ */ e("span", { className: "ds:font-medium", children: s.name }),
134
+ s.email ? /* @__PURE__ */ e("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: s.email }) : null
135
+ ] }) }),
136
+ t ? /* @__PURE__ */ n(T, { children: [
137
+ /* @__PURE__ */ e(i.Separator, {}),
138
+ /* @__PURE__ */ e(
139
+ i.Item,
140
+ {
141
+ onSelect: t,
142
+ "data-testid": "marketplace-fullscreen",
143
+ children: l
144
+ }
145
+ )
146
+ ] }) : null,
147
+ /* @__PURE__ */ e(i.Separator, {}),
148
+ /* @__PURE__ */ e(
149
+ i.Item,
150
+ {
151
+ onSelect: a,
152
+ "data-testid": "marketplace-sign-out",
153
+ children: r.signOut
154
+ }
155
+ )
156
+ ] })
157
+ ] })
158
+ );
159
+ }
160
+ function ce({
161
+ nav: s,
162
+ renderLink: r
163
+ }) {
164
+ return /* @__PURE__ */ e(Z, { children: s.map((a) => {
165
+ const t = typeof a.badgeCount == "number" && a.badgeCount > 0 ? a.badgeCount : void 0, d = /* @__PURE__ */ n(T, { children: [
166
+ a.icon ? /* @__PURE__ */ e(_, { children: a.icon }) : null,
167
+ /* @__PURE__ */ e(ee, { children: a.label }),
168
+ t !== void 0 ? /* @__PURE__ */ e(ae, { children: ie(t) }) : null
169
+ ] });
170
+ return r ? /* @__PURE__ */ e(A, { asChild: !0, isActive: a.isActive, children: r({
171
+ href: a.href,
172
+ children: d,
173
+ "aria-current": a.isActive ? "page" : void 0
174
+ }) }, a.id) : /* @__PURE__ */ e(
175
+ A,
176
+ {
177
+ href: a.href,
178
+ "aria-label": a.label,
179
+ isActive: a.isActive,
180
+ ...a.onClick ? { onClick: a.onClick } : {},
181
+ children: d
182
+ },
183
+ a.id
184
+ );
185
+ }) });
186
+ }
187
+ const z = p("ds:bg-[color:var(--app-shell-background)]", {
188
+ variants: {
189
+ variant: {
190
+ standalone: "",
191
+ embedded: [
192
+ "ds:flex-1",
193
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
194
+ "ds:pt-[var(--spacing-lg)] ds:pb-[var(--spacing-md)]"
195
+ ].join(" ")
196
+ }
197
+ },
198
+ defaultVariants: { variant: "standalone" }
199
+ });
200
+ function me({
201
+ nav: s,
202
+ ariaLabel: r,
203
+ renderLink: a
204
+ }) {
205
+ const t = a ? ({
206
+ href: d,
207
+ className: l,
208
+ children: o,
209
+ "aria-current": m
210
+ }) => a({ href: d, className: l, children: o, "aria-current": m }) : void 0;
211
+ return /* @__PURE__ */ e(
212
+ F,
213
+ {
214
+ items: s,
215
+ ariaLabel: r,
216
+ ...t ? { renderLink: t } : {}
217
+ }
218
+ );
219
+ }
220
+ const pe = b(
221
+ ({
222
+ productName: s,
223
+ productHref: r = "/",
224
+ nav: a,
225
+ renderLink: t,
226
+ user: d,
227
+ labels: l,
228
+ onSignOut: o,
229
+ onToggleFullscreen: m,
230
+ sidebarState: c,
231
+ mainAriaLabel: f,
232
+ variant: g = "standalone",
233
+ children: u
234
+ }, x) => {
235
+ const { t: v } = M(), B = t ? /* @__PURE__ */ e(S, { asChild: !0, children: t({
236
+ href: r,
237
+ children: /* @__PURE__ */ e(h, { name: s, size: "md", monochrome: !0 })
238
+ }) }) : /* @__PURE__ */ e(
239
+ S,
240
+ {
241
+ href: r,
242
+ logo: /* @__PURE__ */ e(h, { name: s, size: "md", monochrome: !0 })
243
+ }
244
+ ), { theme: H, accessibility: I, resolvedTheme: k } = re(), V = H !== "system" || I !== "system", j = k.startsWith("dark") ? "dark" : "light", L = k.endsWith("-accessible"), [O, N] = P(!1), W = /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(
245
+ E,
246
+ {
247
+ mainAriaLabel: f,
248
+ mainClassName: z({ variant: "standalone" }),
249
+ header: /* @__PURE__ */ n(q, { children: [
250
+ /* @__PURE__ */ n(G, { children: [
251
+ /* @__PURE__ */ e(w, { href: "#main-content" }),
252
+ /* @__PURE__ */ e(J, { onMenuOpen: () => N(!0) }),
253
+ B
254
+ ] }),
255
+ /* @__PURE__ */ e(K, {}),
256
+ /* @__PURE__ */ n(Q, { children: [
257
+ /* @__PURE__ */ e(U, { size: "sm" }),
258
+ /* @__PURE__ */ e(
259
+ oe,
260
+ {
261
+ user: d,
262
+ labels: l,
263
+ onSignOut: o,
264
+ onToggleFullscreen: m
265
+ }
266
+ )
267
+ ] })
268
+ ] }),
269
+ sidebar: /* @__PURE__ */ e(
270
+ Y,
271
+ {
272
+ ...c !== void 0 ? { state: c } : { defaultState: "expanded" },
273
+ open: O,
274
+ onOpenChange: N,
275
+ "aria-label": v("navigation.sidebar.label"),
276
+ "data-testid": "marketplace-app-shell-sidebar",
277
+ children: /* @__PURE__ */ e(ce, { nav: a, renderLink: t })
278
+ }
279
+ ),
280
+ children: u
281
+ }
282
+ ) }), R = (
283
+ // The shell owns the warm-grey canvas; TabBar's strip is transparent and
284
+ // floats its pill on it, and `<main>` continues the same surface.
285
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
286
+ /* @__PURE__ */ e(w, { href: "#main-content" }),
287
+ /* @__PURE__ */ e(
288
+ me,
289
+ {
290
+ nav: a,
291
+ ariaLabel: v("navigation.sidebar.label"),
292
+ renderLink: t
293
+ }
294
+ ),
295
+ /* @__PURE__ */ e(
296
+ "main",
297
+ {
298
+ id: "main-content",
299
+ tabIndex: -1,
300
+ "aria-label": f ?? v("navigation.main.label", "Main content"),
301
+ className: z({ variant: "embedded" }),
302
+ children: u
303
+ }
304
+ )
305
+ ] })
306
+ ), y = g === "embedded" ? R : W;
307
+ return V ? /* @__PURE__ */ e(
308
+ se,
309
+ {
310
+ ref: x,
311
+ theme: j,
312
+ accessible: L,
313
+ className: "ds:contents",
314
+ "data-component": "marketplace-app-shell",
315
+ children: y
316
+ }
317
+ ) : /* @__PURE__ */ e(
318
+ "div",
319
+ {
320
+ ref: x,
321
+ className: "ds:contents",
322
+ "data-component": "marketplace-app-shell",
323
+ children: y
324
+ }
325
+ );
326
+ }
327
+ );
328
+ pe.displayName = "MarketplaceAppShell";
329
+ const fe = p(
330
+ "ds:flex ds:min-h-dvh ds:bg-[color:var(--app-shell-background)]",
331
+ {
332
+ variants: {
333
+ layout: {
334
+ card: "",
335
+ split: "ds:flex-col ds:lg:flex-row"
336
+ }
337
+ },
338
+ defaultVariants: { layout: "card" }
339
+ }
340
+ ), he = p("ds:w-full", {
341
+ variants: {
342
+ layout: {
343
+ card: "ds:max-w-[400px]",
344
+ split: "ds:max-w-[400px] ds:lg:max-w-[480px]"
345
+ }
346
+ },
347
+ defaultVariants: { layout: "card" }
348
+ }), ue = p("", {
349
+ variants: {
350
+ layout: { card: "", split: "ds:lg:hidden" }
351
+ },
352
+ defaultVariants: { layout: "card" }
353
+ }), ge = b(
354
+ ({
355
+ productName: s,
356
+ title: r,
357
+ description: a,
358
+ connectLabel: t,
359
+ status: d = "idle",
360
+ error: l,
361
+ onConnect: o,
362
+ footer: m,
363
+ layout: c = "card",
364
+ brandPanel: f,
365
+ className: g
366
+ }, u) => /* @__PURE__ */ n(
367
+ "div",
368
+ {
369
+ ref: u,
370
+ "data-component": "connect-with-alfadocs",
371
+ className: `${fe({ layout: c })} ${g ?? ""}`,
372
+ children: [
373
+ c === "split" ? (
374
+ // Desktop brand panel (lg+ only): a bold `--primary` surface with the
375
+ // monochrome lockup riding the `--primary-foreground` ink, plus an
376
+ // optional `brandPanel` slot. Decorative — the card carries the real
377
+ // heading + CTA, and shows its own lockup below `lg:`.
378
+ /* @__PURE__ */ n("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
379
+ /* @__PURE__ */ e(
380
+ h,
381
+ {
382
+ name: s,
383
+ size: "lg",
384
+ monochrome: !0,
385
+ tone: "inherit"
386
+ }
387
+ ),
388
+ f ? /* @__PURE__ */ e("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: f }) : null
389
+ ] })
390
+ ) : null,
391
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ e(C, { className: he({ layout: c }), children: /* @__PURE__ */ n(C.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
392
+ /* @__PURE__ */ e(
393
+ h,
394
+ {
395
+ name: s,
396
+ size: "lg",
397
+ className: ue({ layout: c })
398
+ }
399
+ ),
400
+ /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
401
+ /* @__PURE__ */ e("h1", { className: "type-title-card", children: r }),
402
+ /* @__PURE__ */ e("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: a })
403
+ ] }),
404
+ d === "error" && l ? /* @__PURE__ */ e(D, { variant: "error", className: "ds:w-full ds:text-start", children: l }) : null,
405
+ /* @__PURE__ */ e(
406
+ X,
407
+ {
408
+ intent: "primary",
409
+ className: "ds:w-full",
410
+ loading: d === "connecting",
411
+ onClick: o,
412
+ label: t,
413
+ "data-testid": "connect-with-alfadocs-button"
414
+ }
415
+ ),
416
+ m ? /* @__PURE__ */ e("div", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: m }) : null
417
+ ] }) }) })
418
+ ]
419
+ }
420
+ )
421
+ );
422
+ ge.displayName = "ConnectWithAlfadocs";
423
+ export {
424
+ ge as C,
425
+ pe as M,
426
+ h as P
427
+ };
428
+ //# sourceMappingURL=marketplace-app-shell-Dc5cTIt8.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as n, r, v as s } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as d, r as n, v as r, w as s } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "minder dan een seconde",
@@ -323,4 +323,4 @@ const m = {
323
323
  export {
324
324
  S as nl
325
325
  };
326
- //# sourceMappingURL=nl-xOogO4sZ.js.map
326
+ //# sourceMappingURL=nl-D9kHCmp3.js.map
@@ -7,7 +7,7 @@ import { B as ue } from "./button-DD_0Xdmr.js";
7
7
  import { C as M } from "./card-DPmk26CL.js";
8
8
  import { S as fe } from "./slider-BHWzXdjt.js";
9
9
  import { A as Z } from "./alert-ywPR59NE.js";
10
- import { D as F } from "./dropdown-menu-BC5ZdOMo.js";
10
+ import { D as F } from "./dropdown-menu-CUEXqKis.js";
11
11
  import { u as pe } from "./registry-nPAVE19X.js";
12
12
  import { S as re } from "./search-BonnQsHv.js";
13
13
  import { X as ne } from "./x-CCcI3eJp.js";
@@ -1155,4 +1155,4 @@ export {
1155
1155
  Oe as P,
1156
1156
  ye as p
1157
1157
  };
1158
- //# sourceMappingURL=patient-search-CBq62kmL.js.map
1158
+ //# sourceMappingURL=patient-search-DPe2ZYEL.js.map
@@ -3,8 +3,8 @@ import { forwardRef as k, useState as w } from "react";
3
3
  import { useTranslation as m } from "react-i18next";
4
4
  import { A } from "./app-frame-BYx1gcV7.js";
5
5
  import { I as C } from "./icon-button-CKEOrN37.js";
6
- import { D as i } from "./dropdown-menu-BC5ZdOMo.js";
7
- import { H, g as x, f as N, e as B, a as M, c as T, d as O } from "./header-CTZWX-tm.js";
6
+ import { D as i } from "./dropdown-menu-CUEXqKis.js";
7
+ import { H, g as x, f as N, e as B, a as M, c as T, d as O } from "./header-Ce1Br27u.js";
8
8
  import { L as P } from "./logo-yituK7sE.js";
9
9
  import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-_vJXI9rB.js";
10
10
  import { T as E } from "./theme-root-BOO73p5t.js";
@@ -171,4 +171,4 @@ $.displayName = "PatientShell";
171
171
  export {
172
172
  $ as P
173
173
  };
174
- //# sourceMappingURL=patient-shell-DF81lALv.js.map
174
+ //# sourceMappingURL=patient-shell-CnT4L8gn.js.map
@@ -207,8 +207,8 @@ const we = z(
207
207
  ), ee = z(
208
208
  [
209
209
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
210
- "ds:min-block-size-[var(--min-target-size)]",
211
- "ds:min-inline-size-[var(--min-target-size)]",
210
+ "ds:[min-block-size:var(--min-target-size)]",
211
+ "ds:[min-inline-size:var(--min-target-size)]",
212
212
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
213
213
  "ds:rounded-[var(--radius-sm)]",
214
214
  "ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
@@ -546,7 +546,7 @@ function Se(r) {
546
546
  /* @__PURE__ */ t(
547
547
  "div",
548
548
  {
549
- className: "ds:min-block-size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
549
+ className: "ds:[min-block-size:var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
550
550
  "aria-hidden": "true"
551
551
  }
552
552
  )
@@ -556,7 +556,7 @@ function Se(r) {
556
556
  /* @__PURE__ */ t(
557
557
  "div",
558
558
  {
559
- className: "ds:min-block-size-[calc(var(--min-target-size)*2)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
559
+ className: "ds:[min-block-size:calc(var(--min-target-size)*2)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
560
560
  "aria-hidden": "true"
561
561
  }
562
562
  )
@@ -587,4 +587,4 @@ export {
587
587
  ye as p,
588
588
  ee as s
589
589
  };
590
- //# sourceMappingURL=payment-form-Dy3WIIsC.js.map
590
+ //# sourceMappingURL=payment-form-BzVsG6Ks.js.map