@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,158 +0,0 @@
1
- import { jsxs as E, jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as L, useId as O, useContext as j, useState as N, useRef as T, useEffect as D, useCallback as x, useMemo as P, createContext as G } from "react";
3
- import { c as S } from "./index-D2ZczOXr.js";
4
- import { useTranslation as H } from "react-i18next";
5
- const K = S(
6
- [
7
- // `max-w-full` keeps a chip from blowing past its container when the
8
- // label is long and the container is narrow (e.g. a 22rem Leo sidebar
9
- // dock). Labels wrap onto multiple lines via `whitespace-normal` +
10
- // `break-words` so the full text stays legible — rounded pills grow
11
- // taller rather than hiding content behind an ellipsis.
12
- "ds:inline-flex ds:items-center ds:justify-start ds:text-start ds:whitespace-normal ds:break-words ds:max-w-full",
13
- "ds:rounded-[var(--radius-full)] ds:border",
14
- "ds:min-h-[var(--min-target-size)]",
15
- "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
16
- "type-label",
17
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
18
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
19
- "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
20
- "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
21
- "ds:forced-colors:border-[ButtonText] ds:forced-colors:text-[ButtonText]"
22
- ].join(" "),
23
- {
24
- variants: {
25
- intent: {
26
- default: "ds:bg-muted/20 ds:text-foreground ds:border-transparent ds:hover:bg-accent/10",
27
- suggestion: "ds:bg-[color:var(--primary)]/10 ds:text-foreground ds:border-transparent ds:hover:bg-[color:var(--primary)]/15",
28
- followup: "ds:bg-muted/30 ds:text-foreground ds:border-transparent ds:hover:bg-muted/40"
29
- },
30
- // Weight, family, tracking, line-height all come from `.type-label` on the base.
31
- // Size variants override --type-label-size to shift the ramp step.
32
- size: {
33
- sm: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:[--type-label-size:var(--font-size-xs)]",
34
- md: "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
35
- lg: "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)] ds:[--type-label-size:var(--font-size-base)]"
36
- }
37
- },
38
- defaultVariants: { intent: "default", size: "md" }
39
- }
40
- ), V = G(null), U = L(
41
- ({ label: z, className: M, children: b, ...y }, f) => {
42
- const { t: p, i18n: w } = H(), A = w.dir() === "rtl", [r, g] = N([]), [i, a] = N(null), d = T(/* @__PURE__ */ new Map()), C = x((n) => {
43
- g((t) => t.includes(n) ? t : [...t, n]);
44
- }, []), c = x((n) => {
45
- g((t) => t.filter((l) => l !== n)), d.current.delete(n);
46
- }, []), o = x((n) => a(n), []);
47
- D(() => {
48
- !i && r.length > 0 && a(r[0]), i && !r.includes(i) && a(r[0] ?? null);
49
- }, [i, r]);
50
- const s = x(
51
- (n, t) => {
52
- const l = r.indexOf(n);
53
- if (l === -1) return;
54
- let u = l;
55
- t === "next" && (u = (l + 1) % r.length), t === "prev" && (u = (l - 1 + r.length) % r.length), t === "first" && (u = 0), t === "last" && (u = r.length - 1);
56
- const m = r[u];
57
- a(m);
58
- const R = d.current.get(m);
59
- R == null || R.focus();
60
- },
61
- [r]
62
- ), v = x(
63
- (n, t) => {
64
- t ? d.current.set(n, t) : d.current.delete(n);
65
- },
66
- []
67
- ), k = P(
68
- () => ({ register: C, unregister: c, focusedId: i, setFocus: o, onArrowMove: s, isRTL: A }),
69
- [C, c, i, o, s, A]
70
- );
71
- return /* @__PURE__ */ h(B.Provider, { value: v, children: /* @__PURE__ */ h(V.Provider, { value: k, children: /* @__PURE__ */ h(
72
- "div",
73
- {
74
- ref: f,
75
- role: "group",
76
- "aria-label": z ?? p("chat.suggestions"),
77
- className: [
78
- "ds:flex ds:flex-wrap ds:items-center",
79
- "ds:gap-y-[var(--spacing-xs)] ds:gap-x-[var(--spacing-sm)]",
80
- M
81
- ].filter(Boolean).join(" "),
82
- ...y,
83
- children: b
84
- }
85
- ) }) });
86
- }
87
- );
88
- U.displayName = "SuggestionChipGroup";
89
- const B = G(null), q = L(
90
- ({
91
- intent: z = "default",
92
- size: M = "md",
93
- value: b,
94
- startIcon: y,
95
- children: f,
96
- onSelect: p,
97
- onRemove: w,
98
- keepOnSelect: A = !1,
99
- className: r,
100
- disabled: g,
101
- onKeyDown: i,
102
- onFocus: a,
103
- onClick: d,
104
- ...C
105
- }, c) => {
106
- const o = O(), s = j(V), v = j(B), [k, n] = N(!1), t = T(null), l = (e) => {
107
- t.current = e, v == null || v(o, e), typeof c == "function" ? c(e) : c && (c.current = e);
108
- }, u = T(s);
109
- if (u.current = s, D(() => {
110
- const e = u.current;
111
- if (e)
112
- return e.register(o), () => e.unregister(o);
113
- }, [o]), k) return null;
114
- const m = s ? s.focusedId === o : !0;
115
- return /* @__PURE__ */ E(
116
- "button",
117
- {
118
- ref: l,
119
- type: "button",
120
- tabIndex: s ? m ? 0 : -1 : 0,
121
- disabled: g,
122
- onClick: g ? void 0 : (e) => {
123
- d == null || d(e);
124
- const I = typeof b == "string" ? b : typeof f == "string" ? f : "";
125
- p == null || p(I), w ? w() : A || n(!0);
126
- },
127
- onKeyDown: (e) => {
128
- if (i == null || i(e), !s) return;
129
- const I = s.isRTL ? "ArrowLeft" : "ArrowRight", F = s.isRTL ? "ArrowRight" : "ArrowLeft";
130
- e.key === I || e.key === "ArrowDown" ? (e.preventDefault(), s.onArrowMove(o, "next")) : e.key === F || e.key === "ArrowUp" ? (e.preventDefault(), s.onArrowMove(o, "prev")) : e.key === "Home" ? (e.preventDefault(), s.onArrowMove(o, "first")) : e.key === "End" && (e.preventDefault(), s.onArrowMove(o, "last"));
131
- },
132
- onFocus: (e) => {
133
- a == null || a(e), s && !m && s.setFocus(o);
134
- },
135
- "data-component": "suggestion-chip",
136
- className: K({ intent: z, size: M, className: r }),
137
- ...C,
138
- children: [
139
- y ? /* @__PURE__ */ h(
140
- "span",
141
- {
142
- "aria-hidden": "true",
143
- className: "ds:me-[var(--spacing-xs)] ds:inline-flex ds:items-center ds:[&>svg]:size-4",
144
- children: y
145
- }
146
- ) : null,
147
- /* @__PURE__ */ h("span", { children: f })
148
- ]
149
- }
150
- );
151
- }
152
- );
153
- q.displayName = "SuggestionChip";
154
- export {
155
- q as S,
156
- U as a
157
- };
158
- //# sourceMappingURL=suggestion-chip-BNJ2M8Os.js.map
@@ -1,138 +0,0 @@
1
- import { jsxs as B, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as R, useContext as T, useState as q } from "react";
3
- import * as h from "@radix-ui/react-switch";
4
- import { c as i } from "./index-D2ZczOXr.js";
5
- import { useTranslation as C } from "react-i18next";
6
- import { u as I, F as O } from "./form-field-context-94LwgYTQ.js";
7
- const D = i(
8
- [
9
- "ds:inline-flex ds:shrink-0 ds:cursor-pointer ds:items-center",
10
- "ds:rounded-[var(--radius-full)]",
11
- "ds:border-2 ds:border-transparent",
12
- "ds:bg-muted",
13
- "ds:data-[state=checked]:bg-primary",
14
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
15
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
16
- "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
17
- "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
18
- ].join(" "),
19
- {
20
- variants: {
21
- size: {
22
- sm: "ds:h-4 ds:w-7",
23
- md: "ds:h-5 ds:w-9",
24
- lg: "ds:h-6 ds:w-11"
25
- }
26
- },
27
- defaultVariants: { size: "md" }
28
- }
29
- ), _ = i(
30
- [
31
- "ds:pointer-events-none ds:flex ds:items-center ds:justify-center ds:rounded-full ds:bg-background ds:text-foreground ds:shadow-[var(--shadow-sm)]",
32
- "ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
33
- "ds:data-[state=checked]:translate-x-full ds:rtl:data-[state=checked]:-translate-x-full",
34
- "ds:data-[state=unchecked]:translate-x-0"
35
- ].join(" "),
36
- {
37
- variants: {
38
- size: {
39
- sm: "ds:size-3",
40
- md: "ds:size-4",
41
- lg: "ds:size-5"
42
- }
43
- },
44
- defaultVariants: { size: "md" }
45
- }
46
- ), $ = i(
47
- "ds:inline-flex ds:items-center ds:gap-3 ds:min-h-[var(--min-target-size)]",
48
- {
49
- variants: {
50
- labelSide: {
51
- start: "ds:flex-row-reverse",
52
- end: ""
53
- }
54
- },
55
- defaultVariants: { labelSide: "end" }
56
- }
57
- ), A = i("type-label ds:text-foreground ds:select-none", {
58
- variants: {
59
- disabled: {
60
- true: "ds:cursor-not-allowed ds:opacity-50",
61
- false: "ds:cursor-pointer"
62
- }
63
- },
64
- defaultVariants: { disabled: !1 }
65
- }), E = {
66
- sm: "ds:size-2",
67
- md: "ds:size-2.5",
68
- lg: "ds:size-3"
69
- }, G = R(
70
- ({
71
- label: b,
72
- labelSide: v = "end",
73
- size: a = "md",
74
- icon: n,
75
- showStateText: p = !1,
76
- checked: t,
77
- defaultChecked: o,
78
- onCheckedChange: r,
79
- disabled: w,
80
- id: x,
81
- className: g,
82
- ...y
83
- }, z) => {
84
- const { t: l } = C(), s = I(), S = T(O) !== null, c = x ?? s.id, [F, V] = q(
85
- t ?? o ?? !1
86
- ), d = typeof t == "boolean", u = d ? t : F, N = (m) => {
87
- d || V(m), r == null || r(m);
88
- }, f = s.disabled || w, j = s.describedBy || void 0, k = u ? l("ui.inputs.switch.on", "On") : l("ui.inputs.switch.off", "Off");
89
- return /* @__PURE__ */ B("div", { className: $({ labelSide: v }), children: [
90
- /* @__PURE__ */ e(
91
- h.Root,
92
- {
93
- ref: z,
94
- id: c,
95
- checked: d ? t : void 0,
96
- defaultChecked: d ? void 0 : o,
97
- onCheckedChange: N,
98
- disabled: f,
99
- "aria-describedby": j,
100
- "aria-invalid": s.invalid || void 0,
101
- "aria-required": s.required || void 0,
102
- "data-component": "switch",
103
- className: D({ size: a, className: g }),
104
- ...y,
105
- children: /* @__PURE__ */ e(h.Thumb, { className: _({ size: a }), children: n ? /* @__PURE__ */ e(
106
- "span",
107
- {
108
- "aria-hidden": "true",
109
- className: `${E[a]} ds:inline-flex ds:items-center ds:justify-center ds:[&_svg]:size-full`,
110
- children: u ? n.on : n.off
111
- }
112
- ) : null })
113
- }
114
- ),
115
- p ? /* @__PURE__ */ e(
116
- "span",
117
- {
118
- "aria-hidden": "true",
119
- className: "type-meta ds:text-muted-foreground ds:select-none",
120
- children: k
121
- }
122
- ) : null,
123
- S ? null : /* @__PURE__ */ e(
124
- "label",
125
- {
126
- htmlFor: c,
127
- className: A({ disabled: !!f }),
128
- children: b
129
- }
130
- )
131
- ] });
132
- }
133
- );
134
- G.displayName = "Switch";
135
- export {
136
- G as S
137
- };
138
- //# sourceMappingURL=switch-aN2EYxHh.js.map
@@ -1,100 +0,0 @@
1
- import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
- import { forwardRef as x } from "react";
3
- import { c as T } from "./index-D2ZczOXr.js";
4
- import { useTranslation as N } from "react-i18next";
5
- import { I as w } from "./icon-button-Wnnde5lc.js";
6
- import { S as b } from "./skeleton-dtqyF09N.js";
7
- import { E as j } from "./empty-state-DQPtRp2b.js";
8
- import { T as z } from "./task-card-yW7tKlG4.js";
9
- import { c as E } from "./createLucideIcon-CrFbzy84.js";
10
- import { P as I } from "./plus-CYKNmfuA.js";
11
- /**
12
- * @license lucide-react v1.8.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */
17
- const L = [
18
- ["path", { d: "M13 5h8", key: "a7qcls" }],
19
- ["path", { d: "M13 12h8", key: "h98zly" }],
20
- ["path", { d: "M13 19h8", key: "c3s6r1" }],
21
- ["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
22
- ["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1", key: "cif1o7" }]
23
- ], M = E("list-todo", L), S = T(
24
- [
25
- "ds:flex ds:flex-col",
26
- "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
27
- "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
28
- "ds:overflow-hidden"
29
- ].join(" "),
30
- {
31
- variants: {
32
- size: {
33
- sm: "",
34
- md: ""
35
- }
36
- },
37
- defaultVariants: {
38
- size: "sm"
39
- }
40
- }
41
- ), q = x(
42
- ({
43
- items: i,
44
- title: n,
45
- size: d = "sm",
46
- onOpenTask: m,
47
- onAddTask: o,
48
- addLabel: p,
49
- loading: l = !1,
50
- emptyTitle: f,
51
- emptyDescription: h,
52
- className: y,
53
- ...u
54
- }, k) => {
55
- const { t: a } = N(), c = n ?? a("ui.taskTray.title", "Tasks"), v = p ?? a("ui.taskTray.add", "Add task"), g = !l && i.length === 0;
56
- let e;
57
- return l ? e = /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((t) => /* @__PURE__ */ s(b, { variant: "rectangular", height: "2.5rem" }, t)) }) : g ? e = /* @__PURE__ */ s("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ s(
58
- j,
59
- {
60
- variant: "first-use",
61
- size: "sm",
62
- title: f ?? a("ui.taskTray.empty.title", "No tasks yet"),
63
- description: h ?? a("ui.taskTray.empty.description", "New tasks will appear here.")
64
- }
65
- ) }) : e = /* @__PURE__ */ s("ul", { className: "ds:flex ds:list-none ds:flex-col", children: i.map((t) => /* @__PURE__ */ s(z, { item: t, size: d, onActivate: m }, t.id)) }), /* @__PURE__ */ r(
66
- "section",
67
- {
68
- ref: k,
69
- "aria-label": c,
70
- "data-component": "task-tray",
71
- className: S({ size: d, className: y }),
72
- ...u,
73
- children: [
74
- /* @__PURE__ */ r("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
75
- /* @__PURE__ */ r("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
76
- /* @__PURE__ */ s(M, { "aria-hidden": "true", className: "ds:size-4" }),
77
- c
78
- ] }),
79
- o ? /* @__PURE__ */ s(
80
- w,
81
- {
82
- icon: /* @__PURE__ */ s(I, {}),
83
- intent: "outline",
84
- size: "sm",
85
- "aria-label": v,
86
- onClick: o
87
- }
88
- ) : null
89
- ] }),
90
- e
91
- ]
92
- }
93
- );
94
- }
95
- );
96
- q.displayName = "TaskTray";
97
- export {
98
- q as T
99
- };
100
- //# sourceMappingURL=task-tray-BzahI5FQ.js.map
@@ -1,152 +0,0 @@
1
- import { jsxs as x, jsx as A } from "react/jsx-runtime";
2
- import { forwardRef as ae, useRef as j, useCallback as H, useState as k, useLayoutEffect as oe, useEffect as de } from "react";
3
- import { c as ce } from "./index-D2ZczOXr.js";
4
- import { useTranslation as le } from "react-i18next";
5
- import { u as ue } from "./form-field-context-94LwgYTQ.js";
6
- const fe = ce(
7
- [
8
- "ds:block ds:w-full ds:border ds:rounded-[var(--radius-sm)] ds:bg-background ds:text-foreground",
9
- "ds:leading-[var(--line-height-base)]",
10
- "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
11
- "ds:focus:outline-none",
12
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
13
- "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
14
- "ds:forced-colors:focus-visible:outline-[CanvasText]",
15
- "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
16
- "ds:read-only:bg-muted ds:read-only:cursor-default",
17
- "ds:transition-[height,color,background-color,border-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
18
- "ds:placeholder:text-muted-foreground"
19
- ].join(" "),
20
- {
21
- variants: {
22
- size: {
23
- sm: "ds:min-h-8 ds:text-[length:var(--font-size-sm)]",
24
- md: "ds:min-h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
25
- lg: "ds:min-h-[calc(var(--min-target-size)*1.5)] ds:text-[length:var(--font-size-lg)]"
26
- },
27
- tone: {
28
- default: "ds:border-border",
29
- error: "ds:border-destructive"
30
- },
31
- resize: {
32
- auto: "ds:resize-none",
33
- manual: "ds:resize-y"
34
- }
35
- },
36
- defaultVariants: { size: "md", tone: "default", resize: "manual" }
37
- }
38
- ), me = (s) => s >= 1 ? "ds:text-destructive" : s >= 0.9 ? "ds:text-warning" : "ds:text-muted-foreground", ve = (s) => [...s].length, be = ae(
39
- ({
40
- size: s = "md",
41
- tone: M = "default",
42
- autoResize: r = !1,
43
- minRows: f = 2,
44
- maxRows: m,
45
- showCounter: S,
46
- className: q,
47
- id: E,
48
- disabled: P,
49
- value: y,
50
- defaultValue: T,
51
- maxLength: n,
52
- rows: W,
53
- onChange: i,
54
- onCompositionStart: v,
55
- onCompositionEnd: b,
56
- onInput: $,
57
- ...D
58
- }, d) => {
59
- const { t: N } = le(), a = ue(), F = E ?? a.id, O = a.disabled || P, Y = a.invalid ? "error" : M, w = j(null), _ = H(
60
- (e) => {
61
- w.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
62
- },
63
- [d]
64
- ), c = y !== void 0, [G, z] = k(
65
- String(T ?? "")
66
- ), g = c ? String(y) : G, l = j(!1), p = H(() => {
67
- const e = w.current;
68
- if (!e || !r) return;
69
- const t = window.getComputedStyle(e), u = parseFloat(t.lineHeight), C = parseFloat(t.paddingTop), ee = parseFloat(t.paddingBottom), te = parseFloat(t.borderTopWidth), re = parseFloat(t.borderBottomWidth), B = C + ee + te + re, se = (Number.isFinite(u) ? u : 24) * f + B, ne = typeof m == "number" ? (Number.isFinite(u) ? u : 24) * m + B : Number.POSITIVE_INFINITY;
70
- e.style.height = "auto";
71
- const ie = Math.max(se, Math.min(e.scrollHeight, ne));
72
- e.style.height = `${ie}px`;
73
- }, [r, f, m]);
74
- oe(() => {
75
- r && p();
76
- }, [r, p, g]);
77
- const J = (e) => {
78
- c || z(e.target.value), !l.current && (i == null || i(e));
79
- }, K = (e) => {
80
- l.current = !0, v == null || v(e);
81
- }, Q = (e) => {
82
- l.current = !1, b == null || b(e);
83
- const t = e.currentTarget;
84
- c || z(t.value), i == null || i({
85
- ...e,
86
- target: t,
87
- currentTarget: t
88
- }), r && p();
89
- }, o = typeof n == "number" && (S ?? !0) && n > 0, h = ve(g), I = o ? Math.max(0, n - h) : 0, U = o ? h / n : 0, [X, Z] = k("");
90
- de(() => {
91
- if (!o) return;
92
- const e = window.setTimeout(() => {
93
- l.current || Z(
94
- N("ui.inputs.textarea.charactersRemaining", {
95
- count: I,
96
- defaultValue: "{{count}} characters remaining"
97
- })
98
- );
99
- }, 500);
100
- return () => window.clearTimeout(e);
101
- }, [o, I, N]);
102
- const V = o ? `${F}-counter` : void 0, L = [a.describedBy || void 0, V].filter(Boolean).join(" ") || void 0, R = r ? "auto" : "manual";
103
- return /* @__PURE__ */ x("div", { "data-component": "text-area", className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
104
- /* @__PURE__ */ A(
105
- "textarea",
106
- {
107
- ref: _,
108
- id: F,
109
- value: c ? g : void 0,
110
- defaultValue: c ? void 0 : T,
111
- disabled: O,
112
- "aria-describedby": L,
113
- "aria-invalid": a.invalid || void 0,
114
- "aria-required": a.required || void 0,
115
- maxLength: n,
116
- rows: r ? f : W,
117
- onChange: J,
118
- onCompositionStart: K,
119
- onCompositionEnd: Q,
120
- onInput: $,
121
- className: fe({
122
- size: s,
123
- tone: Y,
124
- resize: R,
125
- className: q
126
- }),
127
- ...D
128
- }
129
- ),
130
- o ? /* @__PURE__ */ x(
131
- "div",
132
- {
133
- id: V,
134
- className: "ds:flex ds:justify-end type-meta ds:tabular-nums",
135
- children: [
136
- /* @__PURE__ */ x("span", { "aria-hidden": "true", className: me(U), children: [
137
- h,
138
- " / ",
139
- n
140
- ] }),
141
- /* @__PURE__ */ A("span", { className: "ds:sr-only", "aria-live": "polite", children: X })
142
- ]
143
- }
144
- ) : null
145
- ] });
146
- }
147
- );
148
- be.displayName = "TextArea";
149
- export {
150
- be as T
151
- };
152
- //# sourceMappingURL=text-area-DmKSd2DG.js.map