@alfadocs/ui-kit 1.45.0 → 1.47.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 (178) hide show
  1. package/dist/_chunks/{actions-cell-renderer-BXBy9c0f.js → actions-cell-renderer-B5m9lwgC.js} +2 -2
  2. package/dist/_chunks/ai-credits-notice-xszqOZTC.js +90 -0
  3. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +17 -0
  4. package/dist/_chunks/{ai-consent-banner-D7I2U-cz.js → ai-permission-notice-D7I2U-cz.js} +1 -1
  5. package/dist/_chunks/ai-sparkle-D23NT8Z_.js +45 -0
  6. package/dist/_chunks/{anamnesis-summary-rows-DQUqwWc1.js → anamnesis-summary-rows-DI-UX5r6.js} +2 -2
  7. package/dist/_chunks/{appointment-card-TgR_2GKS.js → appointment-card-DluZy8Iv.js} +2 -2
  8. package/dist/_chunks/{appointment-peek-abiR0T9e.js → appointment-peek-BsfCpiJs.js} +3 -3
  9. package/dist/_chunks/{appointment-timeline-CCnyUYKz.js → appointment-timeline-Cs5f9viN.js} +3 -3
  10. package/dist/_chunks/{appointment-tray-N0yEI8UF.js → appointment-tray-CLrGGnKR.js} +2 -2
  11. package/dist/_chunks/baby-Dku-Xvg9.js +23 -0
  12. package/dist/_chunks/{balance-badge-cell-o6LldMUA.js → balance-badge-cell-YGrYdrvR.js} +3 -3
  13. package/dist/_chunks/booking-C4MwImkS.js +3362 -0
  14. package/dist/_chunks/button-group-CA1tmu39.js +325 -0
  15. package/dist/_chunks/{calendar-U6N0F99w.js → calendar-OzSeTb4V.js} +2 -2
  16. package/dist/_chunks/{calendar-event-card-DKUnT9Be.js → calendar-event-card-B6N5h1dO.js} +57 -48
  17. package/dist/_chunks/calendar-workspace-DDnQmiIL.js +12427 -0
  18. package/dist/_chunks/{chart-PF2krCZC.js → chart-D8ucl8hH.js} +2 -2
  19. package/dist/_chunks/{data-table-CcAx_I1w.js → data-table-DnKOmEVw.js} +2 -2
  20. package/dist/_chunks/{editable-currency-cell-renderer-Psb6XKHR.js → editable-currency-cell-renderer-OUkUv7U4.js} +2 -2
  21. package/dist/_chunks/{face-scheme-Bm6pe7R8.js → face-scheme-mIhwrQXt.js} +3 -3
  22. package/dist/_chunks/{file-manager-BfLQxF5t.js → file-manager-DOcJGIx2.js} +4 -4
  23. package/dist/_chunks/{freemium-paywall-Cz-O9lQD.js → freemium-paywall-BaW5ODc9.js} +2 -2
  24. package/dist/_chunks/{header-settings-CTe45iDy.js → header-settings-BEfx_-TF.js} +2 -2
  25. package/dist/_chunks/{help-me-write-templates-GUeEn3Ff.js → help-me-write-templates-DHIwa4xR.js} +205 -199
  26. package/dist/_chunks/{hover-card-BMJBVqIf.js → hover-card-nUae8NPJ.js} +67 -62
  27. package/dist/_chunks/{icon-button-group-DkkdIygu.js → icon-button-group-DZKC6KGf.js} +181 -168
  28. package/dist/_chunks/kit-extensions-DuoFF1R3.js +94 -0
  29. package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js} +2 -2
  30. package/dist/_chunks/{notes-panel-Dkk9QPPX.js → notes-panel-CHbDDMx8.js} +83 -73
  31. package/dist/_chunks/{patient-details-C8ImUrVg.js → patient-details-yrgkSeEY.js} +2 -2
  32. package/dist/_chunks/{patient-field-row-BRSOKvme.js → patient-field-row-DCMkFGqI.js} +3 -3
  33. package/dist/_chunks/{patient-summary-card-BhmKB2KR.js → patient-summary-card-CmEFflGS.js} +59 -45
  34. package/dist/_chunks/payment-form-DqJFiplX.js +881 -0
  35. package/dist/_chunks/{phone-input-BsZIoE36.js → phone-input-IWrGOCwm.js} +40 -39
  36. package/dist/_chunks/rich-text-editor-BwDV2XkZ.js +4153 -0
  37. package/dist/_chunks/{stepper-accordion-DmVykr5F.js → stepper-accordion-jMR8NaOB.js} +2 -1
  38. package/dist/_chunks/{tasks-panel-CpcikOeY.js → tasks-panel-DncuBPIZ.js} +2 -2
  39. package/dist/_chunks/{theme-toggle-bI0pgDDv.js → theme-toggle-BP0XRGMM.js} +2 -2
  40. package/dist/_chunks/use-ai-sparkle-Cf4yVTLB.js +76 -0
  41. package/dist/_chunks/{workflow-status-xeaJTzD3.js → workflow-status-CuJAOuKL.js} +43 -42
  42. package/dist/agent-catalog.json +36 -7
  43. package/dist/agent-i18n/en.json +3 -3
  44. package/dist/components/ai-credits-notice/ai-credits-notice.agent.d.ts +3 -0
  45. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +48 -0
  46. package/dist/components/ai-credits-notice/index.d.ts +4 -0
  47. package/dist/components/ai-credits-notice/index.js +7 -0
  48. package/dist/components/{ai-consent-banner/ai-consent-banner.agent.d.ts → ai-permission-notice/ai-permission-notice.agent.d.ts} +2 -2
  49. package/dist/components/{ai-consent-banner/ai-consent-banner.d.ts → ai-permission-notice/ai-permission-notice.d.ts} +1 -1
  50. package/dist/components/ai-permission-notice/index.d.ts +4 -0
  51. package/dist/components/{ai-consent-banner → ai-permission-notice}/index.js +1 -1
  52. package/dist/components/ai-sparkle/ai-sparkle.d.ts +3 -3
  53. package/dist/components/ai-sparkle/index.js +1 -1
  54. package/dist/components/appointment-card/index.js +2 -2
  55. package/dist/components/appointment-peek/index.js +1 -1
  56. package/dist/components/appointment-timeline/index.js +1 -1
  57. package/dist/components/booking/booking-types.d.ts +60 -1
  58. package/dist/components/booking/booking.d.ts +1 -1
  59. package/dist/components/booking/details-form.d.ts +5 -1
  60. package/dist/components/booking/index.d.ts +1 -1
  61. package/dist/components/booking/index.js +1 -1
  62. package/dist/components/booking/payment.d.ts +9 -0
  63. package/dist/components/booking/use-booking-payment.d.ts +14 -0
  64. package/dist/components/button-group/index.js +1 -1
  65. package/dist/components/calendar/index.js +1 -1
  66. package/dist/components/calendar-event-card/index.js +1 -1
  67. package/dist/components/chart/index.js +1 -1
  68. package/dist/components/data-table/index.js +3 -3
  69. package/dist/components/face-scheme/index.js +1 -1
  70. package/dist/components/file-manager/index.js +1 -1
  71. package/dist/components/freemium-paywall/index.js +1 -1
  72. package/dist/components/header-settings/index.js +1 -1
  73. package/dist/components/hover-card/hover-card.d.ts +4 -0
  74. package/dist/components/hover-card/index.d.ts +1 -1
  75. package/dist/components/hover-card/index.js +3 -2
  76. package/dist/components/icon-button-group/index.js +1 -1
  77. package/dist/components/index.d.ts +2 -1
  78. package/dist/components/notes-panel/index.js +1 -1
  79. package/dist/components/notes-panel/notes-panel.d.ts +10 -0
  80. package/dist/components/patient-details/index.js +1 -1
  81. package/dist/components/patient-summary-card/index.js +1 -1
  82. package/dist/components/patient-table/index.js +1 -1
  83. package/dist/components/payment-form/index.d.ts +1 -1
  84. package/dist/components/payment-form/index.js +1 -1
  85. package/dist/components/payment-form/payment-form.d.ts +35 -3
  86. package/dist/components/phone-input/index.js +1 -1
  87. package/dist/components/rich-text-editor/editor-extensions.d.ts +54 -0
  88. package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -1
  89. package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +4 -0
  90. package/dist/components/rich-text-editor/index.d.ts +2 -0
  91. package/dist/components/rich-text-editor/index.js +6 -4
  92. package/dist/components/rich-text-editor/kit-extensions.d.ts +4 -0
  93. package/dist/components/rich-text-editor/rich-text-editor.d.ts +18 -2
  94. package/dist/components/stepper-accordion/index.js +1 -1
  95. package/dist/components/tasks-panel/index.js +1 -1
  96. package/dist/components/theme-toggle/index.js +1 -1
  97. package/dist/components/workflow-status/index.js +1 -1
  98. package/dist/hooks/index.d.ts +1 -1
  99. package/dist/hooks/index.js +51 -53
  100. package/dist/hooks/use-ai-sparkle.d.ts +7 -25
  101. package/dist/host-compat.css +2 -2
  102. package/dist/i18n/locales/ar.d.ts +67 -1
  103. package/dist/i18n/locales/ar.js +69 -3
  104. package/dist/i18n/locales/de.d.ts +67 -1
  105. package/dist/i18n/locales/de.js +69 -3
  106. package/dist/i18n/locales/el.d.ts +67 -1
  107. package/dist/i18n/locales/el.js +69 -3
  108. package/dist/i18n/locales/en.d.ts +67 -1
  109. package/dist/i18n/locales/en.js +69 -3
  110. package/dist/i18n/locales/es.d.ts +67 -1
  111. package/dist/i18n/locales/es.js +69 -3
  112. package/dist/i18n/locales/fr.d.ts +67 -1
  113. package/dist/i18n/locales/fr.js +69 -3
  114. package/dist/i18n/locales/hi.d.ts +67 -1
  115. package/dist/i18n/locales/hi.js +69 -3
  116. package/dist/i18n/locales/it.d.ts +67 -1
  117. package/dist/i18n/locales/it.js +69 -3
  118. package/dist/i18n/locales/ja.d.ts +67 -1
  119. package/dist/i18n/locales/ja.js +69 -3
  120. package/dist/i18n/locales/nl.d.ts +67 -1
  121. package/dist/i18n/locales/nl.js +69 -3
  122. package/dist/i18n/locales/pl.d.ts +67 -1
  123. package/dist/i18n/locales/pl.js +69 -3
  124. package/dist/i18n/locales/pt.d.ts +67 -1
  125. package/dist/i18n/locales/pt.js +69 -3
  126. package/dist/i18n/locales/ro.d.ts +67 -1
  127. package/dist/i18n/locales/ro.js +69 -3
  128. package/dist/i18n/locales/ru.d.ts +67 -1
  129. package/dist/i18n/locales/ru.js +69 -3
  130. package/dist/i18n/locales/sq.d.ts +67 -1
  131. package/dist/i18n/locales/sq.js +69 -3
  132. package/dist/i18n/locales/sv.d.ts +67 -1
  133. package/dist/i18n/locales/sv.js +69 -3
  134. package/dist/i18n/locales/tr.d.ts +67 -1
  135. package/dist/i18n/locales/tr.js +69 -3
  136. package/dist/i18n/locales/zh.d.ts +67 -1
  137. package/dist/i18n/locales/zh.js +69 -3
  138. package/dist/index.js +648 -641
  139. package/dist/locales/ar.json +69 -3
  140. package/dist/locales/de.json +69 -3
  141. package/dist/locales/el.json +69 -3
  142. package/dist/locales/en.json +69 -3
  143. package/dist/locales/es.json +69 -3
  144. package/dist/locales/fr.json +69 -3
  145. package/dist/locales/hi.json +69 -3
  146. package/dist/locales/it.json +69 -3
  147. package/dist/locales/ja.json +69 -3
  148. package/dist/locales/nl.json +69 -3
  149. package/dist/locales/pl.json +69 -3
  150. package/dist/locales/pt.json +69 -3
  151. package/dist/locales/ro.json +69 -3
  152. package/dist/locales/ru.json +69 -3
  153. package/dist/locales/sq.json +69 -3
  154. package/dist/locales/sv.json +69 -3
  155. package/dist/locales/tr.json +69 -3
  156. package/dist/locales/zh.json +69 -3
  157. package/dist/patterns/anamnesis/index.js +1 -1
  158. package/dist/patterns/calendar/calendar-editor-fields.d.ts +33 -0
  159. package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -0
  160. package/dist/patterns/calendar/calendar-workspace.d.ts +6 -4
  161. package/dist/patterns/calendar/calendar.data.d.ts +26 -0
  162. package/dist/patterns/calendar/calendar.journey.d.ts +1 -1
  163. package/dist/patterns/calendar/calendar.sheets.d.ts +16 -5
  164. package/dist/patterns/calendar/calendar.types.d.ts +25 -9
  165. package/dist/patterns/calendar/index.js +1 -1
  166. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +11 -2
  167. package/dist/patterns/help-me-write-templates/index.js +1 -1
  168. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  169. package/dist/tokens.css +1 -1
  170. package/package.json +14 -4
  171. package/dist/_chunks/ai-sparkle-DXeP_6a0.js +0 -52
  172. package/dist/_chunks/booking-D43ASl8y.js +0 -3034
  173. package/dist/_chunks/button-group-R32U7SyV.js +0 -307
  174. package/dist/_chunks/calendar-workspace-B7KvZ1_D.js +0 -12161
  175. package/dist/_chunks/payment-form-BHMDqW9C.js +0 -767
  176. package/dist/_chunks/rich-text-editor-BrAvNajV.js +0 -3779
  177. package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +0 -103
  178. package/dist/components/ai-consent-banner/index.d.ts +0 -4
