@chaibuilder/sdk 1.3.0-beta.7 → 1.3.0-beta.8

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 (62) hide show
  1. package/dist/CodeEditor-1LboGb1I.cjs +91 -0
  2. package/dist/CodeEditor-BKgZeXwz.js +91 -0
  3. package/dist/STRINGS-3Sn_NeX1.cjs +9 -0
  4. package/dist/STRINGS-DdpfVlsV.js +10 -0
  5. package/dist/Topbar-B8IS6y4H.js +135 -0
  6. package/dist/Topbar-DXC7DFU1.cjs +135 -0
  7. package/dist/UnsplashImages-CjJ5szAy.cjs +215 -0
  8. package/dist/UnsplashImages-Ck9qpKR0.js +215 -0
  9. package/dist/UploadImages-DW1mj4MB.cjs +117 -0
  10. package/dist/UploadImages-DgAMZ8GR.js +117 -0
  11. package/dist/context-menu-BLbuduri.cjs +1073 -0
  12. package/dist/context-menu-BgtRnByf.js +1042 -0
  13. package/dist/controls-8EZmm0Ns.js +234 -0
  14. package/dist/controls-DaW52RjX.cjs +233 -0
  15. package/dist/core.cjs +82 -1
  16. package/dist/core.js +74 -74
  17. package/dist/iconBase-BSrIcOaG.cjs +146 -0
  18. package/dist/iconBase-CWgVxu0A.js +147 -0
  19. package/dist/index-Bjw2sUN2.cjs +12139 -0
  20. package/dist/index-D8_rAW8B.js +12124 -0
  21. package/dist/jsx-runtime-B6vEU3CM.cjs +925 -0
  22. package/dist/jsx-runtime-ClFauRgV.js +926 -0
  23. package/dist/plugin-BYwesM58.cjs +54 -0
  24. package/dist/plugin-BiDLHDo3.cjs +114 -0
  25. package/dist/plugin-BukD7GJR.js +115 -0
  26. package/dist/plugin-tVAEvXiS.js +55 -0
  27. package/dist/render.cjs +208 -2
  28. package/dist/render.js +171 -125
  29. package/dist/runtime.cjs +26 -1
  30. package/dist/runtime.js +16 -16
  31. package/dist/style.css +1529 -2
  32. package/dist/tailwind.cjs +78 -1
  33. package/dist/tailwind.js +21 -19
  34. package/dist/ui.cjs +392 -1
  35. package/dist/ui.js +268 -257
  36. package/dist/web-blocks.cjs +1241 -3
  37. package/dist/web-blocks.js +764 -555
  38. package/package.json +1 -1
  39. package/dist/CodeEditor-CLJIUsvL.js +0 -77
  40. package/dist/CodeEditor-DrVE5UwR.cjs +0 -1
  41. package/dist/STRINGS-eiGM83kj.js +0 -7
  42. package/dist/STRINGS-ew98weUe.cjs +0 -1
  43. package/dist/Topbar-BvLH3BD9.cjs +0 -1
  44. package/dist/Topbar-D3bfoa2h.js +0 -113
  45. package/dist/UnsplashImages-3SDmSL-g.js +0 -189
  46. package/dist/UnsplashImages-Cx6vImSl.cjs +0 -1
  47. package/dist/UploadImages-CkjdUS7T.js +0 -101
  48. package/dist/UploadImages-aqkH-8LC.cjs +0 -1
  49. package/dist/context-menu-BbqLeYFX.js +0 -979
  50. package/dist/context-menu-DfAXjmc8.cjs +0 -1
  51. package/dist/controls-C4n5ycp4.cjs +0 -1
  52. package/dist/controls-Com-zYCq.js +0 -234
  53. package/dist/iconBase-Cn2BsTrq.cjs +0 -1
  54. package/dist/iconBase-DHfFLkem.js +0 -124
  55. package/dist/index-BlcnqLh_.js +0 -9236
  56. package/dist/index-DUJxGeyq.cjs +0 -63
  57. package/dist/jsx-runtime-BYECrxsp.cjs +0 -30
  58. package/dist/jsx-runtime-DGlMoOmv.js +0 -630
  59. package/dist/plugin-BOEoR5jk.js +0 -44
  60. package/dist/plugin-COMQcYlW.cjs +0 -1
  61. package/dist/plugin-Dw854zFv.js +0 -107
  62. package/dist/plugin-I9XxF65G.cjs +0 -1
