laif-ds 0.1.79 → 0.1.81
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/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.js +3 -3
- package/dist/components/ui/alert.js +3 -3
- package/dist/components/ui/app-multiple-select-dropdown.js +75 -74
- package/dist/components/ui/async-select.js +18 -18
- package/dist/components/ui/card.js +26 -26
- package/dist/components/ui/chat-message.js +6 -6
- package/dist/components/ui/chat.js +44 -44
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.js +9 -9
- package/dist/components/ui/drawer.js +33 -33
- package/dist/components/ui/dropdown-menu.js +20 -20
- package/dist/components/ui/file-preview.js +51 -51
- package/dist/components/ui/gantt/components/Controls/Controls.js +60 -51
- package/dist/components/ui/hover-card.js +5 -5
- package/dist/components/ui/input-selector.js +19 -19
- package/dist/components/ui/interrupt-prompt.js +6 -6
- package/dist/components/ui/markdown-renderer.js +16 -16
- package/dist/components/ui/menubar.js +26 -26
- package/dist/components/ui/message-input.js +9 -9
- package/dist/components/ui/multiple-selector.js +20 -20
- package/dist/components/ui/navigation-menu.js +5 -5
- package/dist/components/ui/popover.js +4 -4
- package/dist/components/ui/prompt-suggestions.js +11 -11
- package/dist/components/ui/resizable.js +2 -2
- package/dist/components/ui/sheet.js +16 -16
- package/dist/components/ui/sidebar.js +4 -4
- package/dist/components/ui/table-skeleton.js +36 -36
- package/dist/components/ui/table.js +25 -25
- package/dist/components/ui/toggle-group.js +15 -15
- package/dist/components/ui/weekly-calendar/appointment-card.js +24 -24
- package/dist/index.d.ts +2 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as u, Menu as c, Trigger as l, Content as m, Item as
|
|
4
|
-
import { cn as
|
|
3
|
+
import { Root as u, Menu as c, Trigger as l, Content as m, Item as b, Separator as f, Label as p, CheckboxItem as g, ItemIndicator as d, RadioItem as x, RadioGroup as v, Portal as h, SubContent as M, SubTrigger as z, Group as N, Sub as y } from "../../node_modules/@radix-ui/react-menubar/dist/index.js";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
import I from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
6
|
import S from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
7
7
|
import C from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
@@ -13,8 +13,8 @@ function L({
|
|
|
13
13
|
u,
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "menubar",
|
|
16
|
-
className:
|
|
17
|
-
"bg-d-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
16
|
+
className: r(
|
|
17
|
+
"bg-d-background border-d-border flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
|
|
18
18
|
e
|
|
19
19
|
),
|
|
20
20
|
...t
|
|
@@ -49,7 +49,7 @@ function B({
|
|
|
49
49
|
l,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "menubar-trigger",
|
|
52
|
-
className:
|
|
52
|
+
className: r(
|
|
53
53
|
"focus:bg-d-accent focus:text-d-accent-foreground data-[state=open]:bg-d-accent data-[state=open]:text-d-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
|
|
54
54
|
e
|
|
55
55
|
),
|
|
@@ -61,7 +61,7 @@ function D({
|
|
|
61
61
|
className: e,
|
|
62
62
|
align: t = "start",
|
|
63
63
|
alignOffset: n = -4,
|
|
64
|
-
sideOffset:
|
|
64
|
+
sideOffset: o = 8,
|
|
65
65
|
...i
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
@@ -70,9 +70,9 @@ function D({
|
|
|
70
70
|
"data-slot": "menubar-content",
|
|
71
71
|
align: t,
|
|
72
72
|
alignOffset: n,
|
|
73
|
-
sideOffset:
|
|
74
|
-
className:
|
|
75
|
-
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
73
|
+
sideOffset: o,
|
|
74
|
+
className: r(
|
|
75
|
+
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
76
76
|
e
|
|
77
77
|
),
|
|
78
78
|
...i
|
|
@@ -83,19 +83,19 @@ function E({
|
|
|
83
83
|
className: e,
|
|
84
84
|
inset: t,
|
|
85
85
|
variant: n = "default",
|
|
86
|
-
...
|
|
86
|
+
...o
|
|
87
87
|
}) {
|
|
88
88
|
return /* @__PURE__ */ a(
|
|
89
|
-
|
|
89
|
+
b,
|
|
90
90
|
{
|
|
91
91
|
"data-slot": "menubar-item",
|
|
92
92
|
"data-inset": t,
|
|
93
93
|
"data-variant": n,
|
|
94
|
-
className:
|
|
94
|
+
className: r(
|
|
95
95
|
"focus:bg-d-accent focus:text-d-accent-foreground data-[variant=destructive]:text-d-destructive data-[variant=destructive]:focus:bg-d-destructive/10 dark:data-[variant=destructive]:focus:bg-d-destructive/20 data-[variant=destructive]:focus:text-d-destructive data-[variant=destructive]:*:[svg]:!text-d-destructive [&_svg:not([class*='text-'])]:text-d-secondary-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
96
96
|
e
|
|
97
97
|
),
|
|
98
|
-
...
|
|
98
|
+
...o
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
101
|
}
|
|
@@ -103,18 +103,18 @@ function F({
|
|
|
103
103
|
className: e,
|
|
104
104
|
children: t,
|
|
105
105
|
checked: n,
|
|
106
|
-
...
|
|
106
|
+
...o
|
|
107
107
|
}) {
|
|
108
108
|
return /* @__PURE__ */ s(
|
|
109
109
|
g,
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "menubar-checkbox-item",
|
|
112
|
-
className:
|
|
112
|
+
className: r(
|
|
113
113
|
"focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
114
114
|
e
|
|
115
115
|
),
|
|
116
116
|
checked: n,
|
|
117
|
-
...
|
|
117
|
+
...o,
|
|
118
118
|
children: [
|
|
119
119
|
/* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(I, { className: "size-4" }) }) }),
|
|
120
120
|
t
|
|
@@ -131,7 +131,7 @@ function H({
|
|
|
131
131
|
x,
|
|
132
132
|
{
|
|
133
133
|
"data-slot": "menubar-radio-item",
|
|
134
|
-
className:
|
|
134
|
+
className: r(
|
|
135
135
|
"focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
136
136
|
e
|
|
137
137
|
),
|
|
@@ -153,7 +153,7 @@ function J({
|
|
|
153
153
|
{
|
|
154
154
|
"data-slot": "menubar-label",
|
|
155
155
|
"data-inset": t,
|
|
156
|
-
className:
|
|
156
|
+
className: r(
|
|
157
157
|
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
158
158
|
e
|
|
159
159
|
),
|
|
@@ -166,10 +166,10 @@ function K({
|
|
|
166
166
|
...t
|
|
167
167
|
}) {
|
|
168
168
|
return /* @__PURE__ */ a(
|
|
169
|
-
|
|
169
|
+
f,
|
|
170
170
|
{
|
|
171
171
|
"data-slot": "menubar-separator",
|
|
172
|
-
className:
|
|
172
|
+
className: r("bg-d-border -mx-1 my-1 h-px", e),
|
|
173
173
|
...t
|
|
174
174
|
}
|
|
175
175
|
);
|
|
@@ -182,7 +182,7 @@ function O({
|
|
|
182
182
|
"span",
|
|
183
183
|
{
|
|
184
184
|
"data-slot": "menubar-shortcut",
|
|
185
|
-
className:
|
|
185
|
+
className: r(
|
|
186
186
|
"text-d-secondary-foreground ml-auto text-xs tracking-widest",
|
|
187
187
|
e
|
|
188
188
|
),
|
|
@@ -199,18 +199,18 @@ function U({
|
|
|
199
199
|
className: e,
|
|
200
200
|
inset: t,
|
|
201
201
|
children: n,
|
|
202
|
-
...
|
|
202
|
+
...o
|
|
203
203
|
}) {
|
|
204
204
|
return /* @__PURE__ */ s(
|
|
205
205
|
z,
|
|
206
206
|
{
|
|
207
207
|
"data-slot": "menubar-sub-trigger",
|
|
208
208
|
"data-inset": t,
|
|
209
|
-
className:
|
|
209
|
+
className: r(
|
|
210
210
|
"focus:bg-d-accent focus:text-d-accent-foreground data-[state=open]:bg-d-accent data-[state=open]:text-d-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
|
|
211
211
|
e
|
|
212
212
|
),
|
|
213
|
-
...
|
|
213
|
+
...o,
|
|
214
214
|
children: [
|
|
215
215
|
n,
|
|
216
216
|
/* @__PURE__ */ a(C, { className: "ml-auto h-4 w-4" })
|
|
@@ -226,8 +226,8 @@ function V({
|
|
|
226
226
|
M,
|
|
227
227
|
{
|
|
228
228
|
"data-slot": "menubar-sub-content",
|
|
229
|
-
className:
|
|
230
|
-
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
229
|
+
className: r(
|
|
230
|
+
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
231
231
|
e
|
|
232
232
|
),
|
|
233
233
|
...t
|
|
@@ -7,7 +7,7 @@ import { cn as C } from "../../lib/utils.js";
|
|
|
7
7
|
import { useAudioRecording as Q } from "../../hooks/use-audio-recording.js";
|
|
8
8
|
import { useAutosizeTextArea as X } from "../../hooks/use-autosize-textarea.js";
|
|
9
9
|
import { AudioVisualizer as Y } from "./audio-visualizer.js";
|
|
10
|
-
import { Button as
|
|
10
|
+
import { Button as g } from "./button.js";
|
|
11
11
|
import { FilePreview as Z } from "./file-preview.js";
|
|
12
12
|
import { InterruptPrompt as _ } from "./interrupt-prompt.js";
|
|
13
13
|
import P from "../../node_modules/lucide-react/dist/esm/icons/paperclip.js";
|
|
@@ -68,8 +68,8 @@ function ie({
|
|
|
68
68
|
h([W]);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
r.allowAttachments &&
|
|
71
|
+
const b = Array.from(a).map((m) => m.getAsFile()).filter((m) => m !== null);
|
|
72
|
+
r.allowAttachments && b.length > 0 && h(b);
|
|
73
73
|
}, U = (t) => {
|
|
74
74
|
if (l && t.key === "Enter" && !t.shiftKey) {
|
|
75
75
|
if (t.preventDefault(), u && s && A) {
|
|
@@ -142,7 +142,7 @@ function ie({
|
|
|
142
142
|
r.setFiles((a) => {
|
|
143
143
|
if (!a) return null;
|
|
144
144
|
const c = Array.from(a).filter(
|
|
145
|
-
(
|
|
145
|
+
(b) => b !== t
|
|
146
146
|
);
|
|
147
147
|
return c.length === 0 ? null : c;
|
|
148
148
|
});
|
|
@@ -153,7 +153,7 @@ function ie({
|
|
|
153
153
|
] }) }),
|
|
154
154
|
/* @__PURE__ */ o("div", { className: "absolute top-3 right-3 z-20 flex gap-2", children: [
|
|
155
155
|
r.allowAttachments && /* @__PURE__ */ e(
|
|
156
|
-
|
|
156
|
+
g,
|
|
157
157
|
{
|
|
158
158
|
type: "button",
|
|
159
159
|
size: "icon",
|
|
@@ -168,7 +168,7 @@ function ie({
|
|
|
168
168
|
}
|
|
169
169
|
),
|
|
170
170
|
L && /* @__PURE__ */ e(
|
|
171
|
-
|
|
171
|
+
g,
|
|
172
172
|
{
|
|
173
173
|
type: "button",
|
|
174
174
|
variant: "outline",
|
|
@@ -180,7 +180,7 @@ function ie({
|
|
|
180
180
|
}
|
|
181
181
|
),
|
|
182
182
|
u && s ? /* @__PURE__ */ e(
|
|
183
|
-
|
|
183
|
+
g,
|
|
184
184
|
{
|
|
185
185
|
type: "button",
|
|
186
186
|
size: "icon",
|
|
@@ -190,7 +190,7 @@ function ie({
|
|
|
190
190
|
children: /* @__PURE__ */ e(G, { className: "h-3 w-3 animate-pulse", fill: "currentColor" })
|
|
191
191
|
}
|
|
192
192
|
) : /* @__PURE__ */ e(
|
|
193
|
-
|
|
193
|
+
g,
|
|
194
194
|
{
|
|
195
195
|
type: "submit",
|
|
196
196
|
size: "icon",
|
|
@@ -295,7 +295,7 @@ function oe({ isVisible: i, onStopRecording: n }) {
|
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
exit: { top: 0, filter: "blur(5px)" },
|
|
298
|
-
className: "bg-d-background text-d-secondary-foreground absolute left-1/2 flex -translate-x-1/2 cursor-pointer overflow-hidden rounded-full border py-1 text-center text-sm whitespace-nowrap",
|
|
298
|
+
className: "bg-d-background border-d-border text-d-secondary-foreground absolute left-1/2 flex -translate-x-1/2 cursor-pointer overflow-hidden rounded-full border py-1 text-center text-sm whitespace-nowrap",
|
|
299
299
|
onClick: n,
|
|
300
300
|
children: /* @__PURE__ */ o("span", { className: "mx-2.5 flex items-center", children: [
|
|
301
301
|
/* @__PURE__ */ e(te, { className: "mr-2 h-3 w-3" }),
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { jsx as o, jsxs as L, Fragment as K } from "react/jsx-runtime";
|
|
3
3
|
import { Command as ie, useCommandState as ae } from "../../node_modules/cmdk/dist/index.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { useEffect as C, forwardRef as
|
|
6
|
-
import { CommandPortal as
|
|
5
|
+
import { useEffect as C, forwardRef as de } from "react";
|
|
6
|
+
import { CommandPortal as ue } from "./command-portal.js";
|
|
7
7
|
import { Badge as ce } from "./badge.js";
|
|
8
8
|
import { CommandItem as V, Command as fe, CommandList as me, CommandGroup as ge } from "./command.js";
|
|
9
9
|
import { cn as h } from "../../lib/utils.js";
|
|
10
10
|
import { Label as he } from "./label.js";
|
|
11
11
|
import q from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
12
12
|
function ve(r, s) {
|
|
13
|
-
const [l,
|
|
13
|
+
const [l, u] = a.useState(r);
|
|
14
14
|
return C(() => {
|
|
15
|
-
const
|
|
15
|
+
const d = setTimeout(() => u(r), s);
|
|
16
16
|
return () => {
|
|
17
|
-
clearTimeout(
|
|
17
|
+
clearTimeout(d);
|
|
18
18
|
};
|
|
19
19
|
}, [r, s]), l;
|
|
20
20
|
}
|
|
@@ -26,26 +26,26 @@ function I(r, s) {
|
|
|
26
26
|
"": r
|
|
27
27
|
};
|
|
28
28
|
const l = {};
|
|
29
|
-
return r.forEach((
|
|
30
|
-
const
|
|
31
|
-
l[
|
|
29
|
+
return r.forEach((u) => {
|
|
30
|
+
const d = u[s] || "";
|
|
31
|
+
l[d] || (l[d] = []), l[d].push(u);
|
|
32
32
|
}), l;
|
|
33
33
|
}
|
|
34
34
|
function pe(r, s) {
|
|
35
35
|
const l = JSON.parse(JSON.stringify(r));
|
|
36
|
-
for (const [
|
|
37
|
-
l[
|
|
36
|
+
for (const [u, d] of Object.entries(l))
|
|
37
|
+
l[u] = d.filter(
|
|
38
38
|
(F) => !s.find((c) => c.value === F.value)
|
|
39
39
|
);
|
|
40
40
|
return l;
|
|
41
41
|
}
|
|
42
42
|
function be(r, s) {
|
|
43
43
|
for (const [, l] of Object.entries(r))
|
|
44
|
-
if (l.some((
|
|
44
|
+
if (l.some((u) => s.find((d) => d.value === u.value)))
|
|
45
45
|
return !0;
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
|
-
const Q =
|
|
48
|
+
const Q = de(({ className: r, ...s }, l) => ae((d) => d.filtered.count === 0) ? /* @__PURE__ */ o(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: l,
|
|
@@ -61,8 +61,8 @@ const xe = a.forwardRef(
|
|
|
61
61
|
value: r,
|
|
62
62
|
onChange: s,
|
|
63
63
|
placeholder: l,
|
|
64
|
-
defaultOptions:
|
|
65
|
-
options:
|
|
64
|
+
defaultOptions: u = [],
|
|
65
|
+
options: d,
|
|
66
66
|
delay: F,
|
|
67
67
|
onSearch: c,
|
|
68
68
|
onSearchSync: G,
|
|
@@ -84,7 +84,7 @@ const xe = a.forwardRef(
|
|
|
84
84
|
label: U
|
|
85
85
|
}, ee) => {
|
|
86
86
|
const f = a.useRef(null), [b, M] = a.useState(!1), [te, X] = a.useState(!1), [H, $] = a.useState(!1), R = a.useRef(null), [t, N] = a.useState(r || []), [x, T] = a.useState(
|
|
87
|
-
I(
|
|
87
|
+
I(u, p)
|
|
88
88
|
), [g, J] = a.useState(""), w = ve(g, F || 500);
|
|
89
89
|
a.useImperativeHandle(
|
|
90
90
|
ee,
|
|
@@ -119,11 +119,11 @@ const xe = a.forwardRef(
|
|
|
119
119
|
}, [b, y]), C(() => {
|
|
120
120
|
r && N(r);
|
|
121
121
|
}, [r]), C(() => {
|
|
122
|
-
if (!
|
|
122
|
+
if (!d || c)
|
|
123
123
|
return;
|
|
124
|
-
const e = I(
|
|
124
|
+
const e = I(d || [], p);
|
|
125
125
|
JSON.stringify(e) !== JSON.stringify(x) && T(e);
|
|
126
|
-
}, [
|
|
126
|
+
}, [u, d, p, c, x]), C(() => {
|
|
127
127
|
const e = () => {
|
|
128
128
|
const i = G?.(w);
|
|
129
129
|
T(I(i || [], p));
|
|
@@ -291,7 +291,7 @@ const xe = a.forwardRef(
|
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
/* @__PURE__ */ o(
|
|
294
|
-
|
|
294
|
+
ue,
|
|
295
295
|
{
|
|
296
296
|
open: b,
|
|
297
297
|
triggerRef: R,
|
|
@@ -301,7 +301,7 @@ const xe = a.forwardRef(
|
|
|
301
301
|
children: /* @__PURE__ */ o(
|
|
302
302
|
me,
|
|
303
303
|
{
|
|
304
|
-
className: "bg-d-popover text-d-popover-foreground animate-in w-full rounded-md border shadow-md outline-none",
|
|
304
|
+
className: "bg-d-popover text-d-popover-foreground animate-in border-d-border w-full rounded-md border shadow-md outline-none",
|
|
305
305
|
onMouseLeave: () => {
|
|
306
306
|
X(!1);
|
|
307
307
|
},
|
|
@@ -22,7 +22,7 @@ function M({
|
|
|
22
22
|
...r,
|
|
23
23
|
children: [
|
|
24
24
|
a,
|
|
25
|
-
n && /* @__PURE__ */ e(
|
|
25
|
+
n && /* @__PURE__ */ e(b, {})
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
);
|
|
@@ -94,14 +94,14 @@ function L({
|
|
|
94
94
|
"data-slot": "navigation-menu-content",
|
|
95
95
|
className: o(
|
|
96
96
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
97
|
-
"group-data-[viewport=false]/navigation-menu:bg-d-popover group-data-[viewport=false]/navigation-menu:text-d-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
97
|
+
"group-data-[viewport=false]/navigation-menu:bg-d-popover group-data-[viewport=false]/navigation-menu:text-d-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 border-d-border group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
98
98
|
t
|
|
99
99
|
),
|
|
100
100
|
...a
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function b({
|
|
105
105
|
className: t,
|
|
106
106
|
...a
|
|
107
107
|
}) {
|
|
@@ -116,7 +116,7 @@ function x({
|
|
|
116
116
|
{
|
|
117
117
|
"data-slot": "navigation-menu-viewport",
|
|
118
118
|
className: o(
|
|
119
|
-
"origin-top-center bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
119
|
+
"origin-top-center bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 border-d-border relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
120
120
|
t
|
|
121
121
|
),
|
|
122
122
|
...a
|
|
@@ -166,6 +166,6 @@ export {
|
|
|
166
166
|
C as NavigationMenuLink,
|
|
167
167
|
j as NavigationMenuList,
|
|
168
168
|
I as NavigationMenuTrigger,
|
|
169
|
-
|
|
169
|
+
b as NavigationMenuViewport,
|
|
170
170
|
w as navigationMenuTriggerStyle
|
|
171
171
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
3
|
+
import { Root as d, Trigger as n, Portal as i, Content as s } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
4
|
import { cn as p } from "../../lib/utils.js";
|
|
5
5
|
function c({
|
|
6
6
|
...o
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
8
|
+
return /* @__PURE__ */ t(d, { "data-slot": "popover", ...o });
|
|
9
9
|
}
|
|
10
10
|
function u({
|
|
11
11
|
...o
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
13
|
+
return /* @__PURE__ */ t(n, { "data-slot": "popover-trigger", ...o });
|
|
14
14
|
}
|
|
15
15
|
function g({
|
|
16
16
|
className: o,
|
|
@@ -25,7 +25,7 @@ function g({
|
|
|
25
25
|
align: e,
|
|
26
26
|
sideOffset: r,
|
|
27
27
|
className: p(
|
|
28
|
-
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
28
|
+
"bg-d-popover text-d-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-d-border z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
29
|
o
|
|
30
30
|
),
|
|
31
31
|
...a
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
function
|
|
4
|
-
label:
|
|
5
|
-
append:
|
|
6
|
-
suggestions:
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
function t({
|
|
4
|
+
label: d,
|
|
5
|
+
append: o,
|
|
6
|
+
suggestions: c
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children:
|
|
10
|
-
/* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children:
|
|
8
|
+
return /* @__PURE__ */ l("div", { className: "grow space-y-6", children: [
|
|
9
|
+
/* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: d }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: c.map((r) => /* @__PURE__ */ e(
|
|
11
11
|
"button",
|
|
12
12
|
{
|
|
13
|
-
onClick: () =>
|
|
14
|
-
className: "bg-d-background hover:bg-d-secondary h-max flex-1 rounded-xl border p-4",
|
|
13
|
+
onClick: () => o({ role: "user", content: r }),
|
|
14
|
+
className: "bg-d-background hover:bg-d-secondary border-d-border h-max flex-1 rounded-xl border p-4",
|
|
15
15
|
children: /* @__PURE__ */ e("p", { children: r })
|
|
16
16
|
},
|
|
17
17
|
r
|
|
@@ -19,5 +19,5 @@ function d({
|
|
|
19
19
|
] });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
t as PromptSuggestions
|
|
23
23
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { PanelResizeHandle as i, Panel as n, PanelGroup as o } from "../../node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js";
|
|
4
4
|
import { cn as t } from "../../lib/utils.js";
|
|
5
|
-
import
|
|
5
|
+
import d from "../../node_modules/lucide-react/dist/esm/icons/grip-vertical.js";
|
|
6
6
|
function p({
|
|
7
7
|
className: e,
|
|
8
8
|
...r
|
|
@@ -38,7 +38,7 @@ function g({
|
|
|
38
38
|
r
|
|
39
39
|
),
|
|
40
40
|
...l,
|
|
41
|
-
children: e && /* @__PURE__ */ a("div", { className: "bg-d-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(
|
|
41
|
+
children: e && /* @__PURE__ */ a("div", { className: "bg-d-border border-d-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a(d, { className: "size-2.5" }) })
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as o, jsxs as
|
|
3
|
-
import { Root as
|
|
2
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Root as d, Trigger as i, Content as l, Close as c, Title as f, Description as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
6
|
function v({ ...t }) {
|
|
7
|
-
return /* @__PURE__ */ o(
|
|
7
|
+
return /* @__PURE__ */ o(d, { "data-slot": "sheet", ...t });
|
|
8
8
|
}
|
|
9
9
|
function w({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(i, { "data-slot": "sheet-trigger", ...t });
|
|
13
13
|
}
|
|
14
14
|
function g({
|
|
15
15
|
...t
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ o(m, { "data-slot": "sheet-portal", ...t });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function b({
|
|
20
20
|
className: t,
|
|
21
21
|
...e
|
|
22
22
|
}) {
|
|
@@ -35,27 +35,27 @@ function x({
|
|
|
35
35
|
function C({
|
|
36
36
|
className: t,
|
|
37
37
|
children: e,
|
|
38
|
-
side:
|
|
39
|
-
...
|
|
38
|
+
side: r = "right",
|
|
39
|
+
...n
|
|
40
40
|
}) {
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ o(
|
|
43
|
-
/* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ s(g, { children: [
|
|
42
|
+
/* @__PURE__ */ o(b, {}),
|
|
43
|
+
/* @__PURE__ */ s(
|
|
44
44
|
l,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "sheet-content",
|
|
47
47
|
className: a(
|
|
48
48
|
"bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
r === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right border-d-border inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
50
|
+
r === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left border-d-border inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
51
|
+
r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top border-d-border inset-x-0 top-0 h-auto border-b",
|
|
52
|
+
r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom border-d-border inset-x-0 bottom-0 h-auto border-t",
|
|
53
53
|
t
|
|
54
54
|
),
|
|
55
|
-
...
|
|
55
|
+
...n,
|
|
56
56
|
children: [
|
|
57
57
|
e,
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ s(c, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
59
59
|
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
60
60
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
61
61
|
] })
|
|
@@ -96,7 +96,7 @@ const Y = d.forwardRef(
|
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
98
|
className: i(
|
|
99
|
-
"bg-d-sidebar text-d-sidebar-foreground flex h-full w-[--sidebar-width] flex-col",
|
|
99
|
+
"bg-d-sidebar text-d-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",
|
|
100
100
|
o
|
|
101
101
|
),
|
|
102
102
|
ref: f,
|
|
@@ -108,7 +108,7 @@ const Y = d.forwardRef(
|
|
|
108
108
|
{
|
|
109
109
|
"data-sidebar": "sidebar",
|
|
110
110
|
"data-mobile": "true",
|
|
111
|
-
className: "bg-d-sidebar text-d-sidebar-foreground w-[--sidebar-width] p-0 [&>button]:hidden",
|
|
111
|
+
className: "bg-d-sidebar text-d-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",
|
|
112
112
|
style: {
|
|
113
113
|
"--sidebar-width": q
|
|
114
114
|
},
|
|
@@ -135,7 +135,7 @@ const Y = d.forwardRef(
|
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
className: i(
|
|
138
|
-
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
138
|
+
"relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear",
|
|
139
139
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
140
140
|
"group-data-[side=right]:rotate-180",
|
|
141
141
|
e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
@@ -146,7 +146,7 @@ const Y = d.forwardRef(
|
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: i(
|
|
149
|
-
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
149
|
+
"fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
150
150
|
a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
151
151
|
// Adjust the padding for floating and inset variants.
|
|
152
152
|
e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|