@@ -9,7 +9,7 @@ import { C as w } from "./card-DPmk26CL.js";
9
9
  import { D as m } from "./dropdown-menu-DU-Hrf33.js";
10
10
  import { T as q } from "./tab-bar-Cw9UK18Z.js";
11
11
  import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-3o9o9v_T.js";
12
- import { H as X } from "./header-settings-CTe45iDy.js";
12
+ import { H as X } from "./header-settings-BEfx_-TF.js";
13
13
  import { S as Y } from "./sign-in-with-alfadocs-button-DWwBJtyE.js";
14
14
  import { S as Z, g as _, b as aa, a as ea, j as sa, k as ta, i as ra, h as I } from "./sidebar-DbZXLl8h.js";
15
15
  import { T as na } from "./theme-root-BOO73p5t.js";
@@ -529,4 +529,4 @@ export {
529
529
  ka as M,
530
530
  g as P
531
531
  };
532
- //# sourceMappingURL=marketplace-app-shell-DdwPj03y.js.map
532
+ //# sourceMappingURL=marketplace-app-shell-PB89Dkk_.js.map
@@ -1,29 +1,29 @@
1
- import { jsxs as d, jsx as n, Fragment as rt } from "react/jsx-runtime";
2
- import { forwardRef as ot, useRef as p, useState as x, useId as dt, useCallback as T, useEffect as me, useImperativeHandle as ct, useMemo as ut } from "react";
1
+ import { jsxs as d, jsx as n, Fragment as pt } from "react/jsx-runtime";
2
+ import { forwardRef as ft, useRef as p, useState as x, useId as mt, useCallback as T, useEffect as me, useImperativeHandle as gt, useMemo as ht } from "react";
3
3
  import { c as Ce } from "./index-D2ZczOXr.js";
