@chaibuilder/sdk 2.0.0-beta.98 → 2.0.0-beta.99

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 (41) hide show
  1. package/dist/ChaiThemeFn-Cort9tch.js +201 -0
  2. package/dist/ChaiThemeFn-DQu-2Eh9.cjs +13 -0
  3. package/dist/CodeEditor-B2x4yruH.cjs +1 -0
  4. package/dist/CodeEditor-VcQsGvTM.js +65 -0
  5. package/dist/Topbar-BQsjWb-A.js +16 -0
  6. package/dist/Topbar-DEw_kBMz.cjs +1 -0
  7. package/dist/context-menu-C4lLV8gP.cjs +1 -0
  8. package/dist/context-menu-D5ViOi6K.js +831 -0
  9. package/dist/core.cjs +5 -11771
  10. package/dist/core.js +3993 -6891
  11. package/dist/getSplitClasses-DodqA_KW.cjs +1 -0
  12. package/dist/getSplitClasses-DphwgQiE.js +48 -0
  13. package/dist/iconBase-Cn2BsTrq.cjs +1 -0
  14. package/dist/iconBase-DHfFLkem.js +124 -0
  15. package/dist/plugin-2xcljWGM.cjs +1 -0
  16. package/dist/plugin-kUMxtQR5.js +24 -0
  17. package/dist/render.cjs +2 -247
  18. package/dist/render.js +150 -205
  19. package/dist/runtime.cjs +1 -9
  20. package/dist/sdk.css +1 -1336
  21. package/dist/tailwind.cjs +1 -78
  22. package/dist/tailwind.js +19 -21
  23. package/dist/ui.cjs +1 -378
  24. package/dist/ui.js +244 -254
  25. package/dist/web-blocks.cjs +2 -1679
  26. package/dist/web-blocks.js +518 -747
  27. package/package.json +1 -1
  28. package/dist/ChaiThemeFn-DcE5RdLQ.cjs +0 -236
  29. package/dist/ChaiThemeFn-DzirXKjI.js +0 -237
  30. package/dist/CodeEditor-C8_JzwHn.cjs +0 -81
  31. package/dist/CodeEditor-DdIk_PEV.js +0 -81
  32. package/dist/Topbar-62QmCKWL.cjs +0 -18
  33. package/dist/Topbar-Cqt0j3Yt.js +0 -18
  34. package/dist/context-menu-DHla8ofZ.js +0 -893
  35. package/dist/context-menu-DawHUIXd.cjs +0 -923
  36. package/dist/getSplitClasses-BuALfSLX.js +0 -54
  37. package/dist/getSplitClasses-mbQmvwI3.cjs +0 -53
  38. package/dist/iconBase-BSrIcOaG.cjs +0 -146
  39. package/dist/iconBase-CWgVxu0A.js +0 -147
  40. package/dist/plugin-BcTnEZwx.cjs +0 -26
  41. package/dist/plugin-DGEKY3uC.js +0 -27
