@alfadocs/ui-kit 1.10.1 → 1.12.4
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-xfSYiTXQ.js → actions-cell-renderer-BCEjn3-f.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-d44s_whc.js → anamnesis-summary-rows-BfhxWPO3.js} +1421 -1418
- package/dist/_chunks/appointment-timeline-DCn0Jx55.js +403 -0
- package/dist/_chunks/{balance-badge-cell-C_Qz76x7.js → balance-badge-cell-BrlikHfT.js} +317 -290
- package/dist/_chunks/booking-CBHKdsZl.js +2906 -0
- package/dist/_chunks/{chart-Bkr1Sh4o.js → chart-C6eHTxkO.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CE9OJKcl.js → contact-profile-card-BMIBr5s9.js} +104 -125
- package/dist/_chunks/{control-room-rail-Cj2iX9h_.js → control-room-rail-iO_BCaq1.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-zLf_bXvL.js → editable-currency-cell-renderer-B7TVZ5ZJ.js} +2 -2
- package/dist/_chunks/{face-scheme-BfDi4YkW.js → face-scheme-CZaKm6fG.js} +2 -2
- package/dist/_chunks/{file-manager-Df6hyUYg.js → file-manager-Moc7sUFj.js} +3 -3
- package/dist/_chunks/format-price-DNqXPa_q.js +61 -0
- package/dist/_chunks/{header-settings-CVC_davE.js → header-settings-J-ZCAfir.js} +2 -2
- package/dist/_chunks/{icon-button-group-D6SVMteH.js → icon-button-group-VCCod3Hz.js} +154 -145
- package/dist/_chunks/{link-cell-renderer-Cp2MSlJl.js → link-cell-renderer-CenJx-_7.js} +197 -181
- package/dist/_chunks/{marketplace-app-shell-Chfdia7m.js → marketplace-app-shell-DDQXQ8hX.js} +2 -2
- package/dist/_chunks/{notes-panel-e9cJWVRg.js → notes-panel-CymneXtl.js} +93 -91
- package/dist/_chunks/{practice-results-BEsAdW-B.js → practice-results-D7ygCj_W.js} +333 -291
- package/dist/_chunks/{signature-request-CW30B77U.js → signature-request-DVDTKLjM.js} +2 -2
- package/dist/_chunks/{stepper-accordion-BeVMZPuG.js → stepper-accordion-DmVykr5F.js} +91 -88
- package/dist/_chunks/{theme-toggle-DuMhQNFS.js → theme-toggle-uEwoKjl3.js} +2 -2
- package/dist/_chunks/{tool-rail-CHyUmulN.js → tool-rail-8Scslq3X.js} +2 -2
- package/dist/_chunks/{whatsapp-button-Ca9towA4.js → whatsapp-button-CuFIHJzG.js} +27 -19
- package/dist/agent-catalog.json +12 -5
- package/dist/agent-i18n/en.json +4 -3
- package/dist/components/_shared/format-price.d.ts +21 -0
- package/dist/components/_shared/index.d.ts +1 -0
- package/dist/components/_shared/stepper.d.ts +28 -2
- package/dist/components/appointment-card/appointment-card.d.ts +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +8 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +15 -2
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
- 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/icon-button-group/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +6 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +18 -0
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.js +5 -1
- package/dist/i18n/locales/de.d.ts +5 -1
- package/dist/i18n/locales/de.js +6 -2
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.js +5 -1
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.js +5 -1
- package/dist/i18n/locales/es.d.ts +5 -1
- package/dist/i18n/locales/es.js +6 -2
- package/dist/i18n/locales/fr.d.ts +5 -1
- package/dist/i18n/locales/fr.js +6 -2
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.js +5 -1
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.js +5 -1
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.js +5 -1
- package/dist/i18n/locales/nl.d.ts +5 -1
- package/dist/i18n/locales/nl.js +6 -2
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.js +5 -1
- package/dist/i18n/locales/pt.d.ts +5 -1
- package/dist/i18n/locales/pt.js +6 -2
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.js +5 -1
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.js +5 -1
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.js +5 -1
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.js +5 -1
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.js +5 -1
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.js +5 -1
- package/dist/index.js +20 -20
- package/dist/locales/ar.json +5 -1
- package/dist/locales/de.json +6 -2
- package/dist/locales/el.json +5 -1
- package/dist/locales/en.json +5 -1
- package/dist/locales/es.json +6 -2
- package/dist/locales/fr.json +6 -2
- package/dist/locales/hi.json +5 -1
- package/dist/locales/it.json +5 -1
- package/dist/locales/ja.json +5 -1
- package/dist/locales/nl.json +6 -2
- package/dist/locales/pl.json +5 -1
- package/dist/locales/pt.json +6 -2
- package/dist/locales/ro.json +5 -1
- package/dist/locales/ru.json +5 -1
- package/dist/locales/sq.json +5 -1
- package/dist/locales/sv.json +5 -1
- package/dist/locales/tr.json +5 -1
- package/dist/locales/zh.json +5 -1
- package/dist/patterns/anamnesis/anamnesis-config.d.ts +18 -7
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +8 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-0mwtpErq.js +0 -388
- package/dist/_chunks/booking-DHkKcUIl.js +0 -2713
- package/dist/_chunks/languages-CGLX6Qpe.js +0 -19
package/dist/_chunks/{marketplace-app-shell-Chfdia7m.js → marketplace-app-shell-DDQXQ8hX.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-DvFJIQfL.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-DUXRIPyM.js";
|
|
12
|
-
import { H as X } from "./header-settings-
|
|
12
|
+
import { H as X } from "./header-settings-J-ZCAfir.js";
|
|
13
13
|
import { S as Y } from "./sign-in-with-alfadocs-button-BLe_quy5.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-C-Gr2LL-.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-DDQXQ8hX.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import { R as
|
|
2
|
+
import { forwardRef as oe, useRef as a, useState as M, useId as le, useCallback as ce, useEffect as de, useImperativeHandle as ue, useMemo as pe } from "react";
|
|
3
|
+
import { c as fe } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as me } from "react-i18next";
|
|
5
|
+
import { u as ge } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { C as he } from "./clinical-note-card-BBgFd2nB.js";
|
|
7
|
+
import { R as ve } from "./rich-text-editor-BDfFtK4H.js";
|
|
8
8
|
import { T as be } from "./text-area-Bt3p7Pt0.js";
|
|
9
|
-
import { B as
|
|
10
|
-
import { C as
|
|
11
|
-
import { P as
|
|
12
|
-
import { N as
|
|
13
|
-
const
|
|
9
|
+
import { B as ye } from "./button-nJaPh_HC.js";
|
|
10
|
+
import { C as xe } from "./checkbox-BuZ1u__2.js";
|
|
11
|
+
import { P as Pe } from "./panel-header-D313n_9-.js";
|
|
12
|
+
import { N as Ce } from "./notebook-pen-CO7HoM-W.js";
|
|
13
|
+
const Ne = {
|
|
14
14
|
id: "notes-panel",
|
|
15
15
|
// 'submit' backs add_note (compose + commit a note). pin / flag are toggles
|
|
16
16
|
// with no dedicated capability in the closed vocabulary.
|
|
@@ -111,7 +111,7 @@ const Ce = {
|
|
|
111
111
|
description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, we = fe(
|
|
115
115
|
"ds:flex ds:flex-col ds:rounded-[var(--radius-md)] ds:border-s-2 ds:ps-[var(--spacing-sm)]",
|
|
116
116
|
{
|
|
117
117
|
variants: {
|
|
@@ -123,81 +123,82 @@ const Ce = {
|
|
|
123
123
|
defaultVariants: { current: !1 }
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
|
-
function
|
|
126
|
+
function z(n) {
|
|
127
127
|
return n ? /<img\b/i.test(n) ? !0 : n.replace(/<[^>]*>/g, "").replace(/ /gi, " ").trim().length > 0 : !1;
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const Me = oe(
|
|
130
130
|
function({
|
|
131
131
|
id: s,
|
|
132
132
|
notes: x,
|
|
133
133
|
onAddNote: l,
|
|
134
134
|
currentNoteId: c,
|
|
135
|
-
currentNoteKey:
|
|
135
|
+
currentNoteKey: B,
|
|
136
136
|
composer: f = "rich",
|
|
137
|
-
editorToolbar:
|
|
138
|
-
redactor:
|
|
139
|
-
imageUploadUrl:
|
|
137
|
+
editorToolbar: L = "standard",
|
|
138
|
+
redactor: W,
|
|
139
|
+
imageUploadUrl: E,
|
|
140
140
|
showClinicalToggle: I = !0,
|
|
141
141
|
canAddClinicalNote: m = !0,
|
|
142
|
-
clinicalGatedReason:
|
|
142
|
+
clinicalGatedReason: D,
|
|
143
143
|
defaultClinical: P = !1,
|
|
144
|
-
onRequestAiDraft:
|
|
145
|
-
aiDraftFormat:
|
|
146
|
-
aiPrivacyNotice:
|
|
147
|
-
onDictate:
|
|
148
|
-
onProofread:
|
|
149
|
-
onAutoFormat:
|
|
144
|
+
onRequestAiDraft: G,
|
|
145
|
+
aiDraftFormat: Y,
|
|
146
|
+
aiPrivacyNotice: F,
|
|
147
|
+
onDictate: J,
|
|
148
|
+
onProofread: O,
|
|
149
|
+
onAutoFormat: Q,
|
|
150
150
|
onTogglePin: g,
|
|
151
151
|
onToggleFlag: h,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
noteActions: V,
|
|
153
|
+
title: U,
|
|
154
|
+
composerPlaceholder: X,
|
|
155
|
+
addNoteLabel: Z,
|
|
156
|
+
emptyState: $,
|
|
157
|
+
className: ee,
|
|
157
158
|
"aria-label": C,
|
|
158
|
-
...
|
|
159
|
-
},
|
|
160
|
-
const { t: o } =
|
|
159
|
+
...te
|
|
160
|
+
}, ne) {
|
|
161
|
+
const { t: o } = me(), N = a(null), [d, w] = M(""), [v, j] = M(P), ie = U ?? o("notesPanel.title", { defaultValue: "Notes" }), H = le(), q = X ?? o("notesPanel.placeholder", { defaultValue: "Add a note…" }), K = o("notesPanel.composerLabel", {
|
|
161
162
|
defaultValue: "New note"
|
|
162
|
-
}),
|
|
163
|
+
}), re = f === "rich" ? z(d) : d.trim().length > 0, ae = ce(() => {
|
|
163
164
|
var e, t;
|
|
164
165
|
if (l) {
|
|
165
166
|
if (f === "rich") {
|
|
166
167
|
const i = ((e = N.current) == null ? void 0 : e.getHTML()) ?? d;
|
|
167
|
-
if (!
|
|
168
|
-
l({ content: i, clinical:
|
|
168
|
+
if (!z(i)) return;
|
|
169
|
+
l({ content: i, clinical: v }), (t = N.current) == null || t.clear();
|
|
169
170
|
} else {
|
|
170
171
|
const i = d.trim();
|
|
171
172
|
if (!i) return;
|
|
172
|
-
l({ content: i, clinical:
|
|
173
|
+
l({ content: i, clinical: v });
|
|
173
174
|
}
|
|
174
|
-
w(""),
|
|
175
|
+
w(""), j(P);
|
|
175
176
|
}
|
|
176
|
-
}, [f, d,
|
|
177
|
+
}, [f, d, v, P, l]), T = [...x].sort(
|
|
177
178
|
(e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
|
|
178
179
|
), R = a(null);
|
|
179
|
-
|
|
180
|
+
de(() => {
|
|
180
181
|
var e, t;
|
|
181
182
|
c && ((e = R.current) == null || e.scrollIntoView({ block: "center" }), (t = R.current) == null || t.focus());
|
|
182
|
-
}, [c,
|
|
183
|
-
const
|
|
184
|
-
|
|
183
|
+
}, [c, B]);
|
|
184
|
+
const _ = a(x);
|
|
185
|
+
_.current = x;
|
|
185
186
|
const u = a(l);
|
|
186
187
|
u.current = l;
|
|
187
|
-
const
|
|
188
|
-
|
|
188
|
+
const b = a(g);
|
|
189
|
+
b.current = g;
|
|
189
190
|
const y = a(h);
|
|
190
191
|
y.current = h;
|
|
191
192
|
const k = a(m);
|
|
192
193
|
k.current = m;
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
const
|
|
194
|
+
const A = a(c);
|
|
195
|
+
A.current = c;
|
|
196
|
+
const S = a(null);
|
|
197
|
+
ue(ne, () => S.current, []);
|
|
198
|
+
const se = pe(
|
|
198
199
|
() => ({
|
|
199
200
|
// Ids + flags only — never the note body or author (both PHI).
|
|
200
|
-
getNotes: () =>
|
|
201
|
+
getNotes: () => _.current.map((e) => ({
|
|
201
202
|
id: e.id,
|
|
202
203
|
pinned: !!e.pinned,
|
|
203
204
|
flagged: !!e.flagged,
|
|
@@ -205,14 +206,14 @@ const Se = se(
|
|
|
205
206
|
})),
|
|
206
207
|
canAddNote: () => !!u.current,
|
|
207
208
|
canAddClinical: () => k.current,
|
|
208
|
-
getCurrentNoteId: () =>
|
|
209
|
+
getCurrentNoteId: () => A.current ?? null,
|
|
209
210
|
addNote: (e) => {
|
|
210
211
|
var t;
|
|
211
212
|
e.clinical && !k.current || (t = u.current) == null || t.call(u, e);
|
|
212
213
|
},
|
|
213
214
|
togglePin: (e) => {
|
|
214
215
|
var t;
|
|
215
|
-
return (t =
|
|
216
|
+
return (t = b.current) == null ? void 0 : t.call(b, e);
|
|
216
217
|
},
|
|
217
218
|
toggleFlag: (e) => {
|
|
218
219
|
var t;
|
|
@@ -221,23 +222,23 @@ const Se = se(
|
|
|
221
222
|
}),
|
|
222
223
|
[]
|
|
223
224
|
);
|
|
224
|
-
return
|
|
225
|
+
return ge(Ne, se, s), /* @__PURE__ */ p(
|
|
225
226
|
"section",
|
|
226
227
|
{
|
|
227
|
-
ref:
|
|
228
|
+
ref: S,
|
|
228
229
|
"data-component": "notes-panel",
|
|
229
230
|
"data-component-id": s,
|
|
230
|
-
"aria-labelledby": C ? void 0 :
|
|
231
|
+
"aria-labelledby": C ? void 0 : H,
|
|
231
232
|
"aria-label": C,
|
|
232
|
-
className: ["ds:flex ds:flex-col",
|
|
233
|
-
...
|
|
233
|
+
className: ["ds:flex ds:flex-col", ee].filter(Boolean).join(" "),
|
|
234
|
+
...te,
|
|
234
235
|
children: [
|
|
235
236
|
/* @__PURE__ */ r(
|
|
236
|
-
|
|
237
|
+
Pe,
|
|
237
238
|
{
|
|
238
|
-
title:
|
|
239
|
-
icon: /* @__PURE__ */ r(
|
|
240
|
-
headingId: C ? void 0 :
|
|
239
|
+
title: ie,
|
|
240
|
+
icon: /* @__PURE__ */ r(Ce, { "aria-hidden": "true" }),
|
|
241
|
+
headingId: C ? void 0 : H,
|
|
241
242
|
sticky: !0,
|
|
242
243
|
divider: !0
|
|
243
244
|
}
|
|
@@ -245,33 +246,33 @@ const Se = se(
|
|
|
245
246
|
/* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
246
247
|
l ? /* @__PURE__ */ p("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
247
248
|
f === "rich" ? /* @__PURE__ */ r(
|
|
248
|
-
|
|
249
|
+
ve,
|
|
249
250
|
{
|
|
250
251
|
ref: N,
|
|
251
|
-
ariaLabel:
|
|
252
|
-
placeholder:
|
|
253
|
-
toolbar:
|
|
252
|
+
ariaLabel: K,
|
|
253
|
+
placeholder: q,
|
|
254
|
+
toolbar: L,
|
|
254
255
|
minHeight: "sm",
|
|
255
|
-
redactor:
|
|
256
|
-
imageUploadUrl:
|
|
256
|
+
redactor: W,
|
|
257
|
+
imageUploadUrl: E,
|
|
257
258
|
onChange: ({ html: e }) => w(e),
|
|
258
|
-
onRequestAiDraft:
|
|
259
|
-
aiDraftFormat:
|
|
260
|
-
aiPrivacyNotice:
|
|
261
|
-
onDictate:
|
|
262
|
-
onProofread:
|
|
263
|
-
onAutoFormat:
|
|
259
|
+
onRequestAiDraft: G,
|
|
260
|
+
aiDraftFormat: Y,
|
|
261
|
+
aiPrivacyNotice: F,
|
|
262
|
+
onDictate: J,
|
|
263
|
+
onProofread: O,
|
|
264
|
+
onAutoFormat: Q
|
|
264
265
|
}
|
|
265
266
|
) : /* @__PURE__ */ r(
|
|
266
267
|
be,
|
|
267
268
|
{
|
|
268
269
|
value: d,
|
|
269
270
|
onChange: (e) => w(e.target.value),
|
|
270
|
-
placeholder:
|
|
271
|
+
placeholder: q,
|
|
271
272
|
autoResize: !0,
|
|
272
273
|
minRows: 2,
|
|
273
274
|
maxRows: 6,
|
|
274
|
-
"aria-label":
|
|
275
|
+
"aria-label": K
|
|
275
276
|
}
|
|
276
277
|
),
|
|
277
278
|
/* @__PURE__ */ p(
|
|
@@ -283,35 +284,35 @@ const Se = se(
|
|
|
283
284
|
].join(" "),
|
|
284
285
|
children: [
|
|
285
286
|
I ? /* @__PURE__ */ r(
|
|
286
|
-
|
|
287
|
+
xe,
|
|
287
288
|
{
|
|
288
289
|
size: "sm",
|
|
289
290
|
label: o("notesPanel.clinicalToggle", {
|
|
290
291
|
defaultValue: "Clinical note"
|
|
291
292
|
}),
|
|
292
|
-
checked:
|
|
293
|
-
onCheckedChange: (e) =>
|
|
293
|
+
checked: v,
|
|
294
|
+
onCheckedChange: (e) => j(e === !0),
|
|
294
295
|
disabled: !m,
|
|
295
|
-
disabledReason: m ? void 0 :
|
|
296
|
+
disabledReason: m ? void 0 : D ?? o("notesPanel.clinicalGated", {
|
|
296
297
|
defaultValue: "You do not have permission to write clinical notes."
|
|
297
298
|
})
|
|
298
299
|
}
|
|
299
300
|
) : null,
|
|
300
301
|
/* @__PURE__ */ r(
|
|
301
|
-
|
|
302
|
+
ye,
|
|
302
303
|
{
|
|
303
304
|
type: "button",
|
|
304
305
|
size: "sm",
|
|
305
|
-
onClick:
|
|
306
|
-
disabled: !
|
|
307
|
-
children:
|
|
306
|
+
onClick: ae,
|
|
307
|
+
disabled: !re,
|
|
308
|
+
children: Z ?? o("notesPanel.add", { defaultValue: "Add note" })
|
|
308
309
|
}
|
|
309
310
|
)
|
|
310
311
|
]
|
|
311
312
|
}
|
|
312
313
|
)
|
|
313
314
|
] }) : null,
|
|
314
|
-
|
|
315
|
+
T.length > 0 ? /* @__PURE__ */ r("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: T.map((e, t) => {
|
|
315
316
|
const i = c != null && e.id === c;
|
|
316
317
|
return /* @__PURE__ */ p(
|
|
317
318
|
"li",
|
|
@@ -319,13 +320,13 @@ const Se = se(
|
|
|
319
320
|
ref: i ? R : void 0,
|
|
320
321
|
tabIndex: i ? -1 : void 0,
|
|
321
322
|
"aria-current": i ? "true" : void 0,
|
|
322
|
-
className:
|
|
323
|
+
className: we({ current: i }),
|
|
323
324
|
children: [
|
|
324
325
|
i ? /* @__PURE__ */ r("span", { className: "ds:sr-only", children: o("notesPanel.current", {
|
|
325
326
|
defaultValue: "Current note"
|
|
326
327
|
}) }) : null,
|
|
327
328
|
/* @__PURE__ */ r(
|
|
328
|
-
|
|
329
|
+
he,
|
|
329
330
|
{
|
|
330
331
|
surface: "elevated",
|
|
331
332
|
truncate: !i,
|
|
@@ -333,12 +334,13 @@ const Se = se(
|
|
|
333
334
|
onTogglePin: g && e.id ? () => g(e.id) : void 0,
|
|
334
335
|
onToggleFlag: h && e.id ? () => h(e.id) : void 0
|
|
335
336
|
}
|
|
336
|
-
)
|
|
337
|
+
),
|
|
338
|
+
V ? /* @__PURE__ */ r("div", { className: "ds:flex ds:justify-end ds:gap-[var(--spacing-2xs)] ds:pt-[var(--spacing-2xs)]", children: V(e) }) : null
|
|
337
339
|
]
|
|
338
340
|
},
|
|
339
341
|
e.id ?? t
|
|
340
342
|
);
|
|
341
|
-
}) }) :
|
|
343
|
+
}) }) : $ ?? /* @__PURE__ */ r("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("notesPanel.empty", { defaultValue: "No notes yet." }) })
|
|
342
344
|
] })
|
|
343
345
|
]
|
|
344
346
|
}
|
|
@@ -346,6 +348,6 @@ const Se = se(
|
|
|
346
348
|
}
|
|
347
349
|
);
|
|
348
350
|
export {
|
|
349
|
-
|
|
351
|
+
Me as N
|
|
350
352
|
};
|
|
351
|
-
//# sourceMappingURL=notes-panel-
|
|
353
|
+
//# sourceMappingURL=notes-panel-CymneXtl.js.map
|