package/dist/ui.js CHANGED
@@ -1,13 +1,13 @@
1
- import { j as o } from "./jsx-runtime-DGlMoOmv.js";
2
- import * as n from "react";
3
- import * as m from "@radix-ui/react-toggle";
4
- import { cva as c } from "class-variance-authority";
5
- import { c as r } from "./context-menu-BbqLeYFX.js";
6
- import { A as te, f as oe, d as se, e as re, i as ne, p as de, q as ie, k as le, o as ce, m as me, l as ue, n as pe, j as fe, g as ge, B as xe, C as be, F as he, E as Ce, y as ye, x as Ne, z as ve, ar as we, as as Se, av as Me, aw as je, at as De, ax as Te, au as Re, az as Ie, ay as Ae, aA as ke, aE as Pe, aC as ze, aJ as Ge, aD as Le, aG as He, aK as Ve, aO as Fe, aF as Be, aH as Oe, aI as Ee, aL as qe, aM as Je, aN as Ke, aB as _e, D as Qe, s as Ue, w as We, u as Xe, t as Ye, v as Ze, r as $e, a6 as ea, aa, a8 as ta, af as oa, a9 as sa, ac as ra, ag as na, ak as da, ab as ia, ad as la, ae as ca, ah as ma, ai as ua, aj as pa, a7 as fa, X as ga, Z as xa, Y as ba, I as ha, L as Ca, U as ya, W as Na, V as va, S as wa, G as Sa, _ as Ma, a2 as ja, $ as Da, a4 as Ta, a3 as Ra, a5 as Ia, a1 as Aa, a0 as ka, al as Pa, aq as za, a as Ga, H as La, M as Ha, J as Va, K as Fa, T as Ba, ap as Oa, N as Ea, P as qa, R as Ja, Q as Ka, O as _a, h as Qa, b as Ua, am as Wa, ao as Xa, an as Ya } from "./context-menu-BbqLeYFX.js";
7
- import { ChevronRightIcon as g, CheckIcon as x, DotFilledIcon as b, Cross2Icon as h } from "@radix-ui/react-icons";
8
- import * as s from "@radix-ui/react-menubar";
9
- import * as i from "@radix-ui/react-dialog";
10
- const C = c(
1
+ import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.js";
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 } from "./context-menu-BgtRnByf.js";
6
+ import { A, f, d, e, i, p, q, k, o, m, l, n, j, g, B, C, F, E, y, x, z, ar, as, av, aw, at, ax, au, az, ay, aA, aE, aC, aJ, aD, aG, aK, aO, aF, aH, aI, aL, aM, aN, aB, D, s, w, u, t, v, r, a6, aa, a8, af, a9, ac, ag, ak, ab, ad, ae, ah, ai, aj, a7, X, Z, Y, I, L, U, W, V, S, G, _, a2, $, a4, a3, a5, a1, a0, al, aq, a, H, M, J, K, T, ap, N, P, R, Q, O, h, b, am, ao, an } from "./context-menu-BgtRnByf.js";
7
+ import { ChevronRightIcon, CheckIcon, DotFilledIcon, Cross2Icon } from "@radix-ui/react-icons";
8
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
9
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
10
+ const toggleVariants = cva(
11
11
  "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",
12
12
  {
13
13
  variants: {
@@ -26,9 +26,10 @@ const C = c(
26
26
  size: "default"
27
27
  }
28
28
  }
29
- ), y = n.forwardRef(({ className: e, variant: a, size: t, ...d }, l) => /* @__PURE__ */ o.jsx(m.Root, { ref: l, className: r(C({ variant: a, size: t, className: e })), ...d }));
30
- y.displayName = m.Root.displayName;
31
- const N = c(
29
+ );
30
+ const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
31
+ Toggle.displayName = TogglePrimitive.Root.displayName;
32
+ const alertVariants = cva(
32
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",
33
34
  {
34
35
  variants: {
@@ -41,155 +42,164 @@ const N = c(
41
42
  variant: "default"
42
43
  }
43
44
  }
44
- ), v = n.forwardRef(({ className: e, variant: a, ...t }, d) => /* @__PURE__ */ o.jsx("div", { ref: d, role: "alert", className: r(N({ variant: a }), e), ...t }));
45
- v.displayName = "Alert";
46
- const w = n.forwardRef(
47
- ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("h5", { ref: t, className: r("mb-1 font-medium leading-none tracking-tight", e), ...a })
48
45
  );
49
- w.displayName = "AlertTitle";
50
- const S = n.forwardRef(
51
- ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: r("text-sm [&_p]:leading-relaxed", e), ...a })
46
+ const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
47
+ Alert.displayName = "Alert";
48
+ const AlertTitle = React.forwardRef(
49
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
50
+ );
51
+ AlertTitle.displayName = "AlertTitle";
52
+ const AlertDescription = React.forwardRef(
53
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
52
54
  );
53
- S.displayName = "AlertDescription";
54
- const _ = s.Menu, Q = s.Group, U = s.Portal, W = s.Sub, X = s.RadioGroup, M = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
55
- s.Root,
55
+ AlertDescription.displayName = "AlertDescription";
56
+ const MenubarMenu = MenubarPrimitive.Menu;
57
+ const MenubarGroup = MenubarPrimitive.Group;
58
+ const MenubarPortal = MenubarPrimitive.Portal;
59
+ const MenubarSub = MenubarPrimitive.Sub;
60
+ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
61
+ const Menubar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
62
+ MenubarPrimitive.Root,
56
63
  {
57
- ref: t,
58
- className: r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
59
- ...a
64
+ ref,
65
+ className: cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", className),
66
+ ...props
60
67
  }
61
68
  ));
