@alfadocs/ui-kit 0.30.5 → 0.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
  3. package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
  4. package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
  5. package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
  6. package/dist/_chunks/ar-CEpIJtcO.js +399 -0
  7. package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
  8. package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
  9. package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
  10. package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
  11. package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
  12. package/dist/_chunks/{booking-Cw92aqo3.js → booking-BIZ9GSer.js} +149 -160
  13. package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
  14. package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
  15. package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
  16. package/dist/_chunks/calendar-clock-CYkcqdwl.js +19 -0
  17. package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
  18. package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
  19. package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
  20. package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
  21. package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
  22. package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
  23. package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
  24. package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
  25. package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
  26. package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
  27. package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
  28. package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
  29. package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
  30. package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
  31. package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
  32. package/dist/_chunks/de-Dfbeau59.js +477 -0
  33. package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
  34. package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
  35. package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
  36. package/dist/_chunks/{editable-currency-cell-renderer-CztRy_21.js → editable-currency-cell-renderer-BpicmolK.js} +308 -322
  37. package/dist/_chunks/el-Dro3J7CP.js +373 -0
  38. package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
  39. package/dist/_chunks/es-Dvg8u70B.js +373 -0
  40. package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
  41. package/dist/_chunks/fr-VOGjBSPP.js +338 -0
  42. package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
  43. package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
  44. package/dist/_chunks/hi-BSDxWU_y.js +433 -0
  45. package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
  46. package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
  47. package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
  48. package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
  49. package/dist/_chunks/it-CuonvcI_.js +401 -0
  50. package/dist/_chunks/ja-DO57gIOT.js +366 -0
  51. package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
  52. package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
  53. package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
  54. package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
  55. package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
  56. package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
  57. package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
  58. package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
  59. package/dist/_chunks/nl-DjPaaWaW.js +326 -0
  60. package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
  61. package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
  62. package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
  63. package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
  64. package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
  65. package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
  66. package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
  67. package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
  68. package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
  69. package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
  70. package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
  71. package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
  72. package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
  73. package/dist/_chunks/practice-results-JQunxBIg.js +1618 -0
  74. package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
  75. package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
  76. package/dist/_chunks/pt-D7qO5CzD.js +370 -0
  77. package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
  78. package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
  79. package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
  80. package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
  81. package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
  82. package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
  83. package/dist/_chunks/refresh-cw-CC8jSKMr.js +17 -0
  84. package/dist/_chunks/registry-nPAVE19X.js +21 -0
  85. package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
  86. package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
  87. package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
  88. package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
  89. package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
  90. package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
  91. package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
  92. package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
  93. package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
  94. package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
  95. package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
  96. package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
  97. package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
  98. package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
  99. package/dist/_chunks/smile-BSYLAHy6.js +17 -0
  100. package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
  101. package/dist/_chunks/sq-AQvefouo.js +355 -0
  102. package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
  103. package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
  104. package/dist/_chunks/sv-zkx9eBtD.js +376 -0
  105. package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
  106. package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
  107. package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
  108. package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
  109. package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
  110. package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
  111. package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
  112. package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
  113. package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
  114. package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
  115. package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
  116. package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
  117. package/dist/_chunks/tr-Dmr412Ac.js +378 -0
  118. package/dist/_chunks/{transaction-chip-z9ENE50O.js → transaction-chip-B8ujzowA.js} +47 -60
  119. package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
  120. package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
  121. package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
  122. package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
  123. package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
  124. package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
  125. package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
  126. package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
  127. package/dist/agent/registry.d.ts +1 -6
  128. package/dist/agent-catalog.json +42 -1
  129. package/dist/components/_shared/date-locale.d.ts +7 -2
  130. package/dist/components/_shared/index.d.ts +1 -1
  131. package/dist/components/accordion/index.js +1 -1
  132. package/dist/components/agenda-card/index.js +1 -1
  133. package/dist/components/agenda-tray/index.js +1 -1
  134. package/dist/components/ai-prompt-input/index.js +1 -1
  135. package/dist/components/audio-recorder/index.js +1 -1
  136. package/dist/components/audio-visualiser/index.js +1 -1
  137. package/dist/components/autocomplete/index.js +1 -1
  138. package/dist/components/avatar/index.js +1 -1
  139. package/dist/components/badge/index.js +1 -1
  140. package/dist/components/booking/index.js +1 -1
  141. package/dist/components/breadcrumb/index.js +1 -1
  142. package/dist/components/button/index.js +1 -1
  143. package/dist/components/button-group/index.js +1 -1
  144. package/dist/components/calendar/index.js +1 -1
  145. package/dist/components/carousel/index.js +1 -1
  146. package/dist/components/chart/index.js +1 -1
  147. package/dist/components/chat-container/index.js +1 -1
  148. package/dist/components/chat-input/index.js +1 -1
  149. package/dist/components/chat-message/index.js +1 -1
  150. package/dist/components/checkbox/index.js +1 -1
  151. package/dist/components/checkbox-group/index.js +1 -1
  152. package/dist/components/collapsible/index.js +1 -1
  153. package/dist/components/color-picker/index.js +1 -1
  154. package/dist/components/combobox/index.js +1 -1
  155. package/dist/components/command-palette/index.js +1 -1
  156. package/dist/components/copy-field/index.js +1 -1
  157. package/dist/components/data-table/index.js +1 -1
  158. package/dist/components/date-picker/index.js +1 -1
  159. package/dist/components/date-range-picker/index.js +1 -1
  160. package/dist/components/date-time-picker/index.js +1 -1
  161. package/dist/components/description-list/index.js +1 -1
  162. package/dist/components/dialog/index.js +1 -1
  163. package/dist/components/dropdown-menu/index.js +1 -1
  164. package/dist/components/email-input/index.js +1 -1
  165. package/dist/components/file-upload/index.js +1 -1
  166. package/dist/components/freemium-paywall/index.js +1 -1
  167. package/dist/components/header/index.js +1 -1
  168. package/dist/components/header-settings/index.js +6 -6
  169. package/dist/components/icon-button/index.js +1 -1
  170. package/dist/components/icon-button-group/index.js +1 -1
  171. package/dist/components/index.d.ts +1 -0
  172. package/dist/components/key-value-pair/index.js +1 -1
  173. package/dist/components/list/index.js +1 -1
  174. package/dist/components/locale-picker/index.js +1 -1
  175. package/dist/components/map-view/index.js +1 -1
  176. package/dist/components/map-view/map-view.d.ts +10 -0
  177. package/dist/components/message-card/index.js +1 -1
  178. package/dist/components/message-tray/index.js +1 -1
  179. package/dist/components/multi-select/index.js +1 -1
  180. package/dist/components/navigation-menu/index.js +1 -1
  181. package/dist/components/notification-card/index.js +1 -1
  182. package/dist/components/notification-tray/index.js +1 -1
  183. package/dist/components/number-input/index.js +1 -1
  184. package/dist/components/otp-input/index.js +1 -1
  185. package/dist/components/pagination/index.js +1 -1
  186. package/dist/components/password-input/index.js +1 -1
  187. package/dist/components/patient-search/index.js +1 -1
  188. package/dist/components/payment-form/index.js +1 -1
  189. package/dist/components/pdf-viewer/index.js +1 -1
  190. package/dist/components/phone-input/index.js +1 -1
  191. package/dist/components/popover/index.js +1 -1
  192. package/dist/components/practice-results/index.d.ts +4 -0
  193. package/dist/components/practice-results/index.js +6 -0
  194. package/dist/components/practice-results/practice-results.agent.d.ts +4 -0
  195. package/dist/components/practice-results/practice-results.d.ts +159 -0
  196. package/dist/components/privacy-lock/index.js +1 -1
  197. package/dist/components/progress/index.js +1 -1
  198. package/dist/components/public-footer/index.js +1 -1
  199. package/dist/components/public-header/index.js +1 -1
  200. package/dist/components/radio/index.js +1 -1
  201. package/dist/components/radio-group/index.js +2 -2
  202. package/dist/components/recaptcha-widget/index.js +1 -1
  203. package/dist/components/resizable/index.js +1 -1
  204. package/dist/components/reviews-panel/index.js +1 -1
  205. package/dist/components/rich-text-editor/index.js +1 -1
  206. package/dist/components/scroll-area/index.js +1 -1
  207. package/dist/components/search-bar/index.js +1 -1
  208. package/dist/components/search-input/index.js +1 -1
  209. package/dist/components/select/index.js +1 -1
  210. package/dist/components/sheet/index.js +1 -1
  211. package/dist/components/sidebar/index.js +1 -1
  212. package/dist/components/signature-capture/index.js +1 -1
  213. package/dist/components/slider/index.js +1 -1
  214. package/dist/components/slot-grid/index.js +1 -1
  215. package/dist/components/sparkline/index.js +1 -1
  216. package/dist/components/stepper-progress/index.js +1 -1
  217. package/dist/components/streaming-text/index.js +1 -1
  218. package/dist/components/switch/index.js +1 -1
  219. package/dist/components/tabs/index.js +1 -1
  220. package/dist/components/tag/index.js +1 -1
  221. package/dist/components/task-tray/index.js +1 -1
  222. package/dist/components/text-area/index.js +1 -1
  223. package/dist/components/text-input/index.js +1 -1
  224. package/dist/components/theme-toggle/index.js +1 -1
  225. package/dist/components/time-picker/index.js +1 -1
  226. package/dist/components/timeline/index.js +1 -1
  227. package/dist/components/toast/index.js +1 -1
  228. package/dist/components/tooltip/index.js +1 -1
  229. package/dist/components/tooth-scheme/index.js +1 -1
  230. package/dist/components/transaction-chip/index.js +1 -1
  231. package/dist/components/transcript-panel/index.js +1 -1
  232. package/dist/components/workflow/index.js +1 -1
  233. package/dist/hooks/index.js +69 -66
  234. package/dist/i18n/locales/ar.d.ts +92 -0
  235. package/dist/i18n/locales/ar.js +82 -0
  236. package/dist/i18n/locales/de.d.ts +92 -0
  237. package/dist/i18n/locales/de.js +81 -0
  238. package/dist/i18n/locales/el.d.ts +92 -0
  239. package/dist/i18n/locales/el.js +82 -0
  240. package/dist/i18n/locales/en.d.ts +92 -0
  241. package/dist/i18n/locales/en.js +92 -0
  242. package/dist/i18n/locales/es.d.ts +92 -0
  243. package/dist/i18n/locales/es.js +81 -0
  244. package/dist/i18n/locales/fr.d.ts +92 -0
  245. package/dist/i18n/locales/fr.js +81 -0
  246. package/dist/i18n/locales/hi.d.ts +92 -0
  247. package/dist/i18n/locales/hi.js +82 -0
  248. package/dist/i18n/locales/it.d.ts +92 -0
  249. package/dist/i18n/locales/it.js +81 -0
  250. package/dist/i18n/locales/ja.d.ts +92 -0
  251. package/dist/i18n/locales/ja.js +82 -0
  252. package/dist/i18n/locales/nl.d.ts +92 -0
  253. package/dist/i18n/locales/nl.js +81 -0
  254. package/dist/i18n/locales/pl.d.ts +92 -0
  255. package/dist/i18n/locales/pl.js +82 -0
  256. package/dist/i18n/locales/pt.d.ts +92 -0
  257. package/dist/i18n/locales/pt.js +83 -0
  258. package/dist/i18n/locales/ro.d.ts +92 -0
  259. package/dist/i18n/locales/ro.js +82 -0
  260. package/dist/i18n/locales/ru.d.ts +92 -0
  261. package/dist/i18n/locales/ru.js +82 -0
  262. package/dist/i18n/locales/sq.d.ts +92 -0
  263. package/dist/i18n/locales/sq.js +82 -0
  264. package/dist/i18n/locales/sv.d.ts +92 -0
  265. package/dist/i18n/locales/sv.js +82 -0
  266. package/dist/i18n/locales/tr.d.ts +92 -0
  267. package/dist/i18n/locales/tr.js +82 -0
  268. package/dist/i18n/locales/zh.d.ts +92 -0
  269. package/dist/i18n/locales/zh.js +82 -0
  270. package/dist/index.js +532 -528
  271. package/dist/locales/ar.json +92 -0
  272. package/dist/locales/de.json +92 -0
  273. package/dist/locales/el.json +92 -0
  274. package/dist/locales/en.json +92 -0
  275. package/dist/locales/es.json +92 -0
  276. package/dist/locales/fr.json +92 -0
  277. package/dist/locales/hi.json +92 -0
  278. package/dist/locales/it.json +92 -0
  279. package/dist/locales/ja.json +92 -0
  280. package/dist/locales/nl.json +92 -0
  281. package/dist/locales/pl.json +92 -0
  282. package/dist/locales/pt.json +92 -0
  283. package/dist/locales/ro.json +92 -0
  284. package/dist/locales/ru.json +92 -0
  285. package/dist/locales/sq.json +92 -0
  286. package/dist/locales/sv.json +92 -0
  287. package/dist/locales/tr.json +92 -0
  288. package/dist/locales/zh.json +92 -0
  289. package/dist/patterns/alia-assistant/index.js +1 -1
  290. package/dist/patterns/patient-shell/index.js +1 -1
  291. package/dist/tokens.css +1 -1
  292. package/package.json +5 -2
  293. package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
  294. package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
  295. package/dist/_chunks/registry-C9nwlNyL.js +0 -21
  296. package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
  297. package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
