@alfadocs/ui-kit 0.1.9 → 0.2.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 (281) hide show
  1. package/README.md +30 -0
  2. package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
  3. package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
  4. package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
  5. package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
  6. package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
  7. package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
  8. package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
  9. package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
  10. package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
  11. package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
  12. package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
  13. package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
  14. package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
  15. package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
  16. package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
  17. package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
  18. package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
  19. package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
  20. package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
  21. package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
  22. package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
  23. package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
  24. package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
  25. package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
  26. package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
  27. package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
  28. package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
  29. package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
  30. package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
  31. package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
  32. package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
  33. package/dist/_chunks/file-upload-C947ACDK.js +829 -0
  34. package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
  35. package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
  36. package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
  37. package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
  38. package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
  39. package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
  40. package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
  41. package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
  42. package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
  43. package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
  44. package/dist/_chunks/list-qP6p0NTw.js +434 -0
  45. package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
  46. package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
  47. package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
  48. package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
  49. package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
  50. package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
  51. package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
  52. package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
  53. package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
  54. package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
  55. package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
  56. package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
  57. package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
  58. package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
  59. package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
  60. package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
  61. package/dist/_chunks/popover-DekUKNBk.js +293 -0
  62. package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
  63. package/dist/_chunks/progress-C11tqhoI.js +298 -0
  64. package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
  65. package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
  66. package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
  67. package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
  68. package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
  69. package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
  70. package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
  71. package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
  72. package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
  73. package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
  74. package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
  75. package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
  76. package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
  77. package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
  78. package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
  79. package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
  80. package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
  81. package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
  82. package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
  83. package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
  84. package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
  85. package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
  86. package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
  87. package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
  88. package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
  89. package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
  90. package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
  91. package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
  92. package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
  93. package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
  94. package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
  95. package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
  96. package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
  97. package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
  98. package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
  99. package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
  100. package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
  101. package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
  102. package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
  103. package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
  104. package/dist/agent-catalog.json +580 -15
  105. package/dist/components/_shared/index.d.ts +2 -2
  106. package/dist/components/accordion/index.d.ts +1 -1
  107. package/dist/components/accordion/index.js +5 -6
  108. package/dist/components/agenda-card/index.js +1 -1
  109. package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
  110. package/dist/components/agenda-tray/index.js +1 -1
  111. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
  112. package/dist/components/ai-prompt-input/index.js +1 -1
  113. package/dist/components/alert/index.d.ts +1 -1
  114. package/dist/components/alert/index.js +1 -1
  115. package/dist/components/app-frame/index.js +1 -1
  116. package/dist/components/audio-recorder/index.js +1 -1
  117. package/dist/components/audio-visualiser/index.js +1 -1
  118. package/dist/components/autocomplete/index.js +1 -1
  119. package/dist/components/badge/index.js +1 -1
  120. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  121. package/dist/components/breadcrumb/index.js +1 -1
  122. package/dist/components/button/index.js +2 -2
  123. package/dist/components/calendar/index.js +1 -1
  124. package/dist/components/card/index.js +1 -1
  125. package/dist/components/chart/index.d.ts +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/chat-container/chat-container.d.ts +1 -1
  128. package/dist/components/chat-container/index.js +2 -3
  129. package/dist/components/chat-input/chat-input.d.ts +1 -1
  130. package/dist/components/chat-input/index.js +3 -4
  131. package/dist/components/chat-message/index.js +1 -1
  132. package/dist/components/checkbox-group/index.d.ts +1 -1
  133. package/dist/components/collapsible/collapsible.d.ts +1 -1
  134. package/dist/components/collapsible/index.d.ts +1 -1
  135. package/dist/components/collapsible/index.js +1 -1
  136. package/dist/components/color-picker/index.js +1 -1
  137. package/dist/components/combobox/index.d.ts +1 -1
  138. package/dist/components/combobox/index.js +1 -1
  139. package/dist/components/command-palette/command-palette.d.ts +46 -13
  140. package/dist/components/command-palette/index.js +1 -1
  141. package/dist/components/data-table/data-table.d.ts +3 -1
  142. package/dist/components/data-table/index.js +1 -1
  143. package/dist/components/data-table/toolbar.d.ts +6 -5
  144. package/dist/components/date-picker/date-picker.d.ts +1 -1
  145. package/dist/components/date-picker/index.d.ts +1 -1
  146. package/dist/components/date-picker/index.js +1 -1
  147. package/dist/components/date-range-picker/index.js +1 -1
  148. package/dist/components/date-time-picker/index.d.ts +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/description-list/description-list.d.ts +1 -2
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/dialog/dialog.d.ts +2 -2
  153. package/dist/components/dialog/index.js +1 -1
  154. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
  155. package/dist/components/dropdown-menu/index.js +3 -4
  156. package/dist/components/empty-state/index.js +1 -1
  157. package/dist/components/file-upload/index.d.ts +1 -1
  158. package/dist/components/file-upload/index.js +1 -1
  159. package/dist/components/floating-action-button/index.js +1 -1
  160. package/dist/components/form-field/index.js +2 -2
  161. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/icon-button/index.js +1 -1
  165. package/dist/components/kbd/index.js +1 -1
  166. package/dist/components/key-value-pair/index.js +1 -1
  167. package/dist/components/link/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/logo/index.js +1 -1
  170. package/dist/components/matrix-rain/index.js +1 -1
  171. package/dist/components/message-card/index.d.ts +1 -1
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/message-tray/message-tray.d.ts +1 -1
  175. package/dist/components/multi-select/index.js +1 -1
  176. package/dist/components/navigation-menu/index.js +1 -1
  177. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  178. package/dist/components/notification-card/index.d.ts +1 -1
  179. package/dist/components/notification-card/index.js +1 -1
  180. package/dist/components/notification-tray/index.js +1 -1
  181. package/dist/components/notification-tray/notification-tray.d.ts +1 -1
  182. package/dist/components/number-input/index.js +1 -1
  183. package/dist/components/otp-input/index.js +1 -1
  184. package/dist/components/pagination/index.js +1 -1
  185. package/dist/components/pagination/pagination.d.ts +4 -6
  186. package/dist/components/password-input/index.js +1 -1
  187. package/dist/components/payment-form/index.js +7 -8
  188. package/dist/components/payment-form/payment-form.d.ts +1 -1
  189. package/dist/components/pdf-viewer/index.js +1 -1
  190. package/dist/components/phone-input/index.d.ts +1 -1
  191. package/dist/components/phone-input/index.js +1 -1
  192. package/dist/components/popover/index.js +3 -4
  193. package/dist/components/privacy-lock/index.js +1 -1
  194. package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
  195. package/dist/components/progress/index.js +3 -4
  196. package/dist/components/recaptcha-widget/index.js +1 -1
  197. package/dist/components/resizable/index.d.ts +1 -1
  198. package/dist/components/resizable/index.js +1 -1
  199. package/dist/components/rich-text-editor/index.js +1 -1
  200. package/dist/components/scroll-area/index.js +1 -1
  201. package/dist/components/search-bar/index.js +1 -1
  202. package/dist/components/search-bar/search-bar.d.ts +1 -1
  203. package/dist/components/search-input/index.js +1 -1
  204. package/dist/components/select/index.js +1 -1
  205. package/dist/components/select/select.d.ts +1 -1
  206. package/dist/components/separator/index.js +1 -1
  207. package/dist/components/sheet/index.js +3 -4
  208. package/dist/components/sheet/sheet.d.ts +2 -2
  209. package/dist/components/sidebar/index.js +7 -8
  210. package/dist/components/sidebar/sidebar.d.ts +0 -2
  211. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  212. package/dist/components/signature-capture/index.js +1 -1
  213. package/dist/components/skeleton/index.js +1 -1
  214. package/dist/components/slider/index.js +1 -1
  215. package/dist/components/slot-grid/index.js +1 -1
  216. package/dist/components/sparkline/index.js +1 -1
  217. package/dist/components/spinner/index.js +1 -1
  218. package/dist/components/stat/index.js +1 -1
  219. package/dist/components/stepper-calendar/index.js +1 -1
  220. package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
  221. package/dist/components/stepper-progress/index.d.ts +1 -1
  222. package/dist/components/stepper-progress/index.js +1 -2
  223. package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
  224. package/dist/components/suggestion-chip/index.js +1 -1
  225. package/dist/components/switch/index.js +1 -1
  226. package/dist/components/tabs/index.d.ts +1 -1
  227. package/dist/components/tabs/index.js +1 -1
  228. package/dist/components/tag/index.js +1 -1
  229. package/dist/components/task-card/index.js +1 -1
  230. package/dist/components/task-tray/index.js +1 -1
  231. package/dist/components/task-tray/task-tray.d.ts +1 -1
  232. package/dist/components/text-area/index.js +1 -1
  233. package/dist/components/text-input/index.js +1 -1
  234. package/dist/components/theme-root/index.js +1 -1
  235. package/dist/components/theme-toggle/index.js +1 -1
  236. package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
  237. package/dist/components/time-picker/index.js +1 -1
  238. package/dist/components/time-picker/time-picker.d.ts +1 -1
  239. package/dist/components/timeline/index.js +1 -1
  240. package/dist/components/timeline/timeline.d.ts +1 -1
  241. package/dist/components/toast/index.js +1 -1
  242. package/dist/components/tooth-scheme/index.js +1 -1
  243. package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
  244. package/dist/components/transcript-panel/index.js +1 -1
  245. package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
  246. package/dist/components/typing-indicator/index.js +1 -1
  247. package/dist/components/visually-hidden/index.js +1 -1
  248. package/dist/components/warning-stack/index.js +1 -1
  249. package/dist/components/workflow/index.js +1 -1
  250. package/dist/components/workflow/workflow-editor.d.ts +1 -1
  251. package/dist/hooks/index.js +1 -1
  252. package/dist/index.js +392 -402
  253. package/dist/patterns/leo-assistant/index.js +1 -1
  254. package/dist/patterns/patient-shell/index.js +1 -1
  255. package/dist/safe-html/index.js +20 -3
  256. package/dist/tokens.css +2 -2
  257. package/package.json +12 -2
  258. package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
  259. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
  260. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
  261. package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
  262. package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
  263. package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
  264. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
  265. package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
  266. package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
  267. package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
  268. package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
  269. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
  270. package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
  271. package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
  272. package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
  273. package/dist/_chunks/popover-kFN8s84V.js +0 -229
  274. package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
  275. package/dist/_chunks/progress-wNsqkw8I.js +0 -253
  276. package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
  277. package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
  278. package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
  279. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
  280. package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
  281. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
