@alfadocs/ui-kit 1.45.0 → 1.46.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.
- package/dist/_chunks/{actions-cell-renderer-BXBy9c0f.js → actions-cell-renderer-B5m9lwgC.js} +2 -2
- package/dist/_chunks/ai-credits-notice-xszqOZTC.js +90 -0
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +17 -0
- package/dist/_chunks/{ai-consent-banner-D7I2U-cz.js → ai-permission-notice-D7I2U-cz.js} +1 -1
- package/dist/_chunks/ai-sparkle-D23NT8Z_.js +45 -0
- package/dist/_chunks/{anamnesis-summary-rows-DQUqwWc1.js → anamnesis-summary-rows-DI-UX5r6.js} +2 -2
- package/dist/_chunks/{appointment-card-TgR_2GKS.js → appointment-card-DluZy8Iv.js} +2 -2
- package/dist/_chunks/{appointment-peek-abiR0T9e.js → appointment-peek-BsfCpiJs.js} +3 -3
- package/dist/_chunks/{appointment-timeline-CCnyUYKz.js → appointment-timeline-Cs5f9viN.js} +3 -3
- package/dist/_chunks/{appointment-tray-N0yEI8UF.js → appointment-tray-CLrGGnKR.js} +2 -2
- package/dist/_chunks/baby-Dku-Xvg9.js +23 -0
- package/dist/_chunks/{balance-badge-cell-o6LldMUA.js → balance-badge-cell-YGrYdrvR.js} +3 -3
- package/dist/_chunks/{booking-D43ASl8y.js → booking-B7gA9gFB.js} +279 -296
- package/dist/_chunks/button-group-CA1tmu39.js +325 -0
- package/dist/_chunks/{calendar-U6N0F99w.js → calendar-OzSeTb4V.js} +2 -2
- package/dist/_chunks/{calendar-event-card-DKUnT9Be.js → calendar-event-card-B6N5h1dO.js} +57 -48
- package/dist/_chunks/{calendar-workspace-B7KvZ1_D.js → calendar-workspace-BB-BZT7W.js} +3002 -2912
- package/dist/_chunks/{chart-PF2krCZC.js → chart-D8ucl8hH.js} +2 -2
- package/dist/_chunks/{data-table-CcAx_I1w.js → data-table-DnKOmEVw.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-Psb6XKHR.js → editable-currency-cell-renderer-OUkUv7U4.js} +2 -2
- package/dist/_chunks/{face-scheme-Bm6pe7R8.js → face-scheme-mIhwrQXt.js} +3 -3
- package/dist/_chunks/{file-manager-BfLQxF5t.js → file-manager-DOcJGIx2.js} +4 -4
- package/dist/_chunks/{header-settings-CTe45iDy.js → header-settings-BEfx_-TF.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-GUeEn3Ff.js → help-me-write-templates-DHIwa4xR.js} +205 -199
- package/dist/_chunks/{hover-card-BMJBVqIf.js → hover-card-nUae8NPJ.js} +67 -62
- package/dist/_chunks/{icon-button-group-DkkdIygu.js → icon-button-group-DZKC6KGf.js} +181 -168
- package/dist/_chunks/kit-extensions-DuoFF1R3.js +94 -0
- package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js} +2 -2
- package/dist/_chunks/{notes-panel-Dkk9QPPX.js → notes-panel-CHbDDMx8.js} +83 -73
- package/dist/_chunks/{patient-details-C8ImUrVg.js → patient-details-DUj1htsH.js} +2 -2
- package/dist/_chunks/{patient-field-row-BRSOKvme.js → patient-field-row-CO0WR7yA.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BhmKB2KR.js → patient-summary-card-DNzdYjxE.js} +59 -45
- package/dist/_chunks/rich-text-editor-BwDV2XkZ.js +4153 -0
- package/dist/_chunks/{tasks-panel-CpcikOeY.js → tasks-panel-DncuBPIZ.js} +2 -2
- package/dist/_chunks/{theme-toggle-bI0pgDDv.js → theme-toggle-BP0XRGMM.js} +2 -2
- package/dist/_chunks/use-ai-sparkle-Cf4yVTLB.js +76 -0
- package/dist/_chunks/{workflow-status-xeaJTzD3.js → workflow-status-CuJAOuKL.js} +43 -42
- package/dist/agent-catalog.json +32 -4
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/ai-credits-notice/ai-credits-notice.agent.d.ts +3 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +48 -0
- package/dist/components/ai-credits-notice/index.d.ts +4 -0
- package/dist/components/ai-credits-notice/index.js +7 -0
- package/dist/components/{ai-consent-banner/ai-consent-banner.agent.d.ts → ai-permission-notice/ai-permission-notice.agent.d.ts} +2 -2
- package/dist/components/{ai-consent-banner/ai-consent-banner.d.ts → ai-permission-notice/ai-permission-notice.d.ts} +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +4 -0
- package/dist/components/{ai-consent-banner → ai-permission-notice}/index.js +1 -1
- package/dist/components/ai-sparkle/ai-sparkle.d.ts +3 -3
- package/dist/components/ai-sparkle/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts +4 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +3 -2
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +10 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/rich-text-editor/editor-extensions.d.ts +54 -0
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +4 -0
- package/dist/components/rich-text-editor/index.d.ts +2 -0
- package/dist/components/rich-text-editor/index.js +6 -4
- package/dist/components/rich-text-editor/kit-extensions.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +18 -2
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +51 -53
- package/dist/hooks/use-ai-sparkle.d.ts +7 -25
- package/dist/host-compat.css +2 -2
- package/dist/i18n/locales/ar.d.ts +31 -0
- package/dist/i18n/locales/ar.js +33 -2
- package/dist/i18n/locales/de.d.ts +31 -0
- package/dist/i18n/locales/de.js +33 -2
- package/dist/i18n/locales/el.d.ts +31 -0
- package/dist/i18n/locales/el.js +33 -2
- package/dist/i18n/locales/en.d.ts +31 -0
- package/dist/i18n/locales/en.js +33 -2
- package/dist/i18n/locales/es.d.ts +31 -0
- package/dist/i18n/locales/es.js +33 -2
- package/dist/i18n/locales/fr.d.ts +31 -0
- package/dist/i18n/locales/fr.js +33 -2
- package/dist/i18n/locales/hi.d.ts +31 -0
- package/dist/i18n/locales/hi.js +33 -2
- package/dist/i18n/locales/it.d.ts +31 -0
- package/dist/i18n/locales/it.js +33 -2
- package/dist/i18n/locales/ja.d.ts +31 -0
- package/dist/i18n/locales/ja.js +33 -2
- package/dist/i18n/locales/nl.d.ts +31 -0
- package/dist/i18n/locales/nl.js +33 -2
- package/dist/i18n/locales/pl.d.ts +31 -0
- package/dist/i18n/locales/pl.js +33 -2
- package/dist/i18n/locales/pt.d.ts +31 -0
- package/dist/i18n/locales/pt.js +33 -2
- package/dist/i18n/locales/ro.d.ts +31 -0
- package/dist/i18n/locales/ro.js +33 -2
- package/dist/i18n/locales/ru.d.ts +31 -0
- package/dist/i18n/locales/ru.js +33 -2
- package/dist/i18n/locales/sq.d.ts +31 -0
- package/dist/i18n/locales/sq.js +33 -2
- package/dist/i18n/locales/sv.d.ts +31 -0
- package/dist/i18n/locales/sv.js +33 -2
- package/dist/i18n/locales/tr.d.ts +31 -0
- package/dist/i18n/locales/tr.js +33 -2
- package/dist/i18n/locales/zh.d.ts +31 -0
- package/dist/i18n/locales/zh.js +33 -2
- package/dist/index.js +646 -639
- package/dist/locales/ar.json +33 -2
- package/dist/locales/de.json +33 -2
- package/dist/locales/el.json +33 -2
- package/dist/locales/en.json +33 -2
- package/dist/locales/es.json +33 -2
- package/dist/locales/fr.json +33 -2
- package/dist/locales/hi.json +33 -2
- package/dist/locales/it.json +33 -2
- package/dist/locales/ja.json +33 -2
- package/dist/locales/nl.json +33 -2
- package/dist/locales/pl.json +33 -2
- package/dist/locales/pt.json +33 -2
- package/dist/locales/ro.json +33 -2
- package/dist/locales/ru.json +33 -2
- package/dist/locales/sq.json +33 -2
- package/dist/locales/sv.json +33 -2
- package/dist/locales/tr.json +33 -2
- package/dist/locales/zh.json +33 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +6 -4
- package/dist/patterns/calendar/calendar.data.d.ts +9 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +16 -5
- package/dist/patterns/calendar/calendar.types.d.ts +3 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +11 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +14 -4
- package/dist/_chunks/ai-sparkle-DXeP_6a0.js +0 -52
- package/dist/_chunks/button-group-R32U7SyV.js +0 -307
- package/dist/_chunks/rich-text-editor-BrAvNajV.js +0 -3779
- package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +0 -103
- package/dist/components/ai-consent-banner/index.d.ts +0 -4
package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
532
|
+
//# sourceMappingURL=marketplace-app-shell-PB89Dkk_.js.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as d, jsx as n, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
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
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import { R as
|
|
8
|
-
import { T as
|
|
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
|
|
13
|
-
import { T as
|
|
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
|
|
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
|
|
18
|
-
import { a as
|
|
19
|
-
import { u as
|
|
20
|
-
import { N as
|
|
21
|
-
import { P as
|
|
22
|
-
import { T as
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
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
|
-
),
|
|
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(" "),
|
|
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(/ /gi, " ").trim().length > 0 : !1;
|
|
158
158
|
}
|
|
159
|
-
const
|
|
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
|
-
|
|
192
|
-
|
|
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:
|
|
202
|
+
editClinical: Ye = !1,
|
|
198
203
|
onDeleteNote: h,
|
|
199
204
|
confirmDelete: $ = !0,
|
|
200
|
-
title:
|
|
201
|
-
composerPlaceholder:
|
|
202
|
-
addNoteLabel:
|
|
203
|
-
emptyState:
|
|
204
|
-
className:
|
|
205
|
+
title: Je,
|
|
206
|
+
composerPlaceholder: Qe,
|
|
207
|
+
addNoteLabel: Ue,
|
|
208
|
+
emptyState: Xe,
|
|
209
|
+
className: Ze,
|
|
205
210
|
"aria-label": G,
|
|
206
|
-
...
|
|
207
|
-
},
|
|
208
|
-
const { t: a, i18n: te } =
|
|
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
|
|
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 ||
|
|
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
|
-
),
|
|
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:
|
|
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 =
|
|
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
|
-
),
|
|
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
|
-
|
|
305
|
-
const
|
|
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
|
|
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",
|
|
343
|
-
...
|
|
347
|
+
className: ["ds:flex ds:flex-col", Ze].filter(Boolean).join(" "),
|
|
348
|
+
...et,
|
|
344
349
|
children: [
|
|
345
350
|
/* @__PURE__ */ n(
|
|
346
|
-
|
|
351
|
+
Et,
|
|
347
352
|
{
|
|
348
|
-
title:
|
|
349
|
-
icon: /* @__PURE__ */ n(
|
|
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
|
-
|
|
367
|
+
$e,
|
|
363
368
|
g === "rich" ? /* @__PURE__ */ n(
|
|
364
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
448
|
-
disabled: !
|
|
457
|
+
onClick: st,
|
|
458
|
+
disabled: !it,
|
|
449
459
|
loading: u,
|
|
450
|
-
children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save 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
|
-
|
|
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
|
-
|
|
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:
|
|
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 ${
|
|
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
|
-
|
|
551
|
+
At({
|
|
542
552
|
current: l,
|
|
543
553
|
washed: l || w
|
|
544
554
|
}),
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
f ?
|
|
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
|
-
|
|
580
|
+
bt,
|
|
571
581
|
{
|
|
572
582
|
surface: "elevated",
|
|
573
583
|
truncate: !l,
|
|
574
|
-
headerActions: /* @__PURE__ */ d(
|
|
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(
|
|
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() :
|
|
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(
|
|
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: () =>
|
|
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 :
|
|
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:
|
|
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
|
-
|
|
680
|
+
on as N,
|
|
671
681
|
ve as g
|
|
672
682
|
};
|
|
673
|
-
//# sourceMappingURL=notes-panel-
|
|
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-
|
|
11
|
+
import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-CO0WR7yA.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-
|
|
371
|
+
//# sourceMappingURL=patient-details-DUj1htsH.js.map
|
|
@@ -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-
|
|
808
|
+
//# sourceMappingURL=patient-field-row-CO0WR7yA.js.map
|