@alfadocs/ui-kit 0.1.8 → 0.1.9

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 (385) hide show
  1. package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
  2. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
  3. package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
  4. package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
  5. package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
  6. package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
  7. package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
  8. package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
  9. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
  10. package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
  11. package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
  12. package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
  13. package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
  14. package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
  15. package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
  16. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
  17. package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
  18. package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
  19. package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
  20. package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
  21. package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
  22. package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
  23. package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
  24. package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
  25. package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
  26. package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
  27. package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
  28. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
  29. package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
  30. package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
  31. package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
  32. package/dist/_chunks/link-QheANk74.js +121 -0
  33. package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
  34. package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
  35. package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
  36. package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
  37. package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
  38. package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
  39. package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
  40. package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
  41. package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
  42. package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
  43. package/dist/_chunks/otp-input-EglXOUue.js +257 -0
  44. package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
  45. package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
  46. package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
  47. package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
  48. package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
  49. package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
  50. package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
  51. package/dist/_chunks/popover-kFN8s84V.js +229 -0
  52. package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
  53. package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
  54. package/dist/_chunks/progress-wNsqkw8I.js +253 -0
  55. package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
  56. package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
  57. package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
  58. package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
  59. package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
  60. package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
  61. package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
  62. package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
  63. package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
  64. package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
  65. package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
  66. package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
  67. package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
  68. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
  69. package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
  70. package/dist/_chunks/slider-CcsQTZTA.js +322 -0
  71. package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
  72. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
  73. package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
  74. package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
  75. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
  76. package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
  77. package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
  78. package/dist/_chunks/switch-BYEH8I53.js +196 -0
  79. package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
  80. package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
  81. package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
  82. package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
  83. package/dist/_chunks/text-area-C_M8wliK.js +239 -0
  84. package/dist/_chunks/text-input-BX39e6T6.js +272 -0
  85. package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
  86. package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
  87. package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
  88. package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
  89. package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
  90. package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
  91. package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
  92. package/dist/agent-catalog.json +2929 -268
  93. package/dist/components/accordion/accordion.agent.d.ts +2 -1
  94. package/dist/components/accordion/accordion.d.ts +6 -0
  95. package/dist/components/accordion/index.js +2 -2
  96. package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
  97. package/dist/components/agenda-card/index.d.ts +1 -0
  98. package/dist/components/agenda-card/index.js +3 -1
  99. package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
  100. package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
  101. package/dist/components/agenda-tray/index.d.ts +2 -1
  102. package/dist/components/agenda-tray/index.js +3 -2
  103. package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
  104. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
  105. package/dist/components/ai-prompt-input/index.d.ts +2 -1
  106. package/dist/components/ai-prompt-input/index.js +3 -2
  107. package/dist/components/aspect-ratio/index.js +1 -1
  108. package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
  109. package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
  110. package/dist/components/audio-recorder/index.d.ts +2 -1
  111. package/dist/components/audio-recorder/index.js +3 -2
  112. package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
  113. package/dist/components/autocomplete/autocomplete.d.ts +10 -0
  114. package/dist/components/autocomplete/index.js +1 -1
  115. package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
  116. package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
  117. package/dist/components/breadcrumb/index.d.ts +2 -1
  118. package/dist/components/breadcrumb/index.js +5 -4
  119. package/dist/components/button/button.d.ts +1 -1
  120. package/dist/components/chart/chart.d.ts +2 -0
  121. package/dist/components/chart/index.js +1 -1
  122. package/dist/components/chat-container/chat-container.d.ts +3 -1
  123. package/dist/components/chat-container/index.js +2 -2
  124. package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
  125. package/dist/components/chat-input/chat-input.d.ts +10 -1
  126. package/dist/components/chat-input/index.d.ts +2 -1
  127. package/dist/components/chat-input/index.js +4 -2
  128. package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
  129. package/dist/components/checkbox/checkbox.d.ts +6 -0
  130. package/dist/components/checkbox/index.js +1 -1
  131. package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
  132. package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
  133. package/dist/components/checkbox-group/index.js +1 -1
  134. package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
  135. package/dist/components/collapsible/collapsible.d.ts +8 -1
  136. package/dist/components/collapsible/index.d.ts +2 -1
  137. package/dist/components/collapsible/index.js +4 -3
  138. package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
  139. package/dist/components/color-picker/color-picker.d.ts +5 -0
  140. package/dist/components/color-picker/index.js +1 -1
  141. package/dist/components/combobox/combobox.agent.d.ts +2 -1
  142. package/dist/components/combobox/combobox.d.ts +10 -0
  143. package/dist/components/combobox/index.js +1 -1
  144. package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
  145. package/dist/components/command-palette/command-palette.d.ts +7 -0
  146. package/dist/components/command-palette/index.js +1 -1
  147. package/dist/components/data-table/index.js +1 -1
  148. package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
  149. package/dist/components/date-picker/date-picker.d.ts +16 -1
  150. package/dist/components/date-picker/index.d.ts +2 -1
  151. package/dist/components/date-picker/index.js +3 -2
  152. package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
  153. package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
  154. package/dist/components/date-range-picker/index.d.ts +2 -1
  155. package/dist/components/date-range-picker/index.js +3 -2
  156. package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
  157. package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
  158. package/dist/components/date-time-picker/index.d.ts +2 -1
  159. package/dist/components/date-time-picker/index.js +3 -2
  160. package/dist/components/dialog/dialog.agent.d.ts +5 -6
  161. package/dist/components/dialog/dialog.d.ts +11 -2
  162. package/dist/components/dialog/index.js +1 -1
  163. package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
  164. package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
  165. package/dist/components/dropdown-menu/index.js +2 -2
  166. package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
  167. package/dist/components/file-upload/file-upload.d.ts +12 -0
  168. package/dist/components/file-upload/index.js +1 -1
  169. package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
  170. package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
  171. package/dist/components/freemium-paywall/index.d.ts +2 -1
  172. package/dist/components/freemium-paywall/index.js +3 -2
  173. package/dist/components/index.d.ts +2 -0
  174. package/dist/components/link/index.d.ts +2 -0
  175. package/dist/components/link/index.js +5 -0
  176. package/dist/components/link/link.d.ts +39 -0
  177. package/dist/components/list/index.d.ts +2 -1
  178. package/dist/components/list/index.js +3 -2
  179. package/dist/components/list/list.agent.d.ts +4 -0
  180. package/dist/components/list/list.d.ts +8 -2
  181. package/dist/components/message-card/index.d.ts +1 -0
  182. package/dist/components/message-card/index.js +5 -3
  183. package/dist/components/message-card/message-card.agent.d.ts +3 -0
  184. package/dist/components/message-tray/index.d.ts +2 -1
  185. package/dist/components/message-tray/index.js +3 -2
  186. package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
  187. package/dist/components/message-tray/message-tray.d.ts +27 -2
  188. package/dist/components/multi-select/index.js +1 -1
  189. package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
  190. package/dist/components/multi-select/multi-select.d.ts +10 -0
  191. package/dist/components/navigation-menu/index.d.ts +2 -1
  192. package/dist/components/navigation-menu/index.js +7 -6
  193. package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
  194. package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
  195. package/dist/components/notification-card/index.d.ts +1 -0
  196. package/dist/components/notification-card/index.js +5 -3
  197. package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
  198. package/dist/components/notification-tray/index.d.ts +2 -1
  199. package/dist/components/notification-tray/index.js +3 -2
  200. package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
  201. package/dist/components/notification-tray/notification-tray.d.ts +27 -2
  202. package/dist/components/number-input/index.js +1 -1
  203. package/dist/components/number-input/number-input.agent.d.ts +4 -0
  204. package/dist/components/number-input/number-input.d.ts +7 -0
  205. package/dist/components/otp-input/index.js +1 -1
  206. package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
  207. package/dist/components/otp-input/otp-input.d.ts +10 -0
  208. package/dist/components/pagination/index.js +1 -1
  209. package/dist/components/pagination/pagination.agent.d.ts +2 -1
  210. package/dist/components/pagination/pagination.d.ts +7 -0
  211. package/dist/components/password-input/index.js +1 -1
  212. package/dist/components/password-input/password-input.agent.d.ts +4 -0
  213. package/dist/components/password-input/password-input.d.ts +9 -0
  214. package/dist/components/payment-form/index.js +2 -2
  215. package/dist/components/payment-form/payment-form.d.ts +2 -0
  216. package/dist/components/pdf-viewer/index.js +1 -1
  217. package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
  218. package/dist/components/phone-input/index.js +1 -1
  219. package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
  220. package/dist/components/phone-input/phone-input.d.ts +7 -0
  221. package/dist/components/popover/index.js +2 -2
  222. package/dist/components/popover/popover.agent.d.ts +2 -1
  223. package/dist/components/popover/popover.d.ts +8 -1
  224. package/dist/components/privacy-lock/index.d.ts +2 -1
  225. package/dist/components/privacy-lock/index.js +3 -2
  226. package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
  227. package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
  228. package/dist/components/progress/index.js +2 -2
  229. package/dist/components/radio/index.js +1 -1
  230. package/dist/components/radio-group/index.js +2 -2
  231. package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
  232. package/dist/components/radio-group/radio-group.d.ts +5 -0
  233. package/dist/components/recaptcha-widget/index.d.ts +3 -0
  234. package/dist/components/recaptcha-widget/index.js +6 -0
  235. package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
  236. package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
  237. package/dist/components/resizable/index.js +1 -1
  238. package/dist/components/resizable/resizable.agent.d.ts +2 -1
  239. package/dist/components/resizable/resizable.d.ts +6 -0
  240. package/dist/components/rich-text-editor/index.js +1 -1
  241. package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
  242. package/dist/components/search-bar/index.d.ts +2 -1
  243. package/dist/components/search-bar/index.js +3 -2
  244. package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
  245. package/dist/components/search-bar/search-bar.d.ts +27 -1
  246. package/dist/components/search-input/index.d.ts +2 -1
  247. package/dist/components/search-input/index.js +4 -2
  248. package/dist/components/search-input/search-input.agent.d.ts +4 -0
  249. package/dist/components/search-input/search-input.d.ts +27 -0
  250. package/dist/components/select/index.js +1 -1
  251. package/dist/components/select/select.agent.d.ts +4 -0
  252. package/dist/components/select/select.d.ts +9 -0
  253. package/dist/components/sheet/index.js +2 -2
  254. package/dist/components/sheet/sheet.agent.d.ts +2 -1
  255. package/dist/components/sheet/sheet.d.ts +11 -2
  256. package/dist/components/sidebar/index.js +2 -2
  257. package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
  258. package/dist/components/sidebar/sidebar.d.ts +6 -0
  259. package/dist/components/signature-capture/index.js +1 -1
  260. package/dist/components/signature-capture/signature-capture.d.ts +2 -0
  261. package/dist/components/slider/index.js +1 -1
  262. package/dist/components/slider/slider.agent.d.ts +4 -0
  263. package/dist/components/slider/slider.d.ts +5 -0
  264. package/dist/components/sparkline/index.js +1 -1
  265. package/dist/components/stepper-accordion/index.d.ts +2 -1
  266. package/dist/components/stepper-accordion/index.js +3 -2
  267. package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
  268. package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
  269. package/dist/components/stepper-calendar/index.d.ts +2 -1
  270. package/dist/components/stepper-calendar/index.js +3 -2
  271. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
  272. package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
  273. package/dist/components/stepper-progress/index.d.ts +2 -1
  274. package/dist/components/stepper-progress/index.js +4 -2
  275. package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
  276. package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
  277. package/dist/components/suggestion-chip/index.d.ts +2 -1
  278. package/dist/components/suggestion-chip/index.js +5 -3
  279. package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
  280. package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
  281. package/dist/components/switch/index.js +1 -1
  282. package/dist/components/switch/switch.agent.d.ts +4 -0
  283. package/dist/components/switch/switch.d.ts +6 -0
  284. package/dist/components/tabs/index.js +1 -1
  285. package/dist/components/tabs/tabs.agent.d.ts +2 -1
  286. package/dist/components/tabs/tabs.d.ts +4 -0
  287. package/dist/components/task-card/index.d.ts +1 -0
  288. package/dist/components/task-card/index.js +5 -3
  289. package/dist/components/task-card/task-card.agent.d.ts +3 -0
  290. package/dist/components/task-tray/index.d.ts +2 -1
  291. package/dist/components/task-tray/index.js +3 -2
  292. package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
  293. package/dist/components/task-tray/task-tray.d.ts +25 -2
  294. package/dist/components/text-area/index.js +1 -1
  295. package/dist/components/text-area/text-area.agent.d.ts +4 -0
  296. package/dist/components/text-area/text-area.d.ts +7 -0
  297. package/dist/components/text-input/index.js +1 -1
  298. package/dist/components/text-input/text-input.agent.d.ts +4 -0
  299. package/dist/components/text-input/text-input.d.ts +10 -0
  300. package/dist/components/theme-toggle/index.d.ts +2 -1
  301. package/dist/components/theme-toggle/index.js +3 -2
  302. package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
  303. package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
  304. package/dist/components/time-picker/index.d.ts +2 -1
  305. package/dist/components/time-picker/index.js +3 -2
  306. package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
  307. package/dist/components/time-picker/time-picker.d.ts +16 -1
  308. package/dist/components/timeline/index.d.ts +2 -1
  309. package/dist/components/timeline/index.js +3 -2
  310. package/dist/components/timeline/timeline.agent.d.ts +4 -0
  311. package/dist/components/timeline/timeline.d.ts +8 -1
  312. package/dist/components/toast/index.d.ts +3 -2
  313. package/dist/components/toast/index.js +7 -5
  314. package/dist/components/toast/toast.agent.d.ts +4 -0
  315. package/dist/components/toast/toast.d.ts +8 -0
  316. package/dist/components/tooth-scheme/index.js +1 -1
  317. package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
  318. package/dist/components/transcript-panel/index.d.ts +2 -1
  319. package/dist/components/transcript-panel/index.js +3 -2
  320. package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
  321. package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
  322. package/dist/components/workflow/index.d.ts +2 -1
  323. package/dist/components/workflow/index.js +10 -7
  324. package/dist/components/workflow/workflow-editor.d.ts +7 -1
  325. package/dist/components/workflow/workflow-map.d.ts +2 -0
  326. package/dist/components/workflow/workflow.agent.d.ts +6 -0
  327. package/dist/i18n/config.js +24 -11
  328. package/dist/i18n/resources.d.ts +7 -0
  329. package/dist/index.js +471 -423
  330. package/dist/locales/en.json +7 -0
  331. package/dist/patterns/leo-assistant/index.js +1 -1
  332. package/dist/patterns/patient-shell/index.js +1 -1
  333. package/dist/tokens.css +1 -1
  334. package/package.json +18 -2
  335. package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
  336. package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
  337. package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
  338. package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
  339. package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
  340. package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
  341. package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
  342. package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
  343. package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
  344. package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
  345. package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
  346. package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
  347. package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
  348. package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
  349. package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
  350. package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
  351. package/dist/_chunks/list-B1ozIjQe.js +0 -359
  352. package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
  353. package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
  354. package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
  355. package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
  356. package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
  357. package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
  358. package/dist/_chunks/password-input-DJDVznWH.js +0 -193
  359. package/dist/_chunks/phone-input-DE_39q65.js +0 -428
  360. package/dist/_chunks/popover-C3CTUsqh.js +0 -227
  361. package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
  362. package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
  363. package/dist/_chunks/progress-B4Of_pzz.js +0 -252
  364. package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
  365. package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
  366. package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
  367. package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
  368. package/dist/_chunks/search-input-BVMCONyN.js +0 -197
  369. package/dist/_chunks/select-IY_JQa-F.js +0 -321
  370. package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
  371. package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
  372. package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
  373. package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
  374. package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
  375. package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
  376. package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
  377. package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
  378. package/dist/_chunks/switch-aN2EYxHh.js +0 -138
  379. package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
  380. package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
  381. package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
  382. package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
  383. package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
  384. package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
  385. package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