@@ -1,23 +1,80 @@
1
1
  import { jsx as a, jsxs as C } from "react/jsx-runtime";
2
- import { forwardRef as ee, useMemo as N, useState as Z, useEffect as q, useRef as $, useCallback as Q, useImperativeHandle as Se } from "react";
2
+ import { forwardRef as ee, useMemo as N, useState as Z, useEffect as q, useRef as z, useCallback as Q, useImperativeHandle as Te } from "react";
3
3
  import { c as M } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Te } from "react-i18next";
4
+ import { useTranslation as Ae } from "react-i18next";
5
5
  import { s as De } from "./stepper-C-sIpRRU.js";
6
- import { S as Ae } from "./stepper-progress-Bmen-YXB.js";
7
- import { B as U } from "./button-7mLWcMp_.js";
8
- import { I as se } from "./icon-button-Wnnde5lc.js";
9
- import { p as _, S as oe } from "./slot-grid-D_l5VsHG.js";
10
- import { S as ie } from "./skeleton-dtqyF09N.js";
11
- import { E as pe } from "./empty-state-DQPtRp2b.js";
12
- import { a as Le } from "./calendar-nGEgelJs.js";
13
- import { a as X, s as de, b as K, c as V, f as Y, i as le } from "./isSameMonth-5wNF2f4I.js";
14
- import { C as Ie } from "./chevron-left-CX1jqD2M.js";
15
- import { C as Re } from "./chevron-right-BrpYejk0.js";
16
- import { i as ze } from "./isSameDay-ecuM8PBB.js";
17
- function ce(e, d, v) {
6
+ import { S as Le } from "./stepper-progress-jFY8BSf7.js";
7
+ import { u as Re } from "./registry-C9nwlNyL.js";
8
+ import { B as U } from "./button-DD_0Xdmr.js";
9
+ import { I as se } from "./icon-button-C4CGcYuz.js";
10
+ import { p as $, S as oe } from "./slot-grid-CgpYgBkW.js";
11
+ import { S as ie } from "./skeleton-CZbwyJAA.js";
12
+ import { E as pe } from "./empty-state-3CLJIXSj.js";
13
+ import { a as Ie } from "./calendar-zy0tUUVG.js";
14
+ import { a as X, s as de, b as V, c as _, f as Y, i as le } from "./isSameMonth-5wNF2f4I.js";
15
+ import { C as ze } from "./chevron-left-CX1jqD2M.js";
16
+ import { C as je } from "./chevron-right-BrpYejk0.js";
17
+ import { i as Be } from "./isSameDay-ecuM8PBB.js";
18
+ function ce(e, l, v) {
18
19
  return X(e, -1, v);
19
20
  }
20
- const je = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, R = 4, Be = M(
21
+ const Ee = {
22
+ id: "stepper-calendar",
23
+ capabilities: ["navigate", "view_change"],
24
+ state: {
25
+ currentStep: {
26
+ type: "number",
27
+ descriptionKey: "ui.agent.stepperCalendar.state.currentStep",
28
+ description: "Zero-indexed active step (0 = service, 1 = date, 2 = time, 3 = details).",
29
+ read: (e) => e.getCurrentStep()
30
+ },
31
+ totalSteps: {
32
+ type: "number",
33
+ descriptionKey: "ui.agent.stepperCalendar.state.totalSteps",
34
+ description: "Total number of steps in the booking flow (always 4).",
35
+ read: (e) => e.getTotalSteps()
36
+ }
37
+ },
38
+ actions: {
39
+ goto_step: {
40
+ safety: "read",
41
+ argsType: "{ step: number }",
42
+ descriptionKey: "ui.agent.stepperCalendar.actions.gotoStep",
43
+ description: "Jump to the given step. Steps beyond the first-incomplete are gated internally.",
44
+ invoke: (e, l) => {
45
+ e.gotoStep(l.step);
46
+ }
47
+ },
48
+ next: {
49
+ safety: "read",
50
+ descriptionKey: "ui.agent.stepperCalendar.actions.next",
51
+ description: "Advance to the next step when the current step has a valid value.",
52
+ invoke: (e) => {
53
+ e.next();
54
+ }
55
+ },
56
+ previous: {
57
+ safety: "read",
58
+ descriptionKey: "ui.agent.stepperCalendar.actions.previous",
59
+ description: "Return to the previous step.",
60
+ invoke: (e) => {
61
+ e.previous();
62
+ }
63
+ }
64
+ },
65
+ domHooks: {
66
+ root: {
67
+ attr: "data-component",
68
+ value: "stepper-calendar",
69
+ description: "Marks the StepperCalendar root region."
70
+ },
71
+ instanceId: {
72
+ attr: "data-component-id",
73
+ sourceProp: "id",
74
+ description: "Sourced from the id prop."
75
+ }
76
+ }
77
+ }, Fe = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, I = 4, Ke = M(
21
78
  "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-md)] ds:text-[var(--foreground)]",
22
79
  {
23
80
  variants: {
@@ -35,7 +92,7 @@ const je = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, R = 4, Be = M(
35
92
  density: "comfortable"
36
93
  }
37
94
  }
38
- ), Ee = M(
95
+ ), Ve = M(
39
96
  [
40
97
  "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
41
98
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:bg-[var(--card)]",
@@ -51,7 +108,7 @@ const je = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, R = 4, Be = M(
51
108
  },
52
109
  defaultVariants: { density: "comfortable" }
53
110
  }
54
- ), Fe = M(
111
+ ), _e = M(
55
112
  [
56
113
  "ds:group/service ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)] ds:text-start",
57
114
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:bg-[var(--background)]",
@@ -66,11 +123,11 @@ const je = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, R = 4, Be = M(
66
123
  "ds:aria-checked:border-[var(--primary)] ds:aria-checked:bg-[var(--primary)]/5",
67
124
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
68
125
  ].join(" ")
69
- ), Ke = M(
126
+ ), $e = M(
70
127
  "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
71
128
  ), J = M(
72
129
  "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-xs)]"
73
- ), Ve = M(
130
+ ), Ge = M(
74
131
  [
75
132
  "ds:inline-flex ds:items-center ds:justify-center",
76
133
  // `min-target-size` (44/48px) governs the rendered size — it always
@@ -91,29 +148,29 @@ const je = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, R = 4, Be = M(
91
148
  "ds:aria-selected:border-[var(--primary)]",
92
149
  "ds:data-[outside=true]:text-[var(--muted-foreground)]"
93
150
  ].join(" ")
94
- ), _e = M(
151
+ ), He = M(
95
152
  "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:mt-[var(--spacing-md)]"
96
153
  );
97
154
  function W(e) {
98
155
  return Y(e, "yyyy-MM-dd");
99
156
  }
100
- function $e(e) {
157
+ function Pe(e) {
101
158
  return e.serviceId ? e.date ? e.time ? 3 : 2 : 1 : 0;
102
159
  }
103
160
  const me = ee(
104
- ({ services: e, selectedId: d, onSelect: v, durationLabel: i, groupLabel: b }, u) => {
105
- const k = $([]), S = (() => {
106
- const r = e.findIndex((s) => s.id === d);
161
+ ({ services: e, selectedId: l, onSelect: v, durationLabel: i, groupLabel: b }, u) => {
162
+ const k = z([]), S = (() => {
163
+ const r = e.findIndex((s) => s.id === l);
107
164
  return r >= 0 ? r : 0;
108
165
  })(), f = (r) => {
109
166
  const s = (r + e.length) % e.length, g = k.current[s];
110
167
  if (!g) return;
111
168
  g.focus();
112
- const l = e[s];
113
- l && v(l.id);
169
+ const d = e[s];
170
+ d && v(d.id);
114
171
  }, n = (r, s) => {
115
- const g = typeof document < "u" && document.documentElement.dir === "rtl", l = g ? "ArrowLeft" : "ArrowRight", w = g ? "ArrowRight" : "ArrowLeft";
116
- if (r.key === l || r.key === "ArrowDown") {
172
+ const g = typeof document < "u" && document.documentElement.dir === "rtl", d = g ? "ArrowLeft" : "ArrowRight", w = g ? "ArrowRight" : "ArrowLeft";
173
+ if (r.key === d || r.key === "ArrowDown") {
117
174
  r.preventDefault(), f(s + 1);
118
175
  return;
119
176
  }
@@ -135,7 +192,7 @@ const me = ee(
135
192
  "aria-label": b,
136
193
  className: "ds:grid ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2",
137
194
  children: e.map((r, s) => {
138
- const g = r.id === d;
195
+ const g = r.id === l;
139
196
  return /* @__PURE__ */ C(
140
197
  "button",
141
198
  {
@@ -148,7 +205,7 @@ const me = ee(
148
205
  tabIndex: s === S ? 0 : -1,
149
206
  onClick: () => v(r.id),
150
207
  onKeyDown: (w) => n(w, s),
151
- className: Fe(),
208
+ className: _e(),
152
209
  children: [
153
210
  /* @__PURE__ */ a("span", { className: "type-body-sm ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: r.label }),
154
211
  r.description ? /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r.description }) : null,
@@ -166,7 +223,7 @@ me.displayName = "StepperCalendar.ServiceGrid";
166
223
  const fe = ee(
167
224
  ({
168
225
  availableDates: e,
169
- selectedDate: d,
226
+ selectedDate: l,
170
227
  onSelectDate: v,
171
228
  loading: i,
172
229
  locale: b,
@@ -176,19 +233,19 @@ const fe = ee(
176
233
  emptyLabel: f
177
234
  }, n) => {
178
235
  const r = N(() => {
179
- if (d) return _(d);
236
+ if (l) return $(l);
180
237
  const t = [...e].sort()[0];
181
- return t ? _(t) : /* @__PURE__ */ new Date();
182
- }, [e, d]), [s, g] = Z(r), [l, w] = Z(
183
- d ? _(d) : r
184
- ), G = de(s), z = K(G, { weekStartsOn: u }), c = N(() => {
238
+ return t ? $(t) : /* @__PURE__ */ new Date();
239
+ }, [e, l]), [s, g] = Z(r), [d, w] = Z(
240
+ l ? $(l) : r
241
+ ), G = de(s), j = V(G, { weekStartsOn: u }), c = N(() => {
185
242
  const t = [];
186
243
  for (let p = 0; p < 42; p += 1)
187
- t.push(V(z, p));
244
+ t.push(_(j, p));
188
245
  return t;
189
- }, [z]), H = N(() => {
190
- const t = K(/* @__PURE__ */ new Date(), { weekStartsOn: u }), p = new Intl.DateTimeFormat(b, { weekday: "short" });
191
- return Array.from({ length: 7 }, (D, x) => p.format(V(t, x)));
246
+ }, [j]), H = N(() => {
247
+ const t = V(/* @__PURE__ */ new Date(), { weekStartsOn: u }), p = new Intl.DateTimeFormat(b, { weekday: "short" });
248
+ return Array.from({ length: 7 }, (A, x) => p.format(_(t, x)));
192
249
  }, [b, u]), T = N(() => {
193
250
  try {
194
251
  return new Intl.DateTimeFormat(b, {
@@ -198,7 +255,7 @@ const fe = ee(
198
255
  } catch {
199
256
  return Y(s, "MMMM yyyy");
200
257
  }
201
- }, [b, s]), j = Q(
258
+ }, [b, s]), B = Q(
202
259
  (t) => e.has(W(t)),
203
260
  [e]
204
261
  ), h = Q(
@@ -214,47 +271,54 @@ const fe = ee(
214
271
  ArrowDown: 7
215
272
  };
216
273
  if (t.key in p) {
217
- t.preventDefault(), h(V(l, p[t.key]));
274
+ t.preventDefault(), h(_(d, p[t.key]));
218
275
  return;
219
276
  }
220
277
  if (t.key === "Home") {
221
- t.preventDefault(), h(K(l, { weekStartsOn: u }));
278
+ t.preventDefault(), h(V(d, { weekStartsOn: u }));
222
279
  return;
223
280
  }
224
281
  if (t.key === "End") {
225
- t.preventDefault(), h(V(K(l, { weekStartsOn: u }), 6));
282
+ t.preventDefault(), h(_(V(d, { weekStartsOn: u }), 6));
226
283
  return;
227
284
  }
228
285
  if (t.key === "PageUp") {
229
- t.preventDefault(), h(ce(l));
286
+ t.preventDefault(), h(ce(d));
230
287
  return;
231
288
  }
232
289
  if (t.key === "PageDown") {
233
- t.preventDefault(), h(X(l, 1));
290
+ t.preventDefault(), h(X(d, 1));
234
291
  return;
235
292
  }
236
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), j(l) && v(W(l)));
237
- }, y = $(null);
293
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), B(d) && v(W(d)));
294
+ }, y = z(null);
238
295
  return q(() => {
239
296
  var t;
240
297
  (t = y.current) == null || t.focus();
241
- }, [l.getTime()]), i ? /* @__PURE__ */ C("div", { ref: n, className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
242
- /* @__PURE__ */ a(ie, { variant: "text", size: "md", width: "40%" }),
243
- /* @__PURE__ */ a("div", { className: J(), children: Array.from({ length: 42 }, (t, p) => /* @__PURE__ */ a(
244
- ie,
245
- {
246
- variant: "rounded",
247
- size: "md",
248
- height: "40px"
249
- },
250
- `day-skeleton-${p}`
251
- )) })
252
- ] }) : e.size === 0 ? /* @__PURE__ */ a("div", { ref: n, children: /* @__PURE__ */ a(pe, { variant: "no-results", title: f }) }) : /* @__PURE__ */ C("div", { ref: n, className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
253
- /* @__PURE__ */ C("div", { className: Ke(), children: [
298
+ }, [d.getTime()]), i ? /* @__PURE__ */ C(
299
+ "div",
300
+ {
301
+ ref: n,
302
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
303
+ children: [
304
+ /* @__PURE__ */ a(ie, { variant: "text", size: "md", width: "40%" }),
305
+ /* @__PURE__ */ a("div", { className: J(), children: Array.from({ length: 42 }, (t, p) => /* @__PURE__ */ a(
306
+ ie,
307
+ {
308
+ variant: "rounded",
309
+ size: "md",
310
+ height: "40px"
311
+ },
312
+ `day-skeleton-${p}`
313
+ )) })
314
+ ]
315
+ }
316
+ ) : e.size === 0 ? /* @__PURE__ */ a("div", { ref: n, children: /* @__PURE__ */ a(pe, { variant: "no-results", title: f }) }) : /* @__PURE__ */ C("div", { ref: n, className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
317
+ /* @__PURE__ */ C("div", { className: $e(), children: [
254
318
  /* @__PURE__ */ a(
255
319
  se,
256
320
  {
257
- icon: /* @__PURE__ */ a(Ie, {}),
321
+ icon: /* @__PURE__ */ a(ze, {}),
258
322
  "aria-label": k,
259
323
  size: "sm",
260
324
  intent: "ghost",
@@ -273,7 +337,7 @@ const fe = ee(
273
337
  /* @__PURE__ */ a(
274
338
  se,
275
339
  {
276
- icon: /* @__PURE__ */ a(Re, {}),
340
+ icon: /* @__PURE__ */ a(je, {}),
277
341
  "aria-label": S,
278
342
  size: "sm",
279
343
  intent: "ghost",
@@ -300,30 +364,30 @@ const fe = ee(
300
364
  t
301
365
  )) }),
302
366
  Array.from({ length: 6 }, (t, p) => {
303
- const D = c.slice(p * 7, p * 7 + 7);
367
+ const A = c.slice(p * 7, p * 7 + 7);
304
368
  return /* @__PURE__ */ a(
305
369
  "div",
306
370
  {
307
371
  role: "row",
308
372
  className: J(),
309
- children: D.map((x) => {
310
- const A = W(x), P = !le(x, s), L = j(x), B = d === A, E = ze(x, l);
373
+ children: A.map((x) => {
374
+ const D = W(x), P = !le(x, s), L = B(x), E = l === D, F = Be(x, d);
311
375
  return /* @__PURE__ */ a(
312
376
  "button",
313
377
  {
314
- ref: E ? y : void 0,
378
+ ref: F ? y : void 0,
315
379
  type: "button",
316
380
  role: "gridcell",
317
- "aria-selected": B,
381
+ "aria-selected": E,
318
382
  "aria-disabled": !L || void 0,
319
383
  disabled: !L,
320
384
  "data-outside": P || void 0,
321
- tabIndex: E ? 0 : -1,
322
- onClick: () => L && v(A),
323
- className: Ve(),
385
+ tabIndex: F ? 0 : -1,
386
+ onClick: () => L && v(D),
387
+ className: Ge(),
324
388
  children: Y(x, "d")
325
389
  },
326
- A
390
+ D
327
391
  );
328
392
  })
329
393
  },
@@ -337,9 +401,9 @@ const fe = ee(
337
401
  }
338
402
  );
339
403
  fe.displayName = "StepperCalendar.MonthGrid";
340
- function Ge({
404
+ function Oe({
341
405
  date: e,
342
- slots: d,
406
+ slots: l,
343
407
  selectedTime: v,
344
408
  loading: i,
345
409
  emptyLabel: b,
@@ -347,17 +411,11 @@ function Ge({
347
411
  }) {
348
412
  if (!e) return null;
349
413
  if (i)
350
- return /* @__PURE__ */ a(
351
- oe,
352
- {
353
- days: [{ date: e, slots: [] }],
354
- state: "loading"
355
- }
356
- );
357
- if (d.length === 0)
414
+ return /* @__PURE__ */ a(oe, { days: [{ date: e, slots: [] }], state: "loading" });
415
+ if (l.length === 0)
358
416
  return /* @__PURE__ */ a(pe, { variant: "no-results", title: b });
359
- const k = d.map((f) => {
360
- const [n, r] = f.split(":"), s = _(e);
417
+ const k = l.map((f) => {
418
+ const [n, r] = f.split(":"), s = $(e);
361
419
  return s.setHours(Number(n), Number(r), 0, 0), {
362
420
  id: `${e}T${f}`,
363
421
  start: s,
@@ -370,16 +428,16 @@ function Ge({
370
428
  days: [{ date: e, slots: k }],
371
429
  selectedSlotId: v ? `${e}T${v}` : void 0,
372
430
  onSlotSelect: (f) => {
373
- const n = je.exec(f.id);
431
+ const n = Fe.exec(f.id);
374
432
  n && u(n[2]);
375
433
  }
376
434
  }
377
435
  );
378
436
  }
379
- const He = ee(
437
+ const Ue = ee(
380
438
  ({
381
439
  services: e,
382
- availableDates: d,
440
+ availableDates: l,
383
441
  availableSlots: v,
384
442
  value: i,
385
443
  onChange: b,
@@ -391,19 +449,19 @@ const He = ee(
391
449
  layout: r = "vertical",
392
450
  density: s = "comfortable",
393
451
  "aria-label": g,
394
- id: l,
452
+ id: d,
395
453
  className: w,
396
454
  ...G
397
- }, z) => {
455
+ }, j) => {
398
456
  var ae;
399
- const { t: c, i18n: H } = Te(), T = H.language ?? "en", j = N(
400
- () => Le(T),
457
+ const { t: c, i18n: H } = Ae(), T = H.language ?? "en", B = N(
458
+ () => Ie(T),
401
459
  [T]
402
- ), h = $e(i), [o, y] = Z(h);
460
+ ), h = Pe(i), [o, y] = Z(h);
403
461
  q(() => {
404
462
  o > h && y(h);
405
463
  }, [o, h]);
406
- const t = $(null), p = $(!0);
464
+ const t = z(null), p = z(!0);
407
465
  q(() => {
408
466
  var m;
409
467
  if (p.current) {
@@ -412,7 +470,7 @@ const He = ee(
412
470
  }
413
471
  (m = t.current) == null || m.focus();
414
472
  }, [o]);
415
- const D = N(
473
+ const A = N(
416
474
  () => [
417
475
  {
418
476
  label: c("navigation.stepperCalendar.steps.service"),
@@ -432,23 +490,23 @@ const He = ee(
432
490
  }
433
491
  ],
434
492
  [n, c]
435
- ), x = g ?? c("navigation.stepperCalendar.label"), A = c("navigation.stepperCalendar.actions.back"), P = c("navigation.stepperCalendar.actions.next"), L = c("navigation.stepperCalendar.actions.submit"), B = c("navigation.stepperCalendar.time.empty"), E = c("navigation.stepperCalendar.date.previousMonth"), ue = c("navigation.stepperCalendar.date.nextMonth"), ge = c("navigation.stepperCalendar.steps.service"), ve = Q(
493
+ ), x = g ?? c("navigation.stepperCalendar.label"), D = c("navigation.stepperCalendar.actions.back"), P = c("navigation.stepperCalendar.actions.next"), L = c("navigation.stepperCalendar.actions.submit"), E = c("navigation.stepperCalendar.time.empty"), F = c("navigation.stepperCalendar.date.previousMonth"), ue = c("navigation.stepperCalendar.date.nextMonth"), ge = c("navigation.stepperCalendar.steps.service"), ve = Q(
436
494
  (m) => c("navigation.stepperCalendar.service.duration", { minutes: m }),
437
495
  [c]
438
496
  ), O = o === 0 ? !!i.serviceId : o === 1 ? !!i.date : o === 2 ? !!i.time : !1, be = (m) => {
439
497
  b({ ...i, serviceId: m }), setTimeout(() => {
440
- y((F) => F === 0 ? 1 : F);
498
+ y((K) => K === 0 ? 1 : K);
441
499
  }, 120);
442
500
  }, he = (m) => {
443
501
  b({ ...i, date: m, time: void 0 });
444
502
  }, ye = (m) => {
445
503
  b({ ...i, time: m });
446
- }, xe = () => y((m) => Math.max(0, m - 1)), we = () => y((m) => Math.min(R - 1, m + 1)), ke = () => u == null ? void 0 : u(i), te = `stepper-calendar-step-${o}-heading`, Ce = N(
447
- () => new Set(d),
448
- [d]
504
+ }, xe = () => y((m) => Math.max(0, m - 1)), we = () => y((m) => Math.min(I - 1, m + 1)), ke = () => u == null ? void 0 : u(i), te = `stepper-calendar-step-${o}-heading`, Ce = N(
505
+ () => new Set(l),
506
+ [l]
449
507
  );
450
- let I = null;
451
- o === 0 ? I = /* @__PURE__ */ a(
508
+ let R = null;
509
+ o === 0 ? R = /* @__PURE__ */ a(
452
510
  me,
453
511
  {
454
512
  services: e,
@@ -457,7 +515,7 @@ const He = ee(
457
515
  durationLabel: ve,
458
516
  groupLabel: ge
459
517
  }
460
- ) : o === 1 ? I = /* @__PURE__ */ a(
518
+ ) : o === 1 ? R = /* @__PURE__ */ a(
461
519
  fe,
462
520
  {
463
521
  availableDates: Ce,
@@ -465,59 +523,60 @@ const He = ee(
465
523
  onSelectDate: he,
466
524
  loading: S,
467
525
  locale: T,
468
- weekStartsOn: j,
469
- prevLabel: E,
526
+ weekStartsOn: B,
527
+ prevLabel: F,
470
528
  nextLabel: ue,
471
- emptyLabel: B
529
+ emptyLabel: E
472
530
  }
473
- ) : o === 2 ? I = /* @__PURE__ */ a(
474
- Ge,
531
+ ) : o === 2 ? R = /* @__PURE__ */ a(
532
+ Oe,
475
533
  {
476
534
  date: i.date,
477
535
  slots: i.date ? v[i.date] ?? [] : [],
478
536
  selectedTime: i.time,
479
537
  loading: f,
480
- emptyLabel: B,
538
+ emptyLabel: E,
481
539
  onSelect: ye
482
540
  }
483
- ) : I = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: k });
484
- const Ne = o === R - 1, Me = De(
541
+ ) : R = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: k });
542
+ const Ne = o === I - 1, Me = De(
485
543
  o,
486
544
  o,
487
545
  n == null ? void 0 : n[o]
488
- ), re = N(
546
+ ), Se = N(
489
547
  () => ({
490
548
  getCurrentStep: () => o,
491
- getTotalSteps: () => R,
549
+ getTotalSteps: () => I,
492
550
  gotoStep: (m) => {
493
- const F = Math.max(0, Math.min(m, R - 1)), ne = Math.min(F, h);
551
+ const K = Math.max(0, Math.min(m, I - 1)), ne = Math.min(K, h);
494
552
  ne !== o && y(ne);
495
553
  },
496
554
  next: () => {
497
- o < R - 1 && O && y(o + 1);
555
+ o < I - 1 && O && y(o + 1);
498
556
  },
499
557
  previous: () => {
500
558
  o > 0 && y(o - 1);
501
559
  }
502
560
  }),
503
561
  [o, h, O]
504
- );
505
- return Se(z, () => re, [re]), /* @__PURE__ */ C(
562
+ ), re = z(null);
563
+ return Te(j, () => re.current, []), Re(Ee, Se, d), /* @__PURE__ */ C(
506
564
  "div",
507
565
  {
566
+ ref: re,
508
567
  role: "region",
509
568
  "aria-label": x,
510
- id: l,
569
+ id: d,
511
570
  "data-component": "stepper-calendar",
512
- "data-component-id": l,
513
- className: Be({ layout: r, density: s, className: w }),
571
+ "data-component-id": d,
572
+ className: Ke({ layout: r, density: s, className: w }),
514
573
  ...G,
515
574
  children: [
516
575
  /* @__PURE__ */ a(
517
- Ae,
576
+ Le,
518
577
  {
519
578
  activeStep: o,
520
- steps: D,
579
+ steps: A,
521
580
  "aria-label": x
522
581
  }
523
582
  ),
@@ -525,7 +584,7 @@ const He = ee(
525
584
  "section",
526
585
  {
527
586
  "aria-labelledby": te,
528
- className: Ee({ density: s }),
587
+ className: Ve({ density: s }),
529
588
  "data-step": o,
530
589
  "data-state": Me,
531
590
  children: [
@@ -536,11 +595,11 @@ const He = ee(
536
595
  id: te,
537
596
  tabIndex: -1,
538
597
  className: "type-body-sm ds:font-[var(--font-weight-semibold)] ds:focus:outline-none",
539
- children: (ae = D[o]) == null ? void 0 : ae.label
598
+ children: (ae = A[o]) == null ? void 0 : ae.label
540
599
  }
541
600
  ),
542
- I,
543
- /* @__PURE__ */ C("div", { className: _e(), children: [
601
+ R,
602
+ /* @__PURE__ */ C("div", { className: He(), children: [
544
603
  /* @__PURE__ */ a(
545
604
  U,
546
605
  {
@@ -549,7 +608,7 @@ const He = ee(
549
608
  size: "md",
550
609
  onClick: xe,
551
610
  disabled: o === 0,
552
- children: A
611
+ children: D
553
612
  }
554
613
  ),
555
614
  Ne ? /* @__PURE__ */ a(
@@ -581,66 +640,9 @@ const He = ee(
581
640
  );
582
641
  }
583
642
  );
584
- He.displayName = "StepperCalendar";
585
- const ot = {
586
- id: "stepper-calendar",
587
- capabilities: ["navigate", "view_change"],
588
- state: {
589
- currentStep: {
590
- type: "number",
591
- descriptionKey: "ui.agent.stepperCalendar.state.currentStep",
592
- description: "Zero-indexed active step (0 = service, 1 = date, 2 = time, 3 = details).",
593
- read: (e) => e.getCurrentStep()
594
- },
595
- totalSteps: {
596
- type: "number",
597
- descriptionKey: "ui.agent.stepperCalendar.state.totalSteps",
598
- description: "Total number of steps in the booking flow (always 4).",
599
- read: (e) => e.getTotalSteps()
600
- }
601
- },
602
- actions: {
603
- goto_step: {
604
- safety: "read",
605
- argsType: "{ step: number }",
606
- descriptionKey: "ui.agent.stepperCalendar.actions.gotoStep",
607
- description: "Jump to the given step. Steps beyond the first-incomplete are gated internally.",
608
- invoke: (e, d) => {
609
- e.gotoStep(d.step);
610
- }
611
- },
612
- next: {
613
- safety: "read",
614
- descriptionKey: "ui.agent.stepperCalendar.actions.next",
615
- description: "Advance to the next step when the current step has a valid value.",
616
- invoke: (e) => {
617
- e.next();
618
- }
619
- },
620
- previous: {
621
- safety: "read",
622
- descriptionKey: "ui.agent.stepperCalendar.actions.previous",
623
- description: "Return to the previous step.",
624
- invoke: (e) => {
625
- e.previous();
626
- }
627
- }
628
- },
629
- domHooks: {
630
- root: {
631
- attr: "data-component",
632
- value: "stepper-calendar",
633
- description: "Marks the StepperCalendar root region."
634
- },
635
- instanceId: {
636
- attr: "data-component-id",
637
- sourceProp: "id",
638
- description: "Sourced from the id prop."
639
- }
640
- }
641
- };
643
+ Ue.displayName = "StepperCalendar";
642
644
  export {
643
- He as S,
644
- ot as s
645
+ Ue as S,
646
+ Ee as s
645
647
  };
646
- //# sourceMappingURL=stepper-calendar.agent-9iT3ClIB.js.map
648
+ //# sourceMappingURL=stepper-calendar-BLOJUE0-.js.map