@chaibuilder/sdk 0.1.30 → 0.1.32

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 (57) hide show
  1. package/README.md +2 -2
  2. package/dist/{AddBlocks-4f2c5dc4.js → AddBlocks-4b96d545.js} +1 -1
  3. package/dist/{AddBlocks-5ca17264.cjs → AddBlocks-e4f51b58.cjs} +1 -1
  4. package/dist/{BrandingOptions-0773c5fd.cjs → BrandingOptions-52f9691c.cjs} +1 -1
  5. package/dist/{BrandingOptions-2044d3cb.js → BrandingOptions-c91e9d44.js} +1 -1
  6. package/dist/{CanvasArea-575f601e.js → CanvasArea-957f5f74.js} +2 -2
  7. package/dist/{CanvasArea-71355900.cjs → CanvasArea-b8c26858.cjs} +2 -2
  8. package/dist/{CurrentPage-09c74e35.cjs → CurrentPage-715fe809.cjs} +1 -1
  9. package/dist/{CurrentPage-e6f23078.js → CurrentPage-fb4c55bc.js} +1 -1
  10. package/dist/{ImagesPanel-38c44785.js → ImagesPanel-3fb8087f.js} +1 -1
  11. package/dist/{ImagesPanel-0db5c72f.cjs → ImagesPanel-56ca0618.cjs} +1 -1
  12. package/dist/{Layers-a7dc3c09.js → Layers-6866cb0c.js} +3 -3
  13. package/dist/{Layers-975fed10.cjs → Layers-a955d0bb.cjs} +1 -1
  14. package/dist/{MarkAsGlobalBlock-b988f89e.cjs → MarkAsGlobalBlock-cbcb3003.cjs} +1 -1
  15. package/dist/{MarkAsGlobalBlock-39df9332.js → MarkAsGlobalBlock-f28148d9.js} +1 -1
  16. package/dist/{PagesPanel-9de2d25b.js → PagesPanel-003201ca.js} +2 -2
  17. package/dist/{PagesPanel-ba746cd1.cjs → PagesPanel-7b8f54e1.cjs} +1 -1
  18. package/dist/{ProjectPanel-eef9f5d4.cjs → ProjectPanel-6c5f2470.cjs} +1 -1
  19. package/dist/{ProjectPanel-862243ef.js → ProjectPanel-83321040.js} +2 -2
  20. package/dist/Settings-8f07a4b7.cjs +1 -0
  21. package/dist/{Settings-8b2a5a12.js → Settings-ad55d8cb.js} +919 -852
  22. package/dist/{SidePanels-41116ddd.cjs → SidePanels-446b93e7.cjs} +1 -1
  23. package/dist/{SidePanels-c1abd140.js → SidePanels-96bf29c6.js} +3 -3
  24. package/dist/{Topbar-3f8ee9ec.js → Topbar-1c4964e5.js} +1 -1
  25. package/dist/{Topbar-f622beef.cjs → Topbar-5eeea40a.cjs} +1 -1
  26. package/dist/UnsplashImages-ef3b6388.cjs +1 -0
  27. package/dist/{UnsplashImages-10c95b63.js → UnsplashImages-fe480747.js} +6 -3
  28. package/dist/{add-page-modal-3be04ab6.js → add-page-modal-2ef8a63c.js} +5 -5
  29. package/dist/{add-page-modal-7c2eea7f.cjs → add-page-modal-56dc3c56.cjs} +1 -1
  30. package/dist/command-6f260f61.js +97 -0
  31. package/dist/command-b1103666.cjs +1 -0
  32. package/dist/core.cjs +1 -1
  33. package/dist/core.js +1 -1
  34. package/dist/{delete-page-modal-13bf57f1.cjs → delete-page-modal-88aeacfd.cjs} +1 -1
  35. package/dist/{delete-page-modal-e6d85612.js → delete-page-modal-961dcc5f.js} +1 -1
  36. package/dist/{dialog-3d4e82ed.js → dialog-18207bef.js} +2 -2
  37. package/dist/{form-725e3191.js → form-046bcdbc.js} +1 -1
  38. package/dist/{form-99b51245.cjs → form-2dc05f35.cjs} +1 -1
  39. package/dist/{index-91c0470a.js → index-370ce00c.js} +3 -3
  40. package/dist/{index-a954d733.cjs → index-86352d44.cjs} +2 -2
  41. package/dist/{link-2af5de8b.js → link-e3a788f7.js} +2 -2
  42. package/dist/{link-86ac8848.cjs → link-e71b94f1.cjs} +1 -1
  43. package/dist/{page-viewer-18a13862.js → page-viewer-0c45ce74.js} +2 -2
  44. package/dist/{page-viewer-e0508ce9.cjs → page-viewer-e0d9895d.cjs} +1 -1
  45. package/dist/{project-general-setting-4c7172c1.js → project-general-setting-c5d96f79.js} +5 -5
  46. package/dist/{project-general-setting-66ba78e9.cjs → project-general-setting-d4d96611.cjs} +1 -1
  47. package/dist/{project-seo-setting-a9403f1d.cjs → project-seo-setting-6356c72f.cjs} +1 -1
  48. package/dist/{project-seo-setting-c1980ec3.js → project-seo-setting-639e4f33.js} +4 -4
  49. package/dist/{single-page-detail-6ece84b9.js → single-page-detail-22e7bc3b.js} +6 -6
  50. package/dist/{single-page-detail-6872bd4d.cjs → single-page-detail-36430438.cjs} +1 -1
  51. package/dist/ui.cjs +1 -1
  52. package/dist/ui.js +214 -281
  53. package/package.json +1 -1
  54. package/dist/Settings-8796249e.cjs +0 -1
  55. package/dist/UnsplashImages-0d091e33.cjs +0 -1
  56. package/dist/input-42acea7e.cjs +0 -1
  57. package/dist/input-a0ea2bc7.js +0 -19
