@alfadocs/ui-kit 0.72.2 → 0.73.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 (326) hide show
  1. package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
  2. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
  3. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DFm58UjY.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
  5. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
  6. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
  7. package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
  8. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
  9. package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
  10. package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
  11. package/dist/_chunks/arrow-up-right-C2v_MKsK.js +15 -0
  12. package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-CjAY0GAc.js} +3 -3
  13. package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
  14. package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-Bs6t6Zv1.js} +2 -2
  15. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
  16. package/dist/_chunks/{booking-B62CMY5k.js → booking-CWnZhZ5g.js} +8 -8
  17. package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
  18. package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
  19. package/dist/_chunks/camera-VSklPDCv.js +21 -0
  20. package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-CfIP3Vc1.js} +3 -3
  21. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-CRbS-G00.js} +3 -3
  22. package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
  23. package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
  24. package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
  25. package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
  26. package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
  27. package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
  28. package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
  29. package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
  30. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
  31. package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
  32. package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
  33. package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
  34. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
  35. package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
  36. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
  37. package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
  38. package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
  39. package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-BE6Jz4Ob.js} +198 -230
  40. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
  41. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
  42. package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
  43. package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
  44. package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
  45. package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
  46. package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
  47. package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
  48. package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
  49. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
  50. package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
  51. package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DCXJXKab.js} +5 -5
  52. package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-B2SXhRiN.js} +104 -111
  53. package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
  54. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
  55. package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
  56. package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
  57. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-C9Dfis4I.js} +6 -6
  58. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
  59. package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
  60. package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-CRQDCYgr.js} +4 -4
  61. package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
  62. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  63. package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
  64. package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
  65. package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-BePK27S-.js} +3 -3
  66. package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
  67. package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
  68. package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
  69. package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
  70. package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
  71. package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
  72. package/dist/_chunks/{link-cell-renderer-BCppbMec.js → link-cell-renderer-CLI7sBkX.js} +803 -778
  73. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-Cbfqc0_N.js} +3 -3
  74. package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
  75. package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-Dm6S-hun.js} +6 -6
  76. package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
  77. package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
  78. package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
  79. package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-B_8-Mebz.js} +3 -3
  80. package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
  81. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
  82. package/dist/_chunks/optical-prescription-BQ75_kf6.js +1260 -0
  83. package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-JkOI3Ijd.js} +6 -6
  84. package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
  85. package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-CQOLMH3E.js} +4 -4
  86. package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-B_mOe-ZT.js} +2 -2
  87. package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
  88. package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
  89. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
  90. package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
  91. package/dist/_chunks/{popover-uJ6BvEU3.js → popover-DGTKfLWh.js} +2 -2
  92. package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
  93. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-IsDVfqJX.js} +6 -6
  94. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
  95. package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
  96. package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
  97. package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
  98. package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
  99. package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-e488ooH8.js} +40 -57
  100. package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
  101. package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CgA2bYwi.js} +186 -195
  102. package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
  103. package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
  104. package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
  105. package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
  106. package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-CtU35PIX.js} +70 -67
  107. package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
  108. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
  109. package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
  110. package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
  111. package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
  112. package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
  113. package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
  114. package/dist/_chunks/subDays-DIKRViZm.js +8 -0
  115. package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
  116. package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
  117. package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-LCK5ZXvU.js} +5 -5
  118. package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
  119. package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
  120. package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
  121. package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
  122. package/dist/_chunks/{tooth-scheme-D_rso4uu.js → tooth-scheme-CX49GycY.js} +3 -3
  123. package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
  124. package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
  125. package/dist/_chunks/type-ggmfVs23.js +16 -0
  126. package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-3uL_tMCm.js} +2 -2
  127. package/dist/_chunks/upload-BfT2hzMg.js +16 -0
  128. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
  129. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
  130. package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
  131. package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
  132. package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
  133. package/dist/agent-catalog.json +845 -1034
  134. package/dist/agent-i18n/en.json +42 -69
  135. package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
  136. package/dist/components/agenda-tray/index.js +1 -1
  137. package/dist/components/ai-consent-banner/index.js +1 -1
  138. package/dist/components/ai-prompt-input/index.js +1 -1
  139. package/dist/components/anamnesis-card/index.js +1 -1
  140. package/dist/components/appointment-card/index.js +2 -2
  141. package/dist/components/appointment-timeline/index.js +1 -1
  142. package/dist/components/audio-recorder/index.js +1 -1
  143. package/dist/components/benefit-card/index.js +1 -1
  144. package/dist/components/bishop-score/index.js +1 -1
  145. package/dist/components/bmi-calculator/index.js +1 -1
  146. package/dist/components/booking/index.js +1 -1
  147. package/dist/components/button/button.d.ts +8 -1
  148. package/dist/components/button/index.js +2 -2
  149. package/dist/components/button-group/button-group.d.ts +16 -0
  150. package/dist/components/button-group/index.js +1 -1
  151. package/dist/components/care-plan-card/index.js +1 -1
  152. package/dist/components/care-plan-entry-card/index.js +1 -1
  153. package/dist/components/care-plan-header/index.js +1 -1
  154. package/dist/components/carousel/index.js +1 -1
  155. package/dist/components/chat-container/index.js +1 -1
  156. package/dist/components/chat-input/index.js +1 -1
  157. package/dist/components/chat-message/index.js +1 -1
  158. package/dist/components/connection-status/index.js +1 -1
  159. package/dist/components/contact-profile-card/index.js +1 -1
  160. package/dist/components/control-room-rail/index.js +1 -1
  161. package/dist/components/copy-field/index.js +1 -1
  162. package/dist/components/counter/counter.d.ts +1 -1
  163. package/dist/components/cycle-calculator/index.js +1 -1
  164. package/dist/components/data-table/data-table.d.ts +2 -8
  165. package/dist/components/data-table/index.js +2 -2
  166. package/dist/components/data-table/toolbar.d.ts +4 -10
  167. package/dist/components/date-picker/index.js +1 -1
  168. package/dist/components/date-range-picker/index.js +1 -1
  169. package/dist/components/date-time-picker/index.js +1 -1
  170. package/dist/components/description-list/index.js +1 -1
  171. package/dist/components/document-scanner/index.js +1 -1
  172. package/dist/components/due-date-calculator/index.js +2 -2
  173. package/dist/components/editor-overlay/index.js +1 -1
  174. package/dist/components/empty-state/index.js +1 -1
  175. package/dist/components/entity-summary/index.js +1 -1
  176. package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
  177. package/dist/components/face-scheme/face-scheme.d.ts +112 -2
  178. package/dist/components/face-scheme/index.d.ts +2 -2
  179. package/dist/components/face-scheme/index.js +25 -14
  180. package/dist/components/fetal-weight/index.js +1 -1
  181. package/dist/components/field-array/index.js +1 -1
  182. package/dist/components/file-upload/file-upload.d.ts +1 -0
  183. package/dist/components/file-upload/index.d.ts +1 -1
  184. package/dist/components/file-upload/index.js +4 -3
  185. package/dist/components/finished-terminal/index.js +1 -1
  186. package/dist/components/fiscal-code-input/index.js +1 -1
  187. package/dist/components/flag/flag.d.ts +1 -1
  188. package/dist/components/freemium-paywall/index.js +1 -1
  189. package/dist/components/gestational-age-calculator/index.js +1 -1
  190. package/dist/components/hcg-doubling/index.js +1 -1
  191. package/dist/components/header/index.js +1 -1
  192. package/dist/components/header-settings/index.js +1 -1
  193. package/dist/components/icon-button/index.js +1 -1
  194. package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
  195. package/dist/components/icon-button-group/index.js +1 -1
  196. package/dist/components/icon-picker/index.js +1 -1
  197. package/dist/components/image-cropper/index.js +1 -1
  198. package/dist/components/index.d.ts +0 -1
  199. package/dist/components/key-value-pair/index.js +1 -1
  200. package/dist/components/link/link.d.ts +1 -1
  201. package/dist/components/locale-picker/index.js +1 -1
  202. package/dist/components/map-view/index.js +1 -1
  203. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  204. package/dist/components/message-card/index.js +1 -1
  205. package/dist/components/message-tray/index.js +1 -1
  206. package/dist/components/notes-panel/index.js +1 -1
  207. package/dist/components/notification-card/index.js +1 -1
  208. package/dist/components/notification-tray/index.js +1 -1
  209. package/dist/components/optical-prescription/index.d.ts +4 -2
  210. package/dist/components/optical-prescription/index.js +29 -26
  211. package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
  212. package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
  213. package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
  214. package/dist/components/patient-details/index.js +1 -1
  215. package/dist/components/patient-search/index.js +1 -1
  216. package/dist/components/patient-summary-card/index.js +1 -1
  217. package/dist/components/patient-table/index.js +1 -1
  218. package/dist/components/payment-card/index.js +1 -1
  219. package/dist/components/periodontal-chart-card/index.js +1 -1
  220. package/dist/components/popover/index.js +1 -1
  221. package/dist/components/practice-results/index.js +1 -1
  222. package/dist/components/pregnancy-dating/index.js +1 -1
  223. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  224. package/dist/components/privacy-lock/index.js +1 -1
  225. package/dist/components/product-hub-tray/index.js +1 -1
  226. package/dist/components/public-header/index.js +1 -1
  227. package/dist/components/public-header/public-header.d.ts +1 -1
  228. package/dist/components/radiograph-panel/index.js +1 -1
  229. package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
  230. package/dist/components/reviews-panel/index.js +1 -1
  231. package/dist/components/rich-text-editor/index.js +1 -1
  232. package/dist/components/session-countdown/index.js +1 -1
  233. package/dist/components/sheet/index.js +1 -1
  234. package/dist/components/sidebar/index.js +1 -1
  235. package/dist/components/sign-document/index.js +1 -1
  236. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  237. package/dist/components/signature-capture/index.js +1 -1
  238. package/dist/components/signature-field/index.js +1 -1
  239. package/dist/components/signature-field/signature-field.d.ts +7 -0
  240. package/dist/components/skeleton-scheme/index.js +1194 -0
  241. package/dist/components/slot-grid/index.js +1 -1
  242. package/dist/components/streaming-text/index.js +1 -1
  243. package/dist/components/task-tray/index.js +1 -1
  244. package/dist/components/tasks-panel/index.js +1 -1
  245. package/dist/components/theme-toggle/index.js +1 -1
  246. package/dist/components/toast/index.js +1 -1
  247. package/dist/components/token-insert-menu/index.js +1 -1
  248. package/dist/components/tool-rail/index.js +1 -1
  249. package/dist/components/tooth-scheme/index.js +1 -1
  250. package/dist/components/transaction-chip/index.js +1 -1
  251. package/dist/components/unit-converter/index.js +1 -1
  252. package/dist/components/warning-stack/index.js +1 -1
  253. package/dist/components/workflow/index.js +1 -1
  254. package/dist/hooks/index.d.ts +2 -0
  255. package/dist/hooks/index.js +40 -35
  256. package/dist/hooks/use-priority-overflow.d.ts +63 -0
  257. package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
  258. package/dist/i18n/locales/ar.d.ts +170 -9
  259. package/dist/i18n/locales/ar.js +173 -12
  260. package/dist/i18n/locales/de.d.ts +170 -9
  261. package/dist/i18n/locales/de.js +173 -12
  262. package/dist/i18n/locales/el.d.ts +170 -9
  263. package/dist/i18n/locales/el.js +173 -12
  264. package/dist/i18n/locales/en.d.ts +170 -9
  265. package/dist/i18n/locales/en.js +173 -12
  266. package/dist/i18n/locales/es.d.ts +170 -9
  267. package/dist/i18n/locales/es.js +173 -12
  268. package/dist/i18n/locales/fr.d.ts +170 -9
  269. package/dist/i18n/locales/fr.js +173 -12
  270. package/dist/i18n/locales/hi.d.ts +170 -9
  271. package/dist/i18n/locales/hi.js +173 -12
  272. package/dist/i18n/locales/it.d.ts +170 -9
  273. package/dist/i18n/locales/it.js +173 -12
  274. package/dist/i18n/locales/ja.d.ts +170 -9
  275. package/dist/i18n/locales/ja.js +173 -12
  276. package/dist/i18n/locales/nl.d.ts +170 -9
  277. package/dist/i18n/locales/nl.js +173 -12
  278. package/dist/i18n/locales/pl.d.ts +170 -9
  279. package/dist/i18n/locales/pl.js +173 -12
  280. package/dist/i18n/locales/pt.d.ts +170 -9
  281. package/dist/i18n/locales/pt.js +173 -12
  282. package/dist/i18n/locales/ro.d.ts +170 -9
  283. package/dist/i18n/locales/ro.js +173 -12
  284. package/dist/i18n/locales/ru.d.ts +170 -9
  285. package/dist/i18n/locales/ru.js +173 -12
  286. package/dist/i18n/locales/sq.d.ts +170 -9
  287. package/dist/i18n/locales/sq.js +173 -12
  288. package/dist/i18n/locales/sv.d.ts +170 -9
  289. package/dist/i18n/locales/sv.js +173 -12
  290. package/dist/i18n/locales/tr.d.ts +170 -9
  291. package/dist/i18n/locales/tr.js +173 -12
  292. package/dist/i18n/locales/zh.d.ts +170 -9
  293. package/dist/i18n/locales/zh.js +173 -12
  294. package/dist/index.js +774 -761
  295. package/dist/locales/ar.json +173 -12
  296. package/dist/locales/de.json +173 -12
  297. package/dist/locales/el.json +173 -12
  298. package/dist/locales/en.json +173 -12
  299. package/dist/locales/es.json +173 -12
  300. package/dist/locales/fr.json +173 -12
  301. package/dist/locales/hi.json +173 -12
  302. package/dist/locales/it.json +173 -12
  303. package/dist/locales/ja.json +173 -12
  304. package/dist/locales/nl.json +173 -12
  305. package/dist/locales/pl.json +173 -12
  306. package/dist/locales/pt.json +173 -12
  307. package/dist/locales/ro.json +173 -12
  308. package/dist/locales/ru.json +173 -12
  309. package/dist/locales/sq.json +173 -12
  310. package/dist/locales/sv.json +173 -12
  311. package/dist/locales/tr.json +173 -12
  312. package/dist/locales/zh.json +173 -12
  313. package/dist/patterns/alia-assistant/index.js +1 -1
  314. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  315. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
  316. package/dist/tokens.css +2 -2
  317. package/package.json +5 -5
  318. package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
  319. package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
  320. package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
  321. package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
  322. package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
  323. package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
  324. package/dist/patterns/patient-shell/index.d.ts +0 -12
  325. package/dist/patterns/patient-shell/index.js +0 -5
  326. package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
