@alfadocs/ui-kit 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/README.md +30 -0
  2. package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
  3. package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
  4. package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
  5. package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
  6. package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
  7. package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
  8. package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
  9. package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
  10. package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
  11. package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
  12. package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
  13. package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
  14. package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
  15. package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
  16. package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
  17. package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
  18. package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
  19. package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
  20. package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
  21. package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
  22. package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
  23. package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
  24. package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
  25. package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
  26. package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
  27. package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
  28. package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
  29. package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
  30. package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
  31. package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
  32. package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
  33. package/dist/_chunks/file-upload-C947ACDK.js +829 -0
  34. package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
  35. package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
  36. package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
  37. package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
  38. package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
  39. package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
  40. package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
  41. package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
  42. package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
  43. package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
  44. package/dist/_chunks/list-qP6p0NTw.js +434 -0
  45. package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
  46. package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
  47. package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
  48. package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
  49. package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
  50. package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
  51. package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
  52. package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
  53. package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
  54. package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
  55. package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
  56. package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
  57. package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
  58. package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
  59. package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
  60. package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
  61. package/dist/_chunks/popover-DekUKNBk.js +293 -0
  62. package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
  63. package/dist/_chunks/progress-C11tqhoI.js +298 -0
  64. package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
  65. package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
  66. package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
  67. package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
  68. package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
  69. package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
  70. package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
  71. package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
  72. package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
  73. package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
  74. package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
  75. package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
  76. package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
  77. package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
  78. package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
  79. package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
  80. package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
  81. package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
  82. package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
  83. package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
  84. package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
  85. package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
  86. package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
  87. package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
  88. package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
  89. package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
  90. package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
  91. package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
  92. package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
  93. package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
  94. package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
  95. package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
  96. package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
  97. package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
  98. package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
  99. package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
  100. package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
  101. package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
  102. package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
  103. package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
  104. package/dist/agent-catalog.json +580 -15
  105. package/dist/components/_shared/index.d.ts +2 -2
  106. package/dist/components/accordion/index.d.ts +1 -1
  107. package/dist/components/accordion/index.js +5 -6
  108. package/dist/components/agenda-card/index.js +1 -1
  109. package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
  110. package/dist/components/agenda-tray/index.js +1 -1
  111. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
  112. package/dist/components/ai-prompt-input/index.js +1 -1
  113. package/dist/components/alert/index.d.ts +1 -1
  114. package/dist/components/alert/index.js +1 -1
  115. package/dist/components/app-frame/index.js +1 -1
  116. package/dist/components/audio-recorder/index.js +1 -1
  117. package/dist/components/audio-visualiser/index.js +1 -1
  118. package/dist/components/autocomplete/index.js +1 -1
  119. package/dist/components/badge/index.js +1 -1
  120. package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
  121. package/dist/components/breadcrumb/index.js +1 -1
  122. package/dist/components/button/index.js +2 -2
  123. package/dist/components/calendar/index.js +1 -1
  124. package/dist/components/card/index.js +1 -1
  125. package/dist/components/chart/index.d.ts +1 -1
  126. package/dist/components/chart/index.js +1 -1
  127. package/dist/components/chat-container/chat-container.d.ts +1 -1
  128. package/dist/components/chat-container/index.js +2 -3
  129. package/dist/components/chat-input/chat-input.d.ts +1 -1
  130. package/dist/components/chat-input/index.js +3 -4
  131. package/dist/components/chat-message/index.js +1 -1
  132. package/dist/components/checkbox-group/index.d.ts +1 -1
  133. package/dist/components/collapsible/collapsible.d.ts +1 -1
  134. package/dist/components/collapsible/index.d.ts +1 -1
  135. package/dist/components/collapsible/index.js +1 -1
  136. package/dist/components/color-picker/index.js +1 -1
  137. package/dist/components/combobox/index.d.ts +1 -1
  138. package/dist/components/combobox/index.js +1 -1
  139. package/dist/components/command-palette/command-palette.d.ts +46 -13
  140. package/dist/components/command-palette/index.js +1 -1
  141. package/dist/components/data-table/data-table.d.ts +3 -1
  142. package/dist/components/data-table/index.js +1 -1
  143. package/dist/components/data-table/toolbar.d.ts +6 -5
  144. package/dist/components/date-picker/date-picker.d.ts +1 -1
  145. package/dist/components/date-picker/index.d.ts +1 -1
  146. package/dist/components/date-picker/index.js +1 -1
  147. package/dist/components/date-range-picker/index.js +1 -1
  148. package/dist/components/date-time-picker/index.d.ts +1 -1
  149. package/dist/components/date-time-picker/index.js +1 -1
  150. package/dist/components/description-list/description-list.d.ts +1 -2
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/dialog/dialog.d.ts +2 -2
  153. package/dist/components/dialog/index.js +1 -1
  154. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
  155. package/dist/components/dropdown-menu/index.js +3 -4
  156. package/dist/components/empty-state/index.js +1 -1
  157. package/dist/components/file-upload/index.d.ts +1 -1
  158. package/dist/components/file-upload/index.js +1 -1
  159. package/dist/components/floating-action-button/index.js +1 -1
  160. package/dist/components/form-field/index.js +2 -2
  161. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  162. package/dist/components/freemium-paywall/index.js +1 -1
  163. package/dist/components/header/index.js +1 -1
  164. package/dist/components/icon-button/index.js +1 -1
  165. package/dist/components/kbd/index.js +1 -1
  166. package/dist/components/key-value-pair/index.js +1 -1
  167. package/dist/components/link/index.js +1 -1
  168. package/dist/components/list/index.js +1 -1
  169. package/dist/components/logo/index.js +1 -1
  170. package/dist/components/matrix-rain/index.js +1 -1
  171. package/dist/components/message-card/index.d.ts +1 -1
  172. package/dist/components/message-card/index.js +1 -1
  173. package/dist/components/message-tray/index.js +1 -1
  174. package/dist/components/message-tray/message-tray.d.ts +1 -1
  175. package/dist/components/multi-select/index.js +1 -1
  176. package/dist/components/navigation-menu/index.js +1 -1
  177. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  178. package/dist/components/notification-card/index.d.ts +1 -1
  179. package/dist/components/notification-card/index.js +1 -1
  180. package/dist/components/notification-tray/index.js +1 -1
  181. package/dist/components/notification-tray/notification-tray.d.ts +1 -1
  182. package/dist/components/number-input/index.js +1 -1
  183. package/dist/components/otp-input/index.js +1 -1
  184. package/dist/components/pagination/index.js +1 -1
  185. package/dist/components/pagination/pagination.d.ts +4 -6
  186. package/dist/components/password-input/index.js +1 -1
  187. package/dist/components/payment-form/index.js +7 -8
  188. package/dist/components/payment-form/payment-form.d.ts +1 -1
  189. package/dist/components/pdf-viewer/index.js +1 -1
  190. package/dist/components/phone-input/index.d.ts +1 -1
  191. package/dist/components/phone-input/index.js +1 -1
  192. package/dist/components/popover/index.js +3 -4
  193. package/dist/components/privacy-lock/index.js +1 -1
  194. package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
  195. package/dist/components/progress/index.js +3 -4
  196. package/dist/components/recaptcha-widget/index.js +1 -1
  197. package/dist/components/resizable/index.d.ts +1 -1
  198. package/dist/components/resizable/index.js +1 -1
  199. package/dist/components/rich-text-editor/index.js +1 -1
  200. package/dist/components/scroll-area/index.js +1 -1
  201. package/dist/components/search-bar/index.js +1 -1
  202. package/dist/components/search-bar/search-bar.d.ts +1 -1
  203. package/dist/components/search-input/index.js +1 -1
  204. package/dist/components/select/index.js +1 -1
  205. package/dist/components/select/select.d.ts +1 -1
  206. package/dist/components/separator/index.js +1 -1
  207. package/dist/components/sheet/index.js +3 -4
  208. package/dist/components/sheet/sheet.d.ts +2 -2
  209. package/dist/components/sidebar/index.js +7 -8
  210. package/dist/components/sidebar/sidebar.d.ts +0 -2
  211. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  212. package/dist/components/signature-capture/index.js +1 -1
  213. package/dist/components/skeleton/index.js +1 -1
  214. package/dist/components/slider/index.js +1 -1
  215. package/dist/components/slot-grid/index.js +1 -1
  216. package/dist/components/sparkline/index.js +1 -1
  217. package/dist/components/spinner/index.js +1 -1
  218. package/dist/components/stat/index.js +1 -1
  219. package/dist/components/stepper-calendar/index.js +1 -1
  220. package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
  221. package/dist/components/stepper-progress/index.d.ts +1 -1
  222. package/dist/components/stepper-progress/index.js +1 -2
  223. package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
  224. package/dist/components/suggestion-chip/index.js +1 -1
  225. package/dist/components/switch/index.js +1 -1
  226. package/dist/components/tabs/index.d.ts +1 -1
  227. package/dist/components/tabs/index.js +1 -1
  228. package/dist/components/tag/index.js +1 -1
  229. package/dist/components/task-card/index.js +1 -1
  230. package/dist/components/task-tray/index.js +1 -1
  231. package/dist/components/task-tray/task-tray.d.ts +1 -1
  232. package/dist/components/text-area/index.js +1 -1
  233. package/dist/components/text-input/index.js +1 -1
  234. package/dist/components/theme-root/index.js +1 -1
  235. package/dist/components/theme-toggle/index.js +1 -1
  236. package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
  237. package/dist/components/time-picker/index.js +1 -1
  238. package/dist/components/time-picker/time-picker.d.ts +1 -1
  239. package/dist/components/timeline/index.js +1 -1
  240. package/dist/components/timeline/timeline.d.ts +1 -1
  241. package/dist/components/toast/index.js +1 -1
  242. package/dist/components/tooth-scheme/index.js +1 -1
  243. package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
  244. package/dist/components/transcript-panel/index.js +1 -1
  245. package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
  246. package/dist/components/typing-indicator/index.js +1 -1
  247. package/dist/components/visually-hidden/index.js +1 -1
  248. package/dist/components/warning-stack/index.js +1 -1
  249. package/dist/components/workflow/index.js +1 -1
  250. package/dist/components/workflow/workflow-editor.d.ts +1 -1
  251. package/dist/hooks/index.js +1 -1
  252. package/dist/index.js +392 -402
  253. package/dist/patterns/leo-assistant/index.js +1 -1
  254. package/dist/patterns/patient-shell/index.js +1 -1
  255. package/dist/safe-html/index.js +20 -3
  256. package/dist/tokens.css +2 -2
  257. package/package.json +12 -2
  258. package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
  259. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
  260. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
  261. package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
  262. package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
  263. package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
  264. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
  265. package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
  266. package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
  267. package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
  268. package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
  269. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
  270. package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
  271. package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
  272. package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
  273. package/dist/_chunks/popover-kFN8s84V.js +0 -229
  274. package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
  275. package/dist/_chunks/progress-wNsqkw8I.js +0 -253
  276. package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
  277. package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
  278. package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
  279. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
  280. package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
  281. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
