@chaibuilder/sdk 2.0.0-beta.95 → 2.0.0-beta.97

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 -11770
  10. package/dist/core.js +3994 -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
package/dist/ui.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
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, D as Dialog, a as DialogContent } from "./context-menu-DHla8ofZ.js";
6
- import { A, g, e, f, j, q, r, l, p, n, m, o, k, h, B, C, F, E, y, x, z, aj, an, al, as, am, ap, at, ax, ao, aq, ar, au, av, aw, ak, w, u, t, v, s, $, a3, a1, a8, a2, a5, a9, ad, a4, a6, a7, aa, ab, ac, a0, Y, _, Z, I, L, V, X, W, G, H, ae, S, b, J, N, K, M, T, ai, O, Q, U, R, P, i, d, af, ah, ag } from "./context-menu-DHla8ofZ.js";
7
- import { CaretSortIcon, CheckIcon, Cross2Icon, MagnifyingGlassIcon } from "@radix-ui/react-icons";
8
- import * as SelectPrimitive from "@radix-ui/react-select";
9
- import * as SheetPrimitive from "@radix-ui/react-dialog";
10
- import { Command as Command$1 } from "cmdk";
11
- const toggleVariants = cva(
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import * as u from "@radix-ui/react-toggle";
4
+ import { cva as p } from "class-variance-authority";
5
+ import { c as s, D as h, a as b } from "./context-menu-D5ViOi6K.js";
6
+ import { A as de, g as ie, e as le, f as me, j as ce, q as pe, r as ue, l as ge, p as fe, n as xe, m as he, o as be, k as ye, h as Ne, B as we, C as ve, F as Ce, E as Se, y as De, x as Te, z as ke, aj as Me, an as Re, al as Ie, as as _e, am as Ae, ap as Pe, at as Ve, ax as Ge, ao as Le, aq as He, ar as je, au as ze, av as Fe, aw as Be, ak as Ee, w as Oe, u as qe, t as $e, v as Je, s as Ke, $ as Qe, a3 as Ue, a1 as We, a8 as Xe, a2 as Ye, a5 as Ze, a9 as ea, ad as aa, a4 as ta, a6 as oa, a7 as sa, aa as ra, ab as na, ac as da, a0 as ia, Y as la, _ as ma, Z as ca, I as pa, L as ua, V as ga, X as fa, W as xa, G as ha, H as ba, ae as ya, S as Na, b as wa, J as va, N as Ca, K as Sa, M as Da, T as Ta, ai as ka, O as Ma, Q as Ra, U as Ia, R as _a, P as Aa, i as Pa, d as Va, af as Ga, ah as La, ag as Ha } from "./context-menu-D5ViOi6K.js";
7
+ import { CaretSortIcon as y, CheckIcon as N, Cross2Icon as w, MagnifyingGlassIcon as v } from "@radix-ui/react-icons";
8
+ import * as n from "@radix-ui/react-select";
9
+ import * as d from "@radix-ui/react-dialog";
10
+ import { Command as i } from "cmdk";
11
+ const C = p(
12
12
  "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",
13
13
  {
14
14
  variants: {
@@ -27,10 +27,9 @@ const toggleVariants = cva(
27
27
  size: "default"
28
28
  }
29
29
  }
30
- );
31
- const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
32
- Toggle.displayName = TogglePrimitive.Root.displayName;
33
- const alertVariants = cva(
30
+ ), S = r.forwardRef(({ className: e, variant: a, size: t, ...l }, c) => /* @__PURE__ */ o(u.Root, { ref: c, className: s(C({ variant: a, size: t, className: e })), ...l }));
31
+ S.displayName = u.Root.displayName;
32
+ const D = p(
34
33
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
35
34
  {
36
35
  variants: {
@@ -43,98 +42,91 @@ const alertVariants = cva(
43
42
  variant: "default"
44
43
  }
45
44
  }
45
+ ), T = r.forwardRef(({ className: e, variant: a, ...t }, l) => /* @__PURE__ */ o("div", { ref: l, role: "alert", className: s(D({ variant: a }), e), ...t }));
46
+ T.displayName = "Alert";
47
+ const k = r.forwardRef(
48
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("h5", { ref: t, className: s("mb-1 font-medium leading-none tracking-tight", e), ...a })
46
49
  );
47
- const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
48
- Alert.displayName = "Alert";
49
- const AlertTitle = React.forwardRef(
50
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
51
- );
52
- AlertTitle.displayName = "AlertTitle";
53
- const AlertDescription = React.forwardRef(
54
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
50
+ k.displayName = "AlertTitle";
51
+ const M = r.forwardRef(
52
+ ({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: s("text-sm [&_p]:leading-relaxed", e), ...a })
55
53
  );
56
- AlertDescription.displayName = "AlertDescription";
57
- const Select = SelectPrimitive.Root;
58
- const SelectGroup = SelectPrimitive.Group;
59
- const SelectValue = SelectPrimitive.Value;
60
- const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
61
- SelectPrimitive.Trigger,
54
+ M.displayName = "AlertDescription";
55
+ const Y = n.Root, Z = n.Group, ee = n.Value, R = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
56
+ n.Trigger,
62
57
  {
63
- ref,
64
- className: cn(
58
+ ref: l,
59
+ className: s(
65
60
  "flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
66
- className
61
+ e
67
62
  ),
68
- ...props,
63
+ ...t,
69
64
  children: [
70
- children,
71
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
65
+ a,
66
+ /* @__PURE__ */ o(n.Icon, { asChild: !0, children: /* @__PURE__ */ o(y, { className: "h-4 w-4 opacity-50" }) })
72
67
  ]
73
68
  }
74
69
  ));
75
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
76
- const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
77
- SelectPrimitive.Content,
70
+ R.displayName = n.Trigger.displayName;
71
+ const I = r.forwardRef(({ className: e, children: a, position: t = "popper", ...l }, c) => /* @__PURE__ */ o(n.Portal, { children: /* @__PURE__ */ o(
72
+ n.Content,
78
73
  {
79
- ref,
80
- className: cn(
74
+ ref: c,
75
+ className: s(
81
76
  "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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",
82
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
83
- className
77
+ t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
78
+ e
84
79
  ),
85
- position,
86
- ...props,
87
- children: /* @__PURE__ */ jsx(
88
- SelectPrimitive.Viewport,
80
+ position: t,
81
+ ...l,
82
+ children: /* @__PURE__ */ o(
83
+ n.Viewport,
89
84
  {
90
- className: cn(
85
+ className: s(
91
86
  "p-1",
92
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
87
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
93
88
  ),
94
- children
89
+ children: a
95
90
  }
96
91
  )
97
92
  }
98
93
  ) }));
99
- SelectContent.displayName = SelectPrimitive.Content.displayName;
100
- const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", className), ...props }));
101
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
102
- const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
103
- SelectPrimitive.Item,
94
+ I.displayName = n.Content.displayName;
95
+ const _ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Label, { ref: t, className: s("px-2 py-1.5 text-sm font-semibold", e), ...a }));
96
+ _.displayName = n.Label.displayName;
97
+ const A = r.forwardRef(({ className: e, children: a, ...t }, l) => /* @__PURE__ */ m(
98
+ n.Item,
104
99
  {
105
- ref,
106
- className: cn(
100
+ ref: l,
101
+ className: s(
107
102
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
108
- className
103
+ e
109
104
  ),
110
- ...props,
105
+ ...t,
111
106
  children: [
112
- /* @__PURE__ */ jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "h-4 w-4" }) }) }),
113
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
107
+ /* @__PURE__ */ o("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(n.ItemIndicator, { children: /* @__PURE__ */ o(N, { className: "h-4 w-4" }) }) }),
108
+ /* @__PURE__ */ o(n.ItemText, { children: a })
114
109
  ]
115
110
  }
116
111
  ));
