@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
@@ -0,0 +1,227 @@
1
+ import { jsx as t, jsxs as ne } from "react/jsx-runtime";
2
+ import { forwardRef as ie, useState as F, useRef as K, useLayoutEffect as oe, useCallback as V, useImperativeHandle as de, useEffect as le } from "react";
3
+ import { c as x } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ce } from "react-i18next";
5
+ import { T as ue } from "./text-input-BX39e6T6.js";
6
+ import { S as fe } from "./spinner-GCcv67vh.js";
7
+ import { u as me } from "./form-field-context-94LwgYTQ.js";
8
+ import { u as be } from "./use-debounced-callback-BisrB-Fq.js";
9
+ import { S as L } from "./search-BonnQsHv.js";
10
+ import { X as ve } from "./x-CCcI3eJp.js";
11
+ const he = x("ds:relative ds:w-full"), pe = x(
12
+ [
13
+ "ds:absolute ds:inset-y-0 ds:end-0 ds:pe-3",
14
+ "ds:inline-flex ds:items-center ds:justify-center ds:pointer-events-auto",
15
+ "ds:text-muted-foreground ds:hover:text-foreground",
16
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
17
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
18
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
19
+ "ds:rounded-[var(--radius-sm)]",
20
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
21
+ ].join(" ")
22
+ ), xe = x(
23
+ [
24
+ "ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
25
+ "ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
26
+ "ds:bg-background ds:border ds:border-border ds:text-muted-foreground",
27
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
28
+ "ds:hover:text-foreground ds:hover:bg-muted",
29
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
30
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
31
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
32
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
33
+ ].join(" ")
34
+ ), ge = x(
35
+ [
36
+ "ds:inline-flex ds:items-center",
37
+ "ds:transition-[width] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
38
+ ].join(" ")
39
+ );
40
+ function ye(o) {
41
+ if (!o) return !1;
42
+ const c = o.tagName;
43
+ return !!(c === "INPUT" || c === "TEXTAREA" || c === "SELECT" || o.isContentEditable);
44
+ }
45
+ const Ee = ie(
46
+ ({
47
+ value: o,
48
+ defaultValue: c,
49
+ onChange: n,
50
+ onInput: r,
51
+ debounceMs: O = 200,
52
+ isLoading: b = !1,
53
+ variant: u = "inline",
54
+ size: P = "md",
55
+ globalShortcut: g,
56
+ placeholder: Q,
57
+ disabled: X,
58
+ className: C,
59
+ name: H,
60
+ id: y,
61
+ form: U,
62
+ autoComplete: W = "off",
63
+ autoFocus: q,
64
+ role: G,
65
+ ...v
66
+ }, J) => {
67
+ const { t: E } = ce(), D = me(), z = y ?? D.id, w = !!(D.disabled || X), S = o !== void 0, [M, Y] = F(
68
+ String(c ?? "")
69
+ ), f = S ? String(o) : M, k = f.length > 0, a = K(null), [N, T] = F(
70
+ u === "inline" || k
71
+ ), h = K(!1);
72
+ oe(() => {
73
+ h.current && a.current && (a.current.focus(), h.current = !1);
74
+ });
75
+ const j = be(
76
+ (e) => {
77
+ n == null || n(e);
78
+ },
79
+ O
80
+ ), i = V(
81
+ (e) => {
82
+ j.cancel(), n == null || n(e);
83
+ },
84
+ [j, n]
85
+ ), d = V(
86
+ (e) => {
87
+ S || Y(e);
88
+ },
89
+ [S]
90
+ ), Z = (e) => {
91
+ const s = e.target.value;
92
+ d(s), s === "" ? i("") : j(s);
93
+ }, _ = (e) => {
94
+ const s = e.currentTarget.value;
95
+ r == null || r(s);
96
+ }, $ = (e) => {
97
+ var s;
98
+ e.key === "Escape" && (e.nativeEvent.isComposing || k && (e.preventDefault(), e.stopPropagation(), d(""), r == null || r(""), i(""), (s = a.current) == null || s.focus()));
99
+ }, I = () => {
100
+ var e;
101
+ d(""), r == null || r(""), i(""), (e = a.current) == null || e.focus();
102
+ }, ee = (e) => {
103
+ u === "expandable" && e.currentTarget.value === "" && T(!1);
104
+ }, p = V(() => {
105
+ var e;
106
+ u === "expandable" && !N ? (h.current = !0, T(!0)) : (e = a.current) == null || e.focus();
107
+ }, [u, N]);
108
+ de(
109
+ J,
110
+ () => {
111
+ const e = a.current;
112
+ if (!e) return null;
113
+ const s = {
114
+ getQuery: () => f,
115
+ setQuery: (l) => {
116
+ const m = String(l ?? "");
117
+ d(m), r == null || r(m), i(m);
118
+ },
119
+ clear: () => {
120
+ var l;
121
+ d(""), r == null || r(""), i(""), (l = a.current) == null || l.focus();
122
+ },
123
+ submit: () => {
124
+ i(f);
125
+ },
126
+ // Named `agentFocus` to avoid clashing with the native, read-only
127
+ // `HTMLElement.focus` slot. The adapter wires `actions.focus` to
128
+ // `agentFocus` so the expandable-aware path is preserved.
129
+ agentFocus: () => {
130
+ p();
131
+ }
132
+ };
133
+ for (const [l, m] of Object.entries(s))
134
+ Object.defineProperty(e, l, {
135
+ value: m,
136
+ configurable: !0,
137
+ writable: !0,
138
+ enumerable: !1
139
+ });
140
+ return e;
141
+ },
142
+ [f, d, r, i, p]
143
+ ), le(() => {
144
+ if (!g) return;
145
+ const e = (s) => {
146
+ s.key === g && (s.isComposing || s.defaultPrevented || ye(document.activeElement) || (s.preventDefault(), p()));
147
+ };
148
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
149
+ }, [g, p]);
150
+ const re = E("ui.inputs.search.clear", "Clear search"), A = E("ui.inputs.search.loading", "Searching…"), se = E("ui.inputs.search.placeholder", "Search…"), B = Q ?? se;
151
+ if (u === "expandable" && !N)
152
+ return /* @__PURE__ */ t("div", { "data-component": "search-input", "data-component-id": y, className: ge({ className: C }), children: /* @__PURE__ */ t(
153
+ "button",
154
+ {
155
+ type: "button",
156
+ "aria-label": B,
157
+ "aria-expanded": !1,
158
+ "aria-controls": z,
159
+ disabled: w,
160
+ onClick: () => {
161
+ h.current = !0, T(!0);
162
+ },
163
+ className: xe(),
164
+ children: /* @__PURE__ */ t(L, { "aria-hidden": "true", className: "ds:size-4" })
165
+ }
166
+ ) });
167
+ const te = G === "combobox" ? {
168
+ role: "combobox",
169
+ "aria-expanded": v["aria-expanded"],
170
+ "aria-controls": v["aria-controls"],
171
+ "aria-activedescendant": v["aria-activedescendant"]
172
+ } : void 0, R = k && !b && !w, ae = b ? /* @__PURE__ */ t(fe, { size: "sm", label: A }) : R ? /* @__PURE__ */ t("span", { className: "ds:inline-block ds:size-4", "aria-hidden": "true" }) : void 0;
173
+ return /* @__PURE__ */ ne("div", { "data-component": "search-input", "data-component-id": y, className: he({ className: C }), children: [
174
+ /* @__PURE__ */ t(
175
+ ue,
176
+ {
177
+ ref: a,
178
+ id: z,
179
+ type: "search",
180
+ size: P,
181
+ value: f,
182
+ disabled: w,
183
+ placeholder: B,
184
+ name: H,
185
+ form: U,
186
+ autoComplete: W,
187
+ autoFocus: q,
188
+ startAdornment: /* @__PURE__ */ t(L, {}),
189
+ endAdornment: ae,
190
+ clearable: !1,
191
+ onChange: Z,
192
+ onInput: _,
193
+ onKeyDown: $,
194
+ onBlur: ee,
195
+ "aria-label": v["aria-label"],
196
+ "aria-busy": b || void 0,
197
+ ...te
198
+ }
199
+ ),
200
+ R ? /* @__PURE__ */ t(
201
+ "button",
202
+ {
203
+ type: "button",
204
+ "aria-label": re,
205
+ onClick: I,
206
+ className: pe(),
207
+ children: /* @__PURE__ */ t(ve, { "aria-hidden": "true", className: "ds:size-4" })
208
+ }
209
+ ) : null,
210
+ /* @__PURE__ */ t(
211
+ "span",
212
+ {
213
+ role: "status",
214
+ "aria-live": "polite",
215
+ "aria-atomic": "true",
216
+ className: "ds:sr-only",
217
+ children: b ? A : ""
218
+ }
219
+ )
220
+ ] });
221
+ }
222
+ );
223
+ Ee.displayName = "SearchInput";
224
+ export {
225
+ Ee as S
226
+ };
227
+ //# sourceMappingURL=search-input-Xw3cdWXW.js.map
@@ -0,0 +1,69 @@
1
+ const i = {
2
+ id: "search-input",
3
+ capabilities: ["filter", "edit_inline"],
4
+ state: {
5
+ query: {
6
+ type: "string",
7
+ descriptionKey: "ui.agent.searchInput.state.query",
8
+ description: "Current raw query string (not debounced).",
9
+ read: (e) => e.getQuery()
10
+ },
11
+ isEmpty: {
12
+ type: "boolean",
13
+ descriptionKey: "ui.agent.searchInput.state.isEmpty",
14
+ description: "True when the query is empty.",
15
+ read: (e) => e.getQuery().length === 0
16
+ }
17
+ },
18
+ actions: {
19
+ set_query: {
20
+ safety: "read",
21
+ argsType: "{ query: string }",
22
+ descriptionKey: "ui.agent.searchInput.actions.setQuery",
23
+ description: "Replace the current query with the given string and fire onChange immediately.",
24
+ invoke: (e, t) => {
25
+ e.setQuery(t.query);
26
+ }
27
+ },
28
+ clear: {
29
+ safety: "read",
30
+ descriptionKey: "ui.agent.searchInput.actions.clear",
31
+ description: "Clear the query and return focus to the input.",
32
+ invoke: (e) => {
33
+ e.clear();
34
+ }
35
+ },
36
+ submit: {
37
+ safety: "read",
38
+ descriptionKey: "ui.agent.searchInput.actions.submit",
39
+ description: "Fire the current query without waiting for debounce.",
40
+ invoke: (e) => {
41
+ e.submit();
42
+ }
43
+ },
44
+ focus: {
45
+ safety: "read",
46
+ descriptionKey: "ui.agent.searchInput.actions.focus",
47
+ description: 'Move keyboard focus to the input (expanding it first if `variant="expandable"`).',
48
+ invoke: (e) => {
49
+ e.agentFocus();
50
+ }
51
+ }
52
+ },
53
+ domHooks: {
54
+ root: {
55
+ attr: "data-component",
56
+ value: "search-input",
57
+ description: "Marks the SearchInput wrapper."
58
+ },
59
+ instanceId: {
60
+ attr: "data-component-id",
61
+ sourceProp: "id",
62
+ description: "Sourced from the id prop."
63
+ }
64
+ }
65
+ };
66
+ export {
67
+ i as s
68
+ };
69
+ //# sourceMappingURL=search-input.agent-CfZvViOd.js.map
@@ -0,0 +1,410 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as a, useContext as me, useState as F, useRef as K, useMemo as fe } from "react";
3
+ import * as o from "@radix-ui/react-select";
4
+ import { c as w } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as ge } from "react-i18next";
6
+ import { u as he, F as ve } from "./form-field-context-94LwgYTQ.js";
7
+ import { g as be } from "./group-options-BvKhQ3xb.js";
8
+ import { u as ye } from "./use-direction-D6rvvG9G.js";
9
+ import { C as Se } from "./chevron-up-zOEDrmBB.js";
10
+ import { C as P } from "./chevron-down-BX_NP2Yh.js";
11
+ import { C as xe } from "./check-DPdL_Sm7.js";
12
+ import { u as Ne } from "./registry-C9nwlNyL.js";
13
+ import { X as Ce } from "./x-CCcI3eJp.js";
14
+ const ze = {
15
+ id: "select",
16
+ capabilities: ["select_single", "open", "close"],
17
+ state: {
18
+ value: {
19
+ type: "string",
20
+ descriptionKey: "ui.agent.select.state.value",
21
+ description: "Currently selected option value, or empty string when none.",
22
+ read: (e) => e.getValue()
23
+ },
24
+ isOpen: {
25
+ type: "boolean",
26
+ descriptionKey: "ui.agent.select.state.isOpen",
27
+ description: "Whether the option list is open.",
28
+ read: (e) => e.isOpen()
29
+ }
30
+ },
31
+ actions: {
32
+ set_value: {
33
+ safety: "write",
34
+ argsType: "{ value: string }",
35
+ descriptionKey: "ui.agent.select.actions.setValue",
36
+ description: "Select the option with the given value.",
37
+ invoke: (e, s) => {
38
+ e.setValue(s.value);
39
+ }
40
+ },
41
+ clear: {
42
+ safety: "destructive",
43
+ descriptionKey: "ui.agent.select.actions.clear",
44
+ description: "Clear the current selection.",
45
+ invoke: (e) => {
46
+ e.clear();
47
+ }
48
+ },
49
+ open: {
50
+ safety: "read",
51
+ descriptionKey: "ui.agent.select.actions.open",
52
+ description: "Open the option list.",
53
+ invoke: (e) => {
54
+ e.open();
55
+ }
56
+ },
57
+ close: {
58
+ safety: "read",
59
+ descriptionKey: "ui.agent.select.actions.close",
60
+ description: "Close the option list.",
61
+ invoke: (e) => {
62
+ e.close();
63
+ }
64
+ }
65
+ },
66
+ domHooks: {
67
+ root: {
68
+ attr: "data-component",
69
+ value: "select",
70
+ description: "Marks the Select trigger."
71
+ },
72
+ instanceId: {
73
+ attr: "data-component-id",
74
+ sourceProp: "id",
75
+ description: "Sourced from the id prop."
76
+ },
77
+ item: {
78
+ attr: "data-option-id",
79
+ description: "Stable opaque option value emitted on each rendered option."
80
+ }
81
+ }
82
+ }, G = w(
83
+ [
84
+ "ds:group ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full",
85
+ "ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-background",
86
+ "ds:text-foreground ds:placeholder:text-muted-foreground",
87
+ "ds:data-[placeholder]:text-muted-foreground",
88
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
89
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
90
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
91
+ "ds:forced-colors:focus-visible:outline-[CanvasText]",
92
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
93
+ ].join(" "),
94
+ {
95
+ variants: {
96
+ size: {
97
+ sm: "ds:h-8 ds:ps-3 ds:pe-3 ds:text-[length:var(--font-size-sm)]",
98
+ md: "ds:h-[var(--min-target-size)] ds:ps-3 ds:pe-3 ds:text-[length:var(--font-size-base)]",
99
+ lg: "ds:h-12 ds:ps-4 ds:pe-4 ds:text-[length:var(--font-size-lg)]"
100
+ },
101
+ tone: {
102
+ default: "",
103
+ error: "ds:border-destructive ds:focus-visible:outline-destructive"
104
+ }
105
+ },
106
+ defaultVariants: {
107
+ size: "md",
108
+ tone: "default"
109
+ }
110
+ }
111
+ ), we = w(
112
+ [
113
+ "ds:z-[var(--z-dropdown)] ds:overflow-hidden",
114
+ "ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
115
+ "ds:shadow-[var(--shadow-lg)]",
116
+ "ds:animate-in ds:fade-in ds:zoom-in-95",
117
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
118
+ "ds:data-[state=closed]:zoom-out-95",
119
+ "ds:data-[side=bottom]:slide-in-from-top-2",
120
+ "ds:data-[side=top]:slide-in-from-bottom-2",
121
+ "ds:motion-reduce:animate-none"
122
+ ].join(" ")
123
+ ), Ie = w(
124
+ [
125
+ "ds:relative ds:flex ds:cursor-pointer ds:items-center",
126
+ "ds:rounded-[var(--radius-sm)]",
127
+ "ds:text-foreground ds:outline-none ds:select-none",
128
+ "ds:data-[highlighted]:bg-muted ds:data-[highlighted]:text-foreground",
129
+ "ds:data-[disabled]:pointer-events-none ds:data-[disabled]:opacity-50"
130
+ ].join(" "),
131
+ {
132
+ variants: {
133
+ size: {
134
+ sm: "ds:min-h-8 ds:ps-8 ds:pe-3 ds:text-[length:var(--font-size-sm)]",
135
+ md: "ds:min-h-[var(--min-target-size)] ds:ps-8 ds:pe-3 ds:text-[length:var(--font-size-base)]",
136
+ lg: "ds:min-h-12 ds:ps-10 ds:pe-4 ds:text-[length:var(--font-size-lg)]"
137
+ }
138
+ },
139
+ defaultVariants: {
140
+ size: "md"
141
+ }
142
+ }
143
+ ), je = [
144
+ "ds:ps-8 ds:pe-3 ds:py-1.5",
145
+ "type-eyebrow ds:text-muted-foreground",
146
+ "ds:sticky ds:top-0 ds:bg-background"
147
+ ].join(" "), Ve = {
148
+ sm: "ds:size-3.5",
149
+ md: "ds:size-4",
150
+ lg: "ds:size-5"
151
+ }, ke = {
152
+ sm: "ds:start-2",
153
+ md: "ds:start-2",
154
+ lg: "ds:start-3"
155
+ };
156
+ function Te(...e) {
157
+ return (s) => {
158
+ for (const n of e)
159
+ n && (typeof n == "function" ? n(s) : n.current = s);
160
+ };
161
+ }
162
+ const L = (e) => /* @__PURE__ */ t(o.Root, { ...e });
163
+ L.displayName = "Select.Root";
164
+ const q = a(
165
+ ({ size: e, tone: s, className: n, children: r, ...l }, c) => /* @__PURE__ */ t(
166
+ o.Trigger,
167
+ {
168
+ ref: c,
169
+ className: G({ size: e, tone: s, className: n }),
170
+ ...l,
171
+ children: r
172
+ }
173
+ )
174
+ );
175
+ q.displayName = "Select.Trigger";
176
+ const $ = a((e, s) => /* @__PURE__ */ t(o.Value, { ref: s, ...e }));
177
+ $.displayName = "Select.Value";
178
+ const I = a(
179
+ ({
180
+ className: e,
181
+ children: s,
182
+ position: n = "popper",
183
+ sideOffset: r = 4,
184
+ container: l,
185
+ ...c
186
+ }, f) => /* @__PURE__ */ t(o.Portal, { container: l ?? void 0, children: /* @__PURE__ */ m(
187
+ o.Content,
188
+ {
189
+ ref: f,
190
+ position: n,
191
+ sideOffset: r,
192
+ className: we({ className: e }),
193
+ ...c,
194
+ children: [
195
+ /* @__PURE__ */ t(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(Se, { "aria-hidden": "true", className: "ds:size-4" }) }),
196
+ s,
197
+ /* @__PURE__ */ t(o.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(P, { "aria-hidden": "true", className: "ds:size-4" }) })
198
+ ]
199
+ }
200
+ ) })
201
+ );
202
+ I.displayName = "Select.Content";
203
+ const j = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
204
+ o.Viewport,
205
+ {
206
+ ref: n,
207
+ className: ["ds:p-1", e].filter(Boolean).join(" "),
208
+ ...s
209
+ }
210
+ ));
211
+ j.displayName = "Select.Viewport";
212
+ const V = a(({ size: e = "md", className: s, children: n, ...r }, l) => {
213
+ const c = ke[e ?? "md"], f = Ve[e ?? "md"];
214
+ return /* @__PURE__ */ m(
215
+ o.Item,
216
+ {
217
+ ref: l,
218
+ className: Ie({ size: e, className: s }),
219
+ ...r,
220
+ children: [
221
+ /* @__PURE__ */ t(
222
+ "span",
223
+ {
224
+ className: `ds:absolute ${c} ds:inline-flex ds:items-center ds:justify-center`,
225
+ "aria-hidden": "true",
226
+ children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(xe, { className: f }) })
227
+ }
228
+ ),
229
+ /* @__PURE__ */ t(o.ItemText, { children: n })
230
+ ]
231
+ }
232
+ );
233
+ });
234
+ V.displayName = "Select.Item";
235
+ const A = a((e, s) => /* @__PURE__ */ t(o.ItemText, { ref: s, ...e }));
236
+ A.displayName = "Select.ItemText";
237
+ const H = a((e, s) => /* @__PURE__ */ t(o.Group, { ref: s, ...e }));
238
+ H.displayName = "Select.Group";
239
+ const k = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
240
+ o.Label,
241
+ {
242
+ ref: n,
243
+ className: [je, e].filter(Boolean).join(" "),
244
+ ...s
245
+ }
246
+ ));
247
+ k.displayName = "Select.Label";
248
+ const M = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
249
+ o.Separator,
250
+ {
251
+ ref: n,
252
+ className: ["ds:my-1 ds:h-px ds:bg-border", e].filter(Boolean).join(" "),
253
+ ...s
254
+ }
255
+ ));
256
+ M.displayName = "Select.Separator";
257
+ const U = a(function({
258
+ options: s,
259
+ value: n,
260
+ defaultValue: r,
261
+ onValueChange: l,
262
+ placeholder: c,
263
+ clearable: f = !1,
264
+ disabled: W,
265
+ required: _,
266
+ name: E,
267
+ id: S,
268
+ size: T = "md",
269
+ tone: X = "default",
270
+ className: J,
271
+ "aria-label": Q
272
+ }, Y) {
273
+ const { t: x } = ge(), u = he(), g = me(ve) !== null, [Z, b] = F(
274
+ n ?? r ?? ""
275
+ ), p = n !== void 0, h = p ? n : Z, [N, C] = F(!1), R = K(h);
276
+ R.current = h;
277
+ const ee = S ?? (g ? u.id : void 0), B = (g ? u.disabled : !1) || !!W, te = (g ? u.required : !1) || !!_, O = g ? u.invalid : !1, se = O ? "error" : X, oe = g && u.describedBy ? u.describedBy : void 0, z = K(null), ne = Te(Y, z), ie = ye(z), d = l, de = (i) => {
278
+ p || b(i), d == null || d(i);
279
+ }, ae = (i) => {
280
+ var y;
281
+ i.preventDefault(), i.stopPropagation(), p || b(""), d == null || d(""), (y = z.current) == null || y.focus();
282
+ }, re = c ?? x("ui.inputs.select.placeholder", "Select…"), le = f && !!h && !B, ce = be(s), ue = fe(
283
+ () => ({
284
+ getValue: () => R.current,
285
+ setValue: (i) => {
286
+ p || b(i), d == null || d(i);
287
+ },
288
+ clear: () => {
289
+ p || b(""), d == null || d("");
290
+ },
291
+ open: () => C(!0),
292
+ close: () => C(!1),
293
+ isOpen: () => N
294
+ }),
295
+ [d, p, N]
296
+ );
297
+ return Ne(ze, ue, S), /* @__PURE__ */ m(
298
+ o.Root,
299
+ {
300
+ value: h === "" ? void 0 : h,
301
+ onValueChange: de,
302
+ open: N,
303
+ onOpenChange: C,
304
+ disabled: B,
305
+ required: te,
306
+ name: E,
307
+ dir: ie,
308
+ children: [
309
+ /* @__PURE__ */ m(
310
+ o.Trigger,
311
+ {
312
+ ref: ne,
313
+ id: ee,
314
+ "aria-label": Q,
315
+ "aria-describedby": oe,
316
+ "aria-invalid": O || void 0,
317
+ "data-component": "select",
318
+ "data-component-id": S,
319
+ className: G({
320
+ size: T,
321
+ tone: se,
322
+ className: J
323
+ }),
324
+ children: [
325
+ /* @__PURE__ */ t(o.Value, { placeholder: re }),
326
+ /* @__PURE__ */ m("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
327
+ le ? /* @__PURE__ */ t(
328
+ "button",
329
+ {
330
+ type: "button",
331
+ "aria-label": x("ui.inputs.select.clear", "Clear selection"),
332
+ onClick: ae,
333
+ onPointerDown: (i) => i.stopPropagation(),
334
+ onKeyDown: (i) => {
335
+ (i.key === "Enter" || i.key === " ") && i.stopPropagation();
336
+ },
337
+ className: [
338
+ "ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)]",
339
+ "ds:text-muted-foreground ds:hover:text-foreground",
340
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
341
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
342
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
343
+ "ds:size-4"
344
+ ].join(" "),
345
+ children: /* @__PURE__ */ t(Ce, { "aria-hidden": "true", className: "ds:size-3.5" })
346
+ }
347
+ ) : null,
348
+ /* @__PURE__ */ t(o.Icon, { asChild: !0, children: /* @__PURE__ */ t(
349
+ P,
350
+ {
351
+ "aria-hidden": "true",
352
+ className: [
353
+ "ds:size-4 ds:shrink-0 ds:text-muted-foreground",
354
+ "ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
355
+ "ds:group-data-[state=open]:rotate-180"
356
+ ].join(" ")
357
+ }
358
+ ) })
359
+ ] })
360
+ ]
361
+ }
362
+ ),
363
+ /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(j, { children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: x("ui.inputs.select.noOptions", "No options") }) : ce.map(({ group: i, items: y }, pe) => {
364
+ const D = y.map((v) => /* @__PURE__ */ t(
365
+ V,
366
+ {
367
+ value: v.value,
368
+ disabled: v.disabled,
369
+ size: T,
370
+ "data-option-id": v.value,
371
+ children: v.label
372
+ },
373
+ v.value
374
+ ));
375
+ return i ? /* @__PURE__ */ m(o.Group, { children: [
376
+ /* @__PURE__ */ t(k, { children: i }),
377
+ D
378
+ ] }, `group-${i}`) : /* @__PURE__ */ t(o.Group, { children: D }, `group-${pe}`);
379
+ }) }) })
380
+ ]
381
+ }
382
+ );
383
+ });
384
+ U.displayName = "Select";
385
+ const Re = Object.assign(U, {
386
+ Root: L,
387
+ Trigger: q,
388
+ Value: $,
389
+ Content: I,
390
+ Viewport: j,
391
+ Item: V,
392
+ ItemText: A,
393
+ Group: H,
394
+ Label: k,
395
+ Separator: M
396
+ }), Me = Re;
397
+ export {
398
+ Me as S,
399
+ I as a,
400
+ H as b,
401
+ V as c,
402
+ A as d,
403
+ k as e,
404
+ L as f,
405
+ M as g,
406
+ q as h,
407
+ $ as i,
408
+ j
409
+ };
410
+ //# sourceMappingURL=select-DY1Cb2Tg.js.map