package/dist/ui.js CHANGED
@@ -1,28 +1,26 @@
1
- import { T as Fe, t as He } from "./toggle-00c9d11e.js";
2
- import { D as Ve, f as Ee, d as Be, k as Oe, e as $e, h as qe, l as Je, p as Ke, g as Qe, i as Ue, j as We, m as Xe, n as Ye, o as Ze, c as et, H as tt, b as at, a as ot, S as st } from "./dropdown-menu-ae3ed09b.js";
3
- import { B as nt, S as dt, a as it, d as lt, f as mt, g as ct, T as pt, e as ut, b as ft, r as xt, t as gt, h as bt } from "./useBuilderProp-81a14920.js";
4
- import { A as yt, c as Nt, a as wt, b as Ct } from "./accordion-c0176dc5.js";
5
- import { A as vt, b as jt, a as Mt, C as Tt, g as Dt, f as kt, d as Rt, c as It, e as _t, T as At } from "./textarea-0750bcd2.js";
1
+ import { T as we, t as Me } from "./toggle-00c9d11e.js";
2
+ import { D as ve, f as De, d as je, k as Ie, e as Re, h as Ae, l as ke, p as Pe, g as Le, i as Fe, j as Ge, m as He, n as ze, o as Ve, c as Be, H as Ee, b as Oe, a as qe, S as Je } from "./dropdown-menu-ae3ed09b.js";
3
+ import { B as Qe, S as Ue, a as We, d as Xe, f as Ye, g as Ze, T as _e, e as $e, b as et, r as tt, t as at, h as ot } from "./useBuilderProp-81a14920.js";
4
+ import { A as rt, c as nt, a as it, b as dt } from "./accordion-c0176dc5.js";
5
+ import { A as mt, b as ct, a as pt, C as ut, g as ft, f as gt, d as xt, c as bt, e as ht, T as Ct } from "./textarea-0750bcd2.js";
6
6
  import { j as a } from "./jsx-runtime-944c88e2.js";
7
- import { cva as c } from "class-variance-authority";
7
+ import { cva as m } from "class-variance-authority";
8
8
  import { c as r } from "./utils-ac68b2c8.js";
