@alfadocs/ui-kit-debug 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 (361) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-card-BmpaUG1h.js.map → agenda-card-CznB7K8e.js.map} +1 -1
  3. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  4. package/dist/_chunks/{agenda-tray-DiInnVqk.js.map → agenda-tray-C_bha7oK.js.map} +1 -1
  5. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  6. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js.map → ai-prompt-input-Bka3jX3i.js.map} +1 -1
  7. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  8. package/dist/_chunks/alia-sidebar-CnvXq95r.js.map +1 -0
  9. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  10. package/dist/_chunks/{audio-recorder-D4xM3H5i.js.map → audio-recorder-OB6IV9B1.js.map} +1 -1
  11. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  12. package/dist/_chunks/{autocomplete-C7xq06bP.js.map → autocomplete-CUh0f7Dj.js.map} +1 -1
  13. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  14. package/dist/_chunks/avatar-D_H4emLo.js.map +1 -0
  15. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  16. package/dist/_chunks/benefit-card-CjYM8vNr.js.map +1 -0
  17. package/dist/_chunks/booking-BYuc_8HV.js +2250 -0
  18. package/dist/_chunks/booking-BYuc_8HV.js.map +1 -0
  19. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -142
  20. package/dist/_chunks/calendar-WWNx448i.js.map +1 -0
  21. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  22. package/dist/_chunks/card-DKTMLVrw.js.map +1 -0
  23. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  24. package/dist/_chunks/{carousel.agent-DnPiqijR.js.map → carousel.agent-C9swH-Uf.js.map} +1 -1
  25. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  26. package/dist/_chunks/{chat-input-B3XmFGDw.js.map → chat-input-BfDcz1Yi.js.map} +1 -1
  27. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  28. package/dist/_chunks/{chat-message-W3k8rLOA.js.map → chat-message-fg221-yx.js.map} +1 -1
  29. package/dist/_chunks/checkbox-mwbrPZDY.js.map +1 -1
  30. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  31. package/dist/_chunks/{command-palette-DkL-aW4O.js.map → command-palette-11BieSNq.js.map} +1 -1
  32. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-DYbp--s-.js} +3 -3
  33. package/dist/_chunks/{contact-card-CjG7c-1q.js.map → contact-card-DYbp--s-.js.map} +1 -1
  34. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  35. package/dist/_chunks/{date-picker-BIoSLRly.js.map → date-picker-D0Ry1dMz.js.map} +1 -1
  36. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  37. package/dist/_chunks/{date-range-picker-9gANFNG9.js.map → date-range-picker-DYgHzMOo.js.map} +1 -1
  38. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  39. package/dist/_chunks/{date-time-picker-DG7BiGdb.js.map → date-time-picker-CGmGtcyc.js.map} +1 -1
  40. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  41. package/dist/_chunks/description-list-yl3y3QKg.js.map +1 -0
  42. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  43. package/dist/_chunks/{dialog-DUomPCRS.js.map → dialog-BBXqpZIt.js.map} +1 -1
  44. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  45. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js.map → editable-currency-cell-renderer-DSReCae7.js.map} +1 -1
  46. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  47. package/dist/_chunks/empty-state-BLy7tigq.js.map +1 -0
  48. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  49. package/dist/_chunks/eye-LHlSU38h.js.map +1 -0
  50. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  51. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js.map → freemium-paywall-B9c8Ylww.js.map} +1 -1
  52. package/dist/_chunks/{header-DqmKROIY.js → header-CkMb1TZS.js} +24 -24
  53. package/dist/_chunks/header-CkMb1TZS.js.map +1 -0
  54. package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
  55. package/dist/_chunks/heart-pulse-CvuyFKHB.js.map +1 -0
  56. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  57. package/dist/_chunks/icon-button-BRHSSFmZ.js.map +1 -0
  58. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  59. package/dist/_chunks/{isSameDay-ecuM8PBB.js.map → isSameDay-DHG8Xade.js.map} +1 -1
  60. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  61. package/dist/_chunks/{key-value-pair-DBuOCtIc.js.map → key-value-pair-CqeKiP__.js.map} +1 -1
  62. package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
  63. package/dist/_chunks/link-DrD_cRUg.js.map +1 -0
  64. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  65. package/dist/_chunks/locale-picker-BHxbTNmR.js.map +1 -0
  66. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  67. package/dist/_chunks/{map-view-CcwycFQX.js.map → map-view-DyB8tr6c.js.map} +1 -1
  68. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  69. package/dist/_chunks/matrix-rain-sDOUUwZp.js.map +1 -0
  70. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  71. package/dist/_chunks/{message-card-i61k1TGc.js.map → message-card-DjRtA8GG.js.map} +1 -1
  72. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  73. package/dist/_chunks/{message-tray-DrV7G-wR.js.map → message-tray-DfsAMncP.js.map} +1 -1
  74. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  75. package/dist/_chunks/monitor-D-SFdbrU.js.map +1 -0
  76. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  77. package/dist/_chunks/notification-card-B_847w5g.js.map +1 -0
  78. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  79. package/dist/_chunks/notification-tray-6f7smmT1.js.map +1 -0
  80. package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
  81. package/dist/_chunks/parseISO-Dk4xa7q6.js.map +1 -0
  82. package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
  83. package/dist/_chunks/patient-search-BhlxYAI3.js.map +1 -0
  84. package/dist/_chunks/patient-shell-CAXYzbRw.js +173 -0
  85. package/dist/_chunks/{patient-shell-B164drIa.js.map → patient-shell-CAXYzbRw.js.map} +1 -1
  86. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  87. package/dist/_chunks/{payment-form-F7uh0Rqr.js.map → payment-form-Ds3rxvad.js.map} +1 -1
  88. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  89. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js.map → pdf-viewer-CIuaocnq.js.map} +1 -1
  90. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  91. package/dist/_chunks/popover-D0slaBB9.js.map +1 -0
  92. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  93. package/dist/_chunks/{privacy-lock-BKsI6ReN.js.map → privacy-lock-BI4vi9Ud.js.map} +1 -1
  94. package/dist/_chunks/public-footer.agent-CA29gxHJ.js +516 -0
  95. package/dist/_chunks/public-footer.agent-CA29gxHJ.js.map +1 -0
  96. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  97. package/dist/_chunks/public-header.agent-5U3S9QiC.js.map +1 -0
  98. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  99. package/dist/_chunks/react-day-picker-D3yzgvDB.js.map +1 -0
  100. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  101. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js.map → recaptcha-widget-BtBNb6tB.js.map} +1 -1
  102. package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
  103. package/dist/_chunks/reviews-panel-CFttsfuC.js.map +1 -0
  104. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  105. package/dist/_chunks/{search-bar-DORSAzNt.js.map → search-bar-BRMW1-WG.js.map} +1 -1
  106. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  107. package/dist/_chunks/{search-input-BtEJAJHa.js.map → search-input-CIA6pPfn.js.map} +1 -1
  108. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  109. package/dist/_chunks/{sheet-BT0izeoI.js.map → sheet-D8M8hf8B.js.map} +1 -1
  110. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  111. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js.map → sign-in-with-alfadocs-button-BI0fVonM.js.map} +1 -1
  112. package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
  113. package/dist/_chunks/slot-grid-B2zprPcv.js.map +1 -0
  114. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  115. package/dist/_chunks/sparkles-CuYXqQLg.js.map +1 -0
  116. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  117. package/dist/_chunks/spinner-CCByyvcb.js.map +1 -0
  118. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  119. package/dist/_chunks/stepper-accordion-BfS6lUB9.js.map +1 -0
  120. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  121. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js.map +1 -0
  122. package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
  123. package/dist/_chunks/stethoscope-DT5qCW8Y.js.map +1 -0
  124. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  125. package/dist/_chunks/sun-BuXE0xUS.js.map +1 -0
  126. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  127. package/dist/_chunks/{task-tray-B3A2fRGR.js.map → task-tray-Bcmrrs8m.js.map} +1 -1
  128. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  129. package/dist/_chunks/{theme-toggle-FrotC2VI.js.map → theme-toggle-nPzb378f.js.map} +1 -1
  130. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  131. package/dist/_chunks/{timeline-jmd7lfDf.js.map → timeline-CR7HjZCK.js.map} +1 -1
  132. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  133. package/dist/_chunks/{toast.agent-32WNQ-_x.js.map → toast.agent-CTF6nIj5.js.map} +1 -1
  134. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  135. package/dist/_chunks/{transcript-panel-DUrjx5sa.js.map → transcript-panel-QUQ9XJmf.js.map} +1 -1
  136. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  137. package/dist/_chunks/use-password-requirements-E0sSfx5X.js.map +1 -0
  138. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  139. package/dist/_chunks/use-theme-C2dHKUAN.js.map +1 -0
  140. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  141. package/dist/_chunks/{workflow-map-BR6txfFX.js.map → workflow-map-BKsKdYvZ.js.map} +1 -1
  142. package/dist/agent-catalog.json +151 -51
  143. package/dist/components/agenda-card/index.js +1 -1
  144. package/dist/components/agenda-tray/index.js +1 -1
  145. package/dist/components/ai-prompt-input/index.js +1 -1
  146. package/dist/components/audio-recorder/index.js +1 -1
  147. package/dist/components/autocomplete/index.js +1 -1
  148. package/dist/components/avatar/avatar.d.ts.map +1 -1
  149. package/dist/components/avatar/index.js +1 -1
  150. package/dist/components/benefit-card/benefit-card.d.ts.map +1 -1
  151. package/dist/components/benefit-card/index.js +1 -1
  152. package/dist/components/booking/booking-types.d.ts +145 -0
  153. package/dist/components/booking/booking-types.d.ts.map +1 -0
  154. package/dist/components/booking/booking.agent.d.ts +4 -0
  155. package/dist/components/booking/booking.agent.d.ts.map +1 -0
  156. package/dist/components/booking/booking.d.ts +6 -0
  157. package/dist/components/booking/booking.d.ts.map +1 -0
  158. package/dist/components/booking/cascade.d.ts +96 -0
  159. package/dist/components/booking/cascade.d.ts.map +1 -0
  160. package/dist/components/booking/details-form.d.ts +32 -0
  161. package/dist/components/booking/details-form.d.ts.map +1 -0
  162. package/dist/components/booking/index.d.ts +5 -0
  163. package/dist/components/booking/index.d.ts.map +1 -0
  164. package/dist/components/booking/index.js +8 -0
  165. package/dist/components/button/icon-button.d.ts.map +1 -1
  166. package/dist/components/button/index.js +1 -1
  167. package/dist/components/calendar/index.js +1 -1
  168. package/dist/components/card/card.d.ts.map +1 -1
  169. package/dist/components/card/index.js +1 -1
  170. package/dist/components/carousel/index.js +1 -1
  171. package/dist/components/chat-input/index.js +1 -1
  172. package/dist/components/chat-message/index.js +1 -1
  173. package/dist/components/checkbox/checkbox.d.ts +6 -2
  174. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  175. package/dist/components/command-palette/index.js +1 -1
  176. package/dist/components/contact-card/index.js +1 -1
  177. package/dist/components/data-table/index.js +1 -1
  178. package/dist/components/date-picker/index.js +1 -1
  179. package/dist/components/date-range-picker/index.js +1 -1
  180. package/dist/components/date-time-picker/index.js +1 -1
  181. package/dist/components/description-list/description-list.d.ts.map +1 -1
  182. package/dist/components/description-list/index.js +1 -1
  183. package/dist/components/dialog/index.js +1 -1
  184. package/dist/components/empty-state/empty-state.d.ts.map +1 -1
  185. package/dist/components/empty-state/index.js +1 -1
  186. package/dist/components/freemium-paywall/index.js +1 -1
  187. package/dist/components/header/index.js +1 -1
  188. package/dist/components/header-settings/index.js +16 -15
  189. package/dist/components/header-settings/index.js.map +1 -1
  190. package/dist/components/icon-button/index.js +1 -1
  191. package/dist/components/index.d.ts +4 -1
  192. package/dist/components/index.d.ts.map +1 -1
  193. package/dist/components/key-value-pair/index.js +1 -1
  194. package/dist/components/link/index.js +1 -1
  195. package/dist/components/link/link.d.ts +7 -0
  196. package/dist/components/link/link.d.ts.map +1 -1
  197. package/dist/components/locale-picker/index.js +1 -1
  198. package/dist/components/map-view/index.js +1 -1
  199. package/dist/components/matrix-rain/index.js +1 -1
  200. package/dist/components/message-card/index.js +1 -1
  201. package/dist/components/message-tray/index.js +1 -1
  202. package/dist/components/notification-card/index.js +1 -1
  203. package/dist/components/notification-tray/index.js +1 -1
  204. package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
  205. package/dist/components/password-input/index.js +1 -1
  206. package/dist/components/patient-search/index.d.ts +4 -0
  207. package/dist/components/patient-search/index.d.ts.map +1 -0
  208. package/dist/components/patient-search/index.js +6 -0
  209. package/dist/components/patient-search/index.js.map +1 -0
  210. package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
  211. package/dist/components/patient-search/patient-search.agent.d.ts.map +1 -0
  212. package/dist/components/patient-search/patient-search.d.ts +103 -0
  213. package/dist/components/patient-search/patient-search.d.ts.map +1 -0
  214. package/dist/components/payment-form/index.js +1 -1
  215. package/dist/components/pdf-viewer/index.js +1 -1
  216. package/dist/components/popover/index.js +1 -1
  217. package/dist/components/popover/popover.d.ts.map +1 -1
  218. package/dist/components/privacy-lock/index.js +1 -1
  219. package/dist/components/public-footer/index.d.ts +6 -0
  220. package/dist/components/public-footer/index.d.ts.map +1 -0
  221. package/dist/components/public-footer/index.js +10 -0
  222. package/dist/components/public-footer/index.js.map +1 -0
  223. package/dist/components/public-footer/legal-urls.d.ts +18 -0
  224. package/dist/components/public-footer/legal-urls.d.ts.map +1 -0
  225. package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
  226. package/dist/components/public-footer/public-footer.agent.d.ts.map +1 -0
  227. package/dist/components/public-footer/public-footer.d.ts +51 -0
  228. package/dist/components/public-footer/public-footer.d.ts.map +1 -0
  229. package/dist/components/public-footer/socials.d.ts +9 -0
  230. package/dist/components/public-footer/socials.d.ts.map +1 -0
  231. package/dist/components/public-header/index.js +1 -1
  232. package/dist/components/public-header/public-header.d.ts.map +1 -1
  233. package/dist/components/recaptcha-widget/index.js +1 -1
  234. package/dist/components/reviews-panel/index.d.ts +4 -0
  235. package/dist/components/reviews-panel/index.d.ts.map +1 -0
  236. package/dist/components/reviews-panel/index.js +6 -0
  237. package/dist/components/reviews-panel/index.js.map +1 -0
  238. package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
  239. package/dist/components/reviews-panel/reviews-panel.agent.d.ts.map +1 -0
  240. package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
  241. package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -0
  242. package/dist/components/search-bar/index.js +1 -1
  243. package/dist/components/search-input/index.js +1 -1
  244. package/dist/components/sheet/index.js +1 -1
  245. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  246. package/dist/components/slot-grid/index.js +1 -1
  247. package/dist/components/spinner/index.js +1 -1
  248. package/dist/components/stepper-accordion/index.js +4 -3
  249. package/dist/components/stepper-accordion/index.js.map +1 -1
  250. package/dist/components/task-tray/index.js +1 -1
  251. package/dist/components/theme-toggle/index.js +1 -1
  252. package/dist/components/timeline/index.js +1 -1
  253. package/dist/components/toast/index.js +1 -1
  254. package/dist/components/transcript-panel/index.js +1 -1
  255. package/dist/components/workflow/index.js +1 -1
  256. package/dist/hooks/index.js +1 -1
  257. package/dist/hooks/use-theme.d.ts.map +1 -1
  258. package/dist/i18n/config.js +4923 -49
  259. package/dist/i18n/config.js.map +1 -1
  260. package/dist/i18n/locales/ar.d.ts +272 -0
  261. package/dist/i18n/locales/ar.d.ts.map +1 -1
  262. package/dist/i18n/locales/de.d.ts +272 -0
  263. package/dist/i18n/locales/de.d.ts.map +1 -1
  264. package/dist/i18n/locales/el.d.ts +272 -0
  265. package/dist/i18n/locales/el.d.ts.map +1 -1
  266. package/dist/i18n/locales/es.d.ts +272 -0
  267. package/dist/i18n/locales/es.d.ts.map +1 -1
  268. package/dist/i18n/locales/fr.d.ts +272 -0
  269. package/dist/i18n/locales/fr.d.ts.map +1 -1
  270. package/dist/i18n/locales/hi.d.ts +272 -0
  271. package/dist/i18n/locales/hi.d.ts.map +1 -1
  272. package/dist/i18n/locales/ja.d.ts +272 -0
  273. package/dist/i18n/locales/ja.d.ts.map +1 -1
  274. package/dist/i18n/locales/nl.d.ts +272 -0
  275. package/dist/i18n/locales/nl.d.ts.map +1 -1
  276. package/dist/i18n/locales/pl.d.ts +272 -0
  277. package/dist/i18n/locales/pl.d.ts.map +1 -1
  278. package/dist/i18n/locales/pt.d.ts +272 -0
  279. package/dist/i18n/locales/pt.d.ts.map +1 -1
  280. package/dist/i18n/locales/ro.d.ts +272 -0
  281. package/dist/i18n/locales/ro.d.ts.map +1 -1
  282. package/dist/i18n/locales/ru.d.ts +272 -0
  283. package/dist/i18n/locales/ru.d.ts.map +1 -1
  284. package/dist/i18n/locales/sq.d.ts +272 -0
  285. package/dist/i18n/locales/sq.d.ts.map +1 -1
  286. package/dist/i18n/locales/sv.d.ts +272 -0
  287. package/dist/i18n/locales/sv.d.ts.map +1 -1
  288. package/dist/i18n/locales/tr.d.ts +272 -0
  289. package/dist/i18n/locales/tr.d.ts.map +1 -1
  290. package/dist/i18n/locales/zh.d.ts +272 -0
  291. package/dist/i18n/locales/zh.d.ts.map +1 -1
  292. package/dist/i18n/resources.d.ts +544 -0
  293. package/dist/i18n/resources.d.ts.map +1 -1
  294. package/dist/index.js +364 -348
  295. package/dist/index.js.map +1 -1
  296. package/dist/locales/ar.json +273 -1
  297. package/dist/locales/de.json +273 -1
  298. package/dist/locales/el.json +273 -1
  299. package/dist/locales/en.json +273 -1
  300. package/dist/locales/es.json +273 -1
  301. package/dist/locales/fr.json +273 -1
  302. package/dist/locales/hi.json +273 -1
  303. package/dist/locales/it.json +273 -1
  304. package/dist/locales/ja.json +273 -1
  305. package/dist/locales/nl.json +273 -1
  306. package/dist/locales/pl.json +273 -1
  307. package/dist/locales/pt.json +273 -1
  308. package/dist/locales/ro.json +273 -1
  309. package/dist/locales/ru.json +273 -1
  310. package/dist/locales/sq.json +273 -1
  311. package/dist/locales/sv.json +273 -1
  312. package/dist/locales/tr.json +273 -1
  313. package/dist/locales/zh.json +273 -1
  314. package/dist/patterns/alia-assistant/index.js +1 -1
  315. package/dist/patterns/patient-shell/index.js +1 -1
  316. package/dist/patterns/patient-shell/patient-shell.d.ts.map +1 -1
  317. package/dist/tokens.css +1 -1
  318. package/package.json +17 -1
  319. package/dist/_chunks/alia-sidebar-CUi2UCbY.js.map +0 -1
  320. package/dist/_chunks/avatar-BpFohgWG.js.map +0 -1
  321. package/dist/_chunks/benefit-card-DXmrAyfn.js.map +0 -1
  322. package/dist/_chunks/calendar-zy0tUUVG.js.map +0 -1
  323. package/dist/_chunks/card-C353dU-H.js.map +0 -1
  324. package/dist/_chunks/description-list-Bsga4IW8.js.map +0 -1
  325. package/dist/_chunks/empty-state-3CLJIXSj.js.map +0 -1
  326. package/dist/_chunks/header-DqmKROIY.js.map +0 -1
  327. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  328. package/dist/_chunks/icon-button-C4CGcYuz.js.map +0 -1
  329. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  330. package/dist/_chunks/isSameMonth-5wNF2f4I.js.map +0 -1
  331. package/dist/_chunks/link-DmM5IevO.js.map +0 -1
  332. package/dist/_chunks/locale-picker-BxEUUPW7.js.map +0 -1
  333. package/dist/_chunks/matrix-rain-CRPMXcVx.js.map +0 -1
  334. package/dist/_chunks/notification-card-ejOw5g6g.js.map +0 -1
  335. package/dist/_chunks/notification-tray-D_69dXFY.js.map +0 -1
  336. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  337. package/dist/_chunks/popover--derJ_wq.js.map +0 -1
  338. package/dist/_chunks/public-header.agent-BQ3r6Hgq.js.map +0 -1
  339. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  340. package/dist/_chunks/react-day-picker-C5F3-TTX.js.map +0 -1
  341. package/dist/_chunks/slot-grid-CgpYgBkW.js +0 -502
  342. package/dist/_chunks/slot-grid-CgpYgBkW.js.map +0 -1
  343. package/dist/_chunks/spinner-DirtWZNG.js.map +0 -1
  344. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  345. package/dist/_chunks/stepper-C-sIpRRU.js.map +0 -1
  346. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  347. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js.map +0 -1
  348. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  349. package/dist/_chunks/stepper-calendar-BLOJUE0-.js.map +0 -1
  350. package/dist/_chunks/sun-Eweh5fvi.js.map +0 -1
  351. package/dist/_chunks/use-password-requirements-C9vKBSVn.js.map +0 -1
  352. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  353. package/dist/_chunks/use-theme-B1cwAXJR.js.map +0 -1
  354. package/dist/components/stepper-calendar/index.d.ts +0 -4
  355. package/dist/components/stepper-calendar/index.d.ts.map +0 -1
  356. package/dist/components/stepper-calendar/index.js +0 -6
  357. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  358. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts.map +0 -1
  359. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
  360. package/dist/components/stepper-calendar/stepper-calendar.d.ts.map +0 -1
  361. /package/dist/components/{stepper-calendar → booking}/index.js.map +0 -0
