@alfadocs/ui-kit 1.38.0 → 1.39.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 (303) 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-DvtaM3yg.js} +2 -2
  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-Dn3jvv3K.js} +5 -5
  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-B-fUbm62.js +11372 -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-CAD1Ytcj.js} +276 -243
  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-C6fE-uP4.js} +5 -5
  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/index.js +1 -1
  121. package/dist/components/ai-prompt-input/index.js +1 -1
  122. package/dist/components/anamnesis-card/index.js +1 -1
  123. package/dist/components/appointment-card/appointment-card.d.ts +24 -0
  124. package/dist/components/appointment-card/index.js +2 -2
  125. package/dist/components/appointment-peek/index.js +1 -1
  126. package/dist/components/appointment-timeline/appointment-timeline.d.ts +15 -1
  127. package/dist/components/appointment-timeline/index.js +1 -1
  128. package/dist/components/audio-recorder/index.js +1 -1
  129. package/dist/components/bishop-score/index.js +1 -1
  130. package/dist/components/bmi-calculator/index.js +1 -1
  131. package/dist/components/booking/index.js +1 -1
  132. package/dist/components/button/button.d.ts +1 -1
  133. package/dist/components/button/index.js +2 -2
  134. package/dist/components/button-group/index.js +1 -1
  135. package/dist/components/calendar/index.js +1 -1
  136. package/dist/components/care-plan-card/index.js +1 -1
  137. package/dist/components/care-plan-entry-card/index.js +1 -1
  138. package/dist/components/care-plan-header/index.js +1 -1
  139. package/dist/components/carousel/index.js +1 -1
  140. package/dist/components/chart/index.js +1 -1
  141. package/dist/components/chat-input/index.js +1 -1
  142. package/dist/components/chat-message/index.js +1 -1
  143. package/dist/components/connection-status/index.js +1 -1
  144. package/dist/components/contact-profile-card/index.js +1 -1
  145. package/dist/components/control-room-rail/index.js +1 -1
  146. package/dist/components/copy-field/index.js +1 -1
  147. package/dist/components/cycle-calculator/index.js +1 -1
  148. package/dist/components/dashboard-grid/index.js +1 -1
  149. package/dist/components/data-table/index.js +4 -4
  150. package/dist/components/data-table-tabs/index.js +1 -1
  151. package/dist/components/description-list/index.js +1 -1
  152. package/dist/components/document-preview/index.js +1 -1
  153. package/dist/components/document-scanner/index.js +1 -1
  154. package/dist/components/due-date-calculator/index.js +1 -1
  155. package/dist/components/editable-description/index.js +1 -1
  156. package/dist/components/editor-overlay/index.js +1 -1
  157. package/dist/components/empty-state/index.js +1 -1
  158. package/dist/components/entity-summary/index.js +1 -1
  159. package/dist/components/error-boundary/index.js +1 -1
  160. package/dist/components/face-scheme/index.js +1 -1
  161. package/dist/components/fetal-weight/index.js +1 -1
  162. package/dist/components/field-array/index.js +1 -1
  163. package/dist/components/file-manager/index.js +1 -1
  164. package/dist/components/finished-terminal/index.js +1 -1
  165. package/dist/components/fiscal-code-input/index.js +1 -1
  166. package/dist/components/freemium-paywall/index.js +1 -1
  167. package/dist/components/gestational-age-calculator/index.js +1 -1
  168. package/dist/components/hcg-doubling/index.js +1 -1
  169. package/dist/components/header/index.js +1 -1
  170. package/dist/components/header-settings/index.js +1 -1
  171. package/dist/components/hover-card/index.js +1 -1
  172. package/dist/components/icon-button/index.js +1 -1
  173. package/dist/components/icon-button-group/index.js +1 -1
  174. package/dist/components/icon-picker/index.js +1 -1
  175. package/dist/components/image-cropper/index.js +1 -1
  176. package/dist/components/info-tip/index.js +1 -1
  177. package/dist/components/key-value-pair/index.js +1 -1
  178. package/dist/components/locale-picker/index.js +1 -1
  179. package/dist/components/map-view/index.js +1 -1
  180. package/dist/components/message-card/index.js +1 -1
  181. package/dist/components/message-tray/index.js +1 -1
  182. package/dist/components/note-timeline/index.js +1 -1
  183. package/dist/components/note-timeline/note-timeline.d.ts +9 -0
  184. package/dist/components/notes-panel/index.js +1 -1
  185. package/dist/components/notes-panel/notes-panel.d.ts +5 -4
  186. package/dist/components/notification-card/index.js +1 -1
  187. package/dist/components/notification-tray/index.js +1 -1
  188. package/dist/components/optical-prescription/index.js +1 -1
  189. package/dist/components/panel-subview/index.js +1 -1
  190. package/dist/components/patient-details/index.js +1 -1
  191. package/dist/components/patient-search/index.js +1 -1
  192. package/dist/components/patient-summary-card/index.js +1 -1
  193. package/dist/components/patient-table/index.js +1 -1
  194. package/dist/components/payment-card/index.js +1 -1
  195. package/dist/components/periodontal-chart/index.js +1 -1
  196. package/dist/components/periodontal-chart-card/index.js +1 -1
  197. package/dist/components/popover/index.js +1 -1
  198. package/dist/components/practice-results/index.js +1 -1
  199. package/dist/components/pregnancy-dating/index.js +1 -1
  200. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  201. package/dist/components/privacy-lock/index.js +1 -1
  202. package/dist/components/product-hub-tray/index.js +1 -1
  203. package/dist/components/public-header/index.js +1 -1
  204. package/dist/components/radiograph-panel/index.js +1 -1
  205. package/dist/components/reviews-panel/index.js +1 -1
  206. package/dist/components/rich-text-editor/index.js +1 -1
  207. package/dist/components/session-countdown/index.js +1 -1
  208. package/dist/components/sheet/index.js +1 -1
  209. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  210. package/dist/components/slot-grid/index.js +1 -1
  211. package/dist/components/streaming-text/index.js +1 -1
  212. package/dist/components/task-tray/index.js +1 -1
  213. package/dist/components/tasks-panel/index.js +1 -1
  214. package/dist/components/theme-toggle/index.js +1 -1
  215. package/dist/components/toast/index.js +1 -1
  216. package/dist/components/token-insert-menu/index.js +1 -1
  217. package/dist/components/tool-rail/index.js +1 -1
  218. package/dist/components/tooth-scheme/index.js +1 -1
  219. package/dist/components/transaction-chip/index.js +1 -1
  220. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  221. package/dist/components/unit-converter/index.js +1 -1
  222. package/dist/components/warning-stack/index.js +1 -1
  223. package/dist/components/workflow/index.js +1 -1
  224. package/dist/host-compat.css +13 -4
  225. package/dist/i18n/locales/ar.d.ts +235 -183
  226. package/dist/i18n/locales/ar.js +239 -187
  227. package/dist/i18n/locales/de.d.ts +219 -167
  228. package/dist/i18n/locales/de.js +223 -171
  229. package/dist/i18n/locales/el.d.ts +234 -182
  230. package/dist/i18n/locales/el.js +238 -186
  231. package/dist/i18n/locales/en.d.ts +52 -0
  232. package/dist/i18n/locales/en.js +56 -4
  233. package/dist/i18n/locales/es.d.ts +227 -175
  234. package/dist/i18n/locales/es.js +231 -179
  235. package/dist/i18n/locales/fr.d.ts +221 -169
  236. package/dist/i18n/locales/fr.js +225 -173
  237. package/dist/i18n/locales/hi.d.ts +235 -183
  238. package/dist/i18n/locales/hi.js +243 -187
  239. package/dist/i18n/locales/it.d.ts +179 -127
  240. package/dist/i18n/locales/it.js +183 -131
  241. package/dist/i18n/locales/ja.d.ts +233 -181
  242. package/dist/i18n/locales/ja.js +237 -185
  243. package/dist/i18n/locales/nl.d.ts +224 -172
  244. package/dist/i18n/locales/nl.js +228 -176
  245. package/dist/i18n/locales/pl.d.ts +229 -177
  246. package/dist/i18n/locales/pl.js +233 -181
  247. package/dist/i18n/locales/pt.d.ts +229 -177
  248. package/dist/i18n/locales/pt.js +233 -181
  249. package/dist/i18n/locales/ro.d.ts +228 -176
  250. package/dist/i18n/locales/ro.js +232 -180
  251. package/dist/i18n/locales/ru.d.ts +234 -182
  252. package/dist/i18n/locales/ru.js +238 -186
  253. package/dist/i18n/locales/sq.d.ts +228 -176
  254. package/dist/i18n/locales/sq.js +232 -180
  255. package/dist/i18n/locales/sv.d.ts +229 -177
  256. package/dist/i18n/locales/sv.js +233 -181
  257. package/dist/i18n/locales/tr.d.ts +235 -183
  258. package/dist/i18n/locales/tr.js +239 -187
  259. package/dist/i18n/locales/zh.d.ts +228 -176
  260. package/dist/i18n/locales/zh.js +232 -180
  261. package/dist/index.js +107 -107
  262. package/dist/locales/ar.json +239 -187
  263. package/dist/locales/de.json +223 -171
  264. package/dist/locales/el.json +238 -186
  265. package/dist/locales/en.json +56 -4
  266. package/dist/locales/es.json +231 -179
  267. package/dist/locales/fr.json +225 -173
  268. package/dist/locales/hi.json +239 -187
  269. package/dist/locales/it.json +183 -131
  270. package/dist/locales/ja.json +237 -185
  271. package/dist/locales/nl.json +228 -176
  272. package/dist/locales/pl.json +233 -181
  273. package/dist/locales/pt.json +233 -181
  274. package/dist/locales/ro.json +232 -180
  275. package/dist/locales/ru.json +238 -186
  276. package/dist/locales/sq.json +232 -180
  277. package/dist/locales/sv.json +233 -181
  278. package/dist/locales/tr.json +239 -187
  279. package/dist/locales/zh.json +232 -180
  280. package/dist/patterns/alia-assistant/index.js +1 -1
  281. package/dist/patterns/anamnesis/index.js +1 -1
  282. package/dist/patterns/calendar/calendar-appointment-details.d.ts +7 -0
  283. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +10 -5
  284. package/dist/patterns/calendar/calendar-bookings-panel.d.ts +31 -0
  285. package/dist/patterns/calendar/calendar-info-hover.d.ts +15 -1
  286. package/dist/patterns/calendar/calendar-privacy.d.ts +23 -0
  287. package/dist/patterns/calendar/calendar-rail-settle.d.ts +14 -0
  288. package/dist/patterns/calendar/calendar-upcoming-panel.d.ts +32 -0
  289. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +62 -0
  290. package/dist/patterns/calendar/calendar-workspace.d.ts +14 -1
  291. package/dist/patterns/calendar/calendar-workspace.model.d.ts +37 -1
  292. package/dist/patterns/calendar/calendar.model.d.ts +8 -2
  293. package/dist/patterns/calendar/calendar.sheets.d.ts +43 -27
  294. package/dist/patterns/calendar/calendar.types.d.ts +6 -0
  295. package/dist/patterns/calendar/index.d.ts +2 -2
  296. package/dist/patterns/calendar/index.js +1 -1
  297. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  298. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  299. package/dist/patterns/signature-request/index.js +1 -1
  300. package/dist/tokens.css +1 -1
  301. package/package.json +3 -1
  302. package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +0 -9900
  303. 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";
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";
1
+ import { jsxs as o, jsx as n, Fragment as Qe } from "react/jsx-runtime";
2
+ import { forwardRef as Ue, useRef as f, useState as w, useId as Xe, useCallback as T, useEffect as me, useImperativeHandle as Ze, useMemo as et } from "react";
3
+ import { c as Ce } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as tt } from "react-i18next";
5
+ import { u as nt } from "./registry-DvAUVLHh.js";
6
+ import { C as at } from "./clinical-note-card-DdsGYMmI.js";
7
+ import { R as it } from "./rich-text-editor-C6fE-uP4.js";
8
+ import { T as st } 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
+ import { C as lt } from "./checkbox-CZkipDn7.js";
13
+ import { C as he } from "./card-DPmk26CL.js";
14
+ import { C as rt, S as M } from "./skeleton-B1KTdJ4N.js";
15
+ import { D as v } from "./dialog-BJiLqhx6.js";
16
+ import { P as ot } from "./panel-header-D_mTdhUp.js";
17
+ import { a as dt, u as ct, R as ut } from "./use-list-reflow-Cw43nxw5.js";
18
+ import { u as ft } from "./use-theme-CAuo6EYT.js";
19
+ import { N as pt } from "./notebook-pen-CO7HoM-W.js";
20
20
  import { P as mt } from "./pencil-B1sKKyuT.js";
