@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
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as g } from "react/jsx-runtime";
2
2
  import { forwardRef as Q, useState as v, useRef as U, useCallback as X, useMemo as Z, useImperativeHandle as z } from "react";
3
3
  import { useTranslation as ee } from "react-i18next";
4
4
  import * as m from "@radix-ui/react-popover";
5
- import { u as te } from "./form-field-context-94LwgYTQ.js";
5
+ import { u as te } from "./form-field-context-B3APVHKx.js";
6
6
  import { a as ae, g as ne, b as re, e as I, c as se, C as oe, d as ie, t as de, p as ce, D as le, f as pe, h as ue } from "./react-day-picker-C04L_28V.js";
7
7
  import { c as fe, b as N, s as ge, f as R, d as me } from "./isSameMonth-5wNF2f4I.js";
8
8
  import { u as ye } from "./registry-C9nwlNyL.js";
@@ -100,9 +100,7 @@ const ke = {
100
100
  }, j) => {
101
101
  const { t: o, i18n: A } = ee(), c = te(), h = F ?? c.id, w = c.disabled || V, B = c.invalid ? "error" : "default", i = ne(A.language), H = K ?? o("ui.inputs.dateRangePicker.placeholder", "Select date range"), k = t !== void 0, [_, $] = v(
102
102
  t ?? s ?? {}
103
- ), a = k ? t : _, [p, u] = v(!1), [Y, M] = v(
104
- a.from ?? /* @__PURE__ */ new Date()
105
- ), q = U(null), d = X(
103
+ ), a = k ? t : _, [p, u] = v(!1), [Y, M] = v(a.from ?? /* @__PURE__ */ new Date()), q = U(null), d = X(
106
104
  (e) => {
107
105
  k || $(e), n == null || n(e);
108
106
  },
@@ -174,7 +172,9 @@ const ke = {
174
172
  })(), C = (() => {
175
173
  if (a.from && a.to) {
176
174
  const e = me(a.to, a.from) + 1;
177
- return o("ui.inputs.dateRangePicker.days", "{{count}} days", { count: e });
175
+ return o("ui.inputs.dateRangePicker.days", "{{count}} days", {
176
+ count: e
177
+ });
178
178
  }
179
179
  return "";
180
180
  })(), b = Z(
@@ -208,8 +208,21 @@ const ke = {
208
208
  "aria-expanded": p,
209
209
  className: de({ size: P, tone: B }),
210
210
  children: [
211
- /* @__PURE__ */ r("span", { className: S ? "ds:text-foreground" : "ds:text-muted-foreground", children: S || H }),
212
- /* @__PURE__ */ r("span", { "aria-hidden": "true", className: ie({ size: P }), children: /* @__PURE__ */ r(oe, {}) })
211
+ /* @__PURE__ */ r(
212
+ "span",
213
+ {
214
+ className: S ? "ds:text-foreground" : "ds:text-muted-foreground",
215
+ children: S || H
216
+ }
217
+ ),
218
+ /* @__PURE__ */ r(
219
+ "span",
220
+ {
221
+ "aria-hidden": "true",
222
+ className: ie({ size: P }),
223
+ children: /* @__PURE__ */ r(oe, {})
224
+ }
225
+ )
213
226
  ]
214
227
  }
215
228
  ) }),
@@ -271,4 +284,4 @@ export {
271
284
  be as D,
272
285
  ke as d
273
286
  };
274
- //# sourceMappingURL=date-range-picker-B2hGsffw.js.map
287
+ //# sourceMappingURL=date-range-picker-mix2nEVC.js.map
@@ -3,8 +3,8 @@ import { forwardRef as oe, useState as p, useRef as de, useCallback as F, useMem
3
3
  import { c as ue } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as me } from "react-i18next";
5
5
  import * as k from "@radix-ui/react-popover";
6
- import { u as pe } from "./form-field-context-94LwgYTQ.js";
7
- import { T as fe } from "./time-picker-B8AMIrX7.js";
6
+ import { u as pe } from "./form-field-context-B3APVHKx.js";
7
+ import { T as fe } from "./time-picker-DvPUmHH-.js";
8
8
  import { g as ge, b as he, i as ve, j as be, C as ye, d as Te, t as ke, D as we, f as De, h as Pe } from "./react-day-picker-C04L_28V.js";
