@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,15 +1,15 @@
1
- import { jsx as s, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as j, useContext as L, useRef as P, useState as B, useEffect as J, useMemo as I, Children as Q, isValidElement as U, useCallback as W, createContext as Y } from "react";
1
+ import { jsx as a, jsxs as k } from "react/jsx-runtime";
2
+ import { forwardRef as V, useContext as A, useRef as I, useState as B, useEffect as J, useMemo as M, Children as Q, isValidElement as U, useCallback as W, createContext as Y } from "react";
3
3
  import * as R from "@radix-ui/react-tabs";
4
4
  import * as N from "@radix-ui/react-dropdown-menu";
5
5
  import { a as y, c as q } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Z } from "react-i18next";
7
- import { u as D } from "./use-direction-D6rvvG9G.js";
8
- import { c as K } from "./compose-refs-C0k0tdqF.js";
9
- import { S as ee } from "./select-IY_JQa-F.js";
7
+ import { u as K } from "./use-direction-D6rvvG9G.js";
8
+ import { c as D } from "./compose-refs-C0k0tdqF.js";
9
+ import { S as ee } from "./select-DY1Cb2Tg.js";
10
10
  import { X as te } from "./x-CCcI3eJp.js";
11
11
  import { C as se } from "./chevron-down-BX_NP2Yh.js";
