@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,73 +1,109 @@
1
1
  import { jsx as d, jsxs as h, Fragment as we } from "react/jsx-runtime";
2
- import { forwardRef as $e, useId as Ne, useState as P, useMemo as F, useCallback as ke, useRef as H, useEffect as ee } from "react";
3
- import * as I from "@radix-ui/react-popover";
4
- import { c as te } from "./index-D2ZczOXr.js";
5
- import { useTranslation as ye } from "react-i18next";
6
- import { u as Pe } from "./form-field-context-94LwgYTQ.js";
7
- import { S as re } from "./slider-DjyRt3Mp.js";
2
+ import { forwardRef as $e, useId as Ne, useState as M, useMemo as z, useCallback as ye, useRef as V, useEffect as ee } from "react";
3
+ import * as E from "@radix-ui/react-popover";
4
+ import { c as ae } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as Pe } from "react-i18next";
6
+ import { u as Ae } from "./form-field-context-94LwgYTQ.js";
7
+ import { S as re } from "./slider-CcsQTZTA.js";
8
+ import { u as Me } from "./registry-C9nwlNyL.js";
8
9
  import { C as ne } from "./check-DPdL_Sm7.js";
9
- import { X as Ae } from "./x-CCcI3eJp.js";
10
- function V(e) {
11
- let s = e.startsWith("#") ? e.slice(1) : e;
12
- (s.length === 3 || s.length === 4) && (s = s.split("").map((c) => c + c).join(""));
13
- const r = parseInt(s.slice(0, 2), 16) / 255, t = parseInt(s.slice(2, 4), 16) / 255, n = parseInt(s.slice(4, 6), 16) / 255, i = s.length === 8 ? parseInt(s.slice(6, 8), 16) / 255 : 1;
14
- return oe(r, t, n, i);
10
+ import { X as Se } from "./x-CCcI3eJp.js";
11
+ const Te = {
12
+ id: "color-picker",
13
+ capabilities: ["pick"],
14
+ state: {
15
+ value: {
16
+ type: "string",
17
+ descriptionKey: "ui.agent.colorPicker.state.value",
18
+ description: 'Currently picked colour as a hex string (e.g. "#3b82f6").',
19
+ read: (e) => e.getValue()
20
+ }
21
+ },
22
+ actions: {
23
+ set_value: {
24
+ safety: "write",
25
+ argsType: "{ hex: string }",
26
+ descriptionKey: "ui.agent.colorPicker.actions.setValue",
27
+ description: "Set the picked colour from a hex string.",
28
+ invoke: (e, t) => {
29
+ e.setValue(t.hex);
30
+ }
31
+ }
32
+ },
33
+ domHooks: {
34
+ root: {
35
+ attr: "data-component",
36
+ value: "color-picker",
37
+ description: "Marks the ColorPicker wrapper (inline) or trigger (popover variant)."
38
+ },
39
+ instanceId: {
40
+ attr: "data-component-id",
41
+ sourceProp: "id",
42
+ description: "Sourced from the id prop."
43
+ }
44
+ }
45
+ };
46
+ function G(e) {
47
+ let t = e.startsWith("#") ? e.slice(1) : e;
48
+ (t.length === 3 || t.length === 4) && (t = t.split("").map((c) => c + c).join(""));
49
+ const r = parseInt(t.slice(0, 2), 16) / 255, a = parseInt(t.slice(2, 4), 16) / 255, n = parseInt(t.slice(4, 6), 16) / 255, i = t.length === 8 ? parseInt(t.slice(6, 8), 16) / 255 : 1;
50
+ return oe(r, a, n, i);
15
51
  }
16
- function oe(e, s, r, t) {
17
- const n = Math.max(e, s, r), i = Math.min(e, s, r), c = (n + i) / 2;
18
- let m = 0, p = 0;
52
+ function oe(e, t, r, a) {
53
+ const n = Math.max(e, t, r), i = Math.min(e, t, r), c = (n + i) / 2;
54
+ let m = 0, b = 0;
19
55
  if (n !== i) {
20
- const b = n - i;
21
- p = c > 0.5 ? b / (2 - n - i) : b / (n + i), n === e ? m = ((s - r) / b + (s < r ? 6 : 0)) / 6 : n === s ? m = ((r - e) / b + 2) / 6 : m = ((e - s) / b + 4) / 6;
56
+ const k = n - i;
57
+ b = c > 0.5 ? k / (2 - n - i) : k / (n + i), n === e ? m = ((t - r) / k + (t < r ? 6 : 0)) / 6 : n === t ? m = ((r - e) / k + 2) / 6 : m = ((e - t) / k + 4) / 6;
22
58
  }
23
59
  return {
24
60
  h: Math.round(m * 360),
25
- s: Math.round(p * 100),
61
+ s: Math.round(b * 100),
26
62
  l: Math.round(c * 100),
27
- a: Math.round(t * 100) / 100
63
+ a: Math.round(a * 100) / 100
28
64
  };
29
65
  }
30
- function $(e) {
31
- const { r: s, g: r, b: t } = G(e), n = (c) => Math.round(c * 255).toString(16).padStart(2, "0"), i = `#${n(s)}${n(r)}${n(t)}`;
66
+ function C(e) {
67
+ const { r: t, g: r, b: a } = D(e), n = (c) => Math.round(c * 255).toString(16).padStart(2, "0"), i = `#${n(t)}${n(r)}${n(a)}`;
32
68
  return e.a < 1 ? `${i}${n(e.a)}` : i;
33
69
  }
34
- function Me(e) {
35
- const { r: s, g: r, b: t } = G(e), n = Math.round(s * 255), i = Math.round(r * 255), c = Math.round(t * 255);
70
+ function Ie(e) {
71
+ const { r: t, g: r, b: a } = D(e), n = Math.round(t * 255), i = Math.round(r * 255), c = Math.round(a * 255);
36
72
  return e.a < 1 ? `rgba(${n}, ${i}, ${c}, ${e.a})` : `rgba(${n}, ${i}, ${c}, 1)`;
37
73
  }
38
- function G(e) {
39
- const s = e.h / 360, r = e.s / 100, t = e.l / 100;
74
+ function D(e) {
75
+ const t = e.h / 360, r = e.s / 100, a = e.l / 100;
40
76
  if (r === 0)
41
- return { r: t, g: t, b: t };
42
- const n = t < 0.5 ? t * (1 + r) : t + r - t * r, i = 2 * t - n;
77
+ return { r: a, g: a, b: a };
78
+ const n = a < 0.5 ? a * (1 + r) : a + r - a * r, i = 2 * a - n;
43
79
  return {
44
- r: _(i, n, s + 1 / 3),
45
- g: _(i, n, s),
46
- b: _(i, n, s - 1 / 3)
80
+ r: _(i, n, t + 1 / 3),
81
+ g: _(i, n, t),
82
+ b: _(i, n, t - 1 / 3)
47
83
  };
48
84
  }
49
- function _(e, s, r) {
50
- let t = r;
51
- return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (s - e) * 6 * t : t < 1 / 2 ? s : t < 2 / 3 ? e + (s - e) * (2 / 3 - t) * 6 : e;
85
+ function _(e, t, r) {
86
+ let a = r;
87
+ return a < 0 && (a += 1), a > 1 && (a -= 1), a < 1 / 6 ? e + (t - e) * 6 * a : a < 1 / 2 ? t : a < 2 / 3 ? e + (t - e) * (2 / 3 - a) * 6 : e;
52
88
  }
53
- function B(e, s) {
54
- switch (s) {
89
+ function B(e, t) {
90
+ switch (t) {
55
91
  case "hex":
56
- return $(e);
92
+ return C(e);
57
93
  case "hsl":
58
94
  return e.a < 1 ? `hsla(${e.h}, ${e.s}%, ${e.l}%, ${e.a})` : `hsl(${e.h}, ${e.s}%, ${e.l}%)`;
59
95
  case "rgba":
60
- return Me(e);
96
+ return Ie(e);
61
97
  }
62
98
  }
63
- function L(e) {
64
- const s = e.trim();
65
- if (!s) return null;
66
- if (s.startsWith("#")) {
67
- const n = s.slice(1);
68
- return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null : V(s);
99
+ function S(e) {
100
+ const t = e.trim();
101
+ if (!t) return null;
102
+ if (t.startsWith("#")) {
103
+ const n = t.slice(1);
104
+ return !/^[0-9a-fA-F]{3,8}$/.test(n) || ![3, 4, 6, 8].includes(n.length) ? null : G(t);
69
105
  }
70
- const r = s.match(
106
+ const r = t.match(
71
107
  /^hsla?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)%?\s*[,/]\s*([\d.]+)%?\s*(?:[,/]\s*([\d.]+))?\s*\)$/
72
108
  );
73
109
  if (r)
@@ -77,30 +113,30 @@ function L(e) {
77
113
  l: Math.round(parseFloat(r[3])),
78
114
  a: r[4] !== void 0 ? parseFloat(r[4]) : 1
79
115
  };
80
- const t = s.match(
116
+ const a = t.match(
81
117
  /^rgba?\(\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*[,/]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+))?\s*\)$/
82
118
  );
83
- if (t) {
84
- const n = parseFloat(t[1]) / 255, i = parseFloat(t[2]) / 255, c = parseFloat(t[3]) / 255, m = t[4] !== void 0 ? parseFloat(t[4]) : 1;
119
+ if (a) {
120
+ const n = parseFloat(a[1]) / 255, i = parseFloat(a[2]) / 255, c = parseFloat(a[3]) / 255, m = a[4] !== void 0 ? parseFloat(a[4]) : 1;
85
121
  return oe(n, i, c, m);
86
122
  }
87
123
  return null;
88
124
  }
89
- function se(e) {
90
- const { r: s, g: r, b: t } = G(e), n = (i) => i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
91
- return 0.2126 * n(s) + 0.7152 * n(r) + 0.0722 * n(t);
125
+ function te(e) {
126
+ const { r: t, g: r, b: a } = D(e), n = (i) => i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
127
+ return 0.2126 * n(t) + 0.7152 * n(r) + 0.0722 * n(a);
92
128
  }
93
- function Se(e, s) {
94
- const r = se(e), t = se(s), n = Math.max(r, t), i = Math.min(r, t);
129
+ function Le(e, t) {
130
+ const r = te(e), a = te(t), n = Math.max(r, a), i = Math.min(r, a);
95
131
  return Math.round((n + 0.05) / (i + 0.05) * 100) / 100;
96
132
  }
97
- function Te(e) {
133
+ function ze(e) {
98
134
  return e >= 4.5;
99
135
  }
100
- function ze(e) {
136
+ function Ee(e) {
101
137
  return e >= 7;
102
138
  }
103
- const Ie = [
139
+ const Re = [
104
140
  { name: "Pink 500", hex: "#e91e63", textColor: "#ffffff" },
105
141
  { name: "Black", hex: "#000000", textColor: "#ffffff" },
106
142
  { name: "Blue 500", hex: "#2196f3", textColor: "#ffffff" },
@@ -131,7 +167,7 @@ const Ie = [
131
167
  { name: "Orange 900", hex: "#e65100", textColor: "#000000" },
132
168
  { name: "White", hex: "#ffffff", textColor: "#000000" },
133
169
  { name: "Yellow 500", hex: "#ffeb3b", textColor: "#000000" }
134
- ], Ye = [
170
+ ], Ze = [
135
171
  { name: "Blue 300", hex: "#70738c" },
136
172
  { name: "Blue 500", hex: "#292e53" },
137
173
  { name: "Blue 700", hex: "#1d213b" },
@@ -150,7 +186,7 @@ const Ie = [
150
186
  { name: "Grey 300", hex: "#f9f6f3" },
151
187
  { name: "Grey 500", hex: "#f6f1ed" },
152
188
  { name: "Grey 700", hex: "#afaba8" }
153
- ], u = 6, Le = te(
189
+ ], u = 6, Fe = ae(
154
190
  [
155
191
  "ds:inline-flex ds:items-center ds:w-full",
156
192
  "ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
@@ -169,7 +205,7 @@ const Ie = [
169
205
  },
170
206
  defaultVariants: { size: "md" }
171
207
  }
172
- ), Ee = te(
208
+ ), He = ae(
173
209
  [
174
210
  "ds:relative ds:rounded-[var(--radius-sm)] ds:border-2 ds:cursor-pointer",
175
211
  "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
@@ -191,17 +227,17 @@ const Ie = [
191
227
  },
192
228
  defaultVariants: { selected: !1 }
193
229
  }
194
- ), Re = [
230
+ ), Ve = [
195
231
  "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
196
232
  "ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
197
233
  "ds:p-[var(--spacing-md)]"
198
- ].join(" "), Fe = [
234
+ ].join(" "), _e = [
199
235
  "ds:bg-[image:repeating-conic-gradient(var(--color-grey-700)_0%_25%,transparent_0%_50%)]",
200
236
  "ds:bg-[size:8px_8px]"
201
- ].join(" "), He = [
237
+ ].join(" "), Be = [
202
238
  "ds:rounded-[var(--radius-md)] ds:bg-[var(--background)] ds:text-[var(--foreground)]",
203
239
  "ds:p-[var(--spacing-sm)]"
204
- ].join(" "), _e = [
240
+ ].join(" "), Oe = [
205
241
  "ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
206
242
  "ds:border ds:border-[color:var(--border)] ds:bg-[var(--background)] ds:shadow-[var(--shadow-lg)]",
207
243
  "ds:w-72",
@@ -209,114 +245,125 @@ const Ie = [
209
245
  "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
210
246
  "ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=top]:slide-in-from-bottom-2",
211
247
  "ds:data-[side=left]:slide-in-from-right-2 ds:data-[side=right]:slide-in-from-left-2"
212
- ].join(" "), Be = [
248
+ ].join(" "), Ge = [
213
249
  "ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-[var(--background)] ds:text-[var(--foreground)]",
214
250
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[var(--font-size-sm)]",
215
251
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
216
252
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
217
253
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
218
254
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
219
- ].join(" "), ie = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent", Oe = $e(
220
- (e, s) => {
255
+ ].join(" "), ie = "ds:[&>span:first-child]:bg-transparent ds:[&>span:first-child>span]:bg-transparent", De = $e(
256
+ (e, t) => {
221
257
  const {
222
258
  value: r,
223
- defaultValue: t,
259
+ defaultValue: a,
224
260
  onChange: n,
225
261
  format: i = "hex",
226
262
  allowOpacity: c = !1,
227
263
  palette: m,
228
- against: p,
229
- size: b = "md",
264
+ against: b,
265
+ size: k = "md",
230
266
  disabled: de = !1,
231
267
  variant: le = "inline",
232
- compact: A = !0,
233
- className: D
234
- } = e, { t: g } = ye(), N = Pe(), ce = Ne(), M = N.id || ce, v = N.disabled || de, S = r !== void 0, [j, fe] = P(() => {
235
- const a = r ?? t;
236
- if (a) {
237
- const l = L(a);
268
+ compact: P = !0,
269
+ className: j
270
+ } = e, { t: g } = Pe(), N = Ae(), ce = Ne(), w = N.id || ce, x = N.disabled || de, T = r !== void 0, [K, fe] = M(() => {
271
+ const s = r ?? a;
272
+ if (s) {
273
+ const l = S(s);
238
274
  if (l) return l;
239
275
  }
240
276
  return { h: 0, s: 100, l: 50, a: 1 };
241
- }), o = F(() => {
242
- if (S && r) {
243
- const a = L(r);
244
- if (a) return a;
277
+ }), o = z(() => {
278
+ if (T && r) {
279
+ const s = S(r);
280
+ if (s) return s;
245
281
  }
246
- return j;
247
- }, [S, r, j]), C = ke(
248
- (a) => {
249
- const l = c ? a : { ...a, a: 1 };
250
- S || fe(l), n == null || n(B(l, i));
282
+ return K;
283
+ }, [T, r, K]), v = ye(
284
+ (s) => {
285
+ const l = c ? s : { ...s, a: 1 };
286
+ T || fe(l), n == null || n(B(l, i));
251
287
  },
252
- [c, i, S, n]
253
- ), [W, E] = P(() => $(o)), [ue, T] = P(!1), w = H(void 0), U = H(o);
254
- U.current = o, ee(() => {
255
- E($(o)), T(!1), w.current !== void 0 && (clearTimeout(w.current), w.current = void 0);
288
+ [c, i, T, n]
289
+ ), [W, R] = M(() => C(o)), [ue, I] = M(!1), $ = V(void 0), F = V(o);
290
+ F.current = o, ee(() => {
291
+ R(C(o)), I(!1), $.current !== void 0 && (clearTimeout($.current), $.current = void 0);
256
292
  }, [o]), ee(() => () => {
257
- w.current !== void 0 && clearTimeout(w.current);
293
+ $.current !== void 0 && clearTimeout($.current);
258
294
  }, []);
259
295
  const he = () => {
260
- const a = L(W);
261
- a ? (T(!1), C(a)) : (T(!0), w.current = setTimeout(() => {
262
- w.current = void 0, T(!1), E($(U.current));
296
+ const s = S(W);
297
+ s ? (I(!1), v(s)) : (I(!0), $.current = setTimeout(() => {
298
+ $.current = void 0, I(!1), R(C(F.current));
263
299
  }, 800));
264
- }, y = F(() => m ? m.map(
265
- (a) => typeof a == "string" ? { name: a.toUpperCase(), hex: a } : a
266
- ) : Ie, [m]), K = $(o), X = y.findIndex(
267
- (a) => a.hex.toLowerCase() === K.toLowerCase()
268
- ), Y = H(null), [x, q] = P(
300
+ }, A = z(() => m ? m.map(
301
+ (s) => typeof s == "string" ? { name: s.toUpperCase(), hex: s } : s
302
+ ) : Re, [m]), U = C(o), X = A.findIndex(
303
+ (s) => s.hex.toLowerCase() === U.toLowerCase()
304
+ ), Y = V(null), [p, q] = M(
269
305
  X >= 0 ? X : 0
270
- ), me = (a) => {
306
+ ), me = (s) => {
271
307
  var f;
272
308
  const l = (f = Y.current) == null ? void 0 : f.querySelectorAll('[role="gridcell"]');
273
- l != null && l[a] && (l[a].focus(), q(a));
274
- }, ge = (a) => {
275
- if (v) return;
276
- const l = y.length;
277
- let f = x;
278
- switch (a.key) {
309
+ l != null && l[s] && (l[s].focus(), q(s));
310
+ }, ge = (s) => {
311
+ if (x) return;
312
+ const l = A.length;
313
+ let f = p;
314
+ switch (s.key) {
279
315
  case "ArrowRight":
280
- f = (x + 1) % l;
316
+ f = (p + 1) % l;
281
317
  break;
282
318
  case "ArrowLeft":
283
- f = (x - 1 + l) % l;
319
+ f = (p - 1 + l) % l;
284
320
  break;
285
321
  case "ArrowDown":
286
- f = Math.min(x + u, l - 1);
322
+ f = Math.min(p + u, l - 1);
287
323
  break;
288
324
  case "ArrowUp":
289
- f = Math.max(x - u, 0);
325
+ f = Math.max(p - u, 0);
290
326
  break;
291
327
  case "Home":
292
- f = Math.floor(x / u) * u;
328
+ f = Math.floor(p / u) * u;
293
329
  break;
294
330
  case "End":
295
- f = Math.min(Math.floor(x / u) * u + u - 1, l - 1);
331
+ f = Math.min(Math.floor(p / u) * u + u - 1, l - 1);
296
332
  break;
297
333
  case "PageUp":
298
- f = x % u;
334
+ f = p % u;
299
335
  break;
300
336
  case "PageDown": {
301
337
  const Q = Math.floor((l - 1) / u) * u;
302
- f = Math.min(Q + x % u, l - 1);
338
+ f = Math.min(Q + p % u, l - 1);
303
339
  break;
304
340
  }
305
341
  case "Enter":
306
342
  case " ":
307
- a.preventDefault(), C(V(y[x].hex));
343
+ s.preventDefault(), v(G(A[p].hex));
308
344
  return;
309
345
  default:
310
346
  return;
311
347
  }
312
- a.preventDefault(), me(f);
313
- }, [xe, ve] = P(!1), z = F(() => {
314
- if (!p) return null;
315
- const a = L(p);
316
- if (!a) return null;
317
- const l = Se(o, a);
318
- return { ratio: l, aa: Te(l), aaa: ze(l) };
319
- }, [p, o]), pe = /* @__PURE__ */ d(
348
+ s.preventDefault(), me(f);
349
+ }, [pe, xe] = M(!1), ve = z(
350
+ () => ({
351
+ getValue: () => C(F.current),
352
+ setValue: (s) => {
353
+ const l = S(s);
354
+ l && v(l);
355
+ }
356
+ }),
357
+ [v]
358
+ );
359
+ Me(Te, ve, w);
360
+ const L = z(() => {
361
+ if (!b) return null;
362
+ const s = S(b);
363
+ if (!s) return null;
364
+ const l = Le(o, s);
365
+ return { ratio: l, aa: ze(l), aaa: Ee(l) };
366
+ }, [b, o]), be = /* @__PURE__ */ d(
320
367
  "div",
321
368
  {
322
369
  ref: Y,
@@ -324,42 +371,42 @@ const Ie = [
324
371
  "aria-label": g("ui.inputs.colorPicker.paletteLabel", "Colour swatches"),
325
372
  onKeyDown: ge,
326
373
  className: "ds:grid ds:grid-cols-6 ds:gap-[var(--spacing-xs)]",
327
- children: y.map((a, l) => {
374
+ children: A.map((s, l) => {
328
375
  const f = Math.floor(l / u) * u;
329
- return l === f ? /* @__PURE__ */ d("div", { role: "row", className: "ds:contents", children: y.slice(f, f + u).map((k, Ce) => {
330
- const Z = f + Ce, R = k.hex.toLowerCase() === K.toLowerCase();
376
+ return l === f ? /* @__PURE__ */ d("div", { role: "row", className: "ds:contents", children: A.slice(f, f + u).map((y, ke) => {
377
+ const Z = f + ke, H = y.hex.toLowerCase() === U.toLowerCase();
331
378
  return /* @__PURE__ */ d(
332
379
  "div",
333
380
  {
334
381
  role: "gridcell",
335
- "aria-selected": R,
336
- "aria-label": g("ui.inputs.colorPicker.swatchLabel", { name: k.name, hex: k.hex }),
337
- tabIndex: Z === x ? 0 : -1,
382
+ "aria-selected": H,
383
+ "aria-label": g("ui.inputs.colorPicker.swatchLabel", { name: y.name, hex: y.hex }),
384
+ tabIndex: Z === p ? 0 : -1,
338
385
  onClick: () => {
339
- v || (C(V(k.hex)), q(Z));
386
+ x || (v(G(y.hex)), q(Z));
340
387
  },
341
- className: Ee({ selected: R }),
342
- style: { "--swatch-bg": k.hex },
343
- children: R ? /* @__PURE__ */ d(ne, { "aria-hidden": "true", className: "ds:absolute ds:inset-0 ds:m-auto ds:size-4 ds:text-[var(--background)] ds:mix-blend-difference" }) : null
388
+ className: He({ selected: H }),
389
+ style: { "--swatch-bg": y.hex },
390
+ children: H ? /* @__PURE__ */ d(ne, { "aria-hidden": "true", className: "ds:absolute ds:inset-0 ds:m-auto ds:size-4 ds:text-[var(--background)] ds:mix-blend-difference" }) : null
344
391
  },
345
- k.hex
392
+ y.hex
346
393
  );
347
394
  }) }, l) : null;
348
395
  })
349
396
  }
350
- ), be = A ? null : /* @__PURE__ */ h(we, { children: [
397
+ ), Ce = P ? null : /* @__PURE__ */ h(we, { children: [
351
398
  /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
352
- /* @__PURE__ */ d("label", { htmlFor: `${M}-hex`, className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: g("ui.inputs.colorPicker.hex", "Hex") }),
399
+ /* @__PURE__ */ d("label", { htmlFor: `${w}-hex`, className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: g("ui.inputs.colorPicker.hex", "Hex") }),
353
400
  /* @__PURE__ */ d("bdi", { dir: "ltr", children: /* @__PURE__ */ d(
354
401
  "input",
355
402
  {
356
- id: `${M}-hex`,
403
+ id: `${w}-hex`,
357
404
  type: "text",
358
405
  value: W,
359
- disabled: v,
360
- onChange: (a) => E(a.target.value),
406
+ disabled: x,
407
+ onChange: (s) => R(s.target.value),
361
408
  onBlur: he,
362
- className: `${Be} ${ue ? "ds:border-[var(--destructive)]" : "ds:border-[color:var(--border)]"}`
409
+ className: `${Ge} ${ue ? "ds:border-[var(--destructive)]" : "ds:border-[color:var(--border)]"}`
363
410
  }
364
411
  ) })
365
412
  ] }),
@@ -372,9 +419,9 @@ const Ie = [
372
419
  min: 0,
373
420
  max: 360,
374
421
  value: o.h,
375
- onChange: (a) => C({ ...o, h: a }),
376
- formatValue: (a) => `H ${a}°`,
377
- disabled: v
422
+ onChange: (s) => v({ ...o, h: s }),
423
+ formatValue: (s) => `H ${s}°`,
424
+ disabled: x
378
425
  }
379
426
  ),
380
427
  /* @__PURE__ */ d(
@@ -385,9 +432,9 @@ const Ie = [
385
432
  min: 0,
386
433
  max: 100,
387
434
  value: o.s,
388
- onChange: (a) => C({ ...o, s: a }),
389
- formatValue: (a) => `S ${a}%`,
390
- disabled: v
435
+ onChange: (s) => v({ ...o, s }),
436
+ formatValue: (s) => `S ${s}%`,
437
+ disabled: x
391
438
  }
392
439
  ),
393
440
  /* @__PURE__ */ d(
@@ -398,9 +445,9 @@ const Ie = [
398
445
  min: 0,
399
446
  max: 100,
400
447
  value: o.l,
401
- onChange: (a) => C({ ...o, l: a }),
402
- formatValue: (a) => `L ${a}%`,
403
- disabled: v
448
+ onChange: (s) => v({ ...o, l: s }),
449
+ formatValue: (s) => `L ${s}%`,
450
+ disabled: x
404
451
  }
405
452
  ),
406
453
  c ? /* @__PURE__ */ h("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
@@ -409,7 +456,7 @@ const Ie = [
409
456
  /* @__PURE__ */ d(
410
457
  "div",
411
458
  {
412
- className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${Fe}`,
459
+ className: `ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ${_e}`,
413
460
  "aria-hidden": "true"
414
461
  }
415
462
  ),
@@ -430,91 +477,94 @@ const Ie = [
430
477
  max: 100,
431
478
  step: 1,
432
479
  value: [Math.round(o.a * 100)],
433
- onValueChange: ([a]) => C({ ...o, a: a / 100 }),
480
+ onValueChange: ([s]) => v({ ...o, a: s / 100 }),
434
481
  "aria-label": g("ui.inputs.colorPicker.opacity", "Opacity"),
435
- formatValue: (a) => `${a}%`,
436
- disabled: v,
482
+ formatValue: (s) => `${s}%`,
483
+ disabled: x,
437
484
  className: ie
438
485
  }
439
486
  )
440
487
  ] })
441
488
  ] }) : null
442
489
  ] }),
443
- z ? /* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]", role: "status", "aria-live": "polite", children: [
444
- /* @__PURE__ */ d("span", { className: "ds:tabular-nums", children: g("ui.inputs.colorPicker.contrastRatio", { ratio: z.ratio.toFixed(1) }) }),
445
- /* @__PURE__ */ d(ae, { level: "AA", passes: z.aa, t: g }),
446
- /* @__PURE__ */ d(ae, { level: "AAA", passes: z.aaa, t: g })
490
+ L ? /* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]", role: "status", "aria-live": "polite", children: [
491
+ /* @__PURE__ */ d("span", { className: "ds:tabular-nums", children: g("ui.inputs.colorPicker.contrastRatio", { ratio: L.ratio.toFixed(1) }) }),
492
+ /* @__PURE__ */ d(se, { level: "AA", passes: L.aa, t: g }),
493
+ /* @__PURE__ */ d(se, { level: "AAA", passes: L.aaa, t: g })
447
494
  ] }) : null,
448
495
  /* @__PURE__ */ h("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
449
496
  /* @__PURE__ */ d(
450
497
  "div",
451
498
  {
452
499
  className: "ds:size-8 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--swatch-bg)]",
453
- style: { "--swatch-bg": $(o) },
500
+ style: { "--swatch-bg": C(o) },
454
501
  "aria-hidden": "true"
455
502
  }
456
503
  ),
457
504
  /* @__PURE__ */ d("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[var(--muted-foreground)] ds:tabular-nums", children: B(o, i) })
458
505
  ] })
459
- ] }), J = /* @__PURE__ */ h("div", { className: A ? He : Re, children: [
460
- pe,
461
- be
506
+ ] }), J = /* @__PURE__ */ h("div", { className: P ? Be : Ve, children: [
507
+ be,
508
+ Ce
462
509
  ] });
463
510
  return le === "inline" ? /* @__PURE__ */ d(
464
511
  "div",
465
512
  {
466
- ref: s,
467
- id: M,
468
- className: D,
513
+ ref: t,
514
+ id: w,
515
+ className: j,
469
516
  "aria-describedby": N.describedBy || void 0,
470
517
  "aria-invalid": N.invalid || void 0,
471
- "aria-disabled": v || void 0,
518
+ "aria-disabled": x || void 0,
472
519
  "data-component": "color-picker",
520
+ "data-component-id": w,
473
521
  "data-testid": "color-picker",
474
522
  children: J
475
523
  }
476
- ) : /* @__PURE__ */ h(I.Root, { open: xe, onOpenChange: ve, children: [
477
- /* @__PURE__ */ d(I.Trigger, { asChild: !0, disabled: v, children: /* @__PURE__ */ h(
524
+ ) : /* @__PURE__ */ h(E.Root, { open: pe, onOpenChange: xe, children: [
525
+ /* @__PURE__ */ d(E.Trigger, { asChild: !0, disabled: x, children: /* @__PURE__ */ h(
478
526
  "button",
479
527
  {
480
- ref: s,
528
+ ref: t,
481
529
  type: "button",
482
- id: M,
530
+ id: w,
483
531
  "aria-describedby": N.describedBy || void 0,
484
532
  "aria-invalid": N.invalid || void 0,
485
- className: Le({ size: b, className: D }),
533
+ "aria-label": P ? g("ui.inputs.colorPicker.triggerLabel", "Choose a colour") : void 0,
534
+ className: Fe({ size: k, className: j }),
486
535
  "data-component": "color-picker",
536
+ "data-component-id": w,
487
537
  "data-testid": "color-picker-trigger",
488
538
  children: [
489
539
  /* @__PURE__ */ d(
490
540
  "span",
491
541
  {
492
- className: `ds:inline-block ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:shrink-0 ds:bg-[var(--swatch-bg)]${A ? "" : " ds:me-[var(--spacing-sm)]"}`,
542
+ className: `ds:inline-block ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:shrink-0 ds:bg-[var(--swatch-bg)]${P ? "" : " ds:me-[var(--spacing-sm)]"}`,
493
543
  "aria-hidden": "true",
494
- style: { "--swatch-bg": $(o) }
544
+ style: { "--swatch-bg": C(o) }
495
545
  }
496
546
  ),
497
- A ? null : /* @__PURE__ */ d("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: B(o, i) })
547
+ P ? null : /* @__PURE__ */ d("span", { className: "ds:text-start ds:truncate ds:tabular-nums", children: B(o, i) })
498
548
  ]
499
549
  }
500
550
  ) }),
501
- /* @__PURE__ */ d(I.Portal, { children: /* @__PURE__ */ d(I.Content, { sideOffset: 4, align: "start", className: _e, children: J }) })
551
+ /* @__PURE__ */ d(E.Portal, { children: /* @__PURE__ */ d(E.Content, { sideOffset: 4, align: "start", className: Oe, children: J }) })
502
552
  ] });
503
553
  }
504
554
  );
505
- Oe.displayName = "ColorPicker";
506
- function ae({ level: e, passes: s, t: r }) {
555
+ De.displayName = "ColorPicker";
556
+ function se({ level: e, passes: t, t: r }) {
507
557
  return /* @__PURE__ */ h("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
508
558
  /* @__PURE__ */ d("abbr", { title: `Web Content Accessibility Guidelines Level ${e}`, className: "ds:no-underline ds:font-medium", children: e }),
509
- s ? /* @__PURE__ */ d(ne, { "aria-hidden": "true", className: "ds:size-4 ds:text-[var(--success)]" }) : /* @__PURE__ */ d(Ae, { "aria-hidden": "true", className: "ds:size-4 ds:text-[var(--destructive)]" }),
510
- /* @__PURE__ */ d("span", { className: "ds:sr-only", children: s ? r("ui.inputs.colorPicker.contrastPass", "Pass") : r("ui.inputs.colorPicker.contrastFail", "Fail") })
559
+ t ? /* @__PURE__ */ d(ne, { "aria-hidden": "true", className: "ds:size-4 ds:text-[var(--success)]" }) : /* @__PURE__ */ d(Se, { "aria-hidden": "true", className: "ds:size-4 ds:text-[var(--destructive)]" }),
560
+ /* @__PURE__ */ d("span", { className: "ds:sr-only", children: t ? r("ui.inputs.colorPicker.contrastPass", "Pass") : r("ui.inputs.colorPicker.contrastFail", "Fail") })
511
561
  ] });
512
562
  }
513
563
  function O({
514
564
  label: e,
515
- gradient: s,
565
+ gradient: t,
516
566
  min: r,
517
- max: t,
567
+ max: a,
518
568
  value: n,
519
569
  onChange: i,
520
570
  formatValue: c,
@@ -527,7 +577,7 @@ function O({
527
577
  "div",
528
578
  {
529
579
  className: "ds:absolute ds:inset-0 ds:rounded-[var(--radius-full)] ds:pointer-events-none ds:bg-[image:var(--slider-gradient)]",
530
- style: { "--slider-gradient": s },
580
+ style: { "--slider-gradient": t },
531
581
  "aria-hidden": "true"
532
582
  }
533
583
  ),
@@ -535,10 +585,10 @@ function O({
535
585
  re,
536
586
  {
537
587
  min: r,
538
- max: t,
588
+ max: a,
539
589
  step: 1,
540
590
  value: [n],
541
- onValueChange: ([p]) => i(p),
591
+ onValueChange: ([b]) => i(b),
542
592
  "aria-label": e,
543
593
  formatValue: c,
544
594
  disabled: m,
@@ -549,8 +599,8 @@ function O({
549
599
  ] });
550
600
  }
551
601
  export {
552
- Ie as A,
553
- Ye as B,
554
- Oe as C
602
+ Re as A,
603
+ Ze as B,
604
+ De as C
555
605
  };
556
- //# sourceMappingURL=color-picker-e9PmpaGH.js.map
606
+ //# sourceMappingURL=color-picker-94qcBZqZ.js.map