@alfadocs/ui-kit 1.66.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/_chunks/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
  4. package/dist/_chunks/ai-credits-exhausted-notice-Bg8NpW2K.js +287 -0
  5. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
  6. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
  7. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-C00i6VhY.js} +2 -2
  8. package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
  9. package/dist/_chunks/{alert-DdDpOi-P.js → alert-9kEwDza3.js} +122 -111
  10. package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
  11. package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
  12. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
  13. package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
  14. package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
  15. package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
  16. package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
  17. package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-4Ll0pwYK.js} +3 -3
  18. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-B40zvD-a.js} +2 -2
  19. package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
  20. package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
  21. package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
  22. package/dist/_chunks/{booking-DkjatiXc.js → booking-B1pDbERi.js} +377 -335
  23. package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
  24. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-CYK1M83j.js} +19 -19
  25. package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
  26. package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
  27. package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
  28. package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
  29. package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
  30. package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
  31. package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
  32. package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
  33. package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
  34. package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
  35. package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-513f3iPn.js} +4 -4
  36. package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-Bd3wbzpI.js} +2 -2
  37. package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
  38. package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-C2B8yNmc.js} +4 -4
  39. package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-mGxIyDAY.js} +2 -2
  40. package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
  41. package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
  42. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-Dqi7R-NL.js} +4 -4
  43. package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
  44. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-C73C8Rgd.js} +2 -2
  45. package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
  46. package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
  47. package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
  48. package/dist/_chunks/help-me-write-templates-5WkUfvc_.js +687 -0
  49. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  50. package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
  51. package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
  52. package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
  53. package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-vEL-o5wq.js} +3 -3
  54. package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
  55. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
  56. package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
  57. package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
  58. package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
  59. package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
  60. package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
  61. package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-BXN46XkF.js} +6 -6
  62. package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
  63. package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
  64. package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
  65. package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
  66. package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
  67. package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
  68. package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C4Dyo7Ck.js} +4 -4
  69. package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-DROvUkFu.js} +155 -176
  70. package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-BADdx3M1.js} +2 -2
  71. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-CAimxbuI.js} +4 -4
  72. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
  73. package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-PBuh8PIa.js} +2 -2
  74. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-gAsNUsA8.js} +2 -2
  75. package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
  76. package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
  77. package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BzThnpnm.js} +328 -298
  78. package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
  79. package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
  80. package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
  81. package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
  82. package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
  83. package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
  84. package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
  85. package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-1B0PTDal.js} +4 -4
  86. package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
  87. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-56dSsyZI.js} +1653 -1743
  88. package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
  89. package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-BiOTs1P4.js} +2 -2
  90. package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-DAmNj_uq.js} +5 -5
  91. package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
  92. package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
  93. package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
  94. package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
  95. package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-BomyxGoZ.js} +8 -8
  96. package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
  97. package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-ATz9JDy8.js} +6 -6
  98. package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
  99. package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
  100. package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
  101. package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
  102. package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
  103. package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
  104. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CUGfE0hV.js} +13 -13
  105. package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
  106. package/dist/_chunks/voice-control-panel-B8Lrk0C4.js +1148 -0
  107. package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BhHUmRiD.js} +2 -2
  108. package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-ln4_OG8A.js} +2 -2
  109. package/dist/agent-catalog.json +221 -6
  110. package/dist/agent-i18n/en.json +32 -5
  111. package/dist/components/_shared/format-number.d.ts +20 -0
  112. package/dist/components/_shared/length-token.d.ts +12 -0
  113. package/dist/components/_shared/option.d.ts +1 -0
  114. package/dist/components/address-fields/index.js +1 -1
  115. package/dist/components/agenda-card/index.js +1 -1
  116. package/dist/components/agenda-tray/index.js +1 -1
  117. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
  118. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
  119. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
  120. package/dist/components/ai-credits-notice/index.d.ts +3 -0
  121. package/dist/components/ai-credits-notice/index.js +10 -4
  122. package/dist/components/ai-permission-notice/index.js +1 -1
  123. package/dist/components/ai-prompt-input/index.js +1 -1
  124. package/dist/components/alert/alert.d.ts +26 -0
  125. package/dist/components/alert/index.js +1 -1
  126. package/dist/components/anamnesis-summary-card/index.js +1 -1
  127. package/dist/components/appointment-card/index.js +2 -2
  128. package/dist/components/appointment-details-panel/index.js +1 -1
  129. package/dist/components/appointment-peek/index.js +1 -1
  130. package/dist/components/appointment-timeline/index.js +1 -1
  131. package/dist/components/audio-recorder/index.js +1 -1
  132. package/dist/components/avatar/avatar.d.ts +2 -0
  133. package/dist/components/avatar/index.js +1 -1
  134. package/dist/components/bishop-score/index.js +1 -1
  135. package/dist/components/booking/index.js +1 -1
  136. package/dist/components/calendar/index.js +1 -1
  137. package/dist/components/chat-message/index.js +1 -1
  138. package/dist/components/clinical-note-card/index.js +1 -1
  139. package/dist/components/color-picker/index.js +1 -1
  140. package/dist/components/combobox/index.js +1 -1
  141. package/dist/components/contact-profile-card/index.js +1 -1
  142. package/dist/components/control-room-rail/index.js +1 -1
  143. package/dist/components/country-select/index.js +1 -1
  144. package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
  145. package/dist/components/dashboard-grid/index.js +1 -1
  146. package/dist/components/data-table/index.js +2 -2
  147. package/dist/components/dependent-selector/index.js +1 -1
  148. package/dist/components/document-preview/index.js +1 -1
  149. package/dist/components/document-scanner/index.js +1 -1
  150. package/dist/components/editable-description/index.js +1 -1
  151. package/dist/components/entity-summary/index.js +1 -1
  152. package/dist/components/error-summary/index.js +1 -1
  153. package/dist/components/face-scheme/index.js +1 -1
  154. package/dist/components/file-manager/index.js +1 -1
  155. package/dist/components/freemium-paywall/index.js +1 -1
  156. package/dist/components/gestational-age-calculator/index.js +1 -1
  157. package/dist/components/header-settings/index.js +1 -1
  158. package/dist/components/heatmap/index.js +1 -1
  159. package/dist/components/index.d.ts +4 -2
  160. package/dist/components/map-view/index.d.ts +1 -1
  161. package/dist/components/map-view/index.js +1 -1
  162. package/dist/components/map-view/map-view.d.ts +51 -0
  163. package/dist/components/message-card/index.js +1 -1
  164. package/dist/components/message-tray/index.js +1 -1
  165. package/dist/components/multi-select/index.js +1 -1
  166. package/dist/components/muscle-scheme/index.js +1 -1
  167. package/dist/components/note-timeline/index.js +1 -1
  168. package/dist/components/notes-panel/index.js +1 -1
  169. package/dist/components/notice-group/index.d.ts +3 -0
  170. package/dist/components/notice-group/index.js +6 -0
  171. package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
  172. package/dist/components/notice-group/notice-group.d.ts +43 -0
  173. package/dist/components/notification-tray/index.js +1 -1
  174. package/dist/components/operator-hero/index.js +1 -1
  175. package/dist/components/optical-prescription/index.js +1 -1
  176. package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
  177. package/dist/components/panel-header/index.js +1 -1
  178. package/dist/components/panel-header/panel-header.d.ts +10 -0
  179. package/dist/components/panel-subview/index.js +1 -1
  180. package/dist/components/patient-details/index.js +1 -1
  181. package/dist/components/patient-search/index.js +1 -1
  182. package/dist/components/patient-summary-card/index.js +1 -1
  183. package/dist/components/patient-table/index.js +1 -1
  184. package/dist/components/payment-form/index.js +1 -1
  185. package/dist/components/pdf-viewer/index.js +1 -1
  186. package/dist/components/periodontal-risk-chart/index.js +1 -1
  187. package/dist/components/practice-profile-hero/index.js +1 -1
  188. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
  189. package/dist/components/practice-results/index.js +1 -1
  190. package/dist/components/practice-results/practice-results.d.ts +10 -2
  191. package/dist/components/pregnancy-dating/index.js +1 -1
  192. package/dist/components/product-hub-tray/index.js +1 -1
  193. package/dist/components/progress-notice/index.d.ts +3 -0
  194. package/dist/components/progress-notice/index.js +6 -0
  195. package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
  196. package/dist/components/progress-notice/progress-notice.d.ts +81 -0
  197. package/dist/components/province-select/index.js +1 -1
  198. package/dist/components/radiograph-panel/index.js +1 -1
  199. package/dist/components/rating/index.js +1 -1
  200. package/dist/components/reviews-panel/index.js +1 -1
  201. package/dist/components/rich-text-editor/index.js +2 -2
  202. package/dist/components/select/index.js +1 -1
  203. package/dist/components/select/select.d.ts +6 -0
  204. package/dist/components/sign-document/index.js +1 -1
  205. package/dist/components/skeleton/index.d.ts +1 -1
  206. package/dist/components/skeleton/index.js +1 -1
  207. package/dist/components/skeleton/skeleton.d.ts +41 -1
  208. package/dist/components/skeleton-scheme/index.js +1 -1
  209. package/dist/components/slot-grid/index.js +1 -1
  210. package/dist/components/tabs/index.js +1 -1
  211. package/dist/components/task-card/index.js +1 -1
  212. package/dist/components/task-editor/index.js +1 -1
  213. package/dist/components/task-tray/index.js +1 -1
  214. package/dist/components/tasks-panel/index.js +1 -1
  215. package/dist/components/theme-toggle/index.js +1 -1
  216. package/dist/components/timeline/index.js +1 -1
  217. package/dist/components/tool-rail/index.js +1 -1
  218. package/dist/components/transcript-panel/index.js +1 -1
  219. package/dist/components/treatment-receipt/index.js +1 -1
  220. package/dist/components/unit-converter/index.js +1 -1
  221. package/dist/components/voice-control-panel/index.d.ts +2 -1
  222. package/dist/components/voice-control-panel/index.js +1 -1
  223. package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
  224. package/dist/components/warning-stack/index.js +1 -1
  225. package/dist/components/workflow/index.js +1 -1
  226. package/dist/hooks/index.d.ts +1 -0
  227. package/dist/hooks/index.js +81 -76
  228. package/dist/hooks/use-dismissed.d.ts +58 -0
  229. package/dist/i18n/locales/ar.d.ts +49 -12
  230. package/dist/i18n/locales/ar.js +49 -12
  231. package/dist/i18n/locales/de.d.ts +49 -12
  232. package/dist/i18n/locales/de.js +49 -12
  233. package/dist/i18n/locales/el.d.ts +49 -12
  234. package/dist/i18n/locales/el.js +49 -12
  235. package/dist/i18n/locales/en.d.ts +49 -12
  236. package/dist/i18n/locales/en.js +49 -12
  237. package/dist/i18n/locales/es.d.ts +49 -12
  238. package/dist/i18n/locales/es.js +49 -12
  239. package/dist/i18n/locales/fr.d.ts +49 -12
  240. package/dist/i18n/locales/fr.js +49 -12
  241. package/dist/i18n/locales/hi.d.ts +49 -12
  242. package/dist/i18n/locales/hi.js +49 -12
  243. package/dist/i18n/locales/it.d.ts +49 -12
  244. package/dist/i18n/locales/it.js +49 -12
  245. package/dist/i18n/locales/ja.d.ts +49 -12
  246. package/dist/i18n/locales/ja.js +49 -12
  247. package/dist/i18n/locales/nl.d.ts +49 -12
  248. package/dist/i18n/locales/nl.js +49 -12
  249. package/dist/i18n/locales/pl.d.ts +49 -12
  250. package/dist/i18n/locales/pl.js +49 -12
  251. package/dist/i18n/locales/pt.d.ts +49 -12
  252. package/dist/i18n/locales/pt.js +49 -12
  253. package/dist/i18n/locales/ro.d.ts +49 -12
  254. package/dist/i18n/locales/ro.js +49 -12
  255. package/dist/i18n/locales/ru.d.ts +49 -12
  256. package/dist/i18n/locales/ru.js +49 -12
  257. package/dist/i18n/locales/sq.d.ts +49 -12
  258. package/dist/i18n/locales/sq.js +49 -12
  259. package/dist/i18n/locales/sv.d.ts +49 -12
  260. package/dist/i18n/locales/sv.js +49 -12
  261. package/dist/i18n/locales/tr.d.ts +49 -12
  262. package/dist/i18n/locales/tr.js +49 -12
  263. package/dist/i18n/locales/zh.d.ts +49 -12
  264. package/dist/i18n/locales/zh.js +49 -12
  265. package/dist/index.js +1193 -1177
  266. package/dist/locales/ar.json +49 -12
  267. package/dist/locales/de.json +49 -12
  268. package/dist/locales/el.json +49 -12
  269. package/dist/locales/en.json +49 -12
  270. package/dist/locales/es.json +49 -12
  271. package/dist/locales/fr.json +49 -12
  272. package/dist/locales/hi.json +49 -12
  273. package/dist/locales/it.json +49 -12
  274. package/dist/locales/ja.json +49 -12
  275. package/dist/locales/nl.json +49 -12
  276. package/dist/locales/pl.json +49 -12
  277. package/dist/locales/pt.json +49 -12
  278. package/dist/locales/ro.json +49 -12
  279. package/dist/locales/ru.json +49 -12
  280. package/dist/locales/sq.json +49 -12
  281. package/dist/locales/sv.json +49 -12
  282. package/dist/locales/tr.json +49 -12
  283. package/dist/locales/zh.json +49 -12
  284. package/dist/patterns/alia-assistant/index.js +1 -1
  285. package/dist/patterns/anamnesis/index.js +1 -1
  286. package/dist/patterns/calendar/index.js +1 -1
  287. package/dist/patterns/forgot-password-form/index.js +1 -1
  288. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
  289. package/dist/patterns/help-me-write-templates/index.js +8 -7
  290. package/dist/patterns/login-form/index.js +1 -1
  291. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  292. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  293. package/dist/patterns/registration-form/index.js +1 -1
  294. package/dist/patterns/signature-request/index.js +1 -1
  295. package/dist/tokens.css +1 -1
  296. package/package.json +9 -1
  297. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
  298. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
  299. package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
  300. package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
  301. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
  302. package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
  303. package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
  304. package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
  305. package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