@@ -1,18 +1,19 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import { forwardRef as F, useId as B, useState as M, useCallback as R, useMemo as _, useRef as j, useImperativeHandle as q, useEffect as J } from "react";
3
- import { c as O } from "./index-D2ZczOXr.js";
4
- import { useTranslation as x } from "react-i18next";
5
- import { _ as y, R as K } from "./index-4xgbg-sn.js";
6
- import { I as W } from "./icon-button-C4CGcYuz.js";
7
- import { P as p } from "./popover--derJ_wq.js";
8
- import { h as E, a as T } from "./flag-DZ6V7-hU.js";
9
- import { c as X, a as Y, d as $ } from "./input-surface-xyERuLU_.js";
10
- import { LOCALES_WITH_BUNDLES as G } from "../i18n/config.js";
11
- import { u as Q } from "./use-locale-BkCIHujH.js";
12
- import { u as Z } from "./registry-C9nwlNyL.js";
13
- import { G as A } from "./globe-BkEFMNSg.js";
14
- import { C as ee } from "./check-DPdL_Sm7.js";
15
- const w = {
1
+ import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
+ import { forwardRef as H, useId as $, useState as M, useCallback as R, useMemo as D, useRef as F, useImperativeHandle as Q, useEffect as Z } from "react";
3
+ import { c as B } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as T } from "react-i18next";
5
+ import { _ as y, R as ee } from "./index-4xgbg-sn.js";
6
+ import { I as ae } from "./icon-button-BRHSSFmZ.js";
7
+ import { P as C } from "./popover-D0slaBB9.js";
8
+ import { h as A, a as _ } from "./flag-DZ6V7-hU.js";
9
+ import { c as se, a as te, d as re } from "./input-surface-xyERuLU_.js";
10
+ import { LOCALES_WITH_BUNDLES as j } from "../i18n/config.js";
11
+ import { u as oe } from "./use-locale-BkCIHujH.js";
12
+ import { u as ne } from "./registry-C9nwlNyL.js";
13
+ import { G as z } from "./globe-BkEFMNSg.js";
14
+ import { M as ie } from "./monitor-D-SFdbrU.js";
15
+ import { C as O } from "./check-DPdL_Sm7.js";
16
+ const k = {
16
17
  en: {
17
18
  code: "en",
18
19
  nativeName: "English",
@@ -157,9 +158,11 @@ const w = {
157
158
  flag: "🇮🇳",
158
159
  dir: "ltr"
159
160
  }
160
- }, ae = G.map(
161
- (e) => w[e]
162
- ), se = {
161
+ };
162
+ j.map((e) => k[e]);
163
+ const de = [
164
+ ...j.map((e) => k[e])
165
+ ].sort((e, a) => e.englishName.localeCompare(a.englishName, "en")), le = {
163
166
  id: "locale-picker",
164
167
  capabilities: ["view_change"],
165
168
  state: {},
@@ -181,12 +184,12 @@ const w = {
181
184
  description: "Marks the LocalePicker wrapper."
182
185
  }
183
186
  }
184
- }, k = "alfadocs-ui.locale";
185
- let z = !1;
186
- function m(e) {
187
- return typeof e == "string" && G.includes(e);
187
+ }, b = "alfadocs-ui.locale", g = "system";
188
+ let G = !1;
189
+ function h(e) {
190
+ return typeof e == "string" && j.includes(e);
188
191
  }
