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

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 (63) hide show
  1. package/dist/CodeEditor-CTpbkvn0.cjs +1 -0
  2. package/dist/CodeEditor-ChxA5nBg.js +77 -0
  3. package/dist/STRINGS-eiGM83kj.js +7 -0
  4. package/dist/STRINGS-ew98weUe.cjs +1 -0
  5. package/dist/Topbar-QwR6PKnl.cjs +1 -0
  6. package/dist/Topbar-z1o2yz-v.js +113 -0
  7. package/dist/UnsplashImages-BZ4Uvn_u.cjs +1 -0
  8. package/dist/UnsplashImages-BiXwCeGg.js +189 -0
  9. package/dist/UploadImages-BeAGmTnm.js +101 -0
  10. package/dist/UploadImages-e9ItP1o-.cjs +1 -0
  11. package/dist/context-menu-BbqLeYFX.js +979 -0
  12. package/dist/context-menu-DfAXjmc8.cjs +1 -0
  13. package/dist/controls-C4n5ycp4.cjs +1 -0
  14. package/dist/controls-Com-zYCq.js +234 -0
  15. package/dist/core.cjs +1 -82
  16. package/dist/core.d.ts +8 -4
  17. package/dist/core.js +74 -74
  18. package/dist/iconBase-Cn2BsTrq.cjs +1 -0
  19. package/dist/iconBase-DHfFLkem.js +124 -0
  20. package/dist/index-Cu1kFTGh.cjs +63 -0
  21. package/dist/index-D1NbGHAC.js +9318 -0
  22. package/dist/jsx-runtime-BYECrxsp.cjs +30 -0
  23. package/dist/jsx-runtime-DGlMoOmv.js +630 -0
  24. package/dist/plugin-BOEoR5jk.js +44 -0
  25. package/dist/plugin-COMQcYlW.cjs +1 -0
  26. package/dist/plugin-Dw854zFv.js +107 -0
  27. package/dist/plugin-I9XxF65G.cjs +1 -0
  28. package/dist/render.cjs +2 -208
  29. package/dist/render.js +125 -171
  30. package/dist/runtime.cjs +1 -26
  31. package/dist/runtime.js +16 -16
  32. package/dist/style.css +2 -1529
  33. package/dist/tailwind.cjs +1 -78
  34. package/dist/tailwind.js +19 -21
  35. package/dist/ui.cjs +1 -392
  36. package/dist/ui.js +257 -268
  37. package/dist/web-blocks.cjs +3 -1241
  38. package/dist/web-blocks.js +555 -764
  39. package/package.json +1 -1
  40. package/dist/CodeEditor-1LboGb1I.cjs +0 -91
  41. package/dist/CodeEditor-BKgZeXwz.js +0 -91
  42. package/dist/STRINGS-3Sn_NeX1.cjs +0 -9
  43. package/dist/STRINGS-DdpfVlsV.js +0 -10
  44. package/dist/Topbar-B8IS6y4H.js +0 -135
  45. package/dist/Topbar-DXC7DFU1.cjs +0 -135
  46. package/dist/UnsplashImages-CjJ5szAy.cjs +0 -215
  47. package/dist/UnsplashImages-Ck9qpKR0.js +0 -215
  48. package/dist/UploadImages-DW1mj4MB.cjs +0 -117
  49. package/dist/UploadImages-DgAMZ8GR.js +0 -117
  50. package/dist/context-menu-BLbuduri.cjs +0 -1073
  51. package/dist/context-menu-BgtRnByf.js +0 -1042
  52. package/dist/controls-8EZmm0Ns.js +0 -234
  53. package/dist/controls-DaW52RjX.cjs +0 -233
  54. package/dist/iconBase-BSrIcOaG.cjs +0 -146
  55. package/dist/iconBase-CWgVxu0A.js +0 -147
  56. package/dist/index-Bjw2sUN2.cjs +0 -12139
  57. package/dist/index-D8_rAW8B.js +0 -12124
  58. package/dist/jsx-runtime-B6vEU3CM.cjs +0 -925
  59. package/dist/jsx-runtime-ClFauRgV.js +0 -926
  60. package/dist/plugin-BYwesM58.cjs +0 -54
  61. package/dist/plugin-BiDLHDo3.cjs +0 -114
  62. package/dist/plugin-BukD7GJR.js +0 -115
  63. package/dist/plugin-tVAEvXiS.js +0 -55
package/dist/ui.js CHANGED
@@ -1,13 +1,13 @@
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(
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(
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,10 +26,9 @@ const toggleVariants = cva(
26
26
  size: "default"
27
27
  }
28
28
  }
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(
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(
33
32
  "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",
34
33
  {
35
34
  variants: {
@@ -42,164 +41,155 @@ const alertVariants = cva(
42
41
  variant: "default"
43
42
  }
44
43
  }
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 })
45
48
  );
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 })
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 })
54
52
  );
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,
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,
63
56
  {
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
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
67
60
  }