4
- import { useTranslation as pt } from "react-i18next";
5
- import { u as ft } from "./registry-DvAUVLHh.js";
6
- import { C as mt } from "./clinical-note-card-DdsGYMmI.js";
7
- import { R as gt } from "./rich-text-editor-BrAvNajV.js";
8
- import { T as ht } from "./text-area-Bt3p7Pt0.js";
4
+ import { useTranslation as vt } from "react-i18next";
5
+ import { u as yt } from "./registry-DvAUVLHh.js";
6
+ import { C as bt } from "./clinical-note-card-DdsGYMmI.js";
7
+ import { R as Ct } from "./rich-text-editor-BwDV2XkZ.js";
8
+ import { T as Pt } from "./text-area-Bt3p7Pt0.js";
9
9
  import { A as I } from "./alert-CiQ5Pa3Q.js";
10
10
  import { B as z } from "./button-CaUe1uyd.js";
11
11
  import { I as ge } from "./icon-button-CehAeZoP.js";
12
- import { S as vt } from "./switch-OILsBLWo.js";
13
- import { T as yt } from "./tooltip-Cp-PLePW.js";
12
+ import { S as wt } from "./switch-OILsBLWo.js";
13
+ import { T as xt } from "./tooltip-Cp-PLePW.js";
14
14
  import { C as he } from "./card-DPmk26CL.js";