189
- function te(e) {
192
+ function U(e) {
190
193
  if (typeof window > "u") return null;
191
194
  try {
192
195
  return window.localStorage.getItem(e);
@@ -194,45 +197,60 @@ function te(e) {
194
197
  return null;
195
198
  }
196
199
  }
197
- function I(e, a) {
200
+ function V(e, a) {
198
201
  if (!(typeof window > "u"))
199
202
  try {
200
203
  window.localStorage.setItem(e, a);
201
204
  } catch {
202
205
  }
203
206
  }
204
- function oe() {
207
+ function x() {
205
208
  if (typeof navigator > "u") return "en";
206
209
  const e = navigator.language;
207
210
  if (!e) return "en";
208
211
  const a = e.toLowerCase().split("-")[0];
209
- return m(a) ? a : "en";
212
+ return h(a) ? a : "en";
210
213
  }
211
- function P(e) {
214
+ function L(e) {
212
215
  if (typeof document > "u") return;
213
216
  const a = document.documentElement;
214
- a.lang = e, a.dir = w[e].dir;
217
+ a.lang = e, a.dir = k[e].dir;
218
+ }
219
+ function q(e) {
220
+ if (!(typeof window > "u"))
221
+ try {
222
+ window.localStorage.removeItem(e);
223
+ } catch {
224
+ }
215
225
  }
216
- function H() {
217
- const { locale: e, setLocale: a } = Q(), d = m(e) ? e : "en", i = R(
218
- (s) => {
219
- m(s) && (a(s), P(s), I(k, s));
226
+ function J() {
227
+ const { locale: e, setLocale: a } = oe(), [m, d] = M(
228
+ () => U(b) === null
229
+ ), i = h(e) ? e : "en", l = R(
230
+ (o) => {
231
+ if (o === g) {
232
+ q(b);
233
+ const r = x();
234
+ a(r), L(r), d(!0);
235
+ return;
236
+ }
237
+ h(o) && (a(o), L(o), V(b, o), d(!1));
220
238
  },
221
239
  [a]
222
240
  );
223
- return J(() => {
224
- if (z) return;
225
- z = !0;
226
- const s = te(k);
227
- if (m(s)) {
228
- s !== e && a(s), P(s);
241
+ return Z(() => {
242
+ if (G) return;
243
+ G = !0;
244
+ const o = U(b);
245
+ if (h(o)) {
246
+ o !== e && a(o), L(o);
229
247
  return;
230
248
  }
231
- const r = oe();
232
- a(r), P(r), I(k, r);
233
- }, []), { locale: d, setLocale: i };
249
+ const r = x();
250
+ a(r), L(r);
251
+ }, []), { locale: i, isSystemDefault: m, setLocale: l };
234
252
  }
235
- const U = O("ds:inline-flex ds:items-center", {
253
+ const K = B("ds:inline-flex ds:items-center", {
236
254
  variants: {
237
255
  variant: {
238
256
  icon: "",
@@ -240,7 +258,7 @@ const U = O("ds:inline-flex ds:items-center", {
240
258
  }
241
259
  },
242
260
  defaultVariants: { variant: "icon" }
243
- }), ne = [
261
+ }), ce = [
244
262
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
245
263
  "ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-sm)]",
246
264
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -251,12 +269,12 @@ const U = O("ds:inline-flex ds:items-center", {
251
269
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
252
270
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed",
253
271
  "type-body-sm"
254
- ].join(" "), D = [
272
+ ].join(" "), W = [
255
273
  "ds:w-[18rem] ds:rounded-[var(--radius-md)]",
256
274
  "ds:bg-background ds:text-foreground ds:border ds:border-border",
257
275
  "ds:shadow-[var(--shadow-lg)]",
258
276
  "ds:overflow-hidden"
259
- ].join(" "), re = O("ds:flex ds:flex-col", {
277
+ ].join(" "), me = B("ds:flex ds:flex-col", {
260
278
  variants: {
261
279
  loading: {
262
280
  true: "ds:opacity-60 ds:pointer-events-none",
@@ -264,61 +282,67 @@ const U = O("ds:inline-flex ds:items-center", {
264
282
  }
265
283
  },
266
284
  defaultVariants: { loading: !1 }
267
- }), S = F(
285
+ }), I = H(
268
286
  ({
269
287
  value: e,
270
288
  onValueChange: a,
271
- inputId: d,
272
- disabled: i = !1,
273
- loading: s = !1,
274
- className: r
275
- }, l) => {
276
- const { t: o } = x(), h = H(), b = e ?? h.locale, v = B(), C = d ?? `${v}-search`, [L, g] = M(""), N = R(
277
- (n) => {
278
- !m(n) || i || s || (a ? a(n) : h.setLocale(n));
289
+ inputId: m,
290
+ disabled: d = !1,
291
+ loading: i = !1,
292
+ className: l
293
+ }, o) => {
294
+ const { t: r } = T(), n = J(), E = n.locale, S = e ?? (n.isSystemDefault ? g : n.locale), p = $(), w = m ?? `${p}-search`, [P, v] = M(""), N = R(
295
+ (t) => {
296
+ if (!(d || i)) {
297
+ if (t === g) {
298
+ a ? a(g) : n.setLocale(g);
299
+ return;
300
+ }
301
+ h(t) && (a ? a(t) : n.setLocale(t));
302
+ }
279
303
  },
280
- [i, s, a, h]
304
+ [d, i, a, n]
281
305
  );
282
- return /* @__PURE__ */ t(
306
+ return /* @__PURE__ */ s(
283
307
  "div",
284
308
  {
285
- ref: l,
286
- className: [re({ loading: s }), r].filter(Boolean).join(" "),
309
+ ref: o,
310
+ className: [me({ loading: i }), l].filter(Boolean).join(" "),
287
311
  "data-component": "locale-picker-search-list",
288
- children: /* @__PURE__ */ u(
312
+ children: /* @__PURE__ */ f(
289
313
  y,
290
314
  {
291
- label: o("navigation.localePicker.commandLabel"),
292
- filter: K,
315
+ label: r("navigation.localePicker.commandLabel"),
316
+ filter: ee,
293
317
  shouldFilter: !0,
294
318
  children: [
295
- /* @__PURE__ */ u(
319
+ /* @__PURE__ */ f(
296
320
  "div",
297
321
  {
298
322
  className: [
299
- X,
300
- Y.sm,
301
- $.sm,
323
+ se,
324
+ te.sm,
325
+ re.sm,
302
326
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
303
327
  "ds:m-[var(--spacing-xs)]"
304
328
  ].join(" "),
305
329
  children: [
306
- /* @__PURE__ */ t(
307
- A,
330
+ /* @__PURE__ */ s(
331
+ z,
308
332
  {
309
333
  "aria-hidden": "true",
310
334
  className: "ds:size-4 ds:text-muted-foreground ds:shrink-0"
311
335
  }
312
336
  ),
313
- /* @__PURE__ */ t(
337
+ /* @__PURE__ */ s(
314
338
  y.Input,
315
339
  {
316
- id: C,
317
- value: L,
318
- onValueChange: g,
319
- placeholder: o("navigation.localePicker.searchPlaceholder"),
320
- "aria-label": o("navigation.localePicker.searchLabel"),
321
- disabled: i || s,
340
+ id: w,
341
+ value: P,
342
+ onValueChange: v,
343
+ placeholder: r("navigation.localePicker.searchPlaceholder"),
344
+ "aria-label": r("navigation.localePicker.searchLabel"),
345
+ disabled: d || i,
322
346
  className: [
323
347
  "ds:peer ds:flex-1 ds:bg-transparent ds:border-0 ds:outline-none",
324
348
  "ds:placeholder:text-muted-foreground ds:text-foreground",
@@ -329,7 +353,7 @@ const U = O("ds:inline-flex ds:items-center", {
329
353
  ]
330
354
  }
331
355
  ),
332
- /* @__PURE__ */ u(
356
+ /* @__PURE__ */ f(
333
357
  y.List,
334
358
  {
335
359
  className: [
@@ -337,24 +361,31 @@ const U = O("ds:inline-flex ds:items-center", {
337
361
  "ds:p-[var(--spacing-xs)]"
338
362
  ].join(" "),
339
363
  children: [
340
- /* @__PURE__ */ t(
364
+ /* @__PURE__ */ s(
341
365
  y.Empty,
342
366
  {
343
367
  className: [
344
368
  "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]",
345
369
  "type-body-sm ds:text-muted-foreground"
346
370
  ].join(" "),
347
- children: o("navigation.localePicker.empty")
371
+ children: r("navigation.localePicker.empty")
348
372
  }
349
373
  ),
350
- ae.map((n) => {
351
- const f = n.code === b;
352
- return /* @__PURE__ */ u(
374
+ (() => {
375
+ const t = S === g, c = k[E];
376
+ return /* @__PURE__ */ f(
353
377
  y.Item,
354
378
  {
355
- value: n.code,
356
- keywords: [n.nativeName, n.englishName],
357
- disabled: i || s,
379
+ value: g,
380
+ keywords: [
381
+ "system",
382
+ "default",
383
+ "auto",
384
+ "browser",
385
+ c.nativeName,
386
+ c.englishName
387
+ ],
388
+ disabled: d || i,
358
389
  onSelect: N,
359
390
  className: [
360
391
  "ds:relative ds:flex ds:cursor-pointer ds:select-none",
@@ -367,15 +398,60 @@ const U = O("ds:inline-flex ds:items-center", {
367
398
  "ds:aria-selected:bg-muted",
368
399
  "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-not-allowed"
369
400
  ].join(" "),
370
- "aria-selected": f || void 0,
371
- "data-current": f ? "true" : void 0,
372
- lang: n.code,
373
- dir: n.dir,
401
+ "aria-selected": t || void 0,
402
+ "data-current": t ? "true" : void 0,
374
403
  children: [
375
- E(n.countryCode) ? /* @__PURE__ */ t(
376
- T,
404
+ /* @__PURE__ */ s(
405
+ ie,
377
406
  {
378
- country: n.countryCode,
407
+ "aria-hidden": "true",
408
+ className: "ds:size-4 ds:text-muted-foreground ds:shrink-0"
409
+ }
410
+ ),
411
+ /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: r("navigation.localePicker.systemDefault", {
412
+ locale: c.nativeName
413
+ }) }),
414
+ t ? /* @__PURE__ */ s(
415
+ O,
416
+ {
417
+ "aria-hidden": "true",
418
+ className: "ds:size-4 ds:text-primary ds:shrink-0"
419
+ }
420
+ ) : null,
421
+ t ? /* @__PURE__ */ s("span", { className: "ds:sr-only", children: r("navigation.localePicker.currentSelection") }) : null
422
+ ]
423
+ },
424
+ g
425
+ );
426
+ })(),
427
+ de.map((t) => {
428
+ const c = S === t.code;
429
+ return /* @__PURE__ */ f(
430
+ y.Item,
431
+ {
432
+ value: t.code,
433
+ keywords: [t.nativeName, t.englishName],
434
+ disabled: d || i,
435
+ onSelect: N,
436
+ className: [
437
+ "ds:relative ds:flex ds:cursor-pointer ds:select-none",
438
+ "ds:items-center ds:gap-[var(--spacing-sm)]",
439
+ "ds:rounded-[var(--radius-sm)]",
440
+ "ds:min-h-[var(--min-target-size)]",
441
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
442
+ "ds:text-foreground ds:outline-none",
443
+ "ds:data-[highlighted]:bg-muted",
444
+ "ds:aria-selected:bg-muted",
445
+ "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-not-allowed"
446
+ ].join(" "),
447
+ "aria-selected": c || void 0,
448
+ "data-current": c ? "true" : void 0,
449
+ lang: t.code,
450
+ children: [
451
+ A(t.countryCode) ? /* @__PURE__ */ s(
452
+ _,
453
+ {
454
+ country: t.countryCode,
379
455
  size: "sm",
380
456
  shape: "rectangle",
381
457
  rounded: "sm",
@@ -388,27 +464,27 @@ const U = O("ds:inline-flex ds:items-center", {
388
464
  have SVG flags, so this is dead code on the
389
465
  canonical set — kept for resilience when
390
466
  consumers extend the registry. */
391
- /* @__PURE__ */ t(
467
+ /* @__PURE__ */ s(
392
468
  "span",
393
469
  {
394
470
  "aria-hidden": "true",
395
471
  className: "ds:text-base ds:shrink-0",
396
- children: n.flag
472
+ children: t.flag
397
473
  }
398
474
  )
399
475
  ),
400
- /* @__PURE__ */ t("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: n.nativeName }),
401
- f ? /* @__PURE__ */ t(
402
- ee,
476
+ /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: t.nativeName }),
477
+ c ? /* @__PURE__ */ s(
478
+ O,
403
479
  {
404
480
  "aria-hidden": "true",
405
481
  className: "ds:size-4 ds:text-primary ds:shrink-0"
406
482
  }
407
483
  ) : null,
408
- f ? /* @__PURE__ */ t("span", { className: "ds:sr-only", children: o("navigation.localePicker.currentSelection") }) : null
484
+ c ? /* @__PURE__ */ s("span", { className: "ds:sr-only", children: r("navigation.localePicker.currentSelection") }) : null
409
485
  ]
410
486
  },
411
- n.code
487
+ t.code
412
488
  );
413
489
  })
414
490
  ]
@@ -421,35 +497,36 @@ const U = O("ds:inline-flex ds:items-center", {
421
497
  );
422
498
  }
423
499
  );
424
- S.displayName = "LocalePicker.SearchList";
425
- function ie({
500
+ I.displayName = "LocalePicker.SearchList";
501
+ function ue({
426
502
  state: e,
427
503
  rest: a,
428
- forwardedRef: d,
429
- className: i,
430
- disabled: s,
431
- loading: r
504
+ forwardedRef: m,
505
+ className: d,
506
+ disabled: i,
507
+ loading: l,
508
+ popoverSide: o
432
509
  }) {
433
- const { t: l } = x(), o = w[e.locale];
434
- return /* @__PURE__ */ t(
510
+ const { t: r } = T(), n = k[e.locale];
511
+ return /* @__PURE__ */ s(
435
512
  "div",
436
513
  {
437
- ref: d,
514
+ ref: m,
438
515
  "data-component": "locale-picker",
439
516
  "data-component-id": a.id,
440
- className: U({ variant: "icon", className: i }),
517
+ className: K({ variant: "icon", className: d }),
441
518
  ...a,
442
- children: /* @__PURE__ */ u(p.Root, { children: [
443
- /* @__PURE__ */ t(p.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
444
- W,
519
+ children: /* @__PURE__ */ f(C.Root, { children: [
520
+ /* @__PURE__ */ s(C.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
521
+ ae,
445
522
  {
446
- disabled: s || r,
447
- icon: /* @__PURE__ */ u("span", { className: "ds:relative ds:inline-flex ds:items-center ds:justify-center", children: [
448
- /* @__PURE__ */ t(A, { "aria-hidden": !0, className: "ds:size-5" }),
449
- E(o.countryCode) ? /* @__PURE__ */ t(
450
- T,
523
+ disabled: i || l,
524
+ icon: /* @__PURE__ */ f("span", { className: "ds:relative ds:inline-flex ds:items-center ds:justify-center", children: [
525
+ /* @__PURE__ */ s(z, { "aria-hidden": !0, className: "ds:size-5" }),
526
+ A(n.countryCode) ? /* @__PURE__ */ s(
527
+ _,
451
528
  {
452
- country: o.countryCode,
529
+ country: n.countryCode,
453
530
  size: "sm",
454
531
  shape: "rectangle",
455
532
  rounded: "sm",
@@ -467,25 +544,26 @@ function ie({
467
544
  }
468
545
  ) : null
469
546
  ] }),
470
- "aria-label": l("navigation.localePicker.trigger", {
471
- locale: o.nativeName
547
+ "aria-label": r("navigation.localePicker.trigger", {
548
+ locale: n.nativeName
472
549
  })
473
550
  }
474
551
  ) }),
475
- /* @__PURE__ */ t(
476
- p.Content,
552
+ /* @__PURE__ */ s(
553
+ C.Content,
477
554
  {
478
- align: "end",
555
+ side: o,
556
+ align: "start",
479
557
  sideOffset: 8,
480
- className: D,
481
- "aria-label": l("navigation.localePicker.popupLabel"),
482
- children: /* @__PURE__ */ t(
483
- S,
558
+ className: W,
559
+ "aria-label": r("navigation.localePicker.popupLabel"),
560
+ children: /* @__PURE__ */ s(
561
+ I,
484
562
  {
485
563
  value: e.locale,
486
564
  onValueChange: e.setLocale,
487
- disabled: s,
488
- loading: r
565
+ disabled: i,
566
+ loading: l
489
567
  }
490
568
  )
491
569
  }
@@ -494,69 +572,71 @@ function ie({
494
572
  }
495
573
  );
496
574
  }
497
- function le({
575
+ function ge({
498
576
  state: e,
499
577
  rest: a,
500
- forwardedRef: d,
501
- className: i,
502
- disabled: s,
503
- loading: r
578
+ forwardedRef: m,
579
+ className: d,
580
+ disabled: i,
581
+ loading: l,
582
+ popoverSide: o
504
583
  }) {
505
- const { t: l } = x(), o = w[e.locale];
506
- return /* @__PURE__ */ t(
584
+ const { t: r } = T(), n = k[e.locale];
585
+ return /* @__PURE__ */ s(
507
586
  "div",
508
587
  {
509
- ref: d,
588
+ ref: m,
510
589
  "data-component": "locale-picker",
511
590
  "data-component-id": a.id,
512
- className: U({ variant: "compact", className: i }),
591
+ className: K({ variant: "compact", className: d }),
513
592
  ...a,
514
- children: /* @__PURE__ */ u(p.Root, { children: [
515
- /* @__PURE__ */ t(p.Trigger, { asChild: !0, children: /* @__PURE__ */ u(
593
+ children: /* @__PURE__ */ f(C.Root, { children: [
594
+ /* @__PURE__ */ s(C.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
516
595
  "button",
517
596
  {
518
597
  type: "button",
519
- disabled: s || r,
520
- className: ne,
521
- "aria-label": l("navigation.localePicker.trigger", {
522
- locale: o.nativeName
598
+ disabled: i || l,
599
+ className: ce,
600
+ "aria-label": r("navigation.localePicker.trigger", {
601
+ locale: n.nativeName
523
602
  }),
524
603
  children: [
525
- E(o.countryCode) ? /* @__PURE__ */ t(
526
- T,
604
+ A(n.countryCode) ? /* @__PURE__ */ s(
605
+ _,
527
606
  {
528
- country: o.countryCode,
607
+ country: n.countryCode,
529
608
  size: "sm",
530
609
  shape: "rectangle",
531
610
  rounded: "sm",
532
611
  className: "ds:shrink-0"
533
612
  }
534
- ) : /* @__PURE__ */ t(A, { "aria-hidden": !0, className: "ds:size-4 ds:shrink-0" }),
535
- /* @__PURE__ */ t(
613
+ ) : /* @__PURE__ */ s(z, { "aria-hidden": !0, className: "ds:size-4 ds:shrink-0" }),
614
+ /* @__PURE__ */ s(
536
615
  "span",
537
616
  {
538
617
  className: "ds:flex-1 ds:truncate type-body-sm",
539
- lang: o.code,
540
- children: o.nativeName
618
+ lang: n.code,
619
+ children: n.nativeName
541
620
  }
542
621
  )
543
622
  ]
544
623
  }
545
624
  ) }),
546
- /* @__PURE__ */ t(
547
- p.Content,
625
+ /* @__PURE__ */ s(
626
+ C.Content,
548
627
  {
549
- align: "end",
628
+ side: o,
629
+ align: "start",
550
630
  sideOffset: 8,
551
- className: D,
552
- "aria-label": l("navigation.localePicker.popupLabel"),
553
- children: /* @__PURE__ */ t(
554
- S,
631
+ className: W,
632
+ "aria-label": r("navigation.localePicker.popupLabel"),
633
+ children: /* @__PURE__ */ s(
634
+ I,
555
635
  {
556
636
  value: e.locale,
557
637
  onValueChange: e.setLocale,
558
- disabled: s,
559
- loading: r
638
+ disabled: i,
639
+ loading: l
560
640
  }
561
641
  )
562
642
  }
@@ -565,74 +645,83 @@ function le({
565
645
  }
566
646
  );
567
647
  }
568
- const V = F(
648
+ const Y = H(
569
649
  (e, a) => {
570
650
  const {
571
- variant: d = "icon",
572
- value: i,
573
- onValueChange: s,
574
- disabled: r = !1,
575
- loading: l = !1,
576
- className: o,
577
- id: h,
578
- ...b
579
- } = e, v = H(), C = i ?? v.locale, L = R(
580
- (c) => {
581
- if (m(c)) {
582
- if (s) {
583
- s(c), P(c), I(k, c);
584
- return;
585
- }
586
- v.setLocale(c);
651
+ variant: m = "icon",
652
+ value: d,
653
+ onValueChange: i,
654
+ disabled: l = !1,
655
+ loading: o = !1,
656
+ popoverSide: r = "bottom",
657
+ className: n,
658
+ id: E,
659
+ ...S
660
+ } = e, p = J(), w = d ?? p.locale, P = R(
661
+ (u) => {
662
+ if (i) {
663
+ if (i(u), u === g) {
664
+ q(b);
665
+ const X = x();
666
+ L(X);
667
+ } else h(u) && (L(u), V(b, u));
668
+ return;
587
669
  }
670
+ p.setLocale(u);
588
671
  },
589
- [s, v]
590
- ), g = _(
591
- () => ({ locale: C, setLocale: L }),
592
- [C, L]
593
- ), N = j(null);
594
- q(a, () => N.current, []);
595
- const n = j(g);
596
- n.current = g;
597
- const f = _(
672
+ [i, p]
673
+ ), v = D(
674
+ () => ({
675
+ locale: w,
676
+ isSystemDefault: p.isSystemDefault,
677
+ setLocale: P
678
+ }),
679
+ [w, p.isSystemDefault, P]
680
+ ), N = F(null);
681
+ Q(a, () => N.current, []);
682
+ const t = F(v);
683
+ t.current = v;
684
+ const c = D(
598
685
  () => ({
599
- setLocale: (c) => {
600
- m(c) && n.current.setLocale(c);
686
+ setLocale: (u) => {
687
+ h(u) && t.current.setLocale(u);
601
688
  }
602
689
  }),
603
690
  []
604
691
  );
605
- return Z(se, f, h), d === "compact" ? /* @__PURE__ */ t(
606
- le,
692
+ return ne(le, c, E), m === "compact" ? /* @__PURE__ */ s(
693
+ ge,
607
694
  {
608
- state: g,
609
- rest: b,
695
+ state: v,
696
+ rest: S,
610
697
  forwardedRef: N,
611
- className: o,
612
- disabled: r,
613
- loading: l
698
+ className: n,
699
+ disabled: l,
700
+ loading: o,
701
+ popoverSide: r
614
702
  }
615
- ) : /* @__PURE__ */ t(
616
- ie,
703
+ ) : /* @__PURE__ */ s(
704
+ ue,
617
705
  {
618
- state: g,
619
- rest: b,
706
+ state: v,
707
+ rest: S,
620
708
  forwardedRef: N,
621
- className: o,
622
- disabled: r,
623
- loading: l
709
+ className: n,
710
+ disabled: l,
711
+ loading: o,
712
+ popoverSide: r
624
713
  }
625
714
  );
626
715
  }
627
716
  );
628
- V.displayName = "LocalePicker";
629
- const ke = Object.assign(V, {
630
- SearchList: S
717
+ Y.displayName = "LocalePicker";
718
+ const xe = Object.assign(Y, {
719
+ SearchList: I
631
720
  });
632
721
  export {
633
- k as L,
634
- ke as a,
635
- S as b,
636
- w as c
722
+ b as L,
723
+ xe as a,
724
+ I as b,
725
+ k as c
637
726
  };
638
- //# sourceMappingURL=locale-picker-BxEUUPW7.js.map
727
+ //# sourceMappingURL=locale-picker-BHxbTNmR.js.map