62
- M.displayName = s.Root.displayName;
63
- const j = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
64
- s.Trigger,
69
+ Menubar.displayName = MenubarPrimitive.Root.displayName;
70
+ const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
71
+ MenubarPrimitive.Trigger,
65
72
  {
66
- ref: t,
67
- className: r(
73
+ ref,
74
+ className: cn(
68
75
  "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",
69
- e
76
+ className
70
77
  ),
71
- ...a
78
+ ...props
72
79
  }
73
80
  ));
74
- j.displayName = s.Trigger.displayName;
75
- const D = n.forwardRef(({ className: e, inset: a, children: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
76
- s.SubTrigger,
81
+ MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
82
+ const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
83
+ MenubarPrimitive.SubTrigger,
77
84
  {
78
- ref: l,
79
- className: r(
85
+ ref,
86
+ className: cn(
80
87
  "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",
81
- a && "pl-8",
82
- e
88
+ inset && "pl-8",
89
+ className
83
90
  ),
84
- ...d,
91
+ ...props,
85
92
  children: [
86
- t,
87
- /* @__PURE__ */ o.jsx(g, { className: "ml-auto h-4 w-4" })
93
+ children,
94
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
88
95
  ]
89
96
  }
90
97
  ));
91
- D.displayName = s.SubTrigger.displayName;
92
- const T = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
93
- s.SubContent,
98
+ MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
99
+ const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
100
+ MenubarPrimitive.SubContent,
94
101
  {
95
- ref: t,
96
- className: r(
102
+ ref,
103
+ className: cn(
97
104
  "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",
98
- e
105
+ className
99
106
  ),
100
- ...a
107
+ ...props
101
108
  }
102
109
  ));
103
- T.displayName = s.SubContent.displayName;
104
- const R = n.forwardRef(({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: d = 8, ...l }, f) => /* @__PURE__ */ o.jsx(s.Portal, { children: /* @__PURE__ */ o.jsx(
105
- s.Content,
110
+ MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
111
+ const MenubarContent = React.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
112
+ MenubarPrimitive.Content,
106
113
  {
107
- ref: f,
108
- align: a,
109
- alignOffset: t,
110
- sideOffset: d,
111
- className: r(
114
+ ref,
115
+ align,
116
+ alignOffset,
117
+ sideOffset,
118
+ className: cn(
112
119
  "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",
113
- e
120
+ className
114
121
  ),
115
- ...l
122
+ ...props
116
123
  }
117
124
  ) }));
118
- R.displayName = s.Content.displayName;
119
- const I = n.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
120
- s.Item,
125
+ MenubarContent.displayName = MenubarPrimitive.Content.displayName;
126
+ const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
127
+ MenubarPrimitive.Item,
121
128
  {
122
- ref: d,
123
- className: r(
129
+ ref,
130
+ className: cn(
124
131
  "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",
125
- a && "pl-8",
126
- e
132
+ inset && "pl-8",
133
+ className
127
134
  ),
128
- ...t
135
+ ...props
129
136
  }
130
137
  ));
131
- I.displayName = s.Item.displayName;
132
- const A = n.forwardRef(({ className: e, children: a, checked: t, ...d }, l) => /* @__PURE__ */ o.jsxs(
133
- s.CheckboxItem,
138
+ MenubarItem.displayName = MenubarPrimitive.Item.displayName;
139
+ const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
140
+ MenubarPrimitive.CheckboxItem,
134
141
  {
135
- ref: l,
136
- className: r(
142
+ ref,
143
+ className: cn(
137
144
  "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",
138
- e
145
+ className
139
146
  ),
140
- checked: t,
141
- ...d,
147
+ checked,
148
+ ...props,
142
149
  children: [
143
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(x, { className: "h-4 w-4" }) }) }),
144
- a
150
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: "h-4 w-4" }) }) }),
151
+ children
145
152
  ]
