@alfadocs/ui-kit 0.2.1 → 0.4.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/{ai-prompt-input-BBiDlEIS.js → ai-prompt-input-DLgY8lrW.js} +2 -2
- package/dist/_chunks/{audio-recorder-B4U1LuiQ.js → audio-recorder-BdBbU-UK.js} +2 -2
- package/dist/_chunks/{chat-input-DOlsB1fm.js → chat-input-Bov-gkwP.js} +40 -38
- package/dist/_chunks/{command-palette-C_vgSgrI.js → command-palette-DkL-aW4O.js} +9 -2
- package/dist/_chunks/{dialog-BPD7wlGE.js → dialog-D5bK95-N.js} +24 -24
- package/dist/_chunks/{dropdown-menu-CpiF6CPz.js → dropdown-menu-dyV7gHh_.js} +2 -1
- package/dist/_chunks/{leo-sidebar-CfEY-xi2.js → leo-sidebar-D1RdE54a.js} +3 -3
- package/dist/_chunks/{patient-shell-BlsEUKWB.js → patient-shell-IhMULVrt.js} +2 -2
- package/dist/_chunks/{select-y6bXV1f1.js → select-BOU_Osnf.js} +2 -1
- package/dist/_chunks/{sheet-4tgMFwj0.js → sheet-B9T3OQmz.js} +23 -23
- package/dist/_chunks/{tabs-DaFA3Muo.js → tabs-BZQy_Rmb.js} +2 -2
- package/dist/_chunks/{theme-toggle-B9zzCnvl.js → theme-toggle-B3UR6ouK.js} +2 -2
- package/dist/_chunks/{toast.agent-BwKXA0km.js → toast.agent-DihA6MON.js} +206 -203
- package/dist/_chunks/{workflow-map-C-nlogPC.js → workflow-map-Bi5liGzo.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +14 -14
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/safe-html/index.js +13 -12
- package/dist/tokens.css +1 -1
- package/package.json +2 -1
|
@@ -6,7 +6,7 @@ import { u as Ae } from "./registry-C9nwlNyL.js";
|
|
|
6
6
|
import { _ as b } from "./index-4xgbg-sn.js";
|
|
7
7
|
import { u as Ce } from "./index-CeY1nNvd.js";
|
|
8
8
|
import { I as ie } from "./icon-button-C4CGcYuz.js";
|
|
9
|
-
import { S as Le } from "./select-
|
|
9
|
+
import { S as Le } from "./select-BOU_Osnf.js";
|
|
10
10
|
import { S as Re } from "./send-CySZIRPJ.js";
|
|
11
11
|
import { X as Ue } from "./x-CCcI3eJp.js";
|
|
12
12
|
const We = {
|
|
@@ -473,4 +473,4 @@ export {
|
|
|
473
473
|
Qe as A,
|
|
474
474
|
We as a
|
|
475
475
|
};
|
|
476
|
-
//# sourceMappingURL=ai-prompt-input-
|
|
476
|
+
//# sourceMappingURL=ai-prompt-input-DLgY8lrW.js.map
|
|
@@ -4,7 +4,7 @@ import { c as ce } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as oe } from "react-i18next";
|
|
5
5
|
import { B as G } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { I as N } from "./icon-button-C4CGcYuz.js";
|
|
7
|
-
import { S as ue } from "./select-
|
|
7
|
+
import { S as ue } from "./select-BOU_Osnf.js";
|
|
8
8
|
import { A as pe } from "./audio-visualiser-ByDEFLNm.js";
|
|
9
9
|
import { A as F } from "./alert-B1sj8Ss0.js";
|
|
10
10
|
import { u as le } from "./registry-C9nwlNyL.js";
|
|
@@ -454,4 +454,4 @@ export {
|
|
|
454
454
|
Ne as A,
|
|
455
455
|
Re as a
|
|
456
456
|
};
|
|
457
|
-
//# sourceMappingURL=audio-recorder-
|
|
457
|
+
//# sourceMappingURL=audio-recorder-BdBbU-UK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
1
|
+
import { jsxs as u, jsx as r, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ye, useId as be, useRef as b, useCallback as W, useState as xe, useLayoutEffect as Ie, useImperativeHandle as ke, useMemo as Ce } from "react";
|
|
3
3
|
import { c as we } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Ne } from "react-i18next";
|
|
@@ -44,8 +44,8 @@ const Me = [
|
|
|
44
44
|
argsType: "{ value: string }",
|
|
45
45
|
descriptionKey: "ui.agent.chatInput.actions.setValue",
|
|
46
46
|
description: "Replace the composer text.",
|
|
47
|
-
invoke: (t,
|
|
48
|
-
t.setValue(
|
|
47
|
+
invoke: (t, c) => {
|
|
48
|
+
t.setValue(c.value);
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
clear: {
|
|
@@ -109,10 +109,10 @@ const Me = [
|
|
|
109
109
|
defaultVariants: { size: "md" }
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
function Se(t,
|
|
112
|
+
function Se(t, c) {
|
|
113
113
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
114
114
|
try {
|
|
115
|
-
const p = new Intl.Segmenter(
|
|
115
|
+
const p = new Intl.Segmenter(c, { granularity: "grapheme" });
|
|
116
116
|
let s = 0;
|
|
117
117
|
for (const M of p.segment(t)) s += 1;
|
|
118
118
|
return s;
|
|
@@ -123,7 +123,7 @@ function Se(t, o) {
|
|
|
123
123
|
const je = ye(
|
|
124
124
|
({
|
|
125
125
|
size: t = "md",
|
|
126
|
-
value:
|
|
126
|
+
value: c,
|
|
127
127
|
defaultValue: p,
|
|
128
128
|
maxLength: s,
|
|
129
129
|
submitOnEnter: M = !1,
|
|
@@ -144,35 +144,35 @@ const je = ye(
|
|
|
144
144
|
id: z,
|
|
145
145
|
...J
|
|
146
146
|
}, L) => {
|
|
147
|
-
const { t:
|
|
147
|
+
const { t: i, i18n: O } = Ne(), Q = be(), h = b(!1), K = b(null), H = b(null), X = W((e) => {
|
|
148
148
|
H.current = e;
|
|
149
|
-
}, []), n =
|
|
149
|
+
}, []), n = c !== void 0, [Z, g] = xe(
|
|
150
150
|
String(p ?? "")
|
|
151
|
-
),
|
|
151
|
+
), a = n ? String(c) : Z, V = Se(a, O.language), v = typeof s == "number" && s > 0, D = v ? Math.max(0, s - V) : 0, ee = v && V > s * 0.9, l = v && V >= s, S = W(() => {
|
|
152
152
|
const e = H.current;
|
|
153
153
|
if (!e) return;
|
|
154
|
-
const
|
|
154
|
+
const o = window.getComputedStyle(e), y = parseFloat(o.lineHeight) || 24, ue = parseFloat(o.paddingTop) || 0, pe = parseFloat(o.paddingBottom) || 0, me = parseFloat(o.borderTopWidth) || 0, fe = parseFloat(o.borderBottomWidth) || 0, _ = ue + pe + me + fe, he = y * x + _, $ = y * T + _;
|
|
155
155
|
e.style.height = "auto";
|
|
156
156
|
const ge = Math.max(he, Math.min(e.scrollHeight, $));
|
|
157
157
|
e.style.height = `${ge}px`, e.style.overflowY = e.scrollHeight > $ ? "auto" : "hidden";
|
|
158
158
|
}, [x, T]);
|
|
159
159
|
Ie(() => {
|
|
160
160
|
S();
|
|
161
|
-
}, [S,
|
|
161
|
+
}, [S, a]);
|
|
162
162
|
const te = (e) => {
|
|
163
163
|
n || g(e.target.value), !h.current && (k == null || k(e));
|
|
164
164
|
}, se = (e) => {
|
|
165
165
|
h.current = !0, w == null || w(e);
|
|
166
|
-
},
|
|
166
|
+
}, ae = (e) => {
|
|
167
167
|
h.current = !1, N == null || N(e);
|
|
168
|
-
},
|
|
169
|
-
!
|
|
168
|
+
}, re = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || h.current, E = () => {
|
|
169
|
+
!a.trim() || f || l || (I == null || I(a), n || g(""));
|
|
170
170
|
}, j = b(null);
|
|
171
171
|
ke(L, () => j.current, []);
|
|
172
172
|
const ne = Ce(
|
|
173
173
|
() => ({
|
|
174
|
-
getValue: () =>
|
|
175
|
-
isEmpty: () => !
|
|
174
|
+
getValue: () => a,
|
|
175
|
+
isEmpty: () => !a.trim(),
|
|
176
176
|
setValue: (e) => {
|
|
177
177
|
n || g(e);
|
|
178
178
|
},
|
|
@@ -191,20 +191,20 @@ const je = ye(
|
|
|
191
191
|
// via React's render cycle — depend on currentValue + isControlled so
|
|
192
192
|
// the handle picks up new values across renders.
|
|
193
193
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
194
|
-
[
|
|
194
|
+
[a, n]
|
|
195
195
|
);
|
|
196
196
|
ze(Fe, ne, z);
|
|
197
197
|
const ie = (e) => {
|
|
198
|
-
if (C == null || C(e), !e.defaultPrevented && !
|
|
199
|
-
const
|
|
200
|
-
(
|
|
198
|
+
if (C == null || C(e), !e.defaultPrevented && !re(e) && e.key === "Enter") {
|
|
199
|
+
const o = e.metaKey || e.ctrlKey, y = M && !e.shiftKey;
|
|
200
|
+
(o || y) && (e.preventDefault(), E());
|
|
201
201
|
}
|
|
202
202
|
}, oe = () => {
|
|
203
203
|
var e;
|
|
204
204
|
(e = K.current) == null || e.click();
|
|
205
205
|
}, ce = (e) => {
|
|
206
206
|
e.target.files && e.target.files.length > 0 && (m == null || m(e.target.files)), e.target.value = "";
|
|
207
|
-
}, d = z ?? Q, B = `${d}-label`, R = v ? `${d}-counter` : void 0, P = `${d}-hint`, le = A ??
|
|
207
|
+
}, d = z ?? Q, B = `${d}-label`, R = v ? `${d}-counter` : void 0, P = `${d}-hint`, le = A ?? i("chat.input.placeholder"), de = F ?? i("chat.prompt");
|
|
208
208
|
return /* @__PURE__ */ u(
|
|
209
209
|
"div",
|
|
210
210
|
{
|
|
@@ -213,7 +213,7 @@ const je = ye(
|
|
|
213
213
|
"data-component-id": z,
|
|
214
214
|
className: Ke({ size: t, className: G }),
|
|
215
215
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ r(
|
|
217
217
|
"label",
|
|
218
218
|
{
|
|
219
219
|
id: B,
|
|
@@ -222,12 +222,12 @@ const je = ye(
|
|
|
222
222
|
children: de
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ r(
|
|
226
226
|
"textarea",
|
|
227
227
|
{
|
|
228
228
|
ref: X,
|
|
229
229
|
id: d,
|
|
230
|
-
value: n ?
|
|
230
|
+
value: n ? a : void 0,
|
|
231
231
|
defaultValue: n ? void 0 : p,
|
|
232
232
|
disabled: f,
|
|
233
233
|
rows: x,
|
|
@@ -239,7 +239,7 @@ const je = ye(
|
|
|
239
239
|
onChange: te,
|
|
240
240
|
onKeyDown: ie,
|
|
241
241
|
onCompositionStart: se,
|
|
242
|
-
onCompositionEnd:
|
|
242
|
+
onCompositionEnd: ae,
|
|
243
243
|
className: [
|
|
244
244
|
"ds:w-full ds:resize-none ds:bg-transparent",
|
|
245
245
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
|
|
@@ -260,7 +260,7 @@ const je = ye(
|
|
|
260
260
|
),
|
|
261
261
|
/* @__PURE__ */ u("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
262
262
|
m ? /* @__PURE__ */ u(ve, { children: [
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ r(
|
|
264
264
|
"input",
|
|
265
265
|
{
|
|
266
266
|
ref: K,
|
|
@@ -268,14 +268,16 @@ const je = ye(
|
|
|
268
268
|
className: "ds:sr-only",
|
|
269
269
|
multiple: !0,
|
|
270
270
|
accept: Y,
|
|
271
|
-
onChange: ce
|
|
271
|
+
onChange: ce,
|
|
272
|
+
"aria-label": i("chat.input.attach"),
|
|
273
|
+
tabIndex: -1
|
|
272
274
|
}
|
|
273
275
|
),
|
|
274
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ r(
|
|
275
277
|
U,
|
|
276
278
|
{
|
|
277
|
-
icon: /* @__PURE__ */
|
|
278
|
-
"aria-label":
|
|
279
|
+
icon: /* @__PURE__ */ r(Te, {}),
|
|
280
|
+
"aria-label": i("chat.input.attach"),
|
|
279
281
|
intent: "ghost",
|
|
280
282
|
size: "sm",
|
|
281
283
|
onClick: oe,
|
|
@@ -299,21 +301,21 @@ const je = ye(
|
|
|
299
301
|
l ? (
|
|
300
302
|
// Icon pairs with --destructive colour so the at-limit
|
|
301
303
|
// state is not conveyed by hue alone (WCAG 1.4.1).
|
|
302
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ r(Ve, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
303
305
|
) : null,
|
|
304
|
-
|
|
306
|
+
i("chat.input.remaining", { count: D })
|
|
305
307
|
]
|
|
306
308
|
}
|
|
307
309
|
) : null,
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ r("span", { id: P, className: "ds:sr-only", children: i("chat.input.sendHint") }),
|
|
311
|
+
/* @__PURE__ */ r(
|
|
310
312
|
U,
|
|
311
313
|
{
|
|
312
|
-
icon: /* @__PURE__ */
|
|
313
|
-
"aria-label":
|
|
314
|
+
icon: /* @__PURE__ */ r(Ee, {}),
|
|
315
|
+
"aria-label": i("chat.send"),
|
|
314
316
|
intent: "primary",
|
|
315
317
|
size: "sm",
|
|
316
|
-
disabled: f || !
|
|
318
|
+
disabled: f || !a.trim() || l,
|
|
317
319
|
onClick: E,
|
|
318
320
|
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
319
321
|
}
|
|
@@ -330,4 +332,4 @@ export {
|
|
|
330
332
|
je as C,
|
|
331
333
|
Fe as c
|
|
332
334
|
};
|
|
333
|
-
//# sourceMappingURL=chat-input-
|
|
335
|
+
//# sourceMappingURL=chat-input-Bov-gkwP.js.map
|
|
@@ -343,10 +343,17 @@ function ue({
|
|
|
343
343
|
x([]), L([]);
|
|
344
344
|
}, []);
|
|
345
345
|
return /* @__PURE__ */ s(h.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ m(h.Portal, { children: [
|
|
346
|
-
/* @__PURE__ */ s(
|
|
346
|
+
/* @__PURE__ */ s(
|
|
347
|
+
h.Overlay,
|
|
348
|
+
{
|
|
349
|
+
"data-component": "command-palette-overlay",
|
|
350
|
+
className: se
|
|
351
|
+
}
|
|
352
|
+
),
|
|
347
353
|
/* @__PURE__ */ m(
|
|
348
354
|
h.Content,
|
|
349
355
|
{
|
|
356
|
+
"data-component": "command-palette-dialog",
|
|
350
357
|
className: ne,
|
|
351
358
|
"aria-label": c("navigation.cmdk.title", "Command palette"),
|
|
352
359
|
children: [
|
|
@@ -438,4 +445,4 @@ export {
|
|
|
438
445
|
ae as k,
|
|
439
446
|
me as u
|
|
440
447
|
};
|
|
441
|
-
//# sourceMappingURL=command-palette-
|
|
448
|
+
//# sourceMappingURL=command-palette-DkL-aW4O.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { useState as k, useRef as z, useEffect as E, useCallback as I, useMemo as O, forwardRef as d, useContext as B, createContext as S } from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-dialog";
|
|
4
4
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
@@ -73,17 +73,17 @@ const $ = {
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
defaultVariants: { size: "md" }
|
|
76
|
-
}),
|
|
76
|
+
}), D = S(void 0), v = ({
|
|
77
77
|
children: o,
|
|
78
78
|
id: e,
|
|
79
|
-
open:
|
|
79
|
+
open: a,
|
|
80
80
|
defaultOpen: r,
|
|
81
81
|
onOpenChange: i,
|
|
82
82
|
...p
|
|
83
83
|
}) => {
|
|
84
|
-
const l =
|
|
84
|
+
const l = a !== void 0, [m, g] = k(
|
|
85
85
|
r ?? !1
|
|
86
|
-
), n = l ? !!
|
|
86
|
+
), n = l ? !!a : m, f = z(n);
|
|
87
87
|
E(() => {
|
|
88
88
|
f.current = n;
|
|
89
89
|
}, [n]);
|
|
@@ -100,26 +100,26 @@ const $ = {
|
|
|
100
100
|
}),
|
|
101
101
|
[c]
|
|
102
102
|
);
|
|
103
|
-
return L($, j, e), /* @__PURE__ */
|
|
103
|
+
return L($, j, e), /* @__PURE__ */ s(D.Provider, { value: e, children: /* @__PURE__ */ s(t.Root, { open: n, onOpenChange: c, ...p, children: o }) });
|
|
104
104
|
};
|
|
105
105
|
v.displayName = "Dialog.Root";
|
|
106
|
-
const h = d(({ children: o, ...e },
|
|
106
|
+
const h = d(({ children: o, ...e }, a) => /* @__PURE__ */ s(t.Trigger, { ref: a, ...e, children: o }));
|
|
107
107
|
h.displayName = "Dialog.Trigger";
|
|
108
|
-
const b = d(({ children: o, ...e },
|
|
108
|
+
const b = d(({ children: o, ...e }, a) => /* @__PURE__ */ s(t.Close, { ref: a, ...e, children: o }));
|
|
109
109
|
b.displayName = "Dialog.Close";
|
|
110
110
|
const N = d(
|
|
111
111
|
({
|
|
112
112
|
size: o = "md",
|
|
113
113
|
variant: e = "default",
|
|
114
|
-
hideCloseButton:
|
|
114
|
+
hideCloseButton: a = !0,
|
|
115
115
|
className: r,
|
|
116
116
|
children: i,
|
|
117
117
|
...p
|
|
118
118
|
}, l) => {
|
|
119
|
-
const { t: m } = H(), g = B(
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
119
|
+
const { t: m } = H(), g = B(D), n = e === "alert" ? { role: "alertdialog" } : {};
|
|
120
|
+
return /* @__PURE__ */ y(t.Portal, { children: [
|
|
121
|
+
/* @__PURE__ */ s(t.Overlay, { "data-component": "dialog-overlay", className: P }),
|
|
122
|
+
/* @__PURE__ */ y(
|
|
123
123
|
t.Content,
|
|
124
124
|
{
|
|
125
125
|
ref: l,
|
|
@@ -130,10 +130,10 @@ const N = d(
|
|
|
130
130
|
...p,
|
|
131
131
|
children: [
|
|
132
132
|
i,
|
|
133
|
-
!
|
|
133
|
+
!a && /* @__PURE__ */ s("div", { className: "ds:absolute ds:end-[var(--spacing-md)] ds:top-[var(--spacing-md)]", children: /* @__PURE__ */ s(t.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
134
134
|
F,
|
|
135
135
|
{
|
|
136
|
-
icon: /* @__PURE__ */
|
|
136
|
+
icon: /* @__PURE__ */ s(V, {}),
|
|
137
137
|
intent: "ghost",
|
|
138
138
|
size: "sm",
|
|
139
139
|
"aria-label": m("ui.common.close", "Close")
|
|
@@ -147,10 +147,10 @@ const N = d(
|
|
|
147
147
|
);
|
|
148
148
|
N.displayName = "Dialog.Content";
|
|
149
149
|
const w = d(
|
|
150
|
-
({ className: o, ...e },
|
|
150
|
+
({ className: o, ...e }, a) => /* @__PURE__ */ s(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
-
ref:
|
|
153
|
+
ref: a,
|
|
154
154
|
className: [
|
|
155
155
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:pe-[var(--spacing-xl)]",
|
|
156
156
|
o
|
|
@@ -160,26 +160,26 @@ const w = d(
|
|
|
160
160
|
)
|
|
161
161
|
);
|
|
162
162
|
w.displayName = "Dialog.Header";
|
|
163
|
-
const C = d(({ className: o, ...e },
|
|
163
|
+
const C = d(({ className: o, ...e }, a) => /* @__PURE__ */ s(
|
|
164
164
|
t.Title,
|
|
165
165
|
{
|
|
166
|
-
ref:
|
|
166
|
+
ref: a,
|
|
167
167
|
className: ["type-title-card ds:break-words", o].filter(Boolean).join(" "),
|
|
168
168
|
...e
|
|
169
169
|
}
|
|
170
170
|
));
|
|
171
171
|
C.displayName = "Dialog.Title";
|
|
172
|
-
const R = d(({ className: o, ...e },
|
|
172
|
+
const R = d(({ className: o, ...e }, a) => /* @__PURE__ */ s(
|
|
173
173
|
t.Description,
|
|
174
174
|
{
|
|
175
|
-
ref:
|
|
175
|
+
ref: a,
|
|
176
176
|
className: ["type-body-sm ds:text-[var(--muted-foreground)]", o].filter(Boolean).join(" "),
|
|
177
177
|
...e
|
|
178
178
|
}
|
|
179
179
|
));
|
|
180
180
|
R.displayName = "Dialog.Description";
|
|
181
181
|
const T = d(
|
|
182
|
-
({ className: o, divider: e = !1, ...
|
|
182
|
+
({ className: o, divider: e = !1, ...a }, r) => /* @__PURE__ */ s(
|
|
183
183
|
"div",
|
|
184
184
|
{
|
|
185
185
|
ref: r,
|
|
@@ -189,7 +189,7 @@ const T = d(
|
|
|
189
189
|
e && "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
|
|
190
190
|
o
|
|
191
191
|
].filter(Boolean).join(" "),
|
|
192
|
-
...
|
|
192
|
+
...a
|
|
193
193
|
}
|
|
194
194
|
)
|
|
195
195
|
);
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
U as D,
|
|
209
209
|
$ as d
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=dialog-
|
|
211
|
+
//# sourceMappingURL=dialog-D5bK95-N.js.map
|
|
@@ -271,6 +271,7 @@ const T = r(({ className: s, ...a }, o) => /* @__PURE__ */ e(t.Portal, { childre
|
|
|
271
271
|
{
|
|
272
272
|
ref: o,
|
|
273
273
|
sideOffset: 8,
|
|
274
|
+
"data-component": "dropdown-menu-sub-content",
|
|
274
275
|
className: N({ className: s }),
|
|
275
276
|
...a
|
|
276
277
|
}
|
|
@@ -297,4 +298,4 @@ export {
|
|
|
297
298
|
le as D,
|
|
298
299
|
U as d
|
|
299
300
|
};
|
|
300
|
-
//# sourceMappingURL=dropdown-menu-
|
|
301
|
+
//# sourceMappingURL=dropdown-menu-dyV7gHh_.js.map
|
|
@@ -4,13 +4,13 @@ import * as ee from "@radix-ui/react-dialog";
|
|
|
4
4
|
import { useTranslation as y } from "react-i18next";
|
|
5
5
|
import { F as se } from "./floating-action-button-C8OYj8mE.js";
|
|
6
6
|
import { I as B } from "./icon-button-C4CGcYuz.js";
|
|
7
|
-
import { S as E } from "./sheet-
|
|
7
|
+
import { S as E } from "./sheet-B9T3OQmz.js";
|
|
8
8
|
import { X as de } from "./x-CCcI3eJp.js";
|
|
9
9
|
import { A as L } from "./avatar-Dcr6XuDQ.js";
|
|
10
10
|
import { B as D } from "./button-DD_0Xdmr.js";
|
|
11
11
|
import { C as ae } from "./chat-container-ClzsWXp2.js";
|
|
12
12
|
import { C as re } from "./chat-message-DoAhgUTj.js";
|
|
13
|
-
import { C as le } from "./chat-input-
|
|
13
|
+
import { C as le } from "./chat-input-Bov-gkwP.js";
|
|
14
14
|
import { S as ie } from "./streaming-text-BgjCTVOw.js";
|
|
15
15
|
import { a as q, S as O } from "./suggestion-chip-C4Jz0LrM.js";
|
|
16
16
|
import { T as oe } from "./typing-indicator-BZ5jXZPn.js";
|
|
@@ -756,4 +756,4 @@ export {
|
|
|
756
756
|
we as b,
|
|
757
757
|
Ce as c
|
|
758
758
|
};
|
|
759
|
-
//# sourceMappingURL=leo-sidebar-
|
|
759
|
+
//# sourceMappingURL=leo-sidebar-D1RdE54a.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as k, useState as w } from "react";
|
|
|
3
3
|
import { useTranslation as c } from "react-i18next";
|
|
4
4
|
import { A as y } from "./app-frame-CDJOgPXe.js";
|
|
5
5
|
import { I } from "./icon-button-C4CGcYuz.js";
|
|
6
|
-
import { D as n } from "./dropdown-menu-
|
|
6
|
+
import { D as n } from "./dropdown-menu-dyV7gHh_.js";
|
|
7
7
|
import { H as L, g as A, f as H, e as x, a as C, c as M, d as B } from "./header-D0ULgQl3.js";
|
|
8
8
|
import { L as N } from "./logo-_Z-jLq80.js";
|
|
9
9
|
import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-Bx3wCDyy.js";
|
|
@@ -185,4 +185,4 @@ V.displayName = "PatientShell";
|
|
|
185
185
|
export {
|
|
186
186
|
V as P
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=patient-shell-
|
|
188
|
+
//# sourceMappingURL=patient-shell-IhMULVrt.js.map
|
|
@@ -189,6 +189,7 @@ const I = a(
|
|
|
189
189
|
ref: g,
|
|
190
190
|
position: n,
|
|
191
191
|
sideOffset: r,
|
|
192
|
+
"data-component": "select-content",
|
|
192
193
|
className: we({ className: e }),
|
|
193
194
|
...c,
|
|
194
195
|
children: [
|
|
@@ -408,4 +409,4 @@ export {
|
|
|
408
409
|
H as i,
|
|
409
410
|
j
|
|
410
411
|
};
|
|
411
|
-
//# sourceMappingURL=select-
|
|
412
|
+
//# sourceMappingURL=select-BOU_Osnf.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
2
|
-
import { useState as R, useRef as B, useEffect as T, useCallback as I, useMemo as D, forwardRef as
|
|
2
|
+
import { useState as R, useRef as B, useEffect as T, useCallback as I, useMemo as D, forwardRef as n, useContext as O, createContext as A } from "react";
|
|
3
3
|
import * as d from "@radix-ui/react-dialog";
|
|
4
4
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as E } from "react-i18next";
|
|
@@ -111,21 +111,21 @@ const b = A(void 0), m = ({
|
|
|
111
111
|
children: e,
|
|
112
112
|
id: t,
|
|
113
113
|
open: s,
|
|
114
|
-
defaultOpen:
|
|
114
|
+
defaultOpen: r,
|
|
115
115
|
onOpenChange: a,
|
|
116
116
|
...p
|
|
117
117
|
}) => {
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
), l =
|
|
118
|
+
const i = s !== void 0, [N, C] = R(
|
|
119
|
+
r ?? !1
|
|
120
|
+
), l = i ? !!s : N, f = B(l);
|
|
121
121
|
T(() => {
|
|
122
122
|
f.current = l;
|
|
123
123
|
}, [l]);
|
|
124
124
|
const c = I(
|
|
125
125
|
(v) => {
|
|
126
|
-
|
|
126
|
+
i || C(v), a == null || a(v);
|
|
127
127
|
},
|
|
128
|
-
[
|
|
128
|
+
[i, a]
|
|
129
129
|
), w = D(
|
|
130
130
|
() => ({
|
|
131
131
|
getIsOpen: () => f.current,
|
|
@@ -137,15 +137,15 @@ const b = A(void 0), m = ({
|
|
|
137
137
|
return L(P, w, t), /* @__PURE__ */ o(b.Provider, { value: t, children: /* @__PURE__ */ o(d.Root, { open: l, onOpenChange: c, ...p, children: e }) });
|
|
138
138
|
};
|
|
139
139
|
m.displayName = "Sheet.Root";
|
|
140
|
-
const g =
|
|
140
|
+
const g = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Trigger, { ref: s, ...t, children: e }));
|
|
141
141
|
g.displayName = "Sheet.Trigger";
|
|
142
|
-
const u =
|
|
142
|
+
const u = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Close, { ref: s, ...t, children: e }));
|
|
143
143
|
u.displayName = "Sheet.Close";
|
|
144
|
-
const y =
|
|
145
|
-
({ side: e = "end", size: t = "md", className: s, children:
|
|
146
|
-
const
|
|
144
|
+
const y = n(
|
|
145
|
+
({ side: e = "end", size: t = "md", className: s, children: r, ...a }, p) => {
|
|
146
|
+
const i = O(b);
|
|
147
147
|
return /* @__PURE__ */ h(d.Portal, { children: [
|
|
148
|
-
/* @__PURE__ */ o(d.Overlay, { className: M }),
|
|
148
|
+
/* @__PURE__ */ o(d.Overlay, { "data-component": "sheet-overlay", className: M }),
|
|
149
149
|
/* @__PURE__ */ o(
|
|
150
150
|
d.Content,
|
|
151
151
|
{
|
|
@@ -156,22 +156,22 @@ const y = i(
|
|
|
156
156
|
s
|
|
157
157
|
].filter(Boolean).join(" "),
|
|
158
158
|
"data-component": "sheet",
|
|
159
|
-
"data-component-id":
|
|
159
|
+
"data-component-id": i,
|
|
160
160
|
...a,
|
|
161
|
-
children:
|
|
161
|
+
children: r
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
] });
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
y.displayName = "Sheet.Content";
|
|
168
|
-
const x =
|
|
169
|
-
({ className: e, children: t, ...s },
|
|
168
|
+
const x = n(
|
|
169
|
+
({ className: e, children: t, ...s }, r) => {
|
|
170
170
|
const { t: a } = E();
|
|
171
171
|
return /* @__PURE__ */ h(
|
|
172
172
|
"div",
|
|
173
173
|
{
|
|
174
|
-
ref:
|
|
174
|
+
ref: r,
|
|
175
175
|
className: [
|
|
176
176
|
"ds:sticky ds:top-0 ds:z-10 ds:flex ds:items-center ds:justify-between",
|
|
177
177
|
"ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)] ds:py-[var(--spacing-md)]",
|
|
@@ -196,7 +196,7 @@ const x = i(
|
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
198
|
x.displayName = "Sheet.Header";
|
|
199
|
-
const S =
|
|
199
|
+
const S = n(
|
|
200
200
|
({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
201
201
|
"div",
|
|
202
202
|
{
|
|
@@ -212,7 +212,7 @@ const S = i(
|
|
|
212
212
|
)
|
|
213
213
|
);
|
|
214
214
|
S.displayName = "Sheet.Body";
|
|
215
|
-
const j =
|
|
215
|
+
const j = n(
|
|
216
216
|
({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
217
217
|
"div",
|
|
218
218
|
{
|
|
@@ -229,7 +229,7 @@ const j = i(
|
|
|
229
229
|
)
|
|
230
230
|
);
|
|
231
231
|
j.displayName = "Sheet.Footer";
|
|
232
|
-
const k =
|
|
232
|
+
const k = n(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
233
233
|
d.Title,
|
|
234
234
|
{
|
|
235
235
|
ref: s,
|
|
@@ -238,7 +238,7 @@ const k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
|
238
238
|
}
|
|
239
239
|
));
|
|
240
240
|
k.displayName = "Sheet.Title";
|
|
241
|
-
const z =
|
|
241
|
+
const z = n(({ className: e, ...t }, s) => /* @__PURE__ */ o(
|
|
242
242
|
d.Description,
|
|
243
243
|
{
|
|
244
244
|
ref: s,
|
|
@@ -262,4 +262,4 @@ export {
|
|
|
262
262
|
W as S,
|
|
263
263
|
P as s
|
|
264
264
|
};
|
|
265
|
-
//# sourceMappingURL=sheet-
|
|
265
|
+
//# sourceMappingURL=sheet-B9T3OQmz.js.map
|
|
@@ -6,7 +6,7 @@ import { a as N, c as q } from "./index-D2ZczOXr.js";
|
|
|
6
6
|
import { useTranslation as Z } from "react-i18next";
|
|
7
7
|
import { u as K } from "./use-direction-D6rvvG9G.js";
|
|
8
8
|
import { c as D } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
-
import { S as ee } from "./select-
|
|
9
|
+
import { S as ee } from "./select-BOU_Osnf.js";
|
|
10
10
|
import { X as te } from "./x-CCcI3eJp.js";
|
|
11
11
|
import { u as se } from "./registry-C9nwlNyL.js";
|
|
12
12
|
import { C as ae } from "./chevron-down-BX_NP2Yh.js";
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
F as c,
|
|
397
397
|
re as t
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=tabs-
|
|
399
|
+
//# sourceMappingURL=tabs-BZQy_Rmb.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as g } from "react-i18next";
|
|
|
5
5
|
import { I as b } from "./icon-button-C4CGcYuz.js";
|
|
6
6
|
import { I as z } from "./icon-button-group-DeV3FpNY.js";
|
|
7
7
|
import { S as j } from "./switch-C0psfIQF.js";
|
|
8
|
-
import { D as o } from "./dropdown-menu-
|
|
8
|
+
import { D as o } from "./dropdown-menu-dyV7gHh_.js";
|
|
9
9
|
import { u as K } from "./use-theme-B1cwAXJR.js";
|
|
10
10
|
import { u as L } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { c as C } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -393,4 +393,4 @@ export {
|
|
|
393
393
|
J as T,
|
|
394
394
|
B as t
|
|
395
395
|
};
|
|
396
|
-
//# sourceMappingURL=theme-toggle-
|
|
396
|
+
//# sourceMappingURL=theme-toggle-B3UR6ouK.js.map
|