@alfadocs/ui-kit 1.35.0 → 1.36.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 (356) hide show
  1. package/dist/_chunks/{actions-cell-renderer-yy03OgRL.js → actions-cell-renderer-CUn1pqEq.js} +3 -3
  2. package/dist/_chunks/{agenda-card-DVz3jwTf.js → agenda-card-DyQtHb9z.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-1oDWCJdB.js → agenda-tray-DYGCTIWB.js} +3 -3
  4. package/dist/_chunks/{ai-consent-banner-OggpS5hW.js → ai-consent-banner-De4gzSBZ.js} +4 -4
  5. package/dist/_chunks/{ai-prompt-input-Dt7tpCBh.js → ai-prompt-input-DdxlaI7q.js} +2 -2
  6. package/dist/_chunks/{alert-CiJT540z.js → alert-CiQ5Pa3Q.js} +2 -2
  7. package/dist/_chunks/{alia-sidebar-D18kp3p9.js → alia-sidebar-B6bXlZZk.js} +6 -6
  8. package/dist/_chunks/{anamnesis-card-NTi4LLzI.js → anamnesis-card-DGwINeNn.js} +3 -3
  9. package/dist/_chunks/{anamnesis-summary-card-DGVKBQoq.js → anamnesis-summary-card-GYHa7VGp.js} +3 -3
  10. package/dist/_chunks/{anamnesis-summary-rows-BYgyp_i2.js → anamnesis-summary-rows-Cxtgo2ok.js} +12 -12
  11. package/dist/_chunks/{antenatal-schedule-timeline-sXfIp5lp.js → antenatal-schedule-timeline-CXk_tzWG.js} +2 -2
  12. package/dist/_chunks/{appointment-card-Bh_CIlc6.js → appointment-card-WsDGBBut.js} +120 -126
  13. package/dist/_chunks/{appointment-timeline-De-Wqdkw.js → appointment-timeline-ByfovxqR.js} +5 -5
  14. package/dist/_chunks/{appointment-tray-4I9wTAi4.js → appointment-tray-D6UyJHej.js} +3 -3
  15. package/dist/_chunks/arrow-right-KsIrLdt0.js +15 -0
  16. package/dist/_chunks/{audio-recorder-11wClczr.js → audio-recorder-BlQBC7N_.js} +3 -3
  17. package/dist/_chunks/{badge-sTusUqZD.js → badge-BudgzTe_.js} +2 -2
  18. package/dist/_chunks/{balance-badge-cell-DhBtFRoW.js → balance-badge-cell-B0Z8Dwn8.js} +6 -6
  19. package/dist/_chunks/{bishop-score-CAl7C5hm.js → bishop-score-D5b8tktp.js} +2 -2
  20. package/dist/_chunks/{bmi-calculator-Dwkih9a4.js → bmi-calculator-dOKP-vW4.js} +4 -4
  21. package/dist/_chunks/{booking-BqkEtsKx.js → booking-Dp-9qR6F.js} +9 -9
  22. package/dist/_chunks/button-group-QmN1VdUW.js +307 -0
  23. package/dist/_chunks/{calendar-Dgvl5L4T.js → calendar-7GAUlsNO.js} +3 -3
  24. package/dist/_chunks/{calendar-event-card-DSh-69HT.js → calendar-event-card-DKUnT9Be.js} +91 -134
  25. package/dist/_chunks/{calendar-workspace-UywR5gUl.js → calendar-workspace-Duv_5B4j.js} +2494 -2415
  26. package/dist/_chunks/{care-plan-card-DHVhBcvs.js → care-plan-card-COFOI-fI.js} +5 -5
  27. package/dist/_chunks/{care-plan-entry-card-Dx6IdTcR.js → care-plan-entry-card-BOKn0KW-.js} +6 -6
  28. package/dist/_chunks/{care-plan-header-UTX5ZD74.js → care-plan-header-CbuOuVBw.js} +4 -4
  29. package/dist/_chunks/{carousel.agent-CLxdHEBP.js → carousel.agent-Dv4a4M8L.js} +2 -2
  30. package/dist/_chunks/{chart-C6eHTxkO.js → chart-iWl76PXv.js} +3 -3
  31. package/dist/_chunks/{chat-input-BsB5Umpj.js → chat-input-qM5QpUSq.js} +2 -2
  32. package/dist/_chunks/{chat-message-C-8UU2av.js → chat-message-RniXtrCH.js} +2 -2
  33. package/dist/_chunks/{checkbox-BuZ1u__2.js → checkbox-CZkipDn7.js} +2 -2
  34. package/dist/_chunks/{checkbox-group-CfqMv57d.js → checkbox-group-DomUzpkF.js} +2 -2
  35. package/dist/_chunks/clinical-note-card-DdsGYMmI.js +325 -0
  36. package/dist/_chunks/{code-block-BIkpRLkl.js → code-block-uVjNSI9g.js} +2 -2
  37. package/dist/_chunks/{connection-status-DRZIcMqM.js → connection-status-OEsWjmRk.js} +3 -3
  38. package/dist/_chunks/{contact-profile-card-DSI9uumA.js → contact-profile-card--My1H2UD.js} +3 -3
  39. package/dist/_chunks/{control-room-rail-5MbhjsxN.js → control-room-rail-Ds45_g4f.js} +4 -4
  40. package/dist/_chunks/{counter-dRlTNC_y.js → counter-WsvRuum1.js} +50 -15
  41. package/dist/_chunks/{cycle-calculator-DVgxBfP0.js → cycle-calculator-BJeaXiZv.js} +3 -3
  42. package/dist/_chunks/{dashboard-grid-BFtdHqfn.js → dashboard-grid-B23BFzRl.js} +2 -2
  43. package/dist/_chunks/{data-table-DC96JJIq.js → data-table-BYGK-gUJ.js} +6 -6
  44. package/dist/_chunks/{data-table-tabs-DVIFkqx_.js → data-table-tabs-BMR0zsVQ.js} +3 -3
  45. package/dist/_chunks/{date-picker-B6NW_PS5.js → date-picker-6tFnKFty.js} +14 -14
  46. package/dist/_chunks/{dependent-selector-yTKKsuc9.js → dependent-selector-BHDP0nBB.js} +3 -3
  47. package/dist/_chunks/{description-list-CjJqR8WK.js → description-list-C1RXMDZ_.js} +2 -2
  48. package/dist/_chunks/{document-preview-BrhMHNh8.js → document-preview-DsEyRcNd.js} +4 -4
  49. package/dist/_chunks/{document-scanner-C5Vrbu21.js → document-scanner-CbWVtm7u.js} +53 -52
  50. package/dist/_chunks/{due-date-calculator-CxgK8vzt.js → due-date-calculator-Dhc9Ljkb.js} +6 -6
  51. package/dist/_chunks/{editable-currency-cell-renderer-B7TVZ5ZJ.js → editable-currency-cell-renderer-D7blbDFY.js} +4 -4
  52. package/dist/_chunks/{editor-overlay-DEc5yYwo.js → editor-overlay-8fKAcRsm.js} +2 -2
  53. package/dist/_chunks/{entity-card-9_62gY7l.js → entity-card-I-Gio5wo.js} +36 -32
  54. package/dist/_chunks/{entity-summary-5o768XLU.js → entity-summary-BbW0mIzU.js} +4 -4
  55. package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-uFvhqz6h.js} +4 -4
  56. package/dist/_chunks/{fetal-weight-Dqy0T1fP.js → fetal-weight-C6SxchOv.js} +2 -2
  57. package/dist/_chunks/{field-array-BjkXZzSr.js → field-array-C9dmRaIM.js} +2 -2
  58. package/dist/_chunks/{file-manager-CI2Qn8qW.js → file-manager-DvkFgj7d.js} +7 -7
  59. package/dist/_chunks/{file-upload-CwxdqkMK.js → file-upload-BDpb08GM.js} +71 -78
  60. package/dist/_chunks/{fiscal-code-input-B_nYMSEM.js → fiscal-code-input-CkwIdB1y.js} +2 -2
  61. package/dist/_chunks/{freemium-paywall-DrXzYfv-.js → freemium-paywall-BqGk_SBU.js} +2 -2
  62. package/dist/_chunks/{gestational-age-calculator-CZHVrERT.js → gestational-age-calculator-DDOGaPvg.js} +6 -6
  63. package/dist/_chunks/{hcg-doubling-C2fQxfXd.js → hcg-doubling-Bb_n6tEa.js} +2 -2
  64. package/dist/_chunks/{header-DUXRIPyM.js → header-BZ4pZlJV.js} +2 -2
  65. package/dist/_chunks/{header-settings-DvjZNMhD.js → header-settings-B8mLc03Q.js} +4 -4
  66. package/dist/_chunks/hover-card-Bcku1GQu.js +511 -0
  67. package/dist/_chunks/{icon-button-DA2CAGHZ.js → icon-button-8xqRnkdG.js} +2 -2
  68. package/dist/_chunks/{icon-button-group-VCCod3Hz.js → icon-button-group-Dj6CRoYR.js} +2 -2
  69. package/dist/_chunks/{icon-picker-DOa89vn3.js → icon-picker-CTWzlHJr.js} +2 -2
  70. package/dist/_chunks/{info-tip-CADik6WN.js → info-tip-ey_Pon2y.js} +2 -2
  71. package/dist/_chunks/{key-value-pair-BIBdZBLg.js → key-value-pair-DczGb4yz.js} +42 -41
  72. package/dist/_chunks/{link-cell-renderer-BEpMNtAa.js → link-cell-renderer-BNa8x6oJ.js} +6 -6
  73. package/dist/_chunks/loader-circle-BECIU_8N.js +12 -0
  74. package/dist/_chunks/{locale-picker-CwFtqSkt.js → locale-picker-BLeHbFSc.js} +3 -3
  75. package/dist/_chunks/{marketplace-app-shell-CK_ND8Tr.js → marketplace-app-shell-BwH6Aruw.js} +6 -6
  76. package/dist/_chunks/{message-card-BUMv16un.js → message-card-Dm5Xshup.js} +2 -2
  77. package/dist/_chunks/{message-tray-0zsv27xX.js → message-tray-BcLyaO-G.js} +3 -3
  78. package/dist/_chunks/{multi-select-DYOvx2SJ.js → multi-select-CtPd7g4x.js} +15 -15
  79. package/dist/_chunks/note-attachment-CwDir3kK.js +124 -0
  80. package/dist/_chunks/note-timeline-CXfSV3yX.js +231 -0
  81. package/dist/_chunks/{notes-panel-BjLt-kiP.js → notes-panel-Co8D3uDd.js} +7 -7
  82. package/dist/_chunks/{notification-card-CtrzoTUO.js → notification-card-ChcK9Wat.js} +2 -2
  83. package/dist/_chunks/{notification-tray-BiRzXHDf.js → notification-tray-CJ8jOe-U.js} +4 -4
  84. package/dist/_chunks/{operator-hero-aG_qyn6g.js → operator-hero-XIdwDmN2.js} +3 -3
  85. package/dist/_chunks/{optical-prescription-DUJOhKz_.js → optical-prescription-cphK41eP.js} +2 -2
  86. package/dist/_chunks/panel-header-D_mTdhUp.js +128 -0
  87. package/dist/_chunks/patient-details-f7SSXkTJ.js +371 -0
  88. package/dist/_chunks/patient-field-row-BQZoP4m2.js +787 -0
  89. package/dist/_chunks/{patient-search-HeEUB-_X.js → patient-search-D08b6jgj.js} +2 -2
  90. package/dist/_chunks/patient-summary-card-Bz7KdUin.js +533 -0
  91. package/dist/_chunks/{payment-automation-upsell-DwQW2fRp.js → payment-automation-upsell-BLTdE2em.js} +50 -59
  92. package/dist/_chunks/{payment-form-Ds1I9KqB.js → payment-form-BHMDqW9C.js} +2 -2
  93. package/dist/_chunks/{payment-request-card-DvEsWEkC.js → payment-request-card-BxcdvxKR.js} +6 -6
  94. package/dist/_chunks/{pdf-viewer-DUIsV9s5.js → pdf-viewer-DUKdn5iq.js} +2 -2
  95. package/dist/_chunks/{periodontal-chart-B9fphroR.js → periodontal-chart-BF_e3wZp.js} +2 -2
  96. package/dist/_chunks/{periodontal-chart-card-qEZPXj83.js → periodontal-chart-card-BJEuJuzh.js} +3 -3
  97. package/dist/_chunks/{periodontal-diagnosis-lEwA8wqX.js → periodontal-diagnosis-C7pfPOct.js} +5 -5
  98. package/dist/_chunks/{periodontal-risk-chart-0x7KVZjL.js → periodontal-risk-chart-B2tNFa15.js} +2 -2
  99. package/dist/_chunks/{permission-matrix-BIJrGEmz.js → permission-matrix-VdAXjjHU.js} +3 -3
  100. package/dist/_chunks/{popover-DP6WCVwm.js → popover-DzR5QYxp.js} +24 -24
  101. package/dist/_chunks/{practice-profile-hero-DQyDvpJL.js → practice-profile-hero-DxoLlQr5.js} +2 -2
  102. package/dist/_chunks/{practice-results-kayDEorM.js → practice-results-DOcORTkP.js} +4 -4
  103. package/dist/_chunks/{pregnancy-dating-n5j5dAKy.js → pregnancy-dating-nV1_S6w0.js} +6 -6
  104. package/dist/_chunks/{pregnancy-weight-gain-D5A8vPjj.js → pregnancy-weight-gain-tRecShAD.js} +4 -4
  105. package/dist/_chunks/{privacy-lock-CkAUo6Dz.js → privacy-lock-Be39vQUN.js} +2 -2
  106. package/dist/_chunks/{product-hub-panel-BScCotGD.js → product-hub-panel-C0TO69P7.js} +2 -2
  107. package/dist/_chunks/{public-header.agent-kth2SdXn.js → public-header.agent-Bl1KFwSE.js} +3 -3
  108. package/dist/_chunks/{radio-DNRe6H_8.js → radio-6fml-pWk.js} +2 -2
  109. package/dist/_chunks/{radio-group-DyVBgnA3.js → radio-group-CIjmyioi.js} +3 -3
  110. package/dist/_chunks/{radiograph-panel.agent-o4jwEJPC.js → radiograph-panel.agent-k0G7JuoM.js} +6 -6
  111. package/dist/_chunks/{reviews-panel-BKHEfqVQ.js → reviews-panel-BaHZb_ai.js} +3 -3
  112. package/dist/_chunks/{rich-text-editor-CCI-Y3DN.js → rich-text-editor-BTXlorm5.js} +7 -7
  113. package/dist/_chunks/{search-bar-CJj6sI9m.js → search-bar-CCmViqaa.js} +46 -46
  114. package/dist/_chunks/section-card.agent-W18CHEgX.js +74 -0
  115. package/dist/_chunks/{sheet-BSznOyJs.js → sheet-hm04DGFd.js} +2 -2
  116. package/dist/_chunks/{sign-document-jF4fZDJ5.js → sign-document-CRQuAn4W.js} +2 -2
  117. package/dist/_chunks/{signature-request-vihDT8On.js → signature-request-Dej2g86d.js} +5 -5
  118. package/dist/_chunks/{signature-status-chip-T5fyS-k9.js → signature-status-chip-D4NsrdeI.js} +3 -3
  119. package/dist/_chunks/{slot-grid-BuZOKfcd.js → slot-grid-8Ko6thzz.js} +2 -2
  120. package/dist/_chunks/{streaming-text-CvsjIQ7S.js → streaming-text-DjFqLSt_.js} +2 -2
  121. package/dist/_chunks/{tab-bar-DvFJIQfL.js → tab-bar-rDkLiaA6.js} +2 -2
  122. package/dist/_chunks/{tag-3wgkwwDB.js → tag-Ci3xJPcH.js} +2 -2
  123. package/dist/_chunks/{task-tray-COo-RlDv.js → task-tray-wl9eti6J.js} +2 -2
  124. package/dist/_chunks/{tasks-panel-DLKpSNoE.js → tasks-panel-BDNB7hsZ.js} +5 -5
  125. package/dist/_chunks/{theme-toggle-uEwoKjl3.js → theme-toggle-CMz8YfC1.js} +3 -3
  126. package/dist/_chunks/{timeline-Bs9Erxlo.js → timeline-61AihzYz.js} +47 -47
  127. package/dist/_chunks/{toast-YZz2sBzB.js → toast-8jqtbfAB.js} +2 -2
  128. package/dist/_chunks/{tool-rail-ONaV-Nzz.js → tool-rail-Bq5eiFMG.js} +3 -3
  129. package/dist/_chunks/{tooltip-DvmfrNvB.js → tooltip-Cp-PLePW.js} +41 -41
  130. package/dist/_chunks/{tooth-scheme-Qe7LO5Di.js → tooth-scheme-BWkYxxjR.js} +3 -3
  131. package/dist/_chunks/{transaction-chip-DJCstquX.js → transaction-chip-Dth1nThY.js} +49 -48
  132. package/dist/_chunks/{transcript-panel-BGkEhvHO.js → transcript-panel-u2HHxZB6.js} +2 -2
  133. package/dist/_chunks/user-x-DYszNtIg.js +45 -0
  134. package/dist/_chunks/{warning-stack-DQz0Jyir.js → warning-stack-BW5Dwb3z.js} +3 -3
  135. package/dist/_chunks/{widget-picker-DvUkBemi.js → widget-picker-B1sj6uyf.js} +2 -2
  136. package/dist/_chunks/{workflow-map-dNzJjBWG.js → workflow-map-D-LEni11.js} +5 -5
  137. package/dist/_chunks/workflow-status-xeaJTzD3.js +476 -0
  138. package/dist/agent-catalog.json +185 -1
  139. package/dist/agent-i18n/en.json +27 -0
  140. package/dist/components/_shared/entity-card/entity-card.d.ts +44 -0
  141. package/dist/components/_shared/entity-card/index.d.ts +1 -1
  142. package/dist/components/_shared/note-attachment.d.ts +41 -0
  143. package/dist/components/_shared/note-markdown.d.ts +3 -0
  144. package/dist/components/_shared/patient-field-row.d.ts +40 -0
  145. package/dist/components/agenda-card/index.js +1 -1
  146. package/dist/components/agenda-tray/index.js +1 -1
  147. package/dist/components/ai-consent-banner/index.js +1 -1
  148. package/dist/components/ai-prompt-input/index.js +1 -1
  149. package/dist/components/alert/index.js +1 -1
  150. package/dist/components/anamnesis-card/index.js +1 -1
  151. package/dist/components/anamnesis-summary-card/index.js +1 -1
  152. package/dist/components/appointment-card/index.js +2 -2
  153. package/dist/components/appointment-timeline/index.js +1 -1
  154. package/dist/components/audio-recorder/index.js +1 -1
  155. package/dist/components/badge/index.js +1 -1
  156. package/dist/components/bishop-score/index.js +1 -1
  157. package/dist/components/bmi-calculator/index.js +1 -1
  158. package/dist/components/booking/index.js +1 -1
  159. package/dist/components/button/index.js +1 -1
  160. package/dist/components/button-group/button-group.d.ts +20 -0
  161. package/dist/components/button-group/index.js +1 -1
  162. package/dist/components/calendar/index.js +1 -1
  163. package/dist/components/calendar-event-card/index.js +1 -1
  164. package/dist/components/care-plan-card/index.js +1 -1
  165. package/dist/components/care-plan-entry-card/index.js +1 -1
  166. package/dist/components/care-plan-header/index.js +1 -1
  167. package/dist/components/carousel/index.js +1 -1
  168. package/dist/components/chart/index.js +1 -1
  169. package/dist/components/chat-input/index.js +1 -1
  170. package/dist/components/chat-message/index.js +1 -1
  171. package/dist/components/checkbox/index.js +1 -1
  172. package/dist/components/checkbox-group/index.js +1 -1
  173. package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -34
  174. package/dist/components/clinical-note-card/index.js +1 -1
  175. package/dist/components/connection-status/index.js +1 -1
  176. package/dist/components/contact-profile-card/index.js +1 -1
  177. package/dist/components/control-room-rail/index.js +1 -1
  178. package/dist/components/counter/counter.d.ts +6 -0
  179. package/dist/components/counter/index.js +1 -1
  180. package/dist/components/cycle-calculator/index.js +1 -1
  181. package/dist/components/dashboard-grid/index.js +1 -1
  182. package/dist/components/data-table/index.js +4 -4
  183. package/dist/components/data-table-tabs/index.js +1 -1
  184. package/dist/components/date-picker/index.js +1 -1
  185. package/dist/components/dependent-selector/index.js +1 -1
  186. package/dist/components/description-list/index.js +1 -1
  187. package/dist/components/document-preview/index.js +1 -1
  188. package/dist/components/document-scanner/index.js +1 -1
  189. package/dist/components/due-date-calculator/index.js +2 -2
  190. package/dist/components/editor-overlay/index.js +1 -1
  191. package/dist/components/entity-summary/index.js +1 -1
  192. package/dist/components/face-scheme/index.js +1 -1
  193. package/dist/components/fetal-weight/index.js +1 -1
  194. package/dist/components/field-array/index.js +1 -1
  195. package/dist/components/file-manager/index.js +1 -1
  196. package/dist/components/file-upload/index.js +1 -1
  197. package/dist/components/fiscal-code-input/index.js +1 -1
  198. package/dist/components/freemium-paywall/index.js +1 -1
  199. package/dist/components/gestational-age-calculator/index.js +1 -1
  200. package/dist/components/hcg-doubling/index.js +1 -1
  201. package/dist/components/header/index.js +1 -1
  202. package/dist/components/header-settings/index.js +1 -1
  203. package/dist/components/hover-card/hover-card.agent.d.ts +4 -0
  204. package/dist/components/hover-card/hover-card.d.ts +80 -0
  205. package/dist/components/hover-card/index.d.ts +4 -0
  206. package/dist/components/hover-card/index.js +6 -0
  207. package/dist/components/icon-button/index.js +1 -1
  208. package/dist/components/icon-button-group/index.js +1 -1
  209. package/dist/components/icon-picker/index.js +1 -1
  210. package/dist/components/index.d.ts +4 -0
  211. package/dist/components/info-tip/index.js +1 -1
  212. package/dist/components/key-value-pair/index.js +1 -1
  213. package/dist/components/key-value-pair/key-value-pair.d.ts +8 -1
  214. package/dist/components/locale-picker/index.js +1 -1
  215. package/dist/components/message-card/index.js +1 -1
  216. package/dist/components/message-tray/index.js +1 -1
  217. package/dist/components/multi-select/index.js +1 -1
  218. package/dist/components/note-timeline/index.d.ts +4 -0
  219. package/dist/components/note-timeline/index.js +6 -0
  220. package/dist/components/note-timeline/note-timeline.agent.d.ts +4 -0
  221. package/dist/components/note-timeline/note-timeline.d.ts +77 -0
  222. package/dist/components/notes-panel/index.js +1 -1
  223. package/dist/components/notification-card/index.js +1 -1
  224. package/dist/components/notification-tray/index.js +1 -1
  225. package/dist/components/operator-hero/index.js +1 -1
  226. package/dist/components/optical-prescription/index.js +1 -1
  227. package/dist/components/panel-header/index.js +1 -1
  228. package/dist/components/panel-header/panel-header.d.ts +7 -0
  229. package/dist/components/patient-details/index.js +1 -1
  230. package/dist/components/patient-search/index.js +1 -1
  231. package/dist/components/patient-summary-card/index.js +1 -1
  232. package/dist/components/patient-summary-card/patient-summary-card.d.ts +54 -0
  233. package/dist/components/patient-table/index.js +1 -1
  234. package/dist/components/payment-card/index.js +1 -1
  235. package/dist/components/payment-form/index.js +1 -1
  236. package/dist/components/pdf-viewer/index.js +1 -1
  237. package/dist/components/periodontal-chart/index.js +1 -1
  238. package/dist/components/periodontal-chart-card/index.js +1 -1
  239. package/dist/components/periodontal-diagnosis/index.js +1 -1
  240. package/dist/components/periodontal-risk-chart/index.js +1 -1
  241. package/dist/components/permission-matrix/index.js +1 -1
  242. package/dist/components/popover/index.js +1 -1
  243. package/dist/components/practice-profile-hero/index.js +1 -1
  244. package/dist/components/practice-results/index.js +1 -1
  245. package/dist/components/pregnancy-dating/index.js +1 -1
  246. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  247. package/dist/components/privacy-lock/index.js +1 -1
  248. package/dist/components/product-hub-tray/index.js +1 -1
  249. package/dist/components/public-header/index.js +1 -1
  250. package/dist/components/radio/index.js +1 -1
  251. package/dist/components/radio-group/index.js +2 -2
  252. package/dist/components/radiograph-panel/index.js +1 -1
  253. package/dist/components/reviews-panel/index.js +1 -1
  254. package/dist/components/rich-text-editor/index.js +1 -1
  255. package/dist/components/search-bar/index.js +1 -1
  256. package/dist/components/section-card/index.d.ts +4 -0
  257. package/dist/components/section-card/index.js +6 -0
  258. package/dist/components/section-card/section-card.agent.d.ts +3 -0
  259. package/dist/components/section-card/section-card.d.ts +30 -0
  260. package/dist/components/sheet/index.js +1 -1
  261. package/dist/components/sign-document/index.js +1 -1
  262. package/dist/components/signature-status-chip/index.js +1 -1
  263. package/dist/components/slot-grid/index.js +1 -1
  264. package/dist/components/streaming-text/index.js +1 -1
  265. package/dist/components/tab-bar/index.js +1 -1
  266. package/dist/components/tag/index.js +1 -1
  267. package/dist/components/task-tray/index.js +1 -1
  268. package/dist/components/tasks-panel/index.js +1 -1
  269. package/dist/components/theme-toggle/index.js +1 -1
  270. package/dist/components/timeline/index.js +1 -1
  271. package/dist/components/timeline/timeline.d.ts +1 -1
  272. package/dist/components/toast/index.js +1 -1
  273. package/dist/components/tool-rail/index.js +1 -1
  274. package/dist/components/tooltip/index.js +1 -1
  275. package/dist/components/tooth-scheme/index.js +1 -1
  276. package/dist/components/transaction-chip/index.js +1 -1
  277. package/dist/components/transaction-chip/transaction-chip.d.ts +11 -0
  278. package/dist/components/transcript-panel/index.js +1 -1
  279. package/dist/components/warning-stack/index.js +1 -1
  280. package/dist/components/widget-picker/index.js +1 -1
  281. package/dist/components/workflow/index.js +1 -1
  282. package/dist/components/workflow-status/index.d.ts +4 -0
  283. package/dist/components/workflow-status/index.js +7 -0
  284. package/dist/components/workflow-status/workflow-status.agent.d.ts +4 -0
  285. package/dist/components/workflow-status/workflow-status.d.ts +52 -0
  286. package/dist/host-compat.css +4 -1
  287. package/dist/i18n/locales/ar.d.ts +12 -0
  288. package/dist/i18n/locales/ar.js +12 -0
  289. package/dist/i18n/locales/de.d.ts +12 -0
  290. package/dist/i18n/locales/de.js +12 -0
  291. package/dist/i18n/locales/el.d.ts +12 -0
  292. package/dist/i18n/locales/el.js +12 -0
  293. package/dist/i18n/locales/en.d.ts +12 -0
  294. package/dist/i18n/locales/en.js +12 -0
  295. package/dist/i18n/locales/es.d.ts +12 -0
  296. package/dist/i18n/locales/es.js +12 -0
  297. package/dist/i18n/locales/fr.d.ts +12 -0
  298. package/dist/i18n/locales/fr.js +12 -0
  299. package/dist/i18n/locales/hi.d.ts +12 -0
  300. package/dist/i18n/locales/hi.js +12 -0
  301. package/dist/i18n/locales/it.d.ts +12 -0
  302. package/dist/i18n/locales/it.js +12 -0
  303. package/dist/i18n/locales/ja.d.ts +12 -0
  304. package/dist/i18n/locales/ja.js +12 -0
  305. package/dist/i18n/locales/nl.d.ts +12 -0
  306. package/dist/i18n/locales/nl.js +12 -0
  307. package/dist/i18n/locales/pl.d.ts +12 -0
  308. package/dist/i18n/locales/pl.js +12 -0
  309. package/dist/i18n/locales/pt.d.ts +12 -0
  310. package/dist/i18n/locales/pt.js +12 -0
  311. package/dist/i18n/locales/ro.d.ts +12 -0
  312. package/dist/i18n/locales/ro.js +12 -0
  313. package/dist/i18n/locales/ru.d.ts +12 -0
  314. package/dist/i18n/locales/ru.js +12 -0
  315. package/dist/i18n/locales/sq.d.ts +12 -0
  316. package/dist/i18n/locales/sq.js +12 -0
  317. package/dist/i18n/locales/sv.d.ts +12 -0
  318. package/dist/i18n/locales/sv.js +12 -0
  319. package/dist/i18n/locales/tr.d.ts +12 -0
  320. package/dist/i18n/locales/tr.js +12 -0
  321. package/dist/i18n/locales/zh.d.ts +12 -0
  322. package/dist/i18n/locales/zh.js +12 -0
  323. package/dist/index.js +929 -916
  324. package/dist/locales/ar.json +12 -0
  325. package/dist/locales/de.json +12 -0
  326. package/dist/locales/el.json +12 -0
  327. package/dist/locales/en.json +12 -0
  328. package/dist/locales/es.json +12 -0
  329. package/dist/locales/fr.json +12 -0
  330. package/dist/locales/hi.json +12 -0
  331. package/dist/locales/it.json +12 -0
  332. package/dist/locales/ja.json +12 -0
  333. package/dist/locales/nl.json +12 -0
  334. package/dist/locales/pl.json +12 -0
  335. package/dist/locales/pt.json +12 -0
  336. package/dist/locales/ro.json +12 -0
  337. package/dist/locales/ru.json +12 -0
  338. package/dist/locales/sq.json +12 -0
  339. package/dist/locales/sv.json +12 -0
  340. package/dist/locales/tr.json +12 -0
  341. package/dist/locales/zh.json +12 -0
  342. package/dist/patterns/alia-assistant/index.js +1 -1
  343. package/dist/patterns/anamnesis/index.js +1 -1
  344. package/dist/patterns/calendar/calendar.model.d.ts +2 -0
  345. package/dist/patterns/calendar/index.js +1 -1
  346. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  347. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  348. package/dist/patterns/signature-request/index.js +1 -1
  349. package/dist/tokens.css +1 -1
  350. package/package.json +17 -1
  351. package/dist/_chunks/button-group-CaxRJsNG.js +0 -289
  352. package/dist/_chunks/clinical-note-card-CTRzmqvv.js +0 -438
  353. package/dist/_chunks/field-value-BetdWMA2.js +0 -384
  354. package/dist/_chunks/panel-header-D313n_9-.js +0 -105
  355. package/dist/_chunks/patient-details-BGiawUHd.js +0 -760
  356. package/dist/_chunks/patient-summary-card--CT_gbaQ.js +0 -454