117
- SelectItem.displayName = SelectPrimitive.Item.displayName;
118
- const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
119
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
120
- const Sheet = SheetPrimitive.Root;
121
- const SheetTrigger = SheetPrimitive.Trigger;
122
- const SheetClose = SheetPrimitive.Close;
123
- const SheetPortal = ({ className, ...props }) => /* @__PURE__ */ jsx(SheetPrimitive.Portal, { className: cn(className), ...props });
124
- SheetPortal.displayName = SheetPrimitive.Portal.displayName;
125
- const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
126
- SheetPrimitive.Overlay,
112
+ A.displayName = n.Item.displayName;
113
+ const P = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: s("-mx-1 my-1 h-px bg-muted", e), ...a }));
114
+ P.displayName = n.Separator.displayName;
115
+ const ae = d.Root, te = d.Trigger, oe = d.Close, g = ({ className: e, ...a }) => /* @__PURE__ */ o(d.Portal, { className: s(e), ...a });
116
+ g.displayName = d.Portal.displayName;
117
+ const f = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
118
+ d.Overlay,
127
119
  {
128
- className: cn(
120
+ className: s(
129
121
  "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",
130
- className
122
+ e
131
123
  ),
132
- ...props,
133
- ref
124
+ ...a,
125
+ ref: t
134
126
  }
135
127
  ));
