@chaibuilder/sdk 2.0.0-beta.9 → 2.0.0-beta.90

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.
Files changed (56) hide show
  1. package/README.md +1 -3
  2. package/dist/ChaiThemeFn-DcE5RdLQ.cjs +236 -0
  3. package/dist/ChaiThemeFn-DzirXKjI.js +237 -0
  4. package/dist/CodeEditor-C8_JzwHn.cjs +81 -0
  5. package/dist/CodeEditor-DdIk_PEV.js +81 -0
  6. package/dist/Topbar-62QmCKWL.cjs +18 -0
  7. package/dist/Topbar-Cqt0j3Yt.js +18 -0
  8. package/dist/chaibuilder-logo.png +0 -0
  9. package/dist/context-menu-DHla8ofZ.js +893 -0
  10. package/dist/context-menu-DawHUIXd.cjs +923 -0
  11. package/dist/core.cjs +11592 -18
  12. package/dist/core.d.ts +108 -47
  13. package/dist/core.js +9554 -6675
  14. package/dist/getSplitClasses-BuALfSLX.js +54 -0
  15. package/dist/getSplitClasses-mbQmvwI3.cjs +53 -0
  16. package/dist/iconBase-BSrIcOaG.cjs +146 -0
  17. package/dist/iconBase-CWgVxu0A.js +147 -0
  18. package/dist/mockServiceWorker.js +39 -24
  19. package/dist/plugin-BcTnEZwx.cjs +26 -0
  20. package/dist/plugin-DGEKY3uC.js +27 -0
  21. package/dist/render.cjs +247 -2
  22. package/dist/render.d.ts +41 -16
  23. package/dist/render.js +224 -142
  24. package/dist/runtime.cjs +9 -1
  25. package/dist/runtime.d.ts +6 -1
  26. package/dist/runtime.js +0 -20
  27. package/dist/sdk.css +1341 -0
  28. package/dist/tailwind.cjs +78 -1
  29. package/dist/tailwind.d.ts +37 -26
  30. package/dist/tailwind.js +21 -21
  31. package/dist/ui.cjs +378 -1
  32. package/dist/ui.d.ts +12 -51
  33. package/dist/ui.js +262 -349
  34. package/dist/web-blocks.cjs +1679 -2
  35. package/dist/web-blocks.d.ts +6 -0
  36. package/dist/web-blocks.js +1502 -856
  37. package/package.json +135 -132
  38. package/dist/CodeEditor-19TqmVgI.cjs +0 -1
  39. package/dist/CodeEditor-b5DU6y6j.js +0 -126
  40. package/dist/STRINGS-Xxstm-7I.js +0 -7
  41. package/dist/STRINGS-Yl7cSWDc.cjs +0 -1
  42. package/dist/Topbar-lGFRGO4j.js +0 -73
  43. package/dist/Topbar-ql6BS8c6.cjs +0 -1
  44. package/dist/context-menu-MPtzs1fu.cjs +0 -1
  45. package/dist/context-menu-XEyVy2qm.js +0 -903
  46. package/dist/controls-lEwMTdPQ.js +0 -234
  47. package/dist/controls-p9IwFnPx.cjs +0 -1
  48. package/dist/iconBase-Ief2hJUZ.js +0 -130
  49. package/dist/iconBase-aZzpqff_.cjs +0 -1
  50. package/dist/jsx-runtime-JYMCiFoE.cjs +0 -27
  51. package/dist/jsx-runtime-Sp0orL4X.js +0 -631
  52. package/dist/plugin-Dm5EFGnP.cjs +0 -1
  53. package/dist/plugin-KIpT3NWi.cjs +0 -1
  54. package/dist/plugin-PFjzFeON.js +0 -97
  55. package/dist/plugin-ooqqxWRQ.js +0 -55
  56. package/dist/style.css +0 -6
