@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,24 +1,95 @@
1
- import { jsxs as f, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as n, useRef as I, useState as k, useCallback as z, useMemo as C, useImperativeHandle as B } from "react";
3
3
  import * as o from "@radix-ui/react-navigation-menu";
4
- import { Slot as L } from "@radix-ui/react-slot";
5
- import { c as R } from "./index-D2ZczOXr.js";
4
+ import { Slot as R } from "@radix-ui/react-slot";
5
+ import { c as L } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as T } from "react-i18next";
7
- import { u as K } from "./use-direction-D6rvvG9G.js";
7
+ import { u as A } from "./use-direction-D6rvvG9G.js";
8
+ import { u as K } from "./registry-C9nwlNyL.js";
8
9
  import { C as O } from "./chevron-down-BX_NP2Yh.js";
9
- const S = [
10
+ const S = {
11
+ id: "navigation-menu",
12
+ capabilities: ["select_single", "navigate", "open", "close"],
13
+ state: {
14
+ activeItem: {
15
+ type: "string | null",
16
+ descriptionKey: "ui.agent.navigationMenu.state.activeItem",
17
+ description: "Id of the currently-active top-level navigation item, or null when none is active.",
18
+ read: (e) => e.getActiveItem() ?? null
19
+ },
20
+ isOpen: {
21
+ type: "boolean",
22
+ descriptionKey: "ui.agent.navigationMenu.state.isOpen",
23
+ description: "Whether a dropdown / mega-menu panel is currently open.",
24
+ read: (e) => e.getIsOpen()
25
+ }
26
+ },
27
+ actions: {
28
+ select_item: {
29
+ safety: "read",
30
+ argsType: "{ id: string }",
31
+ descriptionKey: "ui.agent.navigationMenu.actions.selectItem",
32
+ description: "Activate (open) the top-level item with the given id.",
33
+ invoke: (e, t) => {
34
+ e.selectItem(t.id);
35
+ }
36
+ },
37
+ open: {
38
+ safety: "read",
39
+ argsType: "{ id: string }",
40
+ descriptionKey: "ui.agent.navigationMenu.actions.open",
41
+ description: "Open the dropdown / mega-menu panel for the given top-level item id.",
42
+ invoke: (e, t) => {
43
+ e.open(t.id);
44
+ }
45
+ },
46
+ close: {
47
+ safety: "read",
48
+ descriptionKey: "ui.agent.navigationMenu.actions.close",
49
+ description: "Close any open dropdown / mega-menu panel.",
50
+ invoke: (e) => {
51
+ e.close();
52
+ }
53
+ }
54
+ },
55
+ domHooks: {
56
+ root: {
57
+ attr: "data-component",
58
+ value: "navigation-menu",
59
+ description: "Marks the NavigationMenu root."
60
+ },
61
+ instanceId: {
62
+ attr: "data-component-id",
63
+ sourceProp: "id",
64
+ description: "Sourced from the id prop. Required to address a specific menu from the agent."
65
+ },
66
+ item: {
67
+ attr: "data-nav-id",
68
+ description: "Stable opaque id of a top-level navigation item. Selection / open targets this attribute."
69
+ }
70
+ }
71
+ }, V = [
10
72
  "ds:relative ds:z-[var(--z-dropdown)]",
11
73
  "ds:flex ds:max-w-max ds:items-center ds:justify-center"
12
- ].join(" "), V = n(
13
- ({ "aria-label": e, className: t, children: a, id: i, value: c, defaultValue: b, onValueChange: m, ...N }, w) => {
14
- const { t: y } = T(), v = I(null), x = K(v), u = c !== void 0, [M, j] = k(
15
- b ?? ""
16
- ), r = u ? c : M, l = z(
74
+ ].join(" "), q = n(
75
+ ({
76
+ "aria-label": e,
77
+ className: t,
78
+ children: a,
79
+ id: i,
80
+ value: c,
81
+ defaultValue: h,
82
+ onValueChange: m,
83
+ ...b
84
+ }, N) => {
85
+ const { t: w } = T(), u = I(null), y = A(u), v = c !== void 0, [x, M] = k(
86
+ h ?? ""
87
+ ), r = v ? c : x, l = z(
17
88
  (d) => {
18
- u || j(d), m == null || m(d);
89
+ v || M(d), m == null || m(d);
19
90
  },
20
- [u, m]
21
- ), g = C(
91
+ [v, m]
92
+ ), j = C(
22
93
  () => ({
23
94
  getActiveItem: () => r || null,
24
95
  getIsOpen: () => !!r,
@@ -28,45 +99,49 @@ const S = [
28
99
  }),
29
100
  [r, l]
30
101
  );
31
- return B(w, () => g, [g]), /* @__PURE__ */ f(
102
+ return B(
103
+ N,
104
+ () => u.current,
105
+ []
106
+ ), K(S, j, i), /* @__PURE__ */ p(
32
107
  o.Root,
33
108
  {
34
- ref: v,
35
- dir: x,
36
- "aria-label": e ?? y("ui.navigation.nav.label"),
37
- className: [S, t].filter(Boolean).join(" "),
109
+ ref: u,
110
+ dir: y,
111
+ "aria-label": e ?? w("ui.navigation.nav.label"),
112
+ className: [V, t].filter(Boolean).join(" "),
38
113
  id: i,
39
114
  "data-component": "navigation-menu",
40
115
  "data-component-id": i,
41
116
  value: r,
42
117
  onValueChange: l,
43
- ...N,
118
+ ...b,
44
119
  children: [
45
120
  a,
46
- /* @__PURE__ */ s(h, {})
121
+ /* @__PURE__ */ s(f, {})
47
122
  ]
48
123
  }
49
124
  );
50
125
  }
51
126
  );
52
- V.displayName = "NavigationMenu";
53
- const A = [
127
+ q.displayName = "NavigationMenu";
128
+ const D = [
54
129
  "ds:group ds:flex ds:flex-1",
55
130
  "ds:list-none ds:items-center ds:justify-center",
56
131
  "ds:gap-[var(--spacing-xs)]",
57
132
  "ds:m-0 ds:ps-0"
58
- ].join(" "), q = n(({ className: e, ...t }, a) => /* @__PURE__ */ s(
133
+ ].join(" "), H = n(({ className: e, ...t }, a) => /* @__PURE__ */ s(
59
134
  o.List,
60
135
  {
61
136
  ref: a,
62
- className: [A, e].filter(Boolean).join(" "),
137
+ className: [D, e].filter(Boolean).join(" "),
63
138
  ...t
64
139
  }
65
140
  ));
66
- q.displayName = "NavigationMenuList";
67
- const D = n(({ navId: e, ...t }, a) => /* @__PURE__ */ s(o.Item, { ref: a, "data-nav-id": e, ...t }));
68
- D.displayName = "NavigationMenuItem";
69
- const H = [
141
+ H.displayName = "NavigationMenuList";
142
+ const _ = n(({ navId: e, ...t }, a) => /* @__PURE__ */ s(o.Item, { ref: a, "data-nav-id": e, ...t }));
143
+ _.displayName = "NavigationMenuItem";
144
+ const P = [
70
145
  "ds:group ds:inline-flex ds:items-center ds:justify-center",
71
146
  "ds:min-h-[var(--min-target-size)]",
72
147
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-sm)]",
@@ -80,24 +155,24 @@ const H = [
80
155
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
81
156
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
82
157
  "ds:gap-[var(--spacing-xs)]"
83
- ].join(" "), _ = [
158
+ ].join(" "), W = [
84
159
  "ds:size-3 ds:transition-transform ds:duration-[var(--animation-duration)]",
85
160
  "ds:group-data-[state=open]:rotate-180",
86
161
  "ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
87
- ].join(" "), P = n(({ className: e, children: t, ...a }, i) => /* @__PURE__ */ f(
162
+ ].join(" "), E = n(({ className: e, children: t, ...a }, i) => /* @__PURE__ */ p(
88
163
  o.Trigger,
89
164
  {
90
165
  ref: i,
91
- className: [H, e].filter(Boolean).join(" "),
166
+ className: [P, e].filter(Boolean).join(" "),
92
167
  ...a,
93
168
  children: [
94
169
  t,
95
- /* @__PURE__ */ s(O, { "aria-hidden": "true", className: _ })
170
+ /* @__PURE__ */ s(O, { "aria-hidden": "true", className: W })
96
171
  ]
97
172
  }
98
173
  ));
99
- P.displayName = "NavigationMenuTrigger";
100
- const W = [
174
+ E.displayName = "NavigationMenuTrigger";
175
+ const F = [
101
176
  "ds:absolute ds:start-0 ds:top-0 ds:w-full",
102
177
  "ds:md:w-auto",
103
178
  "ds:bg-[var(--background)] ds:text-[var(--foreground)]",
@@ -113,7 +188,7 @@ const W = [
113
188
  "ds:data-[motion=to-start]:slide-out-to-left-52 ds:rtl:data-[motion=to-start]:slide-out-to-right-52",
114
189
  "ds:data-[motion=to-end]:slide-out-to-right-52 ds:rtl:data-[motion=to-end]:slide-out-to-left-52",
115
190
  "ds:motion-reduce:animate-none"
116
- ].join(" "), E = R(W, {
191
+ ].join(" "), G = L(F, {
117
192
  variants: {
118
193
  layout: {
119
194
  simple: "ds:min-w-[16rem]",
@@ -121,16 +196,16 @@ const W = [
121
196
  }
122
197
  },
123
198
  defaultVariants: { layout: "simple" }
124
- }), F = n(({ layout: e, className: t, ...a }, i) => /* @__PURE__ */ s(
199
+ }), J = n(({ layout: e, className: t, ...a }, i) => /* @__PURE__ */ s(
125
200
  o.Content,
126
201
  {
127
202
  ref: i,
128
- className: E({ layout: e, className: t }),
203
+ className: G({ layout: e, className: t }),
129
204
  ...a
130
205
  }
131
206
  ));
132
- F.displayName = "NavigationMenuContent";
133
- const p = [
207
+ J.displayName = "NavigationMenuContent";
208
+ const g = [
134
209
  "ds:block ds:rounded-[var(--radius-sm)]",
135
210
  "ds:min-h-[var(--min-target-size)]",
136
211
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
@@ -145,33 +220,33 @@ const p = [
145
220
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
146
221
  "ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
147
222
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
148
- ].join(" "), G = n(({ asChild: e = !1, className: t, children: a, ...i }, c) => /* @__PURE__ */ s(
223
+ ].join(" "), Q = n(({ asChild: e = !1, className: t, children: a, ...i }, c) => /* @__PURE__ */ s(
149
224
  o.Link,
150
225
  {
151
226
  ref: c,
152
227
  asChild: e,
153
- className: e ? void 0 : [p, t].filter(Boolean).join(" "),
228
+ className: e ? void 0 : [g, t].filter(Boolean).join(" "),
154
229
  ...i,
155
- children: e ? /* @__PURE__ */ s(L, { className: [p, t].filter(Boolean).join(" "), children: a }) : a
230
+ children: e ? /* @__PURE__ */ s(R, { className: [g, t].filter(Boolean).join(" "), children: a }) : a
156
231
  }
157
232
  ));
158
- G.displayName = "NavigationMenuLink";
159
- const J = [
233
+ Q.displayName = "NavigationMenuLink";
234
+ const U = [
160
235
  "ds:top-full ds:z-[1] ds:flex ds:h-2 ds:items-end ds:justify-center ds:overflow-hidden",
161
236
  "ds:data-[state=visible]:animate-in ds:data-[state=hidden]:animate-out",
162
237
  "ds:data-[state=visible]:fade-in ds:data-[state=hidden]:fade-out",
163
238
  "ds:motion-reduce:animate-none"
164
- ].join(" "), Q = n(({ className: e, ...t }, a) => /* @__PURE__ */ s(
239
+ ].join(" "), X = n(({ className: e, ...t }, a) => /* @__PURE__ */ s(
165
240
  o.Indicator,
166
241
  {
167
242
  ref: a,
168
- className: [J, e].filter(Boolean).join(" "),
243
+ className: [U, e].filter(Boolean).join(" "),
169
244
  ...t,
170
245
  children: /* @__PURE__ */ s("span", { className: "ds:relative ds:top-[60%] ds:h-2 ds:w-2 ds:rotate-45 ds:rounded-tl-sm ds:bg-[var(--border)]" })
171
246
  }
172
247
  ));
173
- Q.displayName = "NavigationMenuIndicator";
174
- const U = [
248
+ X.displayName = "NavigationMenuIndicator";
249
+ const Y = [
175
250
  "ds:origin-top-center ds:relative ds:mt-[var(--spacing-xs)]",
176
251
  "ds:h-[var(--radix-navigation-menu-viewport-height)]",
177
252
  "ds:w-full ds:overflow-hidden",
@@ -181,86 +256,24 @@ const U = [
181
256
  "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
182
257
  "ds:data-[state=open]:zoom-in-90 ds:data-[state=closed]:zoom-out-95",
183
258
  "ds:motion-reduce:animate-none"
184
- ].join(" "), h = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { className: "ds:absolute ds:start-0 ds:top-full ds:flex ds:justify-center", children: /* @__PURE__ */ s(
259
+ ].join(" "), f = n(({ className: e, ...t }, a) => /* @__PURE__ */ s("div", { className: "ds:absolute ds:start-0 ds:top-full ds:flex ds:justify-center", children: /* @__PURE__ */ s(
185
260
  o.Viewport,
186
261
  {
187
262
  ref: a,
188
- className: [U, e].filter(Boolean).join(" "),
263
+ className: [Y, e].filter(Boolean).join(" "),
189
264
  ...t
190
265
  }
191
266
  ) }));
192
- h.displayName = "NavigationMenuViewport";
193
- const se = {
194
- id: "navigation-menu",
195
- capabilities: ["select_single", "navigate", "open", "close"],
196
- state: {
197
- activeItem: {
198
- type: "string | null",
199
- descriptionKey: "ui.agent.navigationMenu.state.activeItem",
200
- description: "Id of the currently-active top-level navigation item, or null when none is active.",
201
- read: (e) => e.getActiveItem() ?? null
202
- },
203
- isOpen: {
204
- type: "boolean",
205
- descriptionKey: "ui.agent.navigationMenu.state.isOpen",
206
- description: "Whether a dropdown / mega-menu panel is currently open.",
207
- read: (e) => e.getIsOpen()
208
- }
209
- },
210
- actions: {
211
- select_item: {
212
- safety: "read",
213
- argsType: "{ id: string }",
214
- descriptionKey: "ui.agent.navigationMenu.actions.selectItem",
215
- description: "Activate (open) the top-level item with the given id.",
216
- invoke: (e, t) => {
217
- e.selectItem(t.id);
218
- }
219
- },
220
- open: {
221
- safety: "read",
222
- argsType: "{ id: string }",
223
- descriptionKey: "ui.agent.navigationMenu.actions.open",
224
- description: "Open the dropdown / mega-menu panel for the given top-level item id.",
225
- invoke: (e, t) => {
226
- e.open(t.id);
227
- }
228
- },
229
- close: {
230
- safety: "read",
231
- descriptionKey: "ui.agent.navigationMenu.actions.close",
232
- description: "Close any open dropdown / mega-menu panel.",
233
- invoke: (e) => {
234
- e.close();
235
- }
236
- }
237
- },
238
- domHooks: {
239
- root: {
240
- attr: "data-component",
241
- value: "navigation-menu",
242
- description: "Marks the NavigationMenu root."
243
- },
244
- instanceId: {
245
- attr: "data-component-id",
246
- sourceProp: "id",
247
- description: "Sourced from the id prop. Required to address a specific menu from the agent."
248
- },
249
- item: {
250
- attr: "data-nav-id",
251
- description: "Stable opaque id of a top-level navigation item. Selection / open targets this attribute."
252
- }
253
- }
254
- };
267
+ f.displayName = "NavigationMenuViewport";
255
268
  export {
256
- V as N,
257
- F as a,
258
- Q as b,
259
- D as c,
260
- G as d,
261
- q as e,
262
- P as f,
263
- h as g,
264
- se as n
269
+ q as N,
270
+ J as a,
271
+ X as b,
272
+ _ as c,
273
+ Q as d,
274
+ H as e,
275
+ E as f,
276
+ f as g,
277
+ S as n
265
278
  };
266
- //# sourceMappingURL=navigation-menu.agent-D69ND6Qq.js.map
279
+ //# sourceMappingURL=navigation-menu-ClbHeawy.js.map
@@ -2,8 +2,8 @@ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
2
  import { forwardRef as M, useMemo as P, useState as R, useRef as B, useCallback as L } from "react";
3
3
  import { c as U } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as W } from "react-i18next";
5
- import { I as E } from "./icon-button-Wnnde5lc.js";
6
- import { B as N } from "./button-7mLWcMp_.js";
5
+ import { I as E } from "./icon-button-C4CGcYuz.js";
6
+ import { B as N } from "./button-DD_0Xdmr.js";
7
7
  import { T as H } from "./timestamp-BV2lC-wV.js";
8
8
  import { X } from "./x-CCcI3eJp.js";
9
9
  const q = U(
@@ -254,4 +254,4 @@ export {
254
254
  J as N,
255
255
  G as i
256
256
  };
257
- //# sourceMappingURL=notification-card-CsVEYJE-.js.map
257
+ //# sourceMappingURL=notification-card-hBlPN1-c.js.map