9
- import { A as Lt, g as Gt, h as Ft, b as Ht, f as zt, d as Vt, c as Et, e as Bt, a as Ot } from "./alert-dialog-ee98f47e.js";
10
- import { D as g, a as b } from "./dialog-3d4e82ed.js";
11
- import { f as qt, d as Jt, c as Kt, e as Qt, b as Ut } from "./dialog-3d4e82ed.js";
12
- import { I as Xt } from "./input-a0ea2bc7.js";
13
- import { L as Zt } from "./label-e770a087.js";
14
- import { S as ta, a as aa } from "./scroll-area-83bd9e8f.js";
15
- import { T as sa, c as ra, a as na, b as da } from "./tabs-85caa1e8.js";
16
- import { P as la, b as ma, a as ca } from "./popover-f7addcf4.js";
17
- import * as n from "react";
18
- import { ChevronRightIcon as h, CheckIcon as y, DotFilledIcon as N, Cross2Icon as w, MagnifyingGlassIcon as C } from "@radix-ui/react-icons";
9
+ import { A as Nt, g as St, h as wt, b as Mt, f as Tt, d as vt, c as Dt, e as jt, a as It } from "./alert-dialog-ee98f47e.js";
10
+ import { D as At, b as kt, f as Pt, d as Lt, c as Ft, e as Gt, a as Ht } from "./dialog-18207bef.js";
11
+ import { C as Vt, a as Bt, d as Et, e as Ot, b as qt, f as Jt, c as Kt, h as Qt, g as Ut, I as Wt } from "./command-6f260f61.js";
12
+ import { L as Yt } from "./label-e770a087.js";
13
+ import { S as _t, a as $t } from "./scroll-area-83bd9e8f.js";
14
+ import { T as ta, c as aa, a as oa, b as sa } from "./tabs-85caa1e8.js";
15
+ import { P as na, b as ia, a as da } from "./popover-f7addcf4.js";
16
+ import * as i from "react";
17
+ import { ChevronRightIcon as f, CheckIcon as g, DotFilledIcon as x, Cross2Icon as b } from "@radix-ui/react-icons";
19
18
  import * as s from "@radix-ui/react-menubar";
20
- import { S as ua, d as fa, a as xa, f as ga, e as ba, g as ha, c as ya, b as Na } from "./select-7fddd7c3.js";
21
- import * as d from "@radix-ui/react-dialog";
19
+ import { S as ma, d as ca, a as pa, f as ua, e as fa, g as ga, c as xa, b as ba } from "./select-7fddd7c3.js";
20
+ import * as n from "@radix-ui/react-dialog";
22
21
  import { S as Ca } from "./separator-a80d065b.js";
23
- import { Command as i } from "cmdk";
24
- import { C as va, d as ja, b as Ma, i as Ta, c as Da, f as ka, j as Ra, n as Ia, e as _a, g as Aa, h as Pa, k as La, l as Ga, m as Fa, a as Ha } from "./context-menu-e1c240ce.js";
25
- import { I as Va, a as Ea, L as Ba, R as Oa } from "./link-2af5de8b.js";
22
+ import { C as Na, d as Sa, b as wa, i as Ma, c as Ta, f as va, j as Da, n as ja, e as Ia, g as Ra, h as Aa, k as ka, l as Pa, m as La, a as Fa } from "./context-menu-e1c240ce.js";
23
+ import { I as Ha, a as za, L as Va, R as Ba } from "./link-e3a788f7.js";
26
24
  import "@radix-ui/react-toggle";
27
25
  import "@radix-ui/react-switch";
28
26
  import "@radix-ui/react-hover-card";
@@ -36,6 +34,7 @@ import "@radix-ui/react-accordion";
36
34
  import "clsx";
37
35
  import "tailwind-merge";
38
36
  import "@radix-ui/react-alert-dialog";
37
+ import "cmdk";
39
38
  import "@radix-ui/react-label";
40
39
  import "@radix-ui/react-scroll-area";
41
40
  import "@radix-ui/react-tabs";
@@ -45,10 +44,10 @@ import "@radix-ui/react-separator";
45
44
  import "@radix-ui/react-context-menu";
46
45
  import "react-icons-picker";
47
46
  import "react-dom";
48
- import "./ImagesPanel-38c44785.js";
47
+ import "./ImagesPanel-3fb8087f.js";
49
48
  import "react-quill";
50
49
  import "react-i18next";
51
- const S = c(
50
+ const h = m(
52
51
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
53
52
  {
54
53
  variants: {
@@ -63,7 +62,7 @@ const S = c(
63
62
  variant: "default"
64
63
  }
65
64
  }
66
- ), je = ({ className: e, variant: t, ...o }) => /* @__PURE__ */ a.jsx("div", { className: r(S({ variant: t }), e), ...o }), Me = s.Menu, Te = s.Group, De = s.Portal, ke = s.Sub, Re = s.RadioGroup, v = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
65
+ ), pe = ({ className: e, variant: t, ...o }) => /* @__PURE__ */ a.jsx("div", { className: r(h({ variant: t }), e), ...o }), ue = s.Menu, fe = s.Group, ge = s.Portal, xe = s.Sub, be = s.RadioGroup, C = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
67
66
  s.Root,
68
67
  {
69
68
  ref: o,
@@ -71,8 +70,8 @@ const S = c(
71
70
  ...t
72
71
  }
73
72
  ));
