@alfadocs/ui-kit 1.0.0 → 1.2.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 (137) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DaL80uqL.js → actions-cell-renderer-ClGCSQnA.js} +600 -565
  2. package/dist/_chunks/{ai-consent-banner-BXD7W6FI.js → ai-consent-banner-DKgFfSzc.js} +2 -2
  3. package/dist/_chunks/{alert-Cxaqd-QO.js → alert-DS22ha1n.js} +103 -98
  4. package/dist/_chunks/{annotation-marker-qt5R9WZX.js → annotation-marker-CsUJGZjQ.js} +7 -5
  5. package/dist/_chunks/{audio-recorder-BjnB7V8n.js → audio-recorder-sRsGS-0V.js} +2 -2
  6. package/dist/_chunks/{booking-DSOK-bnR.js → booking-D8fCzcUd.js} +2 -2
  7. package/dist/_chunks/{care-plan-card-BrwhyIJI.js → care-plan-card-DjjVnBYz.js} +2 -2
  8. package/dist/_chunks/{care-plan-entry-card-DWEdCQM3.js → care-plan-entry-card-BVhpvd-P.js} +2 -2
  9. package/dist/_chunks/{collapsible-BrnRiCC6.js → collapsible-CGL9ontS.js} +65 -61
  10. package/dist/_chunks/{document-preview-DXsCEj4U.js → document-preview-DAczwybt.js} +2 -2
  11. package/dist/_chunks/{document-scanner-cS_ispQs.js → document-scanner-BRYIc3A-.js} +2 -2
  12. package/dist/_chunks/{entity-summary-BILN4wEG.js → entity-summary-BS6n7Iah.js} +2 -2
  13. package/dist/_chunks/{face-scheme-CjQAHvSP.js → face-scheme-Cou2efl7.js} +2 -2
  14. package/dist/_chunks/{file-manager-B9LZzT5E.js → file-manager-CNSLiuLo.js} +2 -2
  15. package/dist/_chunks/{freemium-paywall-Dr2342_S.js → freemium-paywall-DsT7MaLd.js} +2 -2
  16. package/dist/_chunks/link-cell-renderer-_DlEZHLI.js +772 -0
  17. package/dist/_chunks/{marketplace-app-shell-pCHBp8bo.js → marketplace-app-shell-DQC9Gpm0.js} +2 -2
  18. package/dist/_chunks/{muscle-scheme-kgCX5qfO.js → muscle-scheme-yfzP_xoJ.js} +2 -2
  19. package/dist/_chunks/notes-panel-CCz0J140.js +370 -0
  20. package/dist/_chunks/{patient-details-UmNcxL0c.js → patient-details-l7pnsUq9.js} +2 -2
  21. package/dist/_chunks/{patient-search-vtRTSdf6.js → patient-search-H54Utav2.js} +2 -2
  22. package/dist/_chunks/{patient-table-QEVsFvwq.js → patient-table-DXk0wW8Q.js} +243 -239
  23. package/dist/_chunks/payment-automation-upsell-C4LIw1iQ.js +305 -0
  24. package/dist/_chunks/{payment-form-BoGxEmGn.js → payment-form-CyKT20xZ.js} +2 -2
  25. package/dist/_chunks/{payment-request-card-CygO1anM.js → payment-request-card-CN30J6yM.js} +107 -138
  26. package/dist/_chunks/{pdf-viewer-CcOuR2wj.js → pdf-viewer-DHg8SfUI.js} +2 -2
  27. package/dist/_chunks/{practice-results-yKbwIxqa.js → practice-results-qvJRkvLn.js} +2 -2
  28. package/dist/_chunks/receipt-euro-C6k4Gzhr.js +36 -0
  29. package/dist/_chunks/{reviews-panel-DmOjvmyH.js → reviews-panel-BfUJhx3m.js} +2 -2
  30. package/dist/_chunks/{sign-document-cH9CboWB.js → sign-document-D70TEUw9.js} +2 -2
  31. package/dist/_chunks/{signature-request-BzXTV_RH.js → signature-request-BlNCXpRN.js} +2 -2
  32. package/dist/_chunks/sparkline-DJtZBe7O.js +501 -0
  33. package/dist/_chunks/{warning-stack-DKeAfj5M.js → warning-stack-IVf0oxh2.js} +2 -2
  34. package/dist/_chunks/{workflow-map-SIfAhmWz.js → workflow-map-ByyBYj6Y.js} +2 -2
  35. package/dist/agent-catalog.json +237 -7
  36. package/dist/agent-i18n/en.json +17 -5
  37. package/dist/components/ai-consent-banner/index.js +1 -1
  38. package/dist/components/alert/alert.d.ts +20 -0
  39. package/dist/components/alert/index.d.ts +1 -1
  40. package/dist/components/alert/index.js +1 -1
  41. package/dist/components/annotation-marker/index.js +1 -1
  42. package/dist/components/audio-recorder/index.js +1 -1
  43. package/dist/components/booking/index.js +1 -1
  44. package/dist/components/care-plan-card/index.js +1 -1
  45. package/dist/components/care-plan-entry-card/index.js +1 -1
  46. package/dist/components/collapsible/index.js +1 -1
  47. package/dist/components/data-table/filters/select-filter.d.ts +6 -0
  48. package/dist/components/data-table/hooks/use-presentational-aria-fix.d.ts +19 -0
  49. package/dist/components/data-table/index.js +2 -2
  50. package/dist/components/document-preview/index.js +1 -1
  51. package/dist/components/document-scanner/index.js +1 -1
  52. package/dist/components/entity-summary/index.js +1 -1
  53. package/dist/components/face-scheme/index.js +1 -1
  54. package/dist/components/file-manager/index.js +1 -1
  55. package/dist/components/freemium-paywall/index.js +1 -1
  56. package/dist/components/muscle-scheme/index.js +1 -1
  57. package/dist/components/notes-panel/index.js +1 -1
  58. package/dist/components/notes-panel/notes-panel.d.ts +45 -2
  59. package/dist/components/patient-details/index.js +1 -1
  60. package/dist/components/patient-search/index.js +1 -1
  61. package/dist/components/patient-table/index.js +1 -1
  62. package/dist/components/payment-card/index.js +1 -1
  63. package/dist/components/payment-form/index.js +1 -1
  64. package/dist/components/pdf-viewer/index.js +1 -1
  65. package/dist/components/practice-results/index.js +1 -1
  66. package/dist/components/reviews-panel/index.js +1 -1
  67. package/dist/components/sign-document/index.js +1 -1
  68. package/dist/components/skeleton-scheme/index.js +1 -1
  69. package/dist/components/sparkline/index.d.ts +1 -1
  70. package/dist/components/sparkline/index.js +1 -1
  71. package/dist/components/sparkline/sparkline.d.ts +60 -3
  72. package/dist/components/warning-stack/index.js +1 -1
  73. package/dist/components/workflow/index.js +1 -1
  74. package/dist/host-compat.css +13 -1
  75. package/dist/i18n/locales/ar.d.ts +3 -0
  76. package/dist/i18n/locales/ar.js +3 -0
  77. package/dist/i18n/locales/de.d.ts +3 -0
  78. package/dist/i18n/locales/de.js +3 -0
  79. package/dist/i18n/locales/el.d.ts +3 -0
  80. package/dist/i18n/locales/el.js +3 -0
  81. package/dist/i18n/locales/en.d.ts +3 -0
  82. package/dist/i18n/locales/en.js +3 -0
  83. package/dist/i18n/locales/es.d.ts +3 -0
  84. package/dist/i18n/locales/es.js +3 -0
  85. package/dist/i18n/locales/fr.d.ts +3 -0
  86. package/dist/i18n/locales/fr.js +3 -0
  87. package/dist/i18n/locales/hi.d.ts +3 -0
  88. package/dist/i18n/locales/hi.js +3 -0
  89. package/dist/i18n/locales/it.d.ts +3 -0
  90. package/dist/i18n/locales/it.js +3 -0
  91. package/dist/i18n/locales/ja.d.ts +3 -0
  92. package/dist/i18n/locales/ja.js +3 -0
  93. package/dist/i18n/locales/nl.d.ts +3 -0
  94. package/dist/i18n/locales/nl.js +3 -0
  95. package/dist/i18n/locales/pl.d.ts +3 -0
  96. package/dist/i18n/locales/pl.js +3 -0
  97. package/dist/i18n/locales/pt.d.ts +3 -0
  98. package/dist/i18n/locales/pt.js +3 -0
  99. package/dist/i18n/locales/ro.d.ts +3 -0
  100. package/dist/i18n/locales/ro.js +3 -0
  101. package/dist/i18n/locales/ru.d.ts +3 -0
  102. package/dist/i18n/locales/ru.js +3 -0
  103. package/dist/i18n/locales/sq.d.ts +3 -0
  104. package/dist/i18n/locales/sq.js +3 -0
  105. package/dist/i18n/locales/sv.d.ts +3 -0
  106. package/dist/i18n/locales/sv.js +3 -0
  107. package/dist/i18n/locales/tr.d.ts +3 -0
  108. package/dist/i18n/locales/tr.js +3 -0
  109. package/dist/i18n/locales/zh.d.ts +3 -0
  110. package/dist/i18n/locales/zh.js +3 -0
  111. package/dist/index.js +974 -1268
  112. package/dist/locales/ar.json +3 -0
  113. package/dist/locales/de.json +3 -0
  114. package/dist/locales/el.json +3 -0
  115. package/dist/locales/en.json +3 -0
  116. package/dist/locales/es.json +3 -0
  117. package/dist/locales/fr.json +3 -0
  118. package/dist/locales/hi.json +3 -0
  119. package/dist/locales/it.json +3 -0
  120. package/dist/locales/ja.json +3 -0
  121. package/dist/locales/nl.json +3 -0
  122. package/dist/locales/pl.json +3 -0
  123. package/dist/locales/pt.json +3 -0
  124. package/dist/locales/ro.json +3 -0
  125. package/dist/locales/ru.json +3 -0
  126. package/dist/locales/sq.json +3 -0
  127. package/dist/locales/sv.json +3 -0
  128. package/dist/locales/tr.json +3 -0
  129. package/dist/locales/zh.json +3 -0
  130. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  131. package/dist/patterns/payment-automation-upsell/index.js +5 -0
  132. package/dist/patterns/signature-request/index.js +1 -1
  133. package/dist/tokens.css +1 -1
  134. package/package.json +5 -1
  135. package/dist/_chunks/link-cell-renderer-Bt-mXeQY.js +0 -728
  136. package/dist/_chunks/notes-panel-CTcOLLVo.js +0 -324
  137. package/dist/_chunks/sparkline-DcXqRZoq.js +0 -283