package/dist/ui.js CHANGED
@@ -1,31 +1,14 @@
1
- import { j as t } from "./jsx-runtime-Sp0orL4X.js";
2
- import * as n from "react";
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 b, a as h } from "./context-menu-XEyVy2qm.js";
6
- import { A as Ae, g as Pe, e as Ge, f as ze, j as Le, q as Ve, r as He, l as Fe, p as Ee, n as Be, m as Oe, o as qe, k as $e, h as Je, B as Ke, C as Qe, F as Ue, E as We, y as Xe, x as Ye, z as Ze, ar as ea, av as aa, at as ta, aA as oa, au as sa, ax as ra, aB as na, aF as da, aw as ia, ay as la, az as ma, aC as ca, aD as pa, aE as ua, as as fa, w as ga, u as xa, t as ba, v as ha, s as ya, a7 as Na, ab as va, a9 as wa, ag as Ca, aa as ja, ad as Sa, ah as Ma, al as Da, ac as Ra, ae as Ta, af as ka, ai as Ia, aj as _a, ak as Aa, a8 as Pa, Y as Ga, _ as za, Z as La, I as Va, L as Ha, V as Fa, X as Ea, W as Ba, G as Oa, H as qa, $ as $a, a3 as Ja, a0 as Ka, a5 as Qa, a4 as Ua, a6 as Wa, a2 as Xa, a1 as Ya, am as Za, S as et, b as at, J as tt, N as ot, K as st, M as rt, T as nt, aq as dt, O as it, Q as lt, U as mt, R as ct, P as pt, i as ut, d as ft, an as gt, ap as xt, ao as bt } from "./context-menu-XEyVy2qm.js";
7
- import { ChevronRightIcon as y, CheckIcon as N, DotFilledIcon as v, Cross2Icon as w, MagnifyingGlassIcon as C } from "@radix-ui/react-icons";
8
- import * as r from "@radix-ui/react-menubar";
9
- import * as i from "@radix-ui/react-dialog";
10
- import { Command as l } from "cmdk";
11
- import "@radix-ui/react-switch";
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
- ), S = n.forwardRef(({ className: e, variant: a, size: o, ...d }, m) => /* @__PURE__ */ t.jsx(p.Root, { ref: m, className: s(j({ variant: a, size: o, className: e })), ...d }));
48
- S.displayName = p.Root.displayName;
49
- const M = c(
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
- R.displayName = "AlertTitle";
68
- const T = n.forwardRef(
69
- ({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("div", { ref: o, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
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
- T.displayName = "AlertDescription";
72
- const we = r.Menu, Ce = r.Group, je = r.Portal, Se = r.Sub, Me = r.RadioGroup, k = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
73
- r.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
- k.displayName = r.Root.displayName;
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: m,
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
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
- ...d,
68
+ ...props,
103
69
  children: [
104
- o,
105
- /* @__PURE__ */ t.jsx(y, { className: "ml-auto h-4 w-4" })
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
- _.displayName = r.SubTrigger.displayName;
110
- const A = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
111
- r.SubContent,
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: 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
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
- ...a
119
- }
120
- ));
121
- A.displayName = r.SubContent.displayName;
122
- const P = n.forwardRef(({ className: e, align: a = "start", alignOffset: o = -4, sideOffset: d = 8, ...m }, x) => /* @__PURE__ */ t.jsx(r.Portal, { children: /* @__PURE__ */ t.jsx(
123
- r.Content,
124
- {
125
- ref: x,
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
- ...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
- P.displayName = r.Content.displayName;
137
- const G = n.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
138
- r.Item,
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: 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
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
- ...o
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__ */ 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(v, { className: "h-4 w-4 fill-current" }) }) }),
178
- a
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
- L.displayName = r.RadioItem.displayName;
183
- const V = n.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t.jsx(
184
- r.Label,
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
- ref: d,
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
- e
130
+ className
204
131
  ),
205
- ...a,
206
- ref: o
132
+ ...props,
133
+ ref
207
134
  }
208
135
  ));
209
- f.displayName = i.Overlay.displayName;
210
- const E = c(
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
- ), B = n.forwardRef(
226
- ({ side: e = "right", className: a, children: o, ...d }, m) => /* @__PURE__ */ t.jsxs(u, { children: [
227
- /* @__PURE__ */ t.jsx(f, {}),
228
- /* @__PURE__ */ t.jsxs(i.Content, { ref: m, className: s(E({ side: e }), a), ...d, children: [
229
- o,
230
- /* @__PURE__ */ t.jsxs(i.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: [
231
- /* @__PURE__ */ t.jsx(w, { className: "h-4 w-4" }),
232
- /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
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
- B.displayName = i.Content.displayName;
238
- const O = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
239
- O.displayName = "SheetHeader";
240
- const q = ({ 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 });
241
- q.displayName = "SheetFooter";
242
- const $ = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Title, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...a }));
243
- $.displayName = i.Title.displayName;
244
- const J = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(i.Description, { ref: o, className: s("text-sm text-muted-foreground", e), ...a }));
245
- J.displayName = i.Description.displayName;
246
- const g = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
247
- l,
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: o,
250
- className: s(
177
+ ref,
178
+ className: cn(
251
179
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
252
- e
180
+ className
253
181
  ),
254
- ...a
182
+ ...props
255
183
  }
256
184
  ));
257
- g.displayName = l.displayName;
258
- const ke = ({ children: e, ...a }) => /* @__PURE__ */ t.jsx(b, { ...a, children: /* @__PURE__ */ t.jsx(h, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t.jsx(g, { 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 }) }) }), K = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
259
- /* @__PURE__ */ t.jsx(C, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
260
- /* @__PURE__ */ t.jsx(
261
- l.Input,
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: o,
264
- className: s(
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
- e
195
+ className
267
196
  ),
268
- ...a
197
+ ...props
269
198
  }
270
199
  )
271
200
  ] }));
272
- K.displayName = l.Input.displayName;
273
- const Q = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
274
- l.List,
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: o,
277
- className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
278
- ...a
205
+ ref,
206
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
207
+ ...props
279
208
  }
280
209
  ));
281
- Q.displayName = l.List.displayName;
282
- const U = n.forwardRef((e, a) => /* @__PURE__ */ t.jsx(l.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
283
- U.displayName = l.Empty.displayName;
284
- const W = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
285
- l.Group,
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: o,
288
- className: s(
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
- e
219
+ className
291
220
  ),
292
- ...a
221
+ ...props
293
222
  }
294
223
  ));
