@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,25 +1,25 @@
1
1
  import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as xe, useId as ke, useState as S, useRef as V, useCallback as b, useEffect as Ne, useMemo as ee } from "react";
3
- import { u as we } from "./index-CeY1nNvd.js";
4
- import { c as D } from "./index-D2ZczOXr.js";
5
- import { useTranslation as Ue } from "react-i18next";
6
- import { u as ze } from "./form-field-context-94LwgYTQ.js";
2
+ import { forwardRef as ke, useId as Ne, useState as ee, useRef as O, useCallback as y, useEffect as we, useMemo as se } from "react";
3
+ import { u as Ue } from "./index-CeY1nNvd.js";
4
+ import { c as I } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as ze } from "react-i18next";
6
+ import { u as Me } from "./form-field-context-94LwgYTQ.js";
7
7
  import { C as ne } from "./circle-alert-ChA9opNA.js";
8
- import { c as k } from "./createLucideIcon-CrFbzy84.js";
9
- import { X as se } from "./x-CCcI3eJp.js";
10
- import { F as Me } from "./file-text-DSNuv2B8.js";
11
- import { C as je } from "./circle-check-9AeSgJD_.js";
8
+ import { c as N } from "./createLucideIcon-CrFbzy84.js";
9
+ import { X as te } from "./x-CCcI3eJp.js";
10
+ import { F as je } from "./file-text-DSNuv2B8.js";
11
+ import { C as Ce } from "./circle-check-9AeSgJD_.js";
12
12
  /**
13
13
  * @license lucide-react v1.8.0 - ISC
14
14
  *
15
15
  * This source code is licensed under the ISC license.
16
16
  * See the LICENSE file in the root directory of this source tree.
17
17
  */
18
- const Ce = [
18
+ const Le = [
19
19
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
20
20
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
21
21
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
22
- ], Le = k("cloud-upload", Ce);
22
+ ], Fe = N("cloud-upload", Le);
23
23
  /**
24
24
  * @license lucide-react v1.8.0 - ISC
25
25
  *
@@ -39,14 +39,14 @@ const Ae = [
39
39
  ["path", { d: "M8 18v-2", key: "qcmpov" }],
40
40
  ["path", { d: "M8 7V6", key: "1nbb54" }],
41
41
  ["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
42
- ], Fe = k("file-archive", Ae);
42
+ ], Ie = N("file-archive", Ae);
43
43
  /**
44
44
  * @license lucide-react v1.8.0 - ISC
45
45
  *
46
46
  * This source code is licensed under the ISC license.
47
47
  * See the LICENSE file in the root directory of this source tree.
48
48
  */