@@ -4,7 +4,7 @@ import { useTranslation as B } from "react-i18next";
4
4
  import { c as p } from "./index-D2ZczOXr.js";
5
5
  import { A as D } from "./app-frame-DIEMIC5V.js";
6
6
  import { A as S } from "./avatar-BNQNhoyL.js";
7
- import { A as F } from "./alert-Cxaqd-QO.js";
7
+ import { A as F } from "./alert-DS22ha1n.js";
8
8
  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-Axhk6xzx.js";
@@ -520,4 +520,4 @@ export {
520
520
  ka as M,
521
521
  g as P
522
522
  };
523
- //# sourceMappingURL=marketplace-app-shell-pCHBp8bo.js.map
523
+ //# sourceMappingURL=marketplace-app-shell-DQC9Gpm0.js.map
@@ -4,7 +4,7 @@ import * as b from "@radix-ui/react-tooltip";
4
4
  import { c as x1 } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as Q1 } from "react-i18next";
6
6
  import { u as K1 } from "./registry-DvAUVLHh.js";
7
- import { m as k1, A as v1 } from "./annotation-marker-qt5R9WZX.js";
7
+ import { m as k1, A as v1 } from "./annotation-marker-CsUJGZjQ.js";
8
8
  import { T as _ } from "./tabs-CBb2AidH.js";