9
9
  import { f as xe } from "./isSameMonth-5wNF2f4I.js";
10
10
  import { u as Ce } from "./registry-C9nwlNyL.js";
@@ -89,7 +89,9 @@ function Me(e, s) {
89
89
  var a;
90
90
  try {
91
91
  const i = { timeZoneName: "short" };
92
- return s && s !== "local" && (i.timeZone = s === "utc" ? "UTC" : s), ((a = new Intl.DateTimeFormat(e, i).formatToParts(/* @__PURE__ */ new Date()).find((d) => d.type === "timeZoneName")) == null ? void 0 : a.value) ?? "";
92
+ return s && s !== "local" && (i.timeZone = s === "utc" ? "UTC" : s), ((a = new Intl.DateTimeFormat(e, i).formatToParts(
93
+ /* @__PURE__ */ new Date()
94
+ ).find((d) => d.type === "timeZoneName")) == null ? void 0 : a.value) ?? "";
93
95
  } catch {
94
96
  return "";
95
97
  }
@@ -157,7 +159,10 @@ const Ve = ue(
157
159
  t && (h(n ?? /* @__PURE__ */ new Date()), x(n ?? /* @__PURE__ */ new Date()), u(!1)), b(t);
158
160
  }, se = (t) => {
159
161
  if (!t) return;
160
- const M = o ?? /* @__PURE__ */ new Date(), m = A(K(t, M.getHours()), M.getMinutes());
162
+ const M = o ?? /* @__PURE__ */ new Date(), m = A(
163
+ K(t, M.getHours()),
164
+ M.getMinutes()
165
+ );
161
166
  h(m), u(!C(m));
162
167
  }, ae = (t) => {
163
168
  const m = A(K(o ?? /* @__PURE__ */ new Date(), t.hours), t.minutes);
@@ -205,8 +210,21 @@ const Ve = ue(
205
210
  "aria-expanded": v,
206
211
  className: ke({ size: g, tone: q }),
207
212
  children: [
208
- /* @__PURE__ */ r("span", { className: H ? "ds:text-foreground" : "ds:text-muted-foreground", children: H || G }),
209
- /* @__PURE__ */ r("span", { "aria-hidden": "true", className: Te({ size: g }), children: /* @__PURE__ */ r(ye, {}) })
213
+ /* @__PURE__ */ r(
214
+ "span",
215
+ {
216
+ className: H ? "ds:text-foreground" : "ds:text-muted-foreground",
217
+ children: H || G
218
+ }
219
+ ),
220
+ /* @__PURE__ */ r(
221
+ "span",
222
+ {
223
+ "aria-hidden": "true",
224
+ className: Te({ size: g }),
225
+ children: /* @__PURE__ */ r(ye, {})
226
+ }
227
+ )
210
228
  ]
211
229
  }
212
230
  ) }),