21
- import { T as pt } from "./trash-2-uumy3fy1.js";
22
- function he(i, c) {
21
+ import { T as gt } 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 ht = {
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,116 @@ 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
+ }, vt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", yt = 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: vt, false: "" }
132
133
  },
133
- defaultVariants: { current: !1 }
134
+ defaultVariants: { current: !1, washed: !1 }
135
+ }
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
+ }
134
150
  }
135
- ), vt = "ds:opacity-0", yt = [
151
+ ), bt = "ds:opacity-0", Ct = [
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(" "), Pt = [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 Ft = Ue(
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,
166
- onToggleFlag: H,
167
- noteActions: Z,
168
- onEditNote: T,
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
+ onTogglePin: L,
182
+ onToggleFlag: O,
183
+ noteActions: ee,
184
+ onEditNote: N,
169
185
  editClinical: Ie = !1,
170
- onDeleteNote: g,
171
- confirmDelete: G = !0,
172
- title: Se,
173
- composerPlaceholder: ze,
174
- addNoteLabel: je,
186
+ onDeleteNote: h,
187
+ confirmDelete: $ = !0,
188
+ title: ze,
189
+ composerPlaceholder: je,
190
+ addNoteLabel: Ae,
175
191
  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);
192
+ className: Oe,
193
+ "aria-label": G,
194
+ ...He
195
+ }, Be) {
196
+ const { t: a, i18n: te } = tt(), b = f(null), [P, V] = w(""), [H, B] = w(E), [u, ne] = w(!1), [ae, R] = w(null), [r, Y] = w(null), ie = f(!1);
197
+ C === "loading" && (ie.current = !0);
198
+ const We = ie.current ? rt : "", De = ze ?? a("notesPanel.title", { defaultValue: "Notes" }), se = Xe(), le = je ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), qe = g === "rich" ? be(P) : P.trim().length > 0, Fe = T(() => {
199
+ var x;
200
+ if (!(r !== null ? N : m) || u) return;
201
+ const t = g === "rich", d = t ? ((x = b.current) == null ? void 0 : x.getHTML()) ?? P : P.trim();
202
+ if (t ? !be(d) : !d) return;
203
+ const l = () => {
204
+ var p;
205
+ t && ((p = b.current) == null || p.clear()), V(""), B(E), Y(null);
190
206
  };
191
- N(null);
192
- let r;
207
+ R(null);
208
+ let s;
193
209
  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")));
210
+ s = r !== null && N ? N(r, { content: d, clinical: H }) : m == null ? void 0 : m({ content: d, clinical: H });
211
+ } catch (p) {
212
+ R(ve(p, a("notesPanel.addFailed")));
197
213
  return;
198
214
  }
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));
215
+ if (!s || typeof s.then != "function") return l();
216
+ ne(!0), Promise.resolve(s).then(
217
+ l,
218
+ (p) => R(ve(p, a("notesPanel.addFailed")))
219
+ ).finally(() => ne(!1));
204
220
  }, [
205
- p,
206
- C,
207
- B,
208
- R,
209
- l,
221
+ g,
222
+ P,
223
+ H,
224
+ E,
225
+ r,
210
226
  m,
211
- T,
227
+ N,
212
228
  u,
213
229
  a
214
- ]), se = xe && (l === null || Ie), oe = w(
230
+ ]), oe = Te && (r === null || Ie), de = T(
215
231
  (e) => {
216
232
  try {
217
- return new Intl.DateTimeFormat(ee.language, {
233
+ return new Intl.DateTimeFormat(te.language, {
218
234
  day: "numeric",
219
235
  month: "long",
220
236
  year: "numeric",
@@ -225,56 +241,56 @@ const Kt = Je(
225
241
  return e.dateIso;
226
242
  }
227
243
  },
228
- [ee.language]
229
- ), qe = w(
244
+ [te.language]
245
+ ), Ke = T(
230
246
  (e) => {
231
- var d, s, r;
247
+ var d, l, s;
232
248
  if (!e.id || u) return;
233
249
  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();
250
+ 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
251
  },
236
- [p, u]
237
- ), D = w(() => {
252
+ [g, u]
253
+ ), W = T(() => {
238
254
  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);
255
+ g === "rich" && ((e = b.current) == null || e.clear()), V(""), B(E), R(null), Y(null);
256
+ }, [g, E]), ce = r === null || j.some((e) => e.id === r && !e.deleted);
241
257
  me(() => {
242
- de || D();
243
- }, [de, D]);
244
- const V = [...L].sort(
258
+ ce || W();
259
+ }, [ce, W]);
260
+ const k = [...j].sort(
245
261
  (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(
262
+ ), { resolvedTheme: Me } = ft(), ue = Me.endsWith("-accessible") || void 0, { containerRef: $e } = dt({
263
+ key: k.map((e) => e.id).join(),
264
+ reduceMotion: ue
265
+ }), _ = ct({ reduceMotion: ue }), [D, q] = w(null), Ge = T(
250
266
  (e) => {
251
- g && (G ? q(e) : E.leave(e, () => g(e)));
267
+ h && ($ ? q(e) : _.leave(e, () => h(e)));
252
268
  },
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);
269
+ [$, _, h]
270
+ ), Ye = T(() => {
271
+ if (!D || !h) return;
272
+ const e = D;
273
+ q(null), _.leave(e, () => h(e));
274
+ }, [D, h, _]), J = f(null);
259
275
  me(() => {
260
276
  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(
277
+ y && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
278
+ }, [y, Z]);
279
+ const Q = f(j);
280
+ Q.current = j;
281
+ const S = f(m);
282
+ S.current = m;
283
+ const F = f(L);
284
+ F.current = L;
285
+ const K = f(O);
286
+ K.current = O;
287
+ const U = f(A);
288
+ U.current = A;
289
+ const fe = f(y);
290
+ fe.current = y;
291
+ const pe = f(null);
292
+ Ze(Be, () => pe.current, []);
293
+ const Je = et(
278
294
  () => ({
279
295
  // Ids + flags only — never the note body or author (both PHI).
280
296
  getNotes: () => Q.current.map((e) => ({
@@ -283,84 +299,84 @@ const Kt = Je(
283
299
  flagged: !!e.flagged,
284
300
  clinical: !!e.clinical
285
301
  })),
286
- canAddNote: () => !!I.current,
302
+ canAddNote: () => !!S.current,
287
303
  canAddClinical: () => U.current,
288
- getCurrentNoteId: () => ue.current ?? null,
304
+ getCurrentNoteId: () => fe.current ?? null,
289
305
  addNote: (e) => {
290
306
  var t;
291
307
  if (!(e.clinical && !U.current))
292
- return (t = I.current) == null ? void 0 : t.call(I, e);
308
+ return (t = S.current) == null ? void 0 : t.call(S, e);
293
309
  },
294
310
  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);
311
+ var d, l;
312
+ const t = Q.current.find((s) => s.id === e);
313
+ t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (l = F.current) == null || l.call(F, e);
298
314
  },
299
315
  toggleFlag: (e) => {
300
316
  var t;
301
- return (t = M.current) == null ? void 0 : t.call(M, e);
317
+ return (t = K.current) == null ? void 0 : t.call(K, e);
302
318
  }
303
319
  }),
304
320
  []
305
321
  );
306
- return tt(gt, Ye, c), /* @__PURE__ */ o(
322
+ return nt(ht, Je, c), /* @__PURE__ */ o(
307
323
  "section",
308
324
  {
309
- ref: fe,
325
+ ref: pe,
310
326
  "data-component": "notes-panel",
311
327
  "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,
328
+ "aria-labelledby": G ? void 0 : se,
329
+ "aria-label": G,
330
+ className: ["ds:flex ds:flex-col", Oe].filter(Boolean).join(" "),
331
+ ...He,
316
332
  children: [
317
333
  /* @__PURE__ */ n(
318
- st,
334
+ ot,
319
335
  {
320
- title: Oe,
321
- icon: /* @__PURE__ */ n(ft, { "aria-hidden": "true" }),
322
- headingId: Y ? void 0 : ie,
336
+ title: De,
337
+ icon: /* @__PURE__ */ n(pt, { "aria-hidden": "true" }),
338
+ headingId: G ? void 0 : se,
323
339
  sticky: !0,
324
340
  divider: !0
325
341
  }
326
342
  ),
327
343
  /* @__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(
344
+ m || r !== null ? /* @__PURE__ */ o(
329
345
  "div",
330
346
  {
331
- "data-notes-panel-composer": l !== null ? "edit" : "add",
347
+ "data-notes-panel-composer": r !== null ? "edit" : "add",
332
348
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
333
349
  children: [
334
- p === "rich" ? /* @__PURE__ */ n(
335
- at,
350
+ g === "rich" ? /* @__PURE__ */ n(
351
+ it,
336
352
  {
337
- ref: v,
338
- ariaLabel: le,
339
- placeholder: re,
340
- toolbar: be,
353
+ ref: b,
354
+ ariaLabel: re,
355
+ placeholder: le,
356
+ toolbar: Pe,
341
357
  minHeight: "fill",
342
- redactor: Ce,
343
- imageUploadUrl: Pe,
358
+ redactor: xe,
359
+ imageUploadUrl: we,
344
360
  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
361
+ onChange: ({ html: e }) => V(e),
362
+ onRequestAiDraft: Ne,
363
+ aiDraftFormat: Ve,
364
+ aiPrivacyNotice: Re,
365
+ onDictate: ke,
366
+ onProofread: _e,
367
+ onAutoFormat: Se
352
368
  }
353
369
  ) : /* @__PURE__ */ n(
354
- it,
370
+ st,
355
371
  {
356
- value: C,
372
+ value: P,
357
373
  readOnly: u,
358
- onChange: (e) => k(e.target.value),
359
- placeholder: re,
374
+ onChange: (e) => V(e.target.value),
375
+ placeholder: le,
360
376
  autoResize: !0,
361
377
  minRows: 2,
362
378
  maxRows: 6,
363
- "aria-label": le
379
+ "aria-label": re
364
380
  }
365
381
  ),
366
382
  /* @__PURE__ */ o(
@@ -368,56 +384,56 @@ const Kt = Je(
368
384
  {
369
385
  className: [
370
386
  "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
371
- se ? "ds:justify-between" : "ds:justify-end"
387
+ oe ? "ds:justify-between" : "ds:justify-end"
372
388
  ].join(" "),
373
389
  children: [
374
- se ? /* @__PURE__ */ n(
375
- rt,
390
+ oe ? /* @__PURE__ */ n(
391
+ lt,
376
392
  {
377
393
  size: "sm",
378
394
  label: a("notesPanel.clinicalToggle", {
379
395
  defaultValue: "Clinical note"
380
396
  }),
381
- checked: B,
382
- onCheckedChange: (e) => O(e === !0),
383
- disabled: u || !_,
384
- disabledReason: _ ? void 0 : we ?? a("notesPanel.clinicalGated", {
397
+ checked: H,
398
+ onCheckedChange: (e) => B(e === !0),
399
+ disabled: u || !A,
400
+ disabledReason: A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
385
401
  defaultValue: "You do not have permission to write clinical notes."
386
402
  })
387
403
  }
388
404
  ) : null,
389
405
  /* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
390
- l !== null ? /* @__PURE__ */ n(
391
- j,
406
+ r !== null ? /* @__PURE__ */ n(
407
+ z,
392
408
  {
393
409
  type: "button",
394
410
  size: "sm",
395
411
  intent: "ghost",
396
- onClick: D,
412
+ onClick: W,
397
413
  disabled: u,
398
414
  children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
399
415
  }
400
416
  ) : null,
401
417
  /* @__PURE__ */ n(
402
- j,
418
+ z,
403
419
  {
404
420
  type: "button",
405
421
  size: "sm",
406
- onClick: Ke,
407
- disabled: !De,
422
+ onClick: Fe,
423
+ disabled: !qe,
408
424
  loading: u,
409
- children: l !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : je ?? a("notesPanel.add", { defaultValue: "Add note" })
425
+ children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Ae ?? a("notesPanel.add", { defaultValue: "Add note" })
410
426
  }
411
427
  )
412
428
  ] })
413
429
  ]
414
430
  }
415
431
  ),
416
- ne ? /* @__PURE__ */ n(z, { variant: "error", children: /* @__PURE__ */ n(z.Description, { children: ne }) }) : null
432
+ ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null
417
433
  ]
418
434
  }
419
435
  ) : null,
420
- y === "loading" && V.length === 0 ? (
436
+ C === "loading" && k.length === 0 ? (
421
437
  /* Note-shaped placeholders, not a spinner: the reader sees where
422
438
  the notes will land and how many to expect. The status text is
423
439
  for assistive tech only; sighted readers get the motion. */
@@ -429,10 +445,10 @@ const Kt = Je(
429
445
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
430
446
  children: [
431
447
  /* @__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: [
448
+ Pt.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
449
  /* @__PURE__ */ o("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
434
450
  /* @__PURE__ */ n(
435
- W,
451
+ M,
436
452
  {
437
453
  variant: "circular",
438
454
  size: "sm",
@@ -441,7 +457,7 @@ const Kt = Je(
441
457
  ),
442
458
  /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
443
459
  /* @__PURE__ */ n(
444
- W,
460
+ M,
445
461
  {
446
462
  variant: "text",
447
463
  size: "sm",
@@ -450,7 +466,7 @@ const Kt = Je(
450
466
  }
451
467
  ),
452
468
  /* @__PURE__ */ n(
453
- W,
469
+ M,
454
470
  {
455
471
  variant: "text",
456
472
  size: "sm",
@@ -461,7 +477,7 @@ const Kt = Je(
461
477
  ] })
462
478
  ] }),
463
479
  /* @__PURE__ */ n(
464
- W,
480
+ M,
465
481
  {
466
482
  variant: "text",
467
483
  size: "sm",
@@ -473,86 +489,103 @@ const Kt = Je(
473
489
  ]
474
490
  }
475
491
  )
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
492
+ ) : C === "error" ? /* @__PURE__ */ o(I, { variant: "error", children: [
493
+ /* @__PURE__ */ n(I.Description, { children: a("notesPanel.loadError") }),
494
+ X ? /* @__PURE__ */ n(I.Action, { children: /* @__PURE__ */ n(z, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
479
495
  ] }) : 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(
496
+ C === "loading" && k.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
497
+ k.length > 0 ? /* @__PURE__ */ n(
482
498
  "ul",
483
499
  {
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);
500
+ ref: $e,
501
+ "aria-busy": C === "loading" || void 0,
502
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${We}`.trim(),
503
+ children: k.map(({ actions: e, ...t }, d) => {
504
+ const l = y != null && t.id === y, s = t.id, x = s != null && r === s, p = s != null && _.isLeaving(s);
489
505
  return /* @__PURE__ */ o(
490
506
  "li",
491
507
  {
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,
508
+ ref: l ? J : void 0,
509
+ tabIndex: l ? -1 : void 0,
510
+ "aria-current": l ? "true" : void 0,
511
+ "data-reflow-id": s,
512
+ "data-leaving": p ? "" : void 0,
513
+ "data-editing": x ? "" : void 0,
498
514
  className: [
499
- ht({
500
- current: s || l === r
515
+ yt({
516
+ current: l,
517
+ washed: l || x
501
518
  }),
502
- yt,
503
- ct,
504
- S ? vt : ""
519
+ Ct,
520
+ ut,
521
+ p ? bt : ""
505
522
  ].filter(Boolean).join(" "),
506
523
  children: [
507
- s ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
524
+ l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
508
525
  defaultValue: "Current note"
509
526
  }) }) : null,
527
+ x ? /* @__PURE__ */ n(
528
+ "span",
529
+ {
530
+ "aria-hidden": "true",
531
+ "data-notes-panel-wash": "editing",
532
+ className: ye({ state: "editing" })
533
+ }
534
+ ) : l ? /* @__PURE__ */ n(
535
+ "span",
536
+ {
537
+ "aria-hidden": "true",
538
+ "data-notes-panel-wash": "addressed",
539
+ className: ye({ state: "addressed" })
540
+ },
541
+ `${y}:${Z ?? ""}`
542
+ ) : null,
510
543
  /* @__PURE__ */ n(
511
- nt,
544
+ at,
512
545
  {
513
546
  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,
547
+ truncate: !l,
548
+ headerActions: /* @__PURE__ */ o(Qe, { children: [
549
+ ee ? ee({ ...t, actions: e }) : null,
550
+ N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
551
+ ge,
519
552
  {
520
553
  icon: /* @__PURE__ */ n(mt, {}),
521
554
  intent: "ghost",
522
555
  size: "sm",
523
556
  "aria-label": a("notesPanel.editNamed", {
524
- date: oe(t),
557
+ date: de(t),
525
558
  defaultValue: "Edit note · {{date}}"
526
559
  }),
527
560
  tooltip: a("notesPanel.edit", {
528
561
  defaultValue: "Edit note"
529
562
  }),
530
- "aria-pressed": l === r,
563
+ "aria-pressed": r === s,
531
564
  disabled: u,
532
565
  "data-notes-panel-edit": "",
533
- onClick: () => l === r ? D() : qe(t)
566
+ onClick: () => r === s ? W() : Ke(t)
534
567
  }
535
568
  ) : null,
536
- g && r && !t.deleted ? /* @__PURE__ */ n(
537
- pe,
569
+ h && s && !t.deleted ? /* @__PURE__ */ n(
570
+ ge,
538
571
  {
539
- icon: /* @__PURE__ */ n(pt, {}),
572
+ icon: /* @__PURE__ */ n(gt, {}),
540
573
  intent: "ghost",
541
574
  size: "sm",
542
575
  "aria-label": a("notesPanel.deleteNamed", {
543
- date: oe(t),
576
+ date: de(t),
544
577
  defaultValue: "Delete note · {{date}}"
545
578
  }),
546
579
  tooltip: a("notesPanel.delete", {
547
580
  defaultValue: "Delete note"
548
581
  }),
549
- onClick: () => We(r)
582
+ onClick: () => Ge(s)
550
583
  }
551
584
  ) : null
552
585
  ] }),
553
586
  ...t,
554
- onTogglePin: A && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => A(t.id) : void 0,
555
- onToggleFlag: H && t.id ? () => H(t.id) : void 0
587
+ onTogglePin: L && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => L(t.id) : void 0,
588
+ onToggleFlag: O && t.id ? () => O(t.id) : void 0
556
589
  }
557
590
  )
558
591
  ]
@@ -561,23 +594,23 @@ const Kt = Je(
561
594
  );
562
595
  })
563
596
  }
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." }) })
597
+ ) : C !== "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." }) })
565
598
  ] }),
566
- g && G ? /* @__PURE__ */ n(
567
- h,
599
+ h && $ ? /* @__PURE__ */ n(
600
+ v,
568
601
  {
569
- open: K !== null,
602
+ open: D !== null,
570
603
  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", {
604
+ children: /* @__PURE__ */ o(v.Content, { variant: "alert", size: "sm", children: [
605
+ /* @__PURE__ */ n(v.Header, { children: /* @__PURE__ */ n(v.Title, { children: a("notesPanel.deleteConfirmTitle", {
573
606
  defaultValue: "Delete this note?"
574
607
  }) }) }),
575
- /* @__PURE__ */ n(h.Body, { children: /* @__PURE__ */ n(h.Description, { children: a("notesPanel.deleteConfirmBody", {
608
+ /* @__PURE__ */ n(v.Body, { children: /* @__PURE__ */ n(v.Description, { children: a("notesPanel.deleteConfirmBody", {
576
609
  defaultValue: "The note will be removed from the record."
577
610
  }) }) }),
578
- /* @__PURE__ */ o(h.Footer, { children: [
579
- /* @__PURE__ */ n(h.Close, { asChild: !0, children: /* @__PURE__ */ n(
580
- j,
611
+ /* @__PURE__ */ o(v.Footer, { children: [
612
+ /* @__PURE__ */ n(v.Close, { asChild: !0, children: /* @__PURE__ */ n(
613
+ z,
581
614
  {
582
615
  intent: "secondary",
583
616
  size: "sm",
@@ -588,11 +621,11 @@ const Kt = Je(
588
621
  }
589
622
  ) }),
590
623
  /* @__PURE__ */ n(
591
- j,
624
+ z,
592
625
  {
593
626
  intent: "destructive",
594
627
  size: "sm",
595
- onClick: Ge,
628
+ onClick: Ye,
596
629
  children: a("notesPanel.deleteConfirmAction", {
597
630
  defaultValue: "Delete"
598
631
  })
@@ -608,7 +641,7 @@ const Kt = Je(
608
641
  }
609
642
  );
610
643
  export {
611
- Kt as N,
612
- he as g
644
+ Ft as N,
645
+ ve as g
613
646
  };
614
- //# sourceMappingURL=notes-panel-CkbfDDzj.js.map
647
+ //# sourceMappingURL=notes-panel-CAD1Ytcj.js.map