@alfadocs/ui-kit 0.1.8 → 0.1.9

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 (385) hide show
  1. package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
  2. package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
  3. package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
  4. package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
  5. package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
  6. package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
  7. package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
  8. package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
  9. package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
  10. package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
  11. package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
  12. package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
  13. package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
  14. package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
  15. package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
  16. package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
  17. package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
  18. package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
  19. package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
  20. package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
  21. package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
  22. package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
  23. package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
  24. package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
  25. package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
  26. package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
  27. package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
  28. package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
  29. package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
  30. package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
  31. package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
  32. package/dist/_chunks/link-QheANk74.js +121 -0
  33. package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
  34. package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
  35. package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
  36. package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
  37. package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
  38. package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
  39. package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
  40. package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
  41. package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
  42. package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
  43. package/dist/_chunks/otp-input-EglXOUue.js +257 -0
  44. package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
  45. package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
  46. package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
  47. package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
  48. package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
  49. package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
  50. package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
  51. package/dist/_chunks/popover-kFN8s84V.js +229 -0
  52. package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
  53. package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
  54. package/dist/_chunks/progress-wNsqkw8I.js +253 -0
  55. package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
  56. package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
  57. package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
  58. package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
  59. package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
  60. package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
  61. package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
  62. package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
  63. package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
  64. package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
  65. package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
  66. package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
  67. package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
  68. package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
  69. package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
  70. package/dist/_chunks/slider-CcsQTZTA.js +322 -0
  71. package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
  72. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
  73. package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
  74. package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
  75. package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
  76. package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
  77. package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
  78. package/dist/_chunks/switch-BYEH8I53.js +196 -0
  79. package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
  80. package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
  81. package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
  82. package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
  83. package/dist/_chunks/text-area-C_M8wliK.js +239 -0
  84. package/dist/_chunks/text-input-BX39e6T6.js +272 -0
  85. package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
  86. package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
  87. package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
  88. package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
  89. package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
  90. package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
  91. package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
  92. package/dist/agent-catalog.json +2929 -268
  93. package/dist/components/accordion/accordion.agent.d.ts +2 -1
  94. package/dist/components/accordion/accordion.d.ts +6 -0
  95. package/dist/components/accordion/index.js +2 -2
  96. package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
  97. package/dist/components/agenda-card/index.d.ts +1 -0
  98. package/dist/components/agenda-card/index.js +3 -1
  99. package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
  100. package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
  101. package/dist/components/agenda-tray/index.d.ts +2 -1
  102. package/dist/components/agenda-tray/index.js +3 -2
  103. package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
  104. package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
  105. package/dist/components/ai-prompt-input/index.d.ts +2 -1
  106. package/dist/components/ai-prompt-input/index.js +3 -2
  107. package/dist/components/aspect-ratio/index.js +1 -1
  108. package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
  109. package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
  110. package/dist/components/audio-recorder/index.d.ts +2 -1
  111. package/dist/components/audio-recorder/index.js +3 -2
  112. package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
  113. package/dist/components/autocomplete/autocomplete.d.ts +10 -0
  114. package/dist/components/autocomplete/index.js +1 -1
  115. package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
  116. package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
  117. package/dist/components/breadcrumb/index.d.ts +2 -1
  118. package/dist/components/breadcrumb/index.js +5 -4
  119. package/dist/components/button/button.d.ts +1 -1
  120. package/dist/components/chart/chart.d.ts +2 -0
  121. package/dist/components/chart/index.js +1 -1
  122. package/dist/components/chat-container/chat-container.d.ts +3 -1
  123. package/dist/components/chat-container/index.js +2 -2
  124. package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
  125. package/dist/components/chat-input/chat-input.d.ts +10 -1
  126. package/dist/components/chat-input/index.d.ts +2 -1
  127. package/dist/components/chat-input/index.js +4 -2
  128. package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
  129. package/dist/components/checkbox/checkbox.d.ts +6 -0
  130. package/dist/components/checkbox/index.js +1 -1
  131. package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
  132. package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
  133. package/dist/components/checkbox-group/index.js +1 -1
  134. package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
  135. package/dist/components/collapsible/collapsible.d.ts +8 -1
  136. package/dist/components/collapsible/index.d.ts +2 -1
  137. package/dist/components/collapsible/index.js +4 -3
  138. package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
  139. package/dist/components/color-picker/color-picker.d.ts +5 -0
  140. package/dist/components/color-picker/index.js +1 -1
  141. package/dist/components/combobox/combobox.agent.d.ts +2 -1
  142. package/dist/components/combobox/combobox.d.ts +10 -0
  143. package/dist/components/combobox/index.js +1 -1
  144. package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
  145. package/dist/components/command-palette/command-palette.d.ts +7 -0
  146. package/dist/components/command-palette/index.js +1 -1
  147. package/dist/components/data-table/index.js +1 -1
  148. package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
  149. package/dist/components/date-picker/date-picker.d.ts +16 -1
  150. package/dist/components/date-picker/index.d.ts +2 -1
  151. package/dist/components/date-picker/index.js +3 -2
  152. package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
  153. package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
  154. package/dist/components/date-range-picker/index.d.ts +2 -1
  155. package/dist/components/date-range-picker/index.js +3 -2
  156. package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
  157. package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
  158. package/dist/components/date-time-picker/index.d.ts +2 -1
  159. package/dist/components/date-time-picker/index.js +3 -2
  160. package/dist/components/dialog/dialog.agent.d.ts +5 -6
  161. package/dist/components/dialog/dialog.d.ts +11 -2
  162. package/dist/components/dialog/index.js +1 -1
  163. package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
  164. package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
  165. package/dist/components/dropdown-menu/index.js +2 -2
  166. package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
  167. package/dist/components/file-upload/file-upload.d.ts +12 -0
  168. package/dist/components/file-upload/index.js +1 -1
  169. package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
  170. package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
  171. package/dist/components/freemium-paywall/index.d.ts +2 -1
  172. package/dist/components/freemium-paywall/index.js +3 -2
  173. package/dist/components/index.d.ts +2 -0
  174. package/dist/components/link/index.d.ts +2 -0
  175. package/dist/components/link/index.js +5 -0
  176. package/dist/components/link/link.d.ts +39 -0
  177. package/dist/components/list/index.d.ts +2 -1
  178. package/dist/components/list/index.js +3 -2
  179. package/dist/components/list/list.agent.d.ts +4 -0
  180. package/dist/components/list/list.d.ts +8 -2
  181. package/dist/components/message-card/index.d.ts +1 -0
  182. package/dist/components/message-card/index.js +5 -3
  183. package/dist/components/message-card/message-card.agent.d.ts +3 -0
  184. package/dist/components/message-tray/index.d.ts +2 -1
  185. package/dist/components/message-tray/index.js +3 -2
  186. package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
  187. package/dist/components/message-tray/message-tray.d.ts +27 -2
  188. package/dist/components/multi-select/index.js +1 -1
  189. package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
  190. package/dist/components/multi-select/multi-select.d.ts +10 -0
  191. package/dist/components/navigation-menu/index.d.ts +2 -1
  192. package/dist/components/navigation-menu/index.js +7 -6
  193. package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
  194. package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
  195. package/dist/components/notification-card/index.d.ts +1 -0
  196. package/dist/components/notification-card/index.js +5 -3
  197. package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
  198. package/dist/components/notification-tray/index.d.ts +2 -1
  199. package/dist/components/notification-tray/index.js +3 -2
  200. package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
  201. package/dist/components/notification-tray/notification-tray.d.ts +27 -2
  202. package/dist/components/number-input/index.js +1 -1
  203. package/dist/components/number-input/number-input.agent.d.ts +4 -0
  204. package/dist/components/number-input/number-input.d.ts +7 -0
  205. package/dist/components/otp-input/index.js +1 -1
  206. package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
  207. package/dist/components/otp-input/otp-input.d.ts +10 -0
  208. package/dist/components/pagination/index.js +1 -1
  209. package/dist/components/pagination/pagination.agent.d.ts +2 -1
  210. package/dist/components/pagination/pagination.d.ts +7 -0
  211. package/dist/components/password-input/index.js +1 -1
  212. package/dist/components/password-input/password-input.agent.d.ts +4 -0
  213. package/dist/components/password-input/password-input.d.ts +9 -0
  214. package/dist/components/payment-form/index.js +2 -2
  215. package/dist/components/payment-form/payment-form.d.ts +2 -0
  216. package/dist/components/pdf-viewer/index.js +1 -1
  217. package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
  218. package/dist/components/phone-input/index.js +1 -1
  219. package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
  220. package/dist/components/phone-input/phone-input.d.ts +7 -0
  221. package/dist/components/popover/index.js +2 -2
  222. package/dist/components/popover/popover.agent.d.ts +2 -1
  223. package/dist/components/popover/popover.d.ts +8 -1
  224. package/dist/components/privacy-lock/index.d.ts +2 -1
  225. package/dist/components/privacy-lock/index.js +3 -2
  226. package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
  227. package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
  228. package/dist/components/progress/index.js +2 -2
  229. package/dist/components/radio/index.js +1 -1
  230. package/dist/components/radio-group/index.js +2 -2
  231. package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
  232. package/dist/components/radio-group/radio-group.d.ts +5 -0
  233. package/dist/components/recaptcha-widget/index.d.ts +3 -0
  234. package/dist/components/recaptcha-widget/index.js +6 -0
  235. package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
  236. package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
  237. package/dist/components/resizable/index.js +1 -1
  238. package/dist/components/resizable/resizable.agent.d.ts +2 -1
  239. package/dist/components/resizable/resizable.d.ts +6 -0
  240. package/dist/components/rich-text-editor/index.js +1 -1
  241. package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
  242. package/dist/components/search-bar/index.d.ts +2 -1
  243. package/dist/components/search-bar/index.js +3 -2
  244. package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
  245. package/dist/components/search-bar/search-bar.d.ts +27 -1
  246. package/dist/components/search-input/index.d.ts +2 -1
  247. package/dist/components/search-input/index.js +4 -2
  248. package/dist/components/search-input/search-input.agent.d.ts +4 -0
  249. package/dist/components/search-input/search-input.d.ts +27 -0
  250. package/dist/components/select/index.js +1 -1
  251. package/dist/components/select/select.agent.d.ts +4 -0
  252. package/dist/components/select/select.d.ts +9 -0
  253. package/dist/components/sheet/index.js +2 -2
  254. package/dist/components/sheet/sheet.agent.d.ts +2 -1
  255. package/dist/components/sheet/sheet.d.ts +11 -2
  256. package/dist/components/sidebar/index.js +2 -2
  257. package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
  258. package/dist/components/sidebar/sidebar.d.ts +6 -0
  259. package/dist/components/signature-capture/index.js +1 -1
  260. package/dist/components/signature-capture/signature-capture.d.ts +2 -0
  261. package/dist/components/slider/index.js +1 -1
  262. package/dist/components/slider/slider.agent.d.ts +4 -0
  263. package/dist/components/slider/slider.d.ts +5 -0
  264. package/dist/components/sparkline/index.js +1 -1
  265. package/dist/components/stepper-accordion/index.d.ts +2 -1
  266. package/dist/components/stepper-accordion/index.js +3 -2
  267. package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
  268. package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
  269. package/dist/components/stepper-calendar/index.d.ts +2 -1
  270. package/dist/components/stepper-calendar/index.js +3 -2
  271. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
  272. package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
  273. package/dist/components/stepper-progress/index.d.ts +2 -1
  274. package/dist/components/stepper-progress/index.js +4 -2
  275. package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
  276. package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
  277. package/dist/components/suggestion-chip/index.d.ts +2 -1
  278. package/dist/components/suggestion-chip/index.js +5 -3
  279. package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
  280. package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
  281. package/dist/components/switch/index.js +1 -1
  282. package/dist/components/switch/switch.agent.d.ts +4 -0
  283. package/dist/components/switch/switch.d.ts +6 -0
  284. package/dist/components/tabs/index.js +1 -1
  285. package/dist/components/tabs/tabs.agent.d.ts +2 -1
  286. package/dist/components/tabs/tabs.d.ts +4 -0
  287. package/dist/components/task-card/index.d.ts +1 -0
  288. package/dist/components/task-card/index.js +5 -3
  289. package/dist/components/task-card/task-card.agent.d.ts +3 -0
  290. package/dist/components/task-tray/index.d.ts +2 -1
  291. package/dist/components/task-tray/index.js +3 -2
  292. package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
  293. package/dist/components/task-tray/task-tray.d.ts +25 -2
  294. package/dist/components/text-area/index.js +1 -1
  295. package/dist/components/text-area/text-area.agent.d.ts +4 -0
  296. package/dist/components/text-area/text-area.d.ts +7 -0
  297. package/dist/components/text-input/index.js +1 -1
  298. package/dist/components/text-input/text-input.agent.d.ts +4 -0
  299. package/dist/components/text-input/text-input.d.ts +10 -0
  300. package/dist/components/theme-toggle/index.d.ts +2 -1
  301. package/dist/components/theme-toggle/index.js +3 -2
  302. package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
  303. package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
  304. package/dist/components/time-picker/index.d.ts +2 -1
  305. package/dist/components/time-picker/index.js +3 -2
  306. package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
  307. package/dist/components/time-picker/time-picker.d.ts +16 -1
  308. package/dist/components/timeline/index.d.ts +2 -1
  309. package/dist/components/timeline/index.js +3 -2
  310. package/dist/components/timeline/timeline.agent.d.ts +4 -0
  311. package/dist/components/timeline/timeline.d.ts +8 -1
  312. package/dist/components/toast/index.d.ts +3 -2
  313. package/dist/components/toast/index.js +7 -5
  314. package/dist/components/toast/toast.agent.d.ts +4 -0
  315. package/dist/components/toast/toast.d.ts +8 -0
  316. package/dist/components/tooth-scheme/index.js +1 -1
  317. package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
  318. package/dist/components/transcript-panel/index.d.ts +2 -1
  319. package/dist/components/transcript-panel/index.js +3 -2
  320. package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
  321. package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
  322. package/dist/components/workflow/index.d.ts +2 -1
  323. package/dist/components/workflow/index.js +10 -7
  324. package/dist/components/workflow/workflow-editor.d.ts +7 -1
  325. package/dist/components/workflow/workflow-map.d.ts +2 -0
  326. package/dist/components/workflow/workflow.agent.d.ts +6 -0
  327. package/dist/i18n/config.js +24 -11
  328. package/dist/i18n/resources.d.ts +7 -0
  329. package/dist/index.js +471 -423
  330. package/dist/locales/en.json +7 -0
  331. package/dist/patterns/leo-assistant/index.js +1 -1
  332. package/dist/patterns/patient-shell/index.js +1 -1
  333. package/dist/tokens.css +1 -1
  334. package/package.json +18 -2
  335. package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
  336. package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
  337. package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
  338. package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
  339. package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
  340. package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
  341. package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
  342. package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
  343. package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
  344. package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
  345. package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
  346. package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
  347. package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
  348. package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
  349. package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
  350. package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
  351. package/dist/_chunks/list-B1ozIjQe.js +0 -359
  352. package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
  353. package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
  354. package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
  355. package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
  356. package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
  357. package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
  358. package/dist/_chunks/password-input-DJDVznWH.js +0 -193
  359. package/dist/_chunks/phone-input-DE_39q65.js +0 -428
  360. package/dist/_chunks/popover-C3CTUsqh.js +0 -227
  361. package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
  362. package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
  363. package/dist/_chunks/progress-B4Of_pzz.js +0 -252
  364. package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
  365. package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
  366. package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
  367. package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
  368. package/dist/_chunks/search-input-BVMCONyN.js +0 -197
  369. package/dist/_chunks/select-IY_JQa-F.js +0 -321
  370. package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
  371. package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
  372. package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
  373. package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
  374. package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
  375. package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
  376. package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
  377. package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
  378. package/dist/_chunks/switch-aN2EYxHh.js +0 -138
  379. package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
  380. package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
  381. package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
  382. package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
  383. package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
  384. package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
  385. package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