68
61
  ));
69
- Menubar.displayName = MenubarPrimitive.Root.displayName;
70
- const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
71
- MenubarPrimitive.Trigger,
62
+ M.displayName = s.Root.displayName;
63
+ const j = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
64
+ s.Trigger,
72
65
  {
73
- ref,
74
- className: cn(
66
+ ref: t,
67
+ className: r(
75
68
  "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",
76
- className
69
+ e
77
70
  ),
78
- ...props
71
+ ...a
79
72
  }
80
73
  ));
81
- MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
82
- const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
83
- MenubarPrimitive.SubTrigger,
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,
84
77
  {
85
- ref,
86
- className: cn(
78
+ ref: l,
79
+ className: r(
87
80
  "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",
88
- inset && "pl-8",
89
- className
81
+ a && "pl-8",
82
+ e
90
83
  ),
91
- ...props,
84
+ ...d,
92
85
  children: [
93
- children,
94
- /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
86
+ t,
87
+ /* @__PURE__ */ o.jsx(g, { className: "ml-auto h-4 w-4" })
95
88
  ]
96
89
  }
97
90
  ));
98
- MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
99
- const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
100
- MenubarPrimitive.SubContent,
91
+ D.displayName = s.SubTrigger.displayName;
92
+ const T = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
93
+ s.SubContent,
101
94
  {
102
- ref,
103
- className: cn(
95
+ ref: t,
96
+ className: r(
104
97
  "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",
105
- className
98
+ e
106
99
  ),
107
- ...props
100
+ ...a
108
101
  }
109
102
  ));
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,
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,
113
106
  {
114
- ref,
115
- align,
116
- alignOffset,
117
- sideOffset,
118
- className: cn(
107
+ ref: f,
108
+ align: a,
109
+ alignOffset: t,
110
+ sideOffset: d,
111
+ className: r(
119
112
  "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",
120
- className
113
+ e
121
114
  ),
122
- ...props
115
+ ...l
123
116
  }
124
117
  ) }));
125
- MenubarContent.displayName = MenubarPrimitive.Content.displayName;
126
- const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
127
- MenubarPrimitive.Item,
118
+ R.displayName = s.Content.displayName;
119
+ const I = n.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
120
+ s.Item,
128
121
  {
129
- ref,
130
- className: cn(
122
+ ref: d,
123
+ className: r(
131
124
  "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",
132
- inset && "pl-8",
133
- className
125
+ a && "pl-8",
126
+ e
134
127
  ),
135
- ...props
128
+ ...t
136
129
  }
137
130
  ));
138
- MenubarItem.displayName = MenubarPrimitive.Item.displayName;
139
- const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
140
- MenubarPrimitive.CheckboxItem,
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,
141
134
  {
142
- ref,
143
- className: cn(
135
+ ref: l,
136
+ className: r(
144
137
  "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",
145
- className
138
+ e
146
139
  ),
147
- checked,
148
- ...props,
140
+ checked: t,
141
+ ...d,
149
142
  children: [
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
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
152
145
  ]
153
146
  }
154
147
  ));
155
- MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
156
- const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
157
- MenubarPrimitive.RadioItem,
148
+ A.displayName = s.CheckboxItem.displayName;
149
+ const k = n.forwardRef(({ className: e, children: a, ...t }, d) => /* @__PURE__ */ o.jsxs(
150
+ s.RadioItem,
158
151
  {
159
- ref,
160
- className: cn(
152
+ ref: d,
153
+ className: r(
161
154
  "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",
162
- className
155
+ e
163
156
  ),
164
- ...props,
157
+ ...t,
165
158
  children: [
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
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
168
161
  ]
169
162
  }
170
163
  ));
171
- MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
172
- const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
173
- MenubarPrimitive.Label,
164
+ k.displayName = s.RadioItem.displayName;
165
+ const P = n.forwardRef(({ className: e, inset: a, ...t }, d) => /* @__PURE__ */ o.jsx(
166
+ s.Label,
174
167
  {
175
- ref,
176
- className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
177
- ...props
168
+ ref: d,
169
+ className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
170
+ ...t
178
171
  }
179
172
  ));
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,
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,
192
182
  {
193
- className: cn(
183
+ className: r(
194
184
  "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",
195
- className
185
+ e
196
186
  ),
197
- ...props,
198
- ref
187
+ ...a,
188
+ ref: t
199
189
  }
200
190
  ));
201
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
202
- const sheetVariants = cva(
191
+ p.displayName = i.Overlay.displayName;
192
+ const L = c(
203
193
  "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",
204
194
  {
205
195
  variants: {
@@ -214,160 +204,159 @@ const sheetVariants = cva(
214
204
  side: "right"
215
205
  }
216
206
  }
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" })
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" })
226
215
  ] })
227
216
  ] })
228
217
  ] })
229
218
  );
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;
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;
239
228
  export {
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,
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,
296
285
  aa as DropdownMenuCheckboxItem,
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
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
373
362
  };