@@ -1,760 +0,0 @@
1
- import { jsx as t, jsxs as c, Fragment as ae } from "react/jsx-runtime";
2
- import { forwardRef as se, useId as B, useMemo as ie, Fragment as re, useState as v, useCallback as I } from "react";
3
- import { c as H } from "./index-D2ZczOXr.js";
4
- import { useTranslation as V } from "react-i18next";
5
- import { A as ne } from "./avatar-CkDeQOSI.js";
6
- import { I as z } from "./icon-button-DA2CAGHZ.js";
7
- import { C as F } from "./card-DPmk26CL.js";
8
- import { C as le, b as oe, a as de } from "./collapsible-CTjxzGuF.js";
9
- import { D as ce } from "./date-picker-B6NW_PS5.js";
10
- import { D as S } from "./description-list-CjJqR8WK.js";
11
- import { E as pe } from "./email-input-Dpe63k0K.js";
12
- import { F as ue } from "./fiscal-code-input-B_nYMSEM.js";
13
- import { N as me } from "./number-input-Cgu2TtA8.js";
14
- import { P as fe } from "./panel-header-D313n_9-.js";
15
- import { P as ge } from "./phone-input-BsZIoE36.js";
16
- import { S as be } from "./select-CLSUnKjF.js";
17
- import { S as ye } from "./switch-OILsBLWo.js";
18
- import { T as he } from "./text-area-Bt3p7Pt0.js";
19
- import { T as ve } from "./text-input-CUvCb6ST.js";
20
- import { C as xe } from "./country-select-CfDNFG5c.js";
21
- import { P as Ne } from "./province-select-BaUnkg4S.js";
22
- import { P as Ce } from "./postal-code-input-BznBxVxf.js";
23
- import { C as Ve } from "./city-input-DaQc-Hbj.js";
24
- import { u as we } from "./registry-DvAUVLHh.js";
25
- import { u as ke, F as De, r as Pe, a as Te } from "./field-value-BetdWMA2.js";
26
- import { C as Fe } from "./clipboard-list-rSzfIYZB.js";
27
- import { L as Ie } from "./lock-ClAFG1gy.js";
28
- import { C as $ } from "./check-DrFSN__t.js";
29
- import { X as ze } from "./x-B5YnXwCz.js";
30
- import { P as Se } from "./pencil-B1sKKyuT.js";
31
- import { C as Ee } from "./copy-vRpqqHtY.js";
32
- const Oe = {
33
- id: "patient-details",
34
- // `view_change` backs the view-config actions (show/hide + reorder are both
35
- // view reconfigurations); `set_value` backs the single-value `update_field`
36
- // (not `edit_inline`, which is for granular free-text/formatting edits).
37
- capabilities: ["view_change", "set_value"],
38
- state: {
39
- visibleFieldOrder: {
40
- type: "string[]",
41
- descriptionKey: "ui.agent.patientDetails.state.visibleFieldOrder",
42
- description: 'Ordered list of visible field KEYS (e.g. "fiscalCode"). Never a field value.',
43
- read: (e) => e.getVisibleFieldOrder()
44
- },
45
- patientId: {
46
- type: "string | undefined",
47
- descriptionKey: "ui.agent.patientDetails.state.patientId",
48
- description: "Opaque patient id the panel is bound to. No patient-identifiable data.",
49
- read: (e) => e.getPatientId()
50
- }
51
- },
52
- actions: {
53
- set_visible_fields: {
54
- safety: "write",
55
- argsType: "{ fieldIds: string[] }",
56
- argsSchema: {
57
- type: "object",
58
- properties: {
59
- fieldIds: { type: "array", items: { type: "string" } }
60
- },
61
- required: ["fieldIds"]
62
- },
63
- idempotent: !0,
64
- descriptionKey: "ui.agent.patientDetails.actions.setVisibleFields",
65
- description: "Set which fields are visible (and their order). Unknown ids are ignored.",
66
- examples: [
67
- {
68
- args: { fieldIds: ["lastName", "firstName", "phone", "email"] },
69
- note: "Show only name + contact fields."
70
- }
71
- ],
72
- invoke: (e, a) => {
73
- e.setVisibleFields(a.fieldIds);
74
- }
75
- },
76
- set_field_order: {
77
- safety: "write",
78
- argsType: "{ orderedIds: string[] }",
79
- argsSchema: {
80
- type: "object",
81
- properties: {
82
- orderedIds: { type: "array", items: { type: "string" } }
83
- },
84
- required: ["orderedIds"]
85
- },
86
- idempotent: !0,
87
- descriptionKey: "ui.agent.patientDetails.actions.setFieldOrder",
88
- description: "Reorder the visible fields. Order within a section is honoured; sections stay fixed.",
89
- invoke: (e, a) => {
90
- e.setFieldOrder(a.orderedIds);
91
- }
92
- },
93
- update_field: {
94
- // PHI: mutates a patient-identifiable value. NOT `write` — the runtime
95
- // must confirm + audit. Routes through `onFieldSave` (server write).
96
- safety: "phi",
97
- openWorld: !0,
98
- argsType: "{ fieldId: string; value: unknown }",
99
- argsSchema: {
100
- type: "object",
101
- properties: {
102
- fieldId: { type: "string" },
103
- value: {}
104
- },
105
- required: ["fieldId", "value"]
106
- },
107
- idempotent: !0,
108
- descriptionKey: "ui.agent.patientDetails.actions.updateField",
109
- description: "Write a patient field value via the consumer's audited save path. Subject to the same permissions and validation as a human edit.",
110
- errors: ["no-save-handler", "validation-failed", "permission-denied"],
111
- examples: [
112
- {
113
- args: { fieldId: "job", value: "Architect" },
114
- note: "Update the patient’s occupation."
115
- }
116
- ],
117
- invoke: (e, a) => e.updateField(a.fieldId, a.value)
118
- }
119
- },
120
- domHooks: {
121
- root: {
122
- attr: "data-component",
123
- value: "patient-details",
124
- description: "Marks the PatientDetails root region."
125
- },
126
- instanceId: {
127
- attr: "data-component-id",
128
- sourceProp: "id",
129
- description: "Sourced from the id prop. Addresses a specific panel."
130
- },
131
- item: {
132
- attr: "data-field-id",
133
- description: "Stable field KEY on each row. Never the field value (no PHI in the DOM hook)."
134
- }
135
- }
136
- }, L = H(
137
- "ds:flex ds:flex-col ds:text-[color:var(--foreground)]",
138
- {
139
- variants: {
140
- // `compact` (default) suits the narrow rail panel; `comfortable`
141
- // relaxes spacing for a wider host (a full-width profile page).
142
- density: {
143
- comfortable: "",
144
- compact: ""
145
- }
146
- },
147
- defaultVariants: {
148
- density: "compact"
149
- }
150
- }
151
- ), M = H("ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", {
152
- variants: {
153
- density: {
154
- comfortable: "ds:p-[var(--spacing-md)]",
155
- compact: "ds:p-[var(--spacing-sm)]"
156
- }
157
- },
158
- defaultVariants: {
159
- density: "compact"
160
- }
161
- }), Ae = se(
162
- function({
163
- title: a,
164
- sections: n,
165
- avatar: i,
166
- headerChips: l,
167
- framed: u = !1,
168
- editable: r = !1,
169
- onFieldSave: o,
170
- validate: d,
171
- visibleFieldOrder: f,
172
- defaultVisibleFieldOrder: s,
173
- onVisibleFieldsChange: b,
174
- loading: w = !1,
175
- emptyState: y,
176
- patientId: m,
177
- id: g,
178
- locale: k,
179
- cogLabel: E,
180
- panelTitle: O,
181
- "aria-label": x,
182
- className: D,
183
- ...P
184
- }, T) {
185
- const { t: N } = V(), h = B(), {
186
- visible: C,
187
- catalogueIds: U,
188
- setOrder: A,
189
- toggleField: W,
190
- toggleSection: Y,
191
- moveFieldOnto: X,
192
- reset: G
193
- } = ke(n, {
194
- value: f,
195
- defaultValue: s,
196
- onChange: b
197
- }), J = ie(
198
- () => ({
199
- getVisibleFieldOrder: () => C,
200
- getPatientId: () => m,
201
- setVisibleFields: (p) => A(p),
202
- setFieldOrder: (p) => A(p),
203
- updateField: (p, j) => o ? o(p, j) : Promise.reject(
204
- new Error("PatientDetails: no onFieldSave handler is wired.")
205
- )
206
- }),
207
- [C, m, A, o]
208
- );
209
- we(Oe, J, g);
210
- const K = O ?? N("patientDetails.regionLabel", {
211
- defaultValue: "Patient details"
212
- }), Q = x ?? K, _ = (i == null ? void 0 : i.name) ?? (typeof a == "string" ? a : void 0), Z = !!(i != null && i.src || _), ee = U.some((p) => C.includes(p));
213
- if (w)
214
- return /* @__PURE__ */ t(
215
- "section",
216
- {
217
- ref: T,
218
- "data-component": "patient-details",
219
- "data-component-id": g,
220
- "data-patient-id": m,
221
- "aria-label": Q,
222
- "aria-busy": "true",
223
- className: L({ className: D }),
224
- ...P,
225
- children: /* @__PURE__ */ t("div", { className: M(), children: /* @__PURE__ */ t(Re, {}) })
226
- }
227
- );
228
- const te = n.length === 0 || !ee, R = /* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)]", children: [
229
- Z ? /* @__PURE__ */ t(
230
- ne,
231
- {
232
- size: "md",
233
- name: _,
234
- src: i == null ? void 0 : i.src,
235
- className: "ds:shrink-0"
236
- }
237
- ) : null,
238
- /* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
239
- /* @__PURE__ */ t("h3", { className: "ds:m-0 type-title-item ds:text-[color:var(--foreground)]", children: a }),
240
- l ? /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: l }) : null
241
- ] })
242
- ] });
243
- return /* @__PURE__ */ c(
244
- "section",
245
- {
246
- ref: T,
247
- "data-component": "patient-details",
248
- "data-component-id": g,
249
- "data-patient-id": m,
250
- "aria-labelledby": x ? void 0 : h,
251
- "aria-label": x ?? void 0,
252
- className: L({ className: D }),
253
- ...P,
254
- children: [
255
- /* @__PURE__ */ t(
256
- fe,
257
- {
258
- title: K,
259
- icon: /* @__PURE__ */ t(Fe, { "aria-hidden": "true" }),
260
- headingId: h,
261
- sticky: !0,
262
- divider: !0,
263
- actions: /* @__PURE__ */ t(
264
- De,
265
- {
266
- sections: n,
267
- visible: C,
268
- onToggleField: W,
269
- onToggleSection: Y,
270
- onMoveFieldOnto: X,
271
- onReset: G,
272
- label: E
273
- }
274
- )
275
- }
276
- ),
277
- /* @__PURE__ */ c("div", { className: M(), children: [
278
- u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: R }) }) : R,
279
- te ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: y ?? N("patientDetails.empty", {
280
- defaultValue: "No patient selected."
281
- }) }) : Pe(n, C).filter(({ fields: p }) => p.length > 0).map(({ section: p, fields: j }) => {
282
- const q = /* @__PURE__ */ t(
283
- je,
284
- {
285
- section: p,
286
- fields: j,
287
- editable: r,
288
- onFieldSave: o,
289
- validate: d,
290
- locale: k
291
- }
292
- );
293
- return u ? /* @__PURE__ */ t(F, { variant: "elevated", children: /* @__PURE__ */ t(F.Body, { children: q }) }, p.id) : /* @__PURE__ */ t(re, { children: q }, p.id);
294
- })
295
- ] })
296
- ]
297
- }
298
- );
299
- }
300
- );
301
- Ae.displayName = "PatientDetails";
302
- function je({
303
- section: e,
304
- fields: a,
305
- editable: n,
306
- onFieldSave: i,
307
- validate: l,
308
- locale: u
309
- }) {
310
- const { t: r } = V(), o = B(), d = e.collapsible ?? !0, f = a.length === 0 ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: r("patientDetails.section.empty", {
311
- defaultValue: "No fields shown."
312
- }) }) : /* @__PURE__ */ t(
313
- S,
314
- {
315
- layout: "inline",
316
- density: "compact",
317
- divider: "none",
318
- className: "ds:[--description-list-icon-color:var(--accent)]",
319
- children: a.map((s) => /* @__PURE__ */ t(
320
- Be,
321
- {
322
- field: s,
323
- icon: s.icon ?? null,
324
- editable: n,
325
- onFieldSave: i,
326
- validate: l,
327
- locale: u
328
- },
329
- s.id
330
- ))
331
- }
332
- );
333
- return d ? /* @__PURE__ */ c(
334
- le,
335
- {
336
- defaultOpen: e.defaultOpen ?? !0,
337
- variant: "minimal",
338
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
339
- children: [
340
- /* @__PURE__ */ t("h3", { className: "ds:m-0", children: /* @__PURE__ */ t(oe, { asChild: !0, children: /* @__PURE__ */ t(
341
- "button",
342
- {
343
- type: "button",
344
- id: o,
345
- className: "ds:flex ds:w-full ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)] ds:bg-transparent ds:border-0 ds:p-0 ds:text-start ds:cursor-pointer ds:rounded-[var(--radius-sm)] ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText] type-eyebrow ds:text-[color:var(--foreground)]",
346
- children: e.heading
347
- }
348
- ) }) }),
349
- /* @__PURE__ */ t(de, { "aria-labelledby": o, children: f })
350
- ]
351
- }
352
- ) : /* @__PURE__ */ c(
353
- "section",
354
- {
355
- "aria-labelledby": o,
356
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
357
- children: [
358
- /* @__PURE__ */ t(
359
- "h3",
360
- {
361
- id: o,
362
- className: "ds:m-0 type-eyebrow ds:text-[color:var(--foreground)]",
363
- children: e.heading
364
- }
365
- ),
366
- f
367
- ]
368
- }
369
- );
370
- }
371
- function Be({
372
- field: e,
373
- icon: a,
374
- editable: n,
375
- onFieldSave: i,
376
- validate: l,
377
- locale: u
378
- }) {
379
- const { t: r } = V(), o = B(), d = n && !!e.editable && !!i, [f, s] = v(!1), [b, w] = v(e.editValue), [y, m] = v(null), [g, k] = v(!1), E = I(() => {
380
- w(e.editValue), m(null), s(!0);
381
- }, [e.editValue]), O = I(() => {
382
- s(!1), m(null);
383
- }, []), x = I(async () => {
384
- if (!i) return;
385
- const N = (l == null ? void 0 : l(e.id, b)) ?? null;
386
- if (N) {
387
- m(N);
388
- return;
389
- }
390
- k(!0), m(null);
391
- try {
392
- await i(e.id, b), s(!1);
393
- } catch (h) {
394
- m(
395
- h instanceof Error && h.message ? h.message : r("patientDetails.edit.saveFailed", {
396
- defaultValue: "Could not save. Try again."
397
- })
398
- );
399
- } finally {
400
- k(!1);
401
- }
402
- }, [i, l, e.id, b, r]), D = /* @__PURE__ */ c("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
403
- e.label,
404
- e.sensitive ? /* @__PURE__ */ t(
405
- Ie,
406
- {
407
- "aria-label": r("patientDetails.sensitive", {
408
- defaultValue: "Sensitive"
409
- }),
410
- className: "ds:size-3 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
411
- }
412
- ) : null
413
- ] }), P = typeof e.value == "string" ? e.value : e.copyText ?? (typeof e.editValue == "string" ? e.editValue : void 0), T = f ? /* @__PURE__ */ c("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
414
- /* @__PURE__ */ c("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-2xs)]", children: [
415
- /* @__PURE__ */ t(
416
- Ke,
417
- {
418
- field: e,
419
- value: b,
420
- onChange: w,
421
- invalid: !!y,
422
- errorId: y ? o : void 0,
423
- locale: u,
424
- disabled: g
425
- }
426
- ),
427
- /* @__PURE__ */ t(
428
- z,
429
- {
430
- size: "sm",
431
- intent: "primary",
432
- icon: /* @__PURE__ */ t($, { "aria-hidden": "true" }),
433
- "aria-label": r("patientDetails.edit.save", { defaultValue: "Save" }),
434
- loading: g,
435
- onClick: x
436
- }
437
- ),
438
- /* @__PURE__ */ t(
439
- z,
440
- {
441
- size: "sm",
442
- intent: "ghost",
443
- icon: /* @__PURE__ */ t(ze, { "aria-hidden": "true" }),
444
- "aria-label": r("patientDetails.edit.cancel", {
445
- defaultValue: "Cancel"
446
- }),
447
- disabled: g,
448
- onClick: O
449
- }
450
- )
451
- ] }),
452
- y ? /* @__PURE__ */ t(
453
- "span",
454
- {
455
- id: o,
456
- role: "alert",
457
- className: "type-meta ds:text-[color:var(--destructive)]",
458
- children: y
459
- }
460
- ) : null
461
- ] }) : /* @__PURE__ */ c("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
462
- /* @__PURE__ */ t(
463
- "span",
464
- {
465
- className: `ds:min-w-0 ${e.editType === "textarea" ? "" : "ds:truncate"}${e.mono ? " ds:font-mono" : ""}`,
466
- title: P,
467
- children: /* @__PURE__ */ t(Te, { field: e })
468
- }
469
- ),
470
- e.copyable && e.copyText ? /* @__PURE__ */ t(_e, { text: e.copyText, label: e.label }) : null,
471
- d ? /* @__PURE__ */ t(
472
- z,
473
- {
474
- size: "sm",
475
- intent: "ghost",
476
- className: "ds:shrink-0 ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:focus-visible:opacity-100",
477
- icon: /* @__PURE__ */ t(Se, { "aria-hidden": "true" }),
478
- "aria-label": r("patientDetails.edit.editField", {
479
- field: e.label,
480
- defaultValue: "Edit {{field}}"
481
- }),
482
- onClick: E
483
- }
484
- ) : null
485
- ] });
486
- return /* @__PURE__ */ c(
487
- S.Row,
488
- {
489
- icon: a ?? null,
490
- "data-field-id": e.id,
491
- className: "ds:group",
492
- children: [
493
- /* @__PURE__ */ t(S.Term, { children: D }),
494
- /* @__PURE__ */ t(S.Detail, { children: T })
495
- ]
496
- }
497
- );
498
- }
499
- function Ke({
500
- field: e,
501
- value: a,
502
- onChange: n,
503
- invalid: i,
504
- errorId: l,
505
- locale: u,
506
- disabled: r
507
- }) {
508
- const { t: o } = V(), d = i ? "error" : "default";
509
- switch (e.editType ?? "text") {
510
- case "textarea":
511
- return /* @__PURE__ */ t(
512
- he,
513
- {
514
- size: "sm",
515
- value: typeof a == "string" ? a : "",
516
- onChange: (s) => n(s.target.value),
517
- tone: d,
518
- "aria-label": e.label,
519
- "aria-invalid": i || void 0,
520
- "aria-describedby": l,
521
- disabled: r,
522
- className: "ds:flex-1"
523
- }
524
- );
525
- case "select":
526
- return /* @__PURE__ */ t(
527
- be,
528
- {
529
- size: "sm",
530
- options: e.options ?? [],
531
- value: typeof a == "string" ? a : "",
532
- onValueChange: (s) => n(s),
533
- tone: d,
534
- disabled: r,
535
- "aria-label": e.label,
536
- "aria-invalid": i || void 0,
537
- "aria-describedby": l
538
- }
539
- );
540
- case "boolean":
541
- return /* @__PURE__ */ t(
542
- ye,
543
- {
544
- label: e.label,
545
- checked: a === !0,
546
- onCheckedChange: (s) => n(s),
547
- disabled: r
548
- }
549
- );
550
- case "date":
551
- return /* @__PURE__ */ t(
552
- ce,
553
- {
554
- size: "sm",
555
- value: a instanceof Date ? a : void 0,
556
- onChange: (s) => n(s ?? null),
557
- disabled: r,
558
- "aria-label": e.label
559
- }
560
- );
561
- case "number":
562
- return /* @__PURE__ */ t(
563
- me,
564
- {
565
- size: "sm",
566
- value: typeof a == "number" ? a : null,
567
- onChange: (s) => n(s),
568
- mode: e.currency ? "currency" : "decimal",
569
- currency: e.currency,
570
- locale: u,
571
- tone: d,
572
- disabled: r,
573
- "aria-label": e.label,
574
- "aria-invalid": i || void 0,
575
- "aria-describedby": l
576
- }
577
- );
578
- case "email":
579
- return /* @__PURE__ */ t(
580
- pe,
581
- {
582
- size: "sm",
583
- value: typeof a == "string" ? a : "",
584
- onChange: (s) => n(s.target.value),
585
- "aria-label": e.label,
586
- "aria-invalid": i || void 0,
587
- "aria-describedby": l,
588
- disabled: r,
589
- className: "ds:flex-1"
590
- }
591
- );
592
- case "phone":
593
- return /* @__PURE__ */ t(
594
- ge,
595
- {
596
- size: "sm",
597
- value: typeof a == "string" ? a : "",
598
- onChange: (s) => n(s),
599
- tone: d,
600
- "aria-label": e.label,
601
- "aria-invalid": i || void 0,
602
- "aria-describedby": l,
603
- disabled: r,
604
- className: "ds:flex-1"
605
- }
606
- );
607
- case "fiscalCode":
608
- return /* @__PURE__ */ t(
609
- ue,
610
- {
611
- size: "sm",
612
- value: typeof a == "string" ? a : "",
613
- onChange: (s) => n(s),
614
- tone: d,
615
- "aria-label": e.label,
616
- "aria-invalid": i || void 0,
617
- "aria-describedby": l,
618
- disabled: r,
619
- className: "ds:flex-1"
620
- }
621
- );
622
- // Address / location pickers. Inline edit has no FormField, so we pass
623
- // aria-invalid / aria-describedby explicitly (the components fall back to
624
- // these props outside a FormFieldContext) so the invalid state isn't
625
- // conveyed by colour alone.
626
- case "province":
627
- return /* @__PURE__ */ t(
628
- Ne,
629
- {
630
- size: "sm",
631
- country: "it",
632
- value: typeof a == "string" ? a : "",
633
- onValueChange: (s) => n(s),
634
- tone: d,
635
- disabled: r,
636
- "aria-label": e.label,
637
- "aria-invalid": i || void 0,
638
- "aria-describedby": l,
639
- className: "ds:flex-1"
640
- }
641
- );
642
- case "country":
643
- return /* @__PURE__ */ t(
644
- xe,
645
- {
646
- size: "sm",
647
- value: typeof a == "string" ? a : "",
648
- onValueChange: (s) => n(s),
649
- tone: d,
650
- disabled: r,
651
- "aria-label": e.label,
652
- "aria-invalid": i || void 0,
653
- "aria-describedby": l,
654
- className: "ds:flex-1"
655
- }
656
- );
657
- case "postalCode":
658
- return /* @__PURE__ */ t(
659
- Ce,
660
- {
661
- size: "sm",
662
- country: "it",
663
- value: typeof a == "string" ? a : "",
664
- onValueChange: (s) => n(s),
665
- "aria-label": e.label,
666
- "aria-invalid": i || void 0,
667
- "aria-describedby": l,
668
- disabled: r,
669
- className: "ds:flex-1"
670
- }
671
- );
672
- case "city":
673
- return /* @__PURE__ */ t(
674
- Ve,
675
- {
676
- size: "sm",
677
- value: typeof a == "string" ? a : "",
678
- onValueChange: (s) => n(s),
679
- tone: d,
680
- disabled: r,
681
- "aria-label": e.label,
682
- "aria-invalid": i || void 0,
683
- "aria-describedby": l,
684
- className: "ds:flex-1"
685
- }
686
- );
687
- case "text":
688
- default:
689
- return /* @__PURE__ */ t(
690
- ve,
691
- {
692
- size: "sm",
693
- value: typeof a == "string" ? a : "",
694
- onChange: (s) => n(s.target.value),
695
- tone: d,
696
- "aria-label": e.label,
697
- "aria-invalid": i || void 0,
698
- "aria-describedby": l,
699
- disabled: r,
700
- clearable: !0,
701
- placeholder: o("patientDetails.edit.placeholder", {
702
- defaultValue: "Enter a value"
703
- }),
704
- className: "ds:flex-1"
705
- }
706
- );
707
- }
708
- }
709
- function _e({
710
- text: e,
711
- label: a
712
- }) {
713
- const { t: n } = V(), [i, l] = v(!1), [u, r] = v(""), o = I(async () => {
714
- try {
715
- await navigator.clipboard.writeText(e), l(!0), r(n("keyValuePair.copied", { defaultValue: "Copied" })), setTimeout(() => {
716
- l(!1), r("");
717
- }, 2e3);
718
- } catch {
719
- r(
720
- n("keyValuePair.notAvailable", { defaultValue: "Copy not available" })
721
- ), setTimeout(() => r(""), 3e3);
722
- }
723
- }, [e, n]);
724
- return /* @__PURE__ */ c(ae, { children: [
725
- /* @__PURE__ */ t(
726
- z,
727
- {
728
- size: "sm",
729
- intent: "ghost",
730
- icon: i ? /* @__PURE__ */ t($, { "aria-hidden": "true" }) : /* @__PURE__ */ t(Ee, { "aria-hidden": "true" }),
731
- "aria-label": n("keyValuePair.copy", {
732
- label: a,
733
- defaultValue: "Copy {{label}}"
734
- }),
735
- onClick: o
736
- }
737
- ),
738
- /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: u })
739
- ] });
740
- }
741
- function Re() {
742
- return /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
743
- /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
744
- /* @__PURE__ */ t("span", { className: "ds:size-10 ds:shrink-0 ds:rounded-full ds:bg-[color:var(--muted)]" }),
745
- /* @__PURE__ */ t("span", { className: "ds:h-4 ds:w-1/2 ds:rounded-[var(--radius-sm)] ds:bg-[color:var(--muted)]" })
746
- ] }),
747
- [0, 1, 2].map((e) => /* @__PURE__ */ t(
748
- "span",
749
- {
750
- className: "ds:h-4 ds:w-full ds:rounded-[var(--radius-sm)] ds:bg-[color:var(--muted)]"
751
- },
752
- e
753
- ))
754
- ] });
755
- }
756
- export {
757
- Ae as P,
758
- Oe as p
759
- };
760
- //# sourceMappingURL=patient-details-BGiawUHd.js.map