15
- import { C as bt, S as M } from "./skeleton-B1KTdJ4N.js";
15
+ import { C as Tt, S as M } from "./skeleton-B1KTdJ4N.js";
16
16
  import { D as v } from "./dialog-BJiLqhx6.js";
17
- import { P as Ct } from "./panel-header-D_mTdhUp.js";
18
- import { a as Pt, u as wt, R as xt } from "./use-list-reflow-Cw43nxw5.js";
19
- import { u as Tt } from "./use-theme-CAuo6EYT.js";
20
- import { N as Et } from "./notebook-pen-CO7HoM-W.js";
21
- import { P as Nt } from "./pencil-B1sKKyuT.js";
22
- import { T as Vt } from "./trash-2-uumy3fy1.js";
17
+ import { P as Et } from "./panel-header-D_mTdhUp.js";
18
+ import { a as Nt, u as Vt, R as Rt } from "./use-list-reflow-Cw43nxw5.js";
19
+ import { u as kt } from "./use-theme-CAuo6EYT.js";
20
+ import { N as St } from "./notebook-pen-CO7HoM-W.js";
21
+ import { P as _t } from "./pencil-B1sKKyuT.js";
22
+ import { T as It } from "./trash-2-uumy3fy1.js";
23
23
  function ve(i, c) {
24
24
  return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string" && i.message.trim() ? i.message : c;
25
25
  }
