@alfadocs/ui-kit 1.137.0 → 1.139.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 (244) hide show
  1. package/dist/_chunks/{address-fields-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
  2. package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
  4. package/dist/_chunks/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
  5. package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
  6. package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
  7. package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
  8. package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
  9. package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
  10. package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
  11. package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-D0n_bVsT.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +537 -536
  13. package/dist/_chunks/{calendar-editor-discard-host-1UfmMOEb.js → calendar-editor-discard-host-BcMEgVEq.js} +3 -3
  14. package/dist/_chunks/{calendar-waiting-list-panel-Ckd6tSeu.js → calendar-waiting-list-panel-CkZBAv_E.js} +4 -4
  15. package/dist/_chunks/{calendar-workspace.model-DrOoxY1b.js → calendar-workspace.model-B8yPwuBv.js} +2 -2
  16. package/dist/_chunks/{calendar.sheets-Datc0-IT.js → calendar.sheets-B0jP2Yt0.js} +113 -112
  17. package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
  18. package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
  19. package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
  20. package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
  21. package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
  22. package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
  23. package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
  24. package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
  25. package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
  26. package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
  27. package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
  28. package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
  29. package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
  30. package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
  34. package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
  35. package/dist/_chunks/medication-I6QvOq6k.js +21 -0
  36. package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
  37. package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
  38. package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
  39. package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
  40. package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
  41. package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
  42. package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
  43. package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
  44. package/dist/_chunks/{patient-account-settings-COybehKx.js → patient-account-settings-DfEPHmCh.js} +3 -3
  45. package/dist/_chunks/{patient-check-in-resume-DZnyYDKH.js → patient-check-in-resume-TWs8CPQr.js} +5 -5
  46. package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
  47. package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
  48. package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
  49. package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
  50. package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
  51. package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
  52. package/dist/_chunks/{portal-details-DdzvroYP.js → portal-details-VfeOI4PB.js} +3 -3
  53. package/dist/_chunks/{portal-documents-CNmoYWFc.js → portal-documents-hGHlwmbv.js} +3 -3
  54. package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
  55. package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
  56. package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
  57. package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
  58. package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
  59. package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
  60. package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
  61. package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
  62. package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
  63. package/dist/_chunks/save-Dn8uje3f.js +22 -0
  64. package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
  65. package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
  66. package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
  67. package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
  68. package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
  69. package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
  70. package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
  71. package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
  72. package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
  73. package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
  74. package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
  75. package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
  76. package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
  77. package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
  78. package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
  79. package/dist/agent-catalog.json +456 -2
  80. package/dist/agent-i18n/en.json +53 -0
  81. package/dist/appointment-editor-panel/index.js +2 -2
  82. package/dist/booking-tools-data/index.js +1 -1
  83. package/dist/browser-support.js +1 -1
  84. package/dist/calendar-action-buttons/index.js +1 -1
  85. package/dist/components/_shared/medication.d.ts +28 -0
  86. package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
  87. package/dist/components/_shared/patient-picker.d.ts +7 -0
  88. package/dist/components/address-fields/index.js +1 -1
  89. package/dist/components/ai-prompt-input/index.js +1 -1
  90. package/dist/components/appointment-card/appointment-card.d.ts +5 -2
  91. package/dist/components/appointment-card/index.js +2 -2
  92. package/dist/components/appointment-details-panel/index.js +1 -1
  93. package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
  94. package/dist/components/appointment-timeline/index.js +1 -1
  95. package/dist/components/audio-recorder/index.js +1 -1
  96. package/dist/components/autocomplete/autocomplete.d.ts +50 -0
  97. package/dist/components/autocomplete/index.d.ts +1 -1
  98. package/dist/components/autocomplete/index.js +1 -1
  99. package/dist/components/bill-line-table/index.js +1 -1
  100. package/dist/components/bill-table/index.js +1 -1
  101. package/dist/components/bishop-score/index.js +1 -1
  102. package/dist/components/booking/index.js +1 -1
  103. package/dist/components/calls-panel/index.js +1 -1
  104. package/dist/components/city-input/index.js +1 -1
  105. package/dist/components/combobox/index.js +1 -1
  106. package/dist/components/communications-panel/index.js +1 -1
  107. package/dist/components/country-select/index.js +1 -1
  108. package/dist/components/data-grid/index.js +2 -2
  109. package/dist/components/data-table/index.js +2 -2
  110. package/dist/components/document-preview/index.js +1 -1
  111. package/dist/components/face-scheme/index.js +1 -1
  112. package/dist/components/file-manager/index.js +1 -1
  113. package/dist/components/gestational-age-calculator/index.js +1 -1
  114. package/dist/components/heatmap/index.js +1 -1
  115. package/dist/components/index.d.ts +5 -0
  116. package/dist/components/invoice-upload-list/index.js +1 -1
  117. package/dist/components/medication-line/index.d.ts +6 -0
  118. package/dist/components/medication-line/index.js +7 -0
  119. package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
  120. package/dist/components/medication-line/medication-line.d.ts +40 -0
  121. package/dist/components/medication-search/index.d.ts +6 -0
  122. package/dist/components/medication-search/index.js +10 -0
  123. package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
  124. package/dist/components/medication-search/medication-search.d.ts +49 -0
  125. package/dist/components/multi-select/index.js +1 -1
  126. package/dist/components/muscle-scheme/index.js +1 -1
  127. package/dist/components/notes-panel/index.js +1 -1
  128. package/dist/components/optical-prescription/index.js +1 -1
  129. package/dist/components/patient-details/index.js +1 -1
  130. package/dist/components/patient-search/index.js +1 -1
  131. package/dist/components/patient-summary-card/index.js +1 -1
  132. package/dist/components/patient-table/index.js +1 -1
  133. package/dist/components/phone-input/index.js +1 -1
  134. package/dist/components/pregnancy-dating/index.js +1 -1
  135. package/dist/components/print-sheet/index.d.ts +5 -0
  136. package/dist/components/print-sheet/index.js +6 -0
  137. package/dist/components/print-sheet/print-isolation.d.ts +17 -0
  138. package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
  139. package/dist/components/print-sheet/print-sheet.d.ts +54 -0
  140. package/dist/components/province-select/index.js +1 -1
  141. package/dist/components/rich-text-editor/index.js +2 -2
  142. package/dist/components/search-bar/index.js +1 -1
  143. package/dist/components/select/index.js +1 -1
  144. package/dist/components/skeleton-scheme/index.js +1 -1
  145. package/dist/components/sync-tray/index.d.ts +4 -0
  146. package/dist/components/sync-tray/index.js +7 -0
  147. package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
  148. package/dist/components/sync-tray/sync-tray.d.ts +77 -0
  149. package/dist/components/tabs/index.js +1 -1
  150. package/dist/components/task-editor/index.js +1 -1
  151. package/dist/components/tasks-panel/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/variables-menu/index.js +1 -1
  154. package/dist/components/voice-control-panel/index.js +1 -1
  155. package/dist/core.css +1 -1
  156. package/dist/find-free-slots-panel/index.js +1 -1
  157. package/dist/host-compat.css +13 -1
  158. package/dist/host-legacy.css +16 -0
  159. package/dist/i18n/locales/ar.d.ts +134 -1
  160. package/dist/i18n/locales/ar.js +134 -1
  161. package/dist/i18n/locales/de.d.ts +134 -1
  162. package/dist/i18n/locales/de.js +134 -1
  163. package/dist/i18n/locales/el.d.ts +134 -1
  164. package/dist/i18n/locales/el.js +134 -1
  165. package/dist/i18n/locales/en.d.ts +134 -1
  166. package/dist/i18n/locales/en.js +134 -1
  167. package/dist/i18n/locales/es.d.ts +134 -1
  168. package/dist/i18n/locales/es.js +134 -1
  169. package/dist/i18n/locales/fr.d.ts +134 -1
  170. package/dist/i18n/locales/fr.js +134 -1
  171. package/dist/i18n/locales/hi.d.ts +134 -1
  172. package/dist/i18n/locales/hi.js +134 -1
  173. package/dist/i18n/locales/it.d.ts +134 -1
  174. package/dist/i18n/locales/it.js +134 -1
  175. package/dist/i18n/locales/ja.d.ts +134 -1
  176. package/dist/i18n/locales/ja.js +134 -1
  177. package/dist/i18n/locales/nl.d.ts +134 -1
  178. package/dist/i18n/locales/nl.js +134 -1
  179. package/dist/i18n/locales/pl.d.ts +134 -1
  180. package/dist/i18n/locales/pl.js +134 -1
  181. package/dist/i18n/locales/pt.d.ts +134 -1
  182. package/dist/i18n/locales/pt.js +134 -1
  183. package/dist/i18n/locales/ro.d.ts +134 -1
  184. package/dist/i18n/locales/ro.js +134 -1
  185. package/dist/i18n/locales/ru.d.ts +134 -1
  186. package/dist/i18n/locales/ru.js +134 -1
  187. package/dist/i18n/locales/sq.d.ts +134 -1
  188. package/dist/i18n/locales/sq.js +134 -1
  189. package/dist/i18n/locales/sv.d.ts +134 -1
  190. package/dist/i18n/locales/sv.js +134 -1
  191. package/dist/i18n/locales/tr.d.ts +134 -1
  192. package/dist/i18n/locales/tr.js +134 -1
  193. package/dist/i18n/locales/zh.d.ts +134 -1
  194. package/dist/i18n/locales/zh.js +134 -1
  195. package/dist/index.js +1004 -976
  196. package/dist/locales/ar.json +134 -1
  197. package/dist/locales/de.json +134 -1
  198. package/dist/locales/el.json +134 -1
  199. package/dist/locales/en.json +134 -1
  200. package/dist/locales/es.json +134 -1
  201. package/dist/locales/fr.json +134 -1
  202. package/dist/locales/hi.json +134 -1
  203. package/dist/locales/it.json +134 -1
  204. package/dist/locales/ja.json +134 -1
  205. package/dist/locales/nl.json +134 -1
  206. package/dist/locales/pl.json +134 -1
  207. package/dist/locales/pt.json +134 -1
  208. package/dist/locales/ro.json +134 -1
  209. package/dist/locales/ru.json +134 -1
  210. package/dist/locales/sq.json +134 -1
  211. package/dist/locales/sv.json +134 -1
  212. package/dist/locales/tr.json +134 -1
  213. package/dist/locales/zh.json +134 -1
  214. package/dist/online-bookings-panel/index.js +2 -2
  215. package/dist/patterns/anamnesis/index.js +1 -1
  216. package/dist/patterns/calendar/index.js +4 -4
  217. package/dist/patterns/forgot-password-form/index.js +1 -1
  218. package/dist/patterns/login-form/index.js +1 -1
  219. package/dist/patterns/patient-account-settings/index.js +1 -1
  220. package/dist/patterns/patient-check-in/index.js +1 -1
  221. package/dist/patterns/patient-portal/index.js +2 -2
  222. package/dist/patterns/prescription/index.d.ts +11 -0
  223. package/dist/patterns/prescription/index.js +13 -0
  224. package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
  225. package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
  226. package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
  227. package/dist/patterns/prescription/prescription-history.d.ts +48 -0
  228. package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
  229. package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
  230. package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
  231. package/dist/patterns/prescription/prescription-types.d.ts +97 -0
  232. package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
  233. package/dist/patterns/registration-form/index.js +1 -1
  234. package/dist/patterns/reset-password-form/index.js +1 -1
  235. package/dist/patterns/send-registration-link-form/index.js +1 -1
  236. package/dist/patterns/signature-request/index.js +1 -1
  237. package/dist/tokens.css +1 -1
  238. package/dist/waiting-list-panel/index.js +2 -2
  239. package/package.json +21 -1
  240. package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
  241. package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
  242. package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
  243. package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
  244. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
@@ -1,20 +1,20 @@
1
- import { jsxs as x, jsx as o, Fragment as He } from "react/jsx-runtime";
2
- import { forwardRef as Me, useId as Ne, useMemo as j, useRef as y, useState as $, useEffect as Fe, useCallback as b, useImperativeHandle as _e } from "react";
3
- import { c as ze } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ae } from "react-i18next";
5
- import { A as ne } from "./appointment-card-BT1cMZIX.js";
1
+ import { jsxs as x, jsx as o, Fragment as Me } from "react/jsx-runtime";
2
+ import { forwardRef as Ne, useId as Fe, useMemo as j, useRef as y, useState as $, useEffect as _e, useCallback as b, useImperativeHandle as ze } from "react";
3
+ import { c as Ae } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Be } from "react-i18next";
5
+ import { A as ae } from "./appointment-card-CaxFXtSn.js";
6
6
  import { B as P } from "./button-DohK_Ak_.js";