@@ -6,7 +6,7 @@ import { F as D } from "./form-field-M5UpX65Z.js";
6
6
  import { N as E } from "./number-input-DjWzmlEY.js";
7
7
  import { C as N } from "./card-DPmk26CL.js";
8
8
  import { B as H } from "./badge-DCOqV9mI.js";
9
- import { I as S } from "./insert-result-C7xSDb8q.js";
9
+ import { I as S } from "./insert-result-D074GtHX.js";
10
10
  function h(l) {
11
11
  return typeof l == "number" && Number.isFinite(l) && l > 0 ? l / 10 : null;
12
12
  }
@@ -119,4 +119,4 @@ export {
119
119
  G as F,
120
120
  q as e
121
121
  };
122
- //# sourceMappingURL=fetal-weight-CVAH8sJ3.js.map
122
+ //# sourceMappingURL=fetal-weight-1F9N4IMx.js.map
@@ -2,8 +2,8 @@ import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
2
  import { useEffect as N, useRef as k, useMemo as C } from "react";
3
3
  import { c } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as F } from "react-i18next";
5
- import { B as I } from "./button-DD_0Xdmr.js";
6
- import { I as M } from "./icon-button-LqoiKcUN.js";
5
+ import { B as I } from "./button-CPGiR_bH.js";
6
+ import { I as M } from "./icon-button-C_kbcd7I.js";
7
7
  import { u as R } from "./registry-DvAUVLHh.js";
