@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,10 +1,56 @@
1
1
  import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as $, useState as E, useRef as S, useId as K, useMemo as I, useCallback as C, useLayoutEffect as A, useImperativeHandle as _, Fragment as j } from "react";
3
- import { c as O } from "./index-D2ZczOXr.js";
4
- import { useTranslation as V } from "react-i18next";
5
- import { u as D } from "./index-CJE9uQmb.js";
6
- import { S as F } from "./search-input-Xw3cdWXW.js";
7
- const H = O(
2
+ import { forwardRef as K, useState as A, useRef as x, useId as _, useMemo as w, useCallback as R, useLayoutEffect as j, useImperativeHandle as O, Fragment as V } from "react";
3
+ import { c as D } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as F } from "react-i18next";
5
+ import { u as H } from "./registry-C9nwlNyL.js";
6
+ import { u as q } from "./index-CJE9uQmb.js";
7
+ import { S as B } from "./search-input-CdJIEjFo.js";
8
+ const U = {
9
+ id: "transcript-panel",
10
+ capabilities: ["select_single"],
11
+ state: {
12
+ selectedTurn: {
13
+ type: "string | null",
14
+ descriptionKey: "ui.agent.transcriptPanel.state.selectedTurn",
15
+ description: "Opaque id (line index) of the currently-active turn, or null when none is active.",
16
+ read: (t) => t.getSelectedTurn()
17
+ }
18
+ },
19
+ actions: {
20
+ focus_turn: {
21
+ safety: "read",
22
+ argsType: "{ id: string }",
23
+ descriptionKey: "ui.agent.transcriptPanel.actions.focusTurn",
24
+ description: "Scroll the given turn into view and focus its seek button.",
25
+ invoke: (t, n) => {
26
+ t.focusTurn(n.id);
27
+ }
28
+ },
29
+ copy_turn: {
30
+ safety: "read",
31
+ argsType: "{ id: string }",
32
+ descriptionKey: "ui.agent.transcriptPanel.actions.copyTurn",
33
+ description: "Copy the given turn's text to the clipboard.",
34
+ invoke: (t, n) => t.copyTurn(n.id)
35
+ }
36
+ },
37
+ domHooks: {
38
+ root: {
39
+ attr: "data-component",
40
+ value: "transcript-panel",
41
+ description: "Marks the TranscriptPanel wrapper."
42
+ },
43
+ instanceId: {
44
+ attr: "data-component-id",
45
+ sourceProp: "id",
46
+ description: "Sourced from the id prop."
47
+ },
48
+ item: {
49
+ attr: "data-turn-id",
50
+ description: "Stable opaque turn id (line index). Never carries the turn's dictated text."
51
+ }
52
+ }
53
+ }, G = D(
8
54
  [
9
55
  "ds:flex ds:flex-col ds:w-full ds:min-h-0",
10
56
  "ds:rounded-[var(--radius-md)] ds:border ds:border-border",
@@ -21,22 +67,22 @@ const H = O(
21
67
  },
22
68
  defaultVariants: { size: "md" }
23
69
  }
24
- ), q = 100, B = 8;
70
+ ), Q = 100, Y = 8;
25
71
  function z(t, n) {
26
- const a = Math.max(0, Math.floor(t)), i = Math.floor(a / 60), u = a % 60, p = (v) => new Intl.NumberFormat(n, { minimumIntegerDigits: 2 }).format(v);
72
+ const a = Math.max(0, Math.floor(t)), i = Math.floor(a / 60), u = a % 60, p = (g) => new Intl.NumberFormat(n, { minimumIntegerDigits: 2 }).format(g);
27
73
  return `${p(i)}:${p(u)}`;
28
74
  }