136
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
137
- const sheetVariants = cva(
128
+ f.displayName = d.Overlay.displayName;
129
+ const V = p(
138
130
  "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",
139
131
  {
140
132
  variants: {
@@ -149,211 +141,209 @@ const sheetVariants = cva(
149
141
  side: "right"
150
142
  }
151
143
  }
152
- );
153
- const SheetContent = React.forwardRef(
154
- ({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
155
- /* @__PURE__ */ jsx(SheetOverlay, {}),
156
- /* @__PURE__ */ jsxs(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
157
- children,
158
- /* @__PURE__ */ 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: [
159
- /* @__PURE__ */ jsx(Cross2Icon, { className: "h-4 w-4" }),
160
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
144
+ ), G = r.forwardRef(
145
+ ({ side: e = "right", className: a, children: t, ...l }, c) => /* @__PURE__ */ m(g, { children: [
146
+ /* @__PURE__ */ o(f, {}),
147
+ /* @__PURE__ */ m(d.Content, { ref: c, className: s(V({ side: e }), a), ...l, children: [
148
+ t,
149
+ /* @__PURE__ */ m(d.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: [
150
+ /* @__PURE__ */ o(w, { className: "h-4 w-4" }),
151
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
161
152
  ] })
162
153
  ] })
163
154
  ] })
164
155
  );
165
- SheetContent.displayName = SheetPrimitive.Content.displayName;
166
- const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
167
- SheetHeader.displayName = "SheetHeader";
168
- const SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
169
- SheetFooter.displayName = "SheetFooter";
170
- const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
171
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
172
- const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
173
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
174
- const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
175
- Command$1,
156
+ G.displayName = d.Content.displayName;
157
+ const L = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
158
+ L.displayName = "SheetHeader";
159
+ const H = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
160
+ H.displayName = "SheetFooter";
161
+ const j = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Title, { ref: t, className: s("text-lg font-semibold text-foreground", e), ...a }));
162
+ j.displayName = d.Title.displayName;
163
+ const z = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Description, { ref: t, className: s("text-sm text-muted-foreground", e), ...a }));
164
+ z.displayName = d.Description.displayName;
165
+ const x = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
166
+ i,
176
167
  {
177
- ref,
178
- className: cn(
168
+ ref: t,
169
+ className: s(
179
170
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
180
- className
171
+ e
181
172
  ),
182
- ...props
173
+ ...a
183
174
  }
184
175
  ));
