@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,22 +1,22 @@
1
1
  import { jsx as t, jsxs as c, Fragment as E } from "react/jsx-runtime";
2
- import { forwardRef as re, useState as q, useCallback as F, useLayoutEffect as de, useEffect as H, useRef as u, useMemo as ce, useImperativeHandle as le } from "react";
2
+ import { forwardRef as de, useState as q, useCallback as F, useLayoutEffect as ce, useEffect as H, useRef as f, useMemo as le, useImperativeHandle as fe } from "react";
3
3
  import * as x from "@radix-ui/react-popover";
4
- import { c as S } from "./index-D2ZczOXr.js";
4
+ import { c as C } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as Y } from "react-i18next";
6
- import { I as fe } from "./icon-button-Wnnde5lc.js";
7
- import { B as U } from "./button-7mLWcMp_.js";
8
- import { S as W } from "./separator-B4wXDLNC.js";
9
- import { S as N } from "./skeleton-dtqyF09N.js";
10
- import { N as pe } from "./notification-card-CsVEYJE-.js";
11
- import { u as ue } from "./registry-C9nwlNyL.js";
12
- import { c as me } from "./createLucideIcon-CrFbzy84.js";
6
+ import { I as ue } from "./icon-button-C4CGcYuz.js";
7
+ import { B as U } from "./button-DD_0Xdmr.js";
8
+ import { S as W } from "./separator-CYU_bGFn.js";
9
+ import { S as N } from "./skeleton-CZbwyJAA.js";
10
+ import { N as pe } from "./notification-card-hBlPN1-c.js";
11
+ import { u as me } from "./registry-C9nwlNyL.js";
12
+ import { c as ge } from "./createLucideIcon-CrFbzy84.js";
13
13
  /**
14
14
  * @license lucide-react v1.8.0 - ISC
15
15
  *
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const ge = [
19
+ const ve = [
20
20
  ["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
21
21
  [
22
22
  "path",
@@ -25,7 +25,7 @@ const ge = [
25
25
  key: "11g9vi"
26
26
  }
27
27
  ]
28
- ], G = me("bell", ge), ve = {
28
+ ], G = ge("bell", ve), ye = {
29
29
  id: "notification-tray",
30
30
  capabilities: ["open", "close", "select_single", "dismiss"],
31
31
  state: {
@@ -109,17 +109,20 @@ const ge = [
109
109
  description: "Stable notification id emitted on each rendered NotificationCard inside the tray."
110
110
  }
111
111
  }
112
- }, ye = S("ds:relative ds:inline-flex ds:items-center", {
113
- variants: {
114
- size: {
115
- sm: "",
116
- md: ""
112
+ }, he = C(
113
+ "ds:relative ds:inline-flex ds:items-center",
114
+ {
115
+ variants: {
116
+ size: {
117
+ sm: "",
118
+ md: ""
119
+ }
120
+ },
121
+ defaultVariants: {
122
+ size: "md"
117
123
  }
118
- },
119
- defaultVariants: {
120
- size: "md"
121
124
  }
122
- }), he = S(
125
+ ), xe = C(
123
126
  [
124
127
  "ds:flex ds:flex-col",
125
128
  "ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
@@ -160,7 +163,7 @@ const ge = [
160
163
  size: "md"
161
164
  }
162
165
  }
163
- ), xe = S(
166
+ ), Ne = C(
164
167
  [
165
168
  // Anchored to the top-end corner of the trigger, nudged outward so
166
169
  // the bell icon isn't covered.
@@ -175,7 +178,7 @@ const ge = [
175
178
  "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
176
179
  ].join(" ")
177
180
  );
178
- function Ne(i, a) {
181
+ function be(i, a) {
179
182
  return i > 99 ? a : String(i);
180
183
  }
181
184
  function R() {
@@ -195,7 +198,7 @@ function R() {
195
198
  }
196
199
  );
197
200
  }
198
- function be() {
201
+ function Te() {
199
202
  const { t: i } = Y();
200
203
  return /* @__PURE__ */ c(
201
204
  "div",
@@ -221,20 +224,20 @@ function be() {
221
224
  }
222
225
  );
223
226
  }
