@alfadocs/ui-kit 0.69.0 → 0.71.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 (425) hide show
  1. package/dist/_chunks/address-fields-CPbFJ8e8.js +246 -0
  2. package/dist/_chunks/{agenda-card-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
  4. package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
  5. package/dist/_chunks/{ai-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
  6. package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
  7. package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
  8. package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
  9. package/dist/_chunks/anatomy-scheme-CXSk11UJ.js +2445 -0
  10. package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
  11. package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
  12. package/dist/_chunks/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
  13. package/dist/_chunks/appointment-card-DVaeJNVB.js +294 -0
  14. package/dist/_chunks/appointment-timeline-PJgnrjFb.js +388 -0
  15. package/dist/_chunks/appointment-tray-B16QPGbm.js +193 -0
  16. package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-DNDsOLqO.js} +3 -3
  17. package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
  18. package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
  19. package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-Cym_TeQY.js} +3 -3
  20. package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
  21. package/dist/_chunks/{booking-C3VqFReX.js → booking-C7do4vaR.js} +7 -7
  22. package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
  23. package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-DzPDYgtK.js} +5 -5
  24. package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CEnQy7YP.js} +5 -5
  25. package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
  26. package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
  27. package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
  28. package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
  29. package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
  30. package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
  31. package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
  32. package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
  33. package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
  34. package/dist/_chunks/country-select-BwUZQvTa.js +709 -0
  35. package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
  36. package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
  37. package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
  38. package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
  39. package/dist/_chunks/editable-currency-cell-renderer-CGELrkIj.js +410 -0
  40. package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
  41. package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-DmrgYSEX.js} +38 -20
  42. package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
  43. package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
  44. package/dist/_chunks/field-array-siUZzfYe.js +146 -0
  45. package/dist/_chunks/field-value-3jMM0uDx.js +415 -0
  46. package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
  47. package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
  48. package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-DKzEV5Qi.js} +4 -4
  49. package/dist/_chunks/hash-CysBBS_N.js +17 -0
  50. package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
  51. package/dist/_chunks/iban-input-B0TWzR1R.js +436 -0
  52. package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
  53. package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
  54. package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-De_SLjSq.js} +792 -668
  55. package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
  56. package/dist/_chunks/lock-CKOIn0IK.js +15 -0
  57. package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-BGqkywsi.js} +5 -5
  58. package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
  59. package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
  60. package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
  61. package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
  62. package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
  63. package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
  64. package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-BmUlCx3g.js} +201 -166
  65. package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-BO8TqzX2.js} +3 -3
  66. package/dist/_chunks/panel-header-D313n_9-.js +105 -0
  67. package/dist/_chunks/patient-details-DgfTJimE.js +759 -0
  68. package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-CSWQKOSP.js} +3 -3
  69. package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
  70. package/dist/_chunks/patient-summary-card-D4NdgYJB.js +452 -0
  71. package/dist/_chunks/patient-table-CERknpd8.js +1110 -0
  72. package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
  73. package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-Blf-MFNY.js} +125 -136
  74. package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
  75. package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
  76. package/dist/_chunks/permission-matrix-Bw5oexUt.js +174 -0
  77. package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
  78. package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
  79. package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-El5Z-oVp.js} +4 -4
  80. package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CunHrOpO.js} +4 -4
  81. package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
  82. package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
  83. package/dist/_chunks/province-select-D_TZvix3.js +261 -0
  84. package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
  85. package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
  86. package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
  87. package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
  88. package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
  89. package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
  90. package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
  91. package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
  92. package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
  93. package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
  94. package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
  95. package/dist/_chunks/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
  96. package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
  97. package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
  98. package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
  99. package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
  100. package/dist/_chunks/tool-rail-BZx0-yIr.js +524 -0
  101. package/dist/_chunks/tooth-scheme-DJZtzfeY.js +2133 -0
  102. package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
  103. package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
  104. package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
  105. package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
  106. package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
  107. package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
  108. package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
  109. package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-M8MBBHQm.js} +107 -119
  110. package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
  111. package/dist/agent/index.js +5 -4
  112. package/dist/agent/types.d.ts +19 -2
  113. package/dist/agent-catalog.json +3325 -322
  114. package/dist/agent-i18n/en.json +314 -14
  115. package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
  116. package/dist/components/_shared/entity-card/index.d.ts +1 -1
  117. package/dist/components/_shared/field-value.d.ts +21 -0
  118. package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
  119. package/dist/components/_shared/field-visibility.d.ts +36 -0
  120. package/dist/components/_shared/option.d.ts +2 -0
  121. package/dist/components/_shared/patient-fields.d.ts +119 -0
  122. package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
  123. package/dist/components/address-fields/address-fields.d.ts +29 -0
  124. package/dist/components/address-fields/index.d.ts +5 -0
  125. package/dist/components/address-fields/index.js +6 -0
  126. package/dist/components/agenda-card/index.js +1 -1
  127. package/dist/components/agenda-tray/index.js +1 -1
  128. package/dist/components/ai-consent-banner/index.js +1 -1
  129. package/dist/components/ai-prompt-input/index.js +1 -1
  130. package/dist/components/alert/alert.d.ts +5 -0
  131. package/dist/components/alert/index.js +1 -1
  132. package/dist/components/anamnesis-card/index.js +1 -1
  133. package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
  134. package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
  135. package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
  136. package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
  137. package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
  138. package/dist/components/anatomy-scheme/index.d.ts +6 -0
  139. package/dist/components/anatomy-scheme/index.js +17 -0
  140. package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
  141. package/dist/components/annotation-marker/index.d.ts +3 -0
  142. package/dist/components/annotation-marker/index.js +7 -0
  143. package/dist/components/app-frame/app-frame.d.ts +2 -2
  144. package/dist/components/app-frame/index.js +1 -1
  145. package/dist/components/appointment-card/appointment-card.d.ts +25 -1
  146. package/dist/components/appointment-card/index.js +6 -5
  147. package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
  148. package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
  149. package/dist/components/appointment-timeline/index.d.ts +4 -0
  150. package/dist/components/appointment-timeline/index.js +6 -0
  151. package/dist/components/audio-recorder/index.js +1 -1
  152. package/dist/components/autocomplete/autocomplete.d.ts +10 -0
  153. package/dist/components/autocomplete/index.js +1 -1
  154. package/dist/components/badge/badge.d.ts +6 -2
  155. package/dist/components/badge/index.js +1 -1
  156. package/dist/components/bishop-score/index.js +1 -1
  157. package/dist/components/bmi-calculator/index.js +1 -1
  158. package/dist/components/booking/index.js +1 -1
  159. package/dist/components/button-group/index.js +1 -1
  160. package/dist/components/care-plan-card/index.js +1 -1
  161. package/dist/components/care-plan-entry-card/index.js +1 -1
  162. package/dist/components/care-plan-header/care-plan-header.agent.d.ts +4 -0
  163. package/dist/components/care-plan-header/care-plan-header.d.ts +111 -0
  164. package/dist/components/care-plan-header/index.d.ts +4 -0
  165. package/dist/components/care-plan-header/index.js +6 -0
  166. package/dist/components/chat-message/index.js +1 -1
  167. package/dist/components/city-input/city-input.agent.d.ts +8 -0
  168. package/dist/components/city-input/city-input.d.ts +57 -0
  169. package/dist/components/city-input/index.d.ts +5 -0
  170. package/dist/components/city-input/index.js +6 -0
  171. package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
  172. package/dist/components/clinical-note-card/index.js +1 -1
  173. package/dist/components/combobox/combobox.d.ts +17 -0
  174. package/dist/components/combobox/index.js +1 -1
  175. package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
  176. package/dist/components/connection-status/connection-status.d.ts +36 -0
  177. package/dist/components/connection-status/index.d.ts +4 -0
  178. package/dist/components/connection-status/index.js +6 -0
  179. package/dist/components/contact-profile-card/index.js +1 -1
  180. package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
  181. package/dist/components/control-room-rail/control-room-rail.agent.d.ts +4 -0
  182. package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
  183. package/dist/components/control-room-rail/index.d.ts +6 -0
  184. package/dist/components/control-room-rail/index.js +10 -0
  185. package/dist/components/counter/counter.d.ts +1 -1
  186. package/dist/components/country-select/country-select.agent.d.ts +8 -0
  187. package/dist/components/country-select/country-select.d.ts +51 -0
  188. package/dist/components/country-select/index.d.ts +6 -0
  189. package/dist/components/country-select/index.js +9 -0
  190. package/dist/components/country-select/iso-3166.d.ts +15 -0
  191. package/dist/components/cycle-calculator/index.js +1 -1
  192. package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
  193. package/dist/components/data-table/cell-renderers/reorder-cell-renderer.d.ts +34 -0
  194. package/dist/components/data-table/index.d.ts +3 -1
  195. package/dist/components/data-table/index.js +35 -32
  196. package/dist/components/dependent-selector/index.js +1 -1
  197. package/dist/components/document-scanner/index.js +1 -1
  198. package/dist/components/due-date-calculator/index.js +2 -2
  199. package/dist/components/email-input/index.js +1 -1
  200. package/dist/components/entity-summary/entity-summary.agent.d.ts +4 -0
  201. package/dist/components/entity-summary/entity-summary.d.ts +92 -0
  202. package/dist/components/entity-summary/index.d.ts +3 -0
  203. package/dist/components/entity-summary/index.js +5 -0
  204. package/dist/components/fetal-weight/index.js +1 -1
  205. package/dist/components/field-array/field-array.agent.d.ts +4 -0
  206. package/dist/components/field-array/field-array.d.ts +45 -0
  207. package/dist/components/field-array/index.d.ts +4 -0
  208. package/dist/components/field-array/index.js +6 -0
  209. package/dist/components/file-upload/index.js +1 -1
  210. package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
  211. package/dist/components/freemium-paywall/index.js +1 -1
  212. package/dist/components/gestational-age-calculator/index.js +1 -1
  213. package/dist/components/hcg-doubling/index.js +1 -1
  214. package/dist/components/iban-input/iban-input.agent.d.ts +4 -0
  215. package/dist/components/iban-input/iban-input.d.ts +51 -0
  216. package/dist/components/iban-input/index.d.ts +5 -0
  217. package/dist/components/iban-input/index.js +13 -0
  218. package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
  219. package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
  220. package/dist/components/icon-picker/icon-picker.d.ts +41 -0
  221. package/dist/components/icon-picker/index.d.ts +4 -0
  222. package/dist/components/icon-picker/index.js +6 -0
  223. package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
  224. package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
  225. package/dist/components/image-cropper/image-cropper.d.ts +32 -0
  226. package/dist/components/image-cropper/index.d.ts +5 -0
  227. package/dist/components/image-cropper/index.js +11 -0
  228. package/dist/components/index.d.ts +25 -1
  229. package/dist/components/message-card/index.js +1 -1
  230. package/dist/components/message-card/message-card.d.ts +14 -0
  231. package/dist/components/message-tray/index.js +1 -1
  232. package/dist/components/message-tray/message-tray.d.ts +4 -0
  233. package/dist/components/multi-select/index.js +1 -1
  234. package/dist/components/nav-grid/index.d.ts +4 -0
  235. package/dist/components/nav-grid/index.js +7 -0
  236. package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
  237. package/dist/components/nav-grid/nav-grid.d.ts +41 -0
  238. package/dist/components/notes-panel/index.d.ts +3 -0
  239. package/dist/components/notes-panel/index.js +5 -0
  240. package/dist/components/notes-panel/notes-panel.agent.d.ts +4 -0
  241. package/dist/components/notes-panel/notes-panel.d.ts +94 -0
  242. package/dist/components/notification-card/index.js +1 -1
  243. package/dist/components/notification-card/notification-card.d.ts +15 -0
  244. package/dist/components/notification-tray/index.js +1 -1
  245. package/dist/components/notification-tray/notification-tray.d.ts +4 -0
  246. package/dist/components/operator-hero/index.js +1 -1
  247. package/dist/components/panel-header/index.d.ts +3 -0
  248. package/dist/components/panel-header/index.js +7 -0
  249. package/dist/components/panel-header/panel-header.d.ts +41 -0
  250. package/dist/components/patient-details/index.d.ts +5 -0
  251. package/dist/components/patient-details/index.js +6 -0
  252. package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
  253. package/dist/components/patient-details/patient-details.d.ts +96 -0
  254. package/dist/components/patient-search/index.js +1 -1
  255. package/dist/components/patient-summary-card/index.js +1 -1
  256. package/dist/components/patient-summary-card/patient-summary-card.d.ts +40 -1
  257. package/dist/components/patient-table/columns.d.ts +69 -40
  258. package/dist/components/patient-table/index.d.ts +2 -6
  259. package/dist/components/patient-table/index.js +8 -9
  260. package/dist/components/patient-table/patient-table.d.ts +38 -4
  261. package/dist/components/patient-table/types.d.ts +52 -2
  262. package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
  263. package/dist/components/payment-card/index.js +1 -1
  264. package/dist/components/payment-form/index.js +1 -1
  265. package/dist/components/pdf-viewer/index.js +1 -1
  266. package/dist/components/periodontal-chart-card/index.js +1 -1
  267. package/dist/components/permission-matrix/index.d.ts +4 -0
  268. package/dist/components/permission-matrix/index.js +7 -0
  269. package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
  270. package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
  271. package/dist/components/position-grid/index.d.ts +4 -0
  272. package/dist/components/position-grid/index.js +7 -0
  273. package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
  274. package/dist/components/position-grid/position-grid.d.ts +39 -0
  275. package/dist/components/postal-code-input/index.d.ts +5 -0
  276. package/dist/components/postal-code-input/index.js +6 -0
  277. package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
  278. package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
  279. package/dist/components/practice-results/index.js +1 -1
  280. package/dist/components/pregnancy-dating/index.js +1 -1
  281. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  282. package/dist/components/product-hub-tray/index.js +1 -1
  283. package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
  284. package/dist/components/province-select/index.d.ts +6 -0
  285. package/dist/components/province-select/index.js +7 -0
  286. package/dist/components/province-select/it-provinces.d.ts +8 -0
  287. package/dist/components/province-select/province-select.agent.d.ts +8 -0
  288. package/dist/components/province-select/province-select.d.ts +38 -0
  289. package/dist/components/public-footer/public-footer.d.ts +1 -1
  290. package/dist/components/public-header/index.js +1 -1
  291. package/dist/components/radiograph-panel/index.d.ts +4 -0
  292. package/dist/components/radiograph-panel/index.js +7 -0
  293. package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
  294. package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
  295. package/dist/components/reviews-panel/index.js +1 -1
  296. package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
  297. package/dist/components/rich-text-editor/index.js +1 -1
  298. package/dist/components/scroll-area/index.js +1 -1
  299. package/dist/components/select/index.js +1 -1
  300. package/dist/components/select/select.d.ts +8 -2
  301. package/dist/components/sheet/index.js +1 -1
  302. package/dist/components/sidebar/index.js +2 -2
  303. package/dist/components/sign-document/index.js +1 -1
  304. package/dist/components/skeleton/skeleton.d.ts +1 -1
  305. package/dist/components/stepper-accordion/index.js +1 -1
  306. package/dist/components/tab-bar/index.js +1 -1
  307. package/dist/components/tab-bar/tab-bar.d.ts +18 -1
  308. package/dist/components/tabs/index.js +1 -1
  309. package/dist/components/task-card/index.js +1 -1
  310. package/dist/components/task-card/task-card.d.ts +14 -6
  311. package/dist/components/task-tray/index.js +1 -1
  312. package/dist/components/tasks-panel/index.d.ts +4 -0
  313. package/dist/components/tasks-panel/index.js +6 -0
  314. package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
  315. package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
  316. package/dist/components/token-insert-menu/index.d.ts +4 -0
  317. package/dist/components/token-insert-menu/index.js +6 -0
  318. package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
  319. package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
  320. package/dist/components/tool-rail/index.d.ts +4 -0
  321. package/dist/components/tool-rail/index.js +6 -0
  322. package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
  323. package/dist/components/tool-rail/tool-rail.d.ts +160 -0
  324. package/dist/components/tooth-scheme/index.d.ts +2 -2
  325. package/dist/components/tooth-scheme/index.js +30 -23
  326. package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
  327. package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
  328. package/dist/components/tooth-scheme/tooth-scheme.d.ts +84 -11
  329. package/dist/components/transaction-chip/index.js +1 -1
  330. package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
  331. package/dist/components/transcript-panel/index.js +1 -1
  332. package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
  333. package/dist/components/unit-converter/index.js +1 -1
  334. package/dist/components/warning-stack/index.js +1 -1
  335. package/dist/components/warning-stack/warning-stack.d.ts +10 -7
  336. package/dist/components/workflow/index.js +1 -1
  337. package/dist/hooks/index.d.ts +1 -0
  338. package/dist/hooks/index.js +24 -22
  339. package/dist/hooks/use-clamp-overflow.d.ts +19 -0
  340. package/dist/hooks/use-edge-resize.d.ts +2 -2
  341. package/dist/hooks/use-overflow-collapse.d.ts +46 -0
  342. package/dist/hooks/use-persistent-state.d.ts +7 -1
  343. package/dist/hooks/use-scroll-overflow.d.ts +36 -0
  344. package/dist/i18n/locales/ar.d.ts +475 -26
  345. package/dist/i18n/locales/ar.js +478 -31
  346. package/dist/i18n/locales/de.d.ts +475 -26
  347. package/dist/i18n/locales/de.js +480 -31
  348. package/dist/i18n/locales/el.d.ts +475 -26
  349. package/dist/i18n/locales/el.js +485 -31
  350. package/dist/i18n/locales/en.d.ts +476 -34
  351. package/dist/i18n/locales/en.js +492 -39
  352. package/dist/i18n/locales/es.d.ts +475 -26
  353. package/dist/i18n/locales/es.js +477 -31
  354. package/dist/i18n/locales/fr.d.ts +475 -26
  355. package/dist/i18n/locales/fr.js +480 -31
  356. package/dist/i18n/locales/hi.d.ts +475 -26
  357. package/dist/i18n/locales/hi.js +476 -31
  358. package/dist/i18n/locales/it.d.ts +475 -26
  359. package/dist/i18n/locales/it.js +480 -31
  360. package/dist/i18n/locales/ja.d.ts +475 -26
  361. package/dist/i18n/locales/ja.js +481 -31
  362. package/dist/i18n/locales/nl.d.ts +475 -26
  363. package/dist/i18n/locales/nl.js +473 -31
  364. package/dist/i18n/locales/pl.d.ts +475 -26
  365. package/dist/i18n/locales/pl.js +481 -31
  366. package/dist/i18n/locales/pt.d.ts +475 -26
  367. package/dist/i18n/locales/pt.js +485 -31
  368. package/dist/i18n/locales/ro.d.ts +475 -26
  369. package/dist/i18n/locales/ro.js +485 -31
  370. package/dist/i18n/locales/ru.d.ts +475 -26
  371. package/dist/i18n/locales/ru.js +478 -31
  372. package/dist/i18n/locales/sq.d.ts +475 -26
  373. package/dist/i18n/locales/sq.js +482 -31
  374. package/dist/i18n/locales/sv.d.ts +475 -26
  375. package/dist/i18n/locales/sv.js +480 -31
  376. package/dist/i18n/locales/tr.d.ts +475 -26
  377. package/dist/i18n/locales/tr.js +478 -31
  378. package/dist/i18n/locales/zh.d.ts +475 -26
  379. package/dist/i18n/locales/zh.js +473 -31
  380. package/dist/index.js +826 -709
  381. package/dist/locales/ar.json +480 -31
  382. package/dist/locales/de.json +480 -31
  383. package/dist/locales/el.json +480 -31
  384. package/dist/locales/en.json +480 -31
  385. package/dist/locales/es.json +480 -31
  386. package/dist/locales/fr.json +480 -31
  387. package/dist/locales/hi.json +480 -31
  388. package/dist/locales/it.json +480 -31
  389. package/dist/locales/ja.json +480 -31
  390. package/dist/locales/nl.json +480 -31
  391. package/dist/locales/pl.json +480 -31
  392. package/dist/locales/pt.json +480 -31
  393. package/dist/locales/ro.json +480 -31
  394. package/dist/locales/ru.json +480 -31
  395. package/dist/locales/sq.json +480 -31
  396. package/dist/locales/sv.json +480 -31
  397. package/dist/locales/tr.json +480 -31
  398. package/dist/locales/zh.json +480 -31
  399. package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
  400. package/dist/patterns/alia-assistant/index.js +1 -1
  401. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  402. package/dist/patterns/patient-shell/index.js +1 -1
  403. package/dist/tokens.css +9 -1
  404. package/package.json +101 -5
  405. package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
  406. package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
  407. package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
  408. package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
  409. package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
  410. package/dist/_chunks/message-card-Bx4GmLvf.js +0 -277
  411. package/dist/_chunks/notification-card-BiESdm8q.js +0 -255
  412. package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
  413. package/dist/_chunks/patient-table-CDuosVru.js +0 -889
  414. package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
  415. package/dist/_chunks/rich-text-editor-BsV7zUdg.js +0 -2142
  416. package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
  417. package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
  418. package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
  419. package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
  420. package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
  421. package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +0 -68
  422. package/dist/components/ai-tools-rail/index.d.ts +0 -4
  423. package/dist/components/ai-tools-rail/index.js +0 -6
  424. package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
  425. package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