9
9
  const x = {
10
10
  type: "string",
@@ -1703,4 +1703,4 @@ export {
1703
1703
  I1 as r,
1704
1704
  L1 as v
1705
1705
  };
1706
- //# sourceMappingURL=muscle-scheme-kgCX5qfO.js.map
1706
+ //# sourceMappingURL=muscle-scheme-yfzP_xoJ.js.map
@@ -0,0 +1,370 @@
1
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as se, useRef as r, useState as T, useId as oe, useCallback as le, useEffect as ce, useImperativeHandle as de, useMemo as ue } from "react";
3
+ import { c as pe } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as fe } from "react-i18next";
5
+ import { u as me } from "./registry-DvAUVLHh.js";
6
+ import { C as ge } from "./clinical-note-card-D63x_AkK.js";
7
+ import { R as he } from "./rich-text-editor-CfeXPPWs.js";
8
+ import { T as be } from "./text-area-Bt3p7Pt0.js";
9
+ import { B as ve } from "./button-CPGiR_bH.js";
10
+ import { C as ye } from "./checkbox-BuZ1u__2.js";
11
+ import { P as xe } from "./panel-header-D313n_9-.js";
12
+ import { c as Pe } from "./createLucideIcon-DhHxpK9K.js";
13
+ /**
14
+ * @license lucide-react v1.22.0 - ISC
15
+ *
16
+ * This source code is licensed under the ISC license.
17
+ * See the LICENSE file in the root directory of this source tree.
18
+ */
19
+ const ke = [
20
+ ["path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4", key: "re6nr2" }],
21
+ ["path", { d: "M2 6h4", key: "aawbzj" }],
22
+ ["path", { d: "M2 10h4", key: "l0bgd4" }],
23
+ ["path", { d: "M2 14h4", key: "1gsvsf" }],
24
+ ["path", { d: "M2 18h4", key: "1bu2t1" }],
25
+ [
26
+ "path",
27
+ {
28
+ d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",
29
+ key: "pqwjuv"
30
+ }
31
+ ]
32
+ ], Ce = Pe("notebook-pen", ke), Ne = {
33
+ id: "notes-panel",
34
+ // 'submit' backs add_note (compose + commit a note). pin / flag are toggles
35
+ // with no dedicated capability in the closed vocabulary.
36
+ capabilities: ["submit"],
37
+ state: {
38
+ notes: {
39
+ type: "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
40
+ descriptionKey: "ui.agent.notesPanel.state.notes",
41
+ description: "Timeline note ids + pinned / flagged / clinical flags. Never the note body or author (both PHI).",
42
+ read: (n) => n.getNotes()
43
+ },
44
+ canAddClinical: {
45
+ type: "boolean",
46
+ descriptionKey: "ui.agent.notesPanel.state.canAddClinical",
47
+ description: "Whether the current user may write clinical notes (the practice_add_clinical_note permission gate).",
48
+ read: (n) => n.canAddClinical()
49
+ },
50
+ currentNoteId: {
51
+ type: "string | null",
52
+ descriptionKey: "ui.agent.notesPanel.state.currentNoteId",
53
+ description: "Id of the note the host has addressed — the one marked, scrolled to and focused. Null when none is. An id only, never note content.",
54
+ read: (n) => n.getCurrentNoteId()
55
+ }
56
+ },
57
+ actions: {
58
+ add_note: {
59
+ // Writes a clinical/admin note body — patient-identifiable content. PHI.
60
+ safety: "phi",
61
+ argsType: "{ content: string; clinical: boolean }",
62
+ argsSchema: {
63
+ type: "object",
64
+ properties: {
65
+ content: {
66
+ type: "string",
67
+ description: "Note body. Rich HTML for the rich composer, else plain text."
68
+ },
69
+ clinical: {
70
+ type: "boolean",
71
+ description: "Whether the note is clinical. Requires the clinical-note permission; the submission is dropped when the gate is closed."
72
+ }
73
+ },
74
+ required: ["content", "clinical"]
75
+ },
76
+ openWorld: !0,
77
+ descriptionKey: "ui.agent.notesPanel.actions.addNote",
78
+ description: "Compose and commit a new note. A clinical note requires the clinical-note permission (read canAddClinical first).",
79
+ examples: [
80
+ {
81
+ args: { content: "Patient reported improvement.", clinical: !0 },
82
+ note: "Add a clinical note."
83
+ }
84
+ ],
85
+ invoke: (n, s) => {
86
+ n.addNote(s);
87
+ }
88
+ },
89
+ toggle_pin: {
90
+ // Re-orders the timeline (pinned notes lead) — reversible view write.
91
+ safety: "write",
92
+ argsType: "{ id: string }",
93
+ argsSchema: {
94
+ type: "object",
95
+ properties: { id: { type: "string" } },
96
+ required: ["id"]
97
+ },
98
+ idempotent: !1,
99
+ descriptionKey: "ui.agent.notesPanel.actions.togglePin",
100
+ description: "Toggle the pinned state of the note with the given id.",
101
+ invoke: (n, s) => {
102
+ n.togglePin(s.id);
103
+ }
104
+ },
105
+ toggle_flag: {
106
+ safety: "write",
107
+ argsType: "{ id: string }",
108
+ argsSchema: {
109
+ type: "object",
110
+ properties: { id: { type: "string" } },
111
+ required: ["id"]
112
+ },
113
+ idempotent: !1,
114
+ descriptionKey: "ui.agent.notesPanel.actions.toggleFlag",
115
+ description: "Toggle the flagged state of the note with the given id.",
116
+ invoke: (n, s) => {
117
+ n.toggleFlag(s.id);
118
+ }
119
+ }
120
+ },
121
+ domHooks: {
122
+ root: {
123
+ attr: "data-component",
124
+ value: "notes-panel",
125
+ description: "Marks the NotesPanel region."
126
+ },
127
+ instanceId: {
128
+ attr: "data-component-id",
129
+ sourceProp: "id",
130
+ description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
131
+ }
132
+ }
133
+ }, we = pe(
134
+ "ds:flex ds:flex-col ds:rounded-[var(--radius-md)] ds:border-s-2 ds:ps-[var(--spacing-sm)]",
135
+ {
136
+ variants: {
137
+ current: {
138
+ true: "ds:border-[color:var(--info)] ds:bg-[color:var(--info)]/10 ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
139
+ false: "ds:border-transparent"
140
+ }
141
+ },
142
+ defaultVariants: { current: !1 }
143
+ }
144
+ );
145
+ function z(n) {
146
+ return n ? /<img\b/i.test(n) ? !0 : n.replace(/<[^>]*>/g, "").replace(/&nbsp;/gi, " ").trim().length > 0 : !1;
147
+ }
148
+ const Se = se(
149
+ function({
150
+ id: s,
151
+ notes: x,
152
+ onAddNote: l,
153
+ currentNoteId: c,
154
+ currentNoteKey: S,
155
+ composer: f = "rich",
156
+ editorToolbar: L = "standard",
157
+ redactor: B,
158
+ imageUploadUrl: W,
159
+ showClinicalToggle: I = !0,
160
+ canAddClinicalNote: m = !0,
161
+ clinicalGatedReason: E,
162
+ defaultClinical: P = !1,
163
+ onRequestAiDraft: D,
164
+ aiDraftFormat: G,
165
+ aiPrivacyNotice: Y,
166
+ onDictate: F,
167
+ onProofread: J,
168
+ onAutoFormat: O,
169
+ onTogglePin: g,
170
+ onToggleFlag: h,
171
+ title: Q,
172
+ composerPlaceholder: U,
173
+ addNoteLabel: X,
174
+ emptyState: Z,
175
+ className: $,
176
+ "aria-label": k,
177
+ ...ee
178
+ }, te) {
179
+ const { t: o } = fe(), C = r(null), [d, N] = T(""), [b, j] = T(P), ne = Q ?? o("notesPanel.title", { defaultValue: "Notes" }), V = oe(), M = U ?? o("notesPanel.placeholder", { defaultValue: "Add a note…" }), H = o("notesPanel.composerLabel", {
180
+ defaultValue: "New note"
181
+ }), ae = f === "rich" ? z(d) : d.trim().length > 0, ie = le(() => {
182
+ var e, t;
183
+ if (l) {
184
+ if (f === "rich") {
185
+ const a = ((e = C.current) == null ? void 0 : e.getHTML()) ?? d;
186
+ if (!z(a)) return;
187
+ l({ content: a, clinical: b }), (t = C.current) == null || t.clear();
188
+ } else {
189
+ const a = d.trim();
190
+ if (!a) return;
191
+ l({ content: a, clinical: b });
192
+ }
193
+ N(""), j(P);
194
+ }
195
+ }, [f, d, b, P, l]), _ = [...x].sort(
196
+ (e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
197
+ ), w = r(null);
198
+ ce(() => {
199
+ var e, t;
200
+ c && ((e = w.current) == null || e.scrollIntoView({ block: "center" }), (t = w.current) == null || t.focus());
201
+ }, [c, S]);
202
+ const q = r(x);
203
+ q.current = x;
204
+ const u = r(l);
205
+ u.current = l;
206
+ const v = r(g);
207
+ v.current = g;
208
+ const y = r(h);
209
+ y.current = h;
210
+ const R = r(m);
211
+ R.current = m;
212
+ const A = r(c);
213
+ A.current = c;
214
+ const K = r(null);
215
+ de(te, () => K.current, []);
216
+ const re = ue(
217
+ () => ({
218
+ // Ids + flags only — never the note body or author (both PHI).
219
+ getNotes: () => q.current.map((e) => ({
220
+ id: e.id,
221
+ pinned: !!e.pinned,
222
+ flagged: !!e.flagged,
223
+ clinical: !!e.clinical
224
+ })),
225
+ canAddNote: () => !!u.current,
226
+ canAddClinical: () => R.current,
227
+ getCurrentNoteId: () => A.current ?? null,
228
+ addNote: (e) => {
229
+ var t;
230
+ e.clinical && !R.current || (t = u.current) == null || t.call(u, e);
231
+ },
232
+ togglePin: (e) => {
233
+ var t;
234
+ return (t = v.current) == null ? void 0 : t.call(v, e);
235
+ },
236
+ toggleFlag: (e) => {
237
+ var t;
238
+ return (t = y.current) == null ? void 0 : t.call(y, e);
239
+ }
240
+ }),
241
+ []
242
+ );
243
+ return me(Ne, re, s), /* @__PURE__ */ p(
244
+ "section",
245
+ {
246
+ ref: K,
247
+ "data-component": "notes-panel",
248
+ "data-component-id": s,
249
+ "aria-labelledby": k ? void 0 : V,
250
+ "aria-label": k,
251
+ className: ["ds:flex ds:flex-col", $].filter(Boolean).join(" "),
252
+ ...ee,
253
+ children: [
254
+ /* @__PURE__ */ i(
255
+ xe,
256
+ {
257
+ title: ne,
258
+ icon: /* @__PURE__ */ i(Ce, { "aria-hidden": "true" }),
259
+ headingId: k ? void 0 : V,
260
+ sticky: !0,
261
+ divider: !0
262
+ }
263
+ ),
264
+ /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
265
+ l ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
266
+ f === "rich" ? /* @__PURE__ */ i(
267
+ he,
268
+ {
269
+ ref: C,
270
+ ariaLabel: H,
271
+ placeholder: M,
272
+ toolbar: L,
273
+ minHeight: "sm",
274
+ redactor: B,
275
+ imageUploadUrl: W,
276
+ onChange: ({ html: e }) => N(e),
277
+ onRequestAiDraft: D,
278
+ aiDraftFormat: G,
279
+ aiPrivacyNotice: Y,
280
+ onDictate: F,
281
+ onProofread: J,
282
+ onAutoFormat: O
283
+ }
284
+ ) : /* @__PURE__ */ i(
285
+ be,
286
+ {
287
+ value: d,
288
+ onChange: (e) => N(e.target.value),
289
+ placeholder: M,
290
+ autoResize: !0,
291
+ minRows: 2,
292
+ maxRows: 6,
293
+ "aria-label": H
294
+ }
295
+ ),
296
+ /* @__PURE__ */ p(
297
+ "div",
298
+ {
299
+ className: [
300
+ "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
301
+ I ? "ds:justify-between" : "ds:justify-end"
302
+ ].join(" "),
303
+ children: [
304
+ I ? /* @__PURE__ */ i(
305
+ ye,
306
+ {
307
+ size: "sm",
308
+ label: o("notesPanel.clinicalToggle", {
309
+ defaultValue: "Clinical note"
310
+ }),
311
+ checked: b,
312
+ onCheckedChange: (e) => j(e === !0),
313
+ disabled: !m,
314
+ disabledReason: m ? void 0 : E ?? o("notesPanel.clinicalGated", {
315
+ defaultValue: "You do not have permission to write clinical notes."
316
+ })
317
+ }
318
+ ) : null,
319
+ /* @__PURE__ */ i(
320
+ ve,
321
+ {
322
+ type: "button",
323
+ size: "sm",
324
+ onClick: ie,
325
+ disabled: !ae,
326
+ children: X ?? o("notesPanel.add", { defaultValue: "Add note" })
327
+ }
328
+ )
329
+ ]
330
+ }
331
+ )
332
+ ] }) : null,
333
+ _.length > 0 ? /* @__PURE__ */ i("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: _.map((e, t) => {
334
+ const a = c != null && e.id === c;
335
+ return /* @__PURE__ */ p(
336
+ "li",
337
+ {
338
+ ref: a ? w : void 0,
339
+ tabIndex: a ? -1 : void 0,
340
+ "aria-current": a ? "true" : void 0,
341
+ className: we({ current: a }),
342
+ children: [
343
+ a ? /* @__PURE__ */ i("span", { className: "ds:sr-only", children: o("notesPanel.current", {
344
+ defaultValue: "Current note"
345
+ }) }) : null,
346
+ /* @__PURE__ */ i(
347
+ ge,
348
+ {
349
+ surface: "elevated",
350
+ truncate: !a,
351
+ ...e,
352
+ onTogglePin: g && e.id ? () => g(e.id) : void 0,
353
+ onToggleFlag: h && e.id ? () => h(e.id) : void 0
354
+ }
355
+ )
356
+ ]
357
+ },
358
+ e.id ?? t
359
+ );
360
+ }) }) : Z ?? /* @__PURE__ */ i("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("notesPanel.empty", { defaultValue: "No notes yet." }) })
361
+ ] })
362
+ ]
363
+ }
364
+ );
365
+ }
366
+ );
367
+ export {
368
+ Se as N
369
+ };
370
+ //# sourceMappingURL=notes-panel-CCz0J140.js.map
@@ -5,7 +5,7 @@ import { useTranslation as V } from "react-i18next";
5
5
  import { A as re } from "./avatar-BNQNhoyL.js";
