@alfadocs/ui-kit 1.38.0 → 1.40.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 (311) hide show
  1. package/dist/_chunks/{actions-cell-renderer-CUn1pqEq.js → actions-cell-renderer-BXBy9c0f.js} +3 -3
  2. package/dist/_chunks/{agenda-tray-CG6jUjKc.js → agenda-tray-CBaJASb5.js} +3 -3
  3. package/dist/_chunks/{ai-consent-banner-De4gzSBZ.js → ai-consent-banner-D7I2U-cz.js} +37 -36
  4. package/dist/_chunks/{ai-prompt-input-DdxlaI7q.js → ai-prompt-input-DXknpQCB.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-B6bXlZZk.js → alia-sidebar-CUqaJNPQ.js} +7 -7
  6. package/dist/_chunks/{anamnesis-card-DGwINeNn.js → anamnesis-card-xtEhyojD.js} +2 -2
  7. package/dist/_chunks/{anamnesis-summary-rows-Cxtgo2ok.js → anamnesis-summary-rows-DQUqwWc1.js} +7 -7
  8. package/dist/_chunks/{appointment-card-WsDGBBut.js → appointment-card-TgR_2GKS.js} +134 -102
  9. package/dist/_chunks/{appointment-peek-5S4O1VQP.js → appointment-peek-abiR0T9e.js} +3 -3
  10. package/dist/_chunks/{appointment-timeline-D-rNwKpS.js → appointment-timeline-CCnyUYKz.js} +67 -63
  11. package/dist/_chunks/{appointment-tray-CK2CULg_.js → appointment-tray-N0yEI8UF.js} +4 -4
  12. package/dist/_chunks/{audio-recorder-BlQBC7N_.js → audio-recorder-B7dT-Y3v.js} +3 -3
  13. package/dist/_chunks/{balance-badge-cell-DHs5p0bA.js → balance-badge-cell-o6LldMUA.js} +5 -5
  14. package/dist/_chunks/{bishop-score-D5b8tktp.js → bishop-score-Cu70iv9C.js} +2 -2
  15. package/dist/_chunks/{bmi-calculator-dOKP-vW4.js → bmi-calculator-C9N19aLX.js} +2 -2
  16. package/dist/_chunks/{booking-x3J7sS2G.js → booking-D43ASl8y.js} +1110 -1104
  17. package/dist/_chunks/{button-nJaPh_HC.js → button-CaUe1uyd.js} +11 -7
  18. package/dist/_chunks/{button-group-QmN1VdUW.js → button-group-R32U7SyV.js} +2 -2
  19. package/dist/_chunks/{calendar-7GAUlsNO.js → calendar-ChJQzRw-.js} +2 -2
  20. package/dist/_chunks/calendar-workspace-SN23GsXX.js +11378 -0
  21. package/dist/_chunks/{care-plan-card-COFOI-fI.js → care-plan-card-BOv0NRle.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-BOKn0KW-.js → care-plan-entry-card-d-rZD4li.js} +3 -3
  23. package/dist/_chunks/{care-plan-header-CbuOuVBw.js → care-plan-header-CEmBXn6-.js} +2 -2
  24. package/dist/_chunks/{carousel.agent-Dv4a4M8L.js → carousel.agent-z1yLBpyC.js} +2 -2
  25. package/dist/_chunks/{chart-iWl76PXv.js → chart-PF2krCZC.js} +3 -3
  26. package/dist/_chunks/{chat-input-qM5QpUSq.js → chat-input-Cj7ZYQr5.js} +2 -2
  27. package/dist/_chunks/{chat-message-RniXtrCH.js → chat-message-BMVxiUIX.js} +3 -3
  28. package/dist/_chunks/{code-block-uVjNSI9g.js → code-block-BB-viuTn.js} +2 -2
  29. package/dist/_chunks/{connection-status-OEsWjmRk.js → connection-status-BmA9T0UO.js} +3 -3
  30. package/dist/_chunks/{contact-profile-card--My1H2UD.js → contact-profile-card-Zt6WNg1u.js} +2 -2
  31. package/dist/_chunks/{control-room-rail-DQoHdE1U.js → control-room-rail-CnNZusR5.js} +3 -3
  32. package/dist/_chunks/{copy-field-fYKpl6aN.js → copy-field-B8XRVmQv.js} +2 -2
  33. package/dist/_chunks/credit-card-D9XZsHGA.js +15 -0
  34. package/dist/_chunks/{cycle-calculator-BJeaXiZv.js → cycle-calculator-BH2StWoT.js} +2 -2
  35. package/dist/_chunks/{dashboard-grid-B23BFzRl.js → dashboard-grid-BcXWL5S9.js} +2 -2
  36. package/dist/_chunks/{data-table-Dy1lyumT.js → data-table-CcAx_I1w.js} +6 -6
  37. package/dist/_chunks/{data-table-tabs-BMR0zsVQ.js → data-table-tabs-B9SXA5VP.js} +3 -3
  38. package/dist/_chunks/{description-list-C1RXMDZ_.js → description-list-BsJ_6CQE.js} +2 -2
  39. package/dist/_chunks/{document-preview-DsEyRcNd.js → document-preview-COV0BC6n.js} +2 -2
  40. package/dist/_chunks/{document-scanner-CbWVtm7u.js → document-scanner-B1abl-A4.js} +2 -2
  41. package/dist/_chunks/{due-date-calculator-Dhc9Ljkb.js → due-date-calculator-Buh_mVHq.js} +2 -2
  42. package/dist/_chunks/{editable-currency-cell-renderer-D7blbDFY.js → editable-currency-cell-renderer-Psb6XKHR.js} +3 -3
  43. package/dist/_chunks/{editable-description-7ptNpJEg.js → editable-description-ADMVFPUz.js} +3 -3
  44. package/dist/_chunks/{editor-overlay-8fKAcRsm.js → editor-overlay-9tcPXNWt.js} +2 -2
  45. package/dist/_chunks/{empty-state-X0sVPfVo.js → empty-state-BUN_UAWf.js} +2 -2
  46. package/dist/_chunks/{entity-summary-BbW0mIzU.js → entity-summary-DXejuQ8i.js} +3 -3
  47. package/dist/_chunks/{error-boundary-ayXFCcq4.js → error-boundary-BNT2iQ1w.js} +2 -2
  48. package/dist/_chunks/{face-scheme-uFvhqz6h.js → face-scheme-Dg6ZyLKb.js} +5 -5
  49. package/dist/_chunks/{fetal-weight-C6SxchOv.js → fetal-weight-wx4ycKc6.js} +2 -2
  50. package/dist/_chunks/{field-array-C9dmRaIM.js → field-array-BW9KeeXG.js} +3 -3
  51. package/dist/_chunks/{file-manager-UlcYQv8n.js → file-manager-BfLQxF5t.js} +136 -150
  52. package/dist/_chunks/{finished-terminal-Br61Ip4e.js → finished-terminal-DJd7Z_po.js} +2 -2
  53. package/dist/_chunks/{fiscal-code-input-CkwIdB1y.js → fiscal-code-input-ODQRd_Sw.js} +2 -2
  54. package/dist/_chunks/folder-BghC8_S2.js +20 -0
  55. package/dist/_chunks/{freemium-paywall-BqGk_SBU.js → freemium-paywall-Cz-O9lQD.js} +2 -2
  56. package/dist/_chunks/{gestational-age-calculator-DDOGaPvg.js → gestational-age-calculator-CwbecTul.js} +2 -2
  57. package/dist/_chunks/{hcg-doubling-Bb_n6tEa.js → hcg-doubling-BcXriXJe.js} +2 -2
  58. package/dist/_chunks/{header-BZ4pZlJV.js → header-3o9o9v_T.js} +2 -2
  59. package/dist/_chunks/{header-settings-B8mLc03Q.js → header-settings-CTe45iDy.js} +4 -4
  60. package/dist/_chunks/{hover-card-Bcku1GQu.js → hover-card-BMJBVqIf.js} +2 -2
  61. package/dist/_chunks/{icon-button-8xqRnkdG.js → icon-button-CehAeZoP.js} +2 -2
  62. package/dist/_chunks/{icon-button-group-Dj6CRoYR.js → icon-button-group-DkkdIygu.js} +2 -2
  63. package/dist/_chunks/{icon-picker-CTWzlHJr.js → icon-picker-DMEelg9v.js} +3 -3
  64. package/dist/_chunks/{image-cropper-C84NDTB7.js → image-cropper-BjPjT7wU.js} +2 -2
  65. package/dist/_chunks/{info-tip-ey_Pon2y.js → info-tip-iP2Pm9dh.js} +2 -2
  66. package/dist/_chunks/{insert-result-LCNTskNJ.js → insert-result-DPnOBD85.js} +2 -2
  67. package/dist/_chunks/{key-value-pair-DczGb4yz.js → key-value-pair-DaQI_LZB.js} +2 -2
  68. package/dist/_chunks/{link-cell-renderer-BNa8x6oJ.js → link-cell-renderer-s3oHzOwi.js} +2 -2
  69. package/dist/_chunks/{locale-picker-BLeHbFSc.js → locale-picker-CH3kfrIG.js} +3 -3
  70. package/dist/_chunks/{map-view-CCAlC9IL.js → map-view-CHw4RL6w.js} +2 -2
  71. package/dist/_chunks/{marketplace-app-shell-BwH6Aruw.js → marketplace-app-shell-d2EtcUbe.js} +4 -4
  72. package/dist/_chunks/{message-card-Dm5Xshup.js → message-card-V3sFPiQI.js} +3 -3
  73. package/dist/_chunks/{message-tray-CXjVsKqp.js → message-tray-CrRIHfiQ.js} +4 -4
  74. package/dist/_chunks/{note-timeline-D2oPuQP6.js → note-timeline-Dn_XTo1s.js} +131 -90
  75. package/dist/_chunks/{notes-panel-CkbfDDzj.js → notes-panel-CmTqIWlS.js} +277 -241
  76. package/dist/_chunks/{notification-card-ChcK9Wat.js → notification-card-B2gLO6dK.js} +3 -3
  77. package/dist/_chunks/{notification-tray-_NoChRKi.js → notification-tray-BOEKegVV.js} +4 -4
  78. package/dist/_chunks/{optical-prescription-cphK41eP.js → optical-prescription-LGgmtcST.js} +2 -2
  79. package/dist/_chunks/{panel-subview-BNXN8OEL.js → panel-subview-Cc2Wtt7D.js} +52 -52
  80. package/dist/_chunks/{patient-details-2cIaL-Zb.js → patient-details-C8ImUrVg.js} +3 -3
  81. package/dist/_chunks/{patient-field-row-IHb2VFc2.js → patient-field-row-BRSOKvme.js} +7 -7
  82. package/dist/_chunks/{patient-search-D08b6jgj.js → patient-search-5QcmQKJD.js} +2 -2
  83. package/dist/_chunks/{patient-summary-card-B131Q7Bp.js → patient-summary-card-BhmKB2KR.js} +7 -7
  84. package/dist/_chunks/{payment-automation-upsell-BLTdE2em.js → payment-automation-upsell-BKmBXU4i.js} +17 -16
  85. package/dist/_chunks/{payment-request-card-BxcdvxKR.js → payment-request-card-Cer6XXCn.js} +6 -5
  86. package/dist/_chunks/{periodontal-chart-BF_e3wZp.js → periodontal-chart-DJoZS_o7.js} +2 -2
  87. package/dist/_chunks/{periodontal-chart-card-BJEuJuzh.js → periodontal-chart-card-Nd1ZoYWb.js} +2 -2
  88. package/dist/_chunks/{popover-DzR5QYxp.js → popover-DO-pssF3.js} +2 -2
  89. package/dist/_chunks/{practice-results-CBNRJNnY.js → practice-results-D_jjzwgf.js} +5 -5
  90. package/dist/_chunks/{pregnancy-dating-nV1_S6w0.js → pregnancy-dating-DcyV9ZRD.js} +2 -2
  91. package/dist/_chunks/{pregnancy-weight-gain-tRecShAD.js → pregnancy-weight-gain-Bfq4Kwt5.js} +2 -2
  92. package/dist/_chunks/{privacy-lock-Be39vQUN.js → privacy-lock-CbFCAMM3.js} +3 -3
  93. package/dist/_chunks/{product-hub-panel-C3bMjscm.js → product-hub-panel-w40-_-1s.js} +3 -3
  94. package/dist/_chunks/{public-header.agent-Bl1KFwSE.js → public-header.agent-D-EBVskf.js} +3 -3
  95. package/dist/_chunks/{radiograph-panel.agent-k0G7JuoM.js → radiograph-panel.agent-LrILY2lN.js} +4 -4
  96. package/dist/_chunks/{receipt-euro-C6k4Gzhr.js → receipt-euro-B1cLM_TN.js} +3 -14
  97. package/dist/_chunks/{reviews-panel-Cy969x7q.js → reviews-panel-2GVuxGeT.js} +4 -4
  98. package/dist/_chunks/{rich-text-editor-BTXlorm5.js → rich-text-editor-BJ1-Lkao.js} +1024 -932
  99. package/dist/_chunks/{session-countdown-QMsnRa1x.js → session-countdown-BqppPrw6.js} +2 -2
  100. package/dist/_chunks/{sheet-hm04DGFd.js → sheet-C8WIDFS8.js} +2 -2
  101. package/dist/_chunks/{sign-in-with-alfadocs-button-BLe_quy5.js → sign-in-with-alfadocs-button-DWwBJtyE.js} +2 -2
  102. package/dist/_chunks/{signature-request-b-86AGlT.js → signature-request-D_j2aQu1.js} +359 -370
  103. package/dist/_chunks/{slot-grid-Bk3GZL1p.js → slot-grid-B3eOPkKD.js} +4 -4
  104. package/dist/_chunks/{streaming-text-DjFqLSt_.js → streaming-text-CE1u_oGa.js} +2 -2
  105. package/dist/_chunks/{task-tray-5co9Jr2L.js → task-tray-DIwjAIes.js} +3 -3
  106. package/dist/_chunks/{tasks-panel-BpH-x7U3.js → tasks-panel-CpcikOeY.js} +5 -5
  107. package/dist/_chunks/{theme-toggle-CMz8YfC1.js → theme-toggle-bI0pgDDv.js} +3 -3
  108. package/dist/_chunks/{toast-8jqtbfAB.js → toast-ZZfhA5u0.js} +2 -2
  109. package/dist/_chunks/{token-insert-menu-9Um0JinI.js → token-insert-menu-A9B5AJw6.js} +2 -2
  110. package/dist/_chunks/tool-rail-D89USYE6.js +799 -0
  111. package/dist/_chunks/{tooth-scheme-BWkYxxjR.js → tooth-scheme-DPAq0vQK.js} +3 -3
  112. package/dist/_chunks/{transaction-chip-Dth1nThY.js → transaction-chip-CwgcJiqF.js} +47 -46
  113. package/dist/_chunks/{unit-converter-BTgU50gk.js → unit-converter-C-LpGzrN.js} +2 -2
  114. package/dist/_chunks/user-plus-BtcOLgNU.js +17 -0
  115. package/dist/_chunks/{warning-stack-BW5Dwb3z.js → warning-stack-C0glSB7p.js} +3 -3
  116. package/dist/_chunks/{workflow-map-CXdsxvUj.js → workflow-map-DhR_h5yw.js} +5 -5
  117. package/dist/agent-catalog.json +3 -418
  118. package/dist/agent-i18n/en.json +2 -18
  119. package/dist/components/agenda-tray/index.js +1 -1
  120. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
  121. package/dist/components/ai-consent-banner/index.d.ts +1 -1
  122. package/dist/components/ai-consent-banner/index.js +1 -1
  123. package/dist/components/ai-prompt-input/index.js +1 -1
  124. package/dist/components/anamnesis-card/index.js +1 -1
  125. package/dist/components/appointment-card/appointment-card.d.ts +24 -0
  126. package/dist/components/appointment-card/index.js +2 -2
  127. package/dist/components/appointment-peek/index.js +1 -1
  128. package/dist/components/appointment-timeline/appointment-timeline.d.ts +15 -1
  129. package/dist/components/appointment-timeline/index.js +1 -1
  130. package/dist/components/audio-recorder/index.js +1 -1
  131. package/dist/components/bishop-score/index.js +1 -1
  132. package/dist/components/bmi-calculator/index.js +1 -1
  133. package/dist/components/booking/booking-types.d.ts +6 -0
  134. package/dist/components/booking/cascade.d.ts +6 -0
  135. package/dist/components/booking/index.js +1 -1
  136. package/dist/components/button/button.d.ts +1 -1
  137. package/dist/components/button/index.js +2 -2
  138. package/dist/components/button-group/index.js +1 -1
  139. package/dist/components/calendar/index.js +1 -1
  140. package/dist/components/care-plan-card/index.js +1 -1
  141. package/dist/components/care-plan-entry-card/index.js +1 -1
  142. package/dist/components/care-plan-header/index.js +1 -1
  143. package/dist/components/carousel/index.js +1 -1
  144. package/dist/components/chart/index.js +1 -1
  145. package/dist/components/chat-input/index.js +1 -1
  146. package/dist/components/chat-message/index.js +1 -1
  147. package/dist/components/connection-status/index.js +1 -1
  148. package/dist/components/contact-profile-card/index.js +1 -1
  149. package/dist/components/control-room-rail/index.js +1 -1
  150. package/dist/components/copy-field/index.js +1 -1
  151. package/dist/components/cycle-calculator/index.js +1 -1
  152. package/dist/components/dashboard-grid/index.js +1 -1
  153. package/dist/components/data-table/index.js +4 -4
  154. package/dist/components/data-table-tabs/index.js +1 -1
  155. package/dist/components/description-list/index.js +1 -1
  156. package/dist/components/document-preview/index.js +1 -1
  157. package/dist/components/document-scanner/index.js +1 -1
  158. package/dist/components/due-date-calculator/index.js +1 -1
  159. package/dist/components/editable-description/index.js +1 -1
  160. package/dist/components/editor-overlay/index.js +1 -1
  161. package/dist/components/empty-state/index.js +1 -1
  162. package/dist/components/entity-summary/index.js +1 -1
  163. package/dist/components/error-boundary/index.js +1 -1
  164. package/dist/components/face-scheme/index.js +1 -1
  165. package/dist/components/fetal-weight/index.js +1 -1
  166. package/dist/components/field-array/index.js +1 -1
  167. package/dist/components/file-manager/index.js +1 -1
  168. package/dist/components/finished-terminal/index.js +1 -1
  169. package/dist/components/fiscal-code-input/index.js +1 -1
  170. package/dist/components/freemium-paywall/index.js +1 -1
  171. package/dist/components/gestational-age-calculator/index.js +1 -1
  172. package/dist/components/hcg-doubling/index.js +1 -1
  173. package/dist/components/header/index.js +1 -1
  174. package/dist/components/header-settings/index.js +1 -1
  175. package/dist/components/hover-card/index.js +1 -1
  176. package/dist/components/icon-button/index.js +1 -1
  177. package/dist/components/icon-button-group/index.js +1 -1
  178. package/dist/components/icon-picker/index.js +1 -1
  179. package/dist/components/image-cropper/index.js +1 -1
  180. package/dist/components/info-tip/index.js +1 -1
  181. package/dist/components/key-value-pair/index.js +1 -1
  182. package/dist/components/locale-picker/index.js +1 -1
  183. package/dist/components/map-view/index.js +1 -1
  184. package/dist/components/message-card/index.js +1 -1
  185. package/dist/components/message-tray/index.js +1 -1
  186. package/dist/components/note-timeline/index.js +1 -1
  187. package/dist/components/note-timeline/note-timeline.d.ts +9 -0
  188. package/dist/components/notes-panel/index.d.ts +1 -0
  189. package/dist/components/notes-panel/index.js +1 -1
  190. package/dist/components/notes-panel/notes-panel.d.ts +13 -5
  191. package/dist/components/notification-card/index.js +1 -1
  192. package/dist/components/notification-tray/index.js +1 -1
  193. package/dist/components/optical-prescription/index.js +1 -1
  194. package/dist/components/panel-subview/index.js +1 -1
  195. package/dist/components/patient-details/index.js +1 -1
  196. package/dist/components/patient-search/index.js +1 -1
  197. package/dist/components/patient-summary-card/index.js +1 -1
  198. package/dist/components/patient-table/index.js +1 -1
  199. package/dist/components/payment-card/index.js +1 -1
  200. package/dist/components/periodontal-chart/index.js +1 -1
  201. package/dist/components/periodontal-chart-card/index.js +1 -1
  202. package/dist/components/popover/index.js +1 -1
  203. package/dist/components/practice-results/index.js +1 -1
  204. package/dist/components/pregnancy-dating/index.js +1 -1
  205. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  206. package/dist/components/privacy-lock/index.js +1 -1
  207. package/dist/components/product-hub-tray/index.js +1 -1
  208. package/dist/components/public-header/index.js +1 -1
  209. package/dist/components/radiograph-panel/index.js +1 -1
  210. package/dist/components/reviews-panel/index.js +1 -1
  211. package/dist/components/rich-text-editor/index.d.ts +1 -1
  212. package/dist/components/rich-text-editor/index.js +1 -1
  213. package/dist/components/rich-text-editor/rich-text-editor.d.ts +48 -0
  214. package/dist/components/session-countdown/index.js +1 -1
  215. package/dist/components/sheet/index.js +1 -1
  216. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  217. package/dist/components/slot-grid/index.js +1 -1
  218. package/dist/components/streaming-text/index.js +1 -1
  219. package/dist/components/task-tray/index.js +1 -1
  220. package/dist/components/tasks-panel/index.js +1 -1
  221. package/dist/components/theme-toggle/index.js +1 -1
  222. package/dist/components/toast/index.js +1 -1
  223. package/dist/components/token-insert-menu/index.js +1 -1
  224. package/dist/components/tool-rail/index.js +1 -1
  225. package/dist/components/tooth-scheme/index.js +1 -1
  226. package/dist/components/transaction-chip/index.js +1 -1
  227. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  228. package/dist/components/unit-converter/index.js +1 -1
  229. package/dist/components/warning-stack/index.js +1 -1
  230. package/dist/components/workflow/index.js +1 -1
  231. package/dist/host-compat.css +13 -4
  232. package/dist/i18n/locales/ar.d.ts +248 -194
  233. package/dist/i18n/locales/ar.js +253 -199
  234. package/dist/i18n/locales/de.d.ts +232 -178
  235. package/dist/i18n/locales/de.js +237 -183
  236. package/dist/i18n/locales/el.d.ts +247 -193
  237. package/dist/i18n/locales/el.js +252 -198
  238. package/dist/i18n/locales/en.d.ts +54 -0
  239. package/dist/i18n/locales/en.js +59 -5
  240. package/dist/i18n/locales/es.d.ts +240 -186
  241. package/dist/i18n/locales/es.js +245 -191
  242. package/dist/i18n/locales/fr.d.ts +234 -180
  243. package/dist/i18n/locales/fr.js +239 -185
  244. package/dist/i18n/locales/hi.d.ts +248 -194
  245. package/dist/i18n/locales/hi.js +257 -199
  246. package/dist/i18n/locales/it.d.ts +192 -138
  247. package/dist/i18n/locales/it.js +197 -143
  248. package/dist/i18n/locales/ja.d.ts +246 -192
  249. package/dist/i18n/locales/ja.js +251 -197
  250. package/dist/i18n/locales/nl.d.ts +237 -183
  251. package/dist/i18n/locales/nl.js +242 -188
  252. package/dist/i18n/locales/pl.d.ts +242 -188
  253. package/dist/i18n/locales/pl.js +247 -193
  254. package/dist/i18n/locales/pt.d.ts +242 -188
  255. package/dist/i18n/locales/pt.js +247 -193
  256. package/dist/i18n/locales/ro.d.ts +241 -187
  257. package/dist/i18n/locales/ro.js +246 -192
  258. package/dist/i18n/locales/ru.d.ts +247 -193
  259. package/dist/i18n/locales/ru.js +252 -198
  260. package/dist/i18n/locales/sq.d.ts +241 -187
  261. package/dist/i18n/locales/sq.js +246 -192
  262. package/dist/i18n/locales/sv.d.ts +242 -188
  263. package/dist/i18n/locales/sv.js +247 -193
  264. package/dist/i18n/locales/tr.d.ts +248 -194
  265. package/dist/i18n/locales/tr.js +253 -199
  266. package/dist/i18n/locales/zh.d.ts +241 -187
  267. package/dist/i18n/locales/zh.js +246 -192
  268. package/dist/index.js +107 -107
  269. package/dist/locales/ar.json +253 -199
  270. package/dist/locales/de.json +237 -183
  271. package/dist/locales/el.json +252 -198
  272. package/dist/locales/en.json +59 -5
  273. package/dist/locales/es.json +245 -191
  274. package/dist/locales/fr.json +239 -185
  275. package/dist/locales/hi.json +253 -199
  276. package/dist/locales/it.json +197 -143
  277. package/dist/locales/ja.json +251 -197
  278. package/dist/locales/nl.json +242 -188
  279. package/dist/locales/pl.json +247 -193
  280. package/dist/locales/pt.json +247 -193
  281. package/dist/locales/ro.json +246 -192
  282. package/dist/locales/ru.json +252 -198
  283. package/dist/locales/sq.json +246 -192
  284. package/dist/locales/sv.json +247 -193
  285. package/dist/locales/tr.json +253 -199
  286. package/dist/locales/zh.json +246 -192
  287. package/dist/patterns/alia-assistant/index.js +1 -1
  288. package/dist/patterns/anamnesis/index.js +1 -1
  289. package/dist/patterns/calendar/calendar-appointment-details.d.ts +7 -0
  290. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +10 -5
  291. package/dist/patterns/calendar/calendar-bookings-panel.d.ts +31 -0
  292. package/dist/patterns/calendar/calendar-info-hover.d.ts +15 -1
  293. package/dist/patterns/calendar/calendar-privacy.d.ts +23 -0
  294. package/dist/patterns/calendar/calendar-rail-settle.d.ts +14 -0
  295. package/dist/patterns/calendar/calendar-upcoming-panel.d.ts +32 -0
  296. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +62 -0
  297. package/dist/patterns/calendar/calendar-workspace.d.ts +14 -1
  298. package/dist/patterns/calendar/calendar-workspace.model.d.ts +37 -1
  299. package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
  300. package/dist/patterns/calendar/calendar.model.d.ts +8 -2
  301. package/dist/patterns/calendar/calendar.sheets.d.ts +49 -28
  302. package/dist/patterns/calendar/calendar.types.d.ts +6 -0
  303. package/dist/patterns/calendar/index.d.ts +2 -2
  304. package/dist/patterns/calendar/index.js +1 -1
  305. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  306. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  307. package/dist/patterns/signature-request/index.js +1 -1
  308. package/dist/tokens.css +1 -1
  309. package/package.json +3 -1
  310. package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +0 -9900
  311. package/dist/_chunks/tool-rail-BP8sjxCw.js +0 -667