185
- Command.displayName = Command$1.displayName;
186
- const CommandDialog = ({ children, ...props }) => /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
187
- const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
188
- /* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
189
- /* @__PURE__ */ jsx(
190
- Command$1.Input,
176
+ x.displayName = i.displayName;
177
+ const se = ({ children: e, ...a }) => /* @__PURE__ */ o(h, { ...a, children: /* @__PURE__ */ o(b, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(x, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), F = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ m("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
178
+ /* @__PURE__ */ o(v, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
179
+ /* @__PURE__ */ o(
180
+ i.Input,
191
181
  {
192
- ref,
193
- className: cn(
182
+ ref: t,
183
+ className: s(
194
184
  "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
195
- className
185
+ e
196
186
  ),
197
- ...props
187
+ ...a
198
188
  }
199
189
  )
200
190
  ] }));
201
- CommandInput.displayName = Command$1.Input.displayName;
202
- const CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
203
- Command$1.List,
191
+ F.displayName = i.Input.displayName;
192
+ const B = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
193
+ i.List,
204
194
  {
205
- ref,
206
- className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
207
- ...props
195
+ ref: t,
196
+ className: s("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
197
+ ...a
208
198
  }
209
199
  ));
210
- CommandList.displayName = Command$1.List.displayName;
211
- const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
212
- CommandEmpty.displayName = Command$1.Empty.displayName;
213
- const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
214
- Command$1.Group,
200
+ B.displayName = i.List.displayName;
201
+ const E = r.forwardRef((e, a) => /* @__PURE__ */ o(i.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
202
+ E.displayName = i.Empty.displayName;
203
+ const O = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
204
+ i.Group,
215
205
  {
216
- ref,
217
- className: cn(
206
+ ref: t,
207
+ className: s(
218
208
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
219
- className
209
+ e
220
210
  ),
221
- ...props
211
+ ...a
222
212
  }
223
213
  ));
224
- CommandGroup.displayName = Command$1.Group.displayName;
225
- const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
226
- CommandSeparator.displayName = Command$1.Separator.displayName;
227
- const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
228
- Command$1.Item,
214
+ O.displayName = i.Group.displayName;
215
+ const q = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(i.Separator, { ref: t, className: s("-mx-1 h-px bg-border", e), ...a }));
216
+ q.displayName = i.Separator.displayName;
217
+ const $ = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
218
+ i.Item,
229
219
  {
230
- ref,
231
- className: cn(
220
+ ref: t,
221
+ className: s(
232
222
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
233
- className
223
+ e
234
224
  ),
235
- ...props
225
+ ...a
236
226
  }
237
227
  ));
238
- CommandItem.displayName = Command$1.Item.displayName;
239
- const CommandShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props });
240
- CommandShortcut.displayName = "CommandShortcut";
228
+ $.displayName = i.Item.displayName;
229
+ const J = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: s("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
230
+ J.displayName = "CommandShortcut";
241
231
  export {
242
- A as Accordion,
243
- g as AccordionContent,
244
- e as AccordionItem,
245
- f as AccordionTrigger,
246
- Alert,
247
- AlertDescription,
248
- j as AlertDialog,
249
- q as AlertDialogAction,
250
- r as AlertDialogCancel,
251
- l as AlertDialogContent,
252
- p as AlertDialogDescription,
253
- n as AlertDialogFooter,
254
- m as AlertDialogHeader,
255
- o as AlertDialogTitle,
256
- k as AlertDialogTrigger,
257
- AlertTitle,
258
- h as Badge,
259
- B as Button,
260
- C as Card,
261
- F as CardContent,
262
- E as CardDescription,
263
- y as CardFooter,
264
- x as CardHeader,
265
- z as CardTitle,
266
- Command,
267
- CommandDialog,
268
- CommandEmpty,
269
- CommandGroup,
270
- CommandInput,
271
- CommandItem,
272
- CommandList,
273
- CommandSeparator,
274
- CommandShortcut,
275
- aj as ContextMenu,
276
- an as ContextMenuCheckboxItem,
277
- al as ContextMenuContent,
278
- as as ContextMenuGroup,
279
- am as ContextMenuItem,
280
- ap as ContextMenuLabel,
281
- at as ContextMenuPortal,
282
- ax as ContextMenuRadioGroup,
283
- ao as ContextMenuRadioItem,
284
- aq as ContextMenuSeparator,
285
- ar as ContextMenuShortcut,
286
- au as ContextMenuSub,
287
- av as ContextMenuSubContent,
288
- aw as ContextMenuSubTrigger,
289
- ak as ContextMenuTrigger,
290
- Dialog,
291
- DialogContent,
292
- w as DialogDescription,
293
- u as DialogFooter,
294
- t as DialogHeader,
295
- v as DialogTitle,
296
- s as DialogTrigger,
297
- $ as DropdownMenu,
298
- a3 as DropdownMenuCheckboxItem,
299
- a1 as DropdownMenuContent,
300
- a8 as DropdownMenuGroup,
301
- a2 as DropdownMenuItem,
302
- a5 as DropdownMenuLabel,
303
- a9 as DropdownMenuPortal,
304
- ad as DropdownMenuRadioGroup,
305
- a4 as DropdownMenuRadioItem,
306
- a6 as DropdownMenuSeparator,
307
- a7 as DropdownMenuShortcut,
308
- aa as DropdownMenuSub,
309
- ab as DropdownMenuSubContent,
310
- ac as DropdownMenuSubTrigger,
311
- a0 as DropdownMenuTrigger,
312
- Y as HoverCard,
313
- _ as HoverCardContent,
314
- Z as HoverCardTrigger,
315
- I as Input,
316
- L as Label,
317
- V as Popover,
318
- X as PopoverContent,
319
- W as PopoverTrigger,
320
- G as ScrollArea,
321
- H as ScrollBar,
322
- Select,
323
- SelectContent,
324
- SelectGroup,
325
- SelectItem,
326
- SelectLabel,
327
- SelectSeparator,
328
- SelectTrigger,
329
- SelectValue,
330
- ae as Separator,
331
- Sheet,
332
- SheetClose,
333
- SheetContent,
334
- SheetDescription,
335
- SheetFooter,
336
- SheetHeader,
337
- SheetTitle,
338
- SheetTrigger,
339
- S as Skeleton,
340
- b as Switch,
341
- J as Tabs,
342
- N as TabsContent,
343
- K as TabsList,
344
- M as TabsTrigger,
345
- T as Textarea,
346
- ai as Toaster,
347
- Toggle,
348
- O as Tooltip,
349
- Q as TooltipContent,
350
- U as TooltipPortal,
351
- R as TooltipProvider,
352
- P as TooltipTrigger,
353
- i as badgeVariants,
354
- d as buttonVariants,
355
- af as reducer,
356
- ah as toast,
357
- toggleVariants,
358
- ag as useToast
232
+ de as Accordion,
233
+ ie as AccordionContent,
234
+ le as AccordionItem,
235
+ me as AccordionTrigger,
236
+ T as Alert,
237
+ M as AlertDescription,
238
+ ce as AlertDialog,
239
+ pe as AlertDialogAction,
240
+ ue as AlertDialogCancel,
241
+ ge as AlertDialogContent,
242
+ fe as AlertDialogDescription,
243
+ xe as AlertDialogFooter,
244
+ he as AlertDialogHeader,
245
+ be as AlertDialogTitle,
246
+ ye as AlertDialogTrigger,
247
+ k as AlertTitle,
248
+ Ne as Badge,
249
+ we as Button,
250
+ ve as Card,
251
+ Ce as CardContent,
252
+ Se as CardDescription,
253
+ De as CardFooter,
254
+ Te as CardHeader,
255
+ ke as CardTitle,
256
+ x as Command,
257
+ se as CommandDialog,
258
+ E as CommandEmpty,
259
+ O as CommandGroup,
260
+ F as CommandInput,
261
+ $ as CommandItem,
262
+ B as CommandList,
263
+ q as CommandSeparator,
264
+ J as CommandShortcut,
265
+ Me as ContextMenu,
266
+ Re as ContextMenuCheckboxItem,
267
+ Ie as ContextMenuContent,
268
+ _e as ContextMenuGroup,
269
+ Ae as ContextMenuItem,
270
+ Pe as ContextMenuLabel,
271
+ Ve as ContextMenuPortal,
272
+ Ge as ContextMenuRadioGroup,
273
+ Le as ContextMenuRadioItem,
274
+ He as ContextMenuSeparator,
275
+ je as ContextMenuShortcut,
276
+ ze as ContextMenuSub,
277
+ Fe as ContextMenuSubContent,
278
+ Be as ContextMenuSubTrigger,
279
+ Ee as ContextMenuTrigger,
280
+ h as Dialog,
281
+ b as DialogContent,
282
+ Oe as DialogDescription,
283
+ qe as DialogFooter,
284
+ $e as DialogHeader,
285
+ Je as DialogTitle,
286
+ Ke as DialogTrigger,
287
+ Qe as DropdownMenu,
288
+ Ue as DropdownMenuCheckboxItem,
289
+ We as DropdownMenuContent,
290
+ Xe as DropdownMenuGroup,
291
+ Ye as DropdownMenuItem,
292
+ Ze as DropdownMenuLabel,
293
+ ea as DropdownMenuPortal,
294
+ aa as DropdownMenuRadioGroup,
295
+ ta as DropdownMenuRadioItem,
296
+ oa as DropdownMenuSeparator,
297
+ sa as DropdownMenuShortcut,
298
+ ra as DropdownMenuSub,
299
+ na as DropdownMenuSubContent,
300
+ da as DropdownMenuSubTrigger,
301
+ ia as DropdownMenuTrigger,
302
+ la as HoverCard,
303
+ ma as HoverCardContent,
304
+ ca as HoverCardTrigger,
305
+ pa as Input,
306
+ ua as Label,
307
+ ga as Popover,
308
+ fa as PopoverContent,
309
+ xa as PopoverTrigger,
310
+ ha as ScrollArea,
311
+ ba as ScrollBar,
312
+ Y as Select,
313
+ I as SelectContent,
314
+ Z as SelectGroup,
315
+ A as SelectItem,
316
+ _ as SelectLabel,
317
+ P as SelectSeparator,
318
+ R as SelectTrigger,
319
+ ee as SelectValue,
320
+ ya as Separator,
321
+ ae as Sheet,
322
+ oe as SheetClose,
323
+ G as SheetContent,
324
+ z as SheetDescription,
325
+ H as SheetFooter,
326
+ L as SheetHeader,
327
+ j as SheetTitle,
328
+ te as SheetTrigger,
329
+ Na as Skeleton,
330
+ wa as Switch,
331
+ va as Tabs,
332
+ Ca as TabsContent,
333
+ Sa as TabsList,
334
+ Da as TabsTrigger,
335
+ Ta as Textarea,
336
+ ka as Toaster,
337
+ S as Toggle,
338
+ Ma as Tooltip,
339
+ Ra as TooltipContent,
340
+ Ia as TooltipPortal,
341
+ _a as TooltipProvider,
342
+ Aa as TooltipTrigger,
343
+ Pa as badgeVariants,
344
+ Va as buttonVariants,
345
+ Ga as reducer,
346
+ La as toast,
347
+ C as toggleVariants,
348
+ Ha as useToast
359
349
  };