8
8
  import { X as j } from "./x-B5YnXwCz.js";
9
9
  import { P as B } from "./plus-DzMQ_c6b.js";
@@ -143,4 +143,4 @@ export {
143
143
  S as F,
144
144
  K as f
145
145
  };
146
- //# sourceMappingURL=field-array-CDzc3hTM.js.map
146
+ //# sourceMappingURL=field-array-DH3Mb1i8.js.map
@@ -2,16 +2,16 @@ import { useMemo as O, useCallback as D, useState as H, cloneElement as X } from
2
2
  import { u as J } from "./use-controllable-state-BiY4xTzM.js";
3
3
  import { jsxs as F, jsx as r, Fragment as Q } from "react/jsx-runtime";
4
4
  import { useTranslation as z } from "react-i18next";
5
- import { B as W } from "./button-DD_0Xdmr.js";
6
- import { I as $ } from "./icon-button-LqoiKcUN.js";
5
+ import { B as W } from "./button-CPGiR_bH.js";
6
+ import { I as $ } from "./icon-button-C_kbcd7I.js";
7
7
  import { C as j } from "./checkbox-BuZ1u__2.js";
8
- import { P as T } from "./popover-uJ6BvEU3.js";
8
+ import { P as T } from "./popover-DGTKfLWh.js";
9
9
  import { S as Y } from "./separator-CYU_bGFn.js";