224
- const Te = re(
227
+ const we = de(
225
228
  ({
226
229
  id: i,
227
230
  items: a,
228
231
  unseenCount: b,
229
- open: I,
232
+ open: S,
230
233
  onOpenChange: m,
231
- onItemClick: f,
234
+ onItemClick: u,
232
235
  onDismiss: p,
233
236
  onMarkRead: g,
234
- onMarkAllRead: j,
237
+ onMarkAllRead: I,
235
238
  loading: J = !1,
236
239
  maxVisible: M,
237
- viewAllLabel: K,
240
+ viewAllLabel: j,
238
241
  onViewAll: Q,
239
242
  align: X = "end",
240
243
  side: Z = "bottom",
@@ -243,25 +246,25 @@ const Te = re(
243
246
  ...D
244
247
  }, ee) => {
245
248
  var L;
246
- const { t: r } = Y(), w = I !== void 0, [te, ie] = q(!1), z = w ? I : te, v = F(
249
+ const { t: r } = Y(), w = S !== void 0, [te, ie] = q(!1), z = w ? S : te, v = F(
247
250
  (e) => {
248
251
  w || ie(e), m == null || m(e);
249
252
  },
250
253
  [w, m]
251
- ), [y, O] = q(
254
+ ), [y, K] = q(
252
255
  () => a.map((e) => ({ item: e, leaving: !1 }))
253
- ), V = F(() => {
256
+ ), O = F(() => {
254
257
  if (typeof window > "u") return 200;
255
258
  const e = window.getComputedStyle(document.documentElement).getPropertyValue("--animation-duration");
256
259
  if (!e) return 200;
257
260
  const n = e.trim(), s = parseFloat(n);
258
261
  return Number.isFinite(s) ? n.endsWith("ms") ? s : s * 1e3 : 200;
259
262
  }, []);
260
- de(() => {
261
- O((e) => {
263
+ ce(() => {
264
+ K((e) => {
262
265
  const n = new Set(a.map((o) => o.id)), s = new Set(e.map((o) => o.item.id)), d = e.map((o) => {
263
266
  if (n.has(o.item.id)) {
264
- const _ = a.find((oe) => oe.id === o.item.id);
267
+ const _ = a.find((re) => re.id === o.item.id);
265
268
  return _ ? { item: _, leaving: !1 } : { ...o, leaving: !0 };
266
269
  }
267
270
  return { ...o, leaving: !0 };
@@ -272,15 +275,15 @@ const Te = re(
272
275
  });
273
276
  }, [a]), H(() => {
274
277
  if (!y.some((s) => s.leaving)) return;
275
- const e = V(), n = setTimeout(() => {
276
- O((s) => s.filter((d) => !d.leaving));
278
+ const e = O(), n = setTimeout(() => {
279
+ K((s) => s.filter((d) => !d.leaving));
277
280
  }, e);
278
281
  return () => clearTimeout(n);
279
- }, [y, V]);
280
- const k = u(null), A = u((L = a[0]) == null ? void 0 : L.id);
282
+ }, [y, O]);
283
+ const k = f(null), V = f((L = a[0]) == null ? void 0 : L.id);
281
284
  H(() => {
282
285
  var s;
283
- const e = (s = a[0]) == null ? void 0 : s.id, n = A.current;
286
+ const e = (s = a[0]) == null ? void 0 : s.id, n = V.current;
284
287
  if (n && e && n !== e && k.current) {
285
288
  const d = a[0];
286
289
  d && !d.read && (k.current.textContent = r(
@@ -291,7 +294,7 @@ const Te = re(
291
294
  }
292
295
  ));
293
296
  }
294
- A.current = e;
297
+ V.current = e;
295
298
  }, [a, r]);
296
299
  const h = b ?? 0, ae = h > 0 ? r("ui.notificationTray.triggerLabel", {
297
300
  count: h,
@@ -299,25 +302,25 @@ const Te = re(
299
302
  }) : r(
300
303
  "ui.notificationTray.triggerLabelNone",
301
304
  "Notifications, none unread"
302
- ), ne = Ne(
305
+ ), ne = be(
303
306
  h,
304
307
  r("ui.notificationTray.badgeCountOverflow", "99+")
305
- ), se = he({ size: T }), l = u(a);
308
+ ), se = xe({ size: T }), l = f(a);
306
309
  l.current = a;
307
- const B = u(b);
308
- B.current = b;
309
- const P = u(z);
310
- P.current = z;
311
- const C = ce(
310
+ const A = f(b);
311
+ A.current = b;
312
+ const B = f(z);
313
+ B.current = z;
314
+ const oe = le(
312
315
  () => ({
313
316
  open: () => v(!0),
314
317
  close: () => v(!1),
315
- isOpen: () => P.current,
318
+ isOpen: () => B.current,
316
319
  getItems: () => l.current.map((e) => ({ id: e.id, read: !!e.read })),
317
- getUnreadCount: () => B.current ?? l.current.filter((e) => !e.read).length,
320
+ getUnreadCount: () => A.current ?? l.current.filter((e) => !e.read).length,
318
321
  selectItem: (e) => {
319
322
  const n = l.current.find((s) => s.id === e);
320
- n && (f == null || f(n));
323
+ n && (u == null || u(n));
321
324
  },
322
325
  markRead: (e) => {
323
326
  const n = l.current.find((s) => s.id === e);
@@ -328,18 +331,19 @@ const Te = re(
328
331
  n && (p == null || p(n));
329
332
  }
330
333
  }),
331
- [v, f, g, p]
332
- );
333
- return le(ee, () => C, [C]), ue(ve, C, i), /* @__PURE__ */ t(
334
+ [v, u, g, p]
335
+ ), P = f(null);
336
+ return fe(ee, () => P.current, []), me(ye, oe, i), /* @__PURE__ */ t(
334
337
  "div",
335
338
  {
339
+ ref: P,
336
340
  "data-component": "notification-tray",
337
341
  "data-component-id": i,
338
- className: [ye({ size: T }), $].filter(Boolean).join(" "),
342
+ className: [he({ size: T }), $].filter(Boolean).join(" "),
339
343
  ...D,
340
344
  children: /* @__PURE__ */ c(x.Root, { open: z, onOpenChange: v, children: [
341
345
  /* @__PURE__ */ t(x.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
342
- fe,
346
+ ue,
343
347
  {
344
348
  icon: /* @__PURE__ */ t(G, {}),
345
349
  intent: "outline",
@@ -353,7 +357,7 @@ const Te = re(
353
357
  {
354
358
  "aria-hidden": "true",
355
359
  "data-testid": "notification-tray-badge",
356
- className: xe(),
360
+ className: Ne(),
357
361
  children: ne
358
362
  }
359
363
  ) : null,
@@ -379,12 +383,12 @@ const Te = re(
379
383
  children: [
380
384
  /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: [
381
385
  /* @__PURE__ */ t("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: r("ui.notificationTray.panelTitle", "Notifications") }),
382
- j && a.some((e) => !e.read) ? /* @__PURE__ */ t(
386
+ I && a.some((e) => !e.read) ? /* @__PURE__ */ t(
383
387
  U,
384
388
  {
385
389
  intent: "link",
386
390
  size: "sm",
387
- onClick: j,
391
+ onClick: I,
388
392
  className: "ds:text-[length:var(--font-size-xs)]",
389
393
  children: r("ui.notificationTray.markAllRead", "Mark all as read")
390
394
  }
@@ -401,13 +405,13 @@ const Te = re(
401
405
  /* @__PURE__ */ t(R, {}),
402
406
  /* @__PURE__ */ t(R, {}),
403
407
  /* @__PURE__ */ t(R, {})
404
- ] }) : y.length === 0 ? /* @__PURE__ */ t(be, {}) : y.map(({ item: e, leaving: n }) => /* @__PURE__ */ t(
408
+ ] }) : y.length === 0 ? /* @__PURE__ */ t(Te, {}) : y.map(({ item: e, leaving: n }) => /* @__PURE__ */ t(
405
409
  pe,
406
410
  {
407
411
  item: e,
408
412
  variant: "compact",
409
413
  leaving: n,
410
- onActivate: f,
414
+ onActivate: u,
411
415
  onDismiss: p,
412
416
  "data-notification-id": e.id
413
417
  },
@@ -415,7 +419,7 @@ const Te = re(
415
419
  ))
416
420
  }
417
421
  ),
418
- K ? /* @__PURE__ */ c(E, { children: [
422
+ j ? /* @__PURE__ */ c(E, { children: [
419
423
  /* @__PURE__ */ t(W, {}),
420
424
  /* @__PURE__ */ t("div", { className: "ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
421
425
  U,
@@ -424,7 +428,7 @@ const Te = re(
424
428
  size: "sm",
425
429
  onClick: Q,
426
430
  className: "ds:w-full ds:justify-center",
427
- children: K
431
+ children: j
428
432
  }
429
433
  ) })
430
434
  ] }) : null
@@ -436,9 +440,9 @@ const Te = re(
436
440
  );
437
441
  }
438
442
  );
439
- Te.displayName = "NotificationTray";
443
+ we.displayName = "NotificationTray";
440
444
  export {
441
- Te as N,
442
- ve as n
445
+ we as N,
446
+ ye as n
443
447
  };
444
- //# sourceMappingURL=notification-tray-DTXMq42J.js.map
448
+ //# sourceMappingURL=notification-tray-C5cnXbl9.js.map
@@ -2,7 +2,7 @@ import { jsxs as be, jsx as x } from "react/jsx-runtime";
2
2
  import { useMemo as J, forwardRef as ge, useRef as A, useState as E, useCallback as $, useEffect as he } from "react";
3
3
  import { c as Ne } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ye } from "react-i18next";
5
- import { u as we } from "./form-field-context-94LwgYTQ.js";
5
+ import { u as we } from "./form-field-context-B3APVHKx.js";
6
6
  import { c as Ie } from "./compose-refs-C0k0tdqF.js";
7
7
  import { u as De } from "./registry-C9nwlNyL.js";
8
8
  import { C as Fe } from "./chevron-down-BX_NP2Yh.js";
@@ -174,7 +174,11 @@ const Pe = ge(
174
174
  onKeyDown: c,
175
175
  ...m
176
176
  }, h) => {
177
- const { t: U } = ye(), D = we(), Q = a ?? D.id, C = !!(D.disabled || k), X = z ?? Ce(), P = Ve(X, p, T), { decimalSeparator: B, format: R, parse: K } = P, L = A(null), Y = Ie(h, L), H = t !== void 0, [Z, ee] = E(
177
+ const { t: U } = ye(), D = we(), Q = a ?? D.id, C = !!(D.disabled || k), X = z ?? Ce(), P = Ve(X, p, T), {
178
+ decimalSeparator: B,
179
+ format: R,
180
+ parse: K
181
+ } = P, L = A(null), Y = Ie(h, L), H = t !== void 0, [Z, ee] = E(
178
182
  r ?? null
179
183
  ), s = H ? t ?? null : Z, W = A(s);
180
184
  W.current = s;
@@ -330,4 +334,4 @@ export {
330
334
  Pe as N,
331
335
  Ve as u
332
336
  };
333
- //# sourceMappingURL=number-input-fvGmnRy9.js.map
337
+ //# sourceMappingURL=number-input-Q7wkHnvQ.js.map
@@ -2,7 +2,7 @@ import { jsxs as ee, jsx as M } from "react/jsx-runtime";
2
2
  import { forwardRef as te, useId as re, useState as L, useRef as R, useEffect as se, useCallback as N, useMemo as oe } from "react";
3
3
  import { c as O } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
- import { u as ie } from "./form-field-context-94LwgYTQ.js";
5
+ import { u as ie } from "./form-field-context-B3APVHKx.js";
6
6
  import { u as ne } from "./registry-C9nwlNyL.js";
7
7
  const ce = {
8
8
  id: "otp-input",
@@ -107,7 +107,10 @@ const pe = te(
107
107
  }, z) => {
108
108
  const { t: H } = ae(), v = ie(), _ = re(), P = y ? _ : void 0, I = o !== void 0, [q, W] = L(
109
109
  () => g(m ?? "", e)
110
- ), p = g(I ? o : q, e), G = de(p, e), k = v.disabled || !!S, B = v.invalid || !!$, J = B ? "error" : "default", C = R([]), w = R(p.length === e), d = R(p);
110
+ ), p = g(
111
+ I ? o : q,
112
+ e
113
+ ), G = de(p, e), k = v.disabled || !!S, B = v.invalid || !!$, J = B ? "error" : "default", C = R([]), w = R(p.length === e), d = R(p);
111
114
  d.current = p;
112
115
  const Q = () => {
113
116
  const r = p.length;
@@ -254,4 +257,4 @@ pe.displayName = "OTPInput";
254
257
  export {
255
258
  pe as O
256
259
  };
257
- //# sourceMappingURL=otp-input-EglXOUue.js.map
260
+ //# sourceMappingURL=otp-input-C9gUByF0.js.map