295
- W.displayName = l.Group.displayName;
296
- const X = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(l.Separator, { ref: o, className: s("-mx-1 h-px bg-border", e), ...a }));
297
- X.displayName = l.Separator.displayName;
298
- const Y = n.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
299
- l.Item,
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: o,
302
- className: s(
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
- e
233
+ className
305
234
  ),
306
- ...a
235
+ ...props
307
236
  }
308
237
  ));
309
- Y.displayName = l.Item.displayName;
310
- const Z = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
311
- Z.displayName = "CommandShortcut";
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
- Ae as Accordion,
314
- Pe as AccordionContent,
315
- Ge as AccordionItem,
316
- ze as AccordionTrigger,
317
- D as Alert,
318
- T as AlertDescription,
319
- Le as AlertDialog,
320
- Ve as AlertDialogAction,
321
- He as AlertDialogCancel,
322
- Fe as AlertDialogContent,
323
- Ee as AlertDialogDescription,
324
- Be as AlertDialogFooter,
325
- Oe as AlertDialogHeader,
326
- qe as AlertDialogTitle,
327
- $e as AlertDialogTrigger,
328
- R as AlertTitle,
329
- Je as Badge,
330
- Ke as Button,
331
- Qe as Card,
332
- Ue as CardContent,
333
- We as CardDescription,
334
- Xe as CardFooter,
335
- Ye as CardHeader,
336
- Ze as CardTitle,
337
- g as Command,
338
- ke as CommandDialog,
339
- U as CommandEmpty,
340
- W as CommandGroup,
341
- K as CommandInput,
342
- Y as CommandItem,
343
- Q as CommandList,
344
- X as CommandSeparator,
345
- Z as CommandShortcut,
346
- ea as ContextMenu,
347
- aa as ContextMenuCheckboxItem,
348
- ta as ContextMenuContent,
349
- oa as ContextMenuGroup,
350
- sa as ContextMenuItem,
351
- ra as ContextMenuLabel,
352
- na as ContextMenuPortal,
353
- da as ContextMenuRadioGroup,
354
- ia as ContextMenuRadioItem,
355
- la as ContextMenuSeparator,
356
- ma as ContextMenuShortcut,
357
- ca as ContextMenuSub,
358
- pa as ContextMenuSubContent,
359
- ua as ContextMenuSubTrigger,
360
- fa as ContextMenuTrigger,
361
- b as Dialog,
362
- h as DialogContent,
363
- ga as DialogDescription,
364
- xa as DialogFooter,
365
- ba as DialogHeader,
366
- ha as DialogTitle,
367
- ya as DialogTrigger,
368
- Na as DropdownMenu,
369
- va as DropdownMenuCheckboxItem,
370
- wa as DropdownMenuContent,
371
- Ca as DropdownMenuGroup,
372
- ja as DropdownMenuItem,
373
- Sa as DropdownMenuLabel,
374
- Ma as DropdownMenuPortal,
375
- Da as DropdownMenuRadioGroup,
376
- Ra as DropdownMenuRadioItem,
377
- Ta as DropdownMenuSeparator,
378
- ka as DropdownMenuShortcut,
379
- Ia as DropdownMenuSub,
380
- _a as DropdownMenuSubContent,
381
- Aa as DropdownMenuSubTrigger,
382
- Pa as DropdownMenuTrigger,
383
- Ga as HoverCard,
384
- za as HoverCardContent,
385
- La as HoverCardTrigger,
386
- Va as Input,
387
- Ha as Label,
388
- k as Menubar,
389
- z as MenubarCheckboxItem,
390
- P as MenubarContent,
391
- Ce as MenubarGroup,
392
- G as MenubarItem,
393
- V as MenubarLabel,
394
- we as MenubarMenu,
395
- je as MenubarPortal,
396
- Me as MenubarRadioGroup,
397
- L as MenubarRadioItem,
398
- H as MenubarSeparator,
399
- F as MenubarShortcut,
400
- Se as MenubarSub,
401
- A as MenubarSubContent,
402
- _ as MenubarSubTrigger,
403
- I as MenubarTrigger,
404
- Fa as Popover,
405
- Ea as PopoverContent,
406
- Ba as PopoverTrigger,
407
- Oa as ScrollArea,
408
- qa as ScrollBar,
409
- $a as Select,
410
- Ja as SelectContent,
411
- Ka as SelectGroup,
412
- Qa as SelectItem,
413
- Ua as SelectLabel,
414
- Wa as SelectSeparator,
415
- Xa as SelectTrigger,
416
- Ya as SelectValue,
417
- Za as Separator,
418
- De as Sheet,
419
- Te as SheetClose,
420
- B as SheetContent,
421
- J as SheetDescription,
422
- q as SheetFooter,
423
- O as SheetHeader,
424
- $ as SheetTitle,
425
- Re as SheetTrigger,
426
- et as Skeleton,
427
- at as Switch,
428
- tt as Tabs,
429
- ot as TabsContent,
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
  };