@@ -1,227 +0,0 @@
1
- import { jsx as t, jsxs as L } from "react/jsx-runtime";
2
- import { useState as H, useCallback as u, useRef as V, useEffect as C, forwardRef as v, useId as N, useContext as f, createContext as z } from "react";
3
- import * as m from "@radix-ui/react-popover";
4
- import { c as X } from "./index-D2ZczOXr.js";
5
- import { useTranslation as $ } from "react-i18next";
6
- import { I as q } from "./icon-button-Wnnde5lc.js";
7
- import { X as G } from "./x-CCcI3eJp.js";
8
- const g = z({
9
- headingId: void 0,
10
- setHeadingId: () => {
11
- },
12
- descriptionId: void 0,
13
- setDescriptionId: () => {
14
- }
15
- }), w = z({
16
- isHoverMode: !1,
17
- clearHoverTimer: () => {
18
- },
19
- closeWithDelay: () => {
20
- }
21
- });
22
- function J(e) {
23
- if (e === "top" || e === "bottom") return e;
24
- const o = typeof document < "u" && document.documentElement.dir === "rtl";
25
- return e === "start" ? o ? "right" : "left" : o ? "left" : "right";
26
- }
27
- const K = X(
28
- [
29
- // Border kept (transparent) so the forced-colors override below can
30
- // repaint a visible edge in HCM. In normal modes the soft drop-shadow
31
- // carries the edge cue; the heavy `--border` (grey-800 since WCAG
32
- // 1.4.11 bump in 67fef8c) made the popover read as a charcoal box.
33
- "ds:relative ds:bg-[var(--popover)] ds:border ds:border-transparent ds:rounded-[var(--radius-md)]",
34
- "ds:p-[var(--spacing-md)]",
35
- "ds:shadow-[var(--shadow-lg)]",
36
- "ds:z-[var(--z-popover)]",
37
- "ds:text-[var(--popover-foreground)] ds:text-[length:var(--font-size-sm)]",
38
- "ds:break-words",
39
- "ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
40
- "ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
41
- "ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
42
- "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
43
- "ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
44
- "ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
45
- "ds:forced-colors:border-[CanvasText]",
46
- "ds:focus-visible:outline-none"
47
- ].join(" "),
48
- {
49
- variants: {
50
- size: {
51
- sm: "ds:max-w-[var(--popover-size-sm)]",
52
- md: "ds:max-w-[var(--popover-size-md)]",
53
- lg: "ds:max-w-[var(--popover-size-lg)]"
54
- }
55
- },
56
- defaultVariants: {
57
- size: "md"
58
- }
59
- }
60
- );
61
- function x({
62
- openOn: e = "click",
63
- children: o,
64
- open: s,
65
- onOpenChange: r,
66
- defaultOpen: n,
67
- modal: c
68
- }) {
69
- const [h, b] = H(n ?? !1), p = s !== void 0, y = p ? s : h, a = u(
70
- (T) => {
71
- p || b(T), r == null || r(T);
72
- },
73
- [p, r]
74
- ), d = V(null), l = e === "hover" || e === "hover-or-click", i = u(() => {
75
- d.current && (clearTimeout(d.current), d.current = null);
76
- }, []), P = u(() => {
77
- i(), d.current = setTimeout(() => {
78
- a(!0);
79
- }, 300);
80
- }, [i, a]), I = u(() => {
81
- i(), d.current = setTimeout(() => {
82
- a(!1);
83
- }, 300);
84
- }, [i, a]);
85
- C(() => () => i(), [i]);
86
- const [k, E] = H(void 0), [W, A] = H(
87
- void 0
88
- ), F = l ? {
89
- onMouseEnter: P,
90
- onMouseLeave: I,
91
- onFocus: () => {
92
- i(), a(!0);
93
- },
94
- onBlur: I
95
- } : {};
96
- return /* @__PURE__ */ t(
97
- g.Provider,
98
- {
99
- value: { headingId: k, setHeadingId: E, descriptionId: W, setDescriptionId: A },
100
- children: /* @__PURE__ */ t(
101
- w.Provider,
102
- {
103
- value: { isHoverMode: l, clearHoverTimer: i, closeWithDelay: I },
104
- children: /* @__PURE__ */ t(
105
- m.Root,
106
- {
107
- open: y,
108
- onOpenChange: a,
109
- modal: c,
110
- children: l ? /* @__PURE__ */ t("span", { className: "ds:inline-flex", ...F, children: o }) : o
111
- }
112
- )
113
- }
114
- )
115
- }
116
- );
117
- }
118
- x.displayName = "Popover.Root";
119
- const D = v(({ children: e, ...o }, s) => /* @__PURE__ */ t(m.Trigger, { ref: s, ...o, children: e }));
120
- D.displayName = "Popover.Trigger";
121
- const R = v(
122
- ({
123
- side: e = "bottom",
124
- align: o = "center",
125
- size: s = "md",
126
- showArrow: r = !0,
127
- className: n,
128
- children: c,
129
- ...h
130
- }, b) => {
131
- const { headingId: p, descriptionId: y } = f(g), { isHoverMode: a, clearHoverTimer: d, closeWithDelay: l } = f(w), i = J(e), P = a ? {
132
- onMouseEnter: d,
133
- onMouseLeave: l,
134
- onFocus: d,
135
- onBlur: l
136
- } : {};
137
- return /* @__PURE__ */ t(m.Portal, { children: /* @__PURE__ */ L(
138
- m.Content,
139
- {
140
- ref: b,
141
- side: i,
142
- align: o,
143
- sideOffset: 8,
144
- collisionPadding: 8,
145
- "aria-labelledby": p,
146
- "aria-describedby": y,
147
- className: K({ size: s, className: n }),
148
- "data-component": "popover",
149
- ...P,
150
- ...h,
151
- children: [
152
- c,
153
- r && /* @__PURE__ */ t(
154
- m.Arrow,
155
- {
156
- width: 12,
157
- height: 6,
158
- className: "ds:fill-[var(--popover)]"
159
- }
160
- )
161
- ]
162
- }
163
- ) });
164
- }
165
- );
166
- R.displayName = "Popover.Content";
167
- const j = v(({ className: e }, o) => {
168
- const { t: s } = $();
169
- return /* @__PURE__ */ t("div", { className: ["ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]", e].filter(Boolean).join(" "), children: /* @__PURE__ */ t(m.Close, { asChild: !0, children: /* @__PURE__ */ t(
170
- q,
171
- {
172
- ref: o,
173
- icon: /* @__PURE__ */ t(G, {}),
174
- intent: "ghost",
175
- size: "sm",
176
- "aria-label": s("ui.common.close", "Close")
177
- }
178
- ) }) });
179
- });
180
- j.displayName = "Popover.Close";
181
- const M = v(
182
- ({ as: e = "h3", className: o, ...s }, r) => {
183
- const n = N(), { setHeadingId: c } = f(g);
184
- return C(() => (c(n), () => c(void 0)), [n, c]), /* @__PURE__ */ t(
185
- e,
186
- {
187
- ref: r,
188
- id: n,
189
- className: [
190
- "type-title-item ds:leading-snug ds:break-words",
191
- "ds:pe-[var(--spacing-xl)]",
192
- o
193
- ].filter(Boolean).join(" "),
194
- ...s
195
- }
196
- );
197
- }
198
- );
199
- M.displayName = "Popover.Heading";
200
- const B = v(({ className: e, ...o }, s) => {
201
- const r = N(), { setDescriptionId: n } = f(g);
202
- return C(() => (n(r), () => n(void 0)), [r, n]), /* @__PURE__ */ t(
203
- "p",
204
- {
205
- ref: s,
206
- id: r,
207
- className: [
208
- "ds:text-[var(--muted-foreground)] type-body-sm ds:mt-[var(--spacing-xs)]",
209
- e
210
- ].filter(Boolean).join(" "),
211
- ...o
212
- }
213
- );
214
- });
215
- B.displayName = "Popover.Description";
216
- const O = Object.assign(x, {
217
- Root: x,
218
- Trigger: D,
219
- Content: R,
220
- Close: j,
221
- Heading: M,
222
- Description: B
223
- });
224
- export {
225
- O as P
226
- };
227
- //# sourceMappingURL=popover-C3CTUsqh.js.map
@@ -1,13 +0,0 @@
1
- const o = {
2
- id: "popover",
3
- capabilities: ["open", "close"],
4
- state: {},
5
- actions: {},
6
- domHooks: {
7
- root: { attr: "data-component", value: "popover" }
8
- }
9
- };
10
- export {
11
- o as p
12
- };
13
- //# sourceMappingURL=popover.agent-C0qOx9WT.js.map
@@ -1,132 +0,0 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as F, useState as K, useCallback as f } from "react";
3
- import { useTranslation as q } from "react-i18next";
4
- import * as r from "@radix-ui/react-dialog";
5
- import { B as d } from "./button-7mLWcMp_.js";
6
- import { I as G } from "./icon-button-Wnnde5lc.js";
7
- import { L as H } from "./logo-BpFoCL-s.js";
8
- import { E as v } from "./eye-off-xEXDAh5z.js";
9
- import { U as J } from "./user-CPxpqFjJ.js";
10
- import { L as M } from "./log-out-616hnn2-.js";
11
- const Q = F(
12
- ({
13
- open: l,
14
- defaultOpen: y = !1,
15
- onOpenChange: s,
16
- onUnlock: g,
17
- onAccountPage: p,
18
- onSignOut: m,
19
- triggerIcon: L,
20
- triggerAriaLabel: k,
21
- triggerTooltip: h,
22
- title: x,
23
- description: b,
24
- unlockLabel: D,
25
- accountPageLabel: T,
26
- signOutLabel: N,
27
- className: P,
28
- ...w
29
- }, I) => {
30
- const { t } = q(), [O, j] = K(y), i = l !== void 0, z = i ? l : O, n = f(
31
- (e) => {
32
- i || j(e), s == null || s(e);
33
- },
34
- [i, s]
35
- ), c = f(
36
- (e) => (S) => {
37
- e == null || e(), S.defaultPrevented || n(!1);
38
- },
39
- [n]
40
- ), A = k ?? t("privacyLock.triggerAriaLabel", "Lock screen for privacy"), U = h ?? t("privacyLock.triggerTooltip", "Lock screen"), u = x ?? t("privacyLock.title", "Screen locked for privacy"), C = b ?? t(
41
- "privacyLock.description",
42
- "Locking the screen helps protect the privacy of your data."
43
- ), B = D ?? t("privacyLock.unlock", "Unlock screen"), E = T ?? t("privacyLock.accountPage", "Account page"), R = N ?? t("privacyLock.signOut", "Log out");
44
- return /* @__PURE__ */ a(r.Root, { open: z, onOpenChange: n, children: [
45
- /* @__PURE__ */ o(r.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
46
- G,
47
- {
48
- ref: I,
49
- icon: L ?? /* @__PURE__ */ o(v, { "aria-hidden": !0 }),
50
- "aria-label": A,
51
- tooltip: U,
52
- className: P,
53
- "data-component": "privacy-lock",
54
- ...w
55
- }
56
- ) }),
57
- /* @__PURE__ */ a(r.Portal, { children: [
58
- /* @__PURE__ */ o(
59
- r.Overlay,
60
- {
61
- className: [
62
- "ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
63
- "ds:bg-[var(--background)]/40 ds:backdrop-blur-xl",
64
- // Fade-in / fade-out via Radix data-state. Gated on
65
- // motion-reduce per accessibility requirements.
66
- "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in",
67
- "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
68
- "ds:motion-reduce:animate-none"
69
- ].join(" ")
70
- }
71
- ),
72
- /* @__PURE__ */ o(
73
- r.Content,
74
- {
75
- "aria-label": u,
76
- onEscapeKeyDown: (e) => e.preventDefault(),
77
- onPointerDownOutside: (e) => e.preventDefault(),
78
- onInteractOutside: (e) => e.preventDefault(),
79
- onCloseAutoFocus: (e) => e.preventDefault(),
80
- className: [
81
- "ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
82
- "ds:flex ds:items-center ds:justify-center",
83
- "ds:focus:outline-none",
84
- "ds:text-[color:var(--foreground)]",
85
- "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in",
86
- "ds:motion-reduce:animate-none"
87
- ].join(" "),
88
- children: /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:w-[min(22rem,calc(100vw-var(--spacing-xl)))] ds:text-center", children: [
89
- /* @__PURE__ */ o(H, { size: "xl", decorative: !0 }),
90
- /* @__PURE__ */ o(r.Title, { className: "ds:sr-only", children: u }),
91
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full", children: [
92
- /* @__PURE__ */ o(
93
- d,
94
- {
95
- intent: "primary",
96
- startIcon: /* @__PURE__ */ o(v, { "aria-hidden": !0 }),
97
- onClick: c(g),
98
- children: B
99
- }
100
- ),
101
- p ? /* @__PURE__ */ o(
102
- d,
103
- {
104
- intent: "secondary",
105
- startIcon: /* @__PURE__ */ o(J, { "aria-hidden": !0 }),
106
- onClick: c(p),
107
- children: E
108
- }
109
- ) : null,
110
- m ? /* @__PURE__ */ o(
111
- d,
112
- {
113
- intent: "secondary",
114
- startIcon: /* @__PURE__ */ o(M, { "aria-hidden": !0 }),
115
- onClick: c(m),
116
- children: R
117
- }
118
- ) : null
119
- ] }),
120
- /* @__PURE__ */ o(r.Description, { className: "type-body-sm ds:opacity-90", children: C })
121
- ] })
122
- }
123
- )
124
- ] })
125
- ] });
126
- }
127
- );
128
- Q.displayName = "PrivacyLock";
129
- export {
130
- Q as P
131
- };
132
- //# sourceMappingURL=privacy-lock-CQpgkLec.js.map
@@ -1,252 +0,0 @@
1
- import { jsx as u, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as M, useId as de, useRef as g, useState as ue, useEffect as me, useLayoutEffect as q, useImperativeHandle as fe, createContext as ge, useContext as pe } from "react";
3
- import { c as J } from "./index-D2ZczOXr.js";
4
- import { useTranslation as C } from "react-i18next";
5
- const j = ge(null);
6
- function K() {
7
- const n = pe(j);
8
- if (!n) throw new Error("Progress sub-components must be used within <Progress>");
9
- return n;
10
- }
11
- const N = {
12
- sm: { viewBox: "0 0 24 24", cx: 12, cy: 12, r: 10 },
13
- md: { viewBox: "0 0 40 40", cx: 20, cy: 20, r: 18 },
14
- lg: { viewBox: "0 0 56 56", cx: 28, cy: 28, r: 26 }
15
- }, ve = J(
16
- "ds:relative ds:w-full ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-[var(--progress-track)]",
17
- {
18
- variants: {
19
- size: { sm: "ds:h-1", md: "ds:h-2", lg: "ds:h-3" }
20
- },
21
- defaultVariants: { size: "md" }
22
- }
23
- ), G = J("", {
24
- variants: {
25
- size: {
26
- sm: "ds:w-6 ds:h-6",
27
- md: "ds:w-10 ds:h-10",
28
- lg: "ds:w-14 ds:h-14"
29
- }
30
- },
31
- defaultVariants: { size: "md" }
32
- }), Q = M(({ children: n, className: e, ...s }, r) => {
33
- const o = K(), { t: m, i18n: l } = C(), p = o.isIndeterminate ? m("ui.common.loading", "Loading...") : m("ui.common.progress_label", {
34
- percent: new Intl.NumberFormat(l.language, {
35
- style: "percent",
36
- maximumFractionDigits: 0
37
- }).format((o.value ?? 0) / o.max)
38
- });
39
- return /* @__PURE__ */ u(
40
- "span",
41
- {
42
- ref: r,
43
- id: o.labelId,
44
- className: [
45
- "type-label ds:text-foreground",
46
- e
47
- ].filter(Boolean).join(" "),
48
- ...s,
49
- children: n ?? p
50
- }
51
- );
52
- });
53
- Q.displayName = "Progress.Label";
54
- const U = M(({ className: n, ...e }, s) => {
55
- const r = K(), { t: o, i18n: m } = C(), l = r.isIndeterminate ? o("ui.common.loading", "Loading...") : new Intl.NumberFormat(m.language, {
56
- style: "percent",
57
- maximumFractionDigits: 0
58
- }).format((r.value ?? 0) / r.max);
59
- return /* @__PURE__ */ u(
60
- "span",
61
- {
62
- ref: s,
63
- className: ["type-body-sm ds:tabular-nums ds:text-muted-foreground", n].filter(Boolean).join(" "),
64
- ...e,
65
- children: l
66
- }
67
- );
68
- });
69
- U.displayName = "Progress.Value";
70
- const W = M(
71
- ({
72
- value: n,
73
- max: e = 100,
74
- shape: s = "bar",
75
- size: r = "md",
76
- ariaLabel: o,
77
- ariaValueText: m,
78
- debouncePercent: l = 1,
79
- disabled: p = !1,
80
- className: Y,
81
- children: L,
82
- ...R
83
- }, Z) => {
84
- const V = de(), { t: B, i18n: $ } = C(), x = g(null), P = g(null), k = g(null), w = g(null), f = g(null), t = n === void 0, c = t ? void 0 : Math.min(e, Math.max(0, n)), z = c !== void 0 ? c / e * 100 : void 0, [ee, re] = ue(!1);
85
- me(() => {
86
- re(!0);
87
- }, []);
88
- const v = ee || t ? z : 0;
89
- q(() => {
90
- var a, d;
91
- if (!(t || v === void 0))
92
- if (s === "bar")
93
- (a = P.current) == null || a.style.setProperty(
94
- "--progress-value",
95
- String(v)
96
- );
97
- else {
98
- const { r: i } = N[r], h = 2 * Math.PI * i * (1 - v / 100);
99
- (d = w.current) == null || d.style.setProperty(
100
- "stroke-dashoffset",
101
- String(h)
102
- );
103
- }
104
- }, [t, v, s, r]), q(() => {
105
- const a = s === "bar" ? x.current : k.current;
106
- if (!a) return;
107
- if (t) {
108
- a.removeAttribute("aria-valuenow"), f.current = null;
109
- return;
110
- }
111
- if (c === void 0) return;
112
- const d = c / e * 100, i = f.current;
113
- (i === null ? 1 / 0 : Math.abs(d - i)) >= l && (a.setAttribute("aria-valuenow", String(c)), f.current = d);
114
- }, [t, c, e, l, s]), fe(
115
- Z,
116
- () => ({
117
- setValue: (a) => {
118
- var H, X;
119
- const d = Math.min(e, Math.max(0, a)), i = d / e * 100;
120
- if (s === "bar")
121
- (H = P.current) == null || H.style.setProperty(
122
- "--progress-value",
123
- String(i)
124
- );
125
- else {
126
- const { r: le } = N[r], ce = 2 * Math.PI * le * (1 - i / 100);
127
- (X = w.current) == null || X.style.setProperty(
128
- "stroke-dashoffset",
129
- String(ce)
130
- );
131
- }
132
- const y = s === "bar" ? x.current : k.current, h = f.current;
133
- (h === null ? 1 / 0 : Math.abs(i - h)) >= l && y && (y.setAttribute("aria-valuenow", String(d)), f.current = i);
134
- }
135
- }),
136
- [e, s, r, l]
137
- );
138
- const te = t ? B("ui.common.loading", "Loading...") : B("ui.common.progress_label", {
139
- percent: new Intl.NumberFormat($.language, {
140
- style: "percent",
141
- maximumFractionDigits: 0
142
- }).format((c ?? 0) / e)
143
- }), D = o ? { "aria-label": o } : { "aria-labelledby": V, "aria-label": te }, F = t ? { "aria-busy": !0, "aria-valuemin": 0, "aria-valuemax": e } : {
144
- "aria-valuemin": 0,
145
- "aria-valuemax": e,
146
- ...m ? { "aria-valuetext": m } : {}
147
- }, S = p ? { "aria-disabled": !0 } : {}, E = [
148
- "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
149
- p && "ds:opacity-50",
150
- Y
151
- ].filter(Boolean).join(" "), A = {
152
- labelId: V,
153
- isIndeterminate: t,
154
- value: c,
155
- max: e
156
- };
157
- if (s === "bar") {
158
- const a = t ? [
159
- "ds:absolute ds:[inset-block:0] ds:bg-primary ds:rounded-[var(--radius-full)]",
160
- "ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-bar-indeterminate_1200ms_ease-in-out_infinite]",
161
- "ds:[.theme-accessible_&]:animate-none",
162
- "ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
163
- ].join(" ") : [
164
- "ds:absolute ds:[inset-block:0] ds:start-0",
165
- "ds:[inline-size:calc(var(--progress-value,0)*1%)]",
166
- "ds:bg-primary ds:rounded-[var(--radius-full)]",
167
- "ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
168
- "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
169
- ].join(" ");
170
- return /* @__PURE__ */ u(j.Provider, { value: A, children: /* @__PURE__ */ I("div", { className: E, "data-component": "progress", ...R, children: [
171
- L,
172
- /* @__PURE__ */ u(
173
- "div",
174
- {
175
- ref: x,
176
- role: "progressbar",
177
- ...D,
178
- ...F,
179
- ...S,
180
- className: ve({ size: r }),
181
- children: /* @__PURE__ */ u("div", { ref: P, className: a })
182
- }
183
- )
184
- ] }) });
185
- }
186
- const { viewBox: se, cx: T, cy: O, r: _ } = N[r], b = 2 * Math.PI * _, ae = b * 0.25, ne = t ? ae : b, oe = t ? [
187
- G({ size: r }),
188
- "ds:[transform:rotate(-90deg)]",
189
- "ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-circular-spin_1200ms_linear_infinite]",
190
- "ds:[.theme-accessible_&]:animate-none",
191
- "ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
192
- ].join(" ") : [
193
- G({ size: r }),
194
- "ds:[transform:rotate(-90deg)]",
195
- "ds:rtl:[transform:rotate(-90deg)_scaleX(-1)]"
196
- ].join(" "), ie = [
197
- "ds:stroke-primary ds:[stroke-width:var(--spacing-xs)]",
198
- !t && "ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
199
- ].filter(Boolean).join(" ");
200
- return /* @__PURE__ */ u(j.Provider, { value: A, children: /* @__PURE__ */ I("div", { className: E, "data-component": "progress", ...R, children: [
201
- L,
202
- /* @__PURE__ */ I(
203
- "svg",
204
- {
205
- ref: k,
206
- role: "progressbar",
207
- ...D,
208
- ...F,
209
- ...S,
210
- viewBox: se,
211
- className: oe,
212
- children: [
213
- /* @__PURE__ */ u(
214
- "circle",
215
- {
216
- cx: T,
217
- cy: O,
218
- r: _,
219
- fill: "none",
220
- strokeDasharray: b,
221
- className: "ds:[stroke:var(--progress-track)] ds:[stroke-width:var(--spacing-xs)]"
222
- }
223
- ),
224
- /* @__PURE__ */ u(
225
- "circle",
226
- {
227
- ref: w,
228
- cx: T,
229
- cy: O,
230
- r: _,
231
- fill: "none",
232
- strokeLinecap: "round",
233
- strokeDasharray: b,
234
- strokeDashoffset: ne,
235
- className: ie
236
- }
237
- )
238
- ]
239
- }
240
- )
241
- ] }) });
242
- }
243
- );
244
- W.displayName = "Progress";
245
- const we = Object.assign(W, {
246
- Label: Q,
247
- Value: U
248
- });
249
- export {
250
- we as P
251
- };
252
- //# sourceMappingURL=progress-B4Of_pzz.js.map
@@ -1,22 +0,0 @@
1
- const a = {
2
- id: "progress",
3
- capabilities: [],
4
- state: {},
5
- actions: {
6
- set_value: {
7
- safety: "read",
8
- argsType: "{ value: number }",
9
- description: "Set the displayed progress value (0–100).",
10
- invoke: (e, s) => {
11
- e.setValue(s.value);
12
- }
13
- }
14
- },
15
- domHooks: {
16
- root: { attr: "data-component", value: "progress" }
17
- }
18
- };
19
- export {
20
- a as p
21
- };
22
- //# sourceMappingURL=progress.agent-CXkHURjX.js.map