@@ -1,923 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const SwitchPrimitives = require("@radix-ui/react-switch");
4
- const React = require("react");
5
- const AccordionPrimitive = require("@radix-ui/react-accordion");
6
- const reactIcons = require("@radix-ui/react-icons");
7
- const classVarianceAuthority = require("class-variance-authority");
8
- const AlertDialogPrimitive = require("@radix-ui/react-alert-dialog");
9
- const reactSlot = require("@radix-ui/react-slot");
10
- const SheetPrimitive = require("@radix-ui/react-dialog");
11
- const LabelPrimitive = require("@radix-ui/react-label");
12
- const ScrollAreaPrimitive = require("@radix-ui/react-scroll-area");
13
- const TabsPrimitive = require("@radix-ui/react-tabs");
14
- const TooltipPrimitive = require("@radix-ui/react-tooltip");
15
- const PopoverPrimitive = require("@radix-ui/react-popover");
16
- const HoverCardPrimitive = require("@radix-ui/react-hover-card");
17
- const DropdownMenuPrimitive = require("@radix-ui/react-dropdown-menu");
18
- const SeparatorPrimitive = require("@radix-ui/react-separator");
19
- const ToastPrimitives = require("@radix-ui/react-toast");
20
- const ContextMenuPrimitive = require("@radix-ui/react-context-menu");
21
- const clsx = require("clsx");
22
- const tailwindMerge = require("tailwind-merge");
23
- function _interopNamespaceDefault(e) {
24
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
25
- if (e) {
26
- for (const k in e) {
27
- if (k !== "default") {
28
- const d = Object.getOwnPropertyDescriptor(e, k);
29
- Object.defineProperty(n, k, d.get ? d : {
30
- enumerable: true,
31
- get: () => e[k]
32
- });
33
- }
34
- }
35
- }
36
- n.default = e;
37
- return Object.freeze(n);
38
- }
39
- const SwitchPrimitives__namespace = /* @__PURE__ */ _interopNamespaceDefault(SwitchPrimitives);
40
- const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
41
- const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
42
- const AlertDialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AlertDialogPrimitive);
43
- const SheetPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SheetPrimitive);
44
- const LabelPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(LabelPrimitive);
45
- const ScrollAreaPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ScrollAreaPrimitive);
46
- const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
47
- const TooltipPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TooltipPrimitive);
48
- const PopoverPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(PopoverPrimitive);
49
- const HoverCardPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(HoverCardPrimitive);
50
- const DropdownMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DropdownMenuPrimitive);
51
- const SeparatorPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SeparatorPrimitive);
52
- const ToastPrimitives__namespace = /* @__PURE__ */ _interopNamespaceDefault(ToastPrimitives);
53
- const ContextMenuPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ContextMenuPrimitive);
54
- const cn = (...inputs) => tailwindMerge.twMerge(clsx.clsx(inputs));
55
- const Switch = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
56
- SwitchPrimitives__namespace.Root,
57
- {
58
- className: cn(
59
- "peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=unchecked]:bg-slate-200 dark:focus-visible:ring-slate-800 dark:focus-visible:ring-offset-slate-950 dark:data-[state=checked]:bg-slate-50 dark:data-[state=unchecked]:bg-slate-800",
60
- className
61
- ),
62
- ...props,
63
- ref,
64
- children: /* @__PURE__ */ jsxRuntime.jsx(
65
- SwitchPrimitives__namespace.Thumb,
66
- {
67
- className: cn(
68
- "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:bg-slate-950"
69
- )
70
- }
71
- )
72
- }
73
- ));
74
- Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
75
- const buttonVariants = classVarianceAuthority.cva(
76
- "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
77
- {
78
- variants: {
79
- variant: {
80
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
81
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
82
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
83
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
84
- ghost: "hover:bg-accent hover:text-accent-foreground",
85
- link: "text-primary underline-offset-4 hover:underline"
86
- },
87
- size: {
88
- default: "h-9 px-4 py-2",
89
- sm: "h-8 rounded-md px-3 text-xs",
90
- lg: "h-10 rounded-md px-8",
91
- icon: "h-9 w-9"
92
- }
93
- },
94
- defaultVariants: {
95
- variant: "default",
96
- size: "default"
97
- }
98
- }
99
- );
100
- const Button = React__namespace.forwardRef(
101
- ({ className, variant, size, asChild = false, ...props }, ref) => {
102
- const Comp = asChild ? reactSlot.Slot : "button";
103
- return /* @__PURE__ */ jsxRuntime.jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
104
- }
105
- );
106
- Button.displayName = "Button";
107
- const Accordion = AccordionPrimitive__namespace.Root;
108
- const AccordionItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Item, { ref, className: cn("border-b", className), ...props }));
109
- AccordionItem.displayName = "AccordionItem";
110
- const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
111
- AccordionPrimitive__namespace.Trigger,
112
- {
113
- ref,
114
- className: cn(
115
- "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
116
- className
117
- ),
118
- ...props,
119
- children: [
120
- children,
121
- props.hideArrow ? null : /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
122
- ]
123
- }
124
- ) }));
125
- AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
126
- const AccordionContent = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
127
- AccordionPrimitive__namespace.Content,
128
- {
129
- ref,
130
- className: cn(
131
- "text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
132
- className
133
- ),
134
- ...props,
135
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pb-4 pt-0", children })
136
- }
137
- ));
138
- AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
139
- const badgeVariants = classVarianceAuthority.cva(
140
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
141
- {
142
- variants: {
143
- variant: {
144
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
145
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
146
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
147
- outline: "text-foreground"
148
- }
149
- },
150
- defaultVariants: {
151
- variant: "default"
152
- }
153
- }
154
- );
155
- const Badge = ({ className, variant, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
156
- const AlertDialog = AlertDialogPrimitive__namespace.Root;
157
- const AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
158
- const AlertDialogPortal = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { className: cn(className), ...props });
159
- AlertDialogPortal.displayName = AlertDialogPrimitive__namespace.Portal.displayName;
160
- const AlertDialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
161
- AlertDialogPrimitive__namespace.Overlay,
162
- {
163
- className: cn(
164
- "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",
165
- className
166
- ),
167
- ...props,
168
- ref
169
- }
170
- ));
171
- AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
172
- const AlertDialogContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
173
- /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
174
- /* @__PURE__ */ jsxRuntime.jsx(
175
- AlertDialogPrimitive__namespace.Content,
176
- {
177
- ref,
178
- className: cn(
179
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
180
- className
181
- ),
182
- ...props
183
- }
184
- )
185
- ] }));
186
- AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
187
- const AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
188
- AlertDialogHeader.displayName = "AlertDialogHeader";
189
- const AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
190
- AlertDialogFooter.displayName = "AlertDialogFooter";
191
- const AlertDialogTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
192
- AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
193
- const AlertDialogDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
194
- AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
195
- const AlertDialogAction = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Action, { ref, className: cn(buttonVariants(), className), ...props }));
196
- AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
197
- const AlertDialogCancel = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
198
- AlertDialogPrimitive__namespace.Cancel,
199
- {
200
- ref,
201
- className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className),
202
- ...props
203
- }
204
- ));
205
- AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
206
- const Dialog = SheetPrimitive__namespace.Root;
207
- const DialogTrigger = SheetPrimitive__namespace.Trigger;
208
- const DialogPortal = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { className: cn(className), ...props });
209
- DialogPortal.displayName = SheetPrimitive__namespace.Portal.displayName;
210
- const DialogOverlay = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
211
- SheetPrimitive__namespace.Overlay,
212
- {
213
- ref,
214
- className: cn(
215
- "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",
216
- className
217
- ),
218
- ...props
219
- }
220
- ));
221
- DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
222
- const DialogContent = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
223
- /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
224
- /* @__PURE__ */ jsxRuntime.jsxs(
225
- SheetPrimitive__namespace.Content,
226
- {
227
- ref,
228
- className: cn(
229
- "fixed left-[50%] top-[50%] z-[999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
230
- className
231
- ),
232
- ...props,
233
- children: [
234
- children,
235
- /* @__PURE__ */ jsxRuntime.jsxs(SheetPrimitive__namespace.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-accent data-[state=open]:text-muted-foreground", children: [
236
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross2Icon, { className: "h-4 w-4" }),
237
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
238
- ] })
239
- ]
240
- }
241
- )
242
- ] }));
243
- DialogContent.displayName = SheetPrimitive__namespace.Content.displayName;
244
- const DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
245
- DialogHeader.displayName = "DialogHeader";
246
- const DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
247
- DialogFooter.displayName = "DialogFooter";
248
- const DialogTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
249
- SheetPrimitive__namespace.Title,
250
- {
251
- ref,
252
- className: cn("text-lg font-semibold leading-none tracking-tight", className),
253
- ...props
254
- }
255
- ));
256
- DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
257
- const DialogDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
258
- DialogDescription.displayName = SheetPrimitive__namespace.Description.displayName;
259
- const Card = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("rounded-xl border bg-card text-card-foreground shadow", className), ...props }));
260
- Card.displayName = "Card";
261
- const CardHeader = React__namespace.forwardRef(
262
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
263
- );
264
- CardHeader.displayName = "CardHeader";
265
- const CardTitle = React__namespace.forwardRef(
266
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("h3", { ref, className: cn("font-semibold leading-none tracking-tight", className), ...props })
267
- );
268
- CardTitle.displayName = "CardTitle";
269
- const CardDescription = React__namespace.forwardRef(
270
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
271
- );
272
- CardDescription.displayName = "CardDescription";
273
- const CardContent = React__namespace.forwardRef(
274
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props })
275
- );
276
- CardContent.displayName = "CardContent";
277
- const CardFooter = React__namespace.forwardRef(
278
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(" flex items-center p-6 pt-0", className), ...props })
279
- );
280
- CardFooter.displayName = "CardFooter";
281
- const Input = React__namespace.forwardRef(({ className, type, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
282
- "input",
283
- {
284
- type,
285
- className: cn(
286
- "flex h-9 w-full rounded-md border border-border bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
287
- className
288
- ),
289
- ref,
290
- ...props,
291
- autoCapitalize: "off",
292
- autoCorrect: "off",
293
- spellCheck: "false"
294
- }
295
- ));
296
- Input.displayName = "Input";
297
- const labelVariants = classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
298
- const Label = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(LabelPrimitive__namespace.Root, { ref, className: cn(labelVariants(), className), ...props }));
299
- Label.displayName = LabelPrimitive__namespace.Root.displayName;
300
- const Textarea = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
301
- "textarea",
302
- {
303
- className: cn(
304
- "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
305
- className
306
- ),
307
- ref,
308
- ...props,
309
- autoCapitalize: "off",
310
- autoCorrect: "off",
311
- spellCheck: "false"
312
- }
313
- ));
314
- Textarea.displayName = "Textarea";
315
- const ScrollArea = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
316
- /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
317
- /* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
318
- /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
319
- ] }));
320
- ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
321
- const ScrollBar = React__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
322
- ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
323
- {
324
- ref,
325
- orientation,
326
- className: cn(
327
- "flex touch-none select-none transition-colors",
328
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
329
- orientation === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
330
- className
331
- ),
332
- ...props,
333
- children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
334
- }
335
- ));
336
- ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
337
- const Tabs = TabsPrimitive__namespace.Root;
338
- const TabsList = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
339
- TabsPrimitive__namespace.List,
340
- {
341
- ref,
342
- className: cn(
343
- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
344
- className
345
- ),
346
- ...props
347
- }
348
- ));
349
- TabsList.displayName = TabsPrimitive__namespace.List.displayName;
350
- const TabsTrigger = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
351
- TabsPrimitive__namespace.Trigger,
352
- {
353
- ref,
354
- className: cn(
355
- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all 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=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
356
- className
357
- ),
358
- ...props
359
- }
360
- ));
361
- TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
362
- const TabsContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
363
- TabsPrimitive__namespace.Content,
364
- {
365
- ref,
366
- className: cn(
367
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
368
- className
369
- ),
370
- ...props
371
- }
372
- ));
373
- TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
374
- const TooltipPortal = TooltipPrimitive__namespace.Portal;
375
- const TooltipProvider = TooltipPrimitive__namespace.Provider;
376
- const Tooltip = TooltipPrimitive__namespace.Root;
377
- const TooltipTrigger = TooltipPrimitive__namespace.Trigger;
378
- const TooltipContent = React__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
379
- TooltipPrimitive__namespace.Content,
380
- {
381
- ref,
382
- sideOffset,
383
- className: cn(
384
- "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
385
- className
386
- ),
387
- ...props
388
- }
389
- ));
390
- TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
391
- const Popover = PopoverPrimitive__namespace.Root;
392
- const PopoverTrigger = PopoverPrimitive__namespace.Trigger;
393
- const PopoverContent = React__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
394
- PopoverPrimitive__namespace.Content,
395
- {
396
- ref,
397
- align,
398
- sideOffset,
399
- className: cn(
400
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
401
- className
402
- ),
403
- ...props
404
- }
405
- ) }));
406
- PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
407
- const HoverCard = HoverCardPrimitive__namespace.Root;
408
- const HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
409
- const HoverCardContent = React__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
410
- HoverCardPrimitive__namespace.Content,
411
- {
412
- ref,
413
- align,
414
- sideOffset,
415
- className: cn(
416
- "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
417
- className
418
- ),
419
- ...props
420
- }
421
- ));
422
- HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
423
- const DropdownMenu = DropdownMenuPrimitive__namespace.Root;
424
- const DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
425
- const DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
426
- const DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
427
- const DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
428
- const DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
429
- const DropdownMenuSubTrigger = React__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
430
- DropdownMenuPrimitive__namespace.SubTrigger,
431
- {
432
- ref,
433
- className: cn(
434
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
435
- inset && "pl-8",
436
- className
437
- ),
438
- ...props,
439
- children: [
440
- children,
441
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
442
- ]
443
- }
444
- ));
445
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
446
- const DropdownMenuSubContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
447
- DropdownMenuPrimitive__namespace.SubContent,
448
- {
449
- ref,
450
- className: cn(
451
- "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",
452
- className
453
- ),
454
- ...props
455
- }
456
- ));
457
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
458
- const DropdownMenuContent = React__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
459
- DropdownMenuPrimitive__namespace.Content,
460
- {
461
- ref,
462
- sideOffset,
463
- className: cn(
464
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
465
- "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",
466
- className
467
- ),
468
- ...props
469
- }
470
- ) }));
471
- DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
472
- const DropdownMenuItem = React__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
473
- DropdownMenuPrimitive__namespace.Item,
474
- {
475
- ref,
476
- className: cn(
477
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
478
- inset && "pl-8",
479
- className
480
- ),
481
- ...props
482
- }
483
- ));
484
- DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
485
- const DropdownMenuCheckboxItem = React__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
486
- DropdownMenuPrimitive__namespace.CheckboxItem,
487
- {
488
- ref,
489
- className: cn(
490
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
491
- className
492
- ),
493
- checked,
494
- ...props,
495
- children: [
496
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CheckIcon, { className: "h-4 w-4" }) }) }),
497
- children
498
- ]
499
- }
500
- ));
501
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
502
- const DropdownMenuRadioItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
503
- DropdownMenuPrimitive__namespace.RadioItem,
504
- {
505
- ref,
506
- className: cn(
507
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
508
- className
509
- ),
510
- ...props,
511
- children: [
512
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
513
- children
514
- ]
515
- }
516
- ));
517
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
518
- const DropdownMenuLabel = React__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
519
- DropdownMenuPrimitive__namespace.Label,
520
- {
521
- ref,
522
- className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
523
- ...props
524
- }
525
- ));
526
- DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
527
- const DropdownMenuSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
528
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
529
- const DropdownMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
530
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
531
- const Separator = React__namespace.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
532
- SeparatorPrimitive__namespace.Root,
533
- {
534
- ref,
535
- decorative,
536
- orientation,
537
- className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className),
538
- ...props
539
- }
540
- ));
541
- Separator.displayName = SeparatorPrimitive__namespace.Root.displayName;
542
- const TOAST_LIMIT = 1;
543
- const TOAST_REMOVE_DELAY = 1e6;
544
- let count = 0;
545
- function genId() {
546
- count = (count + 1) % Number.MAX_VALUE;
547
- return count.toString();
548
- }
549
- const toastTimeouts = /* @__PURE__ */ new Map();
550
- const addToRemoveQueue = (toastId) => {
551
- if (toastTimeouts.has(toastId)) {
552
- return;
553
- }
554
- const timeout = setTimeout(() => {
555
- toastTimeouts.delete(toastId);
556
- dispatch({
557
- type: "REMOVE_TOAST",
558
- toastId
559
- });
560
- }, TOAST_REMOVE_DELAY);
561
- toastTimeouts.set(toastId, timeout);
562
- };
563
- const reducer = (state, action) => {
564
- switch (action.type) {
565
- case "ADD_TOAST":
566
- return {
567
- ...state,
568
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
569
- };
570
- case "UPDATE_TOAST":
571
- return {
572
- ...state,
573
- toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t)
574
- };
575
- case "DISMISS_TOAST": {
576
- const { toastId } = action;
577
- if (toastId) {
578
- addToRemoveQueue(toastId);
579
- } else {
580
- state.toasts.forEach((toast2) => {
581
- addToRemoveQueue(toast2.id);
582
- });
583
- }
584
- return {
585
- ...state,
586
- toasts: state.toasts.map(
587
- (t) => t.id === toastId || toastId === void 0 ? {
588
- ...t,
589
- open: false
590
- } : t
591
- )
592
- };
593
- }
594
- case "REMOVE_TOAST":
595
- if (action.toastId === void 0) {
596
- return {
597
- ...state,
598
- toasts: []
599
- };
600
- }
601
- return {
602
- ...state,
603
- toasts: state.toasts.filter((t) => t.id !== action.toastId)
604
- };
605
- }
606
- };
607
- const listeners = [];
608
- let memoryState = { toasts: [] };
609
- function dispatch(action) {
610
- memoryState = reducer(memoryState, action);
611
- listeners.forEach((listener) => {
612
- listener(memoryState);
613
- });
614
- }
615
- function toast({ ...props }) {
616
- const id = genId();
617
- const update = (props2) => dispatch({
618
- type: "UPDATE_TOAST",
619
- toast: { ...props2, id }
620
- });
621
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
622
- dispatch({
623
- type: "ADD_TOAST",
624
- toast: {
625
- ...props,
626
- id,
627
- open: true,
628
- onOpenChange: (open) => {
629
- if (!open) dismiss();
630
- }
631
- }
632
- });
633
- return {
634
- id,
635
- dismiss,
636
- update
637
- };
638
- }
639
- function useToast() {
640
- const [state, setState] = React__namespace.useState(memoryState);
641
- React__namespace.useEffect(() => {
642
- listeners.push(setState);
643
- return () => {
644
- const index = listeners.indexOf(setState);
645
- if (index > -1) {
646
- listeners.splice(index, 1);
647
- }
648
- };
649
- }, [state]);
650
- return {
651
- ...state,
652
- toast,
653
- dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
654
- };
655
- }
656
- const ToastProvider = ToastPrimitives__namespace.Provider;
657
- const ToastViewport = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
658
- ToastPrimitives__namespace.Viewport,
659
- {
660
- ref,
661
- className: cn(
662
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
663
- className
664
- ),
665
- ...props
666
- }
667
- ));
668
- ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
669
- const toastVariants = classVarianceAuthority.cva(
670
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
671
- {
672
- variants: {
673
- variant: {
674
- default: "border bg-background",
675
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
676
- }
677
- },
678
- defaultVariants: {
679
- variant: "default"
680
- }
681
- }
682
- );
683
- const Toast = React__namespace.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Root, { ref, className: cn(toastVariants({ variant }), className), ...props }));
684
- Toast.displayName = ToastPrimitives__namespace.Root.displayName;
685
- const ToastAction = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
686
- ToastPrimitives__namespace.Action,
687
- {
688
- ref,
689
- className: cn(
690
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
691
- className
692
- ),
693
- ...props
694
- }
695
- ));
696
- ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
697
- const ToastClose = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
698
- ToastPrimitives__namespace.Close,
699
- {
700
- ref,
701
- className: cn(
702
- "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
703
- className
704
- ),
705
- "toast-close": "",
706
- ...props,
707
- children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross2Icon, { className: "h-4 w-4" })
708
- }
709
- ));
710
- ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
711
- const ToastTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn("text-sm font-semibold [&+div]:text-xs", className), ...props }));
712
- ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
713
- const ToastDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Description, { ref, className: cn("text-sm opacity-90", className), ...props }));
714
- ToastDescription.displayName = ToastPrimitives__namespace.Description.displayName;
715
- function Toaster() {
716
- const { toasts } = useToast();
717
- return /* @__PURE__ */ jsxRuntime.jsxs(ToastProvider, { children: [
718
- toasts.map(({ id, title, description, action, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(Toast, { ...props, children: [
719
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1", children: [
720
- title && /* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title }),
721
- description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
722
- ] }),
723
- action,
724
- /* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
725
- ] }, id)),
726
- /* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
727
- ] });
728
- }
729
- const Skeleton = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("animate-pulse rounded-md bg-primary/10", className), ...props });
730
- const ContextMenu = ContextMenuPrimitive__namespace.Root;
731
- const ContextMenuTrigger = ContextMenuPrimitive__namespace.Trigger;
732
- const ContextMenuGroup = ContextMenuPrimitive__namespace.Group;
733
- const ContextMenuPortal = ContextMenuPrimitive__namespace.Portal;
734
- const ContextMenuSub = ContextMenuPrimitive__namespace.Sub;
735
- const ContextMenuRadioGroup = ContextMenuPrimitive__namespace.RadioGroup;
736
- const ContextMenuSubTrigger = React__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
737
- ContextMenuPrimitive__namespace.SubTrigger,
738
- {
739
- ref,
740
- className: cn(
741
- "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",
742
- inset && "pl-8",
743
- className
744
- ),
745
- ...props,
746
- children: [
747
- children,
748
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
749
- ]
750
- }
751
- ));
752
- ContextMenuSubTrigger.displayName = ContextMenuPrimitive__namespace.SubTrigger.displayName;
753
- const ContextMenuSubContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
754
- ContextMenuPrimitive__namespace.SubContent,
755
- {
756
- ref,
757
- className: cn(
758
- "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",
759
- className
760
- ),
761
- ...props
762
- }
763
- ));
764
- ContextMenuSubContent.displayName = ContextMenuPrimitive__namespace.SubContent.displayName;
765
- const ContextMenuContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
766
- ContextMenuPrimitive__namespace.Content,
767
- {
768
- ref,
769
- className: cn(
770
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",
771
- className
772
- ),
773
- ...props
774
- }
775
- ) }));
776
- ContextMenuContent.displayName = ContextMenuPrimitive__namespace.Content.displayName;
777
- const ContextMenuItem = React__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
778
- ContextMenuPrimitive__namespace.Item,
779
- {
780
- ref,
781
- className: cn(
782
- "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",
783
- inset && "pl-8",
784
- className
785
- ),
786
- ...props
787
- }
788
- ));
789
- ContextMenuItem.displayName = ContextMenuPrimitive__namespace.Item.displayName;
790
- const ContextMenuCheckboxItem = React__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
791
- ContextMenuPrimitive__namespace.CheckboxItem,
792
- {
793
- ref,
794
- className: cn(
795
- "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",
796
- className
797
- ),
798
- checked,
799
- ...props,
800
- children: [
801
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CheckIcon, { className: "h-4 w-4" }) }) }),
802
- children
803
- ]
804
- }
805
- ));
806
- ContextMenuCheckboxItem.displayName = ContextMenuPrimitive__namespace.CheckboxItem.displayName;
807
- const ContextMenuRadioItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
808
- ContextMenuPrimitive__namespace.RadioItem,
809
- {
810
- ref,
811
- className: cn(
812
- "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",
813
- className
814
- ),
815
- ...props,
816
- children: [
817
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
818
- children
819
- ]
820
- }
821
- ));
822
- ContextMenuRadioItem.displayName = ContextMenuPrimitive__namespace.RadioItem.displayName;
823
- const ContextMenuLabel = React__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
824
- ContextMenuPrimitive__namespace.Label,
825
- {
826
- ref,
827
- className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
828
- ...props
829
- }
830
- ));
831
- ContextMenuLabel.displayName = ContextMenuPrimitive__namespace.Label.displayName;
832
- const ContextMenuSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
833
- ContextMenuSeparator.displayName = ContextMenuPrimitive__namespace.Separator.displayName;
834
- const ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
835
- ContextMenuShortcut.displayName = "ContextMenuShortcut";
836
- exports.Accordion = Accordion;
837
- exports.AccordionContent = AccordionContent;
838
- exports.AccordionItem = AccordionItem;
839
- exports.AccordionTrigger = AccordionTrigger;
840
- exports.AlertDialog = AlertDialog;
841
- exports.AlertDialogAction = AlertDialogAction;
842
- exports.AlertDialogCancel = AlertDialogCancel;
843
- exports.AlertDialogContent = AlertDialogContent;
844
- exports.AlertDialogDescription = AlertDialogDescription;
845
- exports.AlertDialogFooter = AlertDialogFooter;
846
- exports.AlertDialogHeader = AlertDialogHeader;
847
- exports.AlertDialogTitle = AlertDialogTitle;
848
- exports.AlertDialogTrigger = AlertDialogTrigger;
849
- exports.Badge = Badge;
850
- exports.Button = Button;
851
- exports.Card = Card;
852
- exports.CardContent = CardContent;
853
- exports.CardDescription = CardDescription;
854
- exports.CardFooter = CardFooter;
855
- exports.CardHeader = CardHeader;
856
- exports.CardTitle = CardTitle;
857
- exports.ContextMenu = ContextMenu;
858
- exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
859
- exports.ContextMenuContent = ContextMenuContent;
860
- exports.ContextMenuGroup = ContextMenuGroup;
861
- exports.ContextMenuItem = ContextMenuItem;
862
- exports.ContextMenuLabel = ContextMenuLabel;
863
- exports.ContextMenuPortal = ContextMenuPortal;
864
- exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
865
- exports.ContextMenuRadioItem = ContextMenuRadioItem;
866
- exports.ContextMenuSeparator = ContextMenuSeparator;
867
- exports.ContextMenuShortcut = ContextMenuShortcut;
868
- exports.ContextMenuSub = ContextMenuSub;
869
- exports.ContextMenuSubContent = ContextMenuSubContent;
870
- exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
871
- exports.ContextMenuTrigger = ContextMenuTrigger;
872
- exports.Dialog = Dialog;
873
- exports.DialogContent = DialogContent;
874
- exports.DialogDescription = DialogDescription;
875
- exports.DialogFooter = DialogFooter;
876
- exports.DialogHeader = DialogHeader;
877
- exports.DialogTitle = DialogTitle;
878
- exports.DialogTrigger = DialogTrigger;
879
- exports.DropdownMenu = DropdownMenu;
880
- exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
881
- exports.DropdownMenuContent = DropdownMenuContent;
882
- exports.DropdownMenuGroup = DropdownMenuGroup;
883
- exports.DropdownMenuItem = DropdownMenuItem;
884
- exports.DropdownMenuLabel = DropdownMenuLabel;
885
- exports.DropdownMenuPortal = DropdownMenuPortal;
886
- exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
887
- exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
888
- exports.DropdownMenuSeparator = DropdownMenuSeparator;
889
- exports.DropdownMenuShortcut = DropdownMenuShortcut;
890
- exports.DropdownMenuSub = DropdownMenuSub;
891
- exports.DropdownMenuSubContent = DropdownMenuSubContent;
892
- exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
893
- exports.DropdownMenuTrigger = DropdownMenuTrigger;
894
- exports.HoverCard = HoverCard;
895
- exports.HoverCardContent = HoverCardContent;
896
- exports.HoverCardTrigger = HoverCardTrigger;
897
- exports.Input = Input;
898
- exports.Label = Label;
899
- exports.Popover = Popover;
900
- exports.PopoverContent = PopoverContent;
901
- exports.PopoverTrigger = PopoverTrigger;
902
- exports.ScrollArea = ScrollArea;
903
- exports.ScrollBar = ScrollBar;
904
- exports.Separator = Separator;
905
- exports.Skeleton = Skeleton;
906
- exports.Switch = Switch;
907
- exports.Tabs = Tabs;
908
- exports.TabsContent = TabsContent;
909
- exports.TabsList = TabsList;
910
- exports.TabsTrigger = TabsTrigger;
911
- exports.Textarea = Textarea;
912
- exports.Toaster = Toaster;
913
- exports.Tooltip = Tooltip;
914
- exports.TooltipContent = TooltipContent;
915
- exports.TooltipPortal = TooltipPortal;
916
- exports.TooltipProvider = TooltipProvider;
917
- exports.TooltipTrigger = TooltipTrigger;
918
- exports.badgeVariants = badgeVariants;
919
- exports.buttonVariants = buttonVariants;
920
- exports.cn = cn;
921
- exports.reducer = reducer;
922
- exports.toast = toast;
923
- exports.useToast = useToast;