@chaibuilder/sdk 2.0.0-beta.4 → 2.0.0-beta.40
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/README.md +0 -4
- package/dist/ChaiThemeFn-Ba9O-eBT.js +201 -0
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
- package/dist/CodeEditor-C5hkhszC.cjs +1 -0
- package/dist/CodeEditor-DmPiW1eD.js +77 -0
- package/dist/STRINGS-DtEft2kY.js +5 -0
- package/dist/STRINGS-n7COZtKr.cjs +1 -0
- package/dist/Topbar-CTL7UXRB.js +22 -0
- package/dist/Topbar-CiOsi4Ut.cjs +1 -0
- package/dist/{context-menu-I8woggB3.js → context-menu-BsI3Hqio.js} +66 -66
- package/dist/{context-menu-0lRey9QY.cjs → context-menu-dsqhw1Ub.cjs} +1 -1
- package/dist/core.cjs +302 -1
- package/dist/core.d.ts +121 -81
- package/dist/core.js +33557 -122
- package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
- package/dist/jsx-runtime-DGh1k5sI.cjs +31 -0
- package/dist/jsx-runtime-Dx-03ztt.js +445 -0
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-2xcljWGM.cjs +1 -0
- package/dist/plugin-Bvqh40K5.js +24 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +36 -18
- package/dist/render.js +127 -127
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.js +0 -20
- package/dist/{style.css → sdk.css} +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +31 -26
- package/dist/tailwind.js +5 -7
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +59 -68
- package/dist/ui.js +199 -356
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +1327 -703
- package/package.json +102 -115
- package/dist/CodeEditor-fHc8uUZi.js +0 -126
- package/dist/CodeEditor-jEPBwyMf.cjs +0 -1
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-9ltyM5Cl.js +0 -160
- package/dist/Topbar-CbNTH5d8.cjs +0 -1
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/index-UvIwJj5Y.js +0 -8540
- package/dist/index-gHOGFo7e.cjs +0 -63
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/jsx-runtime-Sp0orL4X.js +0 -631
- package/dist/plugin-UiUFs2fK.js +0 -44
- package/dist/plugin-f6SDZ_Or.js +0 -108
- package/dist/plugin-jum1MjXp.cjs +0 -1
- package/dist/plugin-xOpS-UNV.cjs +0 -1
- /package/dist/{iconBase-aZzpqff_.cjs → iconBase-Cn2BsTrq.cjs} +0 -0
package/dist/ui.js
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-Dx-03ztt.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import {
|
|
6
|
-
import { A as
|
|
7
|
-
import {
|
|
8
|
-
import * as n from "@radix-ui/react-
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import "@radix-ui/react-switch";
|
|
13
|
-
import "@radix-ui/react-accordion";
|
|
14
|
-
import "@radix-ui/react-alert-dialog";
|
|
15
|
-
import "@radix-ui/react-slot";
|
|
16
|
-
import "@radix-ui/react-label";
|
|
17
|
-
import "@radix-ui/react-scroll-area";
|
|
18
|
-
import "@radix-ui/react-tabs";
|
|
19
|
-
import "@radix-ui/react-tooltip";
|
|
20
|
-
import "@radix-ui/react-popover";
|
|
21
|
-
import "@radix-ui/react-hover-card";
|
|
22
|
-
import "@radix-ui/react-dropdown-menu";
|
|
23
|
-
import "@radix-ui/react-separator";
|
|
24
|
-
import "@radix-ui/react-toast";
|
|
25
|
-
import "@radix-ui/react-context-menu";
|
|
26
|
-
import "clsx";
|
|
27
|
-
import "tailwind-merge";
|
|
28
|
-
const M = p(
|
|
3
|
+
import * as p from "@radix-ui/react-toggle";
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import { c as s, D as x, a as h } from "./context-menu-BsI3Hqio.js";
|
|
6
|
+
import { A as ne, g as de, e as ie, f as le, j as me, q as ce, r as pe, l as ue, p as ge, n as fe, m as xe, o as he, k as be, h as ye, B as Ne, C as we, F as ve, E as Ce, y as je, x as Se, z as De, aj as Te, an as ke, al as Me, as as Re, am as Ie, ap as _e, at as Ae, ax as Pe, ao as Ve, aq as Ge, ar as Le, au as He, av as ze, aw as Fe, ak as Ee, w as Be, u as Oe, t as qe, v as $e, s as Je, $ as Ke, a3 as Qe, a1 as Ue, a8 as We, a2 as Xe, a5 as Ye, a9 as Ze, ad as ea, a4 as aa, a6 as ta, a7 as oa, aa as sa, ab as ra, ac as na, a0 as da, Y as ia, _ as la, Z as ma, I as ca, L as pa, V as ua, X as ga, W as fa, G as xa, H as ha, ae as ba, S as ya, b as Na, J as wa, N as va, K as Ca, M as ja, T as Sa, ai as Da, O as Ta, Q as ka, U as Ma, R as Ra, P as Ia, i as _a, d as Aa, af as Pa, ah as Va, ag as Ga } from "./context-menu-BsI3Hqio.js";
|
|
7
|
+
import { CaretSortIcon as b, CheckIcon as y, Cross2Icon as N, MagnifyingGlassIcon as w } from "@radix-ui/react-icons";
|
|
8
|
+
import * as n from "@radix-ui/react-select";
|
|
9
|
+
import * as d from "@radix-ui/react-dialog";
|
|
10
|
+
import { Command as i } from "cmdk";
|
|
11
|
+
const v = c(
|
|
29
12
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
30
13
|
{
|
|
31
14
|
variants: {
|
|
@@ -44,9 +27,9 @@ const M = p(
|
|
|
44
27
|
size: "default"
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
const
|
|
30
|
+
), C = r.forwardRef(({ className: e, variant: a, size: o, ...l }, m) => /* @__PURE__ */ t.jsx(p.Root, { ref: m, className: s(v({ variant: a, size: o, className: e })), ...l }));
|
|
31
|
+
C.displayName = p.Root.displayName;
|
|
32
|
+
const j = c(
|
|
50
33
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
51
34
|
{
|
|
52
35
|
variants: {
|
|
@@ -59,144 +42,20 @@ const T = p(
|
|
|
59
42
|
variant: "default"
|
|
60
43
|
}
|
|
61
44
|
}
|
|
62
|
-
),
|
|
63
|
-
|
|
64
|
-
const
|
|
45
|
+
), S = r.forwardRef(({ className: e, variant: a, ...o }, l) => /* @__PURE__ */ t.jsx("div", { ref: l, role: "alert", className: s(j({ variant: a }), e), ...o }));
|
|
46
|
+
S.displayName = "Alert";
|
|
47
|
+
const D = r.forwardRef(
|
|
65
48
|
({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("h5", { ref: o, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
|
|
66
49
|
);
|
|
67
|
-
|
|
68
|
-
const
|
|
50
|
+
D.displayName = "AlertTitle";
|
|
51
|
+
const T = r.forwardRef(
|
|
69
52
|
({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("div", { ref: o, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
|
|
70
53
|
);
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
n.Root,
|
|
74
|
-
{
|
|
75
|
-
ref: o,
|
|
76
|
-
className: s("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
|
|
77
|
-
...a
|
|
78
|
-
}
|
|
79
|
-
));
|
|
80
|
-
_.displayName = n.Root.displayName;
|
|
81
|
-
const A = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
54
|
+
T.displayName = "AlertDescription";
|
|
55
|
+
const X = n.Root, Y = n.Group, Z = n.Value, k = r.forwardRef(({ className: e, children: a, ...o }, l) => /* @__PURE__ */ t.jsxs(
|
|
82
56
|
n.Trigger,
|
|
83
57
|
{
|
|
84
|
-
ref:
|
|
85
|
-
className: s(
|
|
86
|
-
"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
87
|
-
e
|
|
88
|
-
),
|
|
89
|
-
...a
|
|
90
|
-
}
|
|
91
|
-
));
|
|
92
|
-
A.displayName = n.Trigger.displayName;
|
|
93
|
-
const P = r.forwardRef(({ className: e, inset: a, children: o, ...d }, c) => /* @__PURE__ */ t.jsxs(
|
|
94
|
-
n.SubTrigger,
|
|
95
|
-
{
|
|
96
|
-
ref: c,
|
|
97
|
-
className: s(
|
|
98
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
99
|
-
a && "pl-8",
|
|
100
|
-
e
|
|
101
|
-
),
|
|
102
|
-
...d,
|
|
103
|
-
children: [
|
|
104
|
-
o,
|
|
105
|
-
/* @__PURE__ */ t.jsx(w, { className: "ml-auto h-4 w-4" })
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
));
|
|
109
|
-
P.displayName = n.SubTrigger.displayName;
|
|
110
|
-
const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
111
|
-
n.SubContent,
|
|
112
|
-
{
|
|
113
|
-
ref: o,
|
|
114
|
-
className: s(
|
|
115
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
|
|
116
|
-
e
|
|
117
|
-
),
|
|
118
|
-
...a
|
|
119
|
-
}
|
|
120
|
-
));
|
|
121
|
-
G.displayName = n.SubContent.displayName;
|
|
122
|
-
const z = r.forwardRef(({ className: e, align: a = "start", alignOffset: o = -4, sideOffset: d = 8, ...c }, h) => /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
123
|
-
n.Content,
|
|
124
|
-
{
|
|
125
|
-
ref: h,
|
|
126
|
-
align: a,
|
|
127
|
-
alignOffset: o,
|
|
128
|
-
sideOffset: d,
|
|
129
|
-
className: s(
|
|
130
|
-
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
|
|
131
|
-
e
|
|
132
|
-
),
|
|
133
|
-
...c
|
|
134
|
-
}
|
|
135
|
-
) }));
|
|
136
|
-
z.displayName = n.Content.displayName;
|
|
137
|
-
const L = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
|
|
138
|
-
n.Item,
|
|
139
|
-
{
|
|
140
|
-
ref: d,
|
|
141
|
-
className: s(
|
|
142
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
143
|
-
a && "pl-8",
|
|
144
|
-
e
|
|
145
|
-
),
|
|
146
|
-
...o
|
|
147
|
-
}
|
|
148
|
-
));
|
|
149
|
-
L.displayName = n.Item.displayName;
|
|
150
|
-
const V = r.forwardRef(({ className: e, children: a, checked: o, ...d }, c) => /* @__PURE__ */ t.jsxs(
|
|
151
|
-
n.CheckboxItem,
|
|
152
|
-
{
|
|
153
|
-
ref: c,
|
|
154
|
-
className: s(
|
|
155
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
156
|
-
e
|
|
157
|
-
),
|
|
158
|
-
checked: o,
|
|
159
|
-
...d,
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(f, { className: "h-4 w-4" }) }) }),
|
|
162
|
-
a
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
));
|
|
166
|
-
V.displayName = n.CheckboxItem.displayName;
|
|
167
|
-
const H = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
|
|
168
|
-
n.RadioItem,
|
|
169
|
-
{
|
|
170
|
-
ref: d,
|
|
171
|
-
className: s(
|
|
172
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
173
|
-
e
|
|
174
|
-
),
|
|
175
|
-
...o,
|
|
176
|
-
children: [
|
|
177
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(v, { className: "h-4 w-4 fill-current" }) }) }),
|
|
178
|
-
a
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
));
|
|
182
|
-
H.displayName = n.RadioItem.displayName;
|
|
183
|
-
const F = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
|
|
184
|
-
n.Label,
|
|
185
|
-
{
|
|
186
|
-
ref: d,
|
|
187
|
-
className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
|
|
188
|
-
...o
|
|
189
|
-
}
|
|
190
|
-
));
|
|
191
|
-
F.displayName = n.Label.displayName;
|
|
192
|
-
const E = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(n.Separator, { ref: o, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
|
|
193
|
-
E.displayName = n.Separator.displayName;
|
|
194
|
-
const B = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
|
|
195
|
-
B.displayname = "MenubarShortcut";
|
|
196
|
-
const Ae = i.Root, Pe = i.Group, Ge = i.Value, O = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
|
|
197
|
-
i.Trigger,
|
|
198
|
-
{
|
|
199
|
-
ref: d,
|
|
58
|
+
ref: l,
|
|
200
59
|
className: s(
|
|
201
60
|
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
202
61
|
e
|
|
@@ -204,24 +63,24 @@ const Ae = i.Root, Pe = i.Group, Ge = i.Value, O = r.forwardRef(({ className: e,
|
|
|
204
63
|
...o,
|
|
205
64
|
children: [
|
|
206
65
|
a,
|
|
207
|
-
/* @__PURE__ */ t.jsx(
|
|
66
|
+
/* @__PURE__ */ t.jsx(n.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(b, { className: "h-4 w-4 opacity-50" }) })
|
|
208
67
|
]
|
|
209
68
|
}
|
|
210
69
|
));
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
|
|
70
|
+
k.displayName = n.Trigger.displayName;
|
|
71
|
+
const M = r.forwardRef(({ className: e, children: a, position: o = "popper", ...l }, m) => /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
72
|
+
n.Content,
|
|
214
73
|
{
|
|
215
|
-
ref:
|
|
74
|
+
ref: m,
|
|
216
75
|
className: s(
|
|
217
76
|
"relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
|
|
218
77
|
o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
219
78
|
e
|
|
220
79
|
),
|
|
221
80
|
position: o,
|
|
222
|
-
...
|
|
81
|
+
...l,
|
|
223
82
|
children: /* @__PURE__ */ t.jsx(
|
|
224
|
-
|
|
83
|
+
n.Viewport,
|
|
225
84
|
{
|
|
226
85
|
className: s(
|
|
227
86
|
"p-1",
|
|
@@ -232,31 +91,31 @@ const q = r.forwardRef(({ className: e, children: a, position: o = "popper", ...
|
|
|
232
91
|
)
|
|
233
92
|
}
|
|
234
93
|
) }));
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
94
|
+
M.displayName = n.Content.displayName;
|
|
95
|
+
const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(n.Label, { ref: o, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
|
|
96
|
+
R.displayName = n.Label.displayName;
|
|
97
|
+
const I = r.forwardRef(({ className: e, children: a, ...o }, l) => /* @__PURE__ */ t.jsxs(
|
|
98
|
+
n.Item,
|
|
240
99
|
{
|
|
241
|
-
ref:
|
|
100
|
+
ref: l,
|
|
242
101
|
className: s(
|
|
243
102
|
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
244
103
|
e
|
|
245
104
|
),
|
|
246
105
|
...o,
|
|
247
106
|
children: [
|
|
248
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(
|
|
249
|
-
/* @__PURE__ */ t.jsx(
|
|
107
|
+
/* @__PURE__ */ t.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(y, { className: "h-4 w-4" }) }) }),
|
|
108
|
+
/* @__PURE__ */ t.jsx(n.ItemText, { children: a })
|
|
250
109
|
]
|
|
251
110
|
}
|
|
252
111
|
));
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
112
|
+
I.displayName = n.Item.displayName;
|
|
113
|
+
const _ = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(n.Separator, { ref: o, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
|
|
114
|
+
_.displayName = n.Separator.displayName;
|
|
115
|
+
const ee = d.Root, ae = d.Trigger, te = d.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(d.Portal, { className: s(e), ...a });
|
|
116
|
+
u.displayName = d.Portal.displayName;
|
|
117
|
+
const g = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
118
|
+
d.Overlay,
|
|
260
119
|
{
|
|
261
120
|
className: s(
|
|
262
121
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -266,8 +125,8 @@ const x = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
266
125
|
ref: o
|
|
267
126
|
}
|
|
268
127
|
));
|
|
269
|
-
|
|
270
|
-
const
|
|
128
|
+
g.displayName = d.Overlay.displayName;
|
|
129
|
+
const A = c(
|
|
271
130
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
272
131
|
{
|
|
273
132
|
variants: {
|
|
@@ -282,29 +141,29 @@ const Q = p(
|
|
|
282
141
|
side: "right"
|
|
283
142
|
}
|
|
284
143
|
}
|
|
285
|
-
),
|
|
286
|
-
({ side: e = "right", className: a, children: o, ...
|
|
287
|
-
/* @__PURE__ */ t.jsx(
|
|
288
|
-
/* @__PURE__ */ t.jsxs(
|
|
144
|
+
), P = r.forwardRef(
|
|
145
|
+
({ side: e = "right", className: a, children: o, ...l }, m) => /* @__PURE__ */ t.jsxs(u, { children: [
|
|
146
|
+
/* @__PURE__ */ t.jsx(g, {}),
|
|
147
|
+
/* @__PURE__ */ t.jsxs(d.Content, { ref: m, className: s(A({ side: e }), a), ...l, children: [
|
|
289
148
|
o,
|
|
290
|
-
/* @__PURE__ */ t.jsxs(
|
|
291
|
-
/* @__PURE__ */ t.jsx(
|
|
149
|
+
/* @__PURE__ */ t.jsxs(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
150
|
+
/* @__PURE__ */ t.jsx(N, { className: "h-4 w-4" }),
|
|
292
151
|
/* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
|
|
293
152
|
] })
|
|
294
153
|
] })
|
|
295
154
|
] })
|
|
296
155
|
);
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
|
|
156
|
+
P.displayName = d.Content.displayName;
|
|
157
|
+
const V = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
158
|
+
V.displayName = "SheetHeader";
|
|
159
|
+
const G = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
160
|
+
G.displayName = "SheetFooter";
|
|
161
|
+
const L = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(d.Title, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...a }));
|
|
162
|
+
L.displayName = d.Title.displayName;
|
|
163
|
+
const H = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(d.Description, { ref: o, className: s("text-sm text-muted-foreground", e), ...a }));
|
|
164
|
+
H.displayName = d.Description.displayName;
|
|
165
|
+
const f = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
166
|
+
i,
|
|
308
167
|
{
|
|
309
168
|
ref: o,
|
|
310
169
|
className: s(
|
|
@@ -314,11 +173,11 @@ const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
314
173
|
...a
|
|
315
174
|
}
|
|
316
175
|
));
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
/* @__PURE__ */ t.jsx(
|
|
176
|
+
f.displayName = i.displayName;
|
|
177
|
+
const oe = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(x, { ...a, children: /* @__PURE__ */ t.jsx(h, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t.jsx(f, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), z = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
178
|
+
/* @__PURE__ */ t.jsx(w, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
320
179
|
/* @__PURE__ */ t.jsx(
|
|
321
|
-
|
|
180
|
+
i.Input,
|
|
322
181
|
{
|
|
323
182
|
ref: o,
|
|
324
183
|
className: s(
|
|
@@ -329,20 +188,20 @@ const He = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(y, { ...a, children:
|
|
|
329
188
|
}
|
|
330
189
|
)
|
|
331
190
|
] }));
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
191
|
+
z.displayName = i.Input.displayName;
|
|
192
|
+
const F = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
193
|
+
i.List,
|
|
335
194
|
{
|
|
336
195
|
ref: o,
|
|
337
196
|
className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
338
197
|
...a
|
|
339
198
|
}
|
|
340
199
|
));
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
200
|
+
F.displayName = i.List.displayName;
|
|
201
|
+
const E = r.forwardRef((e, a) => /* @__PURE__ */ t.jsx(i.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
|
|
202
|
+
E.displayName = i.Empty.displayName;
|
|
203
|
+
const B = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
204
|
+
i.Group,
|
|
346
205
|
{
|
|
347
206
|
ref: o,
|
|
348
207
|
className: s(
|
|
@@ -352,11 +211,11 @@ const oe = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
352
211
|
...a
|
|
353
212
|
}
|
|
354
213
|
));
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
|
|
214
|
+
B.displayName = i.Group.displayName;
|
|
215
|
+
const O = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Separator, { ref: o, className: s("-mx-1 h-px bg-border", e), ...a }));
|
|
216
|
+
O.displayName = i.Separator.displayName;
|
|
217
|
+
const q = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
218
|
+
i.Item,
|
|
360
219
|
{
|
|
361
220
|
ref: o,
|
|
362
221
|
className: s(
|
|
@@ -366,141 +225,125 @@ const re = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
366
225
|
...a
|
|
367
226
|
}
|
|
368
227
|
));
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
|
|
228
|
+
q.displayName = i.Item.displayName;
|
|
229
|
+
const $ = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
|
|
230
|
+
$.displayName = "CommandShortcut";
|
|
372
231
|
export {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
rt as TabsList,
|
|
491
|
-
nt as TabsTrigger,
|
|
492
|
-
dt as Textarea,
|
|
493
|
-
it as Toaster,
|
|
494
|
-
R as Toggle,
|
|
495
|
-
lt as Tooltip,
|
|
496
|
-
mt as TooltipContent,
|
|
497
|
-
ct as TooltipPortal,
|
|
498
|
-
pt as TooltipProvider,
|
|
499
|
-
ut as TooltipTrigger,
|
|
500
|
-
ft as badgeVariants,
|
|
501
|
-
gt as buttonVariants,
|
|
502
|
-
xt as reducer,
|
|
503
|
-
bt as toast,
|
|
504
|
-
M as toggleVariants,
|
|
505
|
-
ht as useToast
|
|
232
|
+
ne as Accordion,
|
|
233
|
+
de as AccordionContent,
|
|
234
|
+
ie as AccordionItem,
|
|
235
|
+
le as AccordionTrigger,
|
|
236
|
+
S as Alert,
|
|
237
|
+
T as AlertDescription,
|
|
238
|
+
me as AlertDialog,
|
|
239
|
+
ce as AlertDialogAction,
|
|
240
|
+
pe as AlertDialogCancel,
|
|
241
|
+
ue as AlertDialogContent,
|
|
242
|
+
ge as AlertDialogDescription,
|
|
243
|
+
fe as AlertDialogFooter,
|
|
244
|
+
xe as AlertDialogHeader,
|
|
245
|
+
he as AlertDialogTitle,
|
|
246
|
+
be as AlertDialogTrigger,
|
|
247
|
+
D as AlertTitle,
|
|
248
|
+
ye as Badge,
|
|
249
|
+
Ne as Button,
|
|
250
|
+
we as Card,
|
|
251
|
+
ve as CardContent,
|
|
252
|
+
Ce as CardDescription,
|
|
253
|
+
je as CardFooter,
|
|
254
|
+
Se as CardHeader,
|
|
255
|
+
De as CardTitle,
|
|
256
|
+
f as Command,
|
|
257
|
+
oe as CommandDialog,
|
|
258
|
+
E as CommandEmpty,
|
|
259
|
+
B as CommandGroup,
|
|
260
|
+
z as CommandInput,
|
|
261
|
+
q as CommandItem,
|
|
262
|
+
F as CommandList,
|
|
263
|
+
O as CommandSeparator,
|
|
264
|
+
$ as CommandShortcut,
|
|
265
|
+
Te as ContextMenu,
|
|
266
|
+
ke as ContextMenuCheckboxItem,
|
|
267
|
+
Me as ContextMenuContent,
|
|
268
|
+
Re as ContextMenuGroup,
|
|
269
|
+
Ie as ContextMenuItem,
|
|
270
|
+
_e as ContextMenuLabel,
|
|
271
|
+
Ae as ContextMenuPortal,
|
|
272
|
+
Pe as ContextMenuRadioGroup,
|
|
273
|
+
Ve as ContextMenuRadioItem,
|
|
274
|
+
Ge as ContextMenuSeparator,
|
|
275
|
+
Le as ContextMenuShortcut,
|
|
276
|
+
He as ContextMenuSub,
|
|
277
|
+
ze as ContextMenuSubContent,
|
|
278
|
+
Fe as ContextMenuSubTrigger,
|
|
279
|
+
Ee as ContextMenuTrigger,
|
|
280
|
+
x as Dialog,
|
|
281
|
+
h as DialogContent,
|
|
282
|
+
Be as DialogDescription,
|
|
283
|
+
Oe as DialogFooter,
|
|
284
|
+
qe as DialogHeader,
|
|
285
|
+
$e as DialogTitle,
|
|
286
|
+
Je as DialogTrigger,
|
|
287
|
+
Ke as DropdownMenu,
|
|
288
|
+
Qe as DropdownMenuCheckboxItem,
|
|
289
|
+
Ue as DropdownMenuContent,
|
|
290
|
+
We as DropdownMenuGroup,
|
|
291
|
+
Xe as DropdownMenuItem,
|
|
292
|
+
Ye as DropdownMenuLabel,
|
|
293
|
+
Ze as DropdownMenuPortal,
|
|
294
|
+
ea as DropdownMenuRadioGroup,
|
|
295
|
+
aa as DropdownMenuRadioItem,
|
|
296
|
+
ta as DropdownMenuSeparator,
|
|
297
|
+
oa as DropdownMenuShortcut,
|
|
298
|
+
sa as DropdownMenuSub,
|
|
299
|
+
ra as DropdownMenuSubContent,
|
|
300
|
+
na as DropdownMenuSubTrigger,
|
|
301
|
+
da as DropdownMenuTrigger,
|
|
302
|
+
ia as HoverCard,
|
|
303
|
+
la as HoverCardContent,
|
|
304
|
+
ma as HoverCardTrigger,
|
|
305
|
+
ca as Input,
|
|
306
|
+
pa as Label,
|
|
307
|
+
ua as Popover,
|
|
308
|
+
ga as PopoverContent,
|
|
309
|
+
fa as PopoverTrigger,
|
|
310
|
+
xa as ScrollArea,
|
|
311
|
+
ha as ScrollBar,
|
|
312
|
+
X as Select,
|
|
313
|
+
M as SelectContent,
|
|
314
|
+
Y as SelectGroup,
|
|
315
|
+
I as SelectItem,
|
|
316
|
+
R as SelectLabel,
|
|
317
|
+
_ as SelectSeparator,
|
|
318
|
+
k as SelectTrigger,
|
|
319
|
+
Z as SelectValue,
|
|
320
|
+
ba as Separator,
|
|
321
|
+
ee as Sheet,
|
|
322
|
+
te as SheetClose,
|
|
323
|
+
P as SheetContent,
|
|
324
|
+
H as SheetDescription,
|
|
325
|
+
G as SheetFooter,
|
|
326
|
+
V as SheetHeader,
|
|
327
|
+
L as SheetTitle,
|
|
328
|
+
ae as SheetTrigger,
|
|
329
|
+
ya as Skeleton,
|
|
330
|
+
Na as Switch,
|
|
331
|
+
wa as Tabs,
|
|
332
|
+
va as TabsContent,
|
|
333
|
+
Ca as TabsList,
|
|
334
|
+
ja as TabsTrigger,
|
|
335
|
+
Sa as Textarea,
|
|
336
|
+
Da as Toaster,
|
|
337
|
+
C as Toggle,
|
|
338
|
+
Ta as Tooltip,
|
|
339
|
+
ka as TooltipContent,
|
|
340
|
+
Ma as TooltipPortal,
|
|
341
|
+
Ra as TooltipProvider,
|
|
342
|
+
Ia as TooltipTrigger,
|
|
343
|
+
_a as badgeVariants,
|
|
344
|
+
Aa as buttonVariants,
|
|
345
|
+
Pa as reducer,
|
|
346
|
+
Va as toast,
|
|
347
|
+
v as toggleVariants,
|
|
348
|
+
Ga as useToast
|
|
506
349
|
};
|