10
10
  import { c as P } from "./createLucideIcon-DhHxpK9K.js";
11
11
  import { G as Z } from "./grip-vertical-onSb1JXO.js";
12
12
  import { B as U } from "./badge-DCOqV9mI.js";
13
13
  import { L as ee } from "./link-CPb_pZPr.js";
14
- import { T as te } from "./transaction-chip-B6iWoVmU.js";
14
+ import { T as te } from "./transaction-chip-DJCstquX.js";
15
15
  import { H as ne } from "./hash-CSQ9SChR.js";
16
16
  import { C as re } from "./calendar-days-BGWklvE-.js";
17
17
  import { U as se } from "./user-B12p7bVF.js";
@@ -412,4 +412,4 @@ export {
412
412
  _e as r,
413
413
  ze as u
414
414
  };
415
- //# sourceMappingURL=field-value-Dj3i52H2.js.map
415
+ //# sourceMappingURL=field-value-DCXJXKab.js.map
@@ -1,16 +1,17 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as xe, useId as ke, useState as re, useRef as O, useCallback as y, useMemo as T, useEffect as we } from "react";
2
+ import { forwardRef as xe, useId as we, useState as re, useRef as O, useCallback as y, useMemo as T, useEffect as ke } from "react";
3
3
  import { u as Ue } from "./index-BcMWc8W2.js";
4
- import { c as B } from "./index-D2ZczOXr.js";
4
+ import { c as _ } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as Ne } from "react-i18next";
6
6
  import { u as ze } from "./form-field-context-B3APVHKx.js";
7
7
  import { u as je } from "./registry-DvAUVLHh.js";
8
8
  import { C as le } from "./circle-alert-rGDZ73Wh.js";
9
- import { c as U } from "./createLucideIcon-DhHxpK9K.js";
9
+ import { c as F } from "./createLucideIcon-DhHxpK9K.js";
10
+ import { U as K } from "./upload-BfT2hzMg.js";
10
11
  import { X as ie } from "./x-B5YnXwCz.js";
11
- import { F as Me } from "./file-text-5yv6r2ls.js";
12
- import { F as Fe } from "./file-spreadsheet-DmwyfV4O.js";
13
- import { C as Ce } from "./circle-check-BN6rz4NV.js";
12
+ import { F as Fe } from "./file-text-5yv6r2ls.js";
13
+ import { F as Ce } from "./file-spreadsheet-DmwyfV4O.js";
14
+ import { C as Me } from "./circle-check-BN6rz4NV.js";
14
15
  /**
15
16
  * @license lucide-react v1.22.0 - ISC
16
17
  *
@@ -21,7 +22,7 @@ const Le = [
21
22
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
22
23
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
23
24
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
24
- ], Ae = U("cloud-upload", Le);
25
+ ], Ae = F("cloud-upload", Le);
25
26
  /**
26
27
  * @license lucide-react v1.22.0 - ISC
27
28
  *
@@ -41,7 +42,7 @@ const Re = [
41
42
  ["path", { d: "M8 18v-2", key: "qcmpov" }],
42
43
  ["path", { d: "M8 7V6", key: "1nbb54" }],
43
44
  ["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
44
- ], Ie = U("file-archive", Re);
45
+ ], Ie = F("file-archive", Re);
45
46
  /**
46
47
  * @license lucide-react v1.22.0 - ISC
47
48
  *
@@ -59,14 +60,14 @@ const De = [
59
60
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
60
61
  ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
61
62
  ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
62
- ], _e = U("file-image", De);
63
+ ], Be = F("file-image", De);
63
64
  /**
64
65
  * @license lucide-react v1.22.0 - ISC
65
66
  *
66
67
  * This source code is licensed under the ISC license.
67
68
  * See the LICENSE file in the root directory of this source tree.
68
69
  */
