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,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as g, useRef as L, useCallback as
|
|
2
|
+
import { jsxs as C, jsx as t, Fragment as j } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as g, useRef as L, useCallback as N, useState as z } from "react";
|
|
4
4
|
import { cn as B } from "../../lib/utils.js";
|
|
5
5
|
import { useAutoScroll as D } from "../../hooks/use-auto-scroll.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as x } from "./button.js";
|
|
7
7
|
import { CopyButton as T } from "./copy-button.js";
|
|
8
8
|
import { MessageInput as P } from "./message-input.js";
|
|
9
9
|
import { MessageList as U } from "./message-list.js";
|
|
@@ -18,24 +18,24 @@ function J({
|
|
|
18
18
|
handleInputChange: u,
|
|
19
19
|
stop: s,
|
|
20
20
|
isGenerating: c,
|
|
21
|
-
append:
|
|
22
|
-
suggestions:
|
|
21
|
+
append: d,
|
|
22
|
+
suggestions: f,
|
|
23
23
|
className: w,
|
|
24
24
|
onRateResponse: p,
|
|
25
25
|
setMessages: v,
|
|
26
26
|
transcribeAudio: M
|
|
27
27
|
}) {
|
|
28
|
-
const k = e.at(-1), A = e.length === 0,
|
|
29
|
-
|
|
30
|
-
const F =
|
|
28
|
+
const k = e.at(-1), A = e.length === 0, y = k?.role === "user", b = L(e);
|
|
29
|
+
b.current = e;
|
|
30
|
+
const F = N(() => {
|
|
31
31
|
if (s?.(), !v) return;
|
|
32
|
-
const
|
|
32
|
+
const r = [...b.current], l = r.findLast(
|
|
33
33
|
(a) => a.role === "assistant"
|
|
34
34
|
);
|
|
35
|
-
if (!
|
|
36
|
-
let m = !1, h = { ...
|
|
37
|
-
if (
|
|
38
|
-
const a =
|
|
35
|
+
if (!l) return;
|
|
36
|
+
let m = !1, h = { ...l };
|
|
37
|
+
if (l.toolInvocations) {
|
|
38
|
+
const a = l.toolInvocations.map(
|
|
39
39
|
(o) => o.state === "call" ? (m = !0, {
|
|
40
40
|
...o,
|
|
41
41
|
state: "result",
|
|
@@ -51,8 +51,8 @@ function J({
|
|
|
51
51
|
toolInvocations: a
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
if (
|
|
55
|
-
const a =
|
|
54
|
+
if (l.parts && l.parts.length > 0) {
|
|
55
|
+
const a = l.parts.map((o) => o.type === "tool-invocation" && o.toolInvocation && o.toolInvocation.state === "call" ? (m = !0, {
|
|
56
56
|
...o,
|
|
57
57
|
toolInvocation: {
|
|
58
58
|
...o.toolInvocation,
|
|
@@ -69,65 +69,65 @@ function J({
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
if (m) {
|
|
72
|
-
const a =
|
|
73
|
-
(o) => o.id ===
|
|
72
|
+
const a = r.findIndex(
|
|
73
|
+
(o) => o.id === l.id
|
|
74
74
|
);
|
|
75
|
-
a !== -1 && (
|
|
75
|
+
a !== -1 && (r[a] = h, v(r));
|
|
76
76
|
}
|
|
77
|
-
}, [s, v,
|
|
78
|
-
(
|
|
79
|
-
actions: p ? /* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */ t("div", { className: "border-r pr-1", children: /* @__PURE__ */ t(
|
|
77
|
+
}, [s, v, b]), _ = N(
|
|
78
|
+
(r) => ({
|
|
79
|
+
actions: p ? /* @__PURE__ */ C(j, { children: [
|
|
80
|
+
/* @__PURE__ */ t("div", { className: "border-d-border border-r pr-1", children: /* @__PURE__ */ t(
|
|
81
81
|
T,
|
|
82
82
|
{
|
|
83
|
-
content:
|
|
83
|
+
content: r.content,
|
|
84
84
|
copyMessage: "Copied response to clipboard!"
|
|
85
85
|
}
|
|
86
86
|
) }),
|
|
87
87
|
/* @__PURE__ */ t(
|
|
88
|
-
|
|
88
|
+
x,
|
|
89
89
|
{
|
|
90
90
|
size: "icon",
|
|
91
91
|
variant: "ghost",
|
|
92
92
|
className: "h-6 w-6",
|
|
93
|
-
onClick: () => p(
|
|
93
|
+
onClick: () => p(r.id, "thumbs-up"),
|
|
94
94
|
children: /* @__PURE__ */ t(O, { className: "h-4 w-4" })
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
97
|
/* @__PURE__ */ t(
|
|
98
|
-
|
|
98
|
+
x,
|
|
99
99
|
{
|
|
100
100
|
size: "icon",
|
|
101
101
|
variant: "ghost",
|
|
102
102
|
className: "h-6 w-6",
|
|
103
|
-
onClick: () => p(
|
|
103
|
+
onClick: () => p(r.id, "thumbs-down"),
|
|
104
104
|
children: /* @__PURE__ */ t(q, { className: "h-4 w-4" })
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
107
|
] }) : /* @__PURE__ */ t(
|
|
108
108
|
T,
|
|
109
109
|
{
|
|
110
|
-
content:
|
|
110
|
+
content: r.content,
|
|
111
111
|
copyMessage: "Copied response to clipboard!"
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
}),
|
|
115
115
|
[p]
|
|
116
116
|
);
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
A &&
|
|
117
|
+
return /* @__PURE__ */ C(S, { className: w, children: [
|
|
118
|
+
A && d && f ? /* @__PURE__ */ t(
|
|
119
119
|
E,
|
|
120
120
|
{
|
|
121
121
|
label: "Try these prompts ✨",
|
|
122
|
-
append:
|
|
123
|
-
suggestions:
|
|
122
|
+
append: d,
|
|
123
|
+
suggestions: f
|
|
124
124
|
}
|
|
125
125
|
) : null,
|
|
126
126
|
e.length > 0 ? /* @__PURE__ */ t(K, { messages: e, children: /* @__PURE__ */ t(
|
|
127
127
|
U,
|
|
128
128
|
{
|
|
129
129
|
messages: e,
|
|
130
|
-
isTyping:
|
|
130
|
+
isTyping: y,
|
|
131
131
|
messageOptions: _
|
|
132
132
|
}
|
|
133
133
|
) }) : null,
|
|
@@ -135,16 +135,16 @@ function J({
|
|
|
135
135
|
I,
|
|
136
136
|
{
|
|
137
137
|
className: "flex-shrink-0",
|
|
138
|
-
isPending: c ||
|
|
138
|
+
isPending: c || y,
|
|
139
139
|
handleSubmit: n,
|
|
140
|
-
children: ({ files:
|
|
140
|
+
children: ({ files: r, setFiles: l }) => /* @__PURE__ */ t(
|
|
141
141
|
P,
|
|
142
142
|
{
|
|
143
143
|
value: i,
|
|
144
144
|
onChange: u,
|
|
145
145
|
allowAttachments: !0,
|
|
146
|
-
files:
|
|
147
|
-
setFiles:
|
|
146
|
+
files: r,
|
|
147
|
+
setFiles: l,
|
|
148
148
|
stop: F,
|
|
149
149
|
isGenerating: c,
|
|
150
150
|
transcribeAudio: M
|
|
@@ -164,19 +164,19 @@ function K({
|
|
|
164
164
|
scrollToBottom: u,
|
|
165
165
|
handleScroll: s,
|
|
166
166
|
shouldAutoScroll: c,
|
|
167
|
-
handleTouchStart:
|
|
167
|
+
handleTouchStart: d
|
|
168
168
|
} = D([e]);
|
|
169
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ C(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
172
172
|
className: "relative flex-1 overflow-y-auto pb-4",
|
|
173
173
|
ref: i,
|
|
174
174
|
onScroll: s,
|
|
175
|
-
onTouchStart:
|
|
175
|
+
onTouchStart: d,
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ t("div", { className: "max-w-full", children: n }),
|
|
178
178
|
!c && /* @__PURE__ */ t("div", { className: "pointer-events-none absolute right-0 bottom-0 left-0 flex items-end justify-end", children: /* @__PURE__ */ t("div", { className: "sticky bottom-0 left-0 flex w-full justify-end", children: /* @__PURE__ */ t(
|
|
179
|
-
|
|
179
|
+
x,
|
|
180
180
|
{
|
|
181
181
|
onClick: u,
|
|
182
182
|
className: "animate-in fade-in-0 slide-in-from-bottom-1 pointer-events-auto h-8 w-8 rounded-full ease-in-out",
|
|
@@ -201,13 +201,13 @@ S.displayName = "ChatContainer";
|
|
|
201
201
|
const I = g(
|
|
202
202
|
({ children: e, handleSubmit: n, className: i }, u) => {
|
|
203
203
|
const [s, c] = z(null);
|
|
204
|
-
return /* @__PURE__ */ t("form", { ref: u, onSubmit: (
|
|
204
|
+
return /* @__PURE__ */ t("form", { ref: u, onSubmit: (f) => {
|
|
205
205
|
if (!s) {
|
|
206
|
-
n(
|
|
206
|
+
n(f);
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
const w = Q(s);
|
|
210
|
-
n(
|
|
210
|
+
n(f, { experimental_attachments: w }), c(null);
|
|
211
211
|
}, className: i, children: e({ files: s, setFiles: c }) });
|
|
212
212
|
}
|
|
213
213
|
);
|
|
@@ -73,7 +73,7 @@ function B({
|
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "context-menu-sub-content",
|
|
75
75
|
className: a(
|
|
76
|
-
"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-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
76
|
+
"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-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
77
77
|
t
|
|
78
78
|
),
|
|
79
79
|
...n
|
|
@@ -89,7 +89,7 @@ function D({
|
|
|
89
89
|
{
|
|
90
90
|
"data-slot": "context-menu-content",
|
|
91
91
|
className: a(
|
|
92
|
-
"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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
92
|
+
"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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
93
93
|
t
|
|
94
94
|
),
|
|
95
95
|
...n
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
3
|
+
import { Root as l, Trigger as d, Content as c, Close as s, Title as g, Description as f, Portal as u, Overlay as m } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
5
|
import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
6
|
function w({
|
|
7
7
|
...t
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
9
|
+
return /* @__PURE__ */ a(l, { "data-slot": "dialog", ...t });
|
|
10
10
|
}
|
|
11
11
|
function z({
|
|
12
12
|
...t
|
|
@@ -21,7 +21,7 @@ function x({
|
|
|
21
21
|
function C({
|
|
22
22
|
...t
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */ a(
|
|
24
|
+
return /* @__PURE__ */ a(s, { "data-slot": "dialog-close", ...t });
|
|
25
25
|
}
|
|
26
26
|
function D({
|
|
27
27
|
className: t,
|
|
@@ -42,7 +42,7 @@ function D({
|
|
|
42
42
|
function k({
|
|
43
43
|
className: t,
|
|
44
44
|
children: e,
|
|
45
|
-
...
|
|
45
|
+
...i
|
|
46
46
|
}) {
|
|
47
47
|
return /* @__PURE__ */ n(x, { "data-slot": "dialog-portal", children: [
|
|
48
48
|
/* @__PURE__ */ a(D, {}),
|
|
@@ -50,17 +50,17 @@ function k({
|
|
|
50
50
|
c,
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "dialog-content",
|
|
53
|
-
onPointerDownOutside: (
|
|
54
|
-
|
|
53
|
+
onPointerDownOutside: (r) => {
|
|
54
|
+
r.target?.closest("[data-command-portal]") && r.preventDefault();
|
|
55
55
|
},
|
|
56
56
|
className: o(
|
|
57
|
-
"bg-d-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
57
|
+
"bg-d-background 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 border-d-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
58
58
|
t
|
|
59
59
|
),
|
|
60
|
-
...
|
|
60
|
+
...i,
|
|
61
61
|
children: [
|
|
62
62
|
e,
|
|
63
|
-
/* @__PURE__ */ n(
|
|
63
|
+
/* @__PURE__ */ n(s, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-accent data-[state=open]:text-d-secondary-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
64
64
|
/* @__PURE__ */ a(p, {}),
|
|
65
65
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
66
66
|
] })
|
|
@@ -3,23 +3,23 @@ import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
|
3
3
|
import { Drawer as e } from "../../node_modules/vaul/dist/index.js";
|
|
4
4
|
import { cn as d } from "../../lib/utils.js";
|
|
5
5
|
function w({
|
|
6
|
-
...
|
|
6
|
+
...r
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ t(e.Root, { "data-slot": "drawer", ...
|
|
8
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "drawer", ...r });
|
|
9
9
|
}
|
|
10
10
|
function m({
|
|
11
|
-
...
|
|
11
|
+
...r
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "drawer-trigger", ...
|
|
13
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "drawer-trigger", ...r });
|
|
14
14
|
}
|
|
15
15
|
function n({
|
|
16
|
-
...
|
|
16
|
+
...r
|
|
17
17
|
}) {
|
|
18
|
-
return /* @__PURE__ */ t(e.Portal, { "data-slot": "drawer-portal", ...
|
|
18
|
+
return /* @__PURE__ */ t(e.Portal, { "data-slot": "drawer-portal", ...r });
|
|
19
19
|
}
|
|
20
20
|
function l({
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
21
|
+
className: r,
|
|
22
|
+
...a
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ t(
|
|
25
25
|
e.Overlay,
|
|
@@ -27,15 +27,15 @@ function l({
|
|
|
27
27
|
"data-slot": "drawer-overlay",
|
|
28
28
|
className: d(
|
|
29
29
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
30
|
-
|
|
30
|
+
r
|
|
31
31
|
),
|
|
32
|
-
...
|
|
32
|
+
...a
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
function f({
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
37
|
+
className: r,
|
|
38
|
+
children: a,
|
|
39
39
|
...i
|
|
40
40
|
}) {
|
|
41
41
|
return /* @__PURE__ */ o(n, { "data-slot": "drawer-portal", children: [
|
|
@@ -45,76 +45,76 @@ function f({
|
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "drawer-content",
|
|
47
47
|
className: d(
|
|
48
|
-
"group/drawer-content bg-d-background fixed z-50 flex h-auto flex-col",
|
|
48
|
+
"border-d-border group/drawer-content bg-d-background fixed z-50 flex h-auto flex-col",
|
|
49
49
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
50
50
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
51
51
|
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
52
52
|
"data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
|
|
53
|
-
|
|
53
|
+
r
|
|
54
54
|
),
|
|
55
55
|
...i,
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ t("div", { className: "bg-d-secondary mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
58
|
-
|
|
58
|
+
a
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
] });
|
|
63
63
|
}
|
|
64
|
-
function v({ className:
|
|
64
|
+
function v({ className: r, ...a }) {
|
|
65
65
|
return /* @__PURE__ */ t(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
68
|
"data-slot": "drawer-header",
|
|
69
|
-
className: d("flex flex-col gap-1.5 p-4",
|
|
70
|
-
...
|
|
69
|
+
className: d("flex flex-col gap-1.5 p-4", r),
|
|
70
|
+
...a
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
function p({ className:
|
|
74
|
+
function p({ className: r, ...a }) {
|
|
75
75
|
return /* @__PURE__ */ t(
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
78
|
"data-slot": "drawer-footer",
|
|
79
|
-
className: d("mt-auto flex flex-col gap-2 p-4",
|
|
80
|
-
...
|
|
79
|
+
className: d("mt-auto flex flex-col gap-2 p-4", r),
|
|
80
|
+
...a
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
className:
|
|
86
|
-
...
|
|
84
|
+
function b({
|
|
85
|
+
className: r,
|
|
86
|
+
...a
|
|
87
87
|
}) {
|
|
88
88
|
return /* @__PURE__ */ t(
|
|
89
89
|
e.Title,
|
|
90
90
|
{
|
|
91
91
|
"data-slot": "drawer-title",
|
|
92
|
-
className: d("text-d-foreground font-semibold",
|
|
93
|
-
...
|
|
92
|
+
className: d("text-d-foreground font-semibold", r),
|
|
93
|
+
...a
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
className:
|
|
99
|
-
...
|
|
97
|
+
function g({
|
|
98
|
+
className: r,
|
|
99
|
+
...a
|
|
100
100
|
}) {
|
|
101
101
|
return /* @__PURE__ */ t(
|
|
102
102
|
e.Description,
|
|
103
103
|
{
|
|
104
104
|
"data-slot": "drawer-description",
|
|
105
|
-
className: d("text-d-secondary-foreground text-sm",
|
|
106
|
-
...
|
|
105
|
+
className: d("text-d-secondary-foreground text-sm", r),
|
|
106
|
+
...a
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
export {
|
|
111
111
|
w as Drawer,
|
|
112
112
|
f as DrawerContent,
|
|
113
|
-
|
|
113
|
+
g as DrawerDescription,
|
|
114
114
|
p as DrawerFooter,
|
|
115
115
|
v as DrawerHeader,
|
|
116
116
|
l as DrawerOverlay,
|
|
117
117
|
n as DrawerPortal,
|
|
118
|
-
|
|
118
|
+
b as DrawerTitle,
|
|
119
119
|
m as DrawerTrigger
|
|
120
120
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as r from "react";
|
|
4
4
|
import { Root as w, Trigger as x, Portal as N, Content as l, Item as m, Label as c, Separator as p, SubTrigger as f, SubContent as u, CheckboxItem as g, ItemIndicator as b, RadioItem as h } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as s } from "../../lib/utils.js";
|
|
6
6
|
import y from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
7
7
|
import v from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
8
8
|
import R from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
9
|
-
const B = w, E = x, I =
|
|
9
|
+
const B = w, E = x, I = r.forwardRef(({ className: e, inset: t, children: o, ...n }, d) => /* @__PURE__ */ i(
|
|
10
10
|
f,
|
|
11
11
|
{
|
|
12
12
|
ref: d,
|
|
13
|
-
className:
|
|
13
|
+
className: s(
|
|
14
14
|
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
15
15
|
t && "pl-8",
|
|
16
16
|
e
|
|
@@ -23,25 +23,25 @@ const B = w, E = x, I = s.forwardRef(({ className: e, inset: t, children: o, ...
|
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
25
|
I.displayName = f.displayName;
|
|
26
|
-
const C =
|
|
26
|
+
const C = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
27
27
|
u,
|
|
28
28
|
{
|
|
29
29
|
ref: o,
|
|
30
|
-
className:
|
|
31
|
-
"bg-popover text-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-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
30
|
+
className: s(
|
|
31
|
+
"bg-popover text-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-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
32
32
|
e
|
|
33
33
|
),
|
|
34
34
|
...t
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
37
|
C.displayName = u.displayName;
|
|
38
|
-
const D =
|
|
38
|
+
const D = r.forwardRef(({ className: e, sideOffset: t = 4, ...o }, n) => /* @__PURE__ */ a(N, { children: /* @__PURE__ */ a(
|
|
39
39
|
l,
|
|
40
40
|
{
|
|
41
41
|
ref: n,
|
|
42
42
|
sideOffset: t,
|
|
43
|
-
className:
|
|
44
|
-
"bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
43
|
+
className: s(
|
|
44
|
+
"bg-popover text-popover-foreground border-d-border z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
45
45
|
"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 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
46
46
|
e
|
|
47
47
|
),
|
|
@@ -49,11 +49,11 @@ const D = s.forwardRef(({ className: e, sideOffset: t = 4, ...o }, n) => /* @__P
|
|
|
49
49
|
}
|
|
50
50
|
) }));
|
|
51
51
|
D.displayName = l.displayName;
|
|
52
|
-
const M =
|
|
52
|
+
const M = r.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a(
|
|
53
53
|
m,
|
|
54
54
|
{
|
|
55
55
|
ref: n,
|
|
56
|
-
className:
|
|
56
|
+
className: s(
|
|
57
57
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
58
58
|
t && "pl-8",
|
|
59
59
|
e
|
|
@@ -62,11 +62,11 @@ const M = s.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */
|
|
|
62
62
|
}
|
|
63
63
|
));
|
|
64
64
|
M.displayName = m.displayName;
|
|
65
|
-
const S =
|
|
65
|
+
const S = r.forwardRef(({ className: e, children: t, checked: o, ...n }, d) => /* @__PURE__ */ i(
|
|
66
66
|
g,
|
|
67
67
|
{
|
|
68
68
|
ref: d,
|
|
69
|
-
className:
|
|
69
|
+
className: s(
|
|
70
70
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
71
71
|
e
|
|
72
72
|
),
|
|
@@ -79,11 +79,11 @@ const S = s.forwardRef(({ className: e, children: t, checked: o, ...n }, d) => /
|
|
|
79
79
|
}
|
|
80
80
|
));
|
|
81
81
|
S.displayName = g.displayName;
|
|
82
|
-
const z =
|
|
82
|
+
const z = r.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__ */ i(
|
|
83
83
|
h,
|
|
84
84
|
{
|
|
85
85
|
ref: n,
|
|
86
|
-
className:
|
|
86
|
+
className: s(
|
|
87
87
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
88
88
|
e
|
|
89
89
|
),
|
|
@@ -95,11 +95,11 @@ const z = s.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__
|
|
|
95
95
|
}
|
|
96
96
|
));
|
|
97
97
|
z.displayName = h.displayName;
|
|
98
|
-
const k =
|
|
98
|
+
const k = r.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a(
|
|
99
99
|
c,
|
|
100
100
|
{
|
|
101
101
|
ref: n,
|
|
102
|
-
className:
|
|
102
|
+
className: s(
|
|
103
103
|
"px-2 py-1.5 text-sm font-semibold",
|
|
104
104
|
t && "pl-8",
|
|
105
105
|
e
|
|
@@ -108,11 +108,11 @@ const k = s.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */
|
|
|
108
108
|
}
|
|
109
109
|
));
|
|
110
110
|
k.displayName = c.displayName;
|
|
111
|
-
const T =
|
|
111
|
+
const T = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
112
112
|
p,
|
|
113
113
|
{
|
|
114
114
|
ref: o,
|
|
115
|
-
className:
|
|
115
|
+
className: s("bg-muted -mx-1 my-1 h-px", e),
|
|
116
116
|
...t
|
|
117
117
|
}
|
|
118
118
|
));
|