29
- function U(t) {
75
+ function Z(t) {
30
76
  const n = Math.max(0, Math.floor(t)), a = Math.floor(n / 60), i = n % 60;
31
77
  return `PT${a}M${i}S`;
32
78
  }
33
- function G(t) {
79
+ function J(t) {
34
80
  let n = 0;
35
81
  for (let a = 0; a < t.length; a += 1)
36
82
  n = n * 31 + t.charCodeAt(a) | 0;
37
- return Math.abs(n) % B;
83
+ return Math.abs(n) % Y;
38
84
  }
39
- const Q = [
85
+ const W = [
40
86
  "ds:bg-[color:var(--transcript-speaker-1)]",
41
87
  "ds:bg-[color:var(--transcript-speaker-2)]",
42
88
  "ds:bg-[color:var(--transcript-speaker-3)]",
@@ -46,12 +92,12 @@ const Q = [
46
92
  "ds:bg-[color:var(--transcript-speaker-7)]",
47
93
  "ds:bg-[color:var(--transcript-speaker-8)]"
48
94
  ];
49
- function Y(t) {
95
+ function X(t) {
50
96
  return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
51
97
  }
52
- function Z({ text: t, query: n }) {
98
+ function ee({ text: t, query: n }) {
53
99
  if (!n) return t;
54
- const a = Y(n);
100
+ const a = X(n);
55
101
  return t.split(new RegExp(`(${a})`, "gi")).map(
56
102
  (u, p) => u.toLocaleLowerCase() === n.toLocaleLowerCase() ? /* @__PURE__ */ o(
57
103
  "mark",
@@ -60,10 +106,10 @@ function Z({ text: t, query: n }) {
60
106
  children: u
61
107
  },
62
108
  p
63
- ) : /* @__PURE__ */ o(j, { children: u }, p)
109
+ ) : /* @__PURE__ */ o(V, { children: u }, p)
64
110
  );
65
111
  }
66
- const J = $(
112
+ const te = K(
67
113
  ({
68
114
  lines: t,
69
115
  currentTime: n = 0,
@@ -71,40 +117,40 @@ const J = $(
71
117
  searchable: i = !0,
72
118
  size: u = "md",
73
119
  className: p,
74
- ...v
120
+ ...g
75
121
  }, L) => {
76
- const { t: d, i18n: b } = V(), [m, M] = E(""), h = S(null), x = S(null), R = K(), c = I(() => {
122
+ const { t: d, i18n: b } = F(), [m, M] = A(""), h = x(null), T = x(null), P = _(), c = w(() => {
77
123
  if (!Number.isFinite(n)) return -1;
78
124
  for (let e = 0; e < t.length; e += 1) {
79
125
  const r = t[e];
80
126
  if (r.start <= n && n < r.end) return e;
81
127
  }
82
128
  return -1;
83
- }, [t, n]), w = I(() => {
129
+ }, [t, n]), k = w(() => {
84
130
  if (!m) return 0;
85
131
  let e = 0;
86
132
  const r = m.toLocaleLowerCase();
87
133
  for (const s of t) {
88
134
  const l = s.text.toLocaleLowerCase();
89
- let g = l.indexOf(r);
90
- for (; g !== -1; )
91
- e += 1, g = l.indexOf(r, g + r.length);
135
+ let v = l.indexOf(r);
136
+ for (; v !== -1; )
137
+ e += 1, v = l.indexOf(r, v + r.length);
92
138
  }
93
139
  return e;
94
- }, [t, m]), P = C(
140
+ }, [t, m]), $ = R(
95
141
  (e) => {
96
142
  var r;
97
- (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "f" && i && (e.preventDefault(), (r = x.current) == null || r.focus());
143
+ (e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "f" && i && (e.preventDefault(), (r = T.current) == null || r.focus());
98
144
  },
99
145
  [i]
100
- ), T = t.length > q, y = D({
101
- count: T ? t.length : 0,
146
+ ), N = t.length > Q, y = q({
147
+ count: N ? t.length : 0,
102
148
  getScrollElement: () => h.current,
103
149
  estimateSize: () => 48,
104
150
  overscan: 8,
105
151
  getItemKey: (e) => e
106
152
  });
107
- A(() => {
153
+ j(() => {
108
154
  if (c < 0) return;
109
155
  const e = h.current;
110
156
  if (!e) return;
@@ -118,9 +164,9 @@ const J = $(
118
164
  behavior: s ? "auto" : "smooth"
119
165
  });
120
166
  }, [c]);
121
- const k = C(
167
+ const S = R(
122
168
  (e, r, s) => {
123
- const l = r === c, g = G(e.speaker), N = typeof e.confidence == "number" && e.confidence < 0.6;
169
+ const l = r === c, v = J(e.speaker), C = typeof e.confidence == "number" && e.confidence < 0.6;
124
170
  return /* @__PURE__ */ f(
125
171
  "li",
126
172
  {
@@ -161,7 +207,7 @@ const J = $(
161
207
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
162
208
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
163
209
  ].join(" "),
164
- children: /* @__PURE__ */ o("time", { dir: "ltr", dateTime: U(e.start), children: z(e.start, b.language) })
210
+ children: /* @__PURE__ */ o("time", { dir: "ltr", dateTime: Z(e.start), children: z(e.start, b.language) })
165
211
  }
166
212
  ),
167
213
  /* @__PURE__ */ f("div", { className: "ds:flex-1 ds:min-w-0", children: [
@@ -170,11 +216,11 @@ const J = $(
170
216
  "span",
171
217
  {
172
218
  "aria-hidden": "true",
173
- className: `ds:inline-block ds:size-2 ds:rounded-[var(--radius-full)] ${Q[g]}`
219
+ className: `ds:inline-block ds:size-2 ds:rounded-[var(--radius-full)] ${W[v]}`
174
220
  }
175
221
  ),
176
222
  /* @__PURE__ */ o("strong", { className: "type-title-item", children: d("ui.chat.transcript.speaker", { name: e.speaker }) }),
177
- N ? /* @__PURE__ */ f("span", { className: "type-meta ds:italic ds:text-[color:var(--muted-foreground)]", children: [
223
+ C ? /* @__PURE__ */ f("span", { className: "type-meta ds:italic ds:text-[color:var(--muted-foreground)]", children: [
178
224
  "(",
179
225
  d("ui.chat.transcript.lowConfidence"),
180
226
  ")"
@@ -186,9 +232,9 @@ const J = $(
186
232
  dir: "auto",
187
233
  className: [
188
234
  "ds:block",
189
- N ? "ds:underline ds:decoration-dotted ds:decoration-[color:var(--muted-foreground)]" : ""
235
+ C ? "ds:underline ds:decoration-dotted ds:decoration-[color:var(--muted-foreground)]" : ""
190
236
  ].join(" "),
191
- children: /* @__PURE__ */ o(Z, { text: e.text, query: m })
237
+ children: /* @__PURE__ */ o(ee, { text: e.text, query: m })
192
238
  }
193
239
  )
194
240
  ] })
@@ -198,9 +244,9 @@ const J = $(
198
244
  );
199
245
  },
200
246
  [c, b.language, a, m, d]
201
- );
202
- return _(
203
- L,
247
+ ), I = x(null);
248
+ O(L, () => I.current, []);
249
+ const E = w(
204
250
  () => ({
205
251
  getSelectedTurn: () => c >= 0 ? String(c) : null,
206
252
  focusTurn: (e) => {
@@ -210,7 +256,9 @@ const J = $(
210
256
  );
211
257
  if (!r) return;
212
258
  r.scrollIntoView({ block: "center", behavior: "auto" });
213
- const s = r.querySelector("button");
259
+ const s = r.querySelector(
260
+ "button"
261
+ );
214
262
  s == null || s.focus();
215
263
  },
216
264
  copyTurn: (e) => {
@@ -222,21 +270,28 @@ const J = $(
222
270
  }
223
271
  }),
224
272
  [c, t]
225
- ), /* @__PURE__ */ f(
273
+ );
274
+ return H(
275
+ U,
276
+ E,
277
+ g.id
278
+ ), // eslint-disable-next-line jsx-a11y/no-static-element-interactions -- root keyboard shortcuts (j/k navigation, /) bubble up from focused descendants
279
+ /* @__PURE__ */ f(
226
280
  "div",
227
281
  {
228
- onKeyDown: P,
282
+ ref: I,
283
+ onKeyDown: $,
229
284
  "data-component": "transcript-panel",
230
- "data-component-id": v.id,
231
- className: H({ size: u, className: p }),
232
- ...v,
285
+ "data-component-id": g.id,
286
+ className: G({ size: u, className: p }),
287
+ ...g,
233
288
  children: [
234
289
  i ? /* @__PURE__ */ f("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)] ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:border-b ds:border-border", children: [
235
290
  /* @__PURE__ */ o(
236
- F,
291
+ B,
237
292
  {
238
- ref: x,
239
- id: R,
293
+ ref: T,
294
+ id: P,
240
295
  placeholder: d("ui.chat.transcript.search"),
241
296
  "aria-label": d("ui.chat.transcript.search"),
242
297
  "aria-keyshortcuts": "Meta+F Control+F",
@@ -251,7 +306,7 @@ const J = $(
251
306
  role: "status",
252
307
  "aria-live": "polite",
253
308
  className: "type-meta ds:text-[color:var(--muted-foreground)] ds:tabular-nums",
254
- children: w === 0 ? d("ui.chat.transcript.noMatches") : d("ui.chat.transcript.matchCount", { count: w })
309
+ children: k === 0 ? d("ui.chat.transcript.noMatches") : d("ui.chat.transcript.matchCount", { count: k })
255
310
  }
256
311
  ) : null
257
312
  ] }) : null,
@@ -260,14 +315,14 @@ const J = $(
260
315
  {
261
316
  ref: h,
262
317
  className: "ds:flex-1 ds:min-h-0 ds:overflow-y-auto ds:overflow-x-hidden",
263
- children: T ? /* @__PURE__ */ o(
318
+ children: N ? /* @__PURE__ */ o(
264
319
  "ol",
265
320
  {
266
321
  className: "ds:relative ds:list-none ds:ps-0 ds:m-0",
267
322
  style: { blockSize: `${y.getTotalSize()}px` },
268
323
  children: y.getVirtualItems().map((e) => {
269
324
  const r = t[e.index];
270
- return r ? k(r, e.index, {
325
+ return r ? S(r, e.index, {
271
326
  liRef: y.measureElement,
272
327
  dataIndex: e.index,
273
328
  style: { transform: `translateY(${e.start}px)` },
@@ -275,7 +330,7 @@ const J = $(
275
330
  }) : null;
276
331
  })
277
332
  }
278
- ) : /* @__PURE__ */ o("ol", { className: "ds:list-none ds:ps-0 ds:m-0", children: t.map((e, r) => k(e, r)) })
333
+ ) : /* @__PURE__ */ o("ol", { className: "ds:list-none ds:ps-0 ds:m-0", children: t.map((e, r) => S(e, r)) })
279
334
  }
280
335
  )
281
336
  ]
@@ -283,55 +338,9 @@ const J = $(
283
338
  );
284
339
  }
285
340
  );
286
- J.displayName = "TranscriptPanel";
287
- const ne = {
288
- id: "transcript-panel",
289
- capabilities: ["select_single"],
290
- state: {
291
- selectedTurn: {
292
- type: "string | null",
293
- descriptionKey: "ui.agent.transcriptPanel.state.selectedTurn",
294
- description: "Opaque id (line index) of the currently-active turn, or null when none is active.",
295
- read: (t) => t.getSelectedTurn()
296
- }
297
- },
298
- actions: {
299
- focus_turn: {
300
- safety: "read",
301
- argsType: "{ id: string }",
302
- descriptionKey: "ui.agent.transcriptPanel.actions.focusTurn",
303
- description: "Scroll the given turn into view and focus its seek button.",
304
- invoke: (t, n) => {
305
- t.focusTurn(n.id);
306
- }
307
- },
308
- copy_turn: {
309
- safety: "read",
310
- argsType: "{ id: string }",
311
- descriptionKey: "ui.agent.transcriptPanel.actions.copyTurn",
312
- description: "Copy the given turn's text to the clipboard.",
313
- invoke: (t, n) => t.copyTurn(n.id)
314
- }
315
- },
316
- domHooks: {
317
- root: {
318
- attr: "data-component",
319
- value: "transcript-panel",
320
- description: "Marks the TranscriptPanel wrapper."
321
- },
322
- instanceId: {
323
- attr: "data-component-id",
324
- sourceProp: "id",
325
- description: "Sourced from the id prop."
326
- },
327
- item: {
328
- attr: "data-turn-id",
329
- description: "Stable opaque turn id (line index). Never carries the turn's dictated text."
330
- }
331
- }
332
- };
341
+ te.displayName = "TranscriptPanel";
333
342
  export {
334
- J as T,
335
- ne as t
343
+ te as T,
344
+ U as t
336
345
  };
337
- //# sourceMappingURL=transcript-panel.agent-BXEYP6w-.js.map
346
+ //# sourceMappingURL=transcript-panel-Bx5ANMsv.js.map
@@ -50,7 +50,14 @@ const g = i(
50
50
  defaultVariants: { size: "md" }
51
51
  }
52
52
  ), x = f(
53
- ({ size: a = "md", density: e = "default", label: r, hideLabel: n = !1, className: l, ...c }, m) => {
53
+ ({
54
+ size: a = "md",
55
+ density: e = "default",
56
+ label: r,
57
+ hideLabel: n = !1,
58
+ className: l,
59
+ ...c
60
+ }, m) => {
54
61
  const { t: p } = u(), d = r ?? p("ui.chat.typing");
55
62
  return /* @__PURE__ */ o(
56
63
  "div",
@@ -65,9 +72,24 @@ const g = i(
65
72
  ...c,
66
73
  children: [
67
74
  /* @__PURE__ */ o("span", { "aria-hidden": "true", className: v({ density: e }), children: [
68
- /* @__PURE__ */ s("span", { className: `${t({ size: a })} ds:[animation-delay:0ms]` }),
69
- /* @__PURE__ */ s("span", { className: `${t({ size: a })} ds:[animation-delay:200ms]` }),
70
- /* @__PURE__ */ s("span", { className: `${t({ size: a })} ds:[animation-delay:400ms]` })
75
+ /* @__PURE__ */ s(
76
+ "span",
77
+ {
78
+ className: `${t({ size: a })} ds:[animation-delay:0ms]`
79
+ }
80
+ ),
81
+ /* @__PURE__ */ s(
82
+ "span",
83
+ {
84
+ className: `${t({ size: a })} ds:[animation-delay:200ms]`
85
+ }
86
+ ),
87
+ /* @__PURE__ */ s(
88
+ "span",
89
+ {
90
+ className: `${t({ size: a })} ds:[animation-delay:400ms]`
91
+ }
92
+ )
71
93
  ] }),
72
94
  n ? null : /* @__PURE__ */ s("span", { className: "ds:font-medium", children: d })
73
95
  ]
@@ -79,4 +101,4 @@ x.displayName = "TypingIndicator";
79
101
  export {
80
102
  x as T
81
103
  };
82
- //# sourceMappingURL=typing-indicator-CbUBf-Dx.js.map
104
+ //# sourceMappingURL=typing-indicator-BZ5jXZPn.js.map
@@ -119,10 +119,7 @@ function U() {
119
119
  K(k(e));
120
120
  }, [e]);
121
121
  const t = b((n) => {
122
- g(
123
- y,
124
- n === "system" ? null : n
125
- ), c({ ...s, theme: n });
122
+ g(y, n === "system" ? null : n), c({ ...s, theme: n });
126
123
  }, []), r = b((n) => {
127
124
  g(
128
125
  w,
@@ -145,4 +142,4 @@ export {
145
142
  v as t,
146
143
  U as u
147
144
  };
148
- //# sourceMappingURL=use-theme-BMUhembX.js.map
145
+ //# sourceMappingURL=use-theme-B1cwAXJR.js.map
@@ -11,11 +11,20 @@ const m = "ds:sr-only", N = r(
11
11
  ref: n
12
12
  });
13
13
  }
14
- return /* @__PURE__ */ i("span", { ref: n, className: a, "data-component": "visually-hidden", ...o, children: s });
14
+ return /* @__PURE__ */ i(
15
+ "span",
16
+ {
17
+ ref: n,
18
+ className: a,
19
+ "data-component": "visually-hidden",
20
+ ...o,
21
+ children: s
22
+ }
23
+ );
15
24
  }
16
25
  );
17
26
  N.displayName = "VisuallyHidden";
18
27
  export {
19
28
  N as V
20
29
  };
21
- //# sourceMappingURL=visually-hidden-Bw7vBHLm.js.map
30
+ //# sourceMappingURL=visually-hidden-BHxEUGyT.js.map
@@ -2,8 +2,8 @@ import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as M, useId as N, useState as O, useRef as y, useEffect as V, useMemo as _, useCallback as j } from "react";
3
3
  import { c as W } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as q } from "react-i18next";
5
- import { A as u } from "./alert-BlOUMkXj.js";
6
- import { B as F } from "./button-7mLWcMp_.js";
5
+ import { A as u } from "./alert-B1sj8Ss0.js";
6
+ import { B as F } from "./button-DD_0Xdmr.js";
7
7
  import { C as H } from "./chevron-down-BX_NP2Yh.js";
8
8
  const L = W(
9
9
  [
@@ -50,18 +50,18 @@ const L = W(
50
50
  maxVisible: t,
51
51
  defaultCollapsed: z = !0,
52
52
  onDismiss: i,
53
- size: g = "md",
53
+ size: f = "md",
54
54
  stretch: v = !1,
55
55
  ariaLabel: A,
56
56
  emptyState: m,
57
57
  className: w,
58
58
  ...x
59
59
  }, k) => {
60
- const { t: e } = q(), d = N(), b = N(), c = t !== void 0 && r.length > t, [o, B] = O(z), f = y(null), S = y(r.length);
60
+ const { t: e } = q(), d = N(), b = N(), c = t !== void 0 && r.length > t, [o, B] = O(z), g = y(null), S = y(r.length);
61
61
  V(() => {
62
- if (!f.current) return;
62
+ if (!g.current) return;
63
63
  const n = S.current, s = r.length;
64
- n !== s && (f.current.textContent = e("ui.warningStack.countChanged", {
64
+ n !== s && (g.current.textContent = e("ui.warningStack.countChanged", {
65
65
  count: s,
66
66
  defaultValue: "{{count}} warnings to review"
67
67
  })), S.current = s;
@@ -86,10 +86,9 @@ const L = W(
86
86
  "section",
87
87
  {
88
88
  ref: k,
89
- role: "region",
90
89
  "aria-labelledby": d,
91
90
  "data-component": "warning-stack",
92
- className: [L({ size: g, stretch: v }), w].filter(Boolean).join(" "),
91
+ className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
93
92
  ...x,
94
93
  children: [
95
94
  C,
@@ -100,17 +99,16 @@ const L = W(
100
99
  "section",
101
100
  {
102
101
  ref: k,
103
- role: "region",
104
102
  "aria-labelledby": d,
105
103
  "data-component": "warning-stack",
106
- className: [L({ size: g, stretch: v }), w].filter(Boolean).join(" "),
104
+ className: [L({ size: f, stretch: v }), w].filter(Boolean).join(" "),
107
105
  ...x,
108
106
  children: [
109
107
  C,
110
108
  /* @__PURE__ */ a(
111
109
  "div",
112
110
  {
113
- ref: f,
111
+ ref: g,
114
112
  "aria-live": "polite",
115
113
  "aria-atomic": "true",
116
114
  className: "ds:sr-only"
@@ -120,7 +118,7 @@ const L = W(
120
118
  "ul",
121
119
  {
122
120
  id: b,
123
- className: J({ size: g }),
121
+ className: J({ size: f }),
124
122
  "aria-label": e("ui.warningStack.listLabel", "Warning list"),
125
123
  children: R.map((n) => {
126
124
  const s = n.variant ?? "warning";
@@ -178,4 +176,4 @@ P.displayName = "WarningStack";
178
176
  export {
179
177
  P as W
180
178
  };
181
- //# sourceMappingURL=warning-stack-8Pa3pekh.js.map
179
+ //# sourceMappingURL=warning-stack-VygGHSqC.js.map