69
- const Be = [
70
+ const _e = [
70
71
  [
71
72
  "path",
72
73
  {
@@ -75,25 +76,14 @@ const Be = [
75
76
  }
76
77
  ],
77
78
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
78
- ], He = U("file", Be);
79
+ ], He = F("file", _e);
79
80
  /**
80
81
  * @license lucide-react v1.22.0 - ISC
81
82
  *
82
83
  * This source code is licensed under the ISC license.
83
84
  * See the LICENSE file in the root directory of this source tree.
84
85
  */
85
- const $e = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], qe = U("loader-circle", $e);
86
- /**
87
- * @license lucide-react v1.22.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */
92
- const Ee = [
93
- ["path", { d: "M12 3v12", key: "1x0j5s" }],
94
- ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
95
- ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
96
- ], K = U("upload", Ee), Ve = {
86
+ const Ee = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ve = F("loader-circle", Ee), $e = {
97
87
  id: "file-upload",
98
88
  capabilities: ["dismiss"],
99
89
  state: {
@@ -150,7 +140,7 @@ const Ee = [
150
140
  description: "Each tracked file emits its id as data-file-id."
151
141
  }
152
142
  }
153
- }, Oe = B(
143
+ }, qe = _(
154
144
  [
155
145
  "ds:relative ds:flex ds:flex-col ds:items-center ds:justify-center",
156
146
  "ds:min-h-48 ds:px-[var(--spacing-lg)] ds:py-[var(--spacing-xl)]",
@@ -183,9 +173,12 @@ const Ee = [
183
173
  isDisabled: !1
184
174
  }
185
175
  }
186
- ), ae = B(
176
+ ), ae = _(
187
177
  [
188
178
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
179
+ // Full-width on phone so the affordance stacks cleanly; natural width
180
+ // once the viewport can lay actions out in a row.
181
+ "ds:w-full ds:sm:w-auto",
189
182
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
190
183
  "ds:rounded-[var(--radius-md)] ds:border ds:border-primary/30 ds:bg-primary/5",
191
184
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:py-[var(--spacing-sm)]",
@@ -196,7 +189,7 @@ const Ee = [
196
189
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
197
190
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
198
191
  ].join(" ")
199
- ), Te = B(
192
+ ), Oe = _(
200
193
  [
201
194
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
202
195
  "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)] ds:bg-background",
@@ -217,7 +210,7 @@ const Ee = [
217
210
  status: "pending"
218
211
  }
219
212
  }
220
- ), oe = B(
213
+ ), oe = _(
221
214
  [
222
215
  "ds:inline-flex ds:items-center ds:justify-center",
223
216
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -229,17 +222,17 @@ const Ee = [
229
222
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
230
223
  ].join(" ")
231
224
  );
232
- function Ke() {
225
+ function Te() {
233
226
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
234
227
  }
235
- function Pe(o) {
228
+ function Ke(o) {
236
229
  return o.type.startsWith("image/");
237
230
  }
238
- function We(o) {
231
+ function Pe(o) {
239
232
  var c;
240
233
  const a = ((c = o.name.split(".").pop()) == null ? void 0 : c.toLowerCase()) ?? "";
241
234
  return ["pdf", "doc", "docx", "txt", "rtf"].includes(a) ? /* @__PURE__ */ r(
242
- Me,
235
+ Fe,
243
236
  {
244
237
  "aria-hidden": "true",
245
238
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
@@ -251,13 +244,13 @@ function We(o) {
251
244
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
252
245
  }
253
246
  ) : ["xls", "xlsx", "csv"].includes(a) ? /* @__PURE__ */ r(
254
- Fe,
247
+ Ce,
255
248
  {
256
249
  "aria-hidden": "true",
257
250
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
258
251
  }
259
252
  ) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(a) ? /* @__PURE__ */ r(
260
- _e,
253
+ Be,
261
254
  {
262
255
  "aria-hidden": "true",
263
256
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
@@ -270,11 +263,11 @@ function We(o) {
270
263
  }
271
264
  );
272
265
  }
273
- function Ge(o) {
266
+ function We(o) {
274
267
  switch (o) {
275
268
  case "uploading":
276
269
  return /* @__PURE__ */ r(
277
- qe,
270
+ Ve,
278
271
  {
279
272
  "aria-hidden": "true",
280
273
  className: "ds:size-4 ds:shrink-0 ds:text-primary ds:animate-spin"
@@ -282,7 +275,7 @@ function Ge(o) {
282
275
  );
283
276
  case "complete":
284
277
  return /* @__PURE__ */ r(
285
- Ce,
278
+ Me,
286
279
  {
287
280
  "aria-hidden": "true",
288
281
  className: "ds:size-4 ds:shrink-0 ds:text-[var(--success)]"
@@ -300,22 +293,22 @@ function Ge(o) {
300
293
  return null;
301
294
  }
302
295
  }
303
- const Xe = [
296
+ const Ge = [
304
297
  "inputs.fileUpload.units.bytes",
305
298
  "inputs.fileUpload.units.kilobytes",
306
299
  "inputs.fileUpload.units.megabytes",
307
300
  "inputs.fileUpload.units.gigabytes"
308
301
  ], de = ["B", "KB", "MB", "GB"];
309
- function _(o, a, c) {
302
+ function B(o, a, c) {
310
303
  let l = o, u = 0;
311
304
  for (; l >= 1024 && u < de.length - 1; )
312
305
  l /= 1024, u++;
313
306
  const g = new Intl.NumberFormat(a, {
314
307
  maximumFractionDigits: u === 0 ? 0 : 1
315
- }).format(l), N = c(Xe[u], de[u]);
316
- return `${g} ${N}`;
308
+ }).format(l), U = c(Ge[u], de[u]);
309
+ return `${g} ${U}`;
317
310
  }
318
- function Ye(o) {
311
+ function Xe(o) {
319
312
  switch (o) {
320
313
  case "file-too-large":
321
314
  return "file-too-large";
@@ -329,19 +322,19 @@ function Ye(o) {
329
322
  return "file-invalid-type";
330
323
  }
331
324
  }
332
- function Je(o) {
325
+ function Ye(o) {
333
326
  const a = o.split(".");
334
327
  return a.length > 1 ? `.${a.pop().toLowerCase()}` : "";
335
328
  }
336
329
  function ne(o, a) {
337
- const c = Je(o.name);
330
+ const c = Ye(o.name);
338
331
  for (const [l, u] of Object.entries(a)) {
339
- const g = l === "*/*" || l.endsWith("/*") && o.type.startsWith(l.replace("/*", "/")) || o.type === l, N = u.length === 0 || u.some((F) => F.toLowerCase() === c);
340
- if (g && N) return !0;
332
+ const g = l === "*/*" || l.endsWith("/*") && o.type.startsWith(l.replace("/*", "/")) || o.type === l, U = u.length === 0 || u.some((C) => C.toLowerCase() === c);
333
+ if (g && U) return !0;
341
334
  }
342
335
  return !1;
343
336
  }
344
- function Qe(o) {
337
+ function Je(o) {
345
338
  const a = [];
346
339
  for (const l of Object.values(o))
347
340
  for (const u of l)
@@ -352,7 +345,7 @@ function Qe(o) {
352
345
  l.endsWith("/*") ? c.push(l.replace("/*", "").split("/").pop() ?? l) : c.push(l.split("/").pop() ?? l);
353
346
  return c.join(", ");
354
347
  }
355
- const Ze = xe(
348
+ const Qe = xe(
356
349
  ({
357
350
  id: o,
358
351
  accept: a,
@@ -360,23 +353,23 @@ const Ze = xe(
360
353
  minSize: l,
361
354
  maxFiles: u = 1,
362
355
  multiple: g = !1,
363
- disabled: N,
364
- strictAccept: F = !1,
365
- onDrop: C,
356
+ disabled: U,
357
+ strictAccept: C = !1,
358
+ onDrop: M,
366
359
  onUpload: H,
367
360
  onRemove: L,
368
361
  onReject: A,
369
362
  variant: v = "both",
370
363
  showPreview: ce = !0,
371
364
  className: P
372
- }, z) => {
373
- const { t: i, i18n: k } = Ne(), h = ze(), ue = ke(), x = h.disabled || N, pe = h.invalid, W = h.id || ue, [R, b] = re([]), [G, fe] = re([]), I = O(/* @__PURE__ */ new Map()), $ = O(null), j = O(R);
374
- j.current = R;
375
- const w = y((e) => {
376
- $.current && ($.current.textContent = e);
365
+ }, N) => {
366
+ const { t: i, i18n: w } = Ne(), h = ze(), ue = we(), x = h.disabled || U, pe = h.invalid, W = h.id || ue, [R, b] = re([]), [G, fe] = re([]), I = O(/* @__PURE__ */ new Map()), E = O(null), z = O(R);
367
+ z.current = R;
368
+ const k = y((e) => {
369
+ E.current && (E.current.textContent = e);
377
370
  }, []), X = y(
378
- (e) => !F || !a ? !0 : ne(e, a),
379
- [F, a]
371
+ (e) => !C || !a ? !0 : ne(e, a),
372
+ [C, a]
380
373
  ), Y = y(
381
374
  async (e) => {
382
375
  if (!H) return;
@@ -385,7 +378,7 @@ const Ze = xe(
385
378
  (d) => d.map(
386
379
  (t) => t.id === e.id ? { ...t, status: "uploading", progress: 0 } : t
387
380
  )
388
- ), w(i("inputs.fileUpload.uploading", "Uploading…"));
381
+ ), k(i("inputs.fileUpload.uploading", "Uploading…"));
389
382
  try {
390
383
  await H(e.file, {
391
384
  signal: s.signal,
@@ -394,7 +387,7 @@ const Ze = xe(
394
387
  (t) => t.map(
395
388
  (n) => n.id === e.id ? { ...n, progress: d } : n
396
389
  )
397
- ), w(
390
+ ), k(
398
391
  i("inputs.fileUpload.progress", "{{percent}}% uploaded", {
399
392
  percent: d
400
393
  })
@@ -404,7 +397,7 @@ const Ze = xe(
404
397
  (d) => d.map(
405
398
  (t) => t.id === e.id ? { ...t, status: "complete", progress: 100 } : t
406
399
  )
407
- ), w(i("inputs.fileUpload.complete", "Upload complete"));
400
+ ), k(i("inputs.fileUpload.complete", "Upload complete"));
408
401
  } catch (d) {
409
402
  if (s.signal.aborted) {
410
403
  b((n) => n.filter((f) => f.id !== e.id));
@@ -420,59 +413,59 @@ const Ze = xe(
420
413
  I.current.delete(e.id);
421
414
  }
422
415
  },
423
- [H, w, i]
424
- ), q = y(
416
+ [H, k, i]
417
+ ), V = y(
425
418
  (e, s) => {
426
419
  const d = s.flatMap(
427
420
  (p) => p.errors.map((D) => ({
428
421
  file: p.file,
429
- reason: Ye(D.code)
422
+ reason: Xe(D.code)
430
423
  }))
431
424
  ), t = [], n = [];
432
425
  for (const p of e)
433
426
  X(p) ? n.push(p) : t.push({ file: p, reason: "file-invalid-type" });
434
427
  const f = [...d, ...t];
435
428
  fe(f), f.length > 0 && (A == null || A(f));
436
- const V = n.map((p) => ({
429
+ const q = n.map((p) => ({
437
430
  file: p,
438
- id: Ke(),
431
+ id: Te(),
439
432
  status: "pending",
440
433
  progress: 0,
441
- preview: Pe(p) ? URL.createObjectURL(p) : void 0
434
+ preview: Ke(p) ? URL.createObjectURL(p) : void 0
442
435
  }));
443
436
  b((p) => {
444
437
  if (!g && u === 1) {
445
438
  for (const D of p)
446
439
  D.preview && URL.revokeObjectURL(D.preview);
447
- return V;
440
+ return q;
448
441
  }
449
- return [...p, ...V];
450
- }), C == null || C(n, f), w(
442
+ return [...p, ...q];
443
+ }), M == null || M(n, f), k(
451
444
  i("inputs.fileUpload.filesSelected", "{{count}} file(s) selected", {
452
445
  count: n.length
453
446
  })
454
447
  );
455
- for (const p of V)
448
+ for (const p of q)
456
449
  Y(p);
457
450
  },
458
451
  [
459
452
  g,
460
453
  u,
461
- C,
454
+ M,
462
455
  A,
463
456
  X,
464
- w,
457
+ k,
465
458
  Y,
466
459
  i
467
460
  ]
468
- ), { getRootProps: me, getInputProps: J, isDragActive: M, open: Q } = Ue({
461
+ ), { getRootProps: me, getInputProps: J, isDragActive: j, open: Q } = Ue({
469
462
  accept: a,
470
463
  maxSize: c,
471
464
  minSize: l,
472
465
  maxFiles: g ? u : 1,
473
466
  multiple: g,
474
467
  disabled: x,
475
- onDrop: q,
468
+ onDrop: V,
476
469
  noClick: v === "button",
477
470
  noKeyboard: v === "button"
478
471
  }), ge = y((e) => {
@@ -481,32 +474,32 @@ const Ze = xe(
481
474
  const t = d.find((n) => n.id === e);
482
475
  return t != null && t.preview && URL.revokeObjectURL(t.preview), d.filter((n) => n.id !== e);
483
476
  });
484
- }, []), E = y(
477
+ }, []), $ = y(
485
478
  (e) => {
486
- const s = j.current.find((d) => d.id === e);
479
+ const s = z.current.find((d) => d.id === e);
487
480
  s != null && s.preview && URL.revokeObjectURL(s.preview), b((d) => d.filter((t) => t.id !== e)), s && (L == null || L(s));
488
481
  },
489
482
  [L]
490
483
  ), Z = y(() => {
491
- for (const e of j.current) {
484
+ for (const e of z.current) {
492
485
  const s = I.current.get(e.id);
493
486
  s == null || s.abort(), e.preview && URL.revokeObjectURL(e.preview);
494
487
  }
495
488
  b([]);
496
489
  }, []), ve = T(
497
490
  () => ({
498
- getFiles: () => j.current.map((e) => ({
491
+ getFiles: () => z.current.map((e) => ({
499
492
  id: e.id,
500
493
  name: e.file.name,
501
494
  size: e.file.size,
502
495
  status: e.status
503
496
  })),
504
- removeFile: (e) => E(e),
497
+ removeFile: (e) => $(e),
505
498
  clear: () => Z()
506
499
  }),
507
- [E, Z]
500
+ [$, Z]
508
501
  );
509
- je(Ve, ve, o);
502
+ je($e, ve, o);
510
503
  const S = y(
511
504
  (e) => {
512
505
  const s = [], d = [], t = g ? u : 1;
@@ -542,34 +535,34 @@ const Ze = xe(
542
535
  file: f.file,
543
536
  errors: [{ code: f.reason, message: f.reason }]
544
537
  }));
545
- q(d, n);
538
+ V(d, n);
546
539
  }
547
540
  },
548
- [x, q, S]
541
+ [x, V, S]
549
542
  );
550
- we(() => () => {
551
- for (const e of j.current)
543
+ ke(() => () => {
544
+ for (const e of z.current)
552
545
  e.preview && URL.revokeObjectURL(e.preview);
553
546
  }, []);
554
547
  const se = T(() => {
555
548
  const e = [];
556
- return a && e.push(Qe(a)), c && e.push(
549
+ return a && e.push(Je(a)), c && e.push(
557
550
  i("inputs.fileUpload.maxSizeHint", "Max {{size}}", {
558
- size: _(c, k.language, i)
551
+ size: B(c, w.language, i)
559
552
  })
560
553
  ), g && u > 1 && e.push(
561
554
  i("inputs.fileUpload.maxFilesHint", "Up to {{count}} files", {
562
555
  count: u
563
556
  })
564
557
  ), e;
565
- }, [a, c, g, u, i, k.language]), te = T(() => G.map((e) => {
558
+ }, [a, c, g, u, i, w.language]), te = T(() => G.map((e) => {
566
559
  switch (e.reason) {
567
560
  case "file-too-large":
568
561
  return i(
569
562
  "inputs.fileUpload.errors.fileTooLarge",
570
563
  "File exceeds {{maxSize}}",
571
564
  {
572
- maxSize: c ? _(c, k.language, i) : ""
565
+ maxSize: c ? B(c, w.language, i) : ""
573
566
  }
574
567
  );
575
568
  case "file-too-small":
@@ -577,7 +570,7 @@ const Ze = xe(
577
570
  "inputs.fileUpload.errors.fileTooSmall",
578
571
  "File is smaller than {{minSize}}",
579
572
  {
580
- minSize: l ? _(l, k.language, i) : ""
573
+ minSize: l ? B(l, w.language, i) : ""
581
574
  }
582
575
  );
583
576
  case "file-invalid-type":
@@ -594,11 +587,11 @@ const Ze = xe(
594
587
  }
595
588
  );
596
589
  }
597
- }), [G, i, c, l, u, k.language]), he = () => R.length === 0 ? null : /* @__PURE__ */ r("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: R.map((e) => /* @__PURE__ */ m(
590
+ }), [G, i, c, l, u, w.language]), he = () => R.length === 0 ? null : /* @__PURE__ */ r("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: R.map((e) => /* @__PURE__ */ m(
598
591
  "li",
599
592
  {
600
593
  "data-file-id": e.id,
601
- className: Te({ status: e.status }),
594
+ className: Oe({ status: e.status }),
602
595
  children: [
603
596
  ce && e.preview ? /* @__PURE__ */ r(
604
597
  "img",
@@ -608,14 +601,14 @@ const Ze = xe(
608
601
  "aria-hidden": "true",
609
602
  className: "ds:size-12 ds:shrink-0 ds:rounded-[var(--radius-md)] ds:object-cover ds:border ds:border-border"
610
603
  }
611
- ) : We(e.file),
604
+ ) : Pe(e.file),
612
605
  /* @__PURE__ */ m("div", { className: "ds:flex-1 ds:min-w-0", children: [
613
606
  /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
614
607
  /* @__PURE__ */ r("p", { className: "ds:truncate type-label ds:m-0", children: e.file.name }),
615
- Ge(e.status)
608
+ We(e.status)
616
609
  ] }),
617
610
  /* @__PURE__ */ m("p", { className: "type-meta ds:text-muted-foreground ds:m-0 ds:mt-0.5", children: [
618
- _(e.file.size, k.language, i),
611
+ B(e.file.size, w.language, i),
619
612
  e.status === "uploading" && /* @__PURE__ */ m("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-primary ds:font-medium", children: [
620
613
  e.progress,
621
614
  "%"
@@ -663,7 +656,7 @@ const Ze = xe(
663
656
  "button",
664
657
  {
665
658
  type: "button",
666
- onClick: () => E(e.id),
659
+ onClick: () => $(e.id),
667
660
  "aria-label": i("inputs.fileUpload.remove", "Remove file"),
668
661
  className: oe(),
669
662
  children: /* @__PURE__ */ r(ie, { "aria-hidden": "true", className: "ds:size-4" })
@@ -675,8 +668,8 @@ const Ze = xe(
675
668
  )) }), be = () => {
676
669
  if (v === "button") return null;
677
670
  const e = me({
678
- className: Oe({
679
- isDragActive: M,
671
+ className: qe({
672
+ isDragActive: j,
680
673
  hasError: pe ?? !1,
681
674
  isDisabled: x ?? !1,
682
675
  className: P
@@ -688,7 +681,7 @@ const Ze = xe(
688
681
  {
689
682
  ...e,
690
683
  ref: (t) => {
691
- typeof s == "function" ? s(t) : s && (s.current = t), typeof z == "function" ? z(t) : z && (z.current = t);
684
+ typeof s == "function" ? s(t) : s && (s.current = t), typeof N == "function" ? N(t) : N && (N.current = t);
692
685
  },
693
686
  onPaste: ee,
694
687
  id: W,
@@ -713,15 +706,15 @@ const Ze = xe(
713
706
  }
714
707
  ),
715
708
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
716
- /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: M ? /* @__PURE__ */ r(Ae, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ r(K, { "aria-hidden": "true", className: "ds:size-7" }) }),
709
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: j ? /* @__PURE__ */ r(Ae, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ r(K, { "aria-hidden": "true", className: "ds:size-7" }) }),
717
710
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)]", children: [
718
- /* @__PURE__ */ r("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: M ? i("inputs.fileUpload.dropActive", "Drop files here") : i(
711
+ /* @__PURE__ */ r("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: j ? i("inputs.fileUpload.dropActive", "Drop files here") : i(
719
712
  "inputs.fileUpload.dropHere",
720
713
  "Drop files here or click to browse"
721
714
  ) }),
722
- se.length > 0 && !M && /* @__PURE__ */ r("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: se.join(" · ") })
715
+ se.length > 0 && !j && /* @__PURE__ */ r("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: se.join(" · ") })
723
716
  ] }),
724
- v === "both" && !M && /* @__PURE__ */ m(
717
+ v === "both" && !j && /* @__PURE__ */ m(
725
718
  "button",
726
719
  {
727
720
  type: "button",
@@ -742,7 +735,7 @@ const Ze = xe(
742
735
  ]
743
736
  }
744
737
  );
745
- }, ye = () => v === "dropzone" ? null : v === "button" ? /* @__PURE__ */ m("div", { onPaste: ee, ref: z, children: [
738
+ }, ye = () => v === "dropzone" ? null : v === "button" ? /* @__PURE__ */ m("div", { onPaste: ee, ref: N, children: [
746
739
  /* @__PURE__ */ r(
747
740
  "input",
748
741
  {
@@ -800,7 +793,7 @@ const Ze = xe(
800
793
  /* @__PURE__ */ r(
801
794
  "span",
802
795
  {
803
- ref: $,
796
+ ref: E,
804
797
  role: "status",
805
798
  "aria-live": "polite",
806
799
  className: "ds:sr-only"
@@ -809,11 +802,11 @@ const Ze = xe(
809
802
  ] });
810
803
  }
811
804
  );
812
- Ze.displayName = "FileUpload";
805
+ Qe.displayName = "FileUpload";
813
806
  export {
814
- Ze as F,
815
- qe as L,
816
- K as U,
817
- Ve as f
807
+ Qe as F,
808
+ Ve as L,
809
+ ae as b,
810
+ $e as f
818
811
  };
819
- //# sourceMappingURL=file-upload-Kw1rdvFw.js.map
812
+ //# sourceMappingURL=file-upload-B2SXhRiN.js.map