@alfadocs/ui-kit 0.72.2 → 0.75.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 (398) hide show
  1. package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js +1546 -0
  2. package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
  3. package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
  4. package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
  5. package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
  6. package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
  7. package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
  8. package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
  9. package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
  10. package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
  11. package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
  12. package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
  13. package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
  14. package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
  15. package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
  16. package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
  17. package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
  18. package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
  19. package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
  20. package/dist/_chunks/camera-VSklPDCv.js +21 -0
  21. package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
  23. package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
  24. package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
  25. package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
  26. package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
  27. package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
  28. package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
  29. package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
  30. package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
  31. package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
  32. package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
  34. package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
  35. package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
  36. package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
  37. package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
  38. package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
  39. package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
  40. package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
  41. package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
  42. package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
  43. package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
  44. package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
  45. package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
  46. package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
  47. package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
  48. package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
  49. package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
  50. package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
  51. package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
  52. package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
  53. package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
  54. package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
  55. package/dist/_chunks/file-Cwe9VC1A.js +40 -0
  56. package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
  57. package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
  58. package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
  59. package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
  60. package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
  61. package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
  62. package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
  63. package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
  64. package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
  65. package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
  66. package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
  67. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  68. package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
  69. package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
  70. package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
  71. package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
  72. package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
  73. package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
  74. package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
  75. package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
  76. package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
  77. package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
  78. package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
  79. package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
  81. package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
  82. package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
  83. package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
  84. package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
  85. package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
  86. package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
  87. package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
  88. package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
  89. package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
  90. package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
  91. package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
  92. package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
  93. package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
  94. package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
  95. package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
  96. package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
  97. package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
  98. package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
  99. package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
  100. package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
  101. package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
  102. package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
  103. package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
  104. package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
  105. package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
  106. package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
  107. package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
  108. package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
  109. package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
  110. package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
  111. package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
  112. package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
  113. package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
  114. package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
  115. package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
  116. package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
  117. package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
  118. package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
  119. package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
  120. package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
  121. package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
  122. package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
  123. package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
  124. package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
  125. package/dist/_chunks/subDays-DIKRViZm.js +8 -0
  126. package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
  127. package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
  128. package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
  129. package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
  130. package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
  131. package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
  132. package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
  133. package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
  134. package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
  135. package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
  136. package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
  137. package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
  138. package/dist/_chunks/type-ggmfVs23.js +16 -0
  139. package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
  140. package/dist/_chunks/upload-BfT2hzMg.js +16 -0
  141. package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
  142. package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
  143. package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
  144. package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
  145. package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
  146. package/dist/agent-catalog.json +4081 -3201
  147. package/dist/agent-i18n/en.json +121 -69
  148. package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
  149. package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
  150. package/dist/components/agenda-tray/index.js +1 -1
  151. package/dist/components/ai-consent-banner/index.js +1 -1
  152. package/dist/components/ai-prompt-input/index.js +1 -1
  153. package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
  154. package/dist/components/anamnesis-card/index.js +1 -1
  155. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  156. package/dist/components/appointment-card/index.js +2 -2
  157. package/dist/components/appointment-timeline/index.js +1 -1
  158. package/dist/components/audio-recorder/index.js +1 -1
  159. package/dist/components/benefit-card/index.js +1 -1
  160. package/dist/components/bishop-score/index.js +1 -1
  161. package/dist/components/bmi-calculator/index.js +1 -1
  162. package/dist/components/booking/index.js +1 -1
  163. package/dist/components/button/button.d.ts +8 -1
  164. package/dist/components/button/index.js +2 -2
  165. package/dist/components/button-group/button-group.d.ts +16 -0
  166. package/dist/components/button-group/index.js +1 -1
  167. package/dist/components/card/card.d.ts +1 -1
  168. package/dist/components/care-plan-card/index.js +1 -1
  169. package/dist/components/care-plan-entry-card/index.js +1 -1
  170. package/dist/components/care-plan-header/index.js +1 -1
  171. package/dist/components/carousel/index.js +1 -1
  172. package/dist/components/chat-container/index.js +1 -1
  173. package/dist/components/chat-input/index.js +1 -1
  174. package/dist/components/chat-message/index.js +1 -1
  175. package/dist/components/clinical-note-card/clinical-note-card.d.ts +1 -1
  176. package/dist/components/connection-status/index.js +1 -1
  177. package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
  178. package/dist/components/contact-profile-card/index.js +1 -1
  179. package/dist/components/control-room-rail/index.js +1 -1
  180. package/dist/components/copy-field/index.js +1 -1
  181. package/dist/components/counter/counter.d.ts +1 -1
  182. package/dist/components/cycle-calculator/index.js +1 -1
  183. package/dist/components/data-table/data-table.d.ts +2 -8
  184. package/dist/components/data-table/index.js +35 -34
  185. package/dist/components/data-table/toolbar.d.ts +5 -11
  186. package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
  187. package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
  188. package/dist/components/data-table-tabs/index.d.ts +5 -0
  189. package/dist/components/data-table-tabs/index.js +8 -0
  190. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
  191. package/dist/components/date-picker/index.js +1 -1
  192. package/dist/components/date-range-picker/index.js +1 -1
  193. package/dist/components/date-time-picker/index.js +1 -1
  194. package/dist/components/description-list/index.js +1 -1
  195. package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
  196. package/dist/components/document-preview/document-preview.d.ts +41 -0
  197. package/dist/components/document-preview/index.d.ts +4 -0
  198. package/dist/components/document-preview/index.js +6 -0
  199. package/dist/components/document-scanner/index.js +1 -1
  200. package/dist/components/due-date-calculator/index.js +2 -2
  201. package/dist/components/editor-overlay/index.js +1 -1
  202. package/dist/components/empty-state/index.js +1 -1
  203. package/dist/components/entity-summary/index.js +1 -1
  204. package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
  205. package/dist/components/face-scheme/face-scheme.d.ts +112 -2
  206. package/dist/components/face-scheme/index.d.ts +2 -2
  207. package/dist/components/face-scheme/index.js +25 -14
  208. package/dist/components/fetal-weight/index.js +1 -1
  209. package/dist/components/field-array/index.js +1 -1
  210. package/dist/components/file-manager/dialogs.d.ts +48 -0
  211. package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
  212. package/dist/components/file-manager/file-manager.d.ts +82 -0
  213. package/dist/components/file-manager/folder-tree.d.ts +12 -0
  214. package/dist/components/file-manager/index.d.ts +5 -0
  215. package/dist/components/file-manager/index.js +6 -0
  216. package/dist/components/file-manager/list-view.d.ts +49 -0
  217. package/dist/components/file-manager/toolbar.d.ts +15 -0
  218. package/dist/components/file-manager/types.d.ts +167 -0
  219. package/dist/components/file-manager/utils.d.ts +34 -0
  220. package/dist/components/file-upload/file-upload.d.ts +1 -0
  221. package/dist/components/file-upload/index.d.ts +1 -1
  222. package/dist/components/file-upload/index.js +4 -3
  223. package/dist/components/finished-terminal/index.js +1 -1
  224. package/dist/components/fiscal-code-input/index.js +1 -1
  225. package/dist/components/flag/flag.d.ts +1 -1
  226. package/dist/components/freemium-paywall/index.js +1 -1
  227. package/dist/components/gestational-age-calculator/index.js +1 -1
  228. package/dist/components/hcg-doubling/index.js +1 -1
  229. package/dist/components/header/index.js +1 -1
  230. package/dist/components/header-settings/index.js +1 -1
  231. package/dist/components/icon-button/index.js +1 -1
  232. package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
  233. package/dist/components/icon-button-group/index.js +1 -1
  234. package/dist/components/icon-picker/index.js +1 -1
  235. package/dist/components/image-cropper/index.js +1 -1
  236. package/dist/components/index.d.ts +7 -1
  237. package/dist/components/key-value-pair/index.js +1 -1
  238. package/dist/components/link/link.d.ts +1 -1
  239. package/dist/components/locale-picker/index.js +1 -1
  240. package/dist/components/map-view/index.js +1 -1
  241. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  242. package/dist/components/message-card/index.js +1 -1
  243. package/dist/components/message-card/message-card.d.ts +1 -1
  244. package/dist/components/message-tray/index.js +1 -1
  245. package/dist/components/muscle-scheme/index.js +1 -1
  246. package/dist/components/notes-panel/index.js +1 -1
  247. package/dist/components/notification-card/index.js +1 -1
  248. package/dist/components/notification-card/notification-card.d.ts +1 -1
  249. package/dist/components/notification-tray/index.js +1 -1
  250. package/dist/components/operator-hero/operator-hero.d.ts +1 -1
  251. package/dist/components/optical-prescription/index.d.ts +4 -2
  252. package/dist/components/optical-prescription/index.js +29 -26
  253. package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
  254. package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
  255. package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
  256. package/dist/components/patient-details/index.js +1 -1
  257. package/dist/components/patient-search/index.js +1 -1
  258. package/dist/components/patient-summary-card/index.js +1 -1
  259. package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
  260. package/dist/components/patient-table/index.js +1 -1
  261. package/dist/components/payment-card/index.js +1 -1
  262. package/dist/components/payment-card/payment-card.d.ts +1 -1
  263. package/dist/components/payment-card/payment-request-card.d.ts +1 -1
  264. package/dist/components/periodontal-chart/index.d.ts +6 -0
  265. package/dist/components/periodontal-chart/index.js +22 -0
  266. package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
  267. package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
  268. package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
  269. package/dist/components/periodontal-chart-card/index.js +1 -1
  270. package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
  271. package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
  272. package/dist/components/periodontal-diagnosis/index.js +13 -0
  273. package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
  274. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
  275. package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
  276. package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
  277. package/dist/components/periodontal-risk-chart/index.js +9 -0
  278. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
  279. package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
  280. package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
  281. package/dist/components/popover/index.js +1 -1
  282. package/dist/components/popover/popover.d.ts +1 -0
  283. package/dist/components/practice-results/index.js +1 -1
  284. package/dist/components/pregnancy-dating/index.js +1 -1
  285. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  286. package/dist/components/privacy-lock/index.js +1 -1
  287. package/dist/components/product-hub-tray/index.js +1 -1
  288. package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
  289. package/dist/components/public-header/index.js +1 -1
  290. package/dist/components/public-header/public-header.d.ts +1 -1
  291. package/dist/components/radiograph-panel/index.js +1 -1
  292. package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
  293. package/dist/components/reviews-panel/index.js +1 -1
  294. package/dist/components/rich-text-editor/index.js +1 -1
  295. package/dist/components/select/index.js +1 -1
  296. package/dist/components/session-countdown/index.js +1 -1
  297. package/dist/components/sheet/index.js +1 -1
  298. package/dist/components/sidebar/index.js +1 -1
  299. package/dist/components/sidebar/sidebar.d.ts +9 -0
  300. package/dist/components/sign-document/index.js +1 -1
  301. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  302. package/dist/components/signature-capture/index.js +1 -1
  303. package/dist/components/signature-field/index.js +1 -1
  304. package/dist/components/signature-field/signature-field.d.ts +7 -0
  305. package/dist/components/skeleton-scheme/index.js +1186 -0
  306. package/dist/components/slot-grid/index.js +1 -1
  307. package/dist/components/stat/stat.d.ts +1 -1
  308. package/dist/components/streaming-text/index.js +1 -1
  309. package/dist/components/tabs/index.js +1 -1
  310. package/dist/components/task-tray/index.js +1 -1
  311. package/dist/components/tasks-panel/index.js +1 -1
  312. package/dist/components/theme-toggle/index.js +1 -1
  313. package/dist/components/toast/index.js +1 -1
  314. package/dist/components/token-insert-menu/index.js +1 -1
  315. package/dist/components/tool-rail/index.js +1 -1
  316. package/dist/components/tooth-scheme/index.js +29 -28
  317. package/dist/components/transaction-chip/index.js +1 -1
  318. package/dist/components/unit-converter/index.js +1 -1
  319. package/dist/components/warning-stack/index.js +1 -1
  320. package/dist/components/workflow/index.js +1 -1
  321. package/dist/hooks/index.d.ts +2 -0
  322. package/dist/hooks/index.js +40 -35
  323. package/dist/hooks/use-priority-overflow.d.ts +63 -0
  324. package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
  325. package/dist/i18n/locales/ar.d.ts +490 -9
  326. package/dist/i18n/locales/ar.js +493 -12
  327. package/dist/i18n/locales/de.d.ts +490 -9
  328. package/dist/i18n/locales/de.js +493 -12
  329. package/dist/i18n/locales/el.d.ts +490 -9
  330. package/dist/i18n/locales/el.js +493 -12
  331. package/dist/i18n/locales/en.d.ts +490 -9
  332. package/dist/i18n/locales/en.js +493 -12
  333. package/dist/i18n/locales/es.d.ts +490 -9
  334. package/dist/i18n/locales/es.js +493 -12
  335. package/dist/i18n/locales/fr.d.ts +490 -9
  336. package/dist/i18n/locales/fr.js +493 -12
  337. package/dist/i18n/locales/hi.d.ts +490 -9
  338. package/dist/i18n/locales/hi.js +493 -12
  339. package/dist/i18n/locales/it.d.ts +490 -9
  340. package/dist/i18n/locales/it.js +493 -12
  341. package/dist/i18n/locales/ja.d.ts +490 -9
  342. package/dist/i18n/locales/ja.js +493 -12
  343. package/dist/i18n/locales/nl.d.ts +490 -9
  344. package/dist/i18n/locales/nl.js +493 -12
  345. package/dist/i18n/locales/pl.d.ts +490 -9
  346. package/dist/i18n/locales/pl.js +493 -12
  347. package/dist/i18n/locales/pt.d.ts +490 -9
  348. package/dist/i18n/locales/pt.js +493 -12
  349. package/dist/i18n/locales/ro.d.ts +490 -9
  350. package/dist/i18n/locales/ro.js +493 -12
  351. package/dist/i18n/locales/ru.d.ts +490 -9
  352. package/dist/i18n/locales/ru.js +493 -12
  353. package/dist/i18n/locales/sq.d.ts +490 -9
  354. package/dist/i18n/locales/sq.js +493 -12
  355. package/dist/i18n/locales/sv.d.ts +490 -9
  356. package/dist/i18n/locales/sv.js +493 -12
  357. package/dist/i18n/locales/tr.d.ts +490 -9
  358. package/dist/i18n/locales/tr.js +493 -12
  359. package/dist/i18n/locales/zh.d.ts +490 -9
  360. package/dist/i18n/locales/zh.js +493 -12
  361. package/dist/index.js +872 -809
  362. package/dist/locales/ar.json +493 -12
  363. package/dist/locales/de.json +493 -12
  364. package/dist/locales/el.json +493 -12
  365. package/dist/locales/en.json +493 -12
  366. package/dist/locales/es.json +493 -12
  367. package/dist/locales/fr.json +493 -12
  368. package/dist/locales/hi.json +493 -12
  369. package/dist/locales/it.json +493 -12
  370. package/dist/locales/ja.json +493 -12
  371. package/dist/locales/nl.json +493 -12
  372. package/dist/locales/pl.json +493 -12
  373. package/dist/locales/pt.json +493 -12
  374. package/dist/locales/ro.json +493 -12
  375. package/dist/locales/ru.json +493 -12
  376. package/dist/locales/sq.json +493 -12
  377. package/dist/locales/sv.json +493 -12
  378. package/dist/locales/tr.json +493 -12
  379. package/dist/locales/zh.json +493 -12
  380. package/dist/patterns/alia-assistant/index.js +1 -1
  381. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  382. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
  383. package/dist/patterns/signature-request/index.d.ts +3 -0
  384. package/dist/patterns/signature-request/index.js +5 -0
  385. package/dist/patterns/signature-request/signature-request.d.ts +81 -0
  386. package/dist/tokens.css +2 -2
  387. package/package.json +32 -4
  388. package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
  389. package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
  390. package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
  391. package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
  392. package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
  393. package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
  394. package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
  395. package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
  396. package/dist/patterns/patient-shell/index.d.ts +0 -12
  397. package/dist/patterns/patient-shell/index.js +0 -5
  398. package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