49
- const De = [
49
+ const _e = [
50
50
  [
51
51
  "path",
52
52
  {
@@ -57,14 +57,14 @@ const De = [
57
57
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
58
58
  ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
59
59
  ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
60
- ], Ie = k("file-image", De);
60
+ ], De = N("file-image", _e);
61
61
  /**
62
62
  * @license lucide-react v1.8.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
66
  */
67
- const _e = [
67
+ const Re = [
68
68
  [
69
69
  "path",
70
70
  {
@@ -77,14 +77,14 @@ const _e = [
77
77
  ["path", { d: "M14 13h2", key: "un5t4a" }],
78
78
  ["path", { d: "M8 17h2", key: "2yhykz" }],
79
79
  ["path", { d: "M14 17h2", key: "10kma7" }]
80
- ], Be = k("file-spreadsheet", _e);
80
+ ], Be = N("file-spreadsheet", Re);
81
81
  /**
82
82
  * @license lucide-react v1.8.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
86
  */
87
- const Re = [
87
+ const $e = [
88
88
  [
89
89
  "path",
90
90
  {
@@ -93,25 +93,25 @@ const Re = [
93
93
  }
94
94
  ],
95
95
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
96
- ], $e = k("file", Re);
96
+ ], Ee = N("file", $e);
97
97
  /**
98
98
  * @license lucide-react v1.8.0 - ISC
99
99
  *
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
102
  */
103
- const Oe = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ve = k("loader-circle", Oe);
103
+ const Oe = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ve = N("loader-circle", Oe);
104
104
  /**
105
105
  * @license lucide-react v1.8.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
109
  */
110
- const Ee = [
110
+ const He = [
111
111
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
112
112
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
113
113
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
114
- ], E = k("upload", Ee), He = D(
114
+ ], V = N("upload", He), qe = I(
115
115
  [
116
116
  "ds:relative ds:flex ds:flex-col ds:items-center ds:justify-center",
117
117
  "ds:min-h-48 ds:px-[var(--spacing-lg)] ds:py-[var(--spacing-xl)]",
@@ -144,7 +144,7 @@ const Ee = [
144
144
  isDisabled: !1
145
145
  }
146
146
  }
147
- ), te = D(
147
+ ), ie = I(
148
148
  [
149
149
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
150
150
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -157,7 +157,7 @@ const Ee = [
157
157
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
158
158
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
159
159
  ].join(" ")
160
- ), qe = D(
160
+ ), Te = I(
161
161
  [
162
162
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
163
163
  "ds:rounded-[var(--radius-md)] ds:border ds:bg-background",
@@ -178,7 +178,7 @@ const Ee = [
178
178
  status: "pending"
179
179
  }
180
180
  }
181
- ), re = D(
181
+ ), re = I(
182
182
  [
183
183
  "ds:inline-flex ds:items-center ds:justify-center",
184
184
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -190,46 +190,46 @@ const Ee = [
190
190
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
191
191
  ].join(" ")
192
192
  );
193
- function Te() {
193
+ function We() {
194
194
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
195
195
  }
196
- function We(d) {
197
- return d.type.startsWith("image/");
196
+ function Pe(o) {
197
+ return o.type.startsWith("image/");
198
198
  }
199
- function Ke(d) {
200
- var p;
201
- const o = ((p = d.name.split(".").pop()) == null ? void 0 : p.toLowerCase()) ?? "";
202
- return ["pdf", "doc", "docx", "txt", "rtf"].includes(o) ? /* @__PURE__ */ t(Me, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["zip", "rar", "7z", "tar", "gz"].includes(o) ? /* @__PURE__ */ t(Fe, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["xls", "xlsx", "csv"].includes(o) ? /* @__PURE__ */ t(Be, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(o) ? /* @__PURE__ */ t(Ie, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : /* @__PURE__ */ t($e, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" });
199
+ function Ke(o) {
200
+ var c;
201
+ const n = ((c = o.name.split(".").pop()) == null ? void 0 : c.toLowerCase()) ?? "";
202
+ return ["pdf", "doc", "docx", "txt", "rtf"].includes(n) ? /* @__PURE__ */ t(je, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["zip", "rar", "7z", "tar", "gz"].includes(n) ? /* @__PURE__ */ t(Ie, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["xls", "xlsx", "csv"].includes(n) ? /* @__PURE__ */ t(Be, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(n) ? /* @__PURE__ */ t(De, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" }) : /* @__PURE__ */ t(Ee, { "aria-hidden": "true", className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground" });
203
203
  }
204
- function Pe(d) {
205
- switch (d) {
204
+ function Ge(o) {
205
+ switch (o) {
206
206
  case "uploading":
207
207
  return /* @__PURE__ */ t(Ve, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0 ds:text-primary ds:animate-spin" });
208
208
  case "complete":
209
- return /* @__PURE__ */ t(je, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0 ds:text-[var(--success)]" });
209
+ return /* @__PURE__ */ t(Ce, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0 ds:text-[var(--success)]" });
210
210
  case "error":
211
211
  return /* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0 ds:text-destructive" });
212
212
  default:
213
213
  return null;
214
214
  }
215
215
  }
216
- const Ge = [
216
+ const Xe = [
217
217
  "ui.inputs.fileUpload.units.bytes",
218
218
  "ui.inputs.fileUpload.units.kilobytes",
219
219
  "ui.inputs.fileUpload.units.megabytes",
220
220
  "ui.inputs.fileUpload.units.gigabytes"
221
- ], ie = ["B", "KB", "MB", "GB"];
222
- function F(d, o, p) {
223
- let l = d, f = 0;
224
- for (; l >= 1024 && f < ie.length - 1; )
225
- l /= 1024, f++;
226
- const I = new Intl.NumberFormat(o, {
227
- maximumFractionDigits: f === 0 ? 0 : 1
228
- }).format(l), M = p(Ge[f], ie[f]);
229
- return `${I} ${M}`;
221
+ ], ae = ["B", "KB", "MB", "GB"];
222
+ function A(o, n, c) {
223
+ let u = o, p = 0;
224
+ for (; u >= 1024 && p < ae.length - 1; )
225
+ u /= 1024, p++;
226
+ const h = new Intl.NumberFormat(n, {
227
+ maximumFractionDigits: p === 0 ? 0 : 1
228
+ }).format(u), _ = c(Xe[p], ae[p]);
229
+ return `${h} ${_}`;
230
230
  }
231
- function Xe(d) {
232
- switch (d) {
231
+ function Ye(o) {
232
+ switch (o) {
233
233
  case "file-too-large":
234
234
  return "file-too-large";
235
235
  case "file-too-small":
@@ -242,245 +242,246 @@ function Xe(d) {
242
242
  return "file-invalid-type";
243
243
  }
244
244
  }
245
- function ae(d) {
246
- const o = d.split(".");
247
- return o.length > 1 ? `.${o.pop().toLowerCase()}` : "";
245
+ function de(o) {
246
+ const n = o.split(".");
247
+ return n.length > 1 ? `.${n.pop().toLowerCase()}` : "";
248
248
  }
249
- function Ye(d) {
250
- const o = [];
251
- for (const l of Object.values(d))
252
- for (const f of l)
253
- o.push(f.toUpperCase().replace(".", ""));
254
- if (o.length > 0) return o.join(", ");
255
- const p = [];
256
- for (const l of Object.keys(d))
257
- l.endsWith("/*") ? p.push(l.replace("/*", "").split("/").pop() ?? l) : p.push(l.split("/").pop() ?? l);
258
- return p.join(", ");
249
+ function Je(o) {
250
+ const n = [];
251
+ for (const u of Object.values(o))
252
+ for (const p of u)
253
+ n.push(p.toUpperCase().replace(".", ""));
254
+ if (n.length > 0) return n.join(", ");
255
+ const c = [];
256
+ for (const u of Object.keys(o))
257
+ u.endsWith("/*") ? c.push(u.replace("/*", "").split("/").pop() ?? u) : c.push(u.split("/").pop() ?? u);
258
+ return c.join(", ");
259
259
  }
260
- const Je = xe(
260
+ const Qe = ke(
261
261
  ({
262
- accept: d,
263
- maxSize: o,
264
- minSize: p,
265
- maxFiles: l = 1,
266
- multiple: f = !1,
267
- disabled: I,
268
- strictAccept: M = !1,
262
+ id: o,
263
+ accept: n,
264
+ maxSize: c,
265
+ minSize: u,
266
+ maxFiles: p = 1,
267
+ multiple: h = !1,
268
+ disabled: _,
269
+ strictAccept: H = !1,
269
270
  onDrop: j,
270
- onUpload: _,
271
+ onUpload: D,
271
272
  onRemove: C,
272
273
  onReject: L,
273
- variant: h = "both",
274
- showPreview: de = !0,
275
- className: H
276
- }, q) => {
277
- const { t: a, i18n: N } = Ue(), g = ze(), oe = ke(), y = g.disabled || I, le = g.invalid, T = g.id || oe, [A, v] = S([]), [W, ce] = S([]), B = V(/* @__PURE__ */ new Map()), R = V(null), $ = V(A);
278
- $.current = A;
279
- const w = b((e) => {
280
- R.current && (R.current.textContent = e);
281
- }, []), K = b(
274
+ variant: g = "both",
275
+ showPreview: oe = !0,
276
+ className: q
277
+ }, T) => {
278
+ const { t: a, i18n: w } = ze(), v = Me(), le = Ne(), x = v.disabled || _, ce = v.invalid, W = v.id || le, [F, b] = ee([]), [P, ue] = ee([]), R = O(/* @__PURE__ */ new Map()), B = O(null), $ = O(F);
279
+ $.current = F;
280
+ const U = y((e) => {
281
+ B.current && (B.current.textContent = e);
282
+ }, []), K = y(
282
283
  (e) => {
283
- if (!M || !d) return !0;
284
- for (const [s, i] of Object.entries(d)) {
285
- const n = s === "*/*" || s.endsWith("/*") && e.type.startsWith(s.replace("/*", "/")) || e.type === s, r = ae(e.name), u = i.length === 0 || i.some((U) => U.toLowerCase() === r);
286
- if (n && u) return !0;
284
+ if (!H || !n) return !0;
285
+ for (const [s, r] of Object.entries(n)) {
286
+ const d = s === "*/*" || s.endsWith("/*") && e.type.startsWith(s.replace("/*", "/")) || e.type === s, i = de(e.name), f = r.length === 0 || r.some((z) => z.toLowerCase() === i);
287
+ if (d && f) return !0;
287
288
  }
288
289
  return !1;
289
290
  },
290
- [M, d]
291
- ), P = b(
291
+ [H, n]
292
+ ), G = y(
292
293
  async (e) => {
293
- if (!_) return;
294
+ if (!D) return;
294
295
  const s = new AbortController();
295
- B.current.set(e.id, s), v(
296
- (i) => i.map(
297
- (n) => n.id === e.id ? { ...n, status: "uploading", progress: 0 } : n
296
+ R.current.set(e.id, s), b(
297
+ (r) => r.map(
298
+ (d) => d.id === e.id ? { ...d, status: "uploading", progress: 0 } : d
298
299
  )
299
- ), w(a("ui.inputs.fileUpload.uploading", "Uploading…"));
300
+ ), U(a("ui.inputs.fileUpload.uploading", "Uploading…"));
300
301
  try {
301
- await _(e.file, {
302
+ await D(e.file, {
302
303
  signal: s.signal,
303
- onProgress: (i) => {
304
- v(
305
- (n) => n.map(
306
- (r) => r.id === e.id ? { ...r, progress: i } : r
304
+ onProgress: (r) => {
305
+ b(
306
+ (d) => d.map(
307
+ (i) => i.id === e.id ? { ...i, progress: r } : i
307
308
  )
308
- ), w(
309
+ ), U(
309
310
  a("ui.inputs.fileUpload.progress", "{{percent}}% uploaded", {
310
- percent: i
311
+ percent: r
311
312
  })
312
313
  );
313
314
  }
314
- }), v(
315
- (i) => i.map(
316
- (n) => n.id === e.id ? { ...n, status: "complete", progress: 100 } : n
315
+ }), b(
316
+ (r) => r.map(
317
+ (d) => d.id === e.id ? { ...d, status: "complete", progress: 100 } : d
317
318
  )
318
- ), w(a("ui.inputs.fileUpload.complete", "Upload complete"));
319
- } catch (i) {
319
+ ), U(a("ui.inputs.fileUpload.complete", "Upload complete"));
320
+ } catch (r) {
320
321
  if (s.signal.aborted) {
321
- v((r) => r.filter((u) => u.id !== e.id));
322
+ b((i) => i.filter((f) => f.id !== e.id));
322
323
  return;
323
324
  }
324
- const n = i instanceof Error ? i.message : a("ui.inputs.fileUpload.errors.uploadFailed", "Upload failed");
325
- v(
326
- (r) => r.map(
327
- (u) => u.id === e.id ? { ...u, status: "error", error: n } : u
325
+ const d = r instanceof Error ? r.message : a("ui.inputs.fileUpload.errors.uploadFailed", "Upload failed");
326
+ b(
327
+ (i) => i.map(
328
+ (f) => f.id === e.id ? { ...f, status: "error", error: d } : f
328
329
  )
329
330
  );
330
331
  } finally {
331
- B.current.delete(e.id);
332
+ R.current.delete(e.id);
332
333
  }
333
334
  },
334
- [_, w, a]
335
- ), O = b(
335
+ [D, U, a]
336
+ ), E = y(
336
337
  (e, s) => {
337
- const i = s.flatMap(
338
- (c) => c.errors.map((x) => ({
339
- file: c.file,
340
- reason: Xe(x.code)
338
+ const r = s.flatMap(
339
+ (l) => l.errors.map((k) => ({
340
+ file: l.file,
341
+ reason: Ye(k.code)
341
342
  }))
342
- ), n = [], r = [];
343
- for (const c of e)
344
- K(c) ? r.push(c) : n.push({ file: c, reason: "file-invalid-type" });
345
- const u = [...i, ...n];
346
- ce(u), u.length > 0 && (L == null || L(u));
347
- const U = r.map((c) => ({
348
- file: c,
349
- id: Te(),
343
+ ), d = [], i = [];
344
+ for (const l of e)
345
+ K(l) ? i.push(l) : d.push({ file: l, reason: "file-invalid-type" });
346
+ const f = [...r, ...d];
347
+ ue(f), f.length > 0 && (L == null || L(f));
348
+ const z = i.map((l) => ({
349
+ file: l,
350
+ id: We(),
350
351
  status: "pending",
351
352
  progress: 0,
352
- preview: We(c) ? URL.createObjectURL(c) : void 0
353
+ preview: Pe(l) ? URL.createObjectURL(l) : void 0
353
354
  }));
354
- v((c) => {
355
- if (!f && l === 1) {
356
- for (const x of c)
357
- x.preview && URL.revokeObjectURL(x.preview);
358
- return U;
355
+ b((l) => {
356
+ if (!h && p === 1) {
357
+ for (const k of l)
358
+ k.preview && URL.revokeObjectURL(k.preview);
359
+ return z;
359
360
  }
360
- return [...c, ...U];
361
- }), j == null || j(r, u), w(
361
+ return [...l, ...z];
362
+ }), j == null || j(i, f), U(
362
363
  a("ui.inputs.fileUpload.filesSelected", "{{count}} file(s) selected", {
363
- count: r.length
364
+ count: i.length
364
365
  })
365
366
  );
366
- for (const c of U)
367
- P(c);
367
+ for (const l of z)
368
+ G(l);
368
369
  },
369
370
  [
370
- f,
371
- l,
371
+ h,
372
+ p,
372
373
  j,
373
374
  L,
374
375
  K,
375
- w,
376
- P,
376
+ U,
377
+ G,
377
378
  a
378
379
  ]
379
- ), { getRootProps: ue, getInputProps: G, isDragActive: z, open: X } = we({
380
- accept: d,
381
- maxSize: o,
382
- minSize: p,
383
- maxFiles: f ? l : 1,
384
- multiple: f,
385
- disabled: y,
386
- onDrop: O,
387
- noClick: h === "button",
388
- noKeyboard: h === "button"
389
- }), pe = b(
380
+ ), { getRootProps: pe, getInputProps: X, isDragActive: M, open: Y } = Ue({
381
+ accept: n,
382
+ maxSize: c,
383
+ minSize: u,
384
+ maxFiles: h ? p : 1,
385
+ multiple: h,
386
+ disabled: x,
387
+ onDrop: E,
388
+ noClick: g === "button",
389
+ noKeyboard: g === "button"
390
+ }), fe = y(
390
391
  (e) => {
391
- const s = B.current.get(e);
392
- s == null || s.abort(), v((i) => {
393
- const n = i.find((r) => r.id === e);
394
- return n != null && n.preview && URL.revokeObjectURL(n.preview), i.filter((r) => r.id !== e);
392
+ const s = R.current.get(e);
393
+ s == null || s.abort(), b((r) => {
394
+ const d = r.find((i) => i.id === e);
395
+ return d != null && d.preview && URL.revokeObjectURL(d.preview), r.filter((i) => i.id !== e);
395
396
  });
396
397
  },
397
398
  []
398
- ), fe = b(
399
+ ), me = y(
399
400
  (e) => {
400
- const s = $.current.find((i) => i.id === e);
401
- s != null && s.preview && URL.revokeObjectURL(s.preview), v((i) => i.filter((n) => n.id !== e)), s && (C == null || C(s));
401
+ const s = $.current.find((r) => r.id === e);
402
+ s != null && s.preview && URL.revokeObjectURL(s.preview), b((r) => r.filter((d) => d.id !== e)), s && (C == null || C(s));
402
403
  },
403
404
  [C]
404
- ), Y = b(
405
+ ), J = y(
405
406
  (e) => {
406
- const s = [], i = [], n = f ? l : 1;
407
- for (const r of e) {
408
- if (s.length >= n) {
409
- i.push({ file: r, reason: "too-many-files" });
407
+ const s = [], r = [], d = h ? p : 1;
408
+ for (const i of e) {
409
+ if (s.length >= d) {
410
+ r.push({ file: i, reason: "too-many-files" });
410
411
  continue;
411
412
  }
412
- if (o !== void 0 && r.size > o) {
413
- i.push({ file: r, reason: "file-too-large" });
413
+ if (c !== void 0 && i.size > c) {
414
+ r.push({ file: i, reason: "file-too-large" });
414
415
  continue;
415
416
  }
416
- if (p !== void 0 && r.size < p) {
417
- i.push({ file: r, reason: "file-too-small" });
417
+ if (u !== void 0 && i.size < u) {
418
+ r.push({ file: i, reason: "file-too-small" });
418
419
  continue;
419
420
  }
420
- if (d) {
421
- const u = ae(r.name);
422
- if (!Object.entries(d).some(([c, x]) => {
423
- const ve = c === "*/*" || c.endsWith("/*") && r.type.startsWith(c.replace("/*", "/")) || r.type === c, be = x.length > 0 && x.some((ye) => ye.toLowerCase() === u);
424
- return ve || be;
421
+ if (n) {
422
+ const f = de(i.name);
423
+ if (!Object.entries(n).some(([l, k]) => {
424
+ const be = l === "*/*" || l.endsWith("/*") && i.type.startsWith(l.replace("/*", "/")) || i.type === l, ye = k.length > 0 && k.some((xe) => xe.toLowerCase() === f);
425
+ return be || ye;
425
426
  })) {
426
- i.push({ file: r, reason: "file-invalid-type" });
427
+ r.push({ file: i, reason: "file-invalid-type" });
427
428
  continue;
428
429
  }
429
430
  }
430
- s.push(r);
431
+ s.push(i);
431
432
  }
432
- return { accepted: s, rejected: i };
433
+ return { accepted: s, rejected: r };
433
434
  },
434
- [d, o, p, l, f]
435
- ), J = b(
435
+ [n, c, u, p, h]
436
+ ), Q = y(
436
437
  (e) => {
437
- if (y) return;
438
+ if (x) return;
438
439
  const s = Array.from(e.clipboardData.files);
439
440
  if (s.length > 0) {
440
441
  e.preventDefault();
441
- const { accepted: i, rejected: n } = Y(s), r = n.map((u) => ({
442
- file: u.file,
443
- errors: [{ code: u.reason, message: u.reason }]
442
+ const { accepted: r, rejected: d } = J(s), i = d.map((f) => ({
443
+ file: f.file,
444
+ errors: [{ code: f.reason, message: f.reason }]
444
445
  }));
445
- O(i, r);
446
+ E(r, i);
446
447
  }
447
448
  },
448
- [y, O, Y]
449
+ [x, E, J]
449
450
  );
450
- Ne(() => () => {
451
+ we(() => () => {
451
452
  for (const e of $.current)
452
453
  e.preview && URL.revokeObjectURL(e.preview);
453
454
  }, []);
454
- const Q = ee(() => {
455
+ const Z = se(() => {
455
456
  const e = [];
456
- return d && e.push(Ye(d)), o && e.push(
457
+ return n && e.push(Je(n)), c && e.push(
457
458
  a("ui.inputs.fileUpload.maxSizeHint", "Max {{size}}", {
458
- size: F(o, N.language, a)
459
+ size: A(c, w.language, a)
459
460
  })
460
- ), f && l > 1 && e.push(
461
+ ), h && p > 1 && e.push(
461
462
  a("ui.inputs.fileUpload.maxFilesHint", "Up to {{count}} files", {
462
- count: l
463
+ count: p
463
464
  })
464
465
  ), e;
465
- }, [d, o, f, l, a, N.language]), Z = ee(() => W.map((e) => {
466
+ }, [n, c, h, p, a, w.language]), S = se(() => P.map((e) => {
466
467
  switch (e.reason) {
467
468
  case "file-too-large":
468
469
  return a("ui.inputs.fileUpload.errors.fileTooLarge", "File exceeds {{maxSize}}", {
469
- maxSize: o ? F(o, N.language, a) : ""
470
+ maxSize: c ? A(c, w.language, a) : ""
470
471
  });
471
472
  case "file-too-small":
472
473
  return a("ui.inputs.fileUpload.errors.fileTooSmall", "File is smaller than {{minSize}}", {
473
- minSize: p ? F(p, N.language, a) : ""
474
+ minSize: u ? A(u, w.language, a) : ""
474
475
  });
475
476
  case "file-invalid-type":
476
477
  return a("ui.inputs.fileUpload.errors.fileInvalidType", "File type not accepted");
477
478
  case "too-many-files":
478
479
  return a("ui.inputs.fileUpload.errors.tooManyFiles", "Maximum {{maxFiles}} files allowed", {
479
- maxFiles: l
480
+ maxFiles: p
480
481
  });
481
482
  }
482
- }), [W, a, o, p, l, N.language]), me = () => A.length === 0 ? null : /* @__PURE__ */ t("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: A.map((e) => /* @__PURE__ */ m("li", { className: qe({ status: e.status }), children: [
483
- de && e.preview ? /* @__PURE__ */ t(
483
+ }), [P, a, c, u, p, w.language]), he = () => F.length === 0 ? null : /* @__PURE__ */ t("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: F.map((e) => /* @__PURE__ */ m("li", { "data-file-id": e.id, className: Te({ status: e.status }), children: [
484
+ oe && e.preview ? /* @__PURE__ */ t(
484
485
  "img",
485
486
  {
486
487
  src: e.preview,
@@ -492,10 +493,10 @@ const Je = xe(
492
493
  /* @__PURE__ */ m("div", { className: "ds:flex-1 ds:min-w-0", children: [
493
494
  /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
494
495
  /* @__PURE__ */ t("p", { className: "ds:truncate type-label ds:m-0", children: e.file.name }),
495
- Pe(e.status)
496
+ Ge(e.status)
496
497
  ] }),
497
498
  /* @__PURE__ */ m("p", { className: "type-meta ds:text-muted-foreground ds:m-0 ds:mt-0.5", children: [
498
- F(e.file.size, N.language, a),
499
+ A(e.file.size, w.language, a),
499
500
  e.status === "uploading" && /* @__PURE__ */ m("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-primary ds:font-medium", children: [
500
501
  e.progress,
501
502
  "%"
@@ -526,64 +527,64 @@ const Je = xe(
526
527
  "button",
527
528
  {
528
529
  type: "button",
529
- onClick: () => pe(e.id),
530
+ onClick: () => fe(e.id),
530
531
  "aria-label": a("ui.inputs.fileUpload.cancel", "Cancel upload"),
531
532
  className: re(),
532
- children: /* @__PURE__ */ t(se, { "aria-hidden": "true", className: "ds:size-4" })
533
+ children: /* @__PURE__ */ t(te, { "aria-hidden": "true", className: "ds:size-4" })
533
534
  }
534
535
  ),
535
536
  (e.status === "complete" || e.status === "pending" || e.status === "error") && /* @__PURE__ */ t(
536
537
  "button",
537
538
  {
538
539
  type: "button",
539
- onClick: () => fe(e.id),
540
+ onClick: () => me(e.id),
540
541
  "aria-label": a("ui.inputs.fileUpload.remove", "Remove file"),
541
542
  className: re(),
542
- children: /* @__PURE__ */ t(se, { "aria-hidden": "true", className: "ds:size-4" })
543
+ children: /* @__PURE__ */ t(te, { "aria-hidden": "true", className: "ds:size-4" })
543
544
  }
544
545
  )
545
- ] }, e.id)) }), he = () => {
546
- if (h === "button") return null;
547
- const e = ue({
548
- className: He({
549
- isDragActive: z,
550
- hasError: le ?? !1,
551
- isDisabled: y ?? !1,
552
- className: H
546
+ ] }, e.id)) }), ge = () => {
547
+ if (g === "button") return null;
548
+ const e = pe({
549
+ className: qe({
550
+ isDragActive: M,
551
+ hasError: ce ?? !1,
552
+ isDisabled: x ?? !1,
553
+ className: q
553
554
  }),
554
- tabIndex: y ? -1 : 0
555
+ tabIndex: x ? -1 : 0
555
556
  });
556
557
  return /* @__PURE__ */ m(
557
558
  "div",
558
559
  {
559
560
  ...e,
560
- ref: q,
561
- onPaste: J,
562
- id: T,
561
+ ref: T,
562
+ onPaste: Q,
563
+ id: W,
563
564
  "aria-label": a("ui.inputs.fileUpload.dropHere", "Drop files here or click to browse"),
564
- "aria-describedby": g.describedBy || void 0,
565
- "aria-invalid": g.invalid || void 0,
566
- "aria-required": g.required || void 0,
565
+ "aria-describedby": v.describedBy || void 0,
566
+ "aria-invalid": v.invalid || void 0,
567
+ "aria-required": v.required || void 0,
567
568
  "data-testid": "file-upload-dropzone",
568
569
  children: [
569
- /* @__PURE__ */ t("input", { ...G() }),
570
+ /* @__PURE__ */ t("input", { ...X() }),
570
571
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
571
- /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: z ? /* @__PURE__ */ t(Le, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ t(E, { "aria-hidden": "true", className: "ds:size-7" }) }),
572
+ /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: M ? /* @__PURE__ */ t(Fe, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ t(V, { "aria-hidden": "true", className: "ds:size-7" }) }),
572
573
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)]", children: [
573
- /* @__PURE__ */ t("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: z ? a("ui.inputs.fileUpload.dropActive", "Drop files here") : a("ui.inputs.fileUpload.dropHere", "Drop files here or click to browse") }),
574
- Q.length > 0 && !z && /* @__PURE__ */ t("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: Q.join(" · ") })
574
+ /* @__PURE__ */ t("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: M ? a("ui.inputs.fileUpload.dropActive", "Drop files here") : a("ui.inputs.fileUpload.dropHere", "Drop files here or click to browse") }),
575
+ Z.length > 0 && !M && /* @__PURE__ */ t("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: Z.join(" · ") })
575
576
  ] }),
576
- h === "both" && !z && /* @__PURE__ */ m(
577
+ g === "both" && !M && /* @__PURE__ */ m(
577
578
  "button",
578
579
  {
579
580
  type: "button",
580
581
  onClick: (s) => {
581
- s.stopPropagation(), X();
582
+ s.stopPropagation(), Y();
582
583
  },
583
- disabled: y,
584
- className: te({ className: "ds:mt-[var(--spacing-xs)]" }),
584
+ disabled: x,
585
+ className: ie({ className: "ds:mt-[var(--spacing-xs)]" }),
585
586
  children: [
586
- /* @__PURE__ */ t(E, { "aria-hidden": "true", className: "ds:size-4" }),
587
+ /* @__PURE__ */ t(V, { "aria-hidden": "true", className: "ds:size-4" }),
587
588
  a("ui.inputs.fileUpload.browse", "Browse files")
588
589
  ]
589
590
  }
@@ -592,38 +593,38 @@ const Je = xe(
592
593
  ]
593
594
  }
594
595
  );
595
- }, ge = () => h === "dropzone" ? null : h === "button" ? /* @__PURE__ */ m("div", { onPaste: J, ref: q, children: [
596
- /* @__PURE__ */ t("input", { ...G() }),
596
+ }, ve = () => g === "dropzone" ? null : g === "button" ? /* @__PURE__ */ m("div", { onPaste: Q, ref: T, children: [
597
+ /* @__PURE__ */ t("input", { ...X() }),
597
598
  /* @__PURE__ */ m(
598
599
  "button",
599
600
  {
600
601
  type: "button",
601
- onClick: X,
602
- disabled: y,
603
- className: te({ className: H }),
604
- id: h === "button" ? T : void 0,
605
- "aria-describedby": h === "button" && g.describedBy || void 0,
606
- "aria-invalid": h === "button" && g.invalid || void 0,
607
- "aria-required": h === "button" && g.required || void 0,
602
+ onClick: Y,
603
+ disabled: x,
604
+ className: ie({ className: q }),
605
+ id: g === "button" ? W : void 0,
606
+ "aria-describedby": g === "button" && v.describedBy || void 0,
607
+ "aria-invalid": g === "button" && v.invalid || void 0,
608
+ "aria-required": g === "button" && v.required || void 0,
608
609
  children: [
609
- /* @__PURE__ */ t(E, { "aria-hidden": "true", className: "ds:size-4" }),
610
+ /* @__PURE__ */ t(V, { "aria-hidden": "true", className: "ds:size-4" }),
610
611
  a("ui.inputs.fileUpload.browse", "Browse files")
611
612
  ]
612
613
  }
613
614
  )
614
615
  ] }) : null;
615
- return /* @__PURE__ */ m("div", { "data-component": "file-upload", children: [
616
- he(),
616
+ return /* @__PURE__ */ m("div", { "data-component": "file-upload", "data-component-id": o, children: [
617
617
  ge(),
618
- me(),
619
- Z.length > 0 && /* @__PURE__ */ t("div", { role: "alert", className: "ds:mt-[var(--spacing-sm)] ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: Z.map((e, s) => /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
618
+ ve(),
619
+ he(),
620
+ S.length > 0 && /* @__PURE__ */ t("div", { role: "alert", className: "ds:mt-[var(--spacing-sm)] ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: S.map((e, s) => /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
620
621
  /* @__PURE__ */ t(ne, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0 ds:text-destructive" }),
621
622
  /* @__PURE__ */ t("p", { className: "type-meta ds:text-destructive ds:m-0", children: e })
622
623
  ] }, s)) }),
623
624
  /* @__PURE__ */ t(
624
625
  "span",
625
626
  {
626
- ref: R,
627
+ ref: B,
627
628
  role: "status",
628
629
  "aria-live": "polite",
629
630
  className: "ds:sr-only"
@@ -632,18 +633,49 @@ const Je = xe(
632
633
  ] });
633
634
  }
634
635
  );
635
- Je.displayName = "FileUpload";
636
- const os = {
636
+ Qe.displayName = "FileUpload";
637
+ const ls = {
637
638
  id: "file-upload",
638
639
  capabilities: ["submit", "dismiss"],
639
- state: {},
640
- actions: {},
640
+ state: {
641
+ files: {
642
+ type: "Array<{ id, name, size, status }>",
643
+ description: "Files currently tracked by the uploader. Identifiers and metadata only — never file content.",
644
+ read: (o) => o.getFiles()
645
+ }
646
+ },
647
+ actions: {
648
+ remove_file: {
649
+ safety: "destructive",
650
+ argsType: "{ id: string }",
651
+ description: "Remove the file with the given id from the upload list.",
652
+ invoke: (o, n) => {
653
+ o.removeFile(n.id);
654
+ }
655
+ },
656
+ clear: {
657
+ safety: "destructive",
658
+ description: "Remove all files from the upload list.",
659
+ invoke: (o) => {
660
+ o.clear();
661
+ }
662
+ }
663
+ },
641
664
  domHooks: {
642
- root: { attr: "data-component", value: "file-upload" }
665
+ root: { attr: "data-component", value: "file-upload" },
666
+ instanceId: {
667
+ attr: "data-component-id",
668
+ sourceProp: "id",
669
+ description: "Sourced from the id prop."
670
+ },
671
+ item: {
672
+ attr: "data-file-id",
673
+ description: "Each tracked file emits its id as data-file-id."
674
+ }
643
675
  }
644
676
  };
645
677
  export {
646
- Je as F,
647
- os as f
678
+ Qe as F,
679
+ ls as f
648
680
  };
649
- //# sourceMappingURL=file-upload.agent-B9AN82LA.js.map
681
+ //# sourceMappingURL=file-upload.agent-DJaH2dHg.js.map