@@ -1,28 +1,28 @@
1
- import { jsxs as o, jsx as n, Fragment as $e } from "react/jsx-runtime";
2
- import { forwardRef as Je, useRef as f, useState as x, useId as Qe, useCallback as w, useEffect as me, useImperativeHandle as Ue, useMemo as Xe } from "react";
3
- import { c as Ze } from "./index-D2ZczOXr.js";
4
- import { useTranslation as et } from "react-i18next";
5
- import { u as tt } from "./registry-DvAUVLHh.js";
6
- import { C as nt } from "./clinical-note-card-DdsGYMmI.js";
7
- import { R as at } from "./rich-text-editor-BTXlorm5.js";
8
- import { T as it } from "./text-area-Bt3p7Pt0.js";
9
- import { A as z } from "./alert-CiQ5Pa3Q.js";
10
- import { B as j } from "./button-nJaPh_HC.js";
11
- import { I as pe } from "./icon-button-8xqRnkdG.js";
1
+ import { jsxs as o, jsx as n, Fragment as Ue } from "react/jsx-runtime";
2
+ import { forwardRef as Xe, useRef as f, useState as w, useId as Ze, useCallback as T, useEffect as me, useImperativeHandle as et, useMemo as tt } from "react";
3
+ import { c as Ce } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as nt } from "react-i18next";
5
+ import { u as at } from "./registry-DvAUVLHh.js";
6
+ import { C as it } from "./clinical-note-card-DdsGYMmI.js";
7
+ import { R as st } from "./rich-text-editor-BJ1-Lkao.js";
8
+ import { T as lt } from "./text-area-Bt3p7Pt0.js";
9
+ import { A as I } from "./alert-CiQ5Pa3Q.js";
10
+ import { B as z } from "./button-CaUe1uyd.js";
11
+ import { I as ge } from "./icon-button-CehAeZoP.js";
12
12
  import { C as rt } from "./checkbox-CZkipDn7.js";