6
6
  import { I as z } from "./icon-button-C_kbcd7I.js";
7
7
  import { C as F } from "./card-DPmk26CL.js";
8
- import { C as ne, b as le, a as oe } from "./collapsible-BrnRiCC6.js";
8
+ import { C as ne, b as le, a as oe } from "./collapsible-CGL9ontS.js";
9
9
  import { D as de } from "./date-picker-BP_W6VtE.js";
10
10
  import { D as S } from "./description-list-ClNLdRMy.js";
11
11
  import { E as ce } from "./email-input-Dpe63k0K.js";
@@ -775,4 +775,4 @@ export {
775
775
  Ae as P,
776
776
  je as p
777
777
  };
778
- //# sourceMappingURL=patient-details-UmNcxL0c.js.map
778
+ //# sourceMappingURL=patient-details-l7pnsUq9.js.map
@@ -6,7 +6,7 @@ import { A as se } from "./autocomplete-BrONKN8l.js";
6
6
  import { B as ue } from "./button-CPGiR_bH.js";
7
7
  import { C as M } from "./card-DPmk26CL.js";
8
8
  import { S as fe } from "./slider-DN1CWkKB.js";
9
- import { A as Z } from "./alert-Cxaqd-QO.js";
9
+ import { A as Z } from "./alert-DS22ha1n.js";
10
10
  import { D as F } from "./dropdown-menu-DU-Hrf33.js";
11
11
  import { u as pe } from "./registry-DvAUVLHh.js";
12
12
  import { S as re } from "./search-QbWPlY5f.js";
@@ -1166,4 +1166,4 @@ export {
1166
1166
  Oe as P,
1167
1167
  ye as p
1168
1168
  };
1169
- //# sourceMappingURL=patient-search-vtRTSdf6.js.map
1169
+ //# sourceMappingURL=patient-search-H54Utav2.js.map