26
- const Rt = {
26
+ const zt = {
27
27
  id: "notes-panel",
28
28
  // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
29
29
  // with no dedicated capability in the closed vocabulary.
@@ -122,7 +122,7 @@ const Rt = {
122
122
  description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
123
123
  }
124
124
  }
125
- }, kt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", St = Ce(
125
+ }, jt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", At = Ce(
126
126
  "ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
127
127
  {
128
128
  variants: {
@@ -130,7 +130,7 @@ const Rt = {
130
130
  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)]",
131
131
  false: ""
132
132
  },
133
- washed: { true: kt, false: "" }
133
+ washed: { true: jt, false: "" }
134
134
  },
135
135
  defaultVariants: { current: !1, washed: !1 }
136
136
  }
@@ -149,14 +149,14 @@ const Rt = {
149
149
  }
150
150
  }
151
151
  }
152
- ), _t = "ds:opacity-0", It = [
152
+ ), Lt = "ds:opacity-0", Ht = [
153
153
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
154
154
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
155
- ].join(" "), zt = [3, 2, 3];
155
+ ].join(" "), Ot = [3, 2, 3];
156
156
  function be(i) {
157
157
  return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
158
158
  }
159
- const nn = ot(
159
+ const on = ft(
160
160
  function({
161
161
  id: c,
162
162
  notes: j,
@@ -188,26 +188,31 @@ const nn = ot(
188
188
  onAiApplied: Oe,
189
189
  onUploadImage: Be,
190
190
  onAiCreditsExhausted: De,
191
- composerBefore: We,
192
- composerAfter: qe,
191
+ showExtensions: We,
192
+ aiCreditsNotice: qe,
193
+ extensions: Fe,
194
+ extensionContext: Ke,
195
+ onExtensionRun: Me,
196
+ composerBefore: $e,
197
+ composerAfter: Ge,
193
198
  onTogglePin: L,
194
199
  onToggleFlag: H,
195
200
  noteActions: ee,
196
201
  onEditNote: N,
197
- editClinical: Fe = !1,
202
+ editClinical: Ye = !1,
198
203
  onDeleteNote: h,
199
204
  confirmDelete: $ = !0,
200
- title: Ke,
201
- composerPlaceholder: Me,
202
- addNoteLabel: $e,
203
- emptyState: Ge,
204
- className: Ye,
205
+ title: Je,
206
+ composerPlaceholder: Qe,
207
+ addNoteLabel: Ue,
208
+ emptyState: Xe,
209
+ className: Ze,
205
210
  "aria-label": G,
206
- ...Je
207
- }, Qe) {
208
- const { t: a, i18n: te } = pt(), b = p(null), [P, V] = x(""), [O, B] = x(E), [u, ne] = x(!1), [ae, R] = x(null), [r, Y] = x(null), ie = p(!1);
211
+ ...et
212
+ }, tt) {
213
+ const { t: a, i18n: te } = vt(), b = p(null), [P, V] = x(""), [O, B] = x(E), [u, ne] = x(!1), [ae, R] = x(null), [r, Y] = x(null), ie = p(!1);
209
214
  C === "loading" && (ie.current = !0);
210
- const Ue = ie.current ? bt : "", Xe = Ke ?? a("notesPanel.title", { defaultValue: "Notes" }), se = dt(), le = Me ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), Ze = g === "rich" ? be(P) : P.trim().length > 0, et = T(() => {
215
+ const nt = ie.current ? Tt : "", at = Je ?? a("notesPanel.title", { defaultValue: "Notes" }), se = mt(), le = Qe ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), it = g === "rich" ? be(P) : P.trim().length > 0, st = T(() => {
211
216
  var w;
212
217
  if (!(r !== null ? N : m) || u) return;
213
218
  const t = g === "rich", o = t ? ((w = b.current) == null ? void 0 : w.getHTML()) ?? P : P.trim();
@@ -239,7 +244,7 @@ const nn = ot(
239
244
  N,
240
245
  u,
241
246
  a
242
- ]), oe = Te && (r === null || Fe), de = T(
247
+ ]), oe = Te && (r === null || Ye), de = T(
243
248
  (e) => {
244
249
  try {
245
250
  return new Intl.DateTimeFormat(te.language, {
@@ -254,7 +259,7 @@ const nn = ot(
254
259
  }
255
260
  },
256
261
  [te.language]
257
- ), tt = T(
262
+ ), lt = T(
258
263
  (e) => {
259
264
  var o, l, s;
260
265
  if (!e.id || u) return;
@@ -271,15 +276,15 @@ const nn = ot(
271
276
  }, [ce, D]);
272
277
  const k = [...j].sort(
273
278
  (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
274
- ), { resolvedTheme: nt } = Tt(), ue = nt.endsWith("-accessible") || void 0, { containerRef: at } = Pt({
279
+ ), { resolvedTheme: rt } = kt(), ue = rt.endsWith("-accessible") || void 0, { containerRef: ot } = Nt({
275
280
  key: k.map((e) => e.id).join(),
276
281
  reduceMotion: ue
277
- }), S = wt({ reduceMotion: ue }), [W, q] = x(null), it = T(
282
+ }), S = Vt({ reduceMotion: ue }), [W, q] = x(null), dt = T(
278
283
  (e) => {
279
284
  h && ($ ? q(e) : S.leave(e, () => h(e)));
280
285
  },
281
286
  [$, S, h]
282
- ), st = T(() => {
287
+ ), ct = T(() => {
283
288
  if (!W || !h) return;
284
289
  const e = W;
285
290
  q(null), S.leave(e, () => h(e));
@@ -301,8 +306,8 @@ const nn = ot(
301
306
  const pe = p(y);
302
307
  pe.current = y;
303
308
  const fe = p(null);
304
- ct(Qe, () => fe.current, []);
305
- const lt = ut(
309
+ gt(tt, () => fe.current, []);
310
+ const ut = ht(
306
311
  () => ({
307
312
  // Ids + flags only — never the note body or author (both PHI).
308
313
  getNotes: () => Q.current.map((e) => ({
@@ -331,7 +336,7 @@ const nn = ot(
331
336
  }),
332
337
  []
333
338
  );
334
- return ft(Rt, lt, c), /* @__PURE__ */ d(
339
+ return yt(zt, ut, c), /* @__PURE__ */ d(
335
340
  "section",
336
341
  {
337
342
  ref: fe,
@@ -339,14 +344,14 @@ const nn = ot(
339
344
  "data-component-id": c,
340
345
  "aria-labelledby": G ? void 0 : se,
341
346
  "aria-label": G,
342
- className: ["ds:flex ds:flex-col", Ye].filter(Boolean).join(" "),
343
- ...Je,
347
+ className: ["ds:flex ds:flex-col", Ze].filter(Boolean).join(" "),
348
+ ...et,
344
349
  children: [
345
350
  /* @__PURE__ */ n(
346
- Ct,
351
+ Et,
347
352
  {
348
- title: Xe,
349
- icon: /* @__PURE__ */ n(Et, { "aria-hidden": "true" }),
353
+ title: at,
354
+ icon: /* @__PURE__ */ n(St, { "aria-hidden": "true" }),
350
355
  headingId: G ? void 0 : se,
351
356
  sticky: !0,
352
357
  divider: !0
@@ -359,9 +364,9 @@ const nn = ot(
359
364
  "data-notes-panel-composer": r !== null ? "edit" : "add",
360
365
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
361
366
  children: [
362
- We,
367
+ $e,
363
368
  g === "rich" ? /* @__PURE__ */ n(
364
- gt,
369
+ Ct,
365
370
  {
366
371
  ref: b,
367
372
  ariaLabel: re,
@@ -387,10 +392,15 @@ const nn = ot(
387
392
  onAiApplied: Oe,
388
393
  onUploadImage: Be,
389
394
  onAiCreditsExhausted: De,
395
+ showExtensions: We,
396
+ aiCreditsNotice: qe,
397
+ extensions: Fe,
398
+ extensionContext: Ke,
399
+ onExtensionRun: Me,
390
400
  aiConsentHeadingLevel: 3
391
401
  }
392
402
  ) : /* @__PURE__ */ n(
393
- ht,
403
+ Pt,
394
404
  {
395
405
  value: P,
396
406
  readOnly: u,
@@ -414,7 +424,7 @@ const nn = ot(
414
424
  const e = u || !A, t = A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
415
425
  defaultValue: "You do not have permission to write clinical notes."
416
426
  }), o = /* @__PURE__ */ n(
417
- vt,
427
+ wt,
418
428
  {
419
429
  size: "sm",
420
430
  label: a("notesPanel.clinicalToggle", {
@@ -425,7 +435,7 @@ const nn = ot(
425
435
  disabled: e
426
436
  }
427
437
  );
428
- return e && t ? /* @__PURE__ */ n(yt, { label: t, children: /* @__PURE__ */ n("span", { tabIndex: 0, children: o }) }) : o;
438
+ return e && t ? /* @__PURE__ */ n(xt, { label: t, children: /* @__PURE__ */ n("span", { tabIndex: 0, children: o }) }) : o;
429
439
  })() : null,
430
440
  /* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
431
441
  r !== null ? /* @__PURE__ */ n(
@@ -444,10 +454,10 @@ const nn = ot(
444
454
  {
445
455
  type: "button",
446
456
  size: "sm",
447
- onClick: et,
448
- disabled: !Ze,
457
+ onClick: st,
458
+ disabled: !it,
449
459
  loading: u,
450
- children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : $e ?? a("notesPanel.add", { defaultValue: "Add note" })
460
+ children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Ue ?? a("notesPanel.add", { defaultValue: "Add note" })
451
461
  }
452
462
  )
453
463
  ] })
@@ -455,7 +465,7 @@ const nn = ot(
455
465
  }
456
466
  ),
457
467
  ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null,
458
- qe
468
+ Ge
459
469
  ]
460
470
  }
461
471
  ) : null,
@@ -471,7 +481,7 @@ const nn = ot(
471
481
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
472
482
  children: [
473
483
  /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
474
- zt.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
484
+ Ot.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
475
485
  /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
476
486
  /* @__PURE__ */ n(
477
487
  M,
@@ -523,9 +533,9 @@ const nn = ot(
523
533
  k.length > 0 ? /* @__PURE__ */ n(
524
534
  "ul",
525
535
  {
526
- ref: at,
536
+ ref: ot,
527
537
  "aria-busy": C === "loading" || void 0,
528
- className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${Ue}`.trim(),
538
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${nt}`.trim(),
529
539
  children: k.map(({ actions: e, ...t }, o) => {
530
540
  const l = y != null && t.id === y, s = t.id, w = s != null && r === s, f = s != null && S.isLeaving(s);
531
541
  return /* @__PURE__ */ d(
@@ -538,13 +548,13 @@ const nn = ot(
538
548
  "data-leaving": f ? "" : void 0,
539
549
  "data-editing": w ? "" : void 0,
540
550
  className: [
541
- St({
551
+ At({
542
552
  current: l,
543
553
  washed: l || w
544
554
  }),
545
- It,
546
- xt,
547
- f ? _t : ""
555
+ Ht,
556
+ Rt,
557
+ f ? Lt : ""
548
558
  ].filter(Boolean).join(" "),
549
559
  children: [
550
560
  l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
@@ -567,16 +577,16 @@ const nn = ot(
567
577
  `${y}:${Z ?? ""}`
568
578
  ) : null,
569
579
  /* @__PURE__ */ n(
570
- mt,
580
+ bt,
571
581
  {
572
582
  surface: "elevated",
573
583
  truncate: !l,
574
- headerActions: /* @__PURE__ */ d(rt, { children: [
584
+ headerActions: /* @__PURE__ */ d(pt, { children: [
575
585
  ee ? ee({ ...t, actions: e }) : null,
576
586
  N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
577
587
  ge,
578
588
  {
579
- icon: /* @__PURE__ */ n(Nt, {}),
589
+ icon: /* @__PURE__ */ n(_t, {}),
580
590
  intent: "ghost",
581
591
  size: "sm",
582
592
  "aria-label": a("notesPanel.editNamed", {
@@ -589,13 +599,13 @@ const nn = ot(
589
599
  "aria-pressed": r === s,
590
600
  disabled: u,
591
601
  "data-notes-panel-edit": "",
592
- onClick: () => r === s ? D() : tt(t)
602
+ onClick: () => r === s ? D() : lt(t)
593
603
  }
594
604
  ) : null,
595
605
  h && s && !t.deleted ? /* @__PURE__ */ n(
596
606
  ge,
597
607
  {
598
- icon: /* @__PURE__ */ n(Vt, {}),
608
+ icon: /* @__PURE__ */ n(It, {}),
599
609
  intent: "ghost",
600
610
  size: "sm",
601
611
  "aria-label": a("notesPanel.deleteNamed", {
@@ -605,7 +615,7 @@ const nn = ot(
605
615
  tooltip: a("notesPanel.delete", {
606
616
  defaultValue: "Delete note"
607
617
  }),
608
- onClick: () => it(s)
618
+ onClick: () => dt(s)
609
619
  }
610
620
  ) : null
611
621
  ] }),
@@ -620,7 +630,7 @@ const nn = ot(
620
630
  );
621
631
  })
622
632
  }
623
- ) : C !== "ready" ? null : Ge ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
633
+ ) : C !== "ready" ? null : Xe ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
624
634
  ] }),
625
635
  h && $ ? /* @__PURE__ */ n(
626
636
  v,
@@ -651,7 +661,7 @@ const nn = ot(
651
661
  {
652
662
  intent: "destructive",
653
663
  size: "sm",
654
- onClick: st,
664
+ onClick: ct,
655
665
  children: a("notesPanel.deleteConfirmAction", {
656
666
  defaultValue: "Delete"
657
667
  })
@@ -667,7 +677,7 @@ const nn = ot(
667
677
  }
668
678
  );
669
679
  export {
670
- nn as N,
680
+ on as N,
671
681
  ve as g
672
682
  };
673
- //# sourceMappingURL=notes-panel-Dkk9QPPX.js.map
683
+ //# sourceMappingURL=notes-panel-CHbDDMx8.js.map
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-CTjxzGuF.js";
8
8
  import { D as ae } from "./description-list-BsJ_6CQE.js";
9
9
  import { P as de } from "./panel-header-D_mTdhUp.js";
10
10
  import { u as re } from "./registry-DvAUVLHh.js";
11
- import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-BRSOKvme.js";
11
+ import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-DCMkFGqI.js";
12
12
  import { C as pe } from "./clipboard-list-rSzfIYZB.js";
13
13
  const me = {
14
14
  id: "patient-details",
@@ -368,4 +368,4 @@ export {
368
368
  ue as P,
369
369
  me as p
370
370
  };
371
- //# sourceMappingURL=patient-details-C8ImUrVg.js.map
371
+ //# sourceMappingURL=patient-details-yrgkSeEY.js.map
@@ -23,7 +23,7 @@ import { D as ue } from "./date-picker-6tFnKFty.js";
23
23
  import { E as me } from "./email-input-Dpe63k0K.js";
24
24
  import { F as pe } from "./fiscal-code-input-ODQRd_Sw.js";
25
25
  import { N as fe } from "./number-input-Cgu2TtA8.js";
26
- import { P as ge } from "./phone-input-BsZIoE36.js";
26
+ import { P as ge } from "./phone-input-IWrGOCwm.js";
27
27
  import { P as he } from "./postal-code-input-BznBxVxf.js";
28
28
  import { P as ye } from "./province-select-BaUnkg4S.js";
29
29
  import { S as be } from "./select-CLSUnKjF.js";
@@ -369,7 +369,7 @@ function Me({ field: e }) {
369
369
  const a = typeof e.value == "string" ? e.value : e.copyText ?? (typeof e.editValue == "string" ? e.editValue : "");
370
370
  if (a) {
371
371
  const s = e.kind === "email" ? `mailto:${a.trim()}` : `tel:${a.replace(/[^+\d]/g, "")}`;
372
- return /* @__PURE__ */ t(se, { href: s, children: a });
372
+ return /* @__PURE__ */ t(se, { href: s, dir: "ltr", children: a });
373
373
  }
374
374
  }
375
375
  if (e.value != null)
@@ -805,4 +805,4 @@ export {
805
805
  Nt as r,
806
806
  Dt as u
807
807
  };
808
- //# sourceMappingURL=patient-field-row-BRSOKvme.js.map
808
+ //# sourceMappingURL=patient-field-row-DCMkFGqI.js.map