74
- v.displayName = s.Root.displayName;
75
- const j = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
73
+ C.displayName = s.Root.displayName;
74
+ const y = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
76
75
  s.Trigger,
77
76
  {
78
77
  ref: o,
@@ -83,25 +82,25 @@ const j = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
83
82
  ...t
84
83
  }
85
84
  ));
86
- j.displayName = s.Trigger.displayName;
87
- const M = n.forwardRef(({ className: e, inset: t, children: o, ...l }, m) => /* @__PURE__ */ a.jsxs(
85
+ y.displayName = s.Trigger.displayName;
86
+ const N = i.forwardRef(({ className: e, inset: t, children: o, ...d }, l) => /* @__PURE__ */ a.jsxs(
88
87
  s.SubTrigger,
89
88
  {
90
- ref: m,
89
+ ref: l,
91
90
  className: r(
92
91
  "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",
93
92
  t && "pl-8",
94
93
  e
95
94
  ),
96
- ...l,
95
+ ...d,
97
96
  children: [
98
97
  o,
99
- /* @__PURE__ */ a.jsx(h, { className: "ml-auto h-4 w-4" })
98
+ /* @__PURE__ */ a.jsx(f, { className: "ml-auto h-4 w-4" })
100
99
  ]
101
100
  }
102
101
  ));
103
- M.displayName = s.SubTrigger.displayName;
104
- const T = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
102
+ N.displayName = s.SubTrigger.displayName;
103
+ const S = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
105
104
  s.SubContent,
106
105
  {
107
106
  ref: o,
@@ -112,26 +111,26 @@ const T = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
112
111
  ...t
113
112
  }
114
113
  ));
115
- T.displayName = s.SubContent.displayName;
116
- const D = n.forwardRef(({ className: e, align: t = "start", alignOffset: o = -4, sideOffset: l = 8, ...m }, x) => /* @__PURE__ */ a.jsx(s.Portal, { children: /* @__PURE__ */ a.jsx(
114
+ S.displayName = s.SubContent.displayName;
115
+ const w = i.forwardRef(({ className: e, align: t = "start", alignOffset: o = -4, sideOffset: d = 8, ...l }, u) => /* @__PURE__ */ a.jsx(s.Portal, { children: /* @__PURE__ */ a.jsx(
117
116
  s.Content,
118
117
  {
119
- ref: x,
118
+ ref: u,
120
119
  align: t,
121
120
  alignOffset: o,
122
- sideOffset: l,
121
+ sideOffset: d,
123
122
  className: r(
124
123
  "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",
125
124
  e
126
125
  ),
127
- ...m
126
+ ...l
128
127
  }
129
128
  ) }));
130
- D.displayName = s.Content.displayName;
131
- const k = n.forwardRef(({ className: e, inset: t, ...o }, l) => /* @__PURE__ */ a.jsx(
129
+ w.displayName = s.Content.displayName;
130
+ const M = i.forwardRef(({ className: e, inset: t, ...o }, d) => /* @__PURE__ */ a.jsx(
132
131
  s.Item,
133
132
  {
134
- ref: l,
133
+ ref: d,
135
134
  className: r(
136
135
  "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",
137
136
  t && "pl-8",
@@ -140,57 +139,57 @@ const k = n.forwardRef(({ className: e, inset: t, ...o }, l) => /* @__PURE__ */
140
139
  ...o
141
140
  }
142
141
  ));
143
- k.displayName = s.Item.displayName;
144
- const R = n.forwardRef(({ className: e, children: t, checked: o, ...l }, m) => /* @__PURE__ */ a.jsxs(
142
+ M.displayName = s.Item.displayName;
143
+ const T = i.forwardRef(({ className: e, children: t, checked: o, ...d }, l) => /* @__PURE__ */ a.jsxs(
145
144
  s.CheckboxItem,
146
145
  {
147
- ref: m,
146
+ ref: l,
148
147
  className: r(
149
148
  "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",
150
149
  e
151
150
  ),
152
151
  checked: o,
153
- ...l,
152
+ ...d,
154
153
  children: [
155
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(y, { className: "h-4 w-4" }) }) }),
154
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(g, { className: "h-4 w-4" }) }) }),
156
155
  t
157
156
  ]
158
157
  }
159
158
  ));
160
- R.displayName = s.CheckboxItem.displayName;
161
- const I = n.forwardRef(({ className: e, children: t, ...o }, l) => /* @__PURE__ */ a.jsxs(
159
+ T.displayName = s.CheckboxItem.displayName;
160
+ const v = i.forwardRef(({ className: e, children: t, ...o }, d) => /* @__PURE__ */ a.jsxs(
162
161
  s.RadioItem,
163
162
  {
164
- ref: l,
163
+ ref: d,
165
164
  className: r(
166
165
  "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",
167
166
  e
168
167
  ),
169
168
  ...o,
170
169
  children: [
171
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(N, { className: "h-4 w-4 fill-current" }) }) }),
170
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(s.ItemIndicator, { children: /* @__PURE__ */ a.jsx(x, { className: "h-4 w-4 fill-current" }) }) }),
172
171
  t
173
172
  ]
174
173
  }