7
- import { B as Be } from "./button-group-DuQuuulC.js";
8
- import { D as Ke } from "./date-picker-BmVBVpVu.js";
9
- import { P as Ee } from "./panel-header-CbtlTe85.js";
10
- import { S as Ye } from "./skeleton-tTWJpvAq.js";
11
- import { E as $e } from "./empty-state-DwJ5YNzz.js";
12
- import { u as ae } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
- import { u as Pe } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
- import { a as We, u as qe, R as Ge } from "./use-list-reflow-C7O4Uqnl.js";
15
- import { u as Ve } from "./registry-DvAUVLHh.js";
16
- import { C as Le } from "./calendar-days-BGWklvE-.js";
17
- const Oe = {
7
+ import { B as Ke } from "./button-group-DuQuuulC.js";
8
+ import { D as Ee } from "./date-picker-BmVBVpVu.js";
9
+ import { P as Ye } from "./panel-header-CbtlTe85.js";
10
+ import { S as $e } from "./skeleton-tTWJpvAq.js";
11
+ import { E as Pe } from "./empty-state-DwJ5YNzz.js";
12
+ import { u as ie } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
+ import { u as We } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
+ import { a as qe, u as Ge, R as Ve } from "./use-list-reflow-C7O4Uqnl.js";
15
+ import { u as Le } from "./registry-DvAUVLHh.js";
16
+ import { C as Oe } from "./calendar-days-BGWklvE-.js";
17
+ const Qe = {
18
18
  id: "appointment-timeline",
19
19
  // 'pick' backs select_item (non-persisting activation through
20
20
  // onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
@@ -70,13 +70,13 @@ const Oe = {
70
70
  description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
71
71
  }
72
72
  }
73
- }, ie = 96, Qe = ze(
73
+ }, oe = 96, Ue = Ae(
74
74
  [
75
75
  "ds:flex ds:flex-col ds:h-full ds:min-h-0",
76
76
  "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
77
77
  ].join(" "),
78
78
  { variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
79
- ), Ue = [
79
+ ), Xe = [
80
80
  "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
81
81
  "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
82
82
  "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
@@ -94,7 +94,7 @@ function k(i) {
94
94
  const n = `${i.getMonth() + 1}`.padStart(2, "0"), d = `${i.getDate()}`.padStart(2, "0");
95
95
  return `${i.getFullYear()}-${n}-${d}`;
96
96
  }
97
- function Xe(i) {
97
+ function Ze(i) {
98
98
  const n = [...i].sort(
99
99
  (g, m) => +new Date(g.startIso) - +new Date(m.startIso)
100
100
  ), d = /* @__PURE__ */ new Map();
@@ -109,7 +109,7 @@ function Xe(i) {
109
109
  }
110
110
  return [...d.values()];
111
111
  }
112
- const Ze = Me(
112
+ const Je = Ne(
113
113
  ({
114
114
  id: i,
115
115
  items: n,
@@ -124,56 +124,57 @@ const Ze = Me(
124
124
  onLoadEarlier: f,
125
125
  onLoadLater: p,
126
126
  hasMoreEarlier: _,
127
- hasMoreLater: oe,
127
+ hasMoreLater: re,
128
128
  loadingEarlier: M = !1,
129
129
  loadingLater: N = !1,
130
- showFilters: re = !0,
130
+ showFilters: le = !0,
131
131
  onJumpToDate: F,
132
- emptyTitle: le,
133
- emptyDescription: ce,
134
- className: de,
135
- "aria-label": me,
136
- headerExtra: pe,
137
- hideDefaultStatus: ue = !1,
138
- ...fe
139
- }, ge) => {
140
- const { t: l, i18n: he } = Ae("ui"), W = Ne(), z = Pe(), A = m ?? he.language, q = g ?? l("appointmentTimeline.title"), c = j(
132
+ emptyTitle: ce,
133
+ emptyDescription: de,
134
+ className: me,
135
+ "aria-label": pe,
136
+ headerExtra: ue,
137
+ hideDefaultStatus: fe = !1,
138
+ wrapText: W = !1,
139
+ ...ge
140
+ }, he) => {
141
+ const { t: l, i18n: ve } = Be("ui"), q = Fe(), z = We(), A = m ?? ve.language, G = g ?? l("appointmentTimeline.title"), c = j(
141
142
  () => d ? new Date(d) : /* @__PURE__ */ new Date(),
142
143
  [d]
143
- ), u = j(() => Xe(n), [n]), G = z || void 0, ve = j(
144
+ ), u = j(() => Ze(n), [n]), V = z || void 0, ye = j(
144
145
  () => u.flatMap((e) => e.items.map((t) => t.id)).join(),
145
146
  [u]
146
- ), { containerRef: ye } = We({
147
- key: ve,
148
- reduceMotion: G
149
- }), V = qe({ reduceMotion: G }), L = y(n), [O, Q] = $([]);
150
- Fe(() => {
151
- const e = L.current;
147
+ ), { containerRef: ke } = qe({
148
+ key: ye,
149
+ reduceMotion: V
150
+ }), L = Ge({ reduceMotion: V }), O = y(n), [Q, U] = $([]);
151
+ _e(() => {
152
+ const e = O.current;
152
153
  if (e === n) return;
153
154
  const t = new Set(n.map((a) => a.id)), s = e.filter((a) => !t.has(a.id));
154
- s.length > 0 && (Q((a) => [...a, ...s]), s.forEach((a) => {
155
- V.leave(a.id, () => {
156
- Q((Y) => Y.filter((S) => S.id !== a.id));
155
+ s.length > 0 && (U((a) => [...a, ...s]), s.forEach((a) => {
156
+ L.leave(a.id, () => {
157
+ U((Y) => Y.filter((S) => S.id !== a.id));
157
158
  });
158
- })), L.current = n;
159
- }, [n, V]);
160
- const U = _ ?? !!f, X = oe ?? !!p, B = j(() => {
159
+ })), O.current = n;
160
+ }, [n, L]);
161
+ const X = _ ?? !!f, Z = re ?? !!p, B = j(() => {
161
162
  if (u.length === 0) return;
162
163
  const e = k(c), t = u.map((s) => s.key);
163
164
  return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
164
- }, [u, c]), D = y(null), w = y(/* @__PURE__ */ new Map()), Z = y(!1), K = y(void 0), J = y(0), [ke, Te] = $(!1), [be, xe] = $(!1), R = b(() => {
165
+ }, [u, c]), D = y(null), R = y(/* @__PURE__ */ new Map()), J = y(!1), K = y(void 0), ee = y(0), [Te, be] = $(!1), [xe, De] = $(!1), w = b(() => {
165
166
  const e = D.current;
166
167
  if (!e) return;
167
168
  const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
168
- Te(t > 1), xe(t + a < s - 1);
169
+ be(t > 1), De(t + a < s - 1);
169
170
  }, []), I = b(
170
171
  (e, t) => {
171
172
  const s = D.current;
172
173
  if (!s) return;
173
- let a = w.current.get(e);
174
+ let a = R.current.get(e);
174
175
  if (!a) {
175
- const S = [...w.current.keys()].sort(), se = S.find((Ce) => Ce >= e) ?? S[S.length - 1];
176
- a = se ? w.current.get(se) : void 0;
176
+ const S = [...R.current.keys()].sort(), ne = S.find((He) => He >= e) ?? S[S.length - 1];
177
+ a = ne ? R.current.get(ne) : void 0;
177
178
  }
178
179
  if (!a) return;
179
180
  const Y = a.getBoundingClientRect().top - s.getBoundingClientRect().top;
@@ -184,56 +185,56 @@ const Ze = Me(
184
185
  },
185
186
  [z]
186
187
  );
187
- ae(() => {
188
+ ie(() => {
188
189
  var s;
189
190
  const e = D.current;
190
191
  if (!e) return;
191
192
  const t = (s = u[0]) == null ? void 0 : s.key;
192
- if (!Z.current)
193
- u.length > 0 && B && (I(B, !1), Z.current = !0);
193
+ if (!J.current)
194
+ u.length > 0 && B && (I(B, !1), J.current = !0);
194
195
  else if (K.current && t && t < K.current) {
195
- const a = e.scrollHeight - J.current;
196
+ const a = e.scrollHeight - ee.current;
196
197
  a > 0 && (e.scrollTop += a);
197
198
  }
198
- K.current = t, J.current = e.scrollHeight, R();
199
- }, [u, B, I, R]), ae(() => {
199
+ K.current = t, ee.current = e.scrollHeight, w();
200
+ }, [u, B, I, w]), ie(() => {
200
201
  const e = D.current;
201
202
  if (!e || typeof ResizeObserver > "u") return;
202
- const t = new ResizeObserver(R);
203
+ const t = new ResizeObserver(w);
203
204
  return t.observe(e), () => t.disconnect();
204
- }, [R]);
205
- const De = b(() => {
206
- R();
205
+ }, [w]);
206
+ const Re = b(() => {
207
+ w();
207
208
  const e = D.current;
208
209
  if (!e) return;
209
210
  const { scrollTop: t, scrollHeight: s, clientHeight: a } = e;
210
- f && U && !M && t <= ie && f(), p && X && !N && s - t - a <= ie && p();
211
+ f && X && !M && t <= oe && f(), p && Z && !N && s - t - a <= oe && p();
211
212
  }, [
212
- R,
213
+ w,
213
214
  f,
214
215
  p,
215
- U,
216
216
  X,
217
+ Z,
217
218
  M,
218
219
  N
219
220
  ]), T = b(
220
221
  (e) => {
221
- const t = k(e), s = w.current.has(t);
222
+ const t = k(e), s = R.current.has(t);
222
223
  I(t, !0), s || F == null || F(e.toISOString());
223
224
  },
224
225
  [I, F]
225
- ), we = b(() => T(c), [T, c]), Re = b(() => {
226
+ ), we = b(() => T(c), [T, c]), Ie = b(() => {
226
227
  const e = new Date(c), t = (e.getDay() + 6) % 7;
227
228
  e.setDate(e.getDate() - t), T(e);
228
- }, [T, c]), Ie = b(() => {
229
+ }, [T, c]), Se = b(() => {
229
230
  T(new Date(c.getFullYear(), c.getMonth(), 1));
230
231
  }, [T, c]), E = y(n);
231
232
  E.current = n;
232
- const ee = y(null);
233
- _e(ge, () => ee.current, []);
234
- const Se = j(
233
+ const te = y(null);
234
+ ze(he, () => te.current, []);
235
+ const je = j(
235
236
  () => ({
236
- getItems: () => E.current.map((e) => ({ id: e.id, state: e.state })),
237
+ getItems: () => E.current.map((e) => ({ id: e.id, state: e.state ?? "" })),
237
238
  selectItem: (e) => {
238
239
  const t = E.current.find((s) => s.id === e);
239
240
  t && (v == null || v(t));
@@ -242,42 +243,42 @@ const Ze = Me(
242
243
  }),
243
244
  [v, I, c]
244
245
  );
245
- Ve(Oe, Se, i);
246
- const je = u.length === 0 && !M && !N, te = (e) => /* @__PURE__ */ o(
246
+ Le(Qe, je, i);
247
+ const Ce = u.length === 0 && !M && !N, se = (e) => /* @__PURE__ */ o(
247
248
  "div",
248
249
  {
249
250
  "aria-hidden": "true",
250
251
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
251
- children: /* @__PURE__ */ o(Ye, { variant: "rectangular", height: "3.5rem" })
252
+ children: /* @__PURE__ */ o($e, { variant: "rectangular", height: "3.5rem" })
252
253
  },
253
254
  e
254
255
  );
255
256
  return /* @__PURE__ */ x(
256
257
  "section",
257
258
  {
258
- ref: ee,
259
+ ref: te,
259
260
  "data-component": "appointment-timeline",
260
261
  "data-component-id": i,
261
- "aria-label": me ?? q,
262
- className: Qe({ size: r, className: de }),
263
- ...fe,
262
+ "aria-label": pe ?? G,
263
+ className: Ue({ size: r, className: me }),
264
+ ...ge,
264
265
  children: [
265
266
  /* @__PURE__ */ o(
266
- Ee,
267
+ Ye,
267
268
  {
268
- icon: /* @__PURE__ */ o(Le, {}),
269
- title: q,
270
- filters: re ? /* @__PURE__ */ x(He, { children: [
271
- /* @__PURE__ */ x(Be, { label: l("appointmentTimeline.filtersLabel"), children: [
269
+ icon: /* @__PURE__ */ o(Oe, {}),
270
+ title: G,
271
+ filters: le ? /* @__PURE__ */ x(Me, { children: [
272
+ /* @__PURE__ */ x(Ke, { label: l("appointmentTimeline.filtersLabel"), children: [
272
273
  /* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: we, children: l("appointmentTimeline.today") }),
273
- /* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Re, children: l("appointmentTimeline.thisWeek") }),
274
- /* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Ie, children: l("appointmentTimeline.thisMonth") })
274
+ /* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Ie, children: l("appointmentTimeline.thisWeek") }),
275
+ /* @__PURE__ */ o(P, { intent: "outline", size: "sm", onClick: Se, children: l("appointmentTimeline.thisMonth") })
275
276
  ] }),
276
- /* @__PURE__ */ o("label", { htmlFor: W, className: "ds:sr-only", children: l("appointmentTimeline.jumpToDate") }),
277
+ /* @__PURE__ */ o("label", { htmlFor: q, className: "ds:sr-only", children: l("appointmentTimeline.jumpToDate") }),
277
278
  /* @__PURE__ */ o(
278
- Ke,
279
+ Ee,
279
280
  {
280
- id: W,
281
+ id: q,
281
282
  size: "sm",
282
283
  placeholder: l("appointmentTimeline.jumpToDate"),
283
284
  onChange: (e) => {
@@ -288,30 +289,30 @@ const Ze = Me(
288
289
  ] }) : void 0
289
290
  }
290
291
  ),
291
- pe,
292
- je ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
293
- $e,
292
+ ue,
293
+ Ce ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
294
+ Pe,
294
295
  {
295
296
  variant: "first-use",
296
297
  size: "sm",
297
- title: le ?? l("appointmentTimeline.empty.title"),
298
- description: ce ?? l("appointmentTimeline.empty.description")
298
+ title: ce ?? l("appointmentTimeline.empty.title"),
299
+ description: de ?? l("appointmentTimeline.empty.description")
299
300
  }
300
301
  ) }) : /* @__PURE__ */ x(
301
302
  "div",
302
303
  {
303
304
  ref: D,
304
305
  tabIndex: 0,
305
- onScroll: De,
306
- "data-fade-top": ke ? "true" : void 0,
307
- "data-fade-bottom": be ? "true" : void 0,
308
- className: Ue,
306
+ onScroll: Re,
307
+ "data-fade-top": Te ? "true" : void 0,
308
+ "data-fade-bottom": xe ? "true" : void 0,
309
+ className: Xe,
309
310
  children: [
310
- M ? te("loading-earlier") : null,
311
+ M ? se("loading-earlier") : null,
311
312
  /* @__PURE__ */ x(
312
313
  "ol",
313
314
  {
314
- ref: ye,
315
+ ref: ke,
315
316
  role: "list",
316
317
  className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
317
318
  children: [
@@ -319,12 +320,12 @@ const Ze = Me(
319
320
  "li",
320
321
  {
321
322
  ref: (t) => {
322
- t ? w.current.set(e.key, t) : w.current.delete(e.key);
323
+ t ? R.current.set(e.key, t) : R.current.delete(e.key);
323
324
  },
324
325
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
325
326
  children: [
326
327
  /* @__PURE__ */ o(
327
- Je,
328
+ et,
328
329
  {
329
330
  date: e.date,
330
331
  now: c,
@@ -340,7 +341,7 @@ const Ze = Me(
340
341
  role: "list",
341
342
  className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
342
343
  children: e.items.map((t) => /* @__PURE__ */ o(
343
- ne,
344
+ ae,
344
345
  {
345
346
  item: t,
346
347
  size: r,
@@ -350,10 +351,11 @@ const Ze = Me(
350
351
  currency: h,
351
352
  onActivate: v,
352
353
  selected: t.id === H,
353
- hideDefaultStatus: ue,
354
+ hideDefaultStatus: fe,
355
+ wrapText: W,
354
356
  "data-appointment-id": t.id,
355
357
  "data-reflow-id": t.id,
356
- className: Ge
358
+ className: Ve
357
359
  },
358
360
  t.id
359
361
  ))
@@ -363,13 +365,14 @@ const Ze = Me(
363
365
  },
364
366
  e.key
365
367
  )),
366
- O.length > 0 ? O.map((e) => /* @__PURE__ */ o(
367
- ne,
368
+ Q.length > 0 ? Q.map((e) => /* @__PURE__ */ o(
369
+ ae,
368
370
  {
369
371
  item: e,
370
372
  size: r,
371
373
  surface: "elevated",
372
374
  showPatient: C,
375
+ wrapText: W,
373
376
  locale: A,
374
377
  currency: h,
375
378
  "aria-hidden": "true",
@@ -387,7 +390,7 @@ const Ze = Me(
387
390
  ]
388
391
  }
389
392
  ),
390
- N ? te("loading-later") : null
393
+ N ? se("loading-later") : null
391
394
  ]
392
395
  }
393
396
  )
@@ -396,8 +399,8 @@ const Ze = Me(
396
399
  );
397
400
  }
398
401
  );
399
- Ze.displayName = "AppointmentTimeline";
400
- function Je({
402
+ Je.displayName = "AppointmentTimeline";
403
+ function et({
401
404
  date: i,
402
405
  now: n,
403
406
  locale: d,
@@ -446,7 +449,7 @@ function Je({
446
449
  );
447
450
  }
448
451
  export {
449
- Ze as A,
450
- Oe as a
452
+ Je as A,
453
+ Qe as a
451
454
  };
452
- //# sourceMappingURL=appointment-timeline-Dy4YQJ17.js.map
455
+ //# sourceMappingURL=appointment-timeline-BEwgbYyG.js.map
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
5
5
  import { I as K } from "./icon-button-S8_weU3g.js";
6
6
  import { S as V } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as W } from "./empty-state-DwJ5YNzz.js";
8
- import { A as B } from "./appointment-card-BT1cMZIX.js";
8
+ import { A as B } from "./appointment-card-CaxFXtSn.js";
9
9
  import { u as D } from "./registry-DvAUVLHh.js";
10
10
  import { C as L } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as _ } from "./plus-DzMQ_c6b.js";
@@ -21,7 +21,7 @@ const it = {
21
21
  root: {
22
22
  attr: "data-component",
23
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. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
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 (left off when the appointment has no status), and data-type with the delivery channel. When the card is interactive its activator (link or button) carries data-action="open-appointment".'
25
25
  },
26
26
  instanceId: {
27
27
  attr: "data-component-id",
@@ -102,8 +102,8 @@ const it = {
102
102
  title: b,
103
103
  caption: c,
104
104
  size: m = "sm",
105
- locale: x,
106
- currency: w,
105
+ locale: w,
106
+ currency: x,
107
107
  privacy: l = !1,
108
108
  privacyTitle: d,
109
109
  onOpenAppointment: i,
@@ -132,8 +132,8 @@ const it = {
132
132
  {
133
133
  item: t,
134
134
  size: m,
135
- locale: x,
136
- currency: w,
135
+ locale: w,
136
+ currency: x,
137
137
  privacy: l,
138
138
  privacyTitle: l ? d == null ? void 0 : d(t) : void 0,
139
139
  onActivate: i,
@@ -147,7 +147,7 @@ const it = {
147
147
  E(C, () => g.current, []);
148
148
  const j = H(
149
149
  () => ({
150
- getItems: () => p.current.map((t) => ({ id: t.id, state: t.state })),
150
+ getItems: () => p.current.map((t) => ({ id: t.id, state: t.state ?? "" })),
151
151
  selectItem: (t) => {
152
152
  const y = p.current.find((z) => z.id === t);
153
153
  y && (i == null || i(y));
@@ -197,4 +197,4 @@ export {
197
197
  it as a,
198
198
  F as b
199
199
  };
200
- //# sourceMappingURL=appointment-tray-B3gSHL1j.js.map
200
+ //# sourceMappingURL=appointment-tray-DPpeR9JT.js.map
@@ -4,7 +4,7 @@ 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-DohK_Ak_.js";
6
6
  import { I as D } from "./icon-button-S8_weU3g.js";
7
- import { S as pe } from "./select-CIXKyUMw.js";
7
+ import { S as pe } from "./select-Bm8s3q-X.js";
8
8
  import { A as le } from "./audio-visualiser-CK2JyQW1.js";
9
9
  import { A as F } from "./alert-C4WKViaS.js";
10
10
  import { u as me } from "./registry-DvAUVLHh.js";
@@ -446,4 +446,4 @@ export {
446
446
  De as A,
447
447
  Re as a
448
448
  };
449
- //# sourceMappingURL=audio-recorder-BOF5YYoC.js.map
449
+ //# sourceMappingURL=audio-recorder-6dUq8I38.js.map