@@ -1,21 +1,60 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as m, useMemo as N, useRef as T, useState as R, useCallback as V, useImperativeHandle as I, useContext as v, createContext as C } from "react";
3
- import { c as g } from "./index-D2ZczOXr.js";
4
- import { useTranslation as O } from "react-i18next";
2
+ import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback as I, useImperativeHandle as O, useContext as u, createContext as C } from "react";
3
+ import { c as b } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as A } from "react-i18next";
5
5
  import { A as P } from "./avatar-Dcr6XuDQ.js";
6
- import { C as w } from "./card-BEy58ZKp.js";
7
- import { T as A } from "./timestamp-BV2lC-wV.js";
8
- import { C as B } from "./circle-BkqTgYmt.js";
9
- import { X as q } from "./x-CCcI3eJp.js";
10
- import { T as D } from "./triangle-alert-CBPUIzQo.js";
11
- import { C as H } from "./check-DPdL_Sm7.js";
12
- import { I as M } from "./info-B9XNKn05.js";
13
- const u = C({
6
+ import { C as N } from "./card-CWzuTLYE.js";
7
+ import { T as B } from "./timestamp-BV2lC-wV.js";
8
+ import { u as H } from "./registry-C9nwlNyL.js";
9
+ import { C as q } from "./circle-BkqTgYmt.js";
10
+ import { X as D } from "./x-CCcI3eJp.js";
11
+ import { T as M } from "./triangle-alert-CBPUIzQo.js";
12
+ import { C as $ } from "./check-DPdL_Sm7.js";
13
+ import { I as F } from "./info-B9XNKn05.js";
14
+ const K = {
15
+ id: "timeline",
16
+ capabilities: ["pick", "range_navigate"],
17
+ state: {
18
+ selectedEvent: {
19
+ type: "string | null",
20
+ descriptionKey: "ui.agent.timeline.state.selectedEvent",
21
+ description: "Opaque event id of the currently-active event, or null.",
22
+ read: (t) => t.getSelectedEvent()
23
+ }
24
+ },
25
+ actions: {
26
+ select_event: {
27
+ safety: "read",
28
+ argsType: "{ id: string }",
29
+ descriptionKey: "ui.agent.timeline.actions.selectEvent",
30
+ description: "Scroll the given event into view and mark it as selected.",
31
+ invoke: (t, r) => {
32
+ t.selectEvent(r.id);
33
+ }
34
+ }
35
+ },
36
+ domHooks: {
37
+ root: {
38
+ attr: "data-component",
39
+ value: "timeline",
40
+ description: "Marks the Timeline root."
41
+ },
42
+ instanceId: {
43
+ attr: "data-component-id",
44
+ sourceProp: "id",
45
+ description: "Sourced from the id prop."
46
+ },
47
+ item: {
48
+ attr: "data-event-id",
49
+ description: "Opaque event id emitted on each Timeline.Event when the `eventId` prop is provided."
50
+ }
51
+ }
52
+ }, v = C({
14
53
  layout: "rail-start",
15
54
  order: "newest-first"
16
- }), p = C({
55
+ }), g = C({
17
56
  type: "neutral"
18
- }), $ = g("ds:flex ds:flex-col", {
57
+ }), U = b("ds:flex ds:flex-col", {
19
58
  variants: {
20
59
  layout: {
21
60
  "rail-start": "ds:ps-4",
@@ -28,7 +67,7 @@ const u = C({
28
67
  }
29
68
  },
30
69
  defaultVariants: { layout: "rail-start", order: "newest-first" }
31
- }), F = g(
70
+ }), W = b(
32
71
  "ds:relative ds:flex ds:gap-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
33
72
  {
34
73
  variants: {
@@ -53,7 +92,7 @@ const u = C({
53
92
  },
54
93
  defaultVariants: { layout: "rail-start" }
55
94
  }
56
- ), K = g(
95
+ ), Y = b(
57
96
  [
58
97
  "ds:relative ds:z-10 ds:flex ds:items-center ds:justify-center",
59
98
  "ds:rounded-[var(--radius-full)] ds:shrink-0",
@@ -72,12 +111,12 @@ const u = C({
72
111
  },
73
112
  defaultVariants: { type: "neutral" }
74
113
  }
75
- ), U = {
76
- info: /* @__PURE__ */ e(M, { size: 16, "aria-hidden": "true" }),
77
- success: /* @__PURE__ */ e(H, { size: 16, "aria-hidden": "true" }),
78
- warning: /* @__PURE__ */ e(D, { size: 16, "aria-hidden": "true" }),
79
- error: /* @__PURE__ */ e(q, { size: 16, "aria-hidden": "true" }),
80
- neutral: /* @__PURE__ */ e(B, { size: 16, "aria-hidden": "true" })
114
+ ), X = {
115
+ info: /* @__PURE__ */ e(F, { size: 16, "aria-hidden": "true" }),
116
+ success: /* @__PURE__ */ e($, { size: 16, "aria-hidden": "true" }),
117
+ warning: /* @__PURE__ */ e(M, { size: 16, "aria-hidden": "true" }),
118
+ error: /* @__PURE__ */ e(D, { size: 16, "aria-hidden": "true" }),
119
+ neutral: /* @__PURE__ */ e(q, { size: 16, "aria-hidden": "true" })
81
120
  }, E = m(
82
121
  ({
83
122
  layout: t = "rail-start",
@@ -86,31 +125,30 @@ const u = C({
86
125
  children: i,
87
126
  ...n
88
127
  }, a) => {
89
- const d = N(() => ({ layout: t, order: r }), [t, r]), l = T(null), [o, z] = R(null), b = T(null);
90
- b.current = o;
91
- const h = V((x) => {
92
- var y;
93
- z(x);
94
- const f = (y = l.current) == null ? void 0 : y.querySelector(
95
- `[data-event-id="${x}"]`
128
+ const d = p(() => ({ layout: t, order: r }), [t, r]), o = w(null), [l, z] = V(null), h = w(null);
129
+ h.current = l;
130
+ const x = I((y) => {
131
+ var T;
132
+ z(y);
133
+ const f = (T = o.current) == null ? void 0 : T.querySelector(
134
+ `[data-event-id="${y}"]`
96
135
  );
97
136
  f == null || f.scrollIntoView({ block: "center", behavior: "auto" });
98
- }, []);
99
- return I(
100
- a,
137
+ }, []), R = p(
101
138
  () => ({
102
- getSelectedEvent: () => b.current,
103
- selectEvent: h
139
+ getSelectedEvent: () => h.current,
140
+ selectEvent: x
104
141
  }),
105
- [h]
106
- ), /* @__PURE__ */ e(u.Provider, { value: d, children: /* @__PURE__ */ e(
142
+ [x]
143
+ );
144
+ return O(a, () => o.current, []), H(K, R, n.id), /* @__PURE__ */ e(v.Provider, { value: d, children: /* @__PURE__ */ e(
107
145
  "ol",
108
146
  {
109
- ref: l,
147
+ ref: o,
110
148
  "data-component": "timeline",
111
149
  "data-component-id": n.id,
112
- "data-selected-event": o ?? void 0,
113
- className: $({ layout: t, order: r, className: s }),
150
+ "data-selected-event": l ?? void 0,
151
+ className: U({ layout: t, order: r, className: s }),
114
152
  ...n,
115
153
  children: i
116
154
  }
@@ -120,8 +158,8 @@ const u = C({
120
158
  E.displayName = "Timeline";
121
159
  const S = m(
122
160
  ({ type: t = "neutral", eventId: r, className: s, children: i, ...n }, a) => {
123
- const { layout: d } = v(u), { t: l } = O(), o = N(() => ({ type: t }), [t]);
124
- return d === "alternating" ? /* @__PURE__ */ e(p.Provider, { value: o, children: /* @__PURE__ */ c(
161
+ const { layout: d } = u(v), { t: o } = A(), l = p(() => ({ type: t }), [t]);
162
+ return d === "alternating" ? /* @__PURE__ */ e(g.Provider, { value: l, children: /* @__PURE__ */ c(
125
163
  "li",
126
164
  {
127
165
  ref: a,
@@ -129,19 +167,19 @@ const S = m(
129
167
  className: ["ds:contents", s].filter(Boolean).join(" "),
130
168
  ...n,
131
169
  children: [
132
- /* @__PURE__ */ e("span", { className: "ds:sr-only", children: l(`ui.timeline.type.${t}`) }),
170
+ /* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`ui.timeline.type.${t}`) }),
133
171
  i
134
172
  ]
135
173
  }
136
- ) }) : /* @__PURE__ */ e(p.Provider, { value: o, children: /* @__PURE__ */ c(
174
+ ) }) : /* @__PURE__ */ e(g.Provider, { value: l, children: /* @__PURE__ */ c(
137
175
  "li",
138
176
  {
139
177
  ref: a,
140
178
  "data-event-id": r,
141
- className: F({ layout: d, className: s }),
179
+ className: W({ layout: d, className: s }),
142
180
  ...n,
143
181
  children: [
144
- /* @__PURE__ */ e("span", { className: "ds:sr-only", children: l(`ui.timeline.type.${t}`) }),
182
+ /* @__PURE__ */ e("span", { className: "ds:sr-only", children: o(`ui.timeline.type.${t}`) }),
145
183
  i
146
184
  ]
147
185
  }
@@ -151,14 +189,14 @@ const S = m(
151
189
  S.displayName = "Timeline.Event";
152
190
  const _ = m(
153
191
  ({ icon: t, className: r, ...s }, i) => {
154
- const { type: n } = v(p), { layout: a } = v(u), d = /* @__PURE__ */ e(
192
+ const { type: n } = u(g), { layout: a } = u(v), d = /* @__PURE__ */ e(
155
193
  "div",
156
194
  {
157
195
  ref: i,
158
196
  "aria-hidden": "true",
159
- className: K({ type: n, className: r }),
197
+ className: Y({ type: n, className: r }),
160
198
  ...s,
161
- children: t ?? U[n]
199
+ children: t ?? X[n]
162
200
  }
163
201
  );
164
202
  return a === "alternating" ? /* @__PURE__ */ c(
@@ -178,7 +216,7 @@ const _ = m(
178
216
  _.displayName = "Timeline.Dot";
179
217
  const k = m(
180
218
  ({ title: t, description: r, actor: s, children: i, className: n, ...a }, d) => {
181
- const { layout: l } = v(u), o = /* @__PURE__ */ e(
219
+ const { layout: o } = u(v), l = /* @__PURE__ */ e(
182
220
  "div",
183
221
  {
184
222
  ref: d,
@@ -188,7 +226,7 @@ const k = m(
188
226
  n
189
227
  ].filter(Boolean).join(" "),
190
228
  ...a,
191
- children: /* @__PURE__ */ e(w, { variant: "outlined", children: /* @__PURE__ */ c(w.Body, { children: [
229
+ children: /* @__PURE__ */ e(N, { variant: "outlined", children: /* @__PURE__ */ c(N.Body, { children: [
192
230
  /* @__PURE__ */ e("p", { className: "type-label ds:text-[var(--foreground)]", children: t }),
193
231
  r && /* @__PURE__ */ e("p", { className: "ds:mt-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: r }),
194
232
  s && /* @__PURE__ */ c("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
@@ -199,11 +237,11 @@ const k = m(
199
237
  ] }) })
200
238
  }
201
239
  );
202
- return l === "alternating" ? /* @__PURE__ */ e("div", { className: "ds:col-span-1 ds:[li:nth-child(even)_&]:col-start-3 ds:[li:nth-child(odd)_&]:col-start-1", children: o }) : o;
240
+ return o === "alternating" ? /* @__PURE__ */ e("div", { className: "ds:col-span-1 ds:[li:nth-child(even)_&]:col-start-3 ds:[li:nth-child(odd)_&]:col-start-1", children: l }) : l;
203
241
  }
204
242
  );
205
243
  k.displayName = "Timeline.Content";
206
- const W = 1440 * 60 * 1e3, j = m(
244
+ const G = 1440 * 60 * 1e3, j = m(
207
245
  ({
208
246
  date: t,
209
247
  relative: r = !0,
@@ -211,12 +249,12 @@ const W = 1440 * 60 * 1e3, j = m(
211
249
  className: i,
212
250
  ...n
213
251
  }, a) => /* @__PURE__ */ e(
214
- A,
252
+ B,
215
253
  {
216
254
  ref: a,
217
255
  value: t,
218
256
  format: r ? "relative" : "absolute",
219
- relativeWindow: r ? W : void 0,
257
+ relativeWindow: r ? G : void 0,
220
258
  absoluteFormat: s,
221
259
  className: [
222
260
  "ds:text-[var(--muted-foreground)]",
@@ -228,52 +266,14 @@ const W = 1440 * 60 * 1e3, j = m(
228
266
  )
229
267
  );
230
268
  j.displayName = "Timeline.Timestamp";
231
- const ie = Object.assign(E, {
269
+ const le = Object.assign(E, {
232
270
  Event: S,
233
271
  Dot: _,
234
272
  Content: k,
235
273
  Timestamp: j
236
- }), ae = {
237
- id: "timeline",
238
- capabilities: ["pick", "range_navigate"],
239
- state: {
240
- selectedEvent: {
241
- type: "string | null",
242
- descriptionKey: "ui.agent.timeline.state.selectedEvent",
243
- description: "Opaque event id of the currently-active event, or null.",
244
- read: (t) => t.getSelectedEvent()
245
- }
246
- },
247
- actions: {
248
- select_event: {
249
- safety: "read",
250
- argsType: "{ id: string }",
251
- descriptionKey: "ui.agent.timeline.actions.selectEvent",
252
- description: "Scroll the given event into view and mark it as selected.",
253
- invoke: (t, r) => {
254
- t.selectEvent(r.id);
255
- }
256
- }
257
- },
258
- domHooks: {
259
- root: {
260
- attr: "data-component",
261
- value: "timeline",
262
- description: "Marks the Timeline root."
263
- },
264
- instanceId: {
265
- attr: "data-component-id",
266
- sourceProp: "id",
267
- description: "Sourced from the id prop."
268
- },
269
- item: {
270
- attr: "data-event-id",
271
- description: "Opaque event id emitted on each Timeline.Event when the `eventId` prop is provided."
272
- }
273
- }
274
- };
274
+ });
275
275
  export {
276
- ie as T,
277
- ae as t
276
+ le as T,
277
+ K as t
278
278
  };
279
- //# sourceMappingURL=timeline.agent-CRPza9wc.js.map
279
+ //# sourceMappingURL=timeline-BvmnQadS.js.map
@@ -2,7 +2,7 @@ import { jsx as P, jsxs as Ht } from "react/jsx-runtime";
2
2
  import s, { useState as Ot, useEffect as jt } from "react";
3
3
  import te from "react-dom";
4
4
  import { useTranslation as ee } from "react-i18next";
5
- import { I as ae } from "./icon-button-Wnnde5lc.js";
5
+ import { I as ae } from "./icon-button-C4CGcYuz.js";
6
6
  import { X as se } from "./x-CCcI3eJp.js";
7
7
  import { C as oe } from "./circle-x-Du2CmjaU.js";
8
8
  import { T as ne } from "./triangle-alert-CBPUIzQo.js";
@@ -748,10 +748,38 @@ const Ae = /* @__PURE__ */ s.forwardRef(function(a, e) {
748
748
  })) : null;
749
749
  }));
750
750
  }), ze = {
751
- info: /* @__PURE__ */ P(ie, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--info)]" }),
752
- success: /* @__PURE__ */ P(re, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--success)]" }),
753
- warning: /* @__PURE__ */ P(ne, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--warning)]" }),
754
- error: /* @__PURE__ */ P(oe, { "aria-hidden": "true", size: 20, className: "ds:shrink-0 ds:text-[var(--destructive)]" })
751
+ info: /* @__PURE__ */ P(
752
+ ie,
753
+ {
754
+ "aria-hidden": "true",
755
+ size: 20,
756
+ className: "ds:shrink-0 ds:text-[var(--info)]"
757
+ }
758
+ ),
759
+ success: /* @__PURE__ */ P(
760
+ re,
761
+ {
762
+ "aria-hidden": "true",
763
+ size: 20,
764
+ className: "ds:shrink-0 ds:text-[var(--success)]"
765
+ }
766
+ ),
767
+ warning: /* @__PURE__ */ P(
768
+ ne,
769
+ {
770
+ "aria-hidden": "true",
771
+ size: 20,
772
+ className: "ds:shrink-0 ds:text-[var(--warning)]"
773
+ }
774
+ ),
775
+ error: /* @__PURE__ */ P(
776
+ oe,
777
+ {
778
+ "aria-hidden": "true",
779
+ size: 20,
780
+ className: "ds:shrink-0 ds:text-[var(--destructive)]"
781
+ }
782
+ )
755
783
  };
756
784
  let $t = "Close", Nt = !1;
757
785
  const et = /* @__PURE__ */ new Set();
@@ -785,7 +813,10 @@ function Oe({
785
813
  const i = new MutationObserver(() => {
786
814
  b(document.documentElement.dir || "ltr");
787
815
  });
788
- return i.observe(document.documentElement, { attributes: !0, attributeFilter: ["dir"] }), () => i.disconnect();
816
+ return i.observe(document.documentElement, {
817
+ attributes: !0,
818
+ attributeFilter: ["dir"]
819
+ }), () => i.disconnect();
789
820
  }, [c]), c ? /* @__PURE__ */ P(
790
821
  Ae,
791
822
  {
@@ -825,7 +856,14 @@ function je(o, a, e, n) {
825
856
  ze[o],
826
857
  /* @__PURE__ */ Ht("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
827
858
  /* @__PURE__ */ P("span", { dir: "auto", className: "type-label ds:leading-snug ds:break-words", children: a }),
828
- n && /* @__PURE__ */ P("span", { dir: "auto", className: "type-body-sm ds:text-[var(--muted-foreground)] ds:break-words", children: n })
859
+ n && /* @__PURE__ */ P(
860
+ "span",
861
+ {
862
+ dir: "auto",
863
+ className: "type-body-sm ds:text-[var(--muted-foreground)] ds:break-words",
864
+ children: n
865
+ }
866
+ )
829
867
  ] }),
830
868
  /* @__PURE__ */ P(
831
869
  ae,
@@ -942,4 +980,4 @@ export {
942
980
  Je as e,
943
981
  ea as t
944
982
  };
945
- //# sourceMappingURL=toast.agent-BjEGuq1Z.js.map
983
+ //# sourceMappingURL=toast.agent-BwKXA0km.js.map