175
174
  ));
176
- I.displayName = s.RadioItem.displayName;
177
- const _ = n.forwardRef(({ className: e, inset: t, ...o }, l) => /* @__PURE__ */ a.jsx(
175
+ v.displayName = s.RadioItem.displayName;
176
+ const D = i.forwardRef(({ className: e, inset: t, ...o }, d) => /* @__PURE__ */ a.jsx(
178
177
  s.Label,
179
178
  {
180
- ref: l,
179
+ ref: d,
181
180
  className: r("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
182
181
  ...o
183
182
  }
184
183
  ));
185
- _.displayName = s.Label.displayName;
186
- const A = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(s.Separator, { ref: o, className: r("-mx-1 my-1 h-px bg-muted", e), ...t }));
187
- A.displayName = s.Separator.displayName;
188
- const P = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
189
- P.displayname = "MenubarShortcut";
190
- const Ie = d.Root, _e = d.Trigger, Ae = d.Close, p = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(d.Portal, { className: r(e), ...t });
191
- p.displayName = d.Portal.displayName;
192
- const u = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
193
- d.Overlay,
184
+ D.displayName = s.Label.displayName;
185
+ const j = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(s.Separator, { ref: o, className: r("-mx-1 my-1 h-px bg-muted", e), ...t }));
186
+ j.displayName = s.Separator.displayName;
187
+ const I = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
188
+ I.displayname = "MenubarShortcut";
189
+ const he = n.Root, Ce = n.Trigger, ye = n.Close, c = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(n.Portal, { className: r(e), ...t });
190
+ c.displayName = n.Portal.displayName;
191
+ const p = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
192
+ n.Overlay,
194
193
  {
195
194
  className: r(
196
195
  "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",
@@ -200,8 +199,8 @@ const u = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
200
199
  ref: o
201
200
  }
202
201
  ));