13
- import { C as ge } from "./card-DPmk26CL.js";
14
- import { C as lt, S as W } from "./skeleton-B1KTdJ4N.js";
15
- import { D as h } from "./dialog-BJiLqhx6.js";
16
- import { P as st } from "./panel-header-D_mTdhUp.js";
17
- import { a as ot, u as dt, R as ct } from "./use-list-reflow-Cw43nxw5.js";
18
- import { u as ut } from "./use-theme-CAuo6EYT.js";
19
- import { N as ft } from "./notebook-pen-CO7HoM-W.js";
20
- import { P as mt } from "./pencil-B1sKKyuT.js";
21
- import { T as pt } from "./trash-2-uumy3fy1.js";
22
- function he(i, c) {
13
+ import { C as he } from "./card-DPmk26CL.js";
14
+ import { C as ot, S as M } from "./skeleton-B1KTdJ4N.js";
15
+ import { D as v } from "./dialog-BJiLqhx6.js";
16
+ import { P as dt } from "./panel-header-D_mTdhUp.js";
17
+ import { a as ct, u as ut, R as ft } from "./use-list-reflow-Cw43nxw5.js";
18
+ import { u as pt } from "./use-theme-CAuo6EYT.js";
19
+ import { N as mt } from "./notebook-pen-CO7HoM-W.js";
20
+ import { P as gt } from "./pencil-B1sKKyuT.js";
21
+ import { T as ht } from "./trash-2-uumy3fy1.js";
22
+ function ve(i, c) {
23
23
  return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string" && i.message.trim() ? i.message : c;
24
24
  }
25
- const gt = {
25
+ const vt = {
26
26
  id: "notes-panel",
27
27
  // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
28
28
  // with no dedicated capability in the closed vocabulary.
@@ -121,100 +121,117 @@ const gt = {
121
121
  description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
122
122
  }
123
123
  }
124
- }, ht = Ze(
125
- "ds:flex ds:flex-col ds:rounded-[var(--radius-md)] ds:border-s-2 ds:ps-[var(--spacing-sm)]",
124
+ }, yt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", bt = Ce(
125
+ "ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
126
126
  {
127
127
  variants: {
128
128
  current: {
129
- true: "ds:border-[color:var(--info)] ds:bg-[color:var(--info)]/10 ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
130
- false: "ds:border-transparent"
131
- }
129
+ true: "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
130
+ false: ""
131
+ },
132
+ washed: { true: yt, false: "" }
132
133
  },
133
- defaultVariants: { current: !1 }
134
+ defaultVariants: { current: !1, washed: !1 }
134
135
  }