@@ -242,20 +260,17 @@ const Ve = ue(
242
260
  /* @__PURE__ */ r(
243
261
  fe,
244
262
  {
245
- value: o ? { hours: o.getHours(), minutes: o.getMinutes() } : { hours: 0, minutes: 0 },
263
+ value: o ? {
264
+ hours: o.getHours(),
265
+ minutes: o.getMinutes()
266
+ } : { hours: 0, minutes: 0 },
246
267
  onChange: ae,
247
268
  hour12: B,
248
269
  minuteStep: Z,
249
270
  size: g
250
271
  }
251
272
  ),
252
- S ? /* @__PURE__ */ r(
253
- "span",
254
- {
255
- className: "type-meta ds:text-muted-foreground",
256
- children: S
257
- }
258
- ) : null,
273
+ S ? /* @__PURE__ */ r("span", { className: "type-meta ds:text-muted-foreground", children: S }) : null,
259
274
  L ? /* @__PURE__ */ r(
260
275
  "span",
261
276
  {
@@ -290,4 +305,4 @@ export {
290
305
  Ie as D,
291
306
  Oe as d
292
307
  };
293
- //# sourceMappingURL=date-time-picker-Bzt0S8yO.js.map
308
+ //# sourceMappingURL=date-time-picker-Dnong_BY.js.map
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as C } from "react/jsx-runtime";
2
2
  import { forwardRef as n, useContext as V, useState as u, useCallback as k, createContext as R } from "react";
3
3
  import { c as d } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as _ } from "react-i18next";
5
- import { I as T } from "./icon-button-Wnnde5lc.js";
5
+ import { I as T } from "./icon-button-C4CGcYuz.js";
6
6
  import { C as P } from "./check-DPdL_Sm7.js";
7
7
  import { C as j } from "./copy-B00HK7tj.js";
8
8
  const f = R({
@@ -87,7 +87,12 @@ const f = R({
87
87
  "dl",
88
88
  {
89
89
  ref: m,
90
- className: A({ layout: e, density: s, divider: a, className: t }),
90
+ className: A({
91
+ layout: e,
92
+ density: s,
93
+ divider: a,
94
+ className: t
95
+ }),
91
96
  "data-component": "description-list",
92
97
  ...c,
93
98
  children: l
@@ -96,14 +101,7 @@ const f = R({
96
101
  );
97
102
  v.displayName = "DescriptionList";
98
103
  const y = n(
99
- ({
100
- copyable: e = !1,
101
- copyText: s,
102
- copyLabel: a,
103
- className: t,
104
- children: l,
105
- ...c
106
- }, m) => {
104
+ ({ copyable: e = !1, copyText: s, copyLabel: a, className: t, children: l, ...c }, m) => {
107
105
  const { layout: g, divider: w } = V(f), { t: r } = _(), [D, p] = u(!1), [L, o] = u(""), N = k(async () => {
108
106
  if (s)
109
107
  try {
@@ -113,12 +111,19 @@ const y = n(
113
111
  } catch {
114
112
  o(r("ui.keyValuePair.notAvailable")), setTimeout(() => o(""), 3e3);
115
113
  }
116
- }, [s, r]), h = r("ui.keyValuePair.copy", { label: a ?? s ?? "" });
114
+ }, [s, r]), h = r("ui.keyValuePair.copy", {
115
+ label: a ?? s ?? ""
116
+ });
117
117
  return /* @__PURE__ */ C(
118
118
  "div",
119
119
  {
120
120
  ref: m,
121
- className: I({ layout: g, divider: w, copyable: e, className: t }),
121
+ className: I({
122
+ layout: g,
123
+ divider: w,
124
+ copyable: e,
125
+ className: t
126
+ }),
122
127
  ...c,
123
128
  children: [
124
129
  l,
@@ -166,16 +171,14 @@ const z = d(
166
171
  )
167
172
  );
168
173
  x.displayName = "DescriptionList.Term";
169
- const b = n(
170
- ({ numeric: e = !1, className: s, ...a }, t) => /* @__PURE__ */ i(
171
- "dd",
172
- {
173
- ref: t,
174
- className: B({ numeric: e, className: s }),
175
- ...a
176
- }
177
- )
178
- );
174
+ const b = n(({ numeric: e = !1, className: s, ...a }, t) => /* @__PURE__ */ i(
175
+ "dd",
176
+ {
177
+ ref: t,
178
+ className: B({ numeric: e, className: s }),
179
+ ...a
180
+ }
181
+ ));
179
182
  b.displayName = "DescriptionList.Detail";
180
183
  const J = Object.assign(v, {
181
184
  Row: y,
@@ -185,4 +188,4 @@ const J = Object.assign(v, {
185
188
  export {
186
189
  J as D
187
190
  };
188
- //# sourceMappingURL=description-list-DvJbp6Yg.js.map
191
+ //# sourceMappingURL=description-list-BYA77Yud.js.map
@@ -0,0 +1,211 @@
1
+ import { jsx as a, jsxs as D } from "react/jsx-runtime";
2
+ import { useState as k, useRef as z, useEffect as E, useCallback as I, useMemo as O, forwardRef as d, useContext as B, createContext as S } from "react";
3
+ import * as t from "@radix-ui/react-dialog";
4
+ import { c as A } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as H } from "react-i18next";
6
+ import { I as F } from "./icon-button-C4CGcYuz.js";
7
+ import { u as L } from "./registry-C9nwlNyL.js";
8
+ import { X as V } from "./x-CCcI3eJp.js";
9
+ const $ = {
10
+ id: "dialog",
11
+ capabilities: ["open", "close", "dismiss"],
12
+ state: {
13
+ isOpen: {
14
+ type: "boolean",
15
+ description: "True when the dialog is currently open.",
16
+ read: (o) => o.getIsOpen()
17
+ }
18
+ },
19
+ actions: {
20
+ open: {
21
+ safety: "read",
22
+ description: "Open the dialog.",
23
+ invoke: (o) => {
24
+ o.open();
25
+ }
26
+ },
27
+ close: {
28
+ safety: "write",
29
+ description: "Close the dialog. Reversible by reopening.",
30
+ invoke: (o) => {
31
+ o.close();
32
+ }
33
+ },
34
+ dismiss: {
35
+ safety: "destructive",
36
+ description: "Dismiss the dialog. Loses any in-progress input that has not been committed.",
37
+ invoke: (o) => {
38
+ o.close();
39
+ }
40
+ }
41
+ },
42
+ domHooks: {
43
+ root: { attr: "data-component", value: "dialog" },
44
+ instanceId: {
45
+ attr: "data-component-id",
46
+ sourceProp: "id",
47
+ description: "Sourced from the id prop on Dialog.Root."
48
+ }
49
+ }
50
+ }, P = [
51
+ "ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
52
+ "ds:bg-[var(--background)]/[var(--opacity-70)]",
53
+ "ds:backdrop-blur-sm",
54
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0",
55
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0",
56
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
57
+ ].join(" "), _ = [
58
+ "ds:fixed ds:z-[var(--z-modal)]",
59
+ "ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
60
+ "ds:shadow-[var(--shadow-xl)]",
61
+ "ds:p-[var(--spacing-lg)]",
62
+ "ds:focus-visible:outline-none",
63
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
64
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
65
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
66
+ ].join(" "), u = "ds:start-1/2 ds:top-1/2 ds:-translate-x-1/2 ds:-translate-y-1/2 ds:w-[calc(100%-var(--spacing-lg)*2)]", M = A(_, {
67
+ variants: {
68
+ size: {
69
+ sm: `${u} ds:max-w-[448px] ds:rounded-[var(--radius-lg)] ds:overflow-y-auto ds:max-h-[85dvh]`,
70
+ md: `${u} ds:max-w-[560px] ds:rounded-[var(--radius-lg)] ds:overflow-y-auto ds:max-h-[85dvh]`,
71
+ lg: `${u} ds:max-w-[720px] ds:rounded-[var(--radius-lg)] ds:overflow-y-auto ds:max-h-[85dvh]`,
72
+ fullscreen: "ds:start-0 ds:top-0 ds:w-[100dvw] ds:h-[100dvh] ds:max-w-none ds:rounded-none ds:overflow-y-auto"
73
+ }
74
+ },
75
+ defaultVariants: { size: "md" }
76
+ }), y = S(void 0), v = ({
77
+ children: o,
78
+ id: e,
79
+ open: s,
80
+ defaultOpen: r,
81
+ onOpenChange: i,
82
+ ...p
83
+ }) => {
84
+ const l = s !== void 0, [m, g] = k(
85
+ r ?? !1
86
+ ), n = l ? !!s : m, f = z(n);
87
+ E(() => {
88
+ f.current = n;
89
+ }, [n]);
90
+ const c = I(
91
+ (x) => {
92
+ l || g(x), i == null || i(x);
93
+ },
94
+ [l, i]
95
+ ), j = O(
96
+ () => ({
97
+ getIsOpen: () => f.current,
98
+ open: () => c(!0),
99
+ close: () => c(!1)
100
+ }),
101
+ [c]
102
+ );
103
+ return L($, j, e), /* @__PURE__ */ a(y.Provider, { value: e, children: /* @__PURE__ */ a(t.Root, { open: n, onOpenChange: c, ...p, children: o }) });
104
+ };
105
+ v.displayName = "Dialog.Root";
106
+ const h = d(({ children: o, ...e }, s) => /* @__PURE__ */ a(t.Trigger, { ref: s, ...e, children: o }));
107
+ h.displayName = "Dialog.Trigger";
108
+ const b = d(({ children: o, ...e }, s) => /* @__PURE__ */ a(t.Close, { ref: s, ...e, children: o }));
109
+ b.displayName = "Dialog.Close";
110
+ const N = d(
111
+ ({
112
+ size: o = "md",
113
+ variant: e = "default",
114
+ hideCloseButton: s = !0,
115
+ className: r,
116
+ children: i,
117
+ ...p
118
+ }, l) => {
119
+ const { t: m } = H(), g = B(y), n = e === "alert" ? { role: "alertdialog" } : {};
120
+ return /* @__PURE__ */ D(t.Portal, { children: [
121
+ /* @__PURE__ */ a(t.Overlay, { className: P }),
122
+ /* @__PURE__ */ D(
123
+ t.Content,
124
+ {
125
+ ref: l,
126
+ ...n,
127
+ "data-component": "dialog",
128
+ "data-component-id": g,
129
+ className: M({ size: o, className: r }),
130
+ ...p,
131
+ children: [
132
+ i,
133
+ !s && /* @__PURE__ */ a("div", { className: "ds:absolute ds:end-[var(--spacing-md)] ds:top-[var(--spacing-md)]", children: /* @__PURE__ */ a(t.Close, { asChild: !0, children: /* @__PURE__ */ a(
134
+ F,
135
+ {
136
+ icon: /* @__PURE__ */ a(V, {}),
137
+ intent: "ghost",
138
+ size: "sm",
139
+ "aria-label": m("ui.common.close", "Close")
140
+ }
141
+ ) }) })
142
+ ]
143
+ }
144
+ )
145
+ ] });
146
+ }
147
+ );
148
+ N.displayName = "Dialog.Content";
149
+ const w = d(
150
+ ({ className: o, ...e }, s) => /* @__PURE__ */ a(
151
+ "div",
152
+ {
153
+ ref: s,
154
+ className: [
155
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:pe-[var(--spacing-xl)]",
156
+ o
157
+ ].filter(Boolean).join(" "),
158
+ ...e
159
+ }
160
+ )
161
+ );
162
+ w.displayName = "Dialog.Header";
163
+ const C = d(({ className: o, ...e }, s) => /* @__PURE__ */ a(
164
+ t.Title,
165
+ {
166
+ ref: s,
167
+ className: ["type-title-card ds:break-words", o].filter(Boolean).join(" "),
168
+ ...e
169
+ }
170
+ ));
171
+ C.displayName = "Dialog.Title";
172
+ const R = d(({ className: o, ...e }, s) => /* @__PURE__ */ a(
173
+ t.Description,
174
+ {
175
+ ref: s,
176
+ className: ["type-body-sm ds:text-[var(--muted-foreground)]", o].filter(Boolean).join(" "),
177
+ ...e
178
+ }
179
+ ));
180
+ R.displayName = "Dialog.Description";
181
+ const T = d(
182
+ ({ className: o, divider: e = !1, ...s }, r) => /* @__PURE__ */ a(
183
+ "div",
184
+ {
185
+ ref: r,
186
+ className: [
187
+ "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
188
+ "ds:mt-[var(--spacing-md)]",
189
+ e && "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
190
+ o
191
+ ].filter(Boolean).join(" "),
192
+ ...s
193
+ }
194
+ )
195
+ );
196
+ T.displayName = "Dialog.Footer";
197
+ const U = Object.assign(v, {
198
+ Root: v,
199
+ Trigger: h,
200
+ Content: N,
201
+ Header: w,
202
+ Title: C,
203
+ Description: R,
204
+ Footer: T,
205
+ Close: b
206
+ });
207
+ export {
208
+ U as D,
209
+ $ as d
210
+ };
211
+ //# sourceMappingURL=dialog-BPD7wlGE.js.map