@@ -1,570 +0,0 @@
1
- import { jsx as a, jsxs as w } from "react/jsx-runtime";
2
- import { forwardRef as X, useMemo as C, useState as U, useEffect as W, useRef as V, useCallback as q } from "react";
3
- import { c as N } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ce } from "react-i18next";
5
- import { s as Ne } from "./stepper-C-sIpRRU.js";
6
- import { S as De } from "./stepper-progress-rE7tn7WY.js";
7
- import { B as H } from "./button-7mLWcMp_.js";
8
- import { I as re } from "./icon-button-Wnnde5lc.js";
9
- import { p as F, S as ae } from "./slot-grid-D_l5VsHG.js";
10
- import { S as te } from "./skeleton-dtqyF09N.js";
11
- import { E as de } from "./empty-state-DQPtRp2b.js";
12
- import { a as Me } from "./calendar-nGEgelJs.js";
13
- import { a as J, s as ne, b as B, c as E, f as Q, i as se } from "./isSameMonth-5wNF2f4I.js";
14
- import { C as Le } from "./chevron-left-CX1jqD2M.js";
15
- import { C as Te } from "./chevron-right-BrpYejk0.js";
16
- import { i as Ae } from "./isSameDay-ecuM8PBB.js";
17
- function oe(t, m, b) {
18
- return J(t, -1, b);
19
- }
20
- const Ie = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})$/, ie = 4, Re = N(
21
- "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-md)] ds:text-[var(--foreground)]",
22
- {
23
- variants: {
24
- layout: {
25
- vertical: "ds:flex-col",
26
- horizontal: "ds:lg:flex-row ds:lg:items-start"
27
- },
28
- density: {
29
- comfortable: "ds:gap-[var(--spacing-md)]",
30
- compact: "ds:gap-[var(--spacing-sm)]"
31
- }
32
- },
33
- defaultVariants: {
34
- layout: "vertical",
35
- density: "comfortable"
36
- }
37
- }
38
- ), ze = N(
39
- [
40
- "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
41
- "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:bg-[var(--card)]",
42
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
43
- "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]"
44
- ].join(" "),
45
- {
46
- variants: {
47
- density: {
48
- comfortable: "ds:gap-[var(--spacing-md)]",
49
- compact: "ds:gap-[var(--spacing-sm)]"
50
- }
51
- },
52
- defaultVariants: { density: "comfortable" }
53
- }
54
- ), Se = N(
55
- [
56
- "ds:group/service ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)] ds:text-start",
57
- "ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:bg-[var(--background)]",
58
- "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
59
- "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
60
- "ds:min-h-[var(--min-target-size)]",
61
- "ds:transition-[background-color,border-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
62
- "ds:motion-reduce:transition-none",
63
- "ds:hover:enabled:bg-[var(--muted)]/40",
64
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
65
- "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
66
- "ds:aria-checked:border-[var(--primary)] ds:aria-checked:bg-[var(--primary)]/5",
67
- "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
68
- ].join(" ")
69
- ), je = N(
70
- "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
71
- ), K = N(
72
- "ds:grid ds:grid-cols-7 ds:gap-[var(--spacing-xs)]"
73
- ), Be = N(
74
- [
75
- "ds:inline-flex ds:items-center ds:justify-center",
76
- // `min-target-size` (44/48px) governs the rendered size — it always
77
- // exceeds the explicit floor below. Keeping the explicit floor for
78
- // grid layout stability when the cell content is empty (skeletons),
79
- // matching the precedent in `slot-grid`.
80
- "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
81
- "ds:h-10 ds:w-10 ds:rounded-[var(--radius-sm)]",
82
- "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-medium)]",
83
- "ds:border ds:border-transparent ds:bg-[var(--background)] ds:text-[var(--foreground)]",
84
- "ds:transition-[background-color,border-color,color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
85
- "ds:motion-reduce:transition-none",
86
- "ds:hover:enabled:bg-[var(--muted)]/40",
87
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
88
- "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
89
- "ds:disabled:opacity-40 ds:disabled:cursor-not-allowed",
90
- "ds:aria-selected:bg-[var(--primary)] ds:aria-selected:text-[var(--primary-foreground)]",
91
- "ds:aria-selected:border-[var(--primary)]",
92
- "ds:data-[outside=true]:text-[var(--muted-foreground)]"
93
- ].join(" ")
94
- ), Ee = N(
95
- "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:mt-[var(--spacing-md)]"
96
- );
97
- function O(t) {
98
- return Q(t, "yyyy-MM-dd");
99
- }
100
- function Fe(t) {
101
- return t.serviceId ? t.date ? t.time ? 3 : 2 : 1 : 0;
102
- }
103
- const le = X(
104
- ({ services: t, selectedId: m, onSelect: b, durationLabel: i, groupLabel: v }, u) => {
105
- const x = V([]), D = (() => {
106
- const r = t.findIndex((s) => s.id === m);
107
- return r >= 0 ? r : 0;
108
- })(), f = (r) => {
109
- const s = (r + t.length) % t.length, g = x.current[s];
110
- if (!g) return;
111
- g.focus();
112
- const l = t[s];
113
- l && b(l.id);
114
- }, n = (r, s) => {
115
- const g = typeof document < "u" && document.documentElement.dir === "rtl", l = g ? "ArrowLeft" : "ArrowRight", h = g ? "ArrowRight" : "ArrowLeft";
116
- if (r.key === l || r.key === "ArrowDown") {
117
- r.preventDefault(), f(s + 1);
118
- return;
119
- }
120
- if (r.key === h || r.key === "ArrowUp") {
121
- r.preventDefault(), f(s - 1);
122
- return;
123
- }
124
- if (r.key === "Home") {
125
- r.preventDefault(), f(0);
126
- return;
127
- }
128
- r.key === "End" && (r.preventDefault(), f(t.length - 1));
129
- };
130
- return /* @__PURE__ */ a(
131
- "div",
132
- {
133
- ref: u,
134
- role: "radiogroup",
135
- "aria-label": v,
136
- className: "ds:grid ds:gap-[var(--spacing-sm)] ds:sm:grid-cols-2",
137
- children: t.map((r, s) => {
138
- const g = r.id === m;
139
- return /* @__PURE__ */ w(
140
- "button",
141
- {
142
- ref: (h) => {
143
- x.current[s] = h;
144
- },
145
- type: "button",
146
- role: "radio",
147
- "aria-checked": g,
148
- tabIndex: s === D ? 0 : -1,
149
- onClick: () => b(r.id),
150
- onKeyDown: (h) => n(h, s),
151
- className: Se(),
152
- children: [
153
- /* @__PURE__ */ a("span", { className: "type-body-sm ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]", children: r.label }),
154
- r.description ? /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: r.description }) : null,
155
- /* @__PURE__ */ a("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: i(r.durationMin) })
156
- ]
157
- },
158
- r.id
159
- );
160
- })
161
- }
162
- );
163
- }
164
- );
165
- le.displayName = "StepperCalendar.ServiceGrid";
166
- const ce = X(
167
- ({
168
- availableDates: t,
169
- selectedDate: m,
170
- onSelectDate: b,
171
- loading: i,
172
- locale: v,
173
- weekStartsOn: u,
174
- prevLabel: x,
175
- nextLabel: D,
176
- emptyLabel: f
177
- }, n) => {
178
- const r = C(() => {
179
- if (m) return F(m);
180
- const e = [...t].sort()[0];
181
- return e ? F(e) : /* @__PURE__ */ new Date();
182
- }, [t, m]), [s, g] = U(r), [l, h] = U(
183
- m ? F(m) : r
184
- ), $ = ne(s), d = B($, { weekStartsOn: u }), G = C(() => {
185
- const e = [];
186
- for (let c = 0; c < 42; c += 1)
187
- e.push(E(d, c));
188
- return e;
189
- }, [d]), T = C(() => {
190
- const e = B(/* @__PURE__ */ new Date(), { weekStartsOn: u }), c = new Intl.DateTimeFormat(v, { weekday: "short" });
191
- return Array.from({ length: 7 }, (I, y) => c.format(E(e, y)));
192
- }, [v, u]), S = C(() => {
193
- try {
194
- return new Intl.DateTimeFormat(v, {
195
- month: "long",
196
- year: "numeric"
197
- }).format(s);
198
- } catch {
199
- return Q(s, "MMMM yyyy");
200
- }
201
- }, [v, s]), k = q(
202
- (e) => t.has(O(e)),
203
- [t]
204
- ), o = q(
205
- (e) => {
206
- h(e), se(e, s) || g(ne(e));
207
- },
208
- [s]
209
- ), M = (e) => {
210
- const c = {
211
- ArrowLeft: -1,
212
- ArrowRight: 1,
213
- ArrowUp: -7,
214
- ArrowDown: 7
215
- };
216
- if (e.key in c) {
217
- e.preventDefault(), o(E(l, c[e.key]));
218
- return;
219
- }
220
- if (e.key === "Home") {
221
- e.preventDefault(), o(B(l, { weekStartsOn: u }));
222
- return;
223
- }
224
- if (e.key === "End") {
225
- e.preventDefault(), o(E(B(l, { weekStartsOn: u }), 6));
226
- return;
227
- }
228
- if (e.key === "PageUp") {
229
- e.preventDefault(), o(oe(l));
230
- return;
231
- }
232
- if (e.key === "PageDown") {
233
- e.preventDefault(), o(J(l, 1));
234
- return;
235
- }
236
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(l) && b(O(l)));
237
- }, A = V(null);
238
- return W(() => {
239
- var e;
240
- (e = A.current) == null || e.focus();
241
- }, [l.getTime()]), i ? /* @__PURE__ */ w("div", { ref: n, className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
242
- /* @__PURE__ */ a(te, { variant: "text", size: "md", width: "40%" }),
243
- /* @__PURE__ */ a("div", { className: K(), children: Array.from({ length: 42 }, (e, c) => /* @__PURE__ */ a(
244
- te,
245
- {
246
- variant: "rounded",
247
- size: "md",
248
- height: "40px"
249
- },
250
- `day-skeleton-${c}`
251
- )) })
252
- ] }) : t.size === 0 ? /* @__PURE__ */ a("div", { ref: n, children: /* @__PURE__ */ a(de, { variant: "no-results", title: f }) }) : /* @__PURE__ */ w("div", { ref: n, className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
253
- /* @__PURE__ */ w("div", { className: je(), children: [
254
- /* @__PURE__ */ a(
255
- re,
256
- {
257
- icon: /* @__PURE__ */ a(Le, {}),
258
- "aria-label": x,
259
- size: "sm",
260
- intent: "ghost",
261
- flipIconInRtl: !0,
262
- onClick: () => g(oe(s))
263
- }
264
- ),
265
- /* @__PURE__ */ a(
266
- "span",
267
- {
268
- className: "type-body-sm ds:font-[var(--font-weight-semibold)]",
269
- "aria-live": "polite",
270
- children: S
271
- }
272
- ),
273
- /* @__PURE__ */ a(
274
- re,
275
- {
276
- icon: /* @__PURE__ */ a(Te, {}),
277
- "aria-label": D,
278
- size: "sm",
279
- intent: "ghost",
280
- flipIconInRtl: !0,
281
- onClick: () => g(J(s, 1))
282
- }
283
- )
284
- ] }),
285
- /* @__PURE__ */ w(
286
- "div",
287
- {
288
- role: "grid",
289
- "aria-label": S,
290
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
291
- onKeyDown: M,
292
- children: [
293
- /* @__PURE__ */ a("div", { className: K(), role: "row", children: T.map((e) => /* @__PURE__ */ a(
294
- "span",
295
- {
296
- role: "columnheader",
297
- className: "type-meta ds:text-center ds:text-[var(--muted-foreground)]",
298
- children: e
299
- },
300
- e
301
- )) }),
302
- Array.from({ length: 6 }, (e, c) => {
303
- const I = G.slice(c * 7, c * 7 + 7);
304
- return /* @__PURE__ */ a(
305
- "div",
306
- {
307
- role: "row",
308
- className: K(),
309
- children: I.map((y) => {
310
- const R = O(y), _ = !se(y, s), L = k(y), P = m === R, j = Ae(y, l);
311
- return /* @__PURE__ */ a(
312
- "button",
313
- {
314
- ref: j ? A : void 0,
315
- type: "button",
316
- role: "gridcell",
317
- "aria-selected": P,
318
- "aria-disabled": !L || void 0,
319
- disabled: !L,
320
- "data-outside": _ || void 0,
321
- tabIndex: j ? 0 : -1,
322
- onClick: () => L && b(R),
323
- className: Be(),
324
- children: Q(y, "d")
325
- },
326
- R
327
- );
328
- })
329
- },
330
- `week-${c}`
331
- );
332
- })
333
- ]
334
- }
335
- )
336
- ] });
337
- }
338
- );
339
- ce.displayName = "StepperCalendar.MonthGrid";
340
- function Ve({
341
- date: t,
342
- slots: m,
343
- selectedTime: b,
344
- loading: i,
345
- emptyLabel: v,
346
- onSelect: u
347
- }) {
348
- if (!t) return null;
349
- if (i)
350
- return /* @__PURE__ */ a(
351
- ae,
352
- {
353
- days: [{ date: t, slots: [] }],
354
- state: "loading"
355
- }
356
- );
357
- if (m.length === 0)
358
- return /* @__PURE__ */ a(de, { variant: "no-results", title: v });
359
- const x = m.map((f) => {
360
- const [n, r] = f.split(":"), s = F(t);
361
- return s.setHours(Number(n), Number(r), 0, 0), {
362
- id: `${t}T${f}`,
363
- start: s,
364
- label: f
365
- };
366
- });
367
- return /* @__PURE__ */ a(
368
- ae,
369
- {
370
- days: [{ date: t, slots: x }],
371
- selectedSlotId: b ? `${t}T${b}` : void 0,
372
- onSlotSelect: (f) => {
373
- const n = Ie.exec(f.id);
374
- n && u(n[2]);
375
- }
376
- }
377
- );
378
- }
379
- const $e = X(
380
- ({
381
- services: t,
382
- availableDates: m,
383
- availableSlots: b,
384
- value: i,
385
- onChange: v,
386
- onSubmit: u,
387
- detailsFields: x,
388
- loadingDates: D = !1,
389
- loadingSlots: f = !1,
390
- stepStatuses: n,
391
- layout: r = "vertical",
392
- density: s = "comfortable",
393
- "aria-label": g,
394
- className: l,
395
- ...h
396
- }, $) => {
397
- var Z;
398
- const { t: d, i18n: G } = Ce(), T = G.language ?? "en", S = C(
399
- () => Me(T),
400
- [T]
401
- ), k = Fe(i), [o, M] = U(k);
402
- W(() => {
403
- o > k && M(k);
404
- }, [o, k]);
405
- const A = V(null), e = V(!0);
406
- W(() => {
407
- var p;
408
- if (e.current) {
409
- e.current = !1;
410
- return;
411
- }
412
- (p = A.current) == null || p.focus();
413
- }, [o]);
414
- const c = C(
415
- () => [
416
- {
417
- label: d("navigation.stepperCalendar.steps.service"),
418
- status: n == null ? void 0 : n[0]
419
- },
420
- {
421
- label: d("navigation.stepperCalendar.steps.date"),
422
- status: n == null ? void 0 : n[1]
423
- },
424
- {
425
- label: d("navigation.stepperCalendar.steps.time"),
426
- status: n == null ? void 0 : n[2]
427
- },
428
- {
429
- label: d("navigation.stepperCalendar.steps.details"),
430
- status: n == null ? void 0 : n[3]
431
- }
432
- ],
433
- [n, d]
434
- ), I = g ?? d("navigation.stepperCalendar.label"), y = d("navigation.stepperCalendar.actions.back"), R = d("navigation.stepperCalendar.actions.next"), _ = d("navigation.stepperCalendar.actions.submit"), L = d("navigation.stepperCalendar.time.empty"), P = d("navigation.stepperCalendar.date.previousMonth"), j = d("navigation.stepperCalendar.date.nextMonth"), me = d("navigation.stepperCalendar.steps.service"), fe = q(
435
- (p) => d("navigation.stepperCalendar.service.duration", { minutes: p }),
436
- [d]
437
- ), pe = o === 0 ? !!i.serviceId : o === 1 ? !!i.date : o === 2 ? !!i.time : !1, ue = (p) => {
438
- v({ ...i, serviceId: p }), setTimeout(() => {
439
- M((ee) => ee === 0 ? 1 : ee);
440
- }, 120);
441
- }, ge = (p) => {
442
- v({ ...i, date: p, time: void 0 });
443
- }, be = (p) => {
444
- v({ ...i, time: p });
445
- }, ve = () => M((p) => Math.max(0, p - 1)), he = () => M((p) => Math.min(ie - 1, p + 1)), ye = () => u == null ? void 0 : u(i), Y = `stepper-calendar-step-${o}-heading`, xe = C(
446
- () => new Set(m),
447
- [m]
448
- );
449
- let z = null;
450
- o === 0 ? z = /* @__PURE__ */ a(
451
- le,
452
- {
453
- services: t,
454
- selectedId: i.serviceId,
455
- onSelect: ue,
456
- durationLabel: fe,
457
- groupLabel: me
458
- }
459
- ) : o === 1 ? z = /* @__PURE__ */ a(
460
- ce,
461
- {
462
- availableDates: xe,
463
- selectedDate: i.date,
464
- onSelectDate: ge,
465
- loading: D,
466
- locale: T,
467
- weekStartsOn: S,
468
- prevLabel: P,
469
- nextLabel: j,
470
- emptyLabel: L
471
- }
472
- ) : o === 2 ? z = /* @__PURE__ */ a(
473
- Ve,
474
- {
475
- date: i.date,
476
- slots: i.date ? b[i.date] ?? [] : [],
477
- selectedTime: i.time,
478
- loading: f,
479
- emptyLabel: L,
480
- onSelect: be
481
- }
482
- ) : z = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: x });
483
- const we = o === ie - 1, ke = Ne(
484
- o,
485
- o,
486
- n == null ? void 0 : n[o]
487
- );
488
- return /* @__PURE__ */ w(
489
- "div",
490
- {
491
- ref: $,
492
- role: "region",
493
- "aria-label": I,
494
- "data-component": "stepper-calendar",
495
- className: Re({ layout: r, density: s, className: l }),
496
- ...h,
497
- children: [
498
- /* @__PURE__ */ a(
499
- De,
500
- {
501
- activeStep: o,
502
- steps: c,
503
- "aria-label": I
504
- }
505
- ),
506
- /* @__PURE__ */ w(
507
- "section",
508
- {
509
- "aria-labelledby": Y,
510
- className: ze({ density: s }),
511
- "data-step": o,
512
- "data-state": ke,
513
- children: [
514
- /* @__PURE__ */ a(
515
- "h2",
516
- {
517
- ref: A,
518
- id: Y,
519
- tabIndex: -1,
520
- className: "type-body-sm ds:font-[var(--font-weight-semibold)] ds:focus:outline-none",
521
- children: (Z = c[o]) == null ? void 0 : Z.label
522
- }
523
- ),
524
- z,
525
- /* @__PURE__ */ w("div", { className: Ee(), children: [
526
- /* @__PURE__ */ a(
527
- H,
528
- {
529
- type: "button",
530
- intent: "ghost",
531
- size: "md",
532
- onClick: ve,
533
- disabled: o === 0,
534
- children: y
535
- }
536
- ),
537
- we ? /* @__PURE__ */ a(
538
- H,
539
- {
540
- type: "button",
541
- intent: "primary",
542
- size: "md",
543
- onClick: ye,
544
- children: _
545
- }
546
- ) : /* @__PURE__ */ a(
547
- H,
548
- {
549
- type: "button",
550
- intent: "primary",
551
- size: "md",
552
- onClick: he,
553
- disabled: !pe,
554
- children: R
555
- }
556
- )
557
- ] })
558
- ]
559
- }
560
- )
561
- ]
562
- }
563
- );
564
- }
565
- );
566
- $e.displayName = "StepperCalendar";
567
- export {
568
- $e as S
569
- };
570
- //# sourceMappingURL=stepper-calendar-_fLOAjus.js.map
@@ -1,129 +0,0 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as k, useRef as R, useState as S, useEffect as C, useLayoutEffect as E } from "react";
3
- import { c as t } from "./index-D2ZczOXr.js";
4
- import { useTranslation as A } from "react-i18next";
5
- const B = t("ds:flex ds:w-full", {
6
- variants: {
7
- captionPosition: {
8
- top: "ds:flex-col ds:gap-[var(--spacing-xs)]",
9
- bottom: "ds:flex-col-reverse ds:gap-[var(--spacing-xs)]"
10
- }
11
- },
12
- defaultVariants: { captionPosition: "top" }
13
- }), H = t(
14
- "ds:relative ds:w-full ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-[var(--muted)]",
15
- {
16
- variants: {
17
- size: {
18
- sm: "ds:h-[var(--spacing-xs)]",
19
- default: "ds:h-[var(--spacing-sm)]"
20
- }
21
- },
22
- defaultVariants: { size: "default" }
23
- }
24
- ), L = t(
25
- [
26
- "ds:block ds:h-full ds:rounded-[var(--radius-full)]",
27
- "ds:[inline-size:calc(var(--stepper-progress-value,0)*1%)]",
28
- "ds:transition-[inline-size,background-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
29
- "ds:motion-reduce:transition-none"
30
- ].join(" "),
31
- {
32
- variants: {
33
- tone: {
34
- progress: "ds:bg-[var(--primary)]",
35
- error: "ds:bg-[var(--destructive)]",
36
- complete: "ds:bg-[var(--success,var(--primary))]"
37
- }
38
- },
39
- defaultVariants: { tone: "progress" }
40
- }
41
- ), O = t(
42
- "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)] ds:flex-wrap",
43
- {
44
- variants: {
45
- tone: {
46
- progress: "ds:text-[var(--foreground)]",
47
- error: "ds:text-[var(--destructive)]",
48
- complete: "ds:text-[var(--foreground)]"
49
- }
50
- },
51
- defaultVariants: { tone: "progress" }
52
- }
53
- ), $ = k(
54
- ({
55
- activeStep: g,
56
- steps: l,
57
- "aria-label": x,
58
- hideCaption: h = !1,
59
- size: b = "default",
60
- captionPosition: y = "top",
61
- className: N,
62
- ...V
63
- }, w) => {
64
- const { t: i } = A(), d = R(null), s = l.length, r = Math.max(0, Math.min(g, s - 1)), e = l[r], c = (e == null ? void 0 : e.status) === "error" ? "error" : "current", p = r + 1, P = s === 0 ? 0 : p / s * 100, u = c === "error" ? "error" : r === s - 1 && s > 0 ? "complete" : "progress", [j, z] = S(!1);
65
- C(() => {
66
- z(!0);
67
- }, []);
68
- const f = j ? P : 0;
69
- E(() => {
70
- var m;
71
- (m = d.current) == null || m.style.setProperty(
72
- "--stepper-progress-value",
73
- String(f)
74
- );
75
- }, [f]);
76
- const v = i("navigation.stepper.stepOfTotal", {
77
- n: r + 1,
78
- total: s
79
- }), M = x ?? i("navigation.stepper.label"), o = c === "error" && (e != null && e.description) ? e.description : null, T = [
80
- v,
81
- e ? `— ${e.label}` : null,
82
- o
83
- ].filter(Boolean).join(" ");
84
- return /* @__PURE__ */ n(
85
- "div",
86
- {
87
- ref: w,
88
- "data-component": "stepper-progress",
89
- className: B({ captionPosition: y, className: N }),
90
- ...V,
91
- children: [
92
- h ? null : /* @__PURE__ */ n("div", { className: O({ tone: u }), "aria-hidden": "true", children: [
93
- /* @__PURE__ */ a("span", { className: "type-meta ds:font-[var(--font-weight-semibold)]", children: v }),
94
- e ? /* @__PURE__ */ n("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: [
95
- "— ",
96
- e.label
97
- ] }) : null,
98
- o ? /* @__PURE__ */ a("span", { className: "type-meta ds:ms-auto ds:text-[var(--destructive)]", children: o }) : null
99
- ] }),
100
- /* @__PURE__ */ a(
101
- "div",
102
- {
103
- role: "progressbar",
104
- "aria-label": M,
105
- "aria-valuemin": 0,
106
- "aria-valuemax": s,
107
- "aria-valuenow": p,
108
- "aria-valuetext": T,
109
- className: H({ size: b }),
110
- children: /* @__PURE__ */ a(
111
- "span",
112
- {
113
- ref: d,
114
- "aria-hidden": "true",
115
- className: L({ tone: u })
116
- }
117
- )
118
- }
119
- )
120
- ]
121
- }
122
- );
123
- }
124
- );
125
- $.displayName = "StepperProgress";
126
- export {
127
- $ as S
128
- };
129
- //# sourceMappingURL=stepper-progress-rE7tn7WY.js.map