12
- const M = q(
12
+ const E = q(
13
13
  "ds:relative ds:flex",
14
14
  {
15
15
  variants: {
@@ -79,7 +79,7 @@ const M = q(
79
79
  orientation: "horizontal"
80
80
  }
81
81
  }
82
- ), V = Y({
82
+ ), j = Y({
83
83
  variant: "default",
84
84
  size: "md",
85
85
  orientation: "horizontal",
@@ -87,134 +87,137 @@ const M = q(
87
87
  value: "",
88
88
  setValue: () => {
89
89
  }
90
- }), S = j(
90
+ }), O = V(
91
91
  ({
92
- variant: i = "default",
93
- size: a = "md",
94
- orientation: r = "horizontal",
95
- overflow: o = "dropdown",
96
- className: n,
97
- children: c,
92
+ variant: r = "default",
93
+ size: s = "md",
94
+ orientation: d = "horizontal",
95
+ overflow: n = "dropdown",
96
+ className: i,
97
+ children: u,
98
98
  value: t,
99
- defaultValue: p,
99
+ defaultValue: m,
100
100
  onValueChange: l,
101
- ...w
102
- }, g) => {
103
- const b = P(null), z = K(g, b), u = D(b), f = t !== void 0, [T, h] = B(p ?? ""), v = f ? t ?? "" : T, d = W(
104
- (m) => {
105
- f || h(m), l == null || l(m);
101
+ id: p,
102
+ ...g
103
+ }, w) => {
104
+ const b = I(null), f = D(w, b), T = K(b), v = t !== void 0, [h, z] = B(m ?? ""), o = v ? t ?? "" : h, e = W(
105
+ (c) => {
106
+ v || z(c), l == null || l(c);
106
107
  },
107
- [f, l]
108
- ), e = I(
109
- () => ({ variant: i, size: a, orientation: r, overflow: o, value: v, setValue: d }),
110
- [i, a, r, o, v, d]
108
+ [v, l]
109
+ ), x = M(
110
+ () => ({ variant: r, size: s, orientation: d, overflow: n, value: o, setValue: e }),
111
+ [r, s, d, n, o, e]
111
112
  );
112
- return /* @__PURE__ */ s(V.Provider, { value: e, children: /* @__PURE__ */ s(
113
+ return /* @__PURE__ */ a(j.Provider, { value: x, children: /* @__PURE__ */ a(
113
114
  R.Root,
114
115
  {
115
- ref: z,
116
- orientation: r,
117
- dir: u,
118
- value: v,
119
- onValueChange: d,
116
+ ref: f,
117
+ orientation: d,
118
+ dir: T,
119
+ value: o,
120
+ onValueChange: e,
121
+ id: p,
120
122
  "data-component": "tabs",
123
+ "data-component-id": p,
121
124
  className: y(
122
125
  "ds:flex",
123
- r === "vertical" ? "ds:flex-row ds:gap-[var(--spacing-md)]" : "ds:flex-col",
124
- n
126
+ d === "vertical" ? "ds:flex-row ds:gap-[var(--spacing-md)]" : "ds:flex-col",
127
+ i
125
128
  ),
126
- ...w,
127
- children: c
129
+ ...g,
130
+ children: u
128
131
  }
129
132
  ) });
130
133
  }
131
134
  );
132
- S.displayName = "Tabs";
133
- const X = j(
134
- ({ className: i, children: a, "aria-label": r, ...o }, n) => {
135
- const { variant: c, size: t, orientation: p, overflow: l, value: w, setValue: g } = L(V), { t: b } = Z("ui"), z = P(null), [u, f] = B([]), T = p === "horizontal", h = l === "dropdown" && T;
135
+ O.displayName = "Tabs";
136
+ const X = V(
137
+ ({ className: r, children: s, "aria-label": d, ...n }, i) => {
138
+ const { variant: u, size: t, orientation: m, overflow: l, value: p, setValue: g } = A(j), { t: w } = Z("ui"), b = I(null), [f, T] = B([]), v = m === "horizontal", h = l === "dropdown" && v;
136
139
  J(() => {
137
140
  if (!h) {
138
- f([]);
141
+ T([]);
139
142
  return;
140
143
  }
141
- const e = z.current;
144
+ const e = b.current;
142
145
  if (!e) return;
143
- const m = () => {
144
- const O = e.getBoundingClientRect().right, _ = [];
146
+ const x = () => {
147
+ const S = e.getBoundingClientRect().right, _ = [];
145
148
  e.querySelectorAll('[role="tab"]').forEach((C) => {
146
- var A;
147
- if (C.getBoundingClientRect().right > O + 2) {
148
- const E = C.getAttribute("data-value") ?? C.dataset.value ?? "", G = ((A = C.textContent) == null ? void 0 : A.trim()) ?? E;
149
- _.push({ value: E, label: G });
149
+ var L;
150
+ if (C.getBoundingClientRect().right > S + 2) {
151
+ const P = C.getAttribute("data-value") ?? C.dataset.value ?? "", G = ((L = C.textContent) == null ? void 0 : L.trim()) ?? P;
152
+ _.push({ value: P, label: G });
150
153
  }
151
- }), f(_);
152
- }, x = new ResizeObserver(m);
153
- return x.observe(e), m(), () => x.disconnect();
154
- }, [h, a]);
155
- const v = (e) => {
156
- z.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
157
- }, d = I(() => l !== "select" ? [] : Q.toArray(a).filter((e) => U(e)).filter((e) => typeof e.props.value == "string" && e.props.value.length > 0).map((e) => {
158
- const m = e.props.value, x = e.props.children, O = typeof x == "string" ? x : typeof x == "number" ? String(x) : m;
159
- return { value: m, label: O };
160
- }), [a, l]);
161
- return l === "select" && T ? /* @__PURE__ */ k("div", { className: "ds:@container/tabs ds:relative ds:w-full", children: [
162
- /* @__PURE__ */ s("div", { className: "ds:block ds:@md/tabs:hidden", children: /* @__PURE__ */ s(
154
+ }), T(_);
155
+ }, c = new ResizeObserver(x);
156
+ return c.observe(e), x(), () => c.disconnect();
157
+ }, [h, s]);
158
+ const z = (e) => {
159
+ b.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
160
+ }, o = M(() => l !== "select" ? [] : Q.toArray(s).filter((e) => U(e)).filter((e) => typeof e.props.value == "string" && e.props.value.length > 0).map((e) => {
161
+ const x = e.props.value, c = e.props.children, S = typeof c == "string" ? c : typeof c == "number" ? String(c) : x;
162
+ return { value: x, label: S };
163
+ }), [s, l]);
164
+ return l === "select" && v ? /* @__PURE__ */ k("div", { className: "ds:@container/tabs ds:relative ds:w-full", children: [
165
+ /* @__PURE__ */ a("div", { className: "ds:block ds:@md/tabs:hidden", children: /* @__PURE__ */ a(
163
166
  ee,
164
167
  {
165
- options: d,
166
- value: w,
168
+ options: o,
169
+ value: p,
167
170
  onValueChange: (e) => {
168
171
  typeof e == "string" && e.length > 0 && g(e);
169
172
  },
170
173
  size: t,
171
- "aria-label": r ?? b("tabs.selectLabel")
174
+ "aria-label": d ?? w("tabs.selectLabel")
172
175
  }
173
176
  ) }),
174
- /* @__PURE__ */ s("div", { className: "ds:hidden ds:@md/tabs:flex ds:relative ds:items-center", children: /* @__PURE__ */ s(
177
+ /* @__PURE__ */ a("div", { className: "ds:hidden ds:@md/tabs:flex ds:relative ds:items-center", children: /* @__PURE__ */ a(
175
178
  R.List,
176
179
  {
177
- ref: v,
178
- "aria-label": r,
179
- className: M({ variant: c, orientation: p, className: i }),
180
- ...o,
181
- children: a
180
+ ref: z,
181
+ "aria-label": d,
182
+ className: E({ variant: u, orientation: m, className: r }),
183
+ ...n,
184
+ children: s
182
185
  }
183
186
  ) })
184
187
  ] }) : /* @__PURE__ */ k("div", { className: "ds:relative ds:flex ds:items-center", children: [
185
- /* @__PURE__ */ s(
188
+ /* @__PURE__ */ a(
186
189
  R.List,
187
190
  {
188
- ref: v,
189
- "aria-label": r,
190
- className: M({ variant: c, orientation: p, className: i }),
191
- ...o,
192
- children: a
191
+ ref: z,
192
+ "aria-label": d,
193
+ className: E({ variant: u, orientation: m, className: r }),
194
+ ...n,
195
+ children: s
193
196
  }
194
197
  ),
195
- h && u.length > 0 && /* @__PURE__ */ s(ae, { tabs: u, label: b("tabs.moreTabs"), size: t })
198
+ h && f.length > 0 && /* @__PURE__ */ a(ae, { tabs: f, label: w("tabs.moreTabs"), size: t })
196
199
  ] });
197
200
  }
198
201
  );
199
202
  X.displayName = "TabsList";
200
- function ae({ tabs: i, label: a, size: r }) {
201
- const { variant: o } = L(V);
203
+ function ae({ tabs: r, label: s, size: d }) {
204
+ const { variant: n } = A(j);
202
205
  return /* @__PURE__ */ k(N.Root, { children: [
203
206
  /* @__PURE__ */ k(
204
207
  N.Trigger,
205
208
  {
206
209
  className: y(
207
- H({ variant: o, size: r, orientation: "horizontal" }),
210
+ H({ variant: n, size: d, orientation: "horizontal" }),
208
211
  "ds:shrink-0 ds:ms-1"
209
212
  ),
210
- "aria-label": a,
213
+ "aria-label": s,
211
214
  children: [
212
- a,
213
- /* @__PURE__ */ s(se, { "aria-hidden": "true", className: "ds:size-4" })
215
+ s,
216
+ /* @__PURE__ */ a(se, { "aria-hidden": "true", className: "ds:size-4" })
214
217
  ]
215
218
  }
216
219
  ),
217
- /* @__PURE__ */ s(N.Portal, { children: /* @__PURE__ */ s(
220
+ /* @__PURE__ */ a(N.Portal, { children: /* @__PURE__ */ a(
218
221
  N.Content,
219
222
  {
220
223
  sideOffset: 4,
@@ -225,7 +228,7 @@ function ae({ tabs: i, label: a, size: r }) {
225
228
  "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
226
229
  "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95"
227
230
  ),
228
- children: i.map(({ value: n, label: c }) => /* @__PURE__ */ s(
231
+ children: r.map(({ value: i, label: u }) => /* @__PURE__ */ a(
229
232
  N.Item,
230
233
  {
231
234
  className: y(
@@ -237,52 +240,52 @@ function ae({ tabs: i, label: a, size: r }) {
237
240
  ),
238
241
  onSelect: () => {
239
242
  const t = document.querySelector(
240
- `[role="tab"][data-value="${CSS.escape(n)}"]`
243
+ `[role="tab"][data-value="${CSS.escape(i)}"]`
241
244
  );
242
245
  t == null || t.click(), t == null || t.scrollIntoView({ inline: "nearest" });
243
246
  },
244
- children: c
247
+ children: u
245
248
  },
246
- n
249
+ i
247
250
  ))
248
251
  }
249
252
  ) })
250
253
  ] });
251
254
  }
252
- const $ = j(
255
+ const $ = V(
253
256
  ({
254
- variant: i,
255
- size: a,
256
- orientation: r,
257
- icon: o,
258
- badge: n,
259
- dismissible: c = !1,
257
+ variant: r,
258
+ size: s,
259
+ orientation: d,
260
+ icon: n,
261
+ badge: i,
262
+ dismissible: u = !1,
260
263
  onDismiss: t,
261
- className: p,
264
+ className: m,
262
265
  children: l,
263
- value: w,
266
+ value: p,
264
267
  onKeyDown: g,
265
- ...b
266
- }, z) => {
267
- const u = L(V), f = i ?? u.variant, T = a ?? u.size, h = r ?? u.orientation, v = (d) => {
268
- c && (d.key === "Delete" || d.key === "Backspace") && (d.preventDefault(), t == null || t()), g == null || g(d);
268
+ ...w
269
+ }, b) => {
270
+ const f = A(j), T = r ?? f.variant, v = s ?? f.size, h = d ?? f.orientation, z = (o) => {
271
+ u && (o.key === "Delete" || o.key === "Backspace") && (o.preventDefault(), t == null || t()), g == null || g(o);
269
272
  };
270
273
  return /* @__PURE__ */ k(
271
274
  R.Trigger,
272
275
  {
273
- ref: z,
274
- value: w,
275
- "data-value": w,
276
- className: H({ variant: f, size: T, orientation: h, className: p }),
277
- onKeyDown: v,
278
- ...b,
276
+ ref: b,
277
+ value: p,
278
+ "data-value": p,
279
+ className: H({ variant: T, size: v, orientation: h, className: m }),
280
+ onKeyDown: z,
281
+ ...w,
279
282
  children: [
280
- o && /* @__PURE__ */ s("span", { "aria-hidden": "true", className: "ds:shrink-0 ds:size-4", children: o }),
283
+ n && /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "ds:shrink-0 ds:size-4", children: n }),
281
284
  l,
282
- n && /* @__PURE__ */ s("span", { className: "ds:shrink-0", children: n }),
283
- c && // Visual-only dismiss indicator — pointer dismiss fires here; keyboard dismiss fires via Delete/Backspace on the trigger above.
285
+ i && /* @__PURE__ */ a("span", { className: "ds:shrink-0", children: i }),
286
+ u && // Visual-only dismiss indicator — pointer dismiss fires here; keyboard dismiss fires via Delete/Backspace on the trigger above.
284
287
  // No role/tabIndex to avoid nested-interactive (interactive content inside <button> is invalid HTML).
285
- /* @__PURE__ */ s(
288
+ /* @__PURE__ */ a(
286
289
  "span",
287
290
  {
288
291
  "aria-hidden": "true",
@@ -291,10 +294,10 @@ const $ = j(
291
294
  "ds:size-6 ds:rounded-[var(--radius-sm)]",
292
295
  "ds:hover:bg-muted-foreground/20"
293
296
  ),
294
- onPointerDown: (d) => {
295
- d.stopPropagation(), d.preventDefault(), t == null || t();
297
+ onPointerDown: (o) => {
298
+ o.stopPropagation(), o.preventDefault(), t == null || t();
296
299
  },
297
- children: /* @__PURE__ */ s(te, { className: "ds:size-3.5" })
300
+ children: /* @__PURE__ */ a(te, { className: "ds:size-3.5" })
298
301
  }
299
302
  )
300
303
  ]
@@ -303,38 +306,58 @@ const $ = j(
303
306
  }
304
307
  );
305
308
  $.displayName = "TabsTrigger";
306
- const F = j(
307
- ({ className: i, children: a, ...r }, o) => /* @__PURE__ */ s(
309
+ const F = V(
310
+ ({ className: r, children: s, ...d }, n) => /* @__PURE__ */ a(
308
311
  R.Content,
309
312
  {
310
- ref: o,
313
+ ref: n,
311
314
  className: y(
312
315
  "ds:mt-[var(--spacing-sm)] ds:outline-none",
313
316
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
314
317
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
315
- i
318
+ r
316
319
  ),
317
- ...r,
318
- children: a
320
+ ...d,
321
+ children: s
319
322
  }
320
323
  )
321
324
  );
322
325
  F.displayName = "TabsContent";
323
- const me = Object.assign(S, {
324
- Root: S,
326
+ const me = Object.assign(O, {
327
+ Root: O,
325
328
  List: X,
326
329
  Trigger: $,
327
330
  Content: F
328
331
  }), pe = {
329
332
  id: "tabs",
330
333
  capabilities: ["select_single", "navigate"],
331
- state: {},
332
- actions: {},
334
+ state: {
335
+ activeTab: {
336
+ type: "string | null",
337
+ description: "Value of the currently-active tab.",
338
+ read: (r) => r.getActiveTab()
339
+ }
340
+ },
341
+ actions: {
342
+ select_tab: {
343
+ safety: "read",
344
+ argsType: "{ value: string }",
345
+ description: "Activate the tab with the given value.",
346
+ invoke: (r, s) => {
347
+ r.selectTab(s.value);
348
+ }
349
+ }
350
+ },
333
351
  domHooks: {
334
352
  root: { attr: "data-component", value: "tabs" },
353
+ instanceId: {
354
+ attr: "data-component-id",
355
+ sourceProp: "id",
356
+ description: "Sourced from the id prop on Tabs.Root."
357
+ },
335
358
  item: {
336
359
  attr: "data-tab-id",
337
- description: "Each Tab.Trigger emits its value as data-tab-id. The agent reads this to identify the active tab via the DOM."
360
+ description: "Each Tab.Trigger emits its value as data-tab-id."
338
361
  }
339
362
  }
340
363
  };
@@ -345,4 +368,4 @@ export {
345
368
  $ as c,
346
369
  pe as t
347
370
  };
348
- //# sourceMappingURL=tabs.agent-BpbVA-Zh.js.map
371
+ //# sourceMappingURL=tabs.agent-h7NvsTR1.js.map
@@ -82,6 +82,7 @@ const w = v(
82
82
  ref: p,
83
83
  role: "listitem",
84
84
  "data-component": "task-card",
85
+ "data-component-id": s.id,
85
86
  "data-status": s.status ?? "open",
86
87
  "data-priority": s.priority ?? "normal",
87
88
  className: k({ size: a, interactive: t, className: u }),
@@ -110,4 +111,4 @@ export {
110
111
  w as T,
111
112
  S as i
112
113
  };
113
- //# sourceMappingURL=task-card-yW7tKlG4.js.map
114
+ //# sourceMappingURL=task-card-CY5ztNkU.js.map
@@ -0,0 +1,22 @@
1
+ const t = {
2
+ id: "task-card",
3
+ capabilities: ["dismiss"],
4
+ state: {},
5
+ actions: {},
6
+ domHooks: {
7
+ root: {
8
+ attr: "data-component",
9
+ value: "task-card",
10
+ description: "Marks the element as a kit TaskCard. The card root also emits data-component-id sourced from item.id and data-status with the current lifecycle."
11
+ },
12
+ instanceId: {
13
+ attr: "data-component-id",
14
+ sourceProp: "item.id",
15
+ description: "Sourced from item.id — the stable task identifier."
16
+ }
17
+ }
18
+ };
19
+ export {
20
+ t
21
+ };
22
+ //# sourceMappingURL=task-card.agent-CUPKYd7w.js.map
@@ -0,0 +1,194 @@
1
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
+ import { forwardRef as A, useRef as j, useMemo as q, useImperativeHandle as z } from "react";
3
+ import { c as M } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as S } from "react-i18next";
5
+ import { I as _ } from "./icon-button-Wnnde5lc.js";
6
+ import { S as C } from "./skeleton-dtqyF09N.js";
7
+ import { E as K } from "./empty-state-DQPtRp2b.js";
8
+ import { T as E } from "./task-card-CY5ztNkU.js";
9
+ import { u as L } from "./registry-C9nwlNyL.js";
10
+ import { c as P } from "./createLucideIcon-CrFbzy84.js";
11
+ import { P as H } from "./plus-CYKNmfuA.js";
12
+ /**
13
+ * @license lucide-react v1.8.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */
18
+ const V = [
19
+ ["path", { d: "M13 5h8", key: "a7qcls" }],
20
+ ["path", { d: "M13 12h8", key: "h98zly" }],
21
+ ["path", { d: "M13 19h8", key: "c3s6r1" }],
22
+ ["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
23
+ ["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1", key: "cif1o7" }]
24
+ ], B = P("list-todo", V), F = {
25
+ id: "task-tray",
26
+ capabilities: ["select_single", "dismiss"],
27
+ state: {
28
+ items: {
29
+ type: "Array<{ id: string; status: string }>",
30
+ descriptionKey: "ui.agent.taskTray.state.items",
31
+ description: "Currently-displayed tasks. Ids + status only — never task title / patient.",
32
+ read: (e) => e.getItems()
33
+ }
34
+ },
35
+ actions: {
36
+ select_item: {
37
+ safety: "read",
38
+ argsType: "{ id: string }",
39
+ descriptionKey: "ui.agent.taskTray.actions.selectItem",
40
+ description: "Activate the task with the given id.",
41
+ invoke: (e, s) => {
42
+ e.selectItem(s.id);
43
+ }
44
+ },
45
+ toggle_done: {
46
+ safety: "write",
47
+ argsType: "{ id: string }",
48
+ descriptionKey: "ui.agent.taskTray.actions.toggleDone",
49
+ description: "Request the host to toggle the done state of a task.",
50
+ invoke: (e, s) => {
51
+ e.toggleDone(s.id);
52
+ }
53
+ },
54
+ dismiss: {
55
+ safety: "destructive",
56
+ argsType: "{ id: string }",
57
+ descriptionKey: "ui.agent.taskTray.actions.dismiss",
58
+ description: "Request the host to dismiss / remove the task with the given id.",
59
+ invoke: (e, s) => {
60
+ e.dismiss(s.id);
61
+ }
62
+ }
63
+ },
64
+ domHooks: {
65
+ root: {
66
+ attr: "data-component",
67
+ value: "task-tray",
68
+ description: "Marks the TaskTray wrapper."
69
+ },
70
+ instanceId: {
71
+ attr: "data-component-id",
72
+ sourceProp: "id",
73
+ description: "Sourced from the id prop. Required to address a specific tray from the agent."
74
+ },
75
+ item: {
76
+ attr: "data-task-id",
77
+ description: "Stable task id emitted on each rendered TaskCard inside the tray."
78
+ }
79
+ }
80
+ }, G = M(
81
+ [
82
+ "ds:flex ds:flex-col",
83
+ "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
84
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
85
+ "ds:overflow-hidden"
86
+ ].join(" "),
87
+ {
88
+ variants: {
89
+ size: {
90
+ sm: "",
91
+ md: ""
92
+ }
93
+ },
94
+ defaultVariants: {
95
+ size: "sm"
96
+ }
97
+ }
98
+ ), J = A(
99
+ ({
100
+ id: e,
101
+ items: s,
102
+ title: k,
103
+ size: y = "sm",
104
+ onOpenTask: r,
105
+ onToggleDone: n,
106
+ onDismissTask: c,
107
+ onAddTask: f,
108
+ addLabel: v,
109
+ loading: h = !1,
110
+ emptyTitle: x,
111
+ emptyDescription: w,
112
+ className: I,
113
+ ...N
114
+ }, T) => {
115
+ const { t: l } = S(), g = k ?? l("ui.taskTray.title", "Tasks"), b = v ?? l("ui.taskTray.add", "Add task"), R = !h && s.length === 0;
116
+ let m;
117
+ h ? m = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ a(C, { variant: "rectangular", height: "2.5rem" }, t)) }) : R ? m = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
118
+ K,
119
+ {
120
+ variant: "first-use",
121
+ size: "sm",
122
+ title: x ?? l("ui.taskTray.empty.title", "No tasks yet"),
123
+ description: w ?? l("ui.taskTray.empty.description", "New tasks will appear here.")
124
+ }
125
+ ) }) : m = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col", children: s.map((t) => /* @__PURE__ */ a(
126
+ E,
127
+ {
128
+ item: t,
129
+ size: y,
130
+ onActivate: r,
131
+ "data-task-id": t.id
132
+ },
133
+ t.id
134
+ )) });
135
+ const d = j(s);
136
+ d.current = s;
137
+ const p = q(
138
+ () => ({
139
+ getItems: () => d.current.map((t) => ({
140
+ id: t.id,
141
+ status: t.status ?? "open"
142
+ })),
143
+ selectItem: (t) => {
144
+ const i = d.current.find((o) => o.id === t);
145
+ i && (r == null || r(i));
146
+ },
147
+ toggleDone: (t) => {
148
+ const i = d.current.find((o) => o.id === t);
149
+ i && (n == null || n(i));
150
+ },
151
+ dismiss: (t) => {
152
+ const i = d.current.find((o) => o.id === t);
153
+ i && (c == null || c(i));
154
+ }
155
+ }),
156
+ [r, n, c]
157
+ );
158
+ return z(T, () => p, [p]), L(F, p, e), /* @__PURE__ */ u(
159
+ "section",
160
+ {
161
+ "aria-label": g,
162
+ "data-component": "task-tray",
163
+ "data-component-id": e,
164
+ className: G({ size: y, className: I }),
165
+ ...N,
166
+ children: [
167
+ /* @__PURE__ */ u("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
168
+ /* @__PURE__ */ u("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
169
+ /* @__PURE__ */ a(B, { "aria-hidden": "true", className: "ds:size-4" }),
170
+ g
171
+ ] }),
172
+ f ? /* @__PURE__ */ a(
173
+ _,
174
+ {
175
+ icon: /* @__PURE__ */ a(H, {}),
176
+ intent: "outline",
177
+ size: "sm",
178
+ "aria-label": b,
179
+ onClick: f
180
+ }
181
+ ) : null
182
+ ] }),
183
+ m
184
+ ]
185
+ }
186
+ );
187
+ }
188
+ );
189
+ J.displayName = "TaskTray";
190
+ export {
191
+ J as T,
192
+ F as t
193
+ };
194
+ //# sourceMappingURL=task-tray-CCoUdorl.js.map