@chaibuilder/sdk 2.0.0-beta.9 → 2.0.0-beta.91
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 +1 -3
- package/dist/ChaiThemeFn-DcE5RdLQ.cjs +236 -0
- package/dist/ChaiThemeFn-DzirXKjI.js +237 -0
- package/dist/CodeEditor-C8_JzwHn.cjs +81 -0
- package/dist/CodeEditor-DdIk_PEV.js +81 -0
- package/dist/Topbar-62QmCKWL.cjs +18 -0
- package/dist/Topbar-Cqt0j3Yt.js +18 -0
- package/dist/chaibuilder-logo.png +0 -0
- package/dist/context-menu-DHla8ofZ.js +893 -0
- package/dist/context-menu-DawHUIXd.cjs +923 -0
- package/dist/core.cjs +11589 -18
- package/dist/core.d.ts +108 -47
- package/dist/core.js +9555 -6679
- package/dist/getSplitClasses-BuALfSLX.js +54 -0
- package/dist/getSplitClasses-mbQmvwI3.cjs +53 -0
- package/dist/iconBase-BSrIcOaG.cjs +146 -0
- package/dist/iconBase-CWgVxu0A.js +147 -0
- package/dist/mockServiceWorker.js +39 -24
- package/dist/plugin-BcTnEZwx.cjs +26 -0
- package/dist/plugin-DGEKY3uC.js +27 -0
- package/dist/render.cjs +247 -2
- package/dist/render.d.ts +41 -16
- package/dist/render.js +224 -142
- package/dist/runtime.cjs +9 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +0 -20
- package/dist/sdk.css +1341 -0
- package/dist/tailwind.cjs +78 -1
- package/dist/tailwind.d.ts +37 -26
- package/dist/tailwind.js +21 -21
- package/dist/ui.cjs +378 -1
- package/dist/ui.d.ts +12 -51
- package/dist/ui.js +262 -349
- package/dist/web-blocks.cjs +1679 -2
- package/dist/web-blocks.d.ts +6 -0
- package/dist/web-blocks.js +1502 -856
- package/package.json +135 -132
- package/dist/CodeEditor-19TqmVgI.cjs +0 -1
- package/dist/CodeEditor-b5DU6y6j.js +0 -126
- package/dist/STRINGS-Xxstm-7I.js +0 -7
- package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
- package/dist/Topbar-lGFRGO4j.js +0 -73
- package/dist/Topbar-ql6BS8c6.cjs +0 -1
- package/dist/context-menu-MPtzs1fu.cjs +0 -1
- package/dist/context-menu-XEyVy2qm.js +0 -903
- package/dist/controls-lEwMTdPQ.js +0 -234
- package/dist/controls-p9IwFnPx.cjs +0 -1
- package/dist/iconBase-Ief2hJUZ.js +0 -130
- package/dist/iconBase-aZzpqff_.cjs +0 -1
- package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
- package/dist/jsx-runtime-Sp0orL4X.js +0 -631
- package/dist/plugin-Dm5EFGnP.cjs +0 -1
- package/dist/plugin-KIpT3NWi.cjs +0 -1
- package/dist/plugin-PFjzFeON.js +0 -97
- package/dist/plugin-ooqqxWRQ.js +0 -55
- package/dist/style.css +0 -6
package/dist/ui.js
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva
|
|
5
|
-
import { c as
|
|
6
|
-
import { A
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import { Command as
|
|
11
|
-
|
|
12
|
-
import "@radix-ui/react-accordion";
|
|
13
|
-
import "@radix-ui/react-alert-dialog";
|
|
14
|
-
import "@radix-ui/react-slot";
|
|
15
|
-
import "@radix-ui/react-label";
|
|
16
|
-
import "@radix-ui/react-scroll-area";
|
|
17
|
-
import "@radix-ui/react-tabs";
|
|
18
|
-
import "@radix-ui/react-tooltip";
|
|
19
|
-
import "@radix-ui/react-popover";
|
|
20
|
-
import "@radix-ui/react-hover-card";
|
|
21
|
-
import "@radix-ui/react-select";
|
|
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 j = c(
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { c as cn, D as Dialog, a as DialogContent } from "./context-menu-DHla8ofZ.js";
|
|
6
|
+
import { A, g, e, f, j, q, r, l, p, n, m, o, k, h, B, C, F, E, y, x, z, aj, an, al, as, am, ap, at, ax, ao, aq, ar, au, av, aw, ak, w, u, t, v, s, $, a3, a1, a8, a2, a5, a9, ad, a4, a6, a7, aa, ab, ac, a0, Y, _, Z, I, L, V, X, W, G, H, ae, S, b, J, N, K, M, T, ai, O, Q, U, R, P, i, d, af, ah, ag } from "./context-menu-DHla8ofZ.js";
|
|
7
|
+
import { CaretSortIcon, CheckIcon, Cross2Icon, MagnifyingGlassIcon } from "@radix-ui/react-icons";
|
|
8
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
9
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
10
|
+
import { Command as Command$1 } from "cmdk";
|
|
11
|
+
const toggleVariants = cva(
|
|
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,10 @@ const j = c(
|
|
|
44
27
|
size: "default"
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
);
|
|
31
|
+
const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
32
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
33
|
+
const alertVariants = cva(
|
|
50
34
|
"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
35
|
{
|
|
52
36
|
variants: {
|
|
@@ -59,155 +43,98 @@ const M = c(
|
|
|
59
43
|
variant: "default"
|
|
60
44
|
}
|
|
61
45
|
}
|
|
62
|
-
), D = n.forwardRef(({ className: e, variant: a, ...o }, d) => /* @__PURE__ */ t.jsx("div", { ref: d, role: "alert", className: s(M({ variant: a }), e), ...o }));
|
|
63
|
-
D.displayName = "Alert";
|
|
64
|
-
const R = n.forwardRef(
|
|
65
|
-
({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("h5", { ref: o, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
|
|
66
46
|
);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
47
|
+
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
48
|
+
Alert.displayName = "Alert";
|
|
49
|
+
const AlertTitle = React.forwardRef(
|
|
50
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
70
51
|
);
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
const I = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
82
|
-
r.Trigger,
|
|
83
|
-
{
|
|
84
|
-
ref: o,
|
|
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
|
-
I.displayName = r.Trigger.displayName;
|
|
93
|
-
const _ = n.forwardRef(({ className: e, inset: a, children: o, ...d }, m) => /* @__PURE__ */ t.jsxs(
|
|
94
|
-
r.SubTrigger,
|
|
52
|
+
AlertTitle.displayName = "AlertTitle";
|
|
53
|
+
const AlertDescription = React.forwardRef(
|
|
54
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
55
|
+
);
|
|
56
|
+
AlertDescription.displayName = "AlertDescription";
|
|
57
|
+
const Select = SelectPrimitive.Root;
|
|
58
|
+
const SelectGroup = SelectPrimitive.Group;
|
|
59
|
+
const SelectValue = SelectPrimitive.Value;
|
|
60
|
+
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
61
|
+
SelectPrimitive.Trigger,
|
|
95
62
|
{
|
|
96
|
-
ref
|
|
97
|
-
className:
|
|
98
|
-
"flex
|
|
99
|
-
|
|
100
|
-
e
|
|
63
|
+
ref,
|
|
64
|
+
className: cn(
|
|
65
|
+
"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",
|
|
66
|
+
className
|
|
101
67
|
),
|
|
102
|
-
...
|
|
68
|
+
...props,
|
|
103
69
|
children: [
|
|
104
|
-
|
|
105
|
-
/* @__PURE__ */
|
|
70
|
+
children,
|
|
71
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
|
|
106
72
|
]
|
|
107
73
|
}
|
|
108
74
|
));
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
|
|
75
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
76
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
77
|
+
SelectPrimitive.Content,
|
|
112
78
|
{
|
|
113
|
-
ref
|
|
114
|
-
className:
|
|
115
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover
|
|
116
|
-
|
|
79
|
+
ref,
|
|
80
|
+
className: cn(
|
|
81
|
+
"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",
|
|
82
|
+
position === "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",
|
|
83
|
+
className
|
|
117
84
|
),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
...m
|
|
85
|
+
position,
|
|
86
|
+
...props,
|
|
87
|
+
children: /* @__PURE__ */ jsx(
|
|
88
|
+
SelectPrimitive.Viewport,
|
|
89
|
+
{
|
|
90
|
+
className: cn(
|
|
91
|
+
"p-1",
|
|
92
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
93
|
+
),
|
|
94
|
+
children
|
|
95
|
+
}
|
|
96
|
+
)
|
|
134
97
|
}
|
|
135
98
|
) }));
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
99
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
100
|
+
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", className), ...props }));
|
|
101
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
102
|
+
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
103
|
+
SelectPrimitive.Item,
|
|
139
104
|
{
|
|
140
|
-
ref
|
|
141
|
-
className:
|
|
142
|
-
"relative flex cursor-default select-none items-center rounded-sm
|
|
143
|
-
|
|
144
|
-
e
|
|
105
|
+
ref,
|
|
106
|
+
className: cn(
|
|
107
|
+
"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",
|
|
108
|
+
className
|
|
145
109
|
),
|
|
146
|
-
...
|
|
147
|
-
}
|
|
148
|
-
));
|
|
149
|
-
G.displayName = r.Item.displayName;
|
|
150
|
-
const z = n.forwardRef(({ className: e, children: a, checked: o, ...d }, m) => /* @__PURE__ */ t.jsxs(
|
|
151
|
-
r.CheckboxItem,
|
|
152
|
-
{
|
|
153
|
-
ref: m,
|
|
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(r.ItemIndicator, { children: /* @__PURE__ */ t.jsx(N, { className: "h-4 w-4" }) }) }),
|
|
162
|
-
a
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
));
|
|
166
|
-
z.displayName = r.CheckboxItem.displayName;
|
|
167
|
-
const L = n.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ t.jsxs(
|
|
168
|
-
r.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,
|
|
110
|
+
...props,
|
|
176
111
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
|
|
112
|
+
/* @__PURE__ */ jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4" }) }) }),
|
|
113
|
+
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
179
114
|
]
|
|
180
115
|
}
|
|
181
116
|
));
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
|
|
117
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
118
|
+
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
119
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
120
|
+
const Sheet = SheetPrimitive.Root;
|
|
121
|
+
const SheetTrigger = SheetPrimitive.Trigger;
|
|
122
|
+
const SheetClose = SheetPrimitive.Close;
|
|
123
|
+
const SheetPortal = ({ className, ...props }) => /* @__PURE__ */ jsx(SheetPrimitive.Portal, { className: cn(className), ...props });
|
|
124
|
+
SheetPortal.displayName = SheetPrimitive.Portal.displayName;
|
|
125
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
126
|
+
SheetPrimitive.Overlay,
|
|
185
127
|
{
|
|
186
|
-
|
|
187
|
-
className: s("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
|
|
188
|
-
...o
|
|
189
|
-
}
|
|
190
|
-
));
|
|
191
|
-
V.displayName = r.Label.displayName;
|
|
192
|
-
const H = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(r.Separator, { ref: o, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
|
|
193
|
-
H.displayName = r.Separator.displayName;
|
|
194
|
-
const F = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
|
|
195
|
-
F.displayname = "MenubarShortcut";
|
|
196
|
-
const De = i.Root, Re = i.Trigger, Te = i.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(i.Portal, { className: s(e), ...a });
|
|
197
|
-
u.displayName = i.Portal.displayName;
|
|
198
|
-
const f = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
199
|
-
i.Overlay,
|
|
200
|
-
{
|
|
201
|
-
className: s(
|
|
128
|
+
className: cn(
|
|
202
129
|
"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",
|
|
203
|
-
|
|
130
|
+
className
|
|
204
131
|
),
|
|
205
|
-
...
|
|
206
|
-
ref
|
|
132
|
+
...props,
|
|
133
|
+
ref
|
|
207
134
|
}
|
|
208
135
|
));
|
|
209
|
-
|
|
210
|
-
const
|
|
136
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
137
|
+
const sheetVariants = cva(
|
|
211
138
|
"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",
|
|
212
139
|
{
|
|
213
140
|
variants: {
|
|
@@ -222,225 +149,211 @@ const E = c(
|
|
|
222
149
|
side: "right"
|
|
223
150
|
}
|
|
224
151
|
}
|
|
225
|
-
)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
/* @__PURE__ */
|
|
152
|
+
);
|
|
153
|
+
const SheetContent = React.forwardRef(
|
|
154
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
155
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
156
|
+
/* @__PURE__ */ jsxs(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
157
|
+
children,
|
|
158
|
+
/* @__PURE__ */ jsxs(SheetPrimitive.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: [
|
|
159
|
+
/* @__PURE__ */ jsx(Cross2Icon, { className: "h-4 w-4" }),
|
|
160
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
233
161
|
] })
|
|
234
162
|
] })
|
|
235
163
|
] })
|
|
236
164
|
);
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
165
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
166
|
+
const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
167
|
+
SheetHeader.displayName = "SheetHeader";
|
|
168
|
+
const SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
169
|
+
SheetFooter.displayName = "SheetFooter";
|
|
170
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
171
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
172
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
173
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
174
|
+
const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
175
|
+
Command$1,
|
|
248
176
|
{
|
|
249
|
-
ref
|
|
250
|
-
className:
|
|
177
|
+
ref,
|
|
178
|
+
className: cn(
|
|
251
179
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
252
|
-
|
|
180
|
+
className
|
|
253
181
|
),
|
|
254
|
-
...
|
|
182
|
+
...props
|
|
255
183
|
}
|
|
256
184
|
));
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
185
|
+
Command.displayName = Command$1.displayName;
|
|
186
|
+
const CommandDialog = ({ children, ...props }) => /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { 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 }) }) });
|
|
187
|
+
const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
188
|
+
/* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
189
|
+
/* @__PURE__ */ jsx(
|
|
190
|
+
Command$1.Input,
|
|
262
191
|
{
|
|
263
|
-
ref
|
|
264
|
-
className:
|
|
192
|
+
ref,
|
|
193
|
+
className: cn(
|
|
265
194
|
"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",
|
|
266
|
-
|
|
195
|
+
className
|
|
267
196
|
),
|
|
268
|
-
...
|
|
197
|
+
...props
|
|
269
198
|
}
|
|
270
199
|
)
|
|
271
200
|
] }));
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
|
|
201
|
+
CommandInput.displayName = Command$1.Input.displayName;
|
|
202
|
+
const CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
203
|
+
Command$1.List,
|
|
275
204
|
{
|
|
276
|
-
ref
|
|
277
|
-
className:
|
|
278
|
-
...
|
|
205
|
+
ref,
|
|
206
|
+
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
207
|
+
...props
|
|
279
208
|
}
|
|
280
209
|
));
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
|
|
210
|
+
CommandList.displayName = Command$1.List.displayName;
|
|
211
|
+
const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
212
|
+
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
213
|
+
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
214
|
+
Command$1.Group,
|
|
286
215
|
{
|
|
287
|
-
ref
|
|
288
|
-
className:
|
|
216
|
+
ref,
|
|
217
|
+
className: cn(
|
|
289
218
|
"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",
|
|
290
|
-
|
|
219
|
+
className
|
|
291
220
|
),
|
|
292
|
-
...
|
|
221
|
+
...props
|
|
293
222
|
}
|
|
294
223
|
));
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
224
|
+
CommandGroup.displayName = Command$1.Group.displayName;
|
|
225
|
+
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
226
|
+
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
227
|
+
const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
228
|
+
Command$1.Item,
|
|
300
229
|
{
|
|
301
|
-
ref
|
|
302
|
-
className:
|
|
230
|
+
ref,
|
|
231
|
+
className: cn(
|
|
303
232
|
"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",
|
|
304
|
-
|
|
233
|
+
className
|
|
305
234
|
),
|
|
306
|
-
...
|
|
235
|
+
...props
|
|
307
236
|
}
|
|
308
237
|
));
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
|
|
238
|
+
CommandItem.displayName = Command$1.Item.displayName;
|
|
239
|
+
const CommandShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
240
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
312
241
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
st as TabsList,
|
|
431
|
-
rt as TabsTrigger,
|
|
432
|
-
nt as Textarea,
|
|
433
|
-
dt as Toaster,
|
|
434
|
-
S as Toggle,
|
|
435
|
-
it as Tooltip,
|
|
436
|
-
lt as TooltipContent,
|
|
437
|
-
mt as TooltipPortal,
|
|
438
|
-
ct as TooltipProvider,
|
|
439
|
-
pt as TooltipTrigger,
|
|
440
|
-
ut as badgeVariants,
|
|
441
|
-
ft as buttonVariants,
|
|
442
|
-
gt as reducer,
|
|
443
|
-
xt as toast,
|
|
444
|
-
j as toggleVariants,
|
|
445
|
-
bt as useToast
|
|
242
|
+
A as Accordion,
|
|
243
|
+
g as AccordionContent,
|
|
244
|
+
e as AccordionItem,
|
|
245
|
+
f as AccordionTrigger,
|
|
246
|
+
Alert,
|
|
247
|
+
AlertDescription,
|
|
248
|
+
j as AlertDialog,
|
|
249
|
+
q as AlertDialogAction,
|
|
250
|
+
r as AlertDialogCancel,
|
|
251
|
+
l as AlertDialogContent,
|
|
252
|
+
p as AlertDialogDescription,
|
|
253
|
+
n as AlertDialogFooter,
|
|
254
|
+
m as AlertDialogHeader,
|
|
255
|
+
o as AlertDialogTitle,
|
|
256
|
+
k as AlertDialogTrigger,
|
|
257
|
+
AlertTitle,
|
|
258
|
+
h as Badge,
|
|
259
|
+
B as Button,
|
|
260
|
+
C as Card,
|
|
261
|
+
F as CardContent,
|
|
262
|
+
E as CardDescription,
|
|
263
|
+
y as CardFooter,
|
|
264
|
+
x as CardHeader,
|
|
265
|
+
z as CardTitle,
|
|
266
|
+
Command,
|
|
267
|
+
CommandDialog,
|
|
268
|
+
CommandEmpty,
|
|
269
|
+
CommandGroup,
|
|
270
|
+
CommandInput,
|
|
271
|
+
CommandItem,
|
|
272
|
+
CommandList,
|
|
273
|
+
CommandSeparator,
|
|
274
|
+
CommandShortcut,
|
|
275
|
+
aj as ContextMenu,
|
|
276
|
+
an as ContextMenuCheckboxItem,
|
|
277
|
+
al as ContextMenuContent,
|
|
278
|
+
as as ContextMenuGroup,
|
|
279
|
+
am as ContextMenuItem,
|
|
280
|
+
ap as ContextMenuLabel,
|
|
281
|
+
at as ContextMenuPortal,
|
|
282
|
+
ax as ContextMenuRadioGroup,
|
|
283
|
+
ao as ContextMenuRadioItem,
|
|
284
|
+
aq as ContextMenuSeparator,
|
|
285
|
+
ar as ContextMenuShortcut,
|
|
286
|
+
au as ContextMenuSub,
|
|
287
|
+
av as ContextMenuSubContent,
|
|
288
|
+
aw as ContextMenuSubTrigger,
|
|
289
|
+
ak as ContextMenuTrigger,
|
|
290
|
+
Dialog,
|
|
291
|
+
DialogContent,
|
|
292
|
+
w as DialogDescription,
|
|
293
|
+
u as DialogFooter,
|
|
294
|
+
t as DialogHeader,
|
|
295
|
+
v as DialogTitle,
|
|
296
|
+
s as DialogTrigger,
|
|
297
|
+
$ as DropdownMenu,
|
|
298
|
+
a3 as DropdownMenuCheckboxItem,
|
|
299
|
+
a1 as DropdownMenuContent,
|
|
300
|
+
a8 as DropdownMenuGroup,
|
|
301
|
+
a2 as DropdownMenuItem,
|
|
302
|
+
a5 as DropdownMenuLabel,
|
|
303
|
+
a9 as DropdownMenuPortal,
|
|
304
|
+
ad as DropdownMenuRadioGroup,
|
|
305
|
+
a4 as DropdownMenuRadioItem,
|
|
306
|
+
a6 as DropdownMenuSeparator,
|
|
307
|
+
a7 as DropdownMenuShortcut,
|
|
308
|
+
aa as DropdownMenuSub,
|
|
309
|
+
ab as DropdownMenuSubContent,
|
|
310
|
+
ac as DropdownMenuSubTrigger,
|
|
311
|
+
a0 as DropdownMenuTrigger,
|
|
312
|
+
Y as HoverCard,
|
|
313
|
+
_ as HoverCardContent,
|
|
314
|
+
Z as HoverCardTrigger,
|
|
315
|
+
I as Input,
|
|
316
|
+
L as Label,
|
|
317
|
+
V as Popover,
|
|
318
|
+
X as PopoverContent,
|
|
319
|
+
W as PopoverTrigger,
|
|
320
|
+
G as ScrollArea,
|
|
321
|
+
H as ScrollBar,
|
|
322
|
+
Select,
|
|
323
|
+
SelectContent,
|
|
324
|
+
SelectGroup,
|
|
325
|
+
SelectItem,
|
|
326
|
+
SelectLabel,
|
|
327
|
+
SelectSeparator,
|
|
328
|
+
SelectTrigger,
|
|
329
|
+
SelectValue,
|
|
330
|
+
ae as Separator,
|
|
331
|
+
Sheet,
|
|
332
|
+
SheetClose,
|
|
333
|
+
SheetContent,
|
|
334
|
+
SheetDescription,
|
|
335
|
+
SheetFooter,
|
|
336
|
+
SheetHeader,
|
|
337
|
+
SheetTitle,
|
|
338
|
+
SheetTrigger,
|
|
339
|
+
S as Skeleton,
|
|
340
|
+
b as Switch,
|
|
341
|
+
J as Tabs,
|
|
342
|
+
N as TabsContent,
|
|
343
|
+
K as TabsList,
|
|
344
|
+
M as TabsTrigger,
|
|
345
|
+
T as Textarea,
|
|
346
|
+
ai as Toaster,
|
|
347
|
+
Toggle,
|
|
348
|
+
O as Tooltip,
|
|
349
|
+
Q as TooltipContent,
|
|
350
|
+
U as TooltipPortal,
|
|
351
|
+
R as TooltipProvider,
|
|
352
|
+
P as TooltipTrigger,
|
|
353
|
+
i as badgeVariants,
|
|
354
|
+
d as buttonVariants,
|
|
355
|
+
af as reducer,
|
|
356
|
+
ah as toast,
|
|
357
|
+
toggleVariants,
|
|
358
|
+
ag as useToast
|
|
446
359
|
};
|