@chaibuilder/sdk 2.0.0-beta.7 → 2.0.0-beta.72
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-Cort9tch.js +201 -0
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
- package/dist/CodeEditor-B2x4yruH.cjs +1 -0
- package/dist/CodeEditor-VcQsGvTM.js +65 -0
- package/dist/Topbar-BQsjWb-A.js +16 -0
- package/dist/Topbar-DEw_kBMz.cjs +1 -0
- package/dist/chaibuilder-logo.png +0 -0
- package/dist/context-menu-C4lLV8gP.cjs +1 -0
- package/dist/{context-menu-I8woggB3.js → context-menu-D5ViOi6K.js} +260 -263
- package/dist/core.cjs +61 -1
- package/dist/core.d.ts +116 -54
- package/dist/core.js +8819 -123
- package/dist/getSplitClasses-DodqA_KW.cjs +1 -0
- package/dist/getSplitClasses-DphwgQiE.js +48 -0
- package/dist/{iconBase-Ief2hJUZ.js → iconBase-DHfFLkem.js} +6 -12
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-2xcljWGM.cjs +1 -0
- package/dist/plugin-kUMxtQR5.js +24 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +35 -16
- package/dist/render.js +144 -134
- 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 +8 -10
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +6 -51
- package/dist/ui.js +210 -367
- package/dist/web-blocks.cjs +29 -2
- package/dist/web-blocks.js +1782 -831
- package/package.json +133 -132
- package/dist/CodeEditor-Bqjwy0VH.js +0 -127
- package/dist/CodeEditor-KUfhGPDN.cjs +0 -1
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-DQuMCOP6.cjs +0 -1
- package/dist/Topbar-g2pI6yGs.js +0 -161
- package/dist/context-menu-0lRey9QY.cjs +0 -1
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/index-1_ZADyhv.js +0 -8554
- package/dist/index-QyeR27V9.cjs +0 -61
- 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 {
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import * as u from "@radix-ui/react-toggle";
|
|
4
4
|
import { cva as p } from "class-variance-authority";
|
|
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(
|
|
5
|
+
import { c as s, D as h, a as b } from "./context-menu-D5ViOi6K.js";
|
|
6
|
+
import { A as de, g as ie, e as le, f as me, j as ce, q as pe, r as ue, l as ge, p as fe, n as xe, m as he, o as be, k as ye, h as Ne, B as we, C as ve, F as Ce, E as Se, y as De, x as Te, z as ke, aj as Me, an as Re, al as Ie, as as _e, am as Ae, ap as Pe, at as Ve, ax as Ge, ao as Le, aq as He, ar as je, au as ze, av as Fe, aw as Be, ak as Ee, w as Oe, u as qe, t as $e, v as Je, s as Ke, $ as Qe, a3 as Ue, a1 as We, a8 as Xe, a2 as Ye, a5 as Ze, a9 as ea, ad as aa, a4 as ta, a6 as oa, a7 as sa, aa as ra, ab as na, ac as da, a0 as ia, Y as la, _ as ma, Z as ca, I as pa, L as ua, V as ga, X as fa, W as xa, G as ha, H as ba, ae as ya, S as Na, b as wa, J as va, N as Ca, K as Sa, M as Da, T as Ta, ai as ka, O as Ma, Q as Ra, U as Ia, R as _a, P as Aa, i as Pa, d as Va, af as Ga, ah as La, ag as Ha } from "./context-menu-D5ViOi6K.js";
|
|
7
|
+
import { CaretSortIcon as y, CheckIcon as N, Cross2Icon as w, MagnifyingGlassIcon as v } 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 C = p(
|
|
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
|
+
), S = r.forwardRef(({ className: e, variant: a, size: t, ...l }, c) => /* @__PURE__ */ o(u.Root, { ref: c, className: s(C({ variant: a, size: t, className: e })), ...l }));
|
|
31
|
+
S.displayName = u.Root.displayName;
|
|
32
|
+
const D = p(
|
|
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,215 +42,91 @@ const T = p(
|
|
|
59
42
|
variant: "default"
|
|
60
43
|
}
|
|
61
44
|
}
|
|
62
|
-
),
|
|
63
|
-
|
|
45
|
+
), T = r.forwardRef(({ className: e, variant: a, ...t }, l) => /* @__PURE__ */ o("div", { ref: l, role: "alert", className: s(D({ variant: a }), e), ...t }));
|
|
46
|
+
T.displayName = "Alert";
|
|
64
47
|
const k = r.forwardRef(
|
|
65
|
-
({ className: e, ...a },
|
|
48
|
+
({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
|
|
66
49
|
);
|
|
67
50
|
k.displayName = "AlertTitle";
|
|
68
|
-
const
|
|
69
|
-
({ className: e, ...a },
|
|
51
|
+
const M = r.forwardRef(
|
|
52
|
+
({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, 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
|
+
M.displayName = "AlertDescription";
|
|
55
|
+
const Y = n.Root, Z = n.Group, ee = n.Value, R = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
|
|
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
|
|
203
62
|
),
|
|
204
|
-
...
|
|
63
|
+
...t,
|
|
205
64
|
children: [
|
|
206
65
|
a,
|
|
207
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ o(n.Icon, { asChild: !0, children: /* @__PURE__ */ o(y, { className: "h-4 w-4 opacity-50" }) })
|
|
208
67
|
]
|
|
209
68
|
}
|
|
210
69
|
));
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
|
|
70
|
+
R.displayName = n.Trigger.displayName;
|
|
71
|
+
const I = r.forwardRef(({ className: e, children: a, position: t = "popper", ...l }, c) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
|
|
72
|
+
n.Content,
|
|
214
73
|
{
|
|
215
74
|
ref: c,
|
|
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
|
+
t === "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
|
-
position:
|
|
222
|
-
...
|
|
223
|
-
children: /* @__PURE__ */
|
|
224
|
-
|
|
80
|
+
position: t,
|
|
81
|
+
...l,
|
|
82
|
+
children: /* @__PURE__ */ o(
|
|
83
|
+
n.Viewport,
|
|
225
84
|
{
|
|
226
85
|
className: s(
|
|
227
86
|
"p-1",
|
|
228
|
-
|
|
87
|
+
t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
229
88
|
),
|
|
230
89
|
children: a
|
|
231
90
|
}
|
|
232
91
|
)
|
|
233
92
|
}
|
|
234
93
|
) }));
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
94
|
+
I.displayName = n.Content.displayName;
|
|
95
|
+
const _ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
|
|
96
|
+
_.displayName = n.Label.displayName;
|
|
97
|
+
const A = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
|
|
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
|
+
...t,
|
|
247
106
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(N, { className: "h-4 w-4" }) }) }),
|
|
108
|
+
/* @__PURE__ */ o(n.ItemText, { children: a })
|
|
250
109
|
]
|
|
251
110
|
}
|
|
252
111
|
));
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
g.displayName =
|
|
258
|
-
const
|
|
259
|
-
|
|
112
|
+
A.displayName = n.Item.displayName;
|
|
113
|
+
const P = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
|
|
114
|
+
P.displayName = n.Separator.displayName;
|
|
115
|
+
const ae = d.Root, te = d.Trigger, oe = d.Close, g = ({ className: e, ...a }) => /* @__PURE__ */ o(d.Portal, { className: s(e), ...a });
|
|
116
|
+
g.displayName = d.Portal.displayName;
|
|
117
|
+
const f = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
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",
|
|
263
122
|
e
|
|
264
123
|
),
|
|
265
124
|
...a,
|
|
266
|
-
ref:
|
|
125
|
+
ref: t
|
|
267
126
|
}
|
|
268
127
|
));
|
|
269
|
-
|
|
270
|
-
const
|
|
128
|
+
f.displayName = d.Overlay.displayName;
|
|
129
|
+
const V = p(
|
|
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,31 +141,31 @@ const Q = p(
|
|
|
282
141
|
side: "right"
|
|
283
142
|
}
|
|
284
143
|
}
|
|
285
|
-
),
|
|
286
|
-
({ side: e = "right", className: a, children:
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
144
|
+
), G = r.forwardRef(
|
|
145
|
+
({ side: e = "right", className: a, children: t, ...l }, c) => /* @__PURE__ */ m(g, { children: [
|
|
146
|
+
/* @__PURE__ */ o(f, {}),
|
|
147
|
+
/* @__PURE__ */ m(d.Content, { ref: c, className: s(V({ side: e }), a), ...l, children: [
|
|
148
|
+
t,
|
|
149
|
+
/* @__PURE__ */ m(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__ */ o(w, { className: "h-4 w-4" }),
|
|
151
|
+
/* @__PURE__ */ o("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
|
+
G.displayName = d.Content.displayName;
|
|
157
|
+
const L = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
158
|
+
L.displayName = "SheetHeader";
|
|
159
|
+
const H = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
160
|
+
H.displayName = "SheetFooter";
|
|
161
|
+
const j = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", e), ...a }));
|
|
162
|
+
j.displayName = d.Title.displayName;
|
|
163
|
+
const z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
|
|
164
|
+
z.displayName = d.Description.displayName;
|
|
165
|
+
const x = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
166
|
+
i,
|
|
308
167
|
{
|
|
309
|
-
ref:
|
|
168
|
+
ref: t,
|
|
310
169
|
className: s(
|
|
311
170
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
312
171
|
e
|
|
@@ -314,13 +173,13 @@ const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
314
173
|
...a
|
|
315
174
|
}
|
|
316
175
|
));
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
|
|
176
|
+
x.displayName = i.displayName;
|
|
177
|
+
const se = ({ children: e, ...a }) => /* @__PURE__ */ o(h, { ...a, children: /* @__PURE__ */ o(b, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(x, { 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 }) }) }), F = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ m("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
178
|
+
/* @__PURE__ */ o(v, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
179
|
+
/* @__PURE__ */ o(
|
|
180
|
+
i.Input,
|
|
322
181
|
{
|
|
323
|
-
ref:
|
|
182
|
+
ref: t,
|
|
324
183
|
className: s(
|
|
325
184
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
326
185
|
e
|
|
@@ -329,22 +188,22 @@ const He = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(y, { ...a, children:
|
|
|
329
188
|
}
|
|
330
189
|
)
|
|
331
190
|
] }));
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
191
|
+
F.displayName = i.Input.displayName;
|
|
192
|
+
const B = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
193
|
+
i.List,
|
|
335
194
|
{
|
|
336
|
-
ref:
|
|
195
|
+
ref: t,
|
|
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
|
+
B.displayName = i.List.displayName;
|
|
201
|
+
const E = r.forwardRef((e, a) => /* @__PURE__ */ o(i.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
|
|
202
|
+
E.displayName = i.Empty.displayName;
|
|
203
|
+
const O = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
204
|
+
i.Group,
|
|
346
205
|
{
|
|
347
|
-
ref:
|
|
206
|
+
ref: t,
|
|
348
207
|
className: s(
|
|
349
208
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
350
209
|
e
|
|
@@ -352,13 +211,13 @@ 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
|
+
O.displayName = i.Group.displayName;
|
|
215
|
+
const q = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(i.Separator, { ref: t, className: s("-mx-1 h-px bg-border", e), ...a }));
|
|
216
|
+
q.displayName = i.Separator.displayName;
|
|
217
|
+
const $ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
218
|
+
i.Item,
|
|
360
219
|
{
|
|
361
|
-
ref:
|
|
220
|
+
ref: t,
|
|
362
221
|
className: s(
|
|
363
222
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
364
223
|
e
|
|
@@ -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
|
+
$.displayName = i.Item.displayName;
|
|
229
|
+
const J = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
|
|
230
|
+
J.displayName = "CommandShortcut";
|
|
372
231
|
export {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
232
|
+
de as Accordion,
|
|
233
|
+
ie as AccordionContent,
|
|
234
|
+
le as AccordionItem,
|
|
235
|
+
me as AccordionTrigger,
|
|
236
|
+
T as Alert,
|
|
237
|
+
M as AlertDescription,
|
|
238
|
+
ce as AlertDialog,
|
|
239
|
+
pe as AlertDialogAction,
|
|
240
|
+
ue as AlertDialogCancel,
|
|
241
|
+
ge as AlertDialogContent,
|
|
242
|
+
fe as AlertDialogDescription,
|
|
243
|
+
xe as AlertDialogFooter,
|
|
244
|
+
he as AlertDialogHeader,
|
|
245
|
+
be as AlertDialogTitle,
|
|
246
|
+
ye as AlertDialogTrigger,
|
|
388
247
|
k as AlertTitle,
|
|
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
|
|
248
|
+
Ne as Badge,
|
|
249
|
+
we as Button,
|
|
250
|
+
ve as Card,
|
|
251
|
+
Ce as CardContent,
|
|
252
|
+
Se as CardDescription,
|
|
253
|
+
De as CardFooter,
|
|
254
|
+
Te as CardHeader,
|
|
255
|
+
ke as CardTitle,
|
|
256
|
+
x as Command,
|
|
257
|
+
se as CommandDialog,
|
|
258
|
+
E as CommandEmpty,
|
|
259
|
+
O as CommandGroup,
|
|
260
|
+
F as CommandInput,
|
|
261
|
+
$ as CommandItem,
|
|
262
|
+
B as CommandList,
|
|
263
|
+
q as CommandSeparator,
|
|
264
|
+
J as CommandShortcut,
|
|
265
|
+
Me as ContextMenu,
|
|
266
|
+
Re as ContextMenuCheckboxItem,
|
|
267
|
+
Ie as ContextMenuContent,
|
|
268
|
+
_e as ContextMenuGroup,
|
|
269
|
+
Ae as ContextMenuItem,
|
|
270
|
+
Pe as ContextMenuLabel,
|
|
271
|
+
Ve as ContextMenuPortal,
|
|
272
|
+
Ge as ContextMenuRadioGroup,
|
|
273
|
+
Le as ContextMenuRadioItem,
|
|
274
|
+
He as ContextMenuSeparator,
|
|
275
|
+
je as ContextMenuShortcut,
|
|
276
|
+
ze as ContextMenuSub,
|
|
277
|
+
Fe as ContextMenuSubContent,
|
|
278
|
+
Be as ContextMenuSubTrigger,
|
|
279
|
+
Ee as ContextMenuTrigger,
|
|
280
|
+
h as Dialog,
|
|
281
|
+
b as DialogContent,
|
|
282
|
+
Oe as DialogDescription,
|
|
283
|
+
qe as DialogFooter,
|
|
284
|
+
$e as DialogHeader,
|
|
285
|
+
Je as DialogTitle,
|
|
286
|
+
Ke as DialogTrigger,
|
|
287
|
+
Qe as DropdownMenu,
|
|
288
|
+
Ue as DropdownMenuCheckboxItem,
|
|
289
|
+
We as DropdownMenuContent,
|
|
290
|
+
Xe as DropdownMenuGroup,
|
|
291
|
+
Ye as DropdownMenuItem,
|
|
292
|
+
Ze as DropdownMenuLabel,
|
|
293
|
+
ea as DropdownMenuPortal,
|
|
294
|
+
aa as DropdownMenuRadioGroup,
|
|
295
|
+
ta as DropdownMenuRadioItem,
|
|
296
|
+
oa as DropdownMenuSeparator,
|
|
297
|
+
sa as DropdownMenuShortcut,
|
|
298
|
+
ra as DropdownMenuSub,
|
|
299
|
+
na as DropdownMenuSubContent,
|
|
300
|
+
da as DropdownMenuSubTrigger,
|
|
301
|
+
ia as DropdownMenuTrigger,
|
|
302
|
+
la as HoverCard,
|
|
303
|
+
ma as HoverCardContent,
|
|
304
|
+
ca as HoverCardTrigger,
|
|
305
|
+
pa as Input,
|
|
306
|
+
ua as Label,
|
|
307
|
+
ga as Popover,
|
|
308
|
+
fa as PopoverContent,
|
|
309
|
+
xa as PopoverTrigger,
|
|
310
|
+
ha as ScrollArea,
|
|
311
|
+
ba as ScrollBar,
|
|
312
|
+
Y as Select,
|
|
313
|
+
I as SelectContent,
|
|
314
|
+
Z as SelectGroup,
|
|
315
|
+
A as SelectItem,
|
|
316
|
+
_ as SelectLabel,
|
|
317
|
+
P as SelectSeparator,
|
|
318
|
+
R as SelectTrigger,
|
|
319
|
+
ee as SelectValue,
|
|
320
|
+
ya as Separator,
|
|
321
|
+
ae as Sheet,
|
|
322
|
+
oe as SheetClose,
|
|
323
|
+
G as SheetContent,
|
|
324
|
+
z as SheetDescription,
|
|
325
|
+
H as SheetFooter,
|
|
326
|
+
L as SheetHeader,
|
|
327
|
+
j as SheetTitle,
|
|
328
|
+
te as SheetTrigger,
|
|
329
|
+
Na as Skeleton,
|
|
330
|
+
wa as Switch,
|
|
331
|
+
va as Tabs,
|
|
332
|
+
Ca as TabsContent,
|
|
333
|
+
Sa as TabsList,
|
|
334
|
+
Da as TabsTrigger,
|
|
335
|
+
Ta as Textarea,
|
|
336
|
+
ka as Toaster,
|
|
337
|
+
S as Toggle,
|
|
338
|
+
Ma as Tooltip,
|
|
339
|
+
Ra as TooltipContent,
|
|
340
|
+
Ia as TooltipPortal,
|
|
341
|
+
_a as TooltipProvider,
|
|
342
|
+
Aa as TooltipTrigger,
|
|
343
|
+
Pa as badgeVariants,
|
|
344
|
+
Va as buttonVariants,
|
|
345
|
+
Ga as reducer,
|
|
346
|
+
La as toast,
|
|
347
|
+
C as toggleVariants,
|
|
348
|
+
Ha as useToast
|
|
506
349
|
};
|