146
153
  }
147
154
  ));
148
- A.displayName = s.CheckboxItem.displayName;
149
- const k = n.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
150
- s.RadioItem,
155
+ MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
156
+ const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
157
+ MenubarPrimitive.RadioItem,
151
158
  {
152
- ref: d,
153
- className: r(
159
+ ref,
160
+ className: cn(
154
161
  "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",
155
- e
162
+ className
156
163
  ),
157
- ...t,
164
+ ...props,
158
165
  children: [
159
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(b, { className: "h-4 w-4 fill-current" }) }) }),
160
- a
166
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
167
+ children
161
168
  ]
162
169
  }
163
170
  ));
164
- k.displayName = s.RadioItem.displayName;
165
- const P = n.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
166
- s.Label,
171
+ MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
172
+ const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
173
+ MenubarPrimitive.Label,
167
174
  {
168
- ref: d,
169
- className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
170
- ...t
175
+ ref,
176
+ className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
177
+ ...props
171
178
  }
172
179
  ));
173
- P.displayName = s.Label.displayName;
174
- const z = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(s.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
175
- z.displayName = s.Separator.displayName;
176
- const G = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
177
- G.displayname = "MenubarShortcut";
178
- const Y = i.Root, Z = i.Trigger, $ = i.Close, u = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx(i.Portal, { className: r(e), ...a });
179
- u.displayName = i.Portal.displayName;
180
- const p = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
181
- i.Overlay,
180
+ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
181
+ const MenubarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
182
+ MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
183
+ const MenubarShortcut = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
184
+ MenubarShortcut.displayname = "MenubarShortcut";
185
+ const Sheet = SheetPrimitive.Root;
186
+ const SheetTrigger = SheetPrimitive.Trigger;
187
+ const SheetClose = SheetPrimitive.Close;
188
+ const SheetPortal = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Portal, { className: cn(className), ...props });
189
+ SheetPortal.displayName = SheetPrimitive.Portal.displayName;
190
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
191
+ SheetPrimitive.Overlay,
182
192
  {
183
- className: r(
193
+ className: cn(
184
194
  "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",
185
- e
195
+ className
186
196
  ),
187
- ...a,
188
- ref: t
197
+ ...props,
198
+ ref
189
199
  }
190
200
  ));