135
- ), vt = "ds:opacity-0", yt = [
136
+ ), ye = Ce(
137
+ "ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-lg)] ds:bg-[color:var(--accent)]",
138
+ {
139
+ variants: {
140
+ state: {
141
+ addressed: [
142
+ "ds:opacity-0",
143
+ "ds:animate-[note-addressed_calc(var(--animation-duration)*9)_var(--ease-in-out)]",
144
+ "ds:motion-reduce:animate-none ds:motion-reduce:opacity-[var(--opacity-12)]",
145
+ "ds:[.theme-accessible_&]:animate-none ds:[.theme-accessible_&]:opacity-[var(--opacity-12)]"
146
+ ].join(" "),
147
+ editing: "ds:opacity-[var(--opacity-12)]"
148
+ }
149
+ }
150
+ }
151
+ ), Ct = "ds:opacity-0", Pt = [
136
152
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
137
153
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
138
- ].join(" "), bt = [3, 2, 3];
139
- function ve(i) {
154
+ ].join(" "), xt = [3, 2, 3];
155
+ function be(i) {
140
156
  return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
141
157
  }
142
- const Kt = Je(
158
+ const Kt = Xe(
143
159
  function({
144
160
  id: c,
145
- notes: L,
161
+ notes: j,
146
162
  onAddNote: m,
147
- status: y = "ready",
163
+ status: C = "ready",
148
164
  onRetry: X,
149
- currentNoteId: b,
150
- currentNoteKey: ye,
151
- composer: p = "rich",
152
- editorToolbar: be = "standard",
153
- redactor: Ce,
154
- imageUploadUrl: Pe,
155
- showClinicalToggle: xe = !0,
156
- canAddClinicalNote: _ = !0,
157
- clinicalGatedReason: we,
158
- defaultClinical: R = !1,
159
- onRequestAiDraft: Re,
160
- aiDraftFormat: Te,
161
- aiPrivacyNotice: ke,
162
- onDictate: Ne,
163
- onProofread: Ve,
164
- onAutoFormat: Ee,
165
- onTogglePin: A,
165
+ currentNoteId: y,
166
+ currentNoteKey: Z,
167
+ composer: g = "rich",
168
+ editorToolbar: Pe = "standard",
169
+ redactor: xe,
170
+ imageUploadUrl: we,
171
+ showClinicalToggle: Te = !0,
172
+ canAddClinicalNote: A = !0,
173
+ clinicalGatedReason: Ee,
174
+ defaultClinical: E = !1,
175
+ onRequestAiDraft: Ne,
176
+ aiDraftFormat: Ve,
177
+ aiPrivacyNotice: Re,
178
+ onDictate: ke,
179
+ onProofread: _e,
180
+ onAutoFormat: Se,
181
+ aiConsent: Ie,
182
+ onTogglePin: L,
166
183
  onToggleFlag: H,
167
- noteActions: Z,
168
- onEditNote: T,
169
- editClinical: Ie = !1,
170
- onDeleteNote: g,
171
- confirmDelete: G = !0,
172
- title: Se,
173
- composerPlaceholder: ze,
174
- addNoteLabel: je,
175
- emptyState: Le,
176
- className: _e,
177
- "aria-label": Y,
178
- ...Ae
179
- }, He) {
180
- const { t: a, i18n: ee } = et(), v = f(null), [C, k] = x(""), [B, O] = x(R), [u, te] = x(!1), [ne, N] = x(null), [l, $] = x(null), ae = f(!1);
181
- y === "loading" && (ae.current = !0);
182
- const Be = ae.current ? lt : "", Oe = Se ?? a("notesPanel.title", { defaultValue: "Notes" }), ie = Qe(), re = ze ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), le = l !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), De = p === "rich" ? ve(C) : C.trim().length > 0, Ke = w(() => {
183
- var S;
184
- if (!(l !== null ? T : m) || u) return;
185
- const t = p === "rich", d = t ? ((S = v.current) == null ? void 0 : S.getHTML()) ?? C : C.trim();
186
- if (t ? !ve(d) : !d) return;
187
- const s = () => {
188
- var P;
189
- t && ((P = v.current) == null || P.clear()), k(""), O(R), $(null);
184
+ noteActions: ee,
185
+ onEditNote: N,
186
+ editClinical: ze = !1,
187
+ onDeleteNote: h,
188
+ confirmDelete: $ = !0,
189
+ title: je,
190
+ composerPlaceholder: Ae,
191
+ addNoteLabel: Le,
192
+ emptyState: He,
193
+ className: Oe,
194
+ "aria-label": G,
195
+ ...Be
196
+ }, We) {
197
+ const { t: a, i18n: te } = nt(), b = f(null), [P, V] = w(""), [O, B] = w(E), [u, ne] = w(!1), [ae, R] = w(null), [r, Y] = w(null), ie = f(!1);
198
+ C === "loading" && (ie.current = !0);
199
+ const De = ie.current ? ot : "", qe = je ?? a("notesPanel.title", { defaultValue: "Notes" }), se = Ze(), le = Ae ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), Fe = g === "rich" ? be(P) : P.trim().length > 0, Ke = T(() => {
200
+ var x;
201
+ if (!(r !== null ? N : m) || u) return;
202
+ const t = g === "rich", d = t ? ((x = b.current) == null ? void 0 : x.getHTML()) ?? P : P.trim();
203
+ if (t ? !be(d) : !d) return;
204
+ const l = () => {
205
+ var p;
206
+ t && ((p = b.current) == null || p.clear()), V(""), B(E), Y(null);
190
207
  };
191
- N(null);
192
- let r;
208
+ R(null);
209
+ let s;
193
210
  try {
194
- r = l !== null && T ? T(l, { content: d, clinical: B }) : m == null ? void 0 : m({ content: d, clinical: B });
195
- } catch (P) {
196
- N(he(P, a("notesPanel.addFailed")));
211
+ s = r !== null && N ? N(r, { content: d, clinical: O }) : m == null ? void 0 : m({ content: d, clinical: O });
212
+ } catch (p) {
213
+ R(ve(p, a("notesPanel.addFailed")));
197
214
  return;
198
215
  }
199
- if (!r || typeof r.then != "function") return s();
200
- te(!0), Promise.resolve(r).then(
201
- s,
202
- (P) => N(he(P, a("notesPanel.addFailed")))
203
- ).finally(() => te(!1));
216
+ if (!s || typeof s.then != "function") return l();
217
+ ne(!0), Promise.resolve(s).then(
218
+ l,
219
+ (p) => R(ve(p, a("notesPanel.addFailed")))
220
+ ).finally(() => ne(!1));
204
221
  }, [
205
- p,
206
- C,
207
- B,
208
- R,
209
- l,
222
+ g,
223
+ P,
224
+ O,
225
+ E,
226
+ r,
210
227
  m,
211
- T,
228
+ N,
212
229
  u,
213
230
  a
214
- ]), se = xe && (l === null || Ie), oe = w(
231
+ ]), oe = Te && (r === null || ze), de = T(
215
232
  (e) => {
216
233
  try {
217
- return new Intl.DateTimeFormat(ee.language, {
234
+ return new Intl.DateTimeFormat(te.language, {
218
235
  day: "numeric",
219
236
  month: "long",
220
237
  year: "numeric",
@@ -225,56 +242,56 @@ const Kt = Je(
225
242
  return e.dateIso;
226
243
  }
227
244
  },
228
- [ee.language]
229
- ), qe = w(
245
+ [te.language]
246
+ ), Me = T(
230
247
  (e) => {
231
- var d, s, r;
248
+ var d, l, s;
232
249
  if (!e.id || u) return;
233
250
  const t = e.content ?? "";
234
- N(null), $(e.id), O(e.clinical ?? !1), k(t), p === "rich" && ((d = v.current) == null || d.clear(), (s = v.current) == null || s.insertAtCursor(t, { asHtml: !0 })), (r = v.current) == null || r.focus();
251
+ R(null), Y(e.id), B(e.clinical ?? !1), V(t), g === "rich" && ((d = b.current) == null || d.clear(), (l = b.current) == null || l.insertAtCursor(t, { asHtml: !0 })), (s = b.current) == null || s.focus();
235
252
  },
236
- [p, u]
237
- ), D = w(() => {
253
+ [g, u]
254
+ ), W = T(() => {
238
255
  var e;
239
- p === "rich" && ((e = v.current) == null || e.clear()), k(""), O(R), N(null), $(null);
240
- }, [p, R]), de = l === null || L.some((e) => e.id === l && !e.deleted);
256
+ g === "rich" && ((e = b.current) == null || e.clear()), V(""), B(E), R(null), Y(null);
257
+ }, [g, E]), ce = r === null || j.some((e) => e.id === r && !e.deleted);
241
258
  me(() => {
242
- de || D();
243
- }, [de, D]);
244
- const V = [...L].sort(
259
+ ce || W();
260
+ }, [ce, W]);
261
+ const k = [...j].sort(
245
262
  (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
246
- ), { resolvedTheme: Fe } = ut(), ce = Fe.endsWith("-accessible") || void 0, { containerRef: Me } = ot({
247
- key: V.map((e) => e.id).join(),
248
- reduceMotion: ce
249
- }), E = dt({ reduceMotion: ce }), [K, q] = x(null), We = w(
263
+ ), { resolvedTheme: $e } = pt(), ue = $e.endsWith("-accessible") || void 0, { containerRef: Ge } = ct({
264
+ key: k.map((e) => e.id).join(),
265
+ reduceMotion: ue
266
+ }), _ = ut({ reduceMotion: ue }), [D, q] = w(null), Ye = T(
250
267
  (e) => {
251
- g && (G ? q(e) : E.leave(e, () => g(e)));
268
+ h && ($ ? q(e) : _.leave(e, () => h(e)));
252
269
  },
253
- [G, E, g]
254
- ), Ge = w(() => {
255
- if (!K || !g) return;
256
- const e = K;
257
- q(null), E.leave(e, () => g(e));
258
- }, [K, g, E]), J = f(null);
270
+ [$, _, h]
271
+ ), Je = T(() => {
272
+ if (!D || !h) return;
273
+ const e = D;
274
+ q(null), _.leave(e, () => h(e));
275
+ }, [D, h, _]), J = f(null);
259
276
  me(() => {
260
277
  var e, t;
261
- b && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
262
- }, [b, ye]);
263
- const Q = f(L);
264
- Q.current = L;
265
- const I = f(m);
266
- I.current = m;
267
- const F = f(A);
268
- F.current = A;
269
- const M = f(H);
270
- M.current = H;
271
- const U = f(_);
272
- U.current = _;
273
- const ue = f(b);
274
- ue.current = b;
275
- const fe = f(null);
276
- Ue(He, () => fe.current, []);
277
- const Ye = Xe(
278
+ y && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
279
+ }, [y, Z]);
280
+ const Q = f(j);
281
+ Q.current = j;
282
+ const S = f(m);
283
+ S.current = m;
284
+ const F = f(L);
285
+ F.current = L;
286
+ const K = f(H);
287
+ K.current = H;
288
+ const U = f(A);
289
+ U.current = A;
290
+ const fe = f(y);
291
+ fe.current = y;
292
+ const pe = f(null);
293
+ et(We, () => pe.current, []);
294
+ const Qe = tt(
278
295
  () => ({
279
296
  // Ids + flags only — never the note body or author (both PHI).
280
297
  getNotes: () => Q.current.map((e) => ({
@@ -283,84 +300,86 @@ const Kt = Je(
283
300
  flagged: !!e.flagged,
284
301
  clinical: !!e.clinical
285
302
  })),
286
- canAddNote: () => !!I.current,
303
+ canAddNote: () => !!S.current,
287
304
  canAddClinical: () => U.current,
288
- getCurrentNoteId: () => ue.current ?? null,
305
+ getCurrentNoteId: () => fe.current ?? null,
289
306
  addNote: (e) => {
290
307
  var t;
291
308
  if (!(e.clinical && !U.current))
292
- return (t = I.current) == null ? void 0 : t.call(I, e);
309
+ return (t = S.current) == null ? void 0 : t.call(S, e);
293
310
  },
294
311
  togglePin: (e) => {
295
- var d, s;
296
- const t = Q.current.find((r) => r.id === e);
297
- t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (s = F.current) == null || s.call(F, e);
312
+ var d, l;
313
+ const t = Q.current.find((s) => s.id === e);
314
+ t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (l = F.current) == null || l.call(F, e);
298
315
  },
299
316
  toggleFlag: (e) => {
300
317
  var t;
301
- return (t = M.current) == null ? void 0 : t.call(M, e);
318
+ return (t = K.current) == null ? void 0 : t.call(K, e);
302
319
  }
303
320
  }),
304
321
  []
305
322
  );
306
- return tt(gt, Ye, c), /* @__PURE__ */ o(
323
+ return at(vt, Qe, c), /* @__PURE__ */ o(
307
324
  "section",
308
325
  {
309
- ref: fe,
326
+ ref: pe,
310
327
  "data-component": "notes-panel",
311
328
  "data-component-id": c,
312
- "aria-labelledby": Y ? void 0 : ie,
313
- "aria-label": Y,
314
- className: ["ds:flex ds:flex-col", _e].filter(Boolean).join(" "),
315
- ...Ae,
329
+ "aria-labelledby": G ? void 0 : se,
330
+ "aria-label": G,
331
+ className: ["ds:flex ds:flex-col", Oe].filter(Boolean).join(" "),
332
+ ...Be,
316
333
  children: [
317
334
  /* @__PURE__ */ n(
318
- st,
335
+ dt,
319
336
  {
320
- title: Oe,
321
- icon: /* @__PURE__ */ n(ft, { "aria-hidden": "true" }),
322
- headingId: Y ? void 0 : ie,
337
+ title: qe,
338
+ icon: /* @__PURE__ */ n(mt, { "aria-hidden": "true" }),
339
+ headingId: G ? void 0 : se,
323
340
  sticky: !0,
324
341
  divider: !0
325
342
  }
326
343
  ),
327
344
  /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
328
- m || l !== null ? /* @__PURE__ */ o(
345
+ m || r !== null ? /* @__PURE__ */ o(
329
346
  "div",
330
347
  {
331
- "data-notes-panel-composer": l !== null ? "edit" : "add",
348
+ "data-notes-panel-composer": r !== null ? "edit" : "add",
332
349
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
333
350
  children: [
334
- p === "rich" ? /* @__PURE__ */ n(
335
- at,
351
+ g === "rich" ? /* @__PURE__ */ n(
352
+ st,
336
353
  {
337
- ref: v,
338
- ariaLabel: le,
339
- placeholder: re,
340
- toolbar: be,
354
+ ref: b,
355
+ ariaLabel: re,
356
+ placeholder: le,
357
+ toolbar: Pe,
341
358
  minHeight: "fill",
342
- redactor: Ce,
343
- imageUploadUrl: Pe,
359
+ redactor: xe,
360
+ imageUploadUrl: we,
344
361
  readOnly: u,
345
- onChange: ({ html: e }) => k(e),
346
- onRequestAiDraft: Re,
347
- aiDraftFormat: Te,
348
- aiPrivacyNotice: ke,
349
- onDictate: Ne,
350
- onProofread: Ve,
351
- onAutoFormat: Ee
362
+ onChange: ({ html: e }) => V(e),
363
+ onRequestAiDraft: Ne,
364
+ aiDraftFormat: Ve,
365
+ aiPrivacyNotice: Re,
366
+ onDictate: ke,
367
+ onProofread: _e,
368
+ onAutoFormat: Se,
369
+ aiConsent: Ie,
370
+ aiConsentHeadingLevel: 3
352
371
  }
353
372
  ) : /* @__PURE__ */ n(
354
- it,
373
+ lt,
355
374
  {
356
- value: C,
375
+ value: P,
357
376
  readOnly: u,
358
- onChange: (e) => k(e.target.value),
359
- placeholder: re,
377
+ onChange: (e) => V(e.target.value),
378
+ placeholder: le,
360
379
  autoResize: !0,
361
380
  minRows: 2,
362
381
  maxRows: 6,
363
- "aria-label": le
382
+ "aria-label": re
364
383
  }
365
384
  ),
366
385
  /* @__PURE__ */ o(
@@ -368,56 +387,56 @@ const Kt = Je(
368
387
  {
369
388
  className: [
370
389
  "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
371
- se ? "ds:justify-between" : "ds:justify-end"
390
+ oe ? "ds:justify-between" : "ds:justify-end"
372
391
  ].join(" "),
373
392
  children: [
374
- se ? /* @__PURE__ */ n(
393
+ oe ? /* @__PURE__ */ n(
375
394
  rt,
376
395
  {
377
396
  size: "sm",
378
397
  label: a("notesPanel.clinicalToggle", {
379
398
  defaultValue: "Clinical note"
380
399
  }),
381
- checked: B,
382
- onCheckedChange: (e) => O(e === !0),
383
- disabled: u || !_,
384
- disabledReason: _ ? void 0 : we ?? a("notesPanel.clinicalGated", {
400
+ checked: O,
401
+ onCheckedChange: (e) => B(e === !0),
402
+ disabled: u || !A,
403
+ disabledReason: A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
385
404
  defaultValue: "You do not have permission to write clinical notes."
386
405
  })
387
406
  }
388
407
  ) : null,
389
408
  /* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
390
- l !== null ? /* @__PURE__ */ n(
391
- j,
409
+ r !== null ? /* @__PURE__ */ n(
410
+ z,
392
411
  {
393
412
  type: "button",
394
413
  size: "sm",
395
414
  intent: "ghost",
396
- onClick: D,
415
+ onClick: W,
397
416
  disabled: u,
398
417
  children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
399
418
  }
400
419
  ) : null,
401
420
  /* @__PURE__ */ n(
402
- j,
421
+ z,
403
422
  {
404
423
  type: "button",
405
424
  size: "sm",
406
425
  onClick: Ke,
407
- disabled: !De,
426
+ disabled: !Fe,
408
427
  loading: u,
409
- children: l !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : je ?? a("notesPanel.add", { defaultValue: "Add note" })
428
+ children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Le ?? a("notesPanel.add", { defaultValue: "Add note" })
410
429
  }
411
430
  )
412
431
  ] })
413
432
  ]
414
433
  }
415
434
  ),
416
- ne ? /* @__PURE__ */ n(z, { variant: "error", children: /* @__PURE__ */ n(z.Description, { children: ne }) }) : null
435
+ ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null
417
436
  ]
418
437
  }
419
438
  ) : null,
420
- y === "loading" && V.length === 0 ? (
439
+ C === "loading" && k.length === 0 ? (
421
440
  /* Note-shaped placeholders, not a spinner: the reader sees where
422
441
  the notes will land and how many to expect. The status text is
423
442
  for assistive tech only; sighted readers get the motion. */
@@ -429,10 +448,10 @@ const Kt = Je(
429
448
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
430
449
  children: [
431
450
  /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
432
- bt.map((e, t) => /* @__PURE__ */ n(ge, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(ge.Body, { children: /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
451
+ xt.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
433
452
  /* @__PURE__ */ o("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
434
453
  /* @__PURE__ */ n(
435
- W,
454
+ M,
436
455
  {
437
456
  variant: "circular",
438
457
  size: "sm",
@@ -441,7 +460,7 @@ const Kt = Je(
441
460
  ),
442
461
  /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
443
462
  /* @__PURE__ */ n(
444
- W,
463
+ M,
445
464
  {
446
465
  variant: "text",
447
466
  size: "sm",
@@ -450,7 +469,7 @@ const Kt = Je(
450
469
  }
451
470
  ),
452
471
  /* @__PURE__ */ n(
453
- W,
472
+ M,
454
473
  {
455
474
  variant: "text",
456
475
  size: "sm",
@@ -461,7 +480,7 @@ const Kt = Je(
461
480
  ] })
462
481
  ] }),
463
482
  /* @__PURE__ */ n(
464
- W,
483
+ M,
465
484
  {
466
485
  variant: "text",
467
486
  size: "sm",
@@ -473,85 +492,102 @@ const Kt = Je(
473
492
  ]
474
493
  }
475
494
  )
476
- ) : y === "error" ? /* @__PURE__ */ o(z, { variant: "error", children: [
477
- /* @__PURE__ */ n(z.Description, { children: a("notesPanel.loadError") }),
478
- X ? /* @__PURE__ */ n(z.Action, { children: /* @__PURE__ */ n(j, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
495
+ ) : C === "error" ? /* @__PURE__ */ o(I, { variant: "error", children: [
496
+ /* @__PURE__ */ n(I.Description, { children: a("notesPanel.loadError") }),
497
+ X ? /* @__PURE__ */ n(I.Action, { children: /* @__PURE__ */ n(z, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
479
498
  ] }) : null,
480
- y === "loading" && V.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
481
- V.length > 0 ? /* @__PURE__ */ n(
499
+ C === "loading" && k.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
500
+ k.length > 0 ? /* @__PURE__ */ n(
482
501
  "ul",
483
502
  {
484
- ref: Me,
485
- "aria-busy": y === "loading" || void 0,
486
- className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${Be}`.trim(),
487
- children: V.map(({ actions: e, ...t }, d) => {
488
- const s = b != null && t.id === b, r = t.id, S = r != null && E.isLeaving(r);
503
+ ref: Ge,
504
+ "aria-busy": C === "loading" || void 0,
505
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${De}`.trim(),
506
+ children: k.map(({ actions: e, ...t }, d) => {
507
+ const l = y != null && t.id === y, s = t.id, x = s != null && r === s, p = s != null && _.isLeaving(s);
489
508
  return /* @__PURE__ */ o(
490
509
  "li",
491
510
  {
492
- ref: s ? J : void 0,
493
- tabIndex: s ? -1 : void 0,
494
- "aria-current": s ? "true" : void 0,
495
- "data-reflow-id": r,
496
- "data-leaving": S ? "" : void 0,
497
- "data-editing": l === r ? "" : void 0,
511
+ ref: l ? J : void 0,
512
+ tabIndex: l ? -1 : void 0,
513
+ "aria-current": l ? "true" : void 0,
514
+ "data-reflow-id": s,
515
+ "data-leaving": p ? "" : void 0,
516
+ "data-editing": x ? "" : void 0,
498
517
  className: [
499
- ht({
500
- current: s || l === r
518
+ bt({
519
+ current: l,
520
+ washed: l || x
501
521
  }),
502
- yt,
503
- ct,
504
- S ? vt : ""
522
+ Pt,
523
+ ft,
524
+ p ? Ct : ""
505
525
  ].filter(Boolean).join(" "),
506
526
  children: [
507
- s ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
527
+ l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
508
528
  defaultValue: "Current note"
509
529
  }) }) : null,
530
+ x ? /* @__PURE__ */ n(
531
+ "span",
532
+ {
533
+ "aria-hidden": "true",
534
+ "data-notes-panel-wash": "editing",
535
+ className: ye({ state: "editing" })
536
+ }
537
+ ) : l ? /* @__PURE__ */ n(
538
+ "span",
539
+ {
540
+ "aria-hidden": "true",
541
+ "data-notes-panel-wash": "addressed",
542
+ className: ye({ state: "addressed" })
543
+ },
544
+ `${y}:${Z ?? ""}`
545
+ ) : null,
510
546
  /* @__PURE__ */ n(
511
- nt,
547
+ it,
512
548
  {
513
549
  surface: "elevated",
514
- truncate: !s,
515
- headerActions: /* @__PURE__ */ o($e, { children: [
516
- Z ? Z({ ...t, actions: e }) : null,
517
- T && r && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
518
- pe,
550
+ truncate: !l,
551
+ headerActions: /* @__PURE__ */ o(Ue, { children: [
552
+ ee ? ee({ ...t, actions: e }) : null,
553
+ N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
554
+ ge,
519
555
  {
520
- icon: /* @__PURE__ */ n(mt, {}),
556
+ icon: /* @__PURE__ */ n(gt, {}),
521
557
  intent: "ghost",
522
558
  size: "sm",
523
559
  "aria-label": a("notesPanel.editNamed", {
524
- date: oe(t),
560
+ date: de(t),
525
561
  defaultValue: "Edit note · {{date}}"
526
562
  }),
527
563
  tooltip: a("notesPanel.edit", {
528
564
  defaultValue: "Edit note"
529
565
  }),
530
- "aria-pressed": l === r,
566
+ "aria-pressed": r === s,
531
567
  disabled: u,
532
568
  "data-notes-panel-edit": "",
533
- onClick: () => l === r ? D() : qe(t)
569
+ onClick: () => r === s ? W() : Me(t)
534
570
  }
535
571
  ) : null,
536
- g && r && !t.deleted ? /* @__PURE__ */ n(
537
- pe,
572
+ h && s && !t.deleted ? /* @__PURE__ */ n(
573
+ ge,
538
574
  {
539
- icon: /* @__PURE__ */ n(pt, {}),
575
+ icon: /* @__PURE__ */ n(ht, {}),
540
576
  intent: "ghost",
541
577
  size: "sm",
542
578
  "aria-label": a("notesPanel.deleteNamed", {
543
- date: oe(t),
579
+ date: de(t),
544
580
  defaultValue: "Delete note · {{date}}"
545
581
  }),
546
582
  tooltip: a("notesPanel.delete", {
547
583
  defaultValue: "Delete note"
548
584
  }),
549
- onClick: () => We(r)
585
+ onClick: () => Ye(s)
550
586
  }
551
587
  ) : null
552
588
  ] }),
553
589
  ...t,
554
- onTogglePin: A && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => A(t.id) : void 0,
590
+ onTogglePin: L && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => L(t.id) : void 0,
555
591
  onToggleFlag: H && t.id ? () => H(t.id) : void 0
556
592
  }
557
593
  )
@@ -561,23 +597,23 @@ const Kt = Je(
561
597
  );
562
598
  })
563
599
  }
564
- ) : y !== "ready" ? null : Le ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
600
+ ) : C !== "ready" ? null : He ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
565
601
  ] }),
566
- g && G ? /* @__PURE__ */ n(
567
- h,
602
+ h && $ ? /* @__PURE__ */ n(
603
+ v,
568
604
  {
569
- open: K !== null,
605
+ open: D !== null,
570
606
  onOpenChange: (e) => !e && q(null),
571
- children: /* @__PURE__ */ o(h.Content, { variant: "alert", size: "sm", children: [
572
- /* @__PURE__ */ n(h.Header, { children: /* @__PURE__ */ n(h.Title, { children: a("notesPanel.deleteConfirmTitle", {
607
+ children: /* @__PURE__ */ o(v.Content, { variant: "alert", size: "sm", children: [
608
+ /* @__PURE__ */ n(v.Header, { children: /* @__PURE__ */ n(v.Title, { children: a("notesPanel.deleteConfirmTitle", {
573
609
  defaultValue: "Delete this note?"
574
610
  }) }) }),
575
- /* @__PURE__ */ n(h.Body, { children: /* @__PURE__ */ n(h.Description, { children: a("notesPanel.deleteConfirmBody", {
611
+ /* @__PURE__ */ n(v.Body, { children: /* @__PURE__ */ n(v.Description, { children: a("notesPanel.deleteConfirmBody", {
576
612
  defaultValue: "The note will be removed from the record."
577
613
  }) }) }),
578
- /* @__PURE__ */ o(h.Footer, { children: [
579
- /* @__PURE__ */ n(h.Close, { asChild: !0, children: /* @__PURE__ */ n(
580
- j,
614
+ /* @__PURE__ */ o(v.Footer, { children: [
615
+ /* @__PURE__ */ n(v.Close, { asChild: !0, children: /* @__PURE__ */ n(
616
+ z,
581
617
  {
582
618
  intent: "secondary",
583
619
  size: "sm",
@@ -588,11 +624,11 @@ const Kt = Je(
588
624
  }
589
625
  ) }),
590
626
  /* @__PURE__ */ n(
591
- j,
627
+ z,
592
628
  {
593
629
  intent: "destructive",
594
630
  size: "sm",
595
- onClick: Ge,
631
+ onClick: Je,
596
632
  children: a("notesPanel.deleteConfirmAction", {
597
633
  defaultValue: "Delete"
598
634
  })
@@ -609,6 +645,6 @@ const Kt = Je(
609
645
  );
610
646
  export {
611
647
  Kt as N,
612
- he as g
648
+ ve as g
613
649
  };
614
- //# sourceMappingURL=notes-panel-CkbfDDzj.js.map
650
+ //# sourceMappingURL=notes-panel-CmTqIWlS.js.map