@@ -1,18 +1,19 @@
1
1
  import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as Fe, useId as Be, useRef as H, useCallback as v, useState as W, useImperativeHandle as $e, useMemo as Ce } from "react";
3
- import { c as Oe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ee } from "react-i18next";
5
- import { u as J } from "./use-controllable-state-BiY4xTzM.js";
6
- import { u as Re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
2
+ import { forwardRef as Ce, useId as Oe, useRef as H, useCallback as v, useState as L, useImperativeHandle as $e, useMemo as De } from "react";
3
+ import { c as Re } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ae } from "react-i18next";
5
+ import { u as te } from "./use-controllable-state-BiY4xTzM.js";
6
+ import { u as _e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
7
  import { u as je } from "./registry-DvAUVLHh.js";
8
8
  import { _ as g } from "./index-4xgbg-sn.js";
9
- import { u as _e } from "./index-BcMWc8W2.js";
10
- import { I as te } from "./icon-button-C_1TgRiK.js";
11
- import { S as We } from "./select-k4gBdS8N.js";
12
- import { b as De } from "./menu-row-BAr8bx1I.js";
13
- import { S as Le } from "./send-C5kDJ-Mz.js";
14
- import { X as Ue } from "./x-B5YnXwCz.js";
15
- const Ae = {
9
+ import { u as Le } from "./index-BcMWc8W2.js";
10
+ import { I as re } from "./icon-button-C_1TgRiK.js";
11
+ import { S as We } from "./select-4S-eYZUf.js";
12
+ import { b as Ae } from "./menu-row-BAr8bx1I.js";
13
+ import { a as W } from "./format-number-DdzqwMs1.js";
14
+ import { S as Ue } from "./send-C5kDJ-Mz.js";
15
+ import { X as Ge } from "./x-B5YnXwCz.js";
16
+ const Ze = {
16
17
  id: "ai-prompt-input",
17
18
  capabilities: ["edit_inline", "submit"],
18
19
  state: {
@@ -54,8 +55,8 @@ const Ae = {
54
55
  note: "Replace composer text."
55
56
  }
56
57
  ],
57
- invoke: (s, d) => {
58
- s.setValue(d.value);
58
+ invoke: (s, o) => {
59
+ s.setValue(o.value);
59
60
  }
60
61
  },
61
62
  clear: {
@@ -101,7 +102,7 @@ const Ae = {
101
102
  description: "Sourced from the id prop; addresses a specific composer instance."
102
103
  }
103
104
  }
104
- }, Ze = Oe(
105
+ }, qe = Re(
105
106
  [
106
107
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
107
108
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
@@ -120,58 +121,58 @@ const Ae = {
120
121
  },
121
122
  defaultVariants: { size: "md" }
122
123
  }
123
- ), qe = Fe(
124
+ ), Qe = Ce(
124
125
  ({
125
126
  commands: s = [],
126
- models: d,
127
- defaultModelId: T,
128
- modelId: se,
129
- onModelChange: ae,
127
+ models: o,
128
+ defaultModelId: E,
129
+ modelId: T,
130
+ onModelChange: ne,
130
131
  maxSize: h,
131
- accept: re,
132
- context: E,
132
+ accept: ie,
133
+ context: K,
133
134
  onContextDismiss: b,
134
135
  onSubmit: x,
135
136
  onAttach: y,
136
137
  onAttachmentRejected: I,
137
- minRows: K = 2,
138
- maxRows: D = 8,
139
- value: L,
140
- defaultValue: ne,
141
- size: ie = "md",
142
- disabled: U,
143
- className: oe,
144
- placeholder: de,
145
- onChange: F,
146
- onKeyDown: B,
147
- onCompositionStart: $,
148
- onCompositionEnd: C,
149
- onPaste: O,
138
+ minRows: F = 2,
139
+ maxRows: A = 8,
140
+ value: U,
141
+ defaultValue: oe,
142
+ size: de = "md",
143
+ disabled: G,
144
+ className: le,
145
+ placeholder: ce,
146
+ onChange: B,
147
+ onKeyDown: C,
148
+ onCompositionStart: O,
149
+ onCompositionEnd: $,
150
+ onPaste: D,
150
151
  id: R,
151
- ...le
152
- }, ce) => {
153
- var X;
154
- const { t: o } = ee("ui"), pe = Be(), w = H(null), N = H(!1), ue = H(null), me = v((e) => {
152
+ ...pe
153
+ }, ue) => {
154
+ var J;
155
+ const { t: d } = ae("ui"), me = Oe(), w = H(null), N = H(!1), fe = H(null), ve = v((e) => {
155
156
  w.current = e;
156
- }, []), [fe, m] = J({
157
- value: L === void 0 ? void 0 : String(L),
158
- defaultValue: String(ne ?? "")
159
- }), i = fe ?? "", [p, S] = W([]), [f, k] = W(!1), [ve, M] = W(""), [ge, he] = J({
160
- value: se,
161
- defaultValue: T ?? ((X = d == null ? void 0 : d[0]) == null ? void 0 : X.id) ?? "",
162
- onChange: ae
163
- }), j = ge ?? "", A = v(() => {
157
+ }, []), [ge, m] = te({
158
+ value: U === void 0 ? void 0 : String(U),
159
+ defaultValue: String(oe ?? "")
160
+ }), i = ge ?? "", [p, S] = L([]), [f, k] = L(!1), [he, M] = L(""), [be, xe] = te({
161
+ value: T,
162
+ defaultValue: E ?? ((J = o == null ? void 0 : o[0]) == null ? void 0 : J.id) ?? "",
163
+ onChange: ne
164
+ }), _ = be ?? "", Z = v(() => {
164
165
  const e = w.current;
165
166
  if (!e) return;
166
- const t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 24, r = parseFloat(t.paddingTop) || 0, c = parseFloat(t.paddingBottom) || 0, l = parseFloat(t.borderTopWidth) || 0, _ = parseFloat(t.borderBottomWidth) || 0, V = r + c + l + _, Ee = n * K + V, Y = n * D + V;
167
+ const t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 24, r = parseFloat(t.paddingTop) || 0, c = parseFloat(t.paddingBottom) || 0, l = parseFloat(t.borderTopWidth) || 0, j = parseFloat(t.borderBottomWidth) || 0, V = r + c + l + j, Fe = n * F + V, ee = n * A + V;
167
168
  e.style.height = "auto";
168
- const Ke = Math.max(Ee, Math.min(e.scrollHeight, Y));
169
- e.style.height = `${Ke}px`, e.style.overflowY = e.scrollHeight > Y ? "auto" : "hidden";
170
- }, [K, D]);
171
- Re(() => {
172
- A();
173
- }, [A, i]);
174
- const be = v((e, t) => {
169
+ const Be = Math.max(Fe, Math.min(e.scrollHeight, ee));
170
+ e.style.height = `${Be}px`, e.style.overflowY = e.scrollHeight > ee ? "auto" : "hidden";
171
+ }, [F, A]);
172
+ _e(() => {
173
+ Z();
174
+ }, [Z, i]);
175
+ const ye = v((e, t) => {
175
176
  const r = e.slice(0, t).lastIndexOf(`
176
177
  `) + 1, c = e.slice(r, t);
177
178
  if (c.startsWith("/")) {
@@ -182,16 +183,16 @@ const Ae = {
182
183
  }
183
184
  }
184
185
  k(!1), M("");
185
- }, []), xe = (e) => {
186
+ }, []), Ie = (e) => {
186
187
  if (m(e.target.value), N.current) return;
187
- F == null || F(e);
188
+ B == null || B(e);
188
189
  const t = e.target.selectionStart ?? e.target.value.length;
189
- be(e.target.value, t);
190
- }, ye = (e) => {
191
- N.current = !0, $ == null || $(e);
192
- }, Ie = (e) => {
193
- N.current = !1, C == null || C(e);
194
- }, we = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || N.current, P = v(() => {
190
+ ye(e.target.value, t);
191
+ }, we = (e) => {
192
+ N.current = !0, O == null || O(e);
193
+ }, Ne = (e) => {
194
+ N.current = !1, $ == null || $(e);
195
+ }, Se = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || N.current, P = v(() => {
195
196
  if (!i.trim() && p.length === 0) return;
196
197
  let t, n = i;
197
198
  const r = i.match(/^\/(\S+)\s?/);
@@ -199,11 +200,11 @@ const Ae = {
199
200
  text: n,
200
201
  command: t,
201
202
  attachments: p,
202
- modelId: j || void 0
203
+ modelId: _ || void 0
203
204
  }), m(""), S([]);
204
- }, [i, p, x, j, m]), Z = H(null);
205
- $e(ce, () => Z.current, []);
206
- const Ne = Ce(
205
+ }, [i, p, x, _, m]), q = H(null);
206
+ $e(ue, () => q.current, []);
207
+ const ke = De(
207
208
  () => ({
208
209
  getValue: () => i,
209
210
  isEmpty: () => !i.trim() && p.length === 0,
@@ -224,16 +225,16 @@ const Ae = {
224
225
  }),
225
226
  [i, p, m, P]
226
227
  );
227
- je(Ae, Ne, R);
228
- const Se = (e) => {
229
- if (B == null || B(e), !e.defaultPrevented && !we(e)) {
228
+ je(Ze, ke, R);
229
+ const Me = (e) => {
230
+ if (C == null || C(e), !e.defaultPrevented && !Se(e)) {
230
231
  if (f && e.key === "Escape") {
231
232
  e.preventDefault(), k(!1);
232
233
  return;
233
234
  }
234
235
  e.key === "Enter" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), P());
235
236
  }
236
- }, ke = (e) => {
237
+ }, Pe = (e) => {
237
238
  const t = w.current;
238
239
  if (!t) return;
239
240
  const n = t.selectionStart ?? i.length, c = i.slice(0, n).lastIndexOf(`
@@ -241,10 +242,10 @@ const Ae = {
241
242
  let l = n;
242
243
  for (; l < i.length && !/\s/.test(i[l]); )
243
244
  l += 1;
244
- const _ = i.slice(l), V = i.slice(0, c) + `/${e.id} ` + _;
245
+ const j = i.slice(l), V = i.slice(0, c) + `/${e.id} ` + j;
245
246
  m(V), k(!1), M(""), queueMicrotask(() => t.focus());
246
- }, Me = (e) => {
247
- if (O == null || O(e), e.defaultPrevented) return;
247
+ }, ze = (e) => {
248
+ if (D == null || D(e), e.defaultPrevented) return;
248
249
  const { clipboardData: t } = e;
249
250
  if (!t) return;
250
251
  const n = [];
@@ -255,15 +256,15 @@ const Ae = {
255
256
  l && n.push(l);
256
257
  }
257
258
  }
258
- n.length > 0 && (e.preventDefault(), q(n));
259
- }, q = v(
259
+ n.length > 0 && (e.preventDefault(), Q(n));
260
+ }, Q = v(
260
261
  (e) => {
261
262
  var n;
262
263
  const t = [];
263
264
  for (const r of e) {
264
265
  if (typeof h == "number" && r.size > h) {
265
266
  I == null || I(
266
- o("chat.attachment.rejected", { reason: "size" })
267
+ d("chat.attachment.rejected", { reason: "size" })
267
268
  );
268
269
  continue;
269
270
  }
@@ -274,36 +275,36 @@ const Ae = {
274
275
  }
275
276
  t.length > 0 && (S((r) => [...r, ...t]), y == null || y(t.map((r) => r.file)));
276
277
  },
277
- [h, y, I, o]
278
- ), { getRootProps: Pe, getInputProps: ze, isDragActive: Ve } = _e({
279
- onDrop: q,
278
+ [h, y, I, d]
279
+ ), { getRootProps: Ve, getInputProps: He, isDragActive: Ee } = Le({
280
+ onDrop: Q,
280
281
  maxSize: h,
281
- accept: re,
282
+ accept: ie,
282
283
  noClick: !0,
283
284
  noKeyboard: !0
284
- }), He = (e) => {
285
+ }), Te = (e) => {
285
286
  S((t) => t.filter((n) => n.id !== e));
286
- }, z = R ?? pe, G = `${z}-label`, Q = `${z}-slash-list`, Te = (d == null ? void 0 : d.map((e) => ({ value: e.id, label: e.label }))) ?? [];
287
+ }, z = R ?? me, X = `${z}-label`, Y = `${z}-slash-list`, Ke = (o == null ? void 0 : o.map((e) => ({ value: e.id, label: e.label }))) ?? [];
287
288
  return /* @__PURE__ */ u(
288
289
  "div",
289
290
  {
290
- ref: Z,
291
- ...Pe({
291
+ ref: q,
292
+ ...Ve({
292
293
  className: [
293
- Ze({ size: ie, className: oe }),
294
- Ve ? "ds:outline ds:outline-dashed ds:outline-[color:var(--primary)] ds:outline-offset-2 ds:bg-[color:var(--primary)]/5" : ""
294
+ qe({ size: de, className: le }),
295
+ Ee ? "ds:outline ds:outline-dashed ds:outline-[color:var(--primary)] ds:outline-offset-2 ds:bg-[color:var(--primary)]/5" : ""
295
296
  ].join(" ")
296
297
  }),
297
- "aria-label": o("chat.attachmentZone"),
298
+ "aria-label": d("chat.attachmentZone"),
298
299
  "data-component": "ai-prompt-input",
299
300
  "data-component-id": R,
300
301
  children: [
301
- /* @__PURE__ */ a("input", { "aria-label": o("chat.attachmentZone"), ...ze() }),
302
- E ? /* @__PURE__ */ a("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ a(
302
+ /* @__PURE__ */ a("input", { "aria-label": d("chat.attachmentZone"), ...He() }),
303
+ K ? /* @__PURE__ */ a("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ a(
303
304
  "button",
304
305
  {
305
306
  type: "button",
306
- "aria-label": o("chat.contextActive", { name: E }),
307
+ "aria-label": d("chat.contextActive", { name: K }),
307
308
  onClick: b,
308
309
  onKeyDown: (e) => {
309
310
  (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), b == null || b());
@@ -318,29 +319,29 @@ const Ae = {
318
319
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
319
320
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
320
321
  ].join(" "),
321
- children: o("chat.contextActive", { name: E })
322
+ children: d("chat.contextActive", { name: K })
322
323
  }
323
324
  ) }) : null,
324
- /* @__PURE__ */ a("label", { id: G, htmlFor: z, className: "ds:sr-only", children: o("chat.prompt") }),
325
+ /* @__PURE__ */ a("label", { id: X, htmlFor: z, className: "ds:sr-only", children: d("chat.prompt") }),
325
326
  /* @__PURE__ */ u("div", { className: "ds:relative", children: [
326
327
  /* @__PURE__ */ a(
327
328
  "textarea",
328
329
  {
329
- ref: me,
330
+ ref: ve,
330
331
  id: z,
331
- rows: K,
332
+ rows: F,
332
333
  value: i,
333
- disabled: U,
334
- placeholder: de ?? o("chat.input.placeholder"),
335
- "aria-labelledby": G,
334
+ disabled: G,
335
+ placeholder: ce ?? d("chat.input.placeholder"),
336
+ "aria-labelledby": X,
336
337
  role: f ? "combobox" : void 0,
337
- "aria-controls": f ? Q : void 0,
338
+ "aria-controls": f ? Y : void 0,
338
339
  "aria-expanded": f ? !0 : void 0,
339
- onChange: xe,
340
- onKeyDown: Se,
341
- onPaste: Me,
342
- onCompositionStart: ye,
343
- onCompositionEnd: Ie,
340
+ onChange: Ie,
341
+ onKeyDown: Me,
342
+ onPaste: ze,
343
+ onCompositionStart: we,
344
+ onCompositionEnd: Ne,
344
345
  className: [
345
346
  "ds:w-full ds:resize-none ds:bg-transparent ds:outline-none",
346
347
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
@@ -348,13 +349,13 @@ const Ae = {
348
349
  "ds:leading-[var(--line-height-base)]",
349
350
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
350
351
  ].join(" "),
351
- ...le
352
+ ...pe
352
353
  }
353
354
  ),
354
355
  f ? /* @__PURE__ */ a(
355
356
  "div",
356
357
  {
357
- ref: ue,
358
+ ref: fe,
358
359
  className: [
359
360
  "ds:absolute ds:start-[var(--spacing-md)] ds:top-full ds:z-50",
360
361
  "ds:mt-[var(--spacing-xs)]",
@@ -367,29 +368,29 @@ const Ae = {
367
368
  "ds:origin-top ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:zoom-in-95",
368
369
  "ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
369
370
  ].join(" "),
370
- id: Q,
371
- children: /* @__PURE__ */ u(g, { label: o("chat.slashMenu.label"), loop: !0, children: [
371
+ id: Y,
372
+ children: /* @__PURE__ */ u(g, { label: d("chat.slashMenu.label"), loop: !0, children: [
372
373
  /* @__PURE__ */ a(
373
374
  g.Input,
374
375
  {
375
- value: ve,
376
+ value: he,
376
377
  onValueChange: M,
377
378
  className: "ds:sr-only"
378
379
  }
379
380
  ),
380
381
  /* @__PURE__ */ u(g.List, { className: "ds:max-h-60 ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
381
- /* @__PURE__ */ a(g.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: o("chat.slashMenu.empty") }),
382
+ /* @__PURE__ */ a(g.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: d("chat.slashMenu.empty") }),
382
383
  s.map((e) => /* @__PURE__ */ u(
383
384
  g.Item,
384
385
  {
385
386
  value: e.id,
386
- onSelect: () => ke(e),
387
+ onSelect: () => Pe(e),
387
388
  className: [
388
389
  "ds:flex ds:flex-col ds:gap-[2px]",
389
390
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
390
391
  "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
391
392
  "type-body-sm ds:cursor-pointer",
392
- De.selected
393
+ Ae.selected
393
394
  ].join(" "),
394
395
  children: [
395
396
  /* @__PURE__ */ u("span", { className: "ds:font-medium", children: [
@@ -410,40 +411,40 @@ const Ae = {
410
411
  "div",
411
412
  {
412
413
  role: "group",
413
- "aria-label": o("chat.attachmentZone"),
414
+ "aria-label": d("chat.attachmentZone"),
414
415
  className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
415
416
  children: p.map((e) => /* @__PURE__ */ a(
416
- Qe,
417
+ Ye,
417
418
  {
418
419
  file: e.file,
419
- onRemove: () => He(e.id)
420
+ onRemove: () => Te(e.id)
420
421
  },
421
422
  e.id
422
423
  ))
423
424
  }
424
425
  ) : null,
425
426
  /* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
426
- d && d.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:me-auto ds:min-w-[140px]", children: /* @__PURE__ */ a(
427
+ o && o.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:me-auto ds:min-w-[140px]", children: /* @__PURE__ */ a(
427
428
  We,
428
429
  {
429
- "aria-label": o("chat.model.select"),
430
- options: Te,
431
- value: j || "",
430
+ "aria-label": d("chat.model.select"),
431
+ options: Ke,
432
+ value: _ || "",
432
433
  onValueChange: (e) => {
433
- he(e);
434
+ xe(e);
434
435
  },
435
436
  size: "sm"
436
437
  }
437
438
  ) }) : /* @__PURE__ */ a("div", { className: "ds:me-auto" }),
438
- /* @__PURE__ */ a("span", { className: "ds:sr-only", children: o("chat.input.sendHint") }),
439
+ /* @__PURE__ */ a("span", { className: "ds:sr-only", children: d("chat.input.sendHint") }),
439
440
  /* @__PURE__ */ a(
440
- te,
441
+ re,
441
442
  {
442
- icon: /* @__PURE__ */ a(Le, {}),
443
- "aria-label": o("chat.send"),
443
+ icon: /* @__PURE__ */ a(Ue, {}),
444
+ "aria-label": d("chat.send"),
444
445
  intent: "primary",
445
446
  size: "sm",
446
- disabled: U || !i.trim() && p.length === 0,
447
+ disabled: G || !i.trim() && p.length === 0,
447
448
  onClick: P,
448
449
  "aria-keyshortcuts": "Meta+Enter Control+Enter"
449
450
  }
@@ -454,15 +455,16 @@ const Ae = {
454
455
  );
455
456
  }
456
457
  );
457
- qe.displayName = "AIPromptInput";
458
- function Ge(s) {
459
- return s < 1024 ? `${s} B` : s < 1024 * 1024 ? `${(s / 1024).toFixed(1)} KB` : `${(s / (1024 * 1024)).toFixed(1)} MB`;
458
+ Qe.displayName = "AIPromptInput";
459
+ const se = { minimumFractionDigits: 1, maximumFractionDigits: 1 };
460
+ function Xe(s, o) {
461
+ return s < 1024 ? `${W(s, o, { useGrouping: !1 })} B` : s < 1024 * 1024 ? `${W(s / 1024, o, se)} KB` : `${W(s / (1024 * 1024), o, se)} MB`;
460
462
  }
461
- function Qe({
463
+ function Ye({
462
464
  file: s,
463
- onRemove: d
465
+ onRemove: o
464
466
  }) {
465
- const { t: T } = ee("ui");
467
+ const { t: E, i18n: T } = ae("ui");
466
468
  return /* @__PURE__ */ u(
467
469
  "span",
468
470
  {
@@ -478,15 +480,15 @@ function Qe({
478
480
  ].join(" "),
479
481
  children: [
480
482
  /* @__PURE__ */ a("span", { className: "ds:truncate ds:max-w-[16ch]", children: s.name }),
481
- /* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)] ds:tabular-nums", children: Ge(s.size) }),
483
+ /* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)] ds:tabular-nums", children: Xe(s.size, T.language) }),
482
484
  /* @__PURE__ */ a(
483
- te,
485
+ re,
484
486
  {
485
- icon: /* @__PURE__ */ a(Ue, {}),
486
- "aria-label": T("chat.attachment.remove", { name: s.name }),
487
+ icon: /* @__PURE__ */ a(Ge, {}),
488
+ "aria-label": E("chat.attachment.remove", { name: s.name }),
487
489
  intent: "ghost",
488
490
  size: "sm",
489
- onClick: d
491
+ onClick: o
490
492
  }
491
493
  )
492
494
  ]
@@ -494,7 +496,7 @@ function Qe({
494
496
  );
495
497
  }
496
498
  export {
497
- qe as A,
498
- Ae as a
499
+ Qe as A,
500
+ Ze as a
499
501
  };
500
- //# sourceMappingURL=ai-prompt-input-DSGSe4LH.js.map
502
+ //# sourceMappingURL=ai-prompt-input-DzgyoKyk.js.map