@@ -1,4 +1,5 @@
1
- import { type FaceAffine, type FaceChart, type FaceFindingType, type FaceRegistration, type FaceViewId, type Point } from './face-scheme-data';
1
+ import { type MarkerShape, type MarkerTone } from '../annotation-marker';
2
+ import { type FaceAffine, type FaceAnnotation, type FaceAnnotationInput, type FaceAnnotationKind, type FaceAnnotations, type FaceAnnotationTool, type FaceChart, type FaceFindingType, type FaceRegistration, type FaceViewId, type Point } from './face-scheme-data';
2
3
  export type FaceDetectStatus = 'idle' | 'loading' | 'detecting' | 'done' | 'no-face' | 'error';
3
4
  export interface FaceDetectOptions {
4
5
  /** FRONT view (MediaPipe): base URL for the wasm fileset (defaults to the jsDelivr CDN). */
@@ -37,8 +38,12 @@ export interface FaceSchemeProps {
37
38
  defaultView?: FaceViewId;
38
39
  /** Fired when the view switcher changes the active view. */
39
40
  onViewChange?: (view: FaceViewId) => void;
40
- /** Show the built-in radio view switcher (default `true`). */
41
+ /** Show the built-in view switcher tabs (default `true`). */
41
42
  showViewSwitcher?: boolean;
43
+ /** Uncontrolled initial layout — `'all'` opens in the three-up view (every
44
+ * face at once, focused view interactive). Default `'single'`. Only takes
45
+ * effect with the view switcher shown, which owns the layout buttons. */
46
+ defaultLayout?: 'single' | 'all';
42
47
  /** `'interactive'` enables zone selection, finding edits and registration; `'display'` is read-only. */
43
48
  mode?: 'interactive' | 'display';
44
49
  /** Controlled findings — `Record<zoneId, FaceFinding[]>`. */
@@ -51,6 +56,68 @@ export interface FaceSchemeProps {
51
56
  onSelectZone?: (zoneId: string) => void;
52
57
  /** The finding type a zone-click applies in interactive mode (toggles it). */
53
58
  activeFinding?: FaceFindingType;
59
+ /**
60
+ * `'multi'` turns zone activation (click / Enter / Space) into selection
61
+ * toggling — one diagnosis can then be applied to every selected zone at
62
+ * once from the panel's Zones section, in a single `onChange` commit.
63
+ * `activeFinding` no longer stamps in this mode (it only pre-arms the
64
+ * section); the selection survives view switches. Default `'off'`.
65
+ */
66
+ zoneSelect?: 'off' | 'multi';
67
+ /** Controlled selected zone ids (with `zoneSelect="multi"`). */
68
+ selectedZones?: string[];
69
+ /** Uncontrolled initial selected zone ids. */
70
+ defaultSelectedZones?: string[];
71
+ /** Fired when the zone selection changes. */
72
+ onSelectedZonesChange?: (ids: string[]) => void;
73
+ /**
74
+ * Controlled per-view annotations — freehand marks (point-anywhere markers,
75
+ * pen / highlighter ink, arrows / lines / boxes / ellipses, text callouts)
76
+ * drawn in the photo's own coordinate space. Distinct from the zone-keyed
77
+ * `value` findings, and they do NOT ride the registration transform. PHI: a
78
+ * text annotation's `text` is rendered only — never logged, persisted,
79
+ * transmitted, or exposed via the agent snapshot.
80
+ */
81
+ annotations?: FaceAnnotations;
82
+ /** Uncontrolled initial annotations. */
83
+ defaultAnnotations?: FaceAnnotations;
84
+ /** Fired whenever the annotations change. */
85
+ onAnnotationsChange?: (next: FaceAnnotations) => void;
86
+ /**
87
+ * Fired when the annotation selection changes (`null` = cleared). Selection
88
+ * is pointer-mode-scoped: it clears on tool or view change, and a freshly
89
+ * committed mark auto-selects so its panel affordances target it at once.
90
+ */
91
+ onAnnotationSelect?: (id: string | null) => void;
92
+ /**
93
+ * Show the built-in Draw section (tool select, colour, marker shape, undo,
94
+ * clear) inside the edit panel. Requires `mode="interactive"`. Default
95
+ * `true` — pass `false` to opt a surface out of the drawing tools.
96
+ */
97
+ showAnnotationToolbar?: boolean;
98
+ /**
99
+ * Opt into figure zoom + pan: mouse-wheel / panel-button zoom on the focused
100
+ * figure, drag-pan from empty space while zoomed, plus a Zoom row in the edit
101
+ * panel. Requires `mode="interactive"`. Default `false` (MuscleScheme parity).
102
+ */
103
+ zoomable?: boolean;
104
+ /**
105
+ * Uncontrolled initial open state of the edit panel (Zones / Draw / Fit
106
+ * sections). Default `true`: the panel is visible everywhere; the control-bar
107
+ * toggle only collapses it.
108
+ */
109
+ defaultPanelOpen?: boolean;
110
+ /** Controlled active drawing tool — `null` = none (pointer falls through to
111
+ * zone selection / registration). */
112
+ activeTool?: FaceAnnotationTool | null;
113
+ /** Uncontrolled initial tool (default `null`). */
114
+ defaultTool?: FaceAnnotationTool | null;
115
+ /** Fired when the active tool changes (built-in toolbar or handle). */
116
+ onToolChange?: (tool: FaceAnnotationTool | null) => void;
117
+ /** Initial marker shape for the marker tool (default `'circle'`). */
118
+ defaultAnnotationShape?: MarkerShape;
119
+ /** Initial annotation tone (default `'accent'`). */
120
+ defaultAnnotationColor?: MarkerTone;
54
121
  /** Controlled per-view registration affine. */
55
122
  registration?: FaceRegistration;
56
123
  /** Uncontrolled initial registration. */
@@ -137,6 +204,49 @@ export interface FaceSchemeHandle {
137
204
  getView: () => FaceViewId;
138
205
  /** Switch the active view. */
139
206
  setView: (view: FaceViewId) => void;
207
+ /** Read the current zoom factor (1 = base window). */
208
+ getZoom: () => number;
209
+ /** Set the zoom factor (clamped to 1–8), anchored on the window centre. */
210
+ setZoom: (factor: number) => void;
211
+ /** Reset zoom and pan to the base window. */
212
+ resetZoom: () => void;
213
+ /** Read the active-view annotations. */
214
+ getAnnotations: () => FaceAnnotation[];
215
+ /** Add an annotation to the active view; returns its (generated) id. */
216
+ addAnnotation: (annotation: FaceAnnotationInput) => string;
217
+ /** Remove an annotation from the active view by id. */
218
+ removeAnnotation: (id: string) => void;
219
+ /** Remove the most-recently-added annotation on the active view. */
220
+ undoAnnotation: () => void;
221
+ /** Clear every annotation from the active view. */
222
+ clearAnnotations: () => void;
223
+ /** Read the active drawing tool (`null` = none). */
224
+ getTool: () => FaceAnnotationTool | null;
225
+ /** Set the active drawing tool (`null` = none). */
226
+ setTool: (tool: FaceAnnotationTool | null) => void;
227
+ /** Read the selected annotation (id + kind), or `null` when none. */
228
+ getSelectedAnnotation: () => {
229
+ id: string;
230
+ kind: FaceAnnotationKind;
231
+ } | null;
232
+ /** Select an active-view annotation by id (`null` clears; unknown ids no-op). */
233
+ selectAnnotation: (id: string | null) => void;
234
+ /** Link / unlink an active-view annotation to a zone (`null` = no zone). */
235
+ setAnnotationZone: (id: string, zoneId: string | null) => void;
236
+ /** Read the selected zone ids (`zoneSelect="multi"`). */
237
+ getSelectedZones: () => string[];
238
+ /** Replace the zone selection (any view's zone ids). */
239
+ setSelectedZones: (ids: string[]) => void;
240
+ /** Clear the zone selection. */
241
+ clearZoneSelection: () => void;
242
+ /** Add a finding to every selected zone in ONE chart commit; the optional
243
+ * note lands only on zones the finding is newly added to. */
244
+ applyFindingToSelection: (type: FaceFindingType, note?: string) => void;
245
+ /** Remove a finding type from every selected zone in ONE chart commit. */
246
+ removeFindingFromSelection: (type: FaceFindingType) => void;
247
+ /** Selection-independent bulk write — add a finding to each given zone in
248
+ * ONE chart commit (the agent `set_finding_bulk` path). */
249
+ setFindingBulk: (ids: string[], type: FaceFindingType, note?: string) => void;
140
250
  }
141
251
  export type FaceCaptureState = 'idle' | 'requesting' | 'streaming' | 'error';
142
252
  export type FaceCaptureError = 'permission-denied' | 'no-camera' | 'not-readable' | 'insecure-context' | 'capture-failed';
@@ -1,6 +1,6 @@
1
1
  export * from './face-scheme';
2
- export { FACE_VIEWS, FACE_VIEW_IDS, FACE_FINDING_TYPES, FACE_FINDING_MARKER, IDENTITY_AFFINE, affineToString, applyAffine, composeAffine, decomposeAffine, solveAffine, } from './face-scheme-data';
3
- export type { FaceViewId, FaceSide, FaceZone, FaceLandmark, FaceView, FaceFinding, FaceFindingType, FaceChart, FaceAffine, FaceRegistration, AffineParts, Point, } from './face-scheme-data';
2
+ export { FACE_VIEWS, FACE_VIEW_IDS, FACE_FINDING_TYPES, FACE_FINDING_MARKER, FACE_ANNOTATION_TOOLS, ANNOTATION_TOOL_KIND, isShapeTool, isInkTool, isPointTool, inkPath, shapePath, arrowHeadPath, annotationAnchor, annotationBBox, IDENTITY_AFFINE, affineToString, applyAffine, invertAffine, composeAffine, decomposeAffine, solveAffine, } from './face-scheme-data';
3
+ export type { FaceViewId, FaceSide, FaceZone, FaceLandmark, FaceView, FaceFinding, FaceFindingType, FaceChart, FaceAnnotationTool, FaceAnnotationKind, FaceAnnotation, FaceAnnotationInput, FaceAnnotations, MarkerAnnotation, InkAnnotation, ShapeAnnotation, TextAnnotation, FaceAffine, FaceRegistration, AffineParts, Point, } from './face-scheme-data';
4
4
  export { detectFaceLandmarks } from './detect-face-landmarks';
5
5
  export type { DetectFaceLandmarksOptions } from './detect-face-landmarks';
6
6
  export { faceSchemeAgent } from './face-scheme.agent';
@@ -1,17 +1,28 @@
1
- import { F as s, a as f, b as A, c as F, d as I, I as E, e as c, f as n, g as o, h as _, i, j as m, s as N } from "../../_chunks/face-scheme-BT9_KdL0.js";
1
+ import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-C0rk21gg.js";
2
2
  export {
3
- s as FACE_FINDING_MARKER,
4
- f as FACE_FINDING_TYPES,
5
- A as FACE_VIEWS,
6
- F as FACE_VIEW_IDS,
7
- I as FaceScheme,
8
- E as IDENTITY_AFFINE,
9
- c as affineToString,
10
- n as applyAffine,
11
- o as composeAffine,
12
- _ as decomposeAffine,
13
- i as detectFaceLandmarks,
14
- m as faceSchemeAgent,
15
- N as solveAffine
3
+ e as ANNOTATION_TOOL_KIND,
4
+ o as FACE_ANNOTATION_TOOLS,
5
+ n as FACE_FINDING_MARKER,
6
+ A as FACE_FINDING_TYPES,
7
+ i as FACE_VIEWS,
8
+ f as FACE_VIEW_IDS,
9
+ t as FaceScheme,
10
+ I as IDENTITY_AFFINE,
11
+ N as affineToString,
12
+ T as annotationAnchor,
13
+ F as annotationBBox,
14
+ _ as applyAffine,
15
+ E as arrowHeadPath,
16
+ c as composeAffine,
17
+ h as decomposeAffine,
18
+ r as detectFaceLandmarks,
19
+ p as faceSchemeAgent,
20
+ O as inkPath,
21
+ S as invertAffine,
22
+ m as isInkTool,
23
+ l as isPointTool,
24
+ d as isShapeTool,
25
+ C as shapePath,
26
+ D as solveAffine
16
27
  };
17
28
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { F as a, e as i } from "../../_chunks/fetal-weight-CVAH8sJ3.js";
1
+ import { F as a, e as i } from "../../_chunks/fetal-weight-1F9N4IMx.js";
2
2
  export {
3
3
  a as FetalWeight,
4
4
  i as estimateFetalWeight
@@ -1,4 +1,4 @@
1
- import { F as e, f } from "../../_chunks/field-array-CDzc3hTM.js";
1
+ import { F as e, f } from "../../_chunks/field-array-DH3Mb1i8.js";
2
2
  export {
3
3
  e as FieldArray,
4
4
  f as fieldArrayAgent
@@ -0,0 +1,48 @@
1
+ import type { FileManagerItem, FileManagerUploadConfig } from './types';
2
+ export interface CreateFolderDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onSubmit: (name: string) => void;
6
+ }
7
+ export declare function CreateFolderDialog({ open, onOpenChange, onSubmit, }: CreateFolderDialogProps): import("react/jsx-runtime").JSX.Element;
8
+ export interface UploadDialogProps {
9
+ open: boolean;
10
+ onOpenChange: (open: boolean) => void;
11
+ /** Bound to the destination folder by the parent. */
12
+ onUpload: (file: File, helpers: {
13
+ signal: AbortSignal;
14
+ onProgress: (percent: number) => void;
15
+ }) => Promise<void>;
16
+ /** Human-readable destination folder name (root label when at the root). */
17
+ destinationLabel: string;
18
+ config?: FileManagerUploadConfig;
19
+ }
20
+ export declare function UploadDialog({ open, onOpenChange, onUpload, destinationLabel, config, }: UploadDialogProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface RenameDialogProps {
22
+ open: boolean;
23
+ onOpenChange: (open: boolean) => void;
24
+ /** Current name of the item being renamed. */
25
+ initialName: string;
26
+ onSubmit: (name: string) => void;
27
+ }
28
+ export declare function RenameDialog({ open, onOpenChange, initialName, onSubmit, }: RenameDialogProps): import("react/jsx-runtime").JSX.Element;
29
+ export interface DeleteDialogProps {
30
+ open: boolean;
31
+ onOpenChange: (open: boolean) => void;
32
+ count: number;
33
+ onConfirm: () => void;
34
+ }
35
+ export declare function DeleteDialog({ open, onOpenChange, count, onConfirm, }: DeleteDialogProps): import("react/jsx-runtime").JSX.Element;
36
+ export interface MoveDialogProps {
37
+ open: boolean;
38
+ onOpenChange: (open: boolean) => void;
39
+ /** Full item list — the destination tree is derived from its folders. */
40
+ items: FileManagerItem[];
41
+ /** Items being moved — they and their descendants are invalid targets. */
42
+ movingIds: string[];
43
+ /** Folder the mover starts from (pre-selected destination). */
44
+ currentFolderId: string | null;
45
+ onConfirm: (targetFolderId: string | null) => void;
46
+ }
47
+ export declare function MoveDialog({ open, onOpenChange, items, movingIds, currentFolderId, onConfirm, }: MoveDialogProps): import("react/jsx-runtime").JSX.Element;
48
+ //# sourceMappingURL=dialogs.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ import type { FileManagerHandle } from './types';
3
+ export declare const fileManagerAgent: AgentAdapter<FileManagerHandle>;
4
+ //# sourceMappingURL=file-manager.agent.d.ts.map
@@ -0,0 +1,82 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import type { FileManagerAddMenuItem, FileManagerHandle, FileManagerItem, FileManagerItemAction, FileManagerPermissionsInput, FileManagerUploadConfig, FileManagerUploadHandler } from './types';
3
+ declare const fileManagerVariants: (props?: ({
4
+ bordered?: boolean | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface FileManagerProps extends VariantProps<typeof fileManagerVariants> {
7
+ /** Opaque instance id — emitted as `data-component-id` for the agent registry. */
8
+ id?: string;
9
+ /** Flat item list keyed by `parentId`. The host owns this data. */
10
+ items: FileManagerItem[];
11
+ /**
12
+ * Capability gates — a flat set or a per-item resolver. Default is all-true
13
+ * (see FileManagerPermissions); `delete` always routes through a confirm.
14
+ */
15
+ permissions?: FileManagerPermissionsInput;
16
+ /** Controlled current folder (`null` = root). */
17
+ folderId?: string | null;
18
+ /** @default null */
19
+ defaultFolderId?: string | null;
20
+ onNavigate?: (folderId: string | null) => void;
21
+ onSelectionChange?: (ids: string[]) => void;
22
+ /**
23
+ * Opt-in folder-tree nav pane, rendered as a sidebar (hidden below the md
24
+ * breakpoint). The default layout is the table full-width with the folder
25
+ * breadcrumb in the footer; when `groupByFolder` is on the tree data already
26
+ * surfaces folders in the list, so the sidebar is redundant unless a consumer
27
+ * explicitly wants it.
28
+ * @default false — opt-in nav pane
29
+ */
30
+ showTree?: boolean;
31
+ /** Render the Skeleton loading state instead of the folder contents. */
32
+ isLoading?: boolean;
33
+ /** Opening a file resolves here (folders navigate internally). */
34
+ onOpenFile?: (item: FileManagerItem) => void;
35
+ onCreateFolder?: (name: string, parentId: string | null) => void | Promise<void>;
36
+ onRenameItem?: (itemId: string, name: string) => void | Promise<void>;
37
+ onDeleteItems?: (itemIds: string[]) => void | Promise<void>;
38
+ onMoveItems?: (itemIds: string[], targetFolderId: string | null) => void | Promise<void>;
39
+ onDownloadItems?: (itemIds: string[]) => void;
40
+ /** Share affordance (kebab + toolbar). Hidden when absent. */
41
+ onShare?: (itemIds: string[]) => void;
42
+ /**
43
+ * Request a signature for a pending-signature item. The action only appears
44
+ * on items whose `signatureStatus` is `'pending'`; hidden when absent.
45
+ */
46
+ onRequestSignature?: (item: FileManagerItem) => void;
47
+ /** Per-file upload handler (host owns transport). Enables the upload UI. */
48
+ onUpload?: FileManagerUploadHandler;
49
+ /** Upload transport config forwarded to the kit FileUpload. */
50
+ uploadConfig?: FileManagerUploadConfig;
51
+ /**
52
+ * Fired when a **file** row is activated by a single click, or by keyboard
53
+ * Enter on the selected file when this handler is wired (folders navigate
54
+ * internally; double-click always resolves `onOpenFile`). The host is
55
+ * expected to render the kit `DocumentPreview` in response — typically inside
56
+ * the Control Room rail. When absent, single-click just selects the row and
57
+ * Enter falls back to `onOpenFile`.
58
+ */
59
+ onPreviewItem?: (item: FileManagerItem) => void;
60
+ /**
61
+ * Id of the file the host is currently previewing (e.g. open in the rail).
62
+ * When set, the matching list row reuses the DataTable's selected-row tint so
63
+ * the user can see which document is open. `null` clears the highlight.
64
+ */
65
+ previewedItemId?: string | null;
66
+ /** Consumer actions appended after the built-in per-item kebab entries. */
67
+ itemActions?: (item: FileManagerItem) => FileManagerItemAction[];
68
+ /** Consumer entries appended after the built-in action buttons. */
69
+ addMenuItems?: FileManagerAddMenuItem[];
70
+ /**
71
+ * Nest files under their folders (Finder/Explorer style) via AG Grid Tree
72
+ * Data. Requires the consumer to register the Enterprise `TreeDataModule`
73
+ * (`ModuleRegistry.registerModules([TreeDataModule])`); the `treeData` /
74
+ * `getDataPath` / `autoGroupColumnDef` flags set here are inert until it is.
75
+ * @default false
76
+ */
77
+ groupByFolder?: boolean;
78
+ className?: string;
79
+ }
80
+ export declare const FileManager: import("react").ForwardRefExoticComponent<FileManagerProps & import("react").RefAttributes<FileManagerHandle>>;
81
+ export {};
82
+ //# sourceMappingURL=file-manager.d.ts.map
@@ -0,0 +1,12 @@
1
+ import type { FileManagerItem } from './types';
2
+ export interface FolderTreeProps {
3
+ items: FileManagerItem[];
4
+ /** Folder highlighted as selected — `null` selects the virtual root. */
5
+ selectedFolderId: string | null;
6
+ onSelectFolder: (folderId: string | null) => void;
7
+ 'aria-label': string;
8
+ /** Folder ids to omit from the tree (move dialog: item + descendants). */
9
+ excludeIds?: Set<string>;
10
+ }
11
+ export declare function FolderTree({ items, selectedFolderId, onSelectFolder, 'aria-label': ariaLabel, excludeIds, }: FolderTreeProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=folder-tree.d.ts.map
@@ -0,0 +1,5 @@
1
+ export { FileManager } from './file-manager';
2
+ export type { FileManagerProps } from './file-manager';
3
+ export type { FileManagerHandle, FileManagerItem, FileManagerItemKind, FileManagerItemMeta, FileManagerSignatureStatus, FileManagerPermissions, FileManagerPermissionsInput, FileManagerItemAction, FileManagerAddMenuItem, FileManagerUploadConfig, FileManagerUploadHandler, FileManagerActiveAction, FileManagerActiveActionType, } from './types';
4
+ export { fileManagerAgent } from './file-manager.agent';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { F as r, f } from "../../_chunks/file-manager-UF8dkQF1.js";
2
+ export {
3
+ r as FileManager,
4
+ f as fileManagerAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,49 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ import { type DataTableHandle } from '../data-table';
3
+ import type { FileManagerItem, FileManagerItemAction, FileManagerPermissions } from './types';
4
+ export interface ListViewProps {
5
+ /** Items of the current folder (folders + files), locale-sorted. Filtering
6
+ * is done by the DataTable's per-column floating filters (name + type). */
7
+ items: FileManagerItem[];
8
+ selectedIds: string[];
9
+ /** Id of the file open in the host preview (e.g. the rail). Reuses the
10
+ * selected-row tint so the user sees which document is active. */
11
+ previewedItemId?: string | null;
12
+ onSelectionChange: (ids: string[]) => void;
13
+ onOpen: (item: FileManagerItem) => void;
14
+ /** Primary single-click / keyboard activation — folders navigate, files
15
+ * select-single (which fires the host `onPreviewItem`). */
16
+ onRowActivate: (item: FileManagerItem) => void;
17
+ /** Resolves the gate set for a single item. */
18
+ can: (item: FileManagerItem) => Required<FileManagerPermissions>;
19
+ onRequestRename: (itemId: string) => void;
20
+ onRequestMove: (itemIds: string[]) => void;
21
+ onRequestDelete: (itemIds: string[]) => void;
22
+ onDownload?: (itemIds: string[]) => void;
23
+ onShare?: (itemIds: string[]) => void;
24
+ onRequestSignature?: (item: FileManagerItem) => void;
25
+ /** Consumer actions appended after the built-in kebab entries. */
26
+ itemActions?: (item: FileManagerItem) => FileManagerItemAction[];
27
+ /**
28
+ * Nest files under their folders via AG Grid Tree Data (`treeData` +
29
+ * `getDataPath`). Sets the tree gridOption / autoGroupColumnDef flags only —
30
+ * inert unless the consumer has registered the Enterprise `TreeDataModule`.
31
+ * When on, `items` must be the whole descendant subtree (see `descendantsOf`)
32
+ * and paths are built relative to `currentFolderId`. @default false
33
+ */
34
+ groupByFolder?: boolean;
35
+ /**
36
+ * Current folder id (`null` = root) — the anchor for tree-data path building.
37
+ * Paths run from this folder's direct child down to each item.
38
+ */
39
+ currentFolderId: string | null;
40
+ /** Forwarded as the DataTable `gridId` (namespaced by the caller). */
41
+ gridId?: string;
42
+ /** Handle to the composed DataTable — the FileManager proxies its
43
+ * type-filter handle methods and agent `filter` action through this. */
44
+ tableRef: RefObject<DataTableHandle<FileManagerItem> | null>;
45
+ /** FileManager action cluster rendered in the DataTable's `Toolbar.Actions`. */
46
+ toolbarActions: ReactNode;
47
+ }
48
+ export declare function ListView({ items, selectedIds, previewedItemId, onSelectionChange, onOpen, onRowActivate, can, onRequestRename, onRequestMove, onRequestDelete, onDownload, onShare, onRequestSignature, itemActions, groupByFolder, currentFolderId, gridId, tableRef, toolbarActions, }: ListViewProps): import("react/jsx-runtime").JSX.Element;
49
+ //# sourceMappingURL=list-view.d.ts.map
@@ -0,0 +1,15 @@
1
+ import type { FileManagerAddMenuItem, FileManagerPermissions } from './types';
2
+ export interface FileManagerToolbarProps {
3
+ selectedIds: string[];
4
+ permissions: Required<FileManagerPermissions>;
5
+ onRequestCreateFolder: () => void;
6
+ onRequestUpload?: () => void;
7
+ addMenuItems?: FileManagerAddMenuItem[];
8
+ onRequestRename: (itemId: string) => void;
9
+ onRequestMove: (itemIds: string[]) => void;
10
+ onRequestDelete: (itemIds: string[]) => void;
11
+ onDownload?: (itemIds: string[]) => void;
12
+ onShare?: (itemIds: string[]) => void;
13
+ }
14
+ export declare function FileManagerToolbar({ selectedIds, permissions, onRequestCreateFolder, onRequestUpload, addMenuItems, onRequestRename, onRequestMove, onRequestDelete, onDownload, onShare, }: FileManagerToolbarProps): import("react/jsx-runtime").JSX.Element | null;
15
+ //# sourceMappingURL=toolbar.d.ts.map
@@ -0,0 +1,167 @@
1
+ import type { ReactNode } from 'react';
2
+ export type FileManagerItemKind = 'file' | 'folder';
3
+ /** Signature workflow state. `pending` surfaces the request-signature action. */
4
+ export type FileManagerSignatureStatus = 'none' | 'pending' | 'signed';
5
+ export interface FileManagerItem {
6
+ /** Stable unique id. Emitted on DOM nodes as `data-item-id` — never the name. */
7
+ id: string;
8
+ /** Display name. Treated as PHI by the agent contract (see file-manager.agent.ts). */
9
+ name: string;
10
+ kind: FileManagerItemKind;
11
+ /** Parent folder id, or `null` for items at the root. */
12
+ parentId: string | null;
13
+ /** Size in bytes — files only. */
14
+ size?: number;
15
+ /**
16
+ * MIME type — files only. Drives the file-type icon.
17
+ *
18
+ * The brief names this field `contentType`; the kit keeps `mimeType`
19
+ * because renaming would ripple through utils / list-view / preview for
20
+ * no behavioural gain (documented deviation).
21
+ */
22
+ mimeType?: string;
23
+ /** ISO 8601 timestamp of the last modification. */
24
+ updatedAt?: string;
25
+ /**
26
+ * Open domain string — AlfaDocs uses
27
+ * `'xray' | 'image' | 'text' | 'identification' | 'other' | …`.
28
+ * Drives the type Badge column, grid card badge, and the toolbar type filter.
29
+ */
30
+ documentType?: string;
31
+ /** Clinical document flag (host-defined semantics). */
32
+ clinical?: boolean;
33
+ /** Signature workflow state. `pending` unlocks the request-signature action. */
34
+ signatureStatus?: FileManagerSignatureStatus;
35
+ /** Whether the document is shared with the patient. */
36
+ sharedWithPatient?: boolean;
37
+ /** Thumbnail image URL — grid cards render it in place of the type icon. */
38
+ thumbnailUrl?: string;
39
+ /** ISO 8601 expiry (e.g. identification documents). */
40
+ expiresAt?: string;
41
+ }
42
+ /**
43
+ * Capability gates. Every entry point (toolbar button, keyboard shortcut,
44
+ * per-row action, bulk bar, upload overlay) checks its gate; a missing gate
45
+ * means the affordance is not rendered at all.
46
+ *
47
+ * Default is all-true (react-file-manager precedent; demo-friendly). `delete`
48
+ * defaults true too but ALWAYS routes through a confirmation dialog — the
49
+ * clinical-safe guard lives in the forced-choice confirm, not in the default.
50
+ */
51
+ export interface FileManagerPermissions {
52
+ createFolder?: boolean;
53
+ upload?: boolean;
54
+ download?: boolean;
55
+ rename?: boolean;
56
+ move?: boolean;
57
+ delete?: boolean;
58
+ share?: boolean;
59
+ }
60
+ /**
61
+ * Either a flat gate set applied to every item, or a per-item resolver that
62
+ * returns the gates for a given item (react-file-manager precedent).
63
+ */
64
+ export type FileManagerPermissionsInput = FileManagerPermissions | ((item: FileManagerItem) => FileManagerPermissions);
65
+ /**
66
+ * Data-driven consumer action appended to a per-item kebab menu (after the
67
+ * built-in rename/move/download/delete entries). Rendered through the shared
68
+ * DropdownMenu / DataTable actions primitives — the kit never hardcodes
69
+ * platform-specific actions.
70
+ */
71
+ export interface FileManagerItemAction {
72
+ id: string;
73
+ label: string;
74
+ icon?: ReactNode;
75
+ onSelect: (item: FileManagerItem) => void;
76
+ destructive?: boolean;
77
+ }
78
+ /** Data-driven consumer entry appended to the Add menu (after the built-ins). */
79
+ export interface FileManagerAddMenuItem {
80
+ id: string;
81
+ label: string;
82
+ icon?: ReactNode;
83
+ onSelect: () => void;
84
+ destructive?: boolean;
85
+ }
86
+ /** Upload transport config — mirrors the kit `FileUpload` contract. */
87
+ export interface FileManagerUploadConfig {
88
+ /** react-dropzone `accept` map (mime → extensions). */
89
+ accept?: Record<string, string[]>;
90
+ /** Max size per file in bytes. */
91
+ maxSize?: number;
92
+ /** Allow selecting multiple files at once. @default true */
93
+ multiple?: boolean;
94
+ }
95
+ /** Per-file upload handler — the host owns transport. */
96
+ export type FileManagerUploadHandler = (file: File, helpers: {
97
+ signal: AbortSignal;
98
+ onProgress: (percent: number) => void;
99
+ }, parentFolderId: string | null) => Promise<void>;
100
+ /**
101
+ * Single-active-action state machine. Exactly one action dialog can be in
102
+ * flight; attempts to begin another while one is active are ignored.
103
+ */
104
+ export type FileManagerActiveAction = {
105
+ type: 'none';
106
+ } | {
107
+ type: 'create-folder';
108
+ } | {
109
+ type: 'upload';
110
+ } | {
111
+ type: 'rename';
112
+ itemId: string;
113
+ } | {
114
+ type: 'delete';
115
+ itemIds: string[];
116
+ } | {
117
+ type: 'move';
118
+ itemIds: string[];
119
+ };
120
+ export type FileManagerActiveActionType = FileManagerActiveAction['type'];
121
+ /**
122
+ * PHI-safe projection of an item — structural metadata only, never the
123
+ * display name. This is the shape the agent's always-on state exposes.
124
+ * `documentType` / `signatureStatus` are non-identifying categories, safe to
125
+ * surface for filtering and reasoning.
126
+ */
127
+ export interface FileManagerItemMeta {
128
+ id: string;
129
+ kind: FileManagerItemKind;
130
+ parentId: string | null;
131
+ size?: number;
132
+ updatedAt?: string;
133
+ documentType?: string;
134
+ signatureStatus?: FileManagerSignatureStatus;
135
+ }
136
+ /**
137
+ * Curated imperative handle — the only programmable surface (agent registry
138
+ * + `forwardRef`). Reads return identifiers and structural state; the sole
139
+ * name-returning read (`getItemNames`) is surfaced by the agent adapter as a
140
+ * `safety: 'phi'` action, never through always-on state.
141
+ */
142
+ export interface FileManagerHandle {
143
+ getSelection: () => string[];
144
+ setSelection: (ids: string[]) => void;
145
+ clearSelection: () => void;
146
+ getCurrentFolderId: () => string | null;
147
+ navigateTo: (folderId: string | null) => void;
148
+ /** Document-type filter (empty = no filter). Proxies to the DataTable column filter. */
149
+ getTypeFilter: () => string[];
150
+ setTypeFilter: (documentTypes: string[]) => void;
151
+ /**
152
+ * Metadata for every item (no argument), or for the children of one folder
153
+ * (`null` = root). Never includes names — see `getItemNames`.
154
+ */
155
+ getItems: (folderId?: string | null) => FileManagerItemMeta[];
156
+ /** Name-returning read — PHI. Exposed by the agent only via a `phi` action. */
157
+ getItemNames: (ids: string[]) => Array<{
158
+ id: string;
159
+ name: string;
160
+ }>;
161
+ /** Folders navigate; files resolve through the host `onOpenFile` callback. */
162
+ openItem: (id: string) => void;
163
+ /** Open the inline-rename dialog for an item (no-op if rename is denied). */
164
+ startRename: (id: string) => void;
165
+ getActiveAction: () => FileManagerActiveActionType;
166
+ }
167
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ import type { FileManagerItem } from './types';
3
+ export declare function formatFileSize(bytes: number, locale: string, t: (key: string, fallback: string) => string): string;
4
+ /** Icon component per item — folders first, then a MIME-family lookup. */
5
+ export declare function getItemIcon(item: FileManagerItem): LucideIcon;
6
+ /** Children of a folder, folders first, then locale-aware by name. */
7
+ export declare function childrenOf(items: FileManagerItem[], folderId: string | null, locale: string): FileManagerItem[];
8
+ /**
9
+ * Every item whose ancestry passes through `folderId` (folders + files, any
10
+ * depth) — the full subtree beneath a folder, excluding the folder itself.
11
+ * Feeds AG Grid Tree Data when `groupByFolder` is on (the flat `childrenOf`
12
+ * only returns the immediate level). Sort order matches `childrenOf` — folders
13
+ * first, then locale-aware by name — so sibling order is stable at every depth.
14
+ */
15
+ export declare function descendantsOf(items: FileManagerItem[], folderId: string | null, locale: string): FileManagerItem[];
16
+ /**
17
+ * AG Grid Tree Data path for an item: the id-chain from the current folder's
18
+ * direct child down to (and including) the item. Walk `parentId` up, stopping
19
+ * at `currentFolderId` (exclusive), then reverse and append the item's own id.
20
+ * Every returned id is a real folder/file row, so AG Grid never synthesises
21
+ * filler group rows. `itemsById` need only cover the current subtree.
22
+ */
23
+ export declare function pathWithinFolder(item: FileManagerItem, itemsById: Map<string, FileManagerItem>, currentFolderId: string | null): string[];
24
+ /** Path from the root down to `folderId` (exclusive of the virtual root). */
25
+ export declare function pathTo(items: FileManagerItem[], folderId: string | null): FileManagerItem[];
26
+ /**
27
+ * Ids of the given folders plus every folder nested inside them. Used to
28
+ * exclude invalid targets from the move-destination tree (a folder can never
29
+ * be moved into itself or one of its descendants).
30
+ */
31
+ export declare function withDescendantFolderIds(items: FileManagerItem[], ids: string[]): Set<string>;
32
+ /** True when the two id lists contain the same set of ids. */
33
+ export declare function sameIdSet(a: string[], b: string[]): boolean;
34
+ //# sourceMappingURL=utils.d.ts.map
@@ -41,5 +41,6 @@ export interface FileUploadProps {
41
41
  showPreview?: boolean;
42
42
  className?: string;
43
43
  }
44
+ export declare const browseButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
44
45
  export declare const FileUpload: import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<HTMLDivElement>>;
45
46
  //# sourceMappingURL=file-upload.d.ts.map