@@ -0,0 +1,388 @@
1
+ import { jsxs as C, jsx as o, Fragment as ve } from "react/jsx-runtime";
2
+ import { forwardRef as ke, useId as be, useMemo as M, useRef as T, useState as X, useCallback as x, useImperativeHandle as Te } from "react";
3
+ import { c as xe } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as De } from "react-i18next";
5
+ import { A as we } from "./appointment-card-DVaeJNVB.js";
6
+ import { B as K } from "./button-DD_0Xdmr.js";
7
+ import { B as Re } from "./button-group-CvEnVzY7.js";
8
+ import { D as Ie } from "./date-picker-Dl9RKxaV.js";
9
+ import { P as Se } from "./panel-header-D313n_9-.js";
10
+ import { S as je } from "./skeleton-CZbwyJAA.js";
11
+ import { E as Ce } from "./empty-state-BLy7tigq.js";
12
+ import { u as Z } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
+ import { u as He } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
+ import { u as Fe } from "./registry-DvAUVLHh.js";
15
+ import { C as Me } from "./calendar-days-C4BmpCZg.js";
16
+ const Ne = {
17
+ id: "appointment-timeline",
18
+ // 'pick' backs select_item (non-persisting activation through
19
+ // onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
20
+ // scroll viewport (mirrors practice-results' scroll_to_result).
21
+ capabilities: ["scroll", "pick"],
22
+ state: {
23
+ items: {
24
+ type: "Array<{ id: string; state: string }>",
25
+ descriptionKey: "ui.agent.appointmentTimeline.state.items",
26
+ description: "Currently-rendered appointments. Ids + lifecycle state only — never patient identity.",
27
+ read: (n) => n.getItems()
28
+ }
29
+ },
30
+ actions: {
31
+ select_item: {
32
+ safety: "read",
33
+ argsType: "{ id: string }",
34
+ argsSchema: {
35
+ type: "object",
36
+ properties: { id: { type: "string" } },
37
+ required: ["id"]
38
+ },
39
+ idempotent: !0,
40
+ descriptionKey: "ui.agent.appointmentTimeline.actions.selectItem",
41
+ description: "Activate the appointment with the given id.",
42
+ invoke: (n, i) => {
43
+ n.selectItem(i.id);
44
+ }
45
+ },
46
+ jump_to_today: {
47
+ safety: "read",
48
+ idempotent: !0,
49
+ descriptionKey: "ui.agent.appointmentTimeline.actions.jumpToToday",
50
+ description: "Re-anchor the timeline scroll on today's appointments.",
51
+ invoke: (n) => {
52
+ n.jumpToToday();
53
+ }
54
+ }
55
+ },
56
+ domHooks: {
57
+ root: {
58
+ attr: "data-component",
59
+ value: "appointment-timeline",
60
+ description: "Marks the AppointmentTimeline wrapper."
61
+ },
62
+ instanceId: {
63
+ attr: "data-component-id",
64
+ sourceProp: "id",
65
+ description: "Sourced from the id prop. Required to address a specific timeline from the agent."
66
+ },
67
+ item: {
68
+ attr: "data-appointment-id",
69
+ description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
70
+ }
71
+ }
72
+ }, O = 96, _e = xe(
73
+ [
74
+ "ds:flex ds:flex-col ds:h-full ds:min-h-0",
75
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
76
+ ].join(" "),
77
+ { variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
78
+ ), ze = [
79
+ "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
80
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
81
+ "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
82
+ "ds:[--atl-mask-top:black] ds:[--atl-mask-bottom:black]",
83
+ "ds:data-[fade-top=true]:[--atl-mask-top:transparent]",
84
+ "ds:data-[fade-bottom=true]:[--atl-mask-bottom:transparent]",
85
+ "ds:[mask-image:linear-gradient(to_bottom,var(--atl-mask-top)_0,black_var(--atl-fade-distance,var(--spacing-lg)),black_calc(100%-var(--atl-fade-distance,var(--spacing-lg))),var(--atl-mask-bottom)_100%)]",
86
+ "ds:motion-reduce:[mask-image:none]",
87
+ "ds:[.theme-accessible_&]:[mask-image:none]",
88
+ "ds:forced-colors:[mask-image:none]",
89
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
90
+ "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
91
+ "ds:forced-colors:focus-visible:outline-[CanvasText]"
92
+ ].join(" ");
93
+ function f(n) {
94
+ const i = `${n.getMonth() + 1}`.padStart(2, "0"), l = `${n.getDate()}`.padStart(2, "0");
95
+ return `${n.getFullYear()}-${i}-${l}`;
96
+ }
97
+ function Be(n) {
98
+ const i = [...n].sort(
99
+ (p, m) => +new Date(p.startIso) - +new Date(m.startIso)
100
+ ), l = /* @__PURE__ */ new Map();
101
+ for (const p of i) {
102
+ const m = new Date(p.startIso), g = f(m);
103
+ let c = l.get(g);
104
+ c || (c = {
105
+ key: g,
106
+ date: new Date(m.getFullYear(), m.getMonth(), m.getDate()),
107
+ items: []
108
+ }, l.set(g, c)), c.items.push(p);
109
+ }
110
+ return [...l.values()];
111
+ }
112
+ const Ke = ke(
113
+ ({
114
+ id: n,
115
+ items: i,
116
+ nowIso: l,
117
+ title: p,
118
+ locale: m,
119
+ currency: g,
120
+ size: c = "sm",
121
+ onOpenAppointment: h,
122
+ onLoadEarlier: y,
123
+ onLoadLater: v,
124
+ hasMoreEarlier: D,
125
+ hasMoreLater: k,
126
+ loadingEarlier: w = !1,
127
+ loadingLater: H = !1,
128
+ showFilters: L = !0,
129
+ onJumpToDate: F,
130
+ emptyTitle: J,
131
+ emptyDescription: ee,
132
+ className: te,
133
+ "aria-label": se,
134
+ ...ne
135
+ }, ie) => {
136
+ const { t: a, i18n: oe } = De(), A = be(), P = He(), Y = m ?? oe.language, $ = p ?? a("appointmentTimeline.title"), r = M(
137
+ () => l ? new Date(l) : /* @__PURE__ */ new Date(),
138
+ [l]
139
+ ), u = M(() => Be(i), [i]), E = D ?? !!y, q = k ?? !!v, N = M(() => {
140
+ if (u.length === 0) return;
141
+ const e = f(r), t = u.map((s) => s.key);
142
+ return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
143
+ }, [u, r]), R = T(null), I = T(/* @__PURE__ */ new Map()), G = T(!1), _ = T(void 0), V = T(0), [ae, re] = X(!1), [le, ce] = X(!1), S = x(() => {
144
+ const e = R.current;
145
+ if (!e) return;
146
+ const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
147
+ re(t > 1), ce(t + d < s - 1);
148
+ }, []), j = x(
149
+ (e, t) => {
150
+ const s = R.current;
151
+ if (!s) return;
152
+ let d = I.current.get(e);
153
+ if (!d) {
154
+ const B = [...I.current.keys()].sort(), U = B.find((ye) => ye >= e) ?? B[B.length - 1];
155
+ d = U ? I.current.get(U) : void 0;
156
+ }
157
+ if (!d) return;
158
+ const he = d.getBoundingClientRect().top - s.getBoundingClientRect().top;
159
+ s.scrollTo({
160
+ top: s.scrollTop + he,
161
+ behavior: t && !P ? "smooth" : "auto"
162
+ });
163
+ },
164
+ [P]
165
+ );
166
+ Z(() => {
167
+ var s;
168
+ const e = R.current;
169
+ if (!e) return;
170
+ const t = (s = u[0]) == null ? void 0 : s.key;
171
+ if (!G.current)
172
+ u.length > 0 && N && (j(N, !1), G.current = !0);
173
+ else if (_.current && t && t < _.current) {
174
+ const d = e.scrollHeight - V.current;
175
+ d > 0 && (e.scrollTop += d);
176
+ }
177
+ _.current = t, V.current = e.scrollHeight, S();
178
+ }, [u, N, j, S]), Z(() => {
179
+ const e = R.current;
180
+ if (!e || typeof ResizeObserver > "u") return;
181
+ const t = new ResizeObserver(S);
182
+ return t.observe(e), () => t.disconnect();
183
+ }, [S]);
184
+ const de = x(() => {
185
+ S();
186
+ const e = R.current;
187
+ if (!e) return;
188
+ const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
189
+ y && E && !w && t <= O && y(), v && q && !H && s - t - d <= O && v();
190
+ }, [
191
+ S,
192
+ y,
193
+ v,
194
+ E,
195
+ q,
196
+ w,
197
+ H
198
+ ]), b = x(
199
+ (e) => {
200
+ const t = f(e), s = I.current.has(t);
201
+ j(t, !0), s || F == null || F(e.toISOString());
202
+ },
203
+ [j, F]
204
+ ), me = x(() => b(r), [b, r]), pe = x(() => {
205
+ const e = new Date(r), t = (e.getDay() + 6) % 7;
206
+ e.setDate(e.getDate() - t), b(e);
207
+ }, [b, r]), ue = x(() => {
208
+ b(new Date(r.getFullYear(), r.getMonth(), 1));
209
+ }, [b, r]), z = T(i);
210
+ z.current = i;
211
+ const W = T(null);
212
+ Te(ie, () => W.current, []);
213
+ const fe = M(
214
+ () => ({
215
+ getItems: () => z.current.map((e) => ({ id: e.id, state: e.state })),
216
+ selectItem: (e) => {
217
+ const t = z.current.find((s) => s.id === e);
218
+ t && (h == null || h(t));
219
+ },
220
+ jumpToToday: () => j(f(r), !0)
221
+ }),
222
+ [h, j, r]
223
+ );
224
+ Fe(Ne, fe, n);
225
+ const ge = u.length === 0 && !w && !H, Q = (e) => /* @__PURE__ */ o(
226
+ "div",
227
+ {
228
+ "aria-hidden": "true",
229
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
230
+ children: /* @__PURE__ */ o(je, { variant: "rectangular", height: "3.5rem" })
231
+ },
232
+ e
233
+ );
234
+ return /* @__PURE__ */ C(
235
+ "section",
236
+ {
237
+ ref: W,
238
+ "data-component": "appointment-timeline",
239
+ "data-component-id": n,
240
+ "aria-label": se ?? $,
241
+ className: _e({ size: c, className: te }),
242
+ ...ne,
243
+ children: [
244
+ /* @__PURE__ */ o(
245
+ Se,
246
+ {
247
+ icon: /* @__PURE__ */ o(Me, {}),
248
+ title: $,
249
+ filters: L ? /* @__PURE__ */ C(ve, { children: [
250
+ /* @__PURE__ */ C(Re, { label: a("appointmentTimeline.filtersLabel"), children: [
251
+ /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: me, children: a("appointmentTimeline.today") }),
252
+ /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: pe, children: a("appointmentTimeline.thisWeek") }),
253
+ /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: ue, children: a("appointmentTimeline.thisMonth") })
254
+ ] }),
255
+ /* @__PURE__ */ o("label", { htmlFor: A, className: "ds:sr-only", children: a("appointmentTimeline.jumpToDate") }),
256
+ /* @__PURE__ */ o(
257
+ Ie,
258
+ {
259
+ id: A,
260
+ size: "sm",
261
+ placeholder: a("appointmentTimeline.jumpToDate"),
262
+ onChange: (e) => {
263
+ e && b(e);
264
+ }
265
+ }
266
+ )
267
+ ] }) : void 0
268
+ }
269
+ ),
270
+ ge ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
271
+ Ce,
272
+ {
273
+ variant: "first-use",
274
+ size: "sm",
275
+ title: J ?? a("appointmentTimeline.empty.title"),
276
+ description: ee ?? a("appointmentTimeline.empty.description")
277
+ }
278
+ ) }) : /* @__PURE__ */ C(
279
+ "div",
280
+ {
281
+ ref: R,
282
+ tabIndex: 0,
283
+ onScroll: de,
284
+ "data-fade-top": ae ? "true" : void 0,
285
+ "data-fade-bottom": le ? "true" : void 0,
286
+ className: ze,
287
+ children: [
288
+ w ? Q("loading-earlier") : null,
289
+ /* @__PURE__ */ o("ol", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0", children: u.map((e) => /* @__PURE__ */ C(
290
+ "li",
291
+ {
292
+ ref: (t) => {
293
+ t ? I.current.set(e.key, t) : I.current.delete(e.key);
294
+ },
295
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
296
+ children: [
297
+ /* @__PURE__ */ o(
298
+ Ae,
299
+ {
300
+ date: e.date,
301
+ now: r,
302
+ locale: Y,
303
+ todayLabel: a("appointmentTimeline.today"),
304
+ tomorrowLabel: a("appointmentTimeline.tomorrow"),
305
+ yesterdayLabel: a("appointmentTimeline.yesterday")
306
+ }
307
+ ),
308
+ /* @__PURE__ */ o("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: e.items.map((t) => /* @__PURE__ */ o(
309
+ we,
310
+ {
311
+ item: t,
312
+ size: c,
313
+ surface: "elevated",
314
+ showPatient: !1,
315
+ locale: Y,
316
+ currency: g,
317
+ onActivate: h,
318
+ "data-appointment-id": t.id
319
+ },
320
+ t.id
321
+ )) })
322
+ ]
323
+ },
324
+ e.key
325
+ )) }),
326
+ H ? Q("loading-later") : null
327
+ ]
328
+ }
329
+ )
330
+ ]
331
+ }
332
+ );
333
+ }
334
+ );
335
+ Ke.displayName = "AppointmentTimeline";
336
+ function Ae({
337
+ date: n,
338
+ now: i,
339
+ locale: l,
340
+ todayLabel: p,
341
+ tomorrowLabel: m,
342
+ yesterdayLabel: g
343
+ }) {
344
+ const c = f(n), h = f(i), y = new Date(i);
345
+ y.setDate(i.getDate() + 1);
346
+ const v = new Date(i);
347
+ v.setDate(i.getDate() - 1);
348
+ const D = c === h;
349
+ let k;
350
+ if (D) k = p;
351
+ else if (c === f(y)) k = m;
352
+ else if (c === f(v)) k = g;
353
+ else {
354
+ const w = n.getFullYear() === i.getFullYear();
355
+ k = new Intl.DateTimeFormat(l, {
356
+ weekday: "short",
357
+ day: "numeric",
358
+ month: "short",
359
+ ...w ? {} : { year: "numeric" }
360
+ }).format(n);
361
+ }
362
+ return /* @__PURE__ */ C(
363
+ "div",
364
+ {
365
+ "data-today": D ? "true" : void 0,
366
+ className: [
367
+ "ds:sticky ds:top-0 ds:z-[1] ds:bg-[color:var(--card)] ds:py-[var(--spacing-2xs)]",
368
+ "ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] type-eyebrow",
369
+ D ? "ds:text-[color:var(--primary)] ds:font-semibold" : "ds:text-[color:var(--muted-foreground)]"
370
+ ].join(" "),
371
+ children: [
372
+ D ? /* @__PURE__ */ o(
373
+ "span",
374
+ {
375
+ "aria-hidden": "true",
376
+ className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
377
+ }
378
+ ) : null,
379
+ k
380
+ ]
381
+ }
382
+ );
383
+ }
384
+ export {
385
+ Ke as A,
386
+ Ne as a
387
+ };
388
+ //# sourceMappingURL=appointment-timeline-PJgnrjFb.js.map
@@ -0,0 +1,193 @@
1
+ import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
+ import { forwardRef as j, useRef as h, useImperativeHandle as z, useMemo as P } from "react";
3
+ import { c as E } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as H } from "react-i18next";
5
+ import { I as M } from "./icon-button-LqoiKcUN.js";
6
+ import { S as q } from "./skeleton-CZbwyJAA.js";
7
+ import { E as K } from "./empty-state-BLy7tigq.js";
8
+ import { A as V } from "./appointment-card-DVaeJNVB.js";
9
+ import { u as _ } from "./registry-DvAUVLHh.js";
10
+ import { C as B } from "./calendar-days-C4BmpCZg.js";
11
+ import { P as D } from "./plus-CYKNmfuA.js";
12
+ const ae = {
13
+ id: "appointment-card",
14
+ // 'pick' (non-persisting activation) is host-delegated: the card exposes no
15
+ // handle of its own — its enclosing AppointmentTray performs the pick via
16
+ // `appointment-tray.select_item`, addressing this card by its data-component-id.
17
+ capabilities: ["pick"],
18
+ state: {},
19
+ actions: {},
20
+ domHooks: {
21
+ root: {
22
+ attr: "data-component",
23
+ value: "appointment-card",
24
+ description: "Marks the element as a kit AppointmentCard. The root also emits data-component-id sourced from item.id, data-state with the appointment lifecycle, and data-type with the delivery channel."
25
+ },
26
+ instanceId: {
27
+ attr: "data-component-id",
28
+ sourceProp: "item.id",
29
+ description: "Sourced from item.id — the stable appointment identifier."
30
+ }
31
+ }
32
+ }, L = {
33
+ id: "appointment-tray",
34
+ // 'pick' (non-persisting activation): select_item routes an activation
35
+ // through onActivate — it does not persist a "selected appointment" value,
36
+ // so this is a focus/pick, not a select_single.
37
+ capabilities: ["pick"],
38
+ state: {
39
+ items: {
40
+ type: "Array<{ id: string; state: string }>",
41
+ descriptionKey: "ui.agent.appointmentTray.state.items",
42
+ description: "Currently-displayed appointments. Ids + lifecycle state only — never patient identity.",
43
+ read: (a) => a.getItems()
44
+ }
45
+ },
46
+ actions: {
47
+ select_item: {
48
+ safety: "read",
49
+ argsType: "{ id: string }",
50
+ argsSchema: {
51
+ type: "object",
52
+ properties: { id: { type: "string" } },
53
+ required: ["id"]
54
+ },
55
+ idempotent: !0,
56
+ descriptionKey: "ui.agent.appointmentTray.actions.selectItem",
57
+ description: "Activate the appointment with the given id.",
58
+ invoke: (a, s) => {
59
+ a.selectItem(s.id);
60
+ }
61
+ }
62
+ },
63
+ domHooks: {
64
+ root: {
65
+ attr: "data-component",
66
+ value: "appointment-tray",
67
+ description: "Marks the AppointmentTray wrapper."
68
+ },
69
+ instanceId: {
70
+ attr: "data-component-id",
71
+ sourceProp: "id",
72
+ description: "Sourced from the id prop. Required to address a specific tray from the agent."
73
+ },
74
+ item: {
75
+ attr: "data-appointment-id",
76
+ description: "Stable appointment id emitted on each rendered AppointmentCard inside the tray."
77
+ }
78
+ }
79
+ }, F = E(
80
+ [
81
+ "ds:flex ds:flex-col",
82
+ "ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
83
+ "ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
84
+ "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
85
+ "ds:overflow-hidden"
86
+ ].join(" "),
87
+ {
88
+ variants: {
89
+ size: {
90
+ sm: "",
91
+ md: ""
92
+ }
93
+ },
94
+ defaultVariants: {
95
+ size: "sm"
96
+ }
97
+ }
98
+ ), G = j(
99
+ ({
100
+ id: a,
101
+ items: s,
102
+ title: g,
103
+ caption: c,
104
+ size: p = "sm",
105
+ locale: v,
106
+ currency: x,
107
+ onOpenAppointment: i,
108
+ onAddAppointment: m,
109
+ addLabel: b,
110
+ loading: l = !1,
111
+ emptyTitle: T,
112
+ emptyDescription: w,
113
+ className: I,
114
+ ...k
115
+ }, N) => {
116
+ const { t: r } = H(), f = g ?? r("appointmentTray.title"), C = b ?? r("appointmentTray.add"), A = !l && s.length === 0;
117
+ let n;
118
+ l ? n = /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((e) => /* @__PURE__ */ t(q, { variant: "rectangular", height: "3.5rem" }, e)) }) : A ? n = /* @__PURE__ */ t("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ t(
119
+ K,
120
+ {
121
+ variant: "first-use",
122
+ size: "sm",
123
+ title: T ?? r("appointmentTray.empty.title"),
124
+ description: w ?? r("appointmentTray.empty.description")
125
+ }
126
+ ) }) : n = /* @__PURE__ */ t("ul", { className: "ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-2xs)]", children: s.map((e) => /* @__PURE__ */ t(
127
+ V,
128
+ {
129
+ item: e,
130
+ size: p,
131
+ locale: v,
132
+ currency: x,
133
+ onActivate: i,
134
+ "data-appointment-id": e.id
135
+ },
136
+ e.id
137
+ )) });
138
+ const o = h(s);
139
+ o.current = s;
140
+ const y = h(null);
141
+ z(N, () => y.current, []);
142
+ const S = P(
143
+ () => ({
144
+ getItems: () => o.current.map((e) => ({ id: e.id, state: e.state })),
145
+ selectItem: (e) => {
146
+ const u = o.current.find((R) => R.id === e);
147
+ u && (i == null || i(u));
148
+ }
149
+ }),
150
+ [i]
151
+ );
152
+ return _(L, S, a), /* @__PURE__ */ d(
153
+ "section",
154
+ {
155
+ ref: y,
156
+ "aria-label": f,
157
+ "data-component": "appointment-tray",
158
+ "data-component-id": a,
159
+ className: F({ size: p, className: I }),
160
+ ...k,
161
+ children: [
162
+ /* @__PURE__ */ d("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
163
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
164
+ /* @__PURE__ */ d("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
165
+ /* @__PURE__ */ t(B, { "aria-hidden": "true", className: "ds:size-4" }),
166
+ f
167
+ ] }),
168
+ c ? /* @__PURE__ */ t("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: c }) : null
169
+ ] }),
170
+ m ? /* @__PURE__ */ t(
171
+ M,
172
+ {
173
+ icon: /* @__PURE__ */ t(D, {}),
174
+ intent: "outline",
175
+ size: "sm",
176
+ "aria-label": C,
177
+ onClick: m
178
+ }
179
+ ) : null
180
+ ] }),
181
+ n
182
+ ]
183
+ }
184
+ );
185
+ }
186
+ );
187
+ G.displayName = "AppointmentTray";
188
+ export {
189
+ G as A,
190
+ ae as a,
191
+ L as b
192
+ };
193
+ //# sourceMappingURL=appointment-tray-B16QPGbm.js.map
@@ -4,9 +4,9 @@ import { c as oe } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ue } from "react-i18next";
5
5
  import { B as G } from "./button-DD_0Xdmr.js";
6
6
  import { I as D } from "./icon-button-LqoiKcUN.js";
7
- import { S as pe } from "./select-DMLG44F5.js";
7
+ import { S as pe } from "./select-KsyRr8WH.js";
8
8
  import { A as le } from "./audio-visualiser-l6zPd0AG.js";
9
- import { A as F } from "./alert-_mUKLmwA.js";
9
+ import { A as F } from "./alert-CHYZ96tR.js";
10
10
  import { u as me } from "./registry-DvAUVLHh.js";
11
11
  import { M as fe } from "./mic-B4Gog3Gi.js";
12
12
  import { c as J } from "./createLucideIcon-CrFbzy84.js";
@@ -447,4 +447,4 @@ export {
447
447
  De as A,
448
448
  Re as a
449
449
  };
450
- //# sourceMappingURL=audio-recorder-DYXXnGug.js.map
450
+ //# sourceMappingURL=audio-recorder-DNDsOLqO.js.map