203
- u.displayName = d.Overlay.displayName;
204
- const L = c(
202
+ p.displayName = n.Overlay.displayName;
203
+ const R = m(
205
204
  "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",
206
205
  {
207
206
  variants: {
@@ -216,229 +215,163 @@ const L = c(
216
215
  side: "right"
217
216
  }
218
217
  }
219
- ), G = n.forwardRef(
220
- ({ side: e = "right", className: t, children: o, ...l }, m) => /* @__PURE__ */ a.jsxs(p, { children: [
221
- /* @__PURE__ */ a.jsx(u, {}),
222
- /* @__PURE__ */ a.jsxs(d.Content, { ref: m, className: r(L({ side: e }), t), ...l, children: [
218
+ ), A = i.forwardRef(
219
+ ({ side: e = "right", className: t, children: o, ...d }, l) => /* @__PURE__ */ a.jsxs(c, { children: [
220
+ /* @__PURE__ */ a.jsx(p, {}),
221
+ /* @__PURE__ */ a.jsxs(n.Content, { ref: l, className: r(R({ side: e }), t), ...d, children: [
223
222
  o,
224
- /* @__PURE__ */ a.jsxs(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: [
225
- /* @__PURE__ */ a.jsx(w, { className: "h-4 w-4" }),
223
+ /* @__PURE__ */ a.jsxs(n.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
224
+ /* @__PURE__ */ a.jsx(b, { className: "h-4 w-4" }),
226
225
  /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
227
226
  ] })
228
227
  ] })
229
228
  ] })
230
229
  );
231
- G.displayName = d.Content.displayName;
232
- const F = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
233
- F.displayName = "SheetHeader";
234
- const H = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
235
- H.displayName = "SheetFooter";
236
- const z = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(d.Title, { ref: o, className: r("text-lg font-semibold text-foreground", e), ...t }));
237
- z.displayName = d.Title.displayName;
238
- const V = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(d.Description, { ref: o, className: r("text-sm text-muted-foreground", e), ...t }));
239
- V.displayName = d.Description.displayName;
240
- const f = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
241
- i,
242
- {
243
- ref: o,
244
- className: r(
245
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
246
- e
247
- ),
248
- ...t
249
- }
250
- ));
251
- f.displayName = i.displayName;
252
- const Pe = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(g, { ...t, children: /* @__PURE__ */ a.jsx(b, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(f, { 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 }) }) }), E = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
253
- /* @__PURE__ */ a.jsx(C, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
254
- /* @__PURE__ */ a.jsx(
255
- i.Input,
256
- {
257
- ref: o,
258
- className: r(
259
- "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",
260
- e
261
- ),
262
- ...t
263
- }
264
- )
265
- ] }));
266
- E.displayName = i.Input.displayName;
267
- const B = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
268
- i.List,
269
- {
270
- ref: o,
271
- className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
272
- ...t
273
- }
274
- ));
275
- B.displayName = i.List.displayName;
276
- const O = n.forwardRef((e, t) => /* @__PURE__ */ a.jsx(i.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
277
- O.displayName = i.Empty.displayName;
278
- const $ = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
279
- i.Group,
280
- {
281
- ref: o,
282
- className: r(
283
- "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",
284
- e
285
- ),
286
- ...t
287
- }
288
- ));
289
- $.displayName = i.Group.displayName;
290
- const q = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(i.Separator, { ref: o, className: r("-mx-1 h-px bg-border", e), ...t }));
291
- q.displayName = i.Separator.displayName;
292
- const J = n.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
293
- i.Item,
294
- {
295
- ref: o,
296
- className: r(
297
- "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",
298
- e
299
- ),
300
- ...t
301
- }
302
- ));
303
- J.displayName = i.Item.displayName;
304
- const K = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
305
- K.displayName = "CommandShortcut";
230
+ A.displayName = n.Content.displayName;
231
+ const k = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
232
+ k.displayName = "SheetHeader";
233
+ const P = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
234
+ P.displayName = "SheetFooter";
235
+ const L = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(n.Title, { ref: o, className: r("text-lg font-semibold text-foreground", e), ...t }));
236
+ L.displayName = n.Title.displayName;
237
+ const F = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(n.Description, { ref: o, className: r("text-sm text-muted-foreground", e), ...t }));
238
+ F.displayName = n.Description.displayName;
306
239
  export {
307
- yt as Accordion,
308
- Nt as AccordionContent,
309
- wt as AccordionItem,
310
- Ct as AccordionTrigger,
311
- vt as Alert,
312
- jt as AlertDescription,
313
- Lt as AlertDialog,
314
- Gt as AlertDialogAction,
315
- Ft as AlertDialogCancel,
316
- Ht as AlertDialogContent,
317
- zt as AlertDialogDescription,
318
- Vt as AlertDialogFooter,
319
- Et as AlertDialogHeader,
320
- Bt as AlertDialogTitle,
321
- Ot as AlertDialogTrigger,
322
- Mt as AlertTitle,
323
- je as Badge,
324
- nt as Button,
325
- Tt as Card,
326
- Dt as CardContent,
327
- kt as CardDescription,
328
- Rt as CardFooter,
329
- It as CardHeader,
330
- _t as CardTitle,
331
- f as Command,
332
- Pe as CommandDialog,
333
- O as CommandEmpty,
334
- $ as CommandGroup,
335
- E as CommandInput,
336
- J as CommandItem,
337
- B as CommandList,
338
- q as CommandSeparator,
339
- K as CommandShortcut,
340
- va as ContextMenu,
341
- ja as ContextMenuCheckboxItem,
342
- Ma as ContextMenuContent,
343
- Ta as ContextMenuGroup,
344
- Da as ContextMenuItem,
345
- ka as ContextMenuLabel,
346
- Ra as ContextMenuPortal,
347
- Ia as ContextMenuRadioGroup,
348
- _a as ContextMenuRadioItem,
349
- Aa as ContextMenuSeparator,
350
- Pa as ContextMenuShortcut,
351
- La as ContextMenuSub,
352
- Ga as ContextMenuSubContent,
353
- Fa as ContextMenuSubTrigger,
354
- Ha as ContextMenuTrigger,
355
- g as Dialog,
356
- b as DialogContent,
357
- qt as DialogDescription,
358
- Jt as DialogFooter,
359
- Kt as DialogHeader,
360
- Qt as DialogTitle,
361
- Ut as DialogTrigger,
362
- Ve as DropdownMenu,
363
- Ee as DropdownMenuCheckboxItem,
364
- Be as DropdownMenuContent,
365
- Oe as DropdownMenuGroup,
366
- $e as DropdownMenuItem,
367
- qe as DropdownMenuLabel,
368
- Je as DropdownMenuPortal,
369
- Ke as DropdownMenuRadioGroup,
370
- Qe as DropdownMenuRadioItem,
371
- Ue as DropdownMenuSeparator,
372
- We as DropdownMenuShortcut,
373
- Xe as DropdownMenuSub,
374
- Ye as DropdownMenuSubContent,
375
- Ze as DropdownMenuSubTrigger,
376
- et as DropdownMenuTrigger,
377
- tt as HoverCard,
378
- at as HoverCardContent,
379
- ot as HoverCardTrigger,
380
- Va as IconPickerField,
381
- Ea as ImagePickerField,
382
- Xt as Input,
383
- Zt as Label,
384
- Ba as LinkField,
385
- v as Menubar,
386
- R as MenubarCheckboxItem,
387
- D as MenubarContent,
388
- Te as MenubarGroup,
389
- k as MenubarItem,
390
- _ as MenubarLabel,
391
- Me as MenubarMenu,
392
- De as MenubarPortal,
393
- Re as MenubarRadioGroup,
394
- I as MenubarRadioItem,
395
- A as MenubarSeparator,
396
- P as MenubarShortcut,
397
- ke as MenubarSub,
398
- T as MenubarSubContent,
399
- M as MenubarSubTrigger,
400
- j as MenubarTrigger,
401
- la as Popover,
402
- ma as PopoverContent,
403
- ca as PopoverTrigger,
404
- Oa as RTEField,
405
- ta as ScrollArea,
406
- aa as ScrollBar,
407
- ua as Select,
408
- fa as SelectContent,
409
- xa as SelectGroup,
410
- ga as SelectItem,
411
- ba as SelectLabel,
412
- ha as SelectSeparator,
413
- ya as SelectTrigger,
414
- Na as SelectValue,
240
+ rt as Accordion,
241
+ nt as AccordionContent,
242
+ it as AccordionItem,
243
+ dt as AccordionTrigger,
244
+ mt as Alert,
245
+ ct as AlertDescription,
246
+ Nt as AlertDialog,
247
+ St as AlertDialogAction,
248
+ wt as AlertDialogCancel,
249
+ Mt as AlertDialogContent,
250
+ Tt as AlertDialogDescription,
251
+ vt as AlertDialogFooter,
252
+ Dt as AlertDialogHeader,
253
+ jt as AlertDialogTitle,
254
+ It as AlertDialogTrigger,
255
+ pt as AlertTitle,
256
+ pe as Badge,
257
+ Qe as Button,
258
+ ut as Card,
259
+ ft as CardContent,
260
+ gt as CardDescription,
261
+ xt as CardFooter,
262
+ bt as CardHeader,
263
+ ht as CardTitle,
264
+ Vt as Command,
265
+ Bt as CommandDialog,
266
+ Et as CommandEmpty,
267
+ Ot as CommandGroup,
268
+ qt as CommandInput,
269
+ Jt as CommandItem,
270
+ Kt as CommandList,
271
+ Qt as CommandSeparator,
272
+ Ut as CommandShortcut,
273
+ Na as ContextMenu,
274
+ Sa as ContextMenuCheckboxItem,
275
+ wa as ContextMenuContent,
276
+ Ma as ContextMenuGroup,
277
+ Ta as ContextMenuItem,
278
+ va as ContextMenuLabel,
279
+ Da as ContextMenuPortal,
280
+ ja as ContextMenuRadioGroup,
281
+ Ia as ContextMenuRadioItem,
282
+ Ra as ContextMenuSeparator,
283
+ Aa as ContextMenuShortcut,
284
+ ka as ContextMenuSub,
285
+ Pa as ContextMenuSubContent,
286
+ La as ContextMenuSubTrigger,
287
+ Fa as ContextMenuTrigger,
288
+ At as Dialog,
289
+ kt as DialogContent,
290
+ Pt as DialogDescription,
291
+ Lt as DialogFooter,
292
+ Ft as DialogHeader,
293
+ Gt as DialogTitle,
294
+ Ht as DialogTrigger,
295
+ ve as DropdownMenu,
296
+ De as DropdownMenuCheckboxItem,
297
+ je as DropdownMenuContent,
298
+ Ie as DropdownMenuGroup,
299
+ Re as DropdownMenuItem,
300
+ Ae as DropdownMenuLabel,
301
+ ke as DropdownMenuPortal,
302
+ Pe as DropdownMenuRadioGroup,
303
+ Le as DropdownMenuRadioItem,
304
+ Fe as DropdownMenuSeparator,
305
+ Ge as DropdownMenuShortcut,
306
+ He as DropdownMenuSub,
307
+ ze as DropdownMenuSubContent,
308
+ Ve as DropdownMenuSubTrigger,
309
+ Be as DropdownMenuTrigger,
310
+ Ee as HoverCard,
311
+ Oe as HoverCardContent,
312
+ qe as HoverCardTrigger,
313
+ Ha as IconPickerField,
314
+ za as ImagePickerField,
315
+ Wt as Input,
316
+ Yt as Label,
317
+ Va as LinkField,
318
+ C as Menubar,
319
+ T as MenubarCheckboxItem,
320
+ w as MenubarContent,
321
+ fe as MenubarGroup,
322
+ M as MenubarItem,
323
+ D as MenubarLabel,
324
+ ue as MenubarMenu,
325
+ ge as MenubarPortal,
326
+ be as MenubarRadioGroup,
327
+ v as MenubarRadioItem,
328
+ j as MenubarSeparator,
329
+ I as MenubarShortcut,
330
+ xe as MenubarSub,
331
+ S as MenubarSubContent,
332
+ N as MenubarSubTrigger,
333
+ y as MenubarTrigger,
334
+ na as Popover,
335
+ ia as PopoverContent,
336
+ da as PopoverTrigger,
337
+ Ba as RTEField,
338
+ _t as ScrollArea,
339
+ $t as ScrollBar,
340
+ ma as Select,
341
+ ca as SelectContent,
342
+ pa as SelectGroup,
343
+ ua as SelectItem,
344
+ fa as SelectLabel,
345
+ ga as SelectSeparator,
346
+ xa as SelectTrigger,
347
+ ba as SelectValue,
415
348
  Ca as Separator,
416
- Ie as Sheet,
417
- Ae as SheetClose,
418
- G as SheetContent,
419
- V as SheetDescription,
420
- H as SheetFooter,
421
- F as SheetHeader,
422
- z as SheetTitle,
423
- _e as SheetTrigger,
424
- dt as Skeleton,
425
- st as Switch,
426
- sa as Tabs,
427
- ra as TabsContent,
428
- na as TabsList,
429
- da as TabsTrigger,
430
- At as Textarea,
431
- it as Toaster,
432
- Fe as Toggle,
433
- lt as Tooltip,
434
- mt as TooltipContent,
435
- ct as TooltipPortal,
436
- pt as TooltipProvider,
437
- ut as TooltipTrigger,
438
- S as badgeVariants,
439
- ft as buttonVariants,
440
- xt as reducer,
441
- gt as toast,
442
- He as toggleVariants,
443
- bt as useToast
349
+ he as Sheet,
350
+ ye as SheetClose,
351
+ A as SheetContent,
352
+ F as SheetDescription,
353
+ P as SheetFooter,
354
+ k as SheetHeader,
355
+ L as SheetTitle,
356
+ Ce as SheetTrigger,
357
+ Ue as Skeleton,
358
+ Je as Switch,
359
+ ta as Tabs,
360
+ aa as TabsContent,
361
+ oa as TabsList,
362
+ sa as TabsTrigger,
363
+ Ct as Textarea,
364
+ We as Toaster,
365
+ we as Toggle,
366
+ Xe as Tooltip,
367
+ Ye as TooltipContent,
368
+ Ze as TooltipPortal,
369
+ _e as TooltipProvider,
370
+ $e as TooltipTrigger,
371
+ h as badgeVariants,
372
+ et as buttonVariants,
373
+ tt as reducer,
374
+ at as toast,
375
+ Me as toggleVariants,
376
+ ot as useToast
444
377
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chaibuilder/sdk",
3
3
  "private": false,
4
- "version": "0.1.30",
4
+ "version": "0.1.32",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"