191
- p.displayName = i.Overlay.displayName;
192
- const L = c(
201
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
202
+ const sheetVariants = cva(
193
203
  "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",
194
204
  {
195
205
  variants: {
@@ -204,159 +214,160 @@ const L = c(
204
214
  side: "right"
205
215
  }
206
216
  }
207
- ), H = n.forwardRef(
208
- ({ side: e = "right", className: a, children: t, ...d }, l) => /* @__PURE__ */ o.jsxs(u, { children: [
209
- /* @__PURE__ */ o.jsx(p, {}),
210
- /* @__PURE__ */ o.jsxs(i.Content, { ref: l, className: r(L({ side: e }), a), ...d, children: [
211
- t,
212
- /* @__PURE__ */ o.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: [
213
- /* @__PURE__ */ o.jsx(h, { className: "h-4 w-4" }),
214
- /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
217
+ );
218
+ const SheetContent = React.forwardRef(
219
+ ({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetPortal, { children: [
220
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SheetOverlay, {}),
221
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
222
+ children,
223
+ /* @__PURE__ */ jsxRuntimeExports.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: [
224
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Cross2Icon, { className: "h-4 w-4" }),
225
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Close" })
215
226
  ] })
216
227
  ] })
217
228
  ] })
218
229
  );
219
- H.displayName = i.Content.displayName;
220
- const V = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
221
- V.displayName = "SheetHeader";
222
- const F = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
223
- F.displayName = "SheetFooter";
224
- const B = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(i.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
225
- B.displayName = i.Title.displayName;
226
- const O = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(i.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
227
- O.displayName = i.Description.displayName;
230
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
231
+ const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
232
+ SheetHeader.displayName = "SheetHeader";
233
+ const SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
234
+ SheetFooter.displayName = "SheetFooter";
235
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
236
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
237
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
238
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
228
239
  export {
229
- te as Accordion,
230
- oe as AccordionContent,
231
- se as AccordionItem,
232
- re as AccordionTrigger,
233
- v as Alert,
234
- S as AlertDescription,
235
- ne as AlertDialog,
236
- de as AlertDialogAction,
237
- ie as AlertDialogCancel,
238
- le as AlertDialogContent,
239
- ce as AlertDialogDescription,
240
- me as AlertDialogFooter,
241
- ue as AlertDialogHeader,
242
- pe as AlertDialogTitle,
243
- fe as AlertDialogTrigger,
244
- w as AlertTitle,
245
- ge as Badge,
246
- xe as Button,
247
- be as Card,
248
- he as CardContent,
249
- Ce as CardDescription,
250
- ye as CardFooter,
251
- Ne as CardHeader,
252
- ve as CardTitle,
253
- we as Command,
254
- Se as CommandDialog,
255
- Me as CommandEmpty,
256
- je as CommandGroup,
257
- De as CommandInput,
258
- Te as CommandItem,
259
- Re as CommandList,
260
- Ie as CommandSeparator,
261
- Ae as CommandShortcut,
262
- ke as ContextMenu,
263
- Pe as ContextMenuCheckboxItem,
264
- ze as ContextMenuContent,
265
- Ge as ContextMenuGroup,
266
- Le as ContextMenuItem,
267
- He as ContextMenuLabel,
268
- Ve as ContextMenuPortal,
269
- Fe as ContextMenuRadioGroup,
270
- Be as ContextMenuRadioItem,
271
- Oe as ContextMenuSeparator,
272
- Ee as ContextMenuShortcut,
273
- qe as ContextMenuSub,
274
- Je as ContextMenuSubContent,
275
- Ke as ContextMenuSubTrigger,
276
- _e as ContextMenuTrigger,
277
- Qe as Dialog,
278
- Ue as DialogContent,
279
- We as DialogDescription,
280
- Xe as DialogFooter,
281
- Ye as DialogHeader,
282
- Ze as DialogTitle,
283
- $e as DialogTrigger,
284
- ea as DropdownMenu,
240
+ A as Accordion,
241
+ f as AccordionContent,
242
+ d as AccordionItem,
243
+ e as AccordionTrigger,
244
+ Alert,
245
+ AlertDescription,
246
+ i as AlertDialog,
247
+ p as AlertDialogAction,
248
+ q as AlertDialogCancel,
249
+ k as AlertDialogContent,
250
+ o as AlertDialogDescription,
251
+ m as AlertDialogFooter,
252
+ l as AlertDialogHeader,
253
+ n as AlertDialogTitle,
254
+ j as AlertDialogTrigger,
255
+ AlertTitle,
256
+ g as Badge,
257
+ B as Button,
258
+ C as Card,
259
+ F as CardContent,
260
+ E as CardDescription,
261
+ y as CardFooter,
262
+ x as CardHeader,
263
+ z as CardTitle,
264
+ ar as Command,
265
+ as as CommandDialog,
266
+ av as CommandEmpty,
267
+ aw as CommandGroup,
268
+ at as CommandInput,
269
+ ax as CommandItem,
270
+ au as CommandList,
271
+ az as CommandSeparator,
272
+ ay as CommandShortcut,
273
+ aA as ContextMenu,
274
+ aE as ContextMenuCheckboxItem,
275
+ aC as ContextMenuContent,
276
+ aJ as ContextMenuGroup,
277
+ aD as ContextMenuItem,
278
+ aG as ContextMenuLabel,
279
+ aK as ContextMenuPortal,
280
+ aO as ContextMenuRadioGroup,
281
+ aF as ContextMenuRadioItem,
282
+ aH as ContextMenuSeparator,
283
+ aI as ContextMenuShortcut,
284
+ aL as ContextMenuSub,
285
+ aM as ContextMenuSubContent,
286
+ aN as ContextMenuSubTrigger,
287
+ aB as ContextMenuTrigger,
288
+ D as Dialog,
289
+ s as DialogContent,
290
+ w as DialogDescription,
291
+ u as DialogFooter,
292
+ t as DialogHeader,
293
+ v as DialogTitle,
294
+ r as DialogTrigger,
295
+ a6 as DropdownMenu,
285
296
  aa as DropdownMenuCheckboxItem,
286
- ta as DropdownMenuContent,
287
- oa as DropdownMenuGroup,
288
- sa as DropdownMenuItem,
289
- ra as DropdownMenuLabel,
290
- na as DropdownMenuPortal,
291
- da as DropdownMenuRadioGroup,
292
- ia as DropdownMenuRadioItem,
293
- la as DropdownMenuSeparator,
294
- ca as DropdownMenuShortcut,
295
- ma as DropdownMenuSub,
296
- ua as DropdownMenuSubContent,
297
- pa as DropdownMenuSubTrigger,
298
- fa as DropdownMenuTrigger,
299
- ga as HoverCard,
300
- xa as HoverCardContent,
301
- ba as HoverCardTrigger,
302
- ha as Input,
303
- Ca as Label,
304
- M as Menubar,
305
- A as MenubarCheckboxItem,
306
- R as MenubarContent,
307
- Q as MenubarGroup,
308
- I as MenubarItem,
309
- P as MenubarLabel,
310
- _ as MenubarMenu,
311
- U as MenubarPortal,
312
- X as MenubarRadioGroup,
313
- k as MenubarRadioItem,
314
- z as MenubarSeparator,
315
- G as MenubarShortcut,
316
- W as MenubarSub,
317
- T as MenubarSubContent,
318
- D as MenubarSubTrigger,
319
- j as MenubarTrigger,
320
- ya as Popover,
321
- Na as PopoverContent,
322
- va as PopoverTrigger,
323
- wa as ScrollArea,
324
- Sa as ScrollBar,
325
- Ma as Select,
326
- ja as SelectContent,
327
- Da as SelectGroup,
328
- Ta as SelectItem,
329
- Ra as SelectLabel,
330
- Ia as SelectSeparator,
331
- Aa as SelectTrigger,
332
- ka as SelectValue,
333
- Pa as Separator,
334
- Y as Sheet,
335
- $ as SheetClose,
336
- H as SheetContent,
337
- O as SheetDescription,
338
- F as SheetFooter,
339
- V as SheetHeader,
340
- B as SheetTitle,
341
- Z as SheetTrigger,
342
- za as Skeleton,
343
- Ga as Switch,
344
- La as Tabs,
345
- Ha as TabsContent,
346
- Va as TabsList,
347
- Fa as TabsTrigger,
348
- Ba as Textarea,
349
- Oa as Toaster,
350
- y as Toggle,
351
- Ea as Tooltip,
352
- qa as TooltipContent,
353
- Ja as TooltipPortal,
354
- Ka as TooltipProvider,
355
- _a as TooltipTrigger,
356
- Qa as badgeVariants,
357
- Ua as buttonVariants,
358
- Wa as reducer,
359
- Xa as toast,
360
- C as toggleVariants,
361
- Ya as useToast
297
+ a8 as DropdownMenuContent,
298
+ af as DropdownMenuGroup,
299
+ a9 as DropdownMenuItem,
300
+ ac as DropdownMenuLabel,
301
+ ag as DropdownMenuPortal,
302
+ ak as DropdownMenuRadioGroup,
303
+ ab as DropdownMenuRadioItem,
304
+ ad as DropdownMenuSeparator,
305
+ ae as DropdownMenuShortcut,
306
+ ah as DropdownMenuSub,
307
+ ai as DropdownMenuSubContent,
308
+ aj as DropdownMenuSubTrigger,
309
+ a7 as DropdownMenuTrigger,
310
+ X as HoverCard,
311
+ Z as HoverCardContent,
312
+ Y as HoverCardTrigger,
313
+ I as Input,
314
+ L as Label,
315
+ Menubar,
316
+ MenubarCheckboxItem,
317
+ MenubarContent,
318
+ MenubarGroup,
319
+ MenubarItem,
320
+ MenubarLabel,
321
+ MenubarMenu,
322
+ MenubarPortal,
323
+ MenubarRadioGroup,
324
+ MenubarRadioItem,
325
+ MenubarSeparator,
326
+ MenubarShortcut,
327
+ MenubarSub,
328
+ MenubarSubContent,
329
+ MenubarSubTrigger,
330
+ MenubarTrigger,
331
+ U as Popover,
332
+ W as PopoverContent,
333
+ V as PopoverTrigger,
334
+ S as ScrollArea,
335
+ G as ScrollBar,
336
+ _ as Select,
337
+ a2 as SelectContent,
338
+ $ as SelectGroup,
339
+ a4 as SelectItem,
340
+ a3 as SelectLabel,
341
+ a5 as SelectSeparator,
342
+ a1 as SelectTrigger,
343
+ a0 as SelectValue,
344
+ al as Separator,
345
+ Sheet,
346
+ SheetClose,
347
+ SheetContent,
348
+ SheetDescription,
349
+ SheetFooter,
350
+ SheetHeader,
351
+ SheetTitle,
352
+ SheetTrigger,
353
+ aq as Skeleton,
354
+ a as Switch,
355
+ H as Tabs,
356
+ M as TabsContent,
357
+ J as TabsList,
358
+ K as TabsTrigger,
359
+ T as Textarea,
360
+ ap as Toaster,
361
+ Toggle,
362
+ N as Tooltip,
363
+ P as TooltipContent,
364
+ R as TooltipPortal,
365
+ Q as TooltipProvider,
366
+ O as TooltipTrigger,
367
+ h as badgeVariants,
368
+ b as buttonVariants,
369
+ am as reducer,
370
+ ao as toast,
371
+ toggleVariants,
372
+ an as useToast
362
373
  };