@chaibuilder/sdk 1.2.9 → 1.2.10-7.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -21
- package/dist/CodeEditor-2fowVPcS.cjs +143 -0
- package/dist/CodeEditor-b6uePnTe.js +143 -0
- package/dist/STRINGS-RCf9qnaS.cjs +9 -0
- package/dist/STRINGS-t8UhMYZ6.js +10 -0
- package/dist/Topbar-O21Nrw2O.cjs +137 -0
- package/dist/Topbar-xFfdTq1m.js +137 -0
- package/dist/UnsplashImages-awQiGFMX.cjs +280 -0
- package/dist/UnsplashImages-qQmFIWEy.js +280 -0
- package/dist/UploadImages-a8Hl0tyg.cjs +170 -0
- package/dist/UploadImages-cudxJepv.js +170 -0
- package/dist/context-menu-VMB9i0d8.cjs +1074 -0
- package/dist/context-menu-mp3Gu2KA.js +1043 -0
- package/dist/controls-4t-C_rP2.cjs +233 -0
- package/dist/controls-fQIu127i.js +234 -0
- package/dist/core.cjs +135 -1
- package/dist/core.d.ts +344 -119
- package/dist/core.js +111 -88
- package/dist/iconBase-OGxLGBQ1.cjs +156 -0
- package/dist/iconBase-Ofd16yeE.js +157 -0
- package/dist/index-R7v8ZYnu.js +12110 -0
- package/dist/index-WHVUpVPa.cjs +12125 -0
- package/dist/jsx-runtime-_yxTjXEh.js +931 -0
- package/dist/jsx-runtime-vPqyLgmD.cjs +930 -0
- package/dist/mockServiceWorker.js +18 -10
- package/dist/plugin-RAiM74uD.cjs +116 -0
- package/dist/plugin-T1qbgBUO.js +55 -0
- package/dist/plugin-YcxlCmRm.js +117 -0
- package/dist/plugin-cYi6q9KC.cjs +54 -0
- package/dist/render.cjs +215 -1
- package/dist/render.d.ts +21 -40
- package/dist/render.js +190 -98
- package/dist/runtime.cjs +28 -0
- package/dist/runtime.d.ts +5 -0
- package/dist/runtime.js +21 -0
- package/dist/style.css +1524 -1
- package/dist/tailwind.cjs +80 -1
- package/dist/tailwind.d.ts +49 -8
- package/dist/tailwind.js +23 -25
- package/dist/ui.cjs +410 -1
- package/dist/ui.d.ts +3 -13
- package/dist/ui.js +374 -163
- package/dist/web-blocks.cjs +1246 -9
- package/dist/web-blocks.d.ts +1 -1
- package/dist/web-blocks.js +961 -789
- package/package.json +66 -83
- package/dist/AddBlocks-tMxKPoen.js +0 -225
- package/dist/AddBlocks-x2LkOHSj.cjs +0 -1
- package/dist/BrandingOptions-EzT9UYd6.cjs +0 -1
- package/dist/BrandingOptions-QJJ1y5ez.js +0 -194
- package/dist/CanvasArea-mlNKmCOh.js +0 -1425
- package/dist/CanvasArea-xs4wM64L.cjs +0 -60
- package/dist/CurrentPage-aaU4F7wi.cjs +0 -1
- package/dist/CurrentPage-lBy25sZn.js +0 -111
- package/dist/Functions-7jnEwJyw.js +0 -15
- package/dist/Functions-N3yhPYKY.cjs +0 -1
- package/dist/Layers-3Xs4A5i8.js +0 -404
- package/dist/Layers-eaHy5PK9.cjs +0 -1
- package/dist/MODIFIERS-2FeVfZQ9.cjs +0 -1
- package/dist/MODIFIERS-RiXS5Mn1.js +0 -67
- package/dist/MarkAsGlobalBlock-BjP-Rqlf.js +0 -88
- package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +0 -1
- package/dist/PagesPanel--BZhafnt.js +0 -69
- package/dist/PagesPanel-gGKCV394.cjs +0 -1
- package/dist/ProjectPanel-YcLkM-DW.js +0 -90
- package/dist/ProjectPanel-yFJRy0_E.cjs +0 -1
- package/dist/Settings-7wlLcvoh.cjs +0 -1
- package/dist/Settings-TAgX4hov.js +0 -2186
- package/dist/SidePanels-5H4j0mIs.cjs +0 -1
- package/dist/SidePanels-btVQQkVK.js +0 -349
- package/dist/Topbar-V8xCetWF.cjs +0 -1
- package/dist/Topbar-j4t4AgCq.js +0 -116
- package/dist/UnsplashImages-41Y3q5_Q.js +0 -200
- package/dist/UnsplashImages-DbHky6cj.cjs +0 -1
- package/dist/UploadImages-DnQ95_NW.cjs +0 -1
- package/dist/UploadImages-xBg-kbKv.js +0 -138
- package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
- package/dist/add-page-modal-MwS7iXn_.cjs +0 -1
- package/dist/add-page-modal-cm8damU2.js +0 -108
- package/dist/confirm-alert-U7-NcG7G.cjs +0 -1
- package/dist/confirm-alert-i4pM3mOt.js +0 -62
- package/dist/controls-Dy1qa8Dc.cjs +0 -1
- package/dist/controls-XPXGHKht.js +0 -182
- package/dist/delete-page-modal-5o4jXu-z.cjs +0 -1
- package/dist/delete-page-modal-YrIBvfFA.js +0 -88
- package/dist/email-blocks.cjs +0 -1
- package/dist/email-blocks.d.ts +0 -3
- package/dist/email-blocks.js +0 -274
- package/dist/form-OVmsLOrc.js +0 -125
- package/dist/form-VbouZlAW.cjs +0 -1
- package/dist/functions-Ox_svtKm.cjs +0 -1
- package/dist/functions-xIebp8Aw.js +0 -23
- package/dist/html-to-json-2PeOCVey.cjs +0 -1
- package/dist/html-to-json-57841sEK.js +0 -183
- package/dist/index-H6vIwGfD.cjs +0 -1
- package/dist/index-N50dZnlC.cjs +0 -206
- package/dist/index-e0c8PmRQ.js +0 -205
- package/dist/index-gi1LIOCw.cjs +0 -1
- package/dist/index-niHREMmR.js +0 -2938
- package/dist/index-pZhGT8uT.js +0 -41620
- package/dist/jsx-runtime-WbnYoNE9.js +0 -634
- package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
- package/dist/lib.cjs +0 -4
- package/dist/lib.d.ts +0 -78
- package/dist/lib.js +0 -1322
- package/dist/page-viewer-SLt8XgYv.cjs +0 -1
- package/dist/page-viewer-feqJr1QI.js +0 -115
- package/dist/project-general-setting-SgagORzW.js +0 -83
- package/dist/project-general-setting-ym0yCdOq.cjs +0 -1
- package/dist/project-seo-setting-Snn2nZgS.cjs +0 -1
- package/dist/project-seo-setting-wxAGEkd_.js +0 -85
- package/dist/server.cjs +0 -1
- package/dist/server.d.ts +0 -299
- package/dist/server.js +0 -216
- package/dist/single-page-detail-IPod1o5P.cjs +0 -1
- package/dist/single-page-detail-dnWMyg6P.js +0 -222
- package/dist/studio.cjs +0 -1
- package/dist/studio.d.ts +0 -13
- package/dist/studio.js +0 -58
- package/dist/useAddBlockByDrop-_nwI4W3q.js +0 -20
- package/dist/useAddBlockByDrop-inkD7Lck.cjs +0 -1
- package/dist/utils-AvyFzbPC.js +0 -1075
- package/dist/utils-PTxFk6qT.cjs +0 -1
package/dist/ui.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
7
7
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
|
-
import { FieldProps } from '@rjsf/utils';
|
|
9
8
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
10
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
10
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -22,7 +21,6 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
22
21
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
23
22
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
24
23
|
import { VariantProps } from 'class-variance-authority';
|
|
25
|
-
import { WidgetProps } from '@rjsf/utils';
|
|
26
24
|
|
|
27
25
|
export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes<HTMLDivElement>>;
|
|
28
26
|
|
|
@@ -93,7 +91,7 @@ export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElemen
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
export declare const badgeVariants: (props?: {
|
|
96
|
-
variant?: "default" | "outline" | "
|
|
94
|
+
variant?: "default" | "outline" | "destructive" | "secondary";
|
|
97
95
|
} & ClassProp) => string;
|
|
98
96
|
|
|
99
97
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -103,7 +101,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export declare const buttonVariants: (props?: {
|
|
106
|
-
variant?: "link" | "default" | "outline" | "
|
|
104
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost";
|
|
107
105
|
size?: "sm" | "lg" | "default" | "icon";
|
|
108
106
|
} & ClassProp) => string;
|
|
109
107
|
|
|
@@ -276,10 +274,6 @@ export declare const HoverCardContent: React_2.ForwardRefExoticComponent<Omit<Ho
|
|
|
276
274
|
|
|
277
275
|
export declare const HoverCardTrigger: React_2.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
278
276
|
|
|
279
|
-
export declare const IconPickerField: ({ value, onChange, onBlur, id }: WidgetProps) => JSX_2.Element;
|
|
280
|
-
|
|
281
|
-
export declare const ImagePickerField: ({ value, onChange, id, onBlur }: WidgetProps) => JSX_2.Element;
|
|
282
|
-
|
|
283
277
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
284
278
|
|
|
285
279
|
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -287,8 +281,6 @@ export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInpu
|
|
|
287
281
|
|
|
288
282
|
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp) => string> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
289
283
|
|
|
290
|
-
export declare const LinkField: ({ schema, formData, onChange }: FieldProps) => JSX_2.Element;
|
|
291
|
-
|
|
292
284
|
export declare const Menubar: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
293
285
|
|
|
294
286
|
export declare const MenubarCheckboxItem: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -341,8 +333,6 @@ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPr
|
|
|
341
333
|
|
|
342
334
|
export declare const reducer: (state: State, action: Action) => State;
|
|
343
335
|
|
|
344
|
-
export declare const RTEField: ({ id, placeholder, value, onChange, onBlur }: WidgetProps) => JSX_2.Element;
|
|
345
|
-
|
|
346
336
|
export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
347
337
|
|
|
348
338
|
export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -391,7 +381,7 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPr
|
|
|
391
381
|
export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
392
382
|
|
|
393
383
|
declare const sheetVariants: (props?: {
|
|
394
|
-
side?: "
|
|
384
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
395
385
|
} & ClassProp) => string;
|
|
396
386
|
|
|
397
387
|
export declare const Skeleton: ({ className, ...props }: React_3.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
|
package/dist/ui.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "clsx";
|
|
11
|
-
import "tailwind-merge";
|
|
1
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-_yxTjXEh.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-mp3Gu2KA.js";
|
|
6
|
+
import { A, h, f, g, k, r, s, m, q, o, n, p, l, i, B, C, H, G, E, z, F, 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, u, y, w, v, x, t, a8, ac, aa, ah, ab, ae, ai, am, ad, af, ag, aj, ak, al, a9, Z, $, _, I, L, W, Y, X, S, J, a0, a4, a1, a6, a5, a7, a3, a2, b, a, d, K, O, M, N, T, aq, P, R, V, U, Q, j, e, an, ap, ao } from "./context-menu-mp3Gu2KA.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";
|
|
12
10
|
import "@radix-ui/react-switch";
|
|
13
|
-
import "@radix-ui/react-slot";
|
|
14
11
|
import "@radix-ui/react-accordion";
|
|
15
|
-
import "@radix-ui/react-icons";
|
|
16
12
|
import "@radix-ui/react-alert-dialog";
|
|
17
|
-
import "@radix-ui/react-
|
|
13
|
+
import "@radix-ui/react-slot";
|
|
18
14
|
import "@radix-ui/react-label";
|
|
19
15
|
import "@radix-ui/react-scroll-area";
|
|
20
16
|
import "@radix-ui/react-tabs";
|
|
21
17
|
import "@radix-ui/react-tooltip";
|
|
22
18
|
import "@radix-ui/react-popover";
|
|
23
|
-
import "@radix-ui/react-menubar";
|
|
24
19
|
import "@radix-ui/react-hover-card";
|
|
25
20
|
import "@radix-ui/react-select";
|
|
26
21
|
import "@radix-ui/react-dropdown-menu";
|
|
@@ -28,153 +23,369 @@ import "@radix-ui/react-separator";
|
|
|
28
23
|
import "@radix-ui/react-toast";
|
|
29
24
|
import "cmdk";
|
|
30
25
|
import "@radix-ui/react-context-menu";
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
import "clsx";
|
|
27
|
+
import "tailwind-merge";
|
|
28
|
+
const toggleVariants = cva(
|
|
29
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
30
|
+
{
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
default: "bg-transparent",
|
|
34
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
default: "h-10 px-3",
|
|
38
|
+
sm: "h-9 px-2.5",
|
|
39
|
+
lg: "h-11 px-5"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
variant: "default",
|
|
44
|
+
size: "default"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
49
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
50
|
+
const alertVariants = cva(
|
|
51
|
+
"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",
|
|
52
|
+
{
|
|
53
|
+
variants: {
|
|
54
|
+
variant: {
|
|
55
|
+
default: "bg-background text-foreground",
|
|
56
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "default"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
65
|
+
Alert.displayName = "Alert";
|
|
66
|
+
const AlertTitle = React.forwardRef(
|
|
67
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
68
|
+
);
|
|
69
|
+
AlertTitle.displayName = "AlertTitle";
|
|
70
|
+
const AlertDescription = React.forwardRef(
|
|
71
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
72
|
+
);
|
|
73
|
+
AlertDescription.displayName = "AlertDescription";
|
|
74
|
+
const MenubarMenu = MenubarPrimitive.Menu;
|
|
75
|
+
const MenubarGroup = MenubarPrimitive.Group;
|
|
76
|
+
const MenubarPortal = MenubarPrimitive.Portal;
|
|
77
|
+
const MenubarSub = MenubarPrimitive.Sub;
|
|
78
|
+
const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
79
|
+
const Menubar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
80
|
+
MenubarPrimitive.Root,
|
|
81
|
+
{
|
|
82
|
+
ref,
|
|
83
|
+
className: cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", className),
|
|
84
|
+
...props
|
|
85
|
+
}
|
|
86
|
+
));
|
|
87
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
88
|
+
const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
89
|
+
MenubarPrimitive.Trigger,
|
|
90
|
+
{
|
|
91
|
+
ref,
|
|
92
|
+
className: cn(
|
|
93
|
+
"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",
|
|
94
|
+
className
|
|
95
|
+
),
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
));
|
|
99
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
100
|
+
const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
101
|
+
MenubarPrimitive.SubTrigger,
|
|
102
|
+
{
|
|
103
|
+
ref,
|
|
104
|
+
className: cn(
|
|
105
|
+
"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",
|
|
106
|
+
inset && "pl-8",
|
|
107
|
+
className
|
|
108
|
+
),
|
|
109
|
+
...props,
|
|
110
|
+
children: [
|
|
111
|
+
children,
|
|
112
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRightIcon, { className: "ml-auto h-4 w-4" })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
));
|
|
116
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
117
|
+
const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
118
|
+
MenubarPrimitive.SubContent,
|
|
119
|
+
{
|
|
120
|
+
ref,
|
|
121
|
+
className: cn(
|
|
122
|
+
"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",
|
|
123
|
+
className
|
|
124
|
+
),
|
|
125
|
+
...props
|
|
126
|
+
}
|
|
127
|
+
));
|
|
128
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
129
|
+
const MenubarContent = React.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
130
|
+
MenubarPrimitive.Content,
|
|
131
|
+
{
|
|
132
|
+
ref,
|
|
133
|
+
align,
|
|
134
|
+
alignOffset,
|
|
135
|
+
sideOffset,
|
|
136
|
+
className: cn(
|
|
137
|
+
"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",
|
|
138
|
+
className
|
|
139
|
+
),
|
|
140
|
+
...props
|
|
141
|
+
}
|
|
142
|
+
) }));
|
|
143
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
144
|
+
const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
145
|
+
MenubarPrimitive.Item,
|
|
146
|
+
{
|
|
147
|
+
ref,
|
|
148
|
+
className: cn(
|
|
149
|
+
"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",
|
|
150
|
+
inset && "pl-8",
|
|
151
|
+
className
|
|
152
|
+
),
|
|
153
|
+
...props
|
|
154
|
+
}
|
|
155
|
+
));
|
|
156
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
157
|
+
const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
158
|
+
MenubarPrimitive.CheckboxItem,
|
|
159
|
+
{
|
|
160
|
+
ref,
|
|
161
|
+
className: cn(
|
|
162
|
+
"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",
|
|
163
|
+
className
|
|
164
|
+
),
|
|
165
|
+
checked,
|
|
166
|
+
...props,
|
|
167
|
+
children: [
|
|
168
|
+
/* @__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" }) }) }),
|
|
169
|
+
children
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
));
|
|
173
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
174
|
+
const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
175
|
+
MenubarPrimitive.RadioItem,
|
|
176
|
+
{
|
|
177
|
+
ref,
|
|
178
|
+
className: cn(
|
|
179
|
+
"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",
|
|
180
|
+
className
|
|
181
|
+
),
|
|
182
|
+
...props,
|
|
183
|
+
children: [
|
|
184
|
+
/* @__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" }) }) }),
|
|
185
|
+
children
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
));
|
|
189
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
190
|
+
const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
191
|
+
MenubarPrimitive.Label,
|
|
192
|
+
{
|
|
193
|
+
ref,
|
|
194
|
+
className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
195
|
+
...props
|
|
196
|
+
}
|
|
197
|
+
));
|
|
198
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
199
|
+
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 }));
|
|
200
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
201
|
+
const MenubarShortcut = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
202
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
203
|
+
const Sheet = SheetPrimitive.Root;
|
|
204
|
+
const SheetTrigger = SheetPrimitive.Trigger;
|
|
205
|
+
const SheetClose = SheetPrimitive.Close;
|
|
206
|
+
const SheetPortal = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Portal, { className: cn(className), ...props });
|
|
207
|
+
SheetPortal.displayName = SheetPrimitive.Portal.displayName;
|
|
208
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
209
|
+
SheetPrimitive.Overlay,
|
|
210
|
+
{
|
|
211
|
+
className: cn(
|
|
212
|
+
"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",
|
|
213
|
+
className
|
|
214
|
+
),
|
|
215
|
+
...props,
|
|
216
|
+
ref
|
|
217
|
+
}
|
|
218
|
+
));
|
|
219
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
220
|
+
const sheetVariants = cva(
|
|
221
|
+
"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",
|
|
222
|
+
{
|
|
223
|
+
variants: {
|
|
224
|
+
side: {
|
|
225
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
226
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
227
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
228
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
defaultVariants: {
|
|
232
|
+
side: "right"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
const SheetContent = React.forwardRef(
|
|
237
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(SheetPortal, { children: [
|
|
238
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SheetOverlay, {}),
|
|
239
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
240
|
+
children,
|
|
241
|
+
/* @__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: [
|
|
242
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Cross2Icon, { className: "h-4 w-4" }),
|
|
243
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Close" })
|
|
244
|
+
] })
|
|
245
|
+
] })
|
|
246
|
+
] })
|
|
247
|
+
);
|
|
248
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
249
|
+
const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
250
|
+
SheetHeader.displayName = "SheetHeader";
|
|
251
|
+
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 });
|
|
252
|
+
SheetFooter.displayName = "SheetFooter";
|
|
253
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
254
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
255
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
256
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
42
257
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
co as reducer,
|
|
177
|
-
go as toast,
|
|
178
|
-
Co as toggleVariants,
|
|
179
|
-
Mo as useToast
|
|
258
|
+
A as Accordion,
|
|
259
|
+
h as AccordionContent,
|
|
260
|
+
f as AccordionItem,
|
|
261
|
+
g as AccordionTrigger,
|
|
262
|
+
Alert,
|
|
263
|
+
AlertDescription,
|
|
264
|
+
k as AlertDialog,
|
|
265
|
+
r as AlertDialogAction,
|
|
266
|
+
s as AlertDialogCancel,
|
|
267
|
+
m as AlertDialogContent,
|
|
268
|
+
q as AlertDialogDescription,
|
|
269
|
+
o as AlertDialogFooter,
|
|
270
|
+
n as AlertDialogHeader,
|
|
271
|
+
p as AlertDialogTitle,
|
|
272
|
+
l as AlertDialogTrigger,
|
|
273
|
+
AlertTitle,
|
|
274
|
+
i as Badge,
|
|
275
|
+
B as Button,
|
|
276
|
+
C as Card,
|
|
277
|
+
H as CardContent,
|
|
278
|
+
G as CardDescription,
|
|
279
|
+
E as CardFooter,
|
|
280
|
+
z as CardHeader,
|
|
281
|
+
F as CardTitle,
|
|
282
|
+
ar as Command,
|
|
283
|
+
as as CommandDialog,
|
|
284
|
+
av as CommandEmpty,
|
|
285
|
+
aw as CommandGroup,
|
|
286
|
+
at as CommandInput,
|
|
287
|
+
ax as CommandItem,
|
|
288
|
+
au as CommandList,
|
|
289
|
+
az as CommandSeparator,
|
|
290
|
+
ay as CommandShortcut,
|
|
291
|
+
aA as ContextMenu,
|
|
292
|
+
aE as ContextMenuCheckboxItem,
|
|
293
|
+
aC as ContextMenuContent,
|
|
294
|
+
aJ as ContextMenuGroup,
|
|
295
|
+
aD as ContextMenuItem,
|
|
296
|
+
aG as ContextMenuLabel,
|
|
297
|
+
aK as ContextMenuPortal,
|
|
298
|
+
aO as ContextMenuRadioGroup,
|
|
299
|
+
aF as ContextMenuRadioItem,
|
|
300
|
+
aH as ContextMenuSeparator,
|
|
301
|
+
aI as ContextMenuShortcut,
|
|
302
|
+
aL as ContextMenuSub,
|
|
303
|
+
aM as ContextMenuSubContent,
|
|
304
|
+
aN as ContextMenuSubTrigger,
|
|
305
|
+
aB as ContextMenuTrigger,
|
|
306
|
+
D as Dialog,
|
|
307
|
+
u as DialogContent,
|
|
308
|
+
y as DialogDescription,
|
|
309
|
+
w as DialogFooter,
|
|
310
|
+
v as DialogHeader,
|
|
311
|
+
x as DialogTitle,
|
|
312
|
+
t as DialogTrigger,
|
|
313
|
+
a8 as DropdownMenu,
|
|
314
|
+
ac as DropdownMenuCheckboxItem,
|
|
315
|
+
aa as DropdownMenuContent,
|
|
316
|
+
ah as DropdownMenuGroup,
|
|
317
|
+
ab as DropdownMenuItem,
|
|
318
|
+
ae as DropdownMenuLabel,
|
|
319
|
+
ai as DropdownMenuPortal,
|
|
320
|
+
am as DropdownMenuRadioGroup,
|
|
321
|
+
ad as DropdownMenuRadioItem,
|
|
322
|
+
af as DropdownMenuSeparator,
|
|
323
|
+
ag as DropdownMenuShortcut,
|
|
324
|
+
aj as DropdownMenuSub,
|
|
325
|
+
ak as DropdownMenuSubContent,
|
|
326
|
+
al as DropdownMenuSubTrigger,
|
|
327
|
+
a9 as DropdownMenuTrigger,
|
|
328
|
+
Z as HoverCard,
|
|
329
|
+
$ as HoverCardContent,
|
|
330
|
+
_ as HoverCardTrigger,
|
|
331
|
+
I as Input,
|
|
332
|
+
L as Label,
|
|
333
|
+
Menubar,
|
|
334
|
+
MenubarCheckboxItem,
|
|
335
|
+
MenubarContent,
|
|
336
|
+
MenubarGroup,
|
|
337
|
+
MenubarItem,
|
|
338
|
+
MenubarLabel,
|
|
339
|
+
MenubarMenu,
|
|
340
|
+
MenubarPortal,
|
|
341
|
+
MenubarRadioGroup,
|
|
342
|
+
MenubarRadioItem,
|
|
343
|
+
MenubarSeparator,
|
|
344
|
+
MenubarShortcut,
|
|
345
|
+
MenubarSub,
|
|
346
|
+
MenubarSubContent,
|
|
347
|
+
MenubarSubTrigger,
|
|
348
|
+
MenubarTrigger,
|
|
349
|
+
W as Popover,
|
|
350
|
+
Y as PopoverContent,
|
|
351
|
+
X as PopoverTrigger,
|
|
352
|
+
S as ScrollArea,
|
|
353
|
+
J as ScrollBar,
|
|
354
|
+
a0 as Select,
|
|
355
|
+
a4 as SelectContent,
|
|
356
|
+
a1 as SelectGroup,
|
|
357
|
+
a6 as SelectItem,
|
|
358
|
+
a5 as SelectLabel,
|
|
359
|
+
a7 as SelectSeparator,
|
|
360
|
+
a3 as SelectTrigger,
|
|
361
|
+
a2 as SelectValue,
|
|
362
|
+
b as Separator,
|
|
363
|
+
Sheet,
|
|
364
|
+
SheetClose,
|
|
365
|
+
SheetContent,
|
|
366
|
+
SheetDescription,
|
|
367
|
+
SheetFooter,
|
|
368
|
+
SheetHeader,
|
|
369
|
+
SheetTitle,
|
|
370
|
+
SheetTrigger,
|
|
371
|
+
a as Skeleton,
|
|
372
|
+
d as Switch,
|
|
373
|
+
K as Tabs,
|
|
374
|
+
O as TabsContent,
|
|
375
|
+
M as TabsList,
|
|
376
|
+
N as TabsTrigger,
|
|
377
|
+
T as Textarea,
|
|
378
|
+
aq as Toaster,
|
|
379
|
+
Toggle,
|
|
380
|
+
P as Tooltip,
|
|
381
|
+
R as TooltipContent,
|
|
382
|
+
V as TooltipPortal,
|
|
383
|
+
U as TooltipProvider,
|
|
384
|
+
Q as TooltipTrigger,
|
|
385
|
+
j as badgeVariants,
|
|
386
|
+
e as buttonVariants,
|
|
387
|
+
an as reducer,
|
|
388
|
+
ap as toast,
|
|
389
|
+
toggleVariants,
|
|
390
|
+
ao as useToast
|
|
180
391
|
};
|