@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.
Files changed (124) hide show
  1. package/README.md +26 -21
  2. package/dist/CodeEditor-2fowVPcS.cjs +143 -0
  3. package/dist/CodeEditor-b6uePnTe.js +143 -0
  4. package/dist/STRINGS-RCf9qnaS.cjs +9 -0
  5. package/dist/STRINGS-t8UhMYZ6.js +10 -0
  6. package/dist/Topbar-O21Nrw2O.cjs +137 -0
  7. package/dist/Topbar-xFfdTq1m.js +137 -0
  8. package/dist/UnsplashImages-awQiGFMX.cjs +280 -0
  9. package/dist/UnsplashImages-qQmFIWEy.js +280 -0
  10. package/dist/UploadImages-a8Hl0tyg.cjs +170 -0
  11. package/dist/UploadImages-cudxJepv.js +170 -0
  12. package/dist/context-menu-VMB9i0d8.cjs +1074 -0
  13. package/dist/context-menu-mp3Gu2KA.js +1043 -0
  14. package/dist/controls-4t-C_rP2.cjs +233 -0
  15. package/dist/controls-fQIu127i.js +234 -0
  16. package/dist/core.cjs +135 -1
  17. package/dist/core.d.ts +344 -119
  18. package/dist/core.js +111 -88
  19. package/dist/iconBase-OGxLGBQ1.cjs +156 -0
  20. package/dist/iconBase-Ofd16yeE.js +157 -0
  21. package/dist/index-R7v8ZYnu.js +12110 -0
  22. package/dist/index-WHVUpVPa.cjs +12125 -0
  23. package/dist/jsx-runtime-_yxTjXEh.js +931 -0
  24. package/dist/jsx-runtime-vPqyLgmD.cjs +930 -0
  25. package/dist/mockServiceWorker.js +18 -10
  26. package/dist/plugin-RAiM74uD.cjs +116 -0
  27. package/dist/plugin-T1qbgBUO.js +55 -0
  28. package/dist/plugin-YcxlCmRm.js +117 -0
  29. package/dist/plugin-cYi6q9KC.cjs +54 -0
  30. package/dist/render.cjs +215 -1
  31. package/dist/render.d.ts +21 -40
  32. package/dist/render.js +190 -98
  33. package/dist/runtime.cjs +28 -0
  34. package/dist/runtime.d.ts +5 -0
  35. package/dist/runtime.js +21 -0
  36. package/dist/style.css +1524 -1
  37. package/dist/tailwind.cjs +80 -1
  38. package/dist/tailwind.d.ts +49 -8
  39. package/dist/tailwind.js +23 -25
  40. package/dist/ui.cjs +410 -1
  41. package/dist/ui.d.ts +3 -13
  42. package/dist/ui.js +374 -163
  43. package/dist/web-blocks.cjs +1246 -9
  44. package/dist/web-blocks.d.ts +1 -1
  45. package/dist/web-blocks.js +961 -789
  46. package/package.json +66 -83
  47. package/dist/AddBlocks-tMxKPoen.js +0 -225
  48. package/dist/AddBlocks-x2LkOHSj.cjs +0 -1
  49. package/dist/BrandingOptions-EzT9UYd6.cjs +0 -1
  50. package/dist/BrandingOptions-QJJ1y5ez.js +0 -194
  51. package/dist/CanvasArea-mlNKmCOh.js +0 -1425
  52. package/dist/CanvasArea-xs4wM64L.cjs +0 -60
  53. package/dist/CurrentPage-aaU4F7wi.cjs +0 -1
  54. package/dist/CurrentPage-lBy25sZn.js +0 -111
  55. package/dist/Functions-7jnEwJyw.js +0 -15
  56. package/dist/Functions-N3yhPYKY.cjs +0 -1
  57. package/dist/Layers-3Xs4A5i8.js +0 -404
  58. package/dist/Layers-eaHy5PK9.cjs +0 -1
  59. package/dist/MODIFIERS-2FeVfZQ9.cjs +0 -1
  60. package/dist/MODIFIERS-RiXS5Mn1.js +0 -67
  61. package/dist/MarkAsGlobalBlock-BjP-Rqlf.js +0 -88
  62. package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +0 -1
  63. package/dist/PagesPanel--BZhafnt.js +0 -69
  64. package/dist/PagesPanel-gGKCV394.cjs +0 -1
  65. package/dist/ProjectPanel-YcLkM-DW.js +0 -90
  66. package/dist/ProjectPanel-yFJRy0_E.cjs +0 -1
  67. package/dist/Settings-7wlLcvoh.cjs +0 -1
  68. package/dist/Settings-TAgX4hov.js +0 -2186
  69. package/dist/SidePanels-5H4j0mIs.cjs +0 -1
  70. package/dist/SidePanels-btVQQkVK.js +0 -349
  71. package/dist/Topbar-V8xCetWF.cjs +0 -1
  72. package/dist/Topbar-j4t4AgCq.js +0 -116
  73. package/dist/UnsplashImages-41Y3q5_Q.js +0 -200
  74. package/dist/UnsplashImages-DbHky6cj.cjs +0 -1
  75. package/dist/UploadImages-DnQ95_NW.cjs +0 -1
  76. package/dist/UploadImages-xBg-kbKv.js +0 -138
  77. package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
  78. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
  79. package/dist/add-page-modal-MwS7iXn_.cjs +0 -1
  80. package/dist/add-page-modal-cm8damU2.js +0 -108
  81. package/dist/confirm-alert-U7-NcG7G.cjs +0 -1
  82. package/dist/confirm-alert-i4pM3mOt.js +0 -62
  83. package/dist/controls-Dy1qa8Dc.cjs +0 -1
  84. package/dist/controls-XPXGHKht.js +0 -182
  85. package/dist/delete-page-modal-5o4jXu-z.cjs +0 -1
  86. package/dist/delete-page-modal-YrIBvfFA.js +0 -88
  87. package/dist/email-blocks.cjs +0 -1
  88. package/dist/email-blocks.d.ts +0 -3
  89. package/dist/email-blocks.js +0 -274
  90. package/dist/form-OVmsLOrc.js +0 -125
  91. package/dist/form-VbouZlAW.cjs +0 -1
  92. package/dist/functions-Ox_svtKm.cjs +0 -1
  93. package/dist/functions-xIebp8Aw.js +0 -23
  94. package/dist/html-to-json-2PeOCVey.cjs +0 -1
  95. package/dist/html-to-json-57841sEK.js +0 -183
  96. package/dist/index-H6vIwGfD.cjs +0 -1
  97. package/dist/index-N50dZnlC.cjs +0 -206
  98. package/dist/index-e0c8PmRQ.js +0 -205
  99. package/dist/index-gi1LIOCw.cjs +0 -1
  100. package/dist/index-niHREMmR.js +0 -2938
  101. package/dist/index-pZhGT8uT.js +0 -41620
  102. package/dist/jsx-runtime-WbnYoNE9.js +0 -634
  103. package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
  104. package/dist/lib.cjs +0 -4
  105. package/dist/lib.d.ts +0 -78
  106. package/dist/lib.js +0 -1322
  107. package/dist/page-viewer-SLt8XgYv.cjs +0 -1
  108. package/dist/page-viewer-feqJr1QI.js +0 -115
  109. package/dist/project-general-setting-SgagORzW.js +0 -83
  110. package/dist/project-general-setting-ym0yCdOq.cjs +0 -1
  111. package/dist/project-seo-setting-Snn2nZgS.cjs +0 -1
  112. package/dist/project-seo-setting-wxAGEkd_.js +0 -85
  113. package/dist/server.cjs +0 -1
  114. package/dist/server.d.ts +0 -299
  115. package/dist/server.js +0 -216
  116. package/dist/single-page-detail-IPod1o5P.cjs +0 -1
  117. package/dist/single-page-detail-dnWMyg6P.js +0 -222
  118. package/dist/studio.cjs +0 -1
  119. package/dist/studio.d.ts +0 -13
  120. package/dist/studio.js +0 -58
  121. package/dist/useAddBlockByDrop-_nwI4W3q.js +0 -20
  122. package/dist/useAddBlockByDrop-inkD7Lck.cjs +0 -1
  123. package/dist/utils-AvyFzbPC.js +0 -1075
  124. 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" | "secondary" | "destructive";
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" | "secondary" | "destructive" | "ghost";
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?: "left" | "right" | "bottom" | "top";
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 { bg as j, bj as z, bh as N, bi as O, bu as Q, bE as $, E as U, aq as W, L as X, G as Y, J as Z, K as _, H as aa, I as ea, F as oa, bv as ta, bF as ra, B as sa, bo as na, br as ia, bq as ba, bt as pa, bp as ua, bH as ma, b2 as la, ci as ca, b5 as da, b6 as ga, b3 as Ca, b7 as Ma, b4 as Sa, ck as Da, cj as Ta, bz as xa, cl as Aa, by as Ia, cq as ha, bx as wa, cn as Pa, cr as Fa, cv as Ga, cm as La, co as va, cp as Ha, cs as ka, ct as Ra, cu as Ba, bA as Ea, al as Va, am as fa, ap as qa, b8 as ya, an as Ja, ao as Ka, b9 as ja, aN as za, aS as Na, aP as Oa, c9 as Qa, c6 as $a, aQ as Ua, ca as Wa, ce as Xa, c7 as Ya, aR as Za, c8 as _a, cb as ae, cc as ee, cd as oe, aO as te, aK as re, aM as se, aL as ne, bd as ie, be, bk as pe, aI as ue, bf as me, bJ as le, bQ as ce, bM as de, bW as ge, bN as Ce, bP as Me, bK as Se, bT as De, bR as Te, bS as xe, bO as Ae, bY as Ie, bX as he, bU as we, bV as Pe, bL as Fe, a$ as Ge, b1 as Le, b0 as ve, bc as He, bn as ke, bI as Re, ar as Be, au as Ee, aB as Ve, av as fe, aC as qe, bZ as ye, as as Je, at as Ke, aH as je, b_ as ze, c0 as Ne, c1 as Oe, c5 as Qe, c3 as $e, c2 as Ue, c4 as We, b$ as Xe, S as Ye, aJ as Ze, ax as _e, aA as ao, ay as eo, az as oo, bs as to, D as ro, aF as so, aD as no, aG as io, bl as bo, T as po, aE as uo, bG as mo, bD as lo, cf as co, ch as go, bC as Co, cg as Mo } from "./index-niHREMmR.js";
2
- import "./jsx-runtime-WbnYoNE9.js";
3
- import "./_commonjsHelpers-UyOWmZb0.js";
4
- import "react";
5
- import "@radix-ui/react-toggle";
6
- import "class-variance-authority";
7
- import "./utils-AvyFzbPC.js";
8
- import "lodash-es";
9
- import "./MODIFIERS-RiXS5Mn1.js";
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-dialog";
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 "react-icons-picker";
32
- import "react-dom";
33
- import "react-quill";
34
- import "jotai";
35
- import "flat-to-nested";
36
- import "./Functions-7jnEwJyw.js";
37
- import "redux-undo";
38
- import "@chaibuilder/runtime";
39
- import "lodash";
40
- import "@react-hookz/web";
41
- import "react-i18next";
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
- j as Accordion,
44
- z as AccordionContent,
45
- N as AccordionItem,
46
- O as AccordionTrigger,
47
- Q as Alert,
48
- $ as AlertDescription,
49
- U as AlertDialog,
50
- W as AlertDialogAction,
51
- X as AlertDialogCancel,
52
- Y as AlertDialogContent,
53
- Z as AlertDialogDescription,
54
- _ as AlertDialogFooter,
55
- aa as AlertDialogHeader,
56
- ea as AlertDialogTitle,
57
- oa as AlertDialogTrigger,
58
- ta as AlertTitle,
59
- ra as Badge,
60
- sa as Button,
61
- na as Card,
62
- ia as CardContent,
63
- ba as CardDescription,
64
- pa as CardFooter,
65
- ua as CardHeader,
66
- ma as CardTitle,
67
- la as Command,
68
- ca as CommandDialog,
69
- da as CommandEmpty,
70
- ga as CommandGroup,
71
- Ca as CommandInput,
72
- Ma as CommandItem,
73
- Sa as CommandList,
74
- Da as CommandSeparator,
75
- Ta as CommandShortcut,
76
- xa as ContextMenu,
77
- Aa as ContextMenuCheckboxItem,
78
- Ia as ContextMenuContent,
79
- ha as ContextMenuGroup,
80
- wa as ContextMenuItem,
81
- Pa as ContextMenuLabel,
82
- Fa as ContextMenuPortal,
83
- Ga as ContextMenuRadioGroup,
84
- La as ContextMenuRadioItem,
85
- va as ContextMenuSeparator,
86
- Ha as ContextMenuShortcut,
87
- ka as ContextMenuSub,
88
- Ra as ContextMenuSubContent,
89
- Ba as ContextMenuSubTrigger,
90
- Ea as ContextMenuTrigger,
91
- Va as Dialog,
92
- fa as DialogContent,
93
- qa as DialogDescription,
94
- ya as DialogFooter,
95
- Ja as DialogHeader,
96
- Ka as DialogTitle,
97
- ja as DialogTrigger,
98
- za as DropdownMenu,
99
- Na as DropdownMenuCheckboxItem,
100
- Oa as DropdownMenuContent,
101
- Qa as DropdownMenuGroup,
102
- $a as DropdownMenuItem,
103
- Ua as DropdownMenuLabel,
104
- Wa as DropdownMenuPortal,
105
- Xa as DropdownMenuRadioGroup,
106
- Ya as DropdownMenuRadioItem,
107
- Za as DropdownMenuSeparator,
108
- _a as DropdownMenuShortcut,
109
- ae as DropdownMenuSub,
110
- ee as DropdownMenuSubContent,
111
- oe as DropdownMenuSubTrigger,
112
- te as DropdownMenuTrigger,
113
- re as HoverCard,
114
- se as HoverCardContent,
115
- ne as HoverCardTrigger,
116
- ie as IconPickerField,
117
- be as ImagePickerField,
118
- pe as Input,
119
- ue as Label,
120
- me as LinkField,
121
- le as Menubar,
122
- ce as MenubarCheckboxItem,
123
- de as MenubarContent,
124
- ge as MenubarGroup,
125
- Ce as MenubarItem,
126
- Me as MenubarLabel,
127
- Se as MenubarMenu,
128
- De as MenubarPortal,
129
- Te as MenubarRadioGroup,
130
- xe as MenubarRadioItem,
131
- Ae as MenubarSeparator,
132
- Ie as MenubarShortcut,
133
- he as MenubarSub,
134
- we as MenubarSubContent,
135
- Pe as MenubarSubTrigger,
136
- Fe as MenubarTrigger,
137
- Ge as Popover,
138
- Le as PopoverContent,
139
- ve as PopoverTrigger,
140
- He as RTEField,
141
- ke as ScrollArea,
142
- Re as ScrollBar,
143
- Be as Select,
144
- Ee as SelectContent,
145
- Ve as SelectGroup,
146
- fe as SelectItem,
147
- qe as SelectLabel,
148
- ye as SelectSeparator,
149
- Je as SelectTrigger,
150
- Ke as SelectValue,
151
- je as Separator,
152
- ze as Sheet,
153
- Ne as SheetClose,
154
- Oe as SheetContent,
155
- Qe as SheetDescription,
156
- $e as SheetFooter,
157
- Ue as SheetHeader,
158
- We as SheetTitle,
159
- Xe as SheetTrigger,
160
- Ye as Skeleton,
161
- Ze as Switch,
162
- _e as Tabs,
163
- ao as TabsContent,
164
- eo as TabsList,
165
- oo as TabsTrigger,
166
- to as Textarea,
167
- ro as Toaster,
168
- so as Toggle,
169
- no as Tooltip,
170
- io as TooltipContent,
171
- bo as TooltipPortal,
172
- po as TooltipProvider,
173
- uo as TooltipTrigger,
174
- mo as badgeVariants,
175
- lo as buttonVariants,
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
  };