@@ -0,0 +1,159 @@
1
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ export type PracticeResultsVariant = 'split-list-map' | 'map-first' | 'rich-cards';
4
+ export type PracticeResultsSort = 'distance' | 'rating' | 'next-available' | 'relevance';
5
+ /**
6
+ * Where the result-selection event originated.
7
+ *
8
+ * - `card` — patient clicked the card body. The kit's behaviour is
9
+ * **sync only** (centre the map on the matching pin) — it does NOT
10
+ * navigate. The consumer's `onResultSelect` handler should typically
11
+ * no-op or augment with hover-like analytics for this source.
12
+ * - `pin` — patient clicked a map pin. Sync-only (scroll list to the
13
+ * matching card); no navigation.
14
+ * - `open-button` — patient clicked the explicit "Open" CTA on a card.
15
+ * This is the **only** source that should drive navigation. Booking-
16
+ * website's consumer routes to `result.href` on this source value.
17
+ */
18
+ export type PracticeResultsSelectSource = 'card' | 'pin' | 'open-button';
19
+ export interface PracticeResultsBounds {
20
+ north: number;
21
+ south: number;
22
+ east: number;
23
+ west: number;
24
+ }
25
+ export interface PracticeResult {
26
+ id: string;
27
+ /** Stable URL for the practice or operator detail page. */
28
+ href: string;
29
+ name: string;
30
+ /** Profession or specialty caption. */
31
+ subtitle?: string;
32
+ /** Avatar / logo URL. */
33
+ imageUrl?: string;
34
+ /** Practice location. Required by the two map variants. */
35
+ location?: {
36
+ lat: number;
37
+ lng: number;
38
+ /** Display string e.g. "Via Brera 14, 20121 Milano". */
39
+ address?: string;
40
+ /** Distance from search centre, in km. Rendered by rich-cards. */
41
+ distanceKm?: number;
42
+ };
43
+ rating?: {
44
+ value: number;
45
+ count: number;
46
+ };
47
+ /** ISO 639-1 codes. Rendered as chips by rich-cards. */
48
+ languages?: string[];
49
+ /** Short brand names. Rendered as chips by rich-cards. */
50
+ insurances?: string[];
51
+ /** Anxious-patient friendly — renders an icon chip on rich-cards. */
52
+ specializedInFearPatients?: boolean;
53
+ /** Next available slot — rendered as inline CTA on rich-cards. */
54
+ nextAvailableSlot?: {
55
+ /** ISO datetime, e.g. "2026-05-23T10:30:00+02:00". */
56
+ dateTime: string;
57
+ /** Direct deep-link to the kit's Booking with this slot pre-selected. */
58
+ bookingHref: string;
59
+ };
60
+ /** Opaque payload echoed back in onResultSelect. */
61
+ __payload?: unknown;
62
+ }
63
+ export interface PracticeResultsValue {
64
+ /** Selected facets — keys match consumer's `facets[].key`. */
65
+ facets?: Record<string, string[]>;
66
+ /** Sort key. Default `'distance'` when searchCentre is set, otherwise `'relevance'`. */
67
+ sort?: PracticeResultsSort;
68
+ }
69
+ /** Shared facet shape — same as PatientSearch. */
70
+ export interface FacetOption {
71
+ value: string;
72
+ label: string;
73
+ }
74
+ export interface FacetGroup {
75
+ key: string;
76
+ label: string;
77
+ /** Empty array = boolean toggle. Non-empty = dropdown. */
78
+ options: FacetOption[];
79
+ multi?: boolean;
80
+ }
81
+ export interface PracticeResultsHandle {
82
+ getVariant: () => PracticeResultsVariant;
83
+ /** Scroll a specific result into view (useful for deep-link → highlight). */
84
+ scrollToResult: (id: string) => void;
85
+ /** Imperatively focus a pin on the map (no-op on rich-cards). */
86
+ focusPin: (id: string) => void;
87
+ }
88
+ export interface PracticeResultsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'aria-label' | 'onChange' | 'onSelect' | 'results' | 'defaultValue'>, VariantProps<typeof rootVariants> {
89
+ /** Default: 'split-list-map'. Pass to override (PostHog / dev-menu). */
90
+ variant?: PracticeResultsVariant;
91
+ results: PracticeResult[];
92
+ /** Total count for the "{{count}} risultati" header. May differ from results.length. */
93
+ totalCount?: number;
94
+ /** Visible search location — drives map centre + distance calcs. */
95
+ searchCentre?: {
96
+ lat: number;
97
+ lng: number;
98
+ label?: string;
99
+ };
100
+ facets?: FacetGroup[];
101
+ googleMapsApiKey?: string;
102
+ /** Initial map zoom. Default 13. */
103
+ defaultZoom?: number;
104
+ /** Fires when patient pans/zooms (split + map-first only). */
105
+ onBoundsChange?: (bounds: PracticeResultsBounds) => void;
106
+ /**
107
+ * GDPR consent gate, forwarded to the embedded MapView. When `false`
108
+ * (default) the kit renders the same consent placeholder MapView ships
109
+ * by default — third-party scripts never load until the consumer
110
+ * captures opt-in. Also gates the rich-cards static thumbnails (which
111
+ * are still IP-disclosing third-party loads).
112
+ */
113
+ consentGranted?: boolean;
114
+ /** Fires when the patient clicks the "Load map" CTA in the consent placeholder. */
115
+ onConsentRequest?: () => void;
116
+ /** Fires when the patient scrolls to the bottom of the list. */
117
+ onLoadMore?: () => void;
118
+ /** True while the next page is loading — kit shows a Spinner at the list tail. */
119
+ loadingMore?: boolean;
120
+ value: PracticeResultsValue;
121
+ onChange: (next: PracticeResultsValue) => void;
122
+ onResultSelect: (result: PracticeResult, source: PracticeResultsSelectSource) => void;
123
+ /**
124
+ * Initial loading skeletons. Per SSR-first design, skeletons render
125
+ * only when `results.length === 0 && loading === true` so a server-
126
+ * rendered list isn't flashed away on hydration.
127
+ */
128
+ loading?: boolean;
129
+ /** Custom empty-state slot. Defaults to the localised EmptyState. */
130
+ emptyResultsSlot?: ReactNode;
131
+ /** Custom error slot. Renders when `error` is truthy. */
132
+ errorSlot?: ReactNode;
133
+ /** Truthy = render the error slot. Pair with `onRetry` for the default slot. */
134
+ error?: boolean;
135
+ /** Retry handler for the default error slot's CTA. */
136
+ onRetry?: () => void;
137
+ /** Heading rendered above the results (e.g. "I migliori Dentisti a Milano"). */
138
+ heading?: string;
139
+ /** Intro text below the heading. */
140
+ intro?: string;
141
+ /**
142
+ * Label for the per-card "Open" button. Defaults to
143
+ * `t('practiceResults.card.open')` ("Apri" / "Open"). The Open button
144
+ * is the **only** card affordance that fires `onResultSelect` with
145
+ * `source: 'open-button'` — that's the source the consumer should
146
+ * navigate on. Card-body clicks and pin clicks fire with `'card'` /
147
+ * `'pin'` and are sync-only.
148
+ */
149
+ cardOpenButtonLabel?: string;
150
+ 'aria-label'?: string;
151
+ /** Agent-readiness instance id. */
152
+ id?: string;
153
+ }
154
+ declare const rootVariants: (props?: ({
155
+ variant?: "split-list-map" | "map-first" | "rich-cards" | null | undefined;
156
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
157
+ export declare const PracticeResults: import("react").ForwardRefExoticComponent<PracticeResultsProps & import("react").RefAttributes<PracticeResultsHandle>>;
158
+ export {};
159
+ //# sourceMappingURL=practice-results.d.ts.map
@@ -1,4 +1,4 @@
1
- import { P as o, p as r } from "../../_chunks/privacy-lock-C6Ra5m3p.js";
1
+ import { P as o, p as r } from "../../_chunks/privacy-lock-DD-wHxBg.js";
2
2
  export {
3
3
  o as PrivacyLock,
4
4
  r as privacyLockAgent
@@ -1,4 +1,4 @@
1
- import { P as e, p as o } from "../../_chunks/progress-B-PSO5OS.js";
1
+ import { P as e, p as o } from "../../_chunks/progress-kzIRcdaq.js";
2
2
  export {
3
3
  e as Progress,
4
4
  o as progressAgent
@@ -1,4 +1,4 @@
1
- import { D as s, a as A, P as L, S as e, c as S, p as _ } from "../../_chunks/public-footer.agent-Bc99tE5Z.js";
1
+ import { D as s, a as A, P as L, S as e, c as S, p as _ } from "../../_chunks/public-footer.agent-Bh0rnx4i.js";
2
2
  export {
3
3
  s as DEFAULT_MARKETING_BASE_URL,
4
4
  A as DEFAULT_SOCIAL_URLS,
@@ -1,4 +1,4 @@
1
- import { P as r, p } from "../../_chunks/public-header.agent-B-B0WDAi.js";
1
+ import { P as r, p } from "../../_chunks/public-header.agent-B2dDg2_d.js";
2
2
  export {
3
3
  r as PublicHeader,
4
4
  p as publicHeaderAgent
@@ -1,4 +1,4 @@
1
- import { R as r } from "../../_chunks/radio-i4ogu3cq.js";
1
+ import { R as r } from "../../_chunks/radio-TWf9Q-mp.js";
2
2
  export {
3
3
  r as Radio
4
4
  };
@@ -1,5 +1,5 @@
1
- import { R as a } from "../../_chunks/radio-i4ogu3cq.js";
2
- import { R as p } from "../../_chunks/radio-group-CTlGc36r.js";
1
+ import { R as a } from "../../_chunks/radio-TWf9Q-mp.js";
2
+ import { R as p } from "../../_chunks/radio-group-BcF92GEF.js";
3
3
  export {
4
4
  a as Radio,
5
5
  p as RadioGroup
@@ -1,4 +1,4 @@
1
- import { R as t, r as c } from "../../_chunks/recaptcha-widget-BtBNb6tB.js";
1
+ import { R as t, r as c } from "../../_chunks/recaptcha-widget-CFYyLSEX.js";
2
2
  export {
3
3
  t as RecaptchaWidget,
4
4
  c as recaptchaWidgetAgent
@@ -1,4 +1,4 @@
1
- import { H as s, P as l, a as n, R as r, r as o, u as t } from "../../_chunks/resizable-COV-cnth.js";
1
+ import { H as s, P as l, a as n, R as r, r as o, u as t } from "../../_chunks/resizable-3vzqDlg6.js";
2
2
  export {
3
3
  s as Handle,
4
4
  l as Panel,
@@ -1,4 +1,4 @@
1
- import { R as r, r as s } from "../../_chunks/reviews-panel-bKEUKSic.js";
1
+ import { R as r, r as s } from "../../_chunks/reviews-panel-yanuBZs-.js";
2
2
  export {
3
3
  r as ReviewsPanel,
4
4
  s as reviewsPanelAgent
@@ -1,4 +1,4 @@
1
- import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-J-wAz9eN.js";
1
+ import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-CHmr9Bz8.js";
2
2
  export {
3
3
  t as RichTextEditor,
4
4
  o as editorSurfaceVariants,
@@ -1,4 +1,4 @@
1
- import { S as l, a as o, b as e, c, d as S, e as s } from "../../_chunks/scroll-area-DEDU-lp-.js";
1
+ import { S as l, a as o, b as e, c, d as S, e as s } from "../../_chunks/scroll-area-BWqCkEGz.js";
2
2
  export {
3
3
  l as ScrollArea,
4
4
  o as ScrollAreaCorner,
@@ -1,4 +1,4 @@
1
- import { S as e, f as s, s as t } from "../../_chunks/search-bar-BRMW1-WG.js";
1
+ import { S as e, f as s, s as t } from "../../_chunks/search-bar-CP6wUJFY.js";
2
2
  export {
3
3
  e as SearchBar,
4
4
  s as filterSearchResults,
@@ -1,4 +1,4 @@
1
- import { S as t } from "../../_chunks/search-input-CIA6pPfn.js";
1
+ import { S as t } from "../../_chunks/search-input-C1C3jQpD.js";
2
2
  import { s as o } from "../../_chunks/search-input.agent-CfZvViOd.js";
3
3
  export {
4
4
  t as SearchInput,
@@ -1,4 +1,4 @@
1
- import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-C92AT_OZ.js";
1
+ import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-hsCaJSX3.js";
2
2
  export {
3
3
  a as Select,
4
4
  l as SelectContent,
@@ -1,4 +1,4 @@
1
- import { S as t, s as a } from "../../_chunks/sheet-D8Yl0nKR.js";
1
+ import { S as t, s as a } from "../../_chunks/sheet-BV-yuLE2.js";
2
2
  export {
3
3
  t as Sheet,
4
4
  a as sheetAgent
@@ -1,4 +1,4 @@
1
- import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as p, m as u, n as I, o as g, p as P, s as f, u as B } from "../../_chunks/sidebar-DkyC6GvS.js";
1
+ import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as l, k as c, l as p, m as u, n as I, o as g, p as P, s as f, u as B } from "../../_chunks/sidebar-BbR8f6oe.js";
2
2
  import { u as h } from "../../_chunks/use-persistent-state-i23OWy6G.js";
3
3
  export {
4
4
  r as Sidebar,
@@ -1,4 +1,4 @@
1
- import { S as r, s as t } from "../../_chunks/signature-capture-DjMlFOzS.js";
1
+ import { S as r, s as t } from "../../_chunks/signature-capture-C-fF71xI.js";
2
2
  export {
3
3
  r as SignatureCapture,
4
4
  t as signatureCaptureAgent
@@ -1,4 +1,4 @@
1
- import { S as o } from "../../_chunks/slider-CfEzeseL.js";
1
+ import { S as o } from "../../_chunks/slider-BHWzXdjt.js";
2
2
  export {
3
3
  o as Slider
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as s, f as e, i as r } from "../../_chunks/slot-grid-Q94gVmhn.js";
1
+ import { S as s, f as e, i as r } from "../../_chunks/slot-grid-Dz13dH82.js";
2
2
  export {
3
3
  s as SlotGrid,
4
4
  e as findFirstAvailable,
@@ -1,4 +1,4 @@
1
- import { S as r, s, u as n } from "../../_chunks/sparkline-B5Ms55PZ.js";
1
+ import { S as r, s, u as n } from "../../_chunks/sparkline-DEROcSl0.js";
2
2
  export {
3
3
  r as Sparkline,
4
4
  s as sparklineAgent,
@@ -1,4 +1,4 @@
1
- import { S as s, s as p } from "../../_chunks/stepper-progress-jFY8BSf7.js";
1
+ import { S as s, s as p } from "../../_chunks/stepper-progress-DDjq5nei.js";
2
2
  export {
3
3
  s as StepperProgress,
4
4
  p as stepperProgressAgent
@@ -1,4 +1,4 @@
1
- import { S as t } from "../../_chunks/streaming-text-BgjCTVOw.js";
1
+ import { S as t } from "../../_chunks/streaming-text-GH07yIYh.js";
2
2
  export {
3
3
  t as StreamingText
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as t } from "../../_chunks/switch-D916VW86.js";
1
+ import { S as t } from "../../_chunks/switch-BJ6HD3Mn.js";
2
2
  export {
3
3
  t as Switch
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as t, a as b, b as T, c as e, t as r } from "../../_chunks/tabs-aEQfQV3x.js";
1
+ import { T as t, a as b, b as T, c as e, t as r } from "../../_chunks/tabs-BpPYVme_.js";
2
2
  export {
3
3
  t as Tabs,
4
4
  b as TabsContent,
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../_chunks/tag-bBPAvXyh.js";
1
+ import { T as r } from "../../_chunks/tag-CyoaEmf_.js";
2
2
  export {
3
3
  r as Tag
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as s, t } from "../../_chunks/task-tray-6NlryfMJ.js";
1
+ import { T as s, t } from "../../_chunks/task-tray-DRK0b0Qb.js";
2
2
  export {
3
3
  s as TaskTray,
4
4
  t as taskTrayAgent
@@ -1,4 +1,4 @@
1
- import { T as a } from "../../_chunks/text-area-D5GAe8pV.js";
1
+ import { T as a } from "../../_chunks/text-area-BIx0tZ05.js";
2
2
  export {
3
3
  a as TextArea
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../_chunks/text-input-CakysYnD.js";
1
+ import { T as o } from "../../_chunks/text-input-BaClJL8Y.js";
2
2
  export {
3
3
  o as TextInput
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as o, t } from "../../_chunks/theme-toggle-JoeMs_ws.js";
1
+ import { T as o, t } from "../../_chunks/theme-toggle-DpC28kt5.js";
2
2
  export {
3
3
  o as ThemeToggle,
4
4
  t as themeToggleAgent
@@ -1,4 +1,4 @@
1
- import { T as r, t } from "../../_chunks/time-picker-DeVZkIY2.js";
1
+ import { T as r, t } from "../../_chunks/time-picker-B5umYwfv.js";
2
2
  export {
3
3
  r as TimePicker,
4
4
  t as timePickerAgent
@@ -1,4 +1,4 @@
1
- import { T as t, t as m } from "../../_chunks/timeline-CR7HjZCK.js";
1
+ import { T as t, t as m } from "../../_chunks/timeline-D0Wo7v_o.js";
2
2
  export {
3
3
  t as Timeline,
4
4
  m as timelineAgent
@@ -1,4 +1,4 @@
1
- import { T as s, t as o, a as e, b as r, c as n, d as c, e as g } from "../../_chunks/toast.agent-DVpKt38p.js";
1
+ import { T as s, t as o, a as e, b as r, c as n, d as c, e as g } from "../../_chunks/toast.agent-WHHfw5VX.js";
2
2
  export {
3
3
  s as Toaster,
4
4
  o as toastAgent,
@@ -1,4 +1,4 @@
1
- import { T as a, a as i } from "../../_chunks/tooltip-ClJd0ciy.js";
1
+ import { T as a, a as i } from "../../_chunks/tooltip-DvmfrNvB.js";
2
2
  export {
3
3
  a as Tooltip,
4
4
  i as TooltipProvider
@@ -1,4 +1,4 @@
1
- import { C as s, a as t, b as O, F as e, c as o, d as E, P as _, e as I, T as N, f as h, g as S, h as r, l as A, i as C, t as R, r as m } from "../../_chunks/tooth-scheme-3mITSXiZ.js";
1
+ import { C as s, a as t, b as O, F as e, c as o, d as E, P as _, e as I, T as N, f as h, g as S, h as r, l as A, i as C, t as R, r as m } from "../../_chunks/tooth-scheme-CxlsLjfN.js";
2
2
  export {
3
3
  s as CONDITION_COLORS,
4
4
  t as CONDITION_PATTERNS,
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../_chunks/transaction-chip-z9ENE50O.js";
1
+ import { T as r } from "../../_chunks/transaction-chip-B8ujzowA.js";
2
2
  export {
3
3
  r as TransactionChip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as t, t as n } from "../../_chunks/transcript-panel-QUQ9XJmf.js";
1
+ import { T as t, t as n } from "../../_chunks/transcript-panel-DyhTpAP7.js";
2
2
  export {
3
3
  t as TranscriptPanel,
4
4
  n as transcriptPanelAgent
@@ -1,4 +1,4 @@
1
- import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-DlWBJJBt.js";
1
+ import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-BSvQS3be.js";
2
2
  export {
3
3
  r as CORE_PATIENT_FIELDS,
4
4
  e as WorkflowCard,
@@ -1,26 +1,30 @@
1
- import { u as D } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
- import { u as w, a as _ } from "../_chunks/use-scroll-to-first-error-BrK7dKB_.js";
3
- import { u as I } from "../_chunks/use-count-up-BLLetaZ8.js";
4
- import { u as K } from "../_chunks/use-locale-BkCIHujH.js";
5
- import { A as O, T as H, a as R, r as Y, t as q, u as B } from "../_chunks/use-theme-C2dHKUAN.js";
6
- import { u as P } from "../_chunks/use-controllable-state-BiY4xTzM.js";
7
- import { u as V } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
8
- import { u as Q } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
9
- import { useState as b, useEffect as l, useRef as T, useLayoutEffect as x } from "react";
10
- import { u as J, a as N } from "../_chunks/use-direction-D6rvvG9G.js";
11
- import { u as X } from "../_chunks/use-persistent-state-i23OWy6G.js";
12
- function S(e, t) {
13
- const [o, s] = b(e);
14
- return l(() => {
15
- if (t <= 0) {
16
- s(e);
1
+ import { u as v } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
2
+ import { u as D } from "../_chunks/use-media-query-CcAx5SMM.js";
3
+ import { u as _ } from "../_chunks/use-scroll-to-first-error-4Za-u5Nw.js";
4
+ import { u as g } from "../_chunks/use-count-up-BLLetaZ8.js";
5
+ import { u as w } from "../_chunks/use-locale-BkCIHujH.js";
6
+ import { A as O, T as R, a as H, r as M, t as Y, u as q } from "../_chunks/use-theme-C2dHKUAN.js";
7
+ import { u as G } from "../_chunks/use-controllable-state-BiY4xTzM.js";
8
+ import { u as U } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
9
+ import { u as j } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
10
+ import { useState as x, useRef as b, useEffect as E } from "react";
11
+ import { u as z, a as J } from "../_chunks/use-direction-Dp8h70PP.js";
12
+ import { u as W } from "../_chunks/use-persistent-state-i23OWy6G.js";
13
+ import { u as Z } from "../_chunks/use-isomorphic-layout-effect-BGfaCOP1.js";
14
+ function S(e, o) {
15
+ const [t, c] = x(e), n = b(null);
16
+ return E(() => {
17
+ if (o <= 0) {
18
+ n.current !== null && (clearTimeout(n.current), n.current = null), c(e);
17
19
  return;
18
20
  }
19
- const a = setTimeout(() => s(e), t);
20
- return () => clearTimeout(a);
21
- }, [e, t]), o;
21
+ const s = setTimeout(() => {
22
+ c(e), n.current = null;
23
+ }, o);
24
+ return n.current = s, () => clearTimeout(s);
25
+ }, [e, o]), t;
22
26
  }
23
- const h = [
27
+ const T = [
24
28
  "a[href]",
25
29
  "button:not([disabled])",
26
30
  'input:not([disabled]):not([type="hidden"])',
@@ -31,72 +35,71 @@ const h = [
31
35
  "audio[controls]",
32
36
  "video[controls]"
33
37
  ].join(",");
34
- function E(e) {
38
+ function p(e) {
35
39
  return Array.from(
36
- e.querySelectorAll(h)
37
- ).filter((t) => {
38
- if (t.hidden || t.getAttribute("aria-hidden") === "true") return !1;
39
- let o = t;
40
- for (; o; ) {
41
- if (o.hasAttribute("inert")) return !1;
42
- o = o.parentElement;
40
+ e.querySelectorAll(T)
41
+ ).filter((o) => {
42
+ if (o.hidden) return !1;
43
+ let t = o;
44
+ for (; t; ) {
45
+ if (t.hasAttribute("inert") || t.getAttribute("aria-hidden") === "true") return !1;
46
+ t = t.parentElement;
43
47
  }
44
48
  return !0;
45
49
  });
46
50
  }
47
- function C(e, t = {}) {
48
- const { enabled: o = !0, autoFocus: s = !0, restoreFocus: a = !0 } = t, f = T(null);
49
- l(() => {
50
- if (!o) return;
51
- const u = e.current;
52
- if (!u) return;
53
- if (f.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null, s) {
54
- const n = E(u)[0] ?? (u.tabIndex >= -1 ? u : null);
55
- n == null || n.focus();
51
+ function C(e, o = {}) {
52
+ const { enabled: t = !0, autoFocus: c = !0, restoreFocus: n = !0 } = o, s = b(null);
53
+ E(() => {
54
+ if (!t) return;
55
+ const a = e.current;
56
+ if (!a) return;
57
+ if (s.current = typeof document < "u" && document.activeElement instanceof HTMLElement ? document.activeElement : null, c) {
58
+ const u = p(a)[0] ?? (a.tabIndex >= -1 ? a : null);
59
+ u == null || u.focus();
56
60
  }
57
- function d(r) {
61
+ function f(r) {
58
62
  if (r.key !== "Tab") return;
59
- const n = e.current;
60
- if (!n) return;
61
- const c = E(n);
62
- if (c.length === 0) {
63
+ const u = e.current;
64
+ if (!u) return;
65
+ const i = p(u);
66
+ if (i.length === 0) {
63
67
  r.preventDefault();
64
68
  return;
65
69
  }
66
- const m = c[0], p = c[c.length - 1], i = document.activeElement;
67
- r.shiftKey ? (i === m || !n.contains(i)) && (r.preventDefault(), p.focus()) : (i === p || !n.contains(i)) && (r.preventDefault(), m.focus());
70
+ const d = i[0], m = i[i.length - 1], l = document.activeElement;
71
+ r.shiftKey ? (l === d || !u.contains(l)) && (r.preventDefault(), m.focus()) : (l === m || !u.contains(l)) && (r.preventDefault(), d.focus());
68
72
  }
69
- return u.addEventListener("keydown", d), () => {
70
- if (u.removeEventListener("keydown", d), a && f.current) {
71
- const r = f.current;
72
- queueMicrotask(() => {
73
+ return a.addEventListener("keydown", f), () => {
74
+ if (a.removeEventListener("keydown", f), n && s.current) {
75
+ const r = s.current;
76
+ requestAnimationFrame(() => {
73
77
  r.isConnected && r.focus();
74
78
  });
75
79
  }
76
80
  };
77
- }, [o, s, a, e]);
81
+ }, [t, c, n, e]);
78
82
  }
79
- const L = typeof window < "u" ? x : l;
80
83
  export {
81
84
  O as ACCESSIBILITY_STORAGE_KEY,
82
- H as THEME_CLASS,
83
- R as THEME_STORAGE_KEY,
84
- Y as resolveTheme,
85
- q as themeClassList,
86
- P as useControllableState,
87
- V as useCopyToClipboard,
88
- I as useCountUp,
89
- Q as useDebouncedCallback,
85
+ R as THEME_CLASS,
86
+ H as THEME_STORAGE_KEY,
87
+ M as resolveTheme,
88
+ Y as themeClassList,
89
+ G as useControllableState,
90
+ U as useCopyToClipboard,
91
+ g as useCountUp,
92
+ j as useDebouncedCallback,
90
93
  S as useDebouncedValue,
91
- J as useDirection,
92
- N as useDocumentDirection,
94
+ z as useDirection,
95
+ J as useDocumentDirection,
93
96
  C as useFocusTrap,
94
- L as useIsomorphicLayoutEffect,
95
- K as useLocale,
96
- w as useMediaQuery,
97
- X as usePersistentState,
98
- D as usePrefersReducedMotion,
97
+ Z as useIsomorphicLayoutEffect,
98
+ w as useLocale,
99
+ D as useMediaQuery,
100
+ W as usePersistentState,
101
+ v as usePrefersReducedMotion,
99
102
  _ as useScrollToFirstError,
100
- B as useTheme
103
+ q as useTheme
101
104
  };
102
105
  //# sourceMappingURL=index.js.map