@chaibuilder/sdk 1.1.0 → 1.1.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 (35) hide show
  1. package/dist/CanvasArea-UtFK5IS6.cjs +58 -0
  2. package/dist/CanvasArea-dkwSFbQA.js +1412 -0
  3. package/dist/{CurrentPage-_Em0U2gh.cjs → CurrentPage-hHwsHam-.cjs} +1 -1
  4. package/dist/{CurrentPage-pSsaLyEf.js → CurrentPage-uRwS0DQC.js} +1 -1
  5. package/dist/{Layers-RyVRzaUa.cjs → Layers--5nyqOjK.cjs} +1 -1
  6. package/dist/{Layers-wp2Uc2Y5.js → Layers-eXMT1ncm.js} +1 -1
  7. package/dist/{PagesPanel-ZuXc2610.cjs → PagesPanel-WZgw7xVs.cjs} +1 -1
  8. package/dist/{PagesPanel-L2VS8RyZ.js → PagesPanel-xRUnAMIb.js} +2 -2
  9. package/dist/{ProjectPanel-T3AXGe7O.js → ProjectPanel-8l4Bi3Kh.js} +2 -2
  10. package/dist/{ProjectPanel-SErKorHi.cjs → ProjectPanel-FC03TiyG.cjs} +1 -1
  11. package/dist/{Settings-xkL3U3Y-.js → Settings-4v3M1bRS.js} +507 -501
  12. package/dist/Settings-kcmKFymH.cjs +1 -0
  13. package/dist/{SidePanels-pd7HYv8I.js → SidePanels-0xaw3Td6.js} +45 -39
  14. package/dist/{SidePanels-5FNROZe7.cjs → SidePanels-5e5q3c7J.cjs} +1 -1
  15. package/dist/{add-page-modal-U8EH-GIa.cjs → add-page-modal-JRSQ_N56.cjs} +1 -1
  16. package/dist/{add-page-modal-Njd5M7E2.js → add-page-modal-K5isTZOT.js} +1 -1
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.d.ts +1 -0
  19. package/dist/core.js +1 -1
  20. package/dist/{delete-page-modal-0LQiM0fX.cjs → delete-page-modal-c8nB2y7w.cjs} +1 -1
  21. package/dist/{delete-page-modal-NT7df4pk.js → delete-page-modal-x81Ed4jF.js} +1 -1
  22. package/dist/{index-pYZXf7hY.cjs → index-7NRFGya_.cjs} +10 -10
  23. package/dist/{index-N3mTbV2j.js → index-HjvZqhVh.js} +163 -160
  24. package/dist/{page-viewer-e3lOBAH3.js → page-viewer-fFaDQOOI.js} +2 -2
  25. package/dist/{page-viewer-UxwOwHCO.cjs → page-viewer-huD5B1om.cjs} +1 -1
  26. package/dist/{project-general-setting-el86II8N.js → project-general-setting-rH_1r38b.js} +1 -1
  27. package/dist/{project-general-setting-DrLwWE-6.cjs → project-general-setting-rNNI-K6l.cjs} +1 -1
  28. package/dist/{single-page-detail-fUh22jZE.cjs → single-page-detail-52_cuxNe.cjs} +1 -1
  29. package/dist/{single-page-detail-UFEXRI81.js → single-page-detail-CrgTQFUX.js} +2 -2
  30. package/dist/studio.cjs +1 -1
  31. package/dist/studio.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/CanvasArea-TzIgm_vh.cjs +0 -58
  34. package/dist/CanvasArea-dS2B20gv.js +0 -1421
  35. package/dist/Settings-GJHtwQaa.cjs +0 -1
@@ -1,22 +1,22 @@
1
1
  import { j as e } from "./jsx-runtime-NV737rRe.js";
2
2
  import * as ne from "react";
3
3
  import I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as dt, createContext as Me, useContext as re } from "react";
4
- import { useThrottledCallback as ye } from "@react-hookz/web";
5
- import { forEach as we, isArray as ae, omit as ct, truncate as pt, includes as M, get as p, first as pe, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as be, filter as fe, set as Ee, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Se, startsWith as z, isNumber as ft, parseInt as vt, isNaN as _e, findLast as jt, flatten as U, intersection as Fe, has as he, isNull as wt } from "lodash";
4
+ import { useThrottledCallback as be } from "@react-hookz/web";
5
+ import { forEach as Ce, isArray as ae, omit as ct, truncate as pt, includes as M, get as u, first as pe, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as fe, filter as ve, set as Ee, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Ve, startsWith as z, isNumber as ft, parseInt as vt, isNaN as _e, findLast as jt, flatten as U, intersection as Fe, has as he, isNull as wt } from "lodash";
6
6
  import { useTranslation as Ye } from "react-i18next";
7
- import { PlusIcon as Ce, Cross2Icon as We, EyeOpenIcon as Ct, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as S, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as kt, ArrowTopRightIcon as Nt, ArrowBottomRightIcon as Tt, ArrowBottomLeftIcon as Rt, AlignLeftIcon as St, AlignCenterHorizontallyIcon as Vt, AlignRightIcon as Ht, StretchHorizontallyIcon as Bt, FontItalicIcon as At, UnderlineIcon as Dt, OverlineIcon as It, LetterCaseUppercaseIcon as Pt, Cross1Icon as $t, InfoCircledIcon as ke, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Mt, CrossCircledIcon as Et, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
- import { b3 as Ft, b4 as Yt, B as ue, b5 as Wt, b6 as Xt, b7 as Zt, b8 as zt, b9 as Ut, ba as Gt, bb as Kt, a6 as G, aq as qt, ar as Jt, as as Qt, bc as er, ao as tr, bd as rr, ap as lr, aH as W, aI as X, aK as Z, ak as sr, be as or, bf as nr, bg as ar, bh as ir, bi as dr, bj as cr, p as ze, ac as Ue, bk as Ge, bl as ie, bm as de, bn as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bo as pr, bp as ur, a4 as xe, W as xr, a9 as Qe, R as He, ag as gr, ad as hr, bq as mr, au as yr, av as br, aw as fr, ax as vr, ay as H, br as jr, aB as wr, aC as Cr, aD as Be, aE as Ae } from "./index-ORFlyrBx.js";
9
- import kr from "@rjsf/core";
10
- import Nr from "@rjsf/validator-ajv8";
11
- import { u as Tr } from "./controls-G0puEH71.js";
12
- import { Check as Rr, EditIcon as Sr, TrashIcon as Vr } from "lucide-react";
13
- import { getBlockComponent as et, getChaiDataProviders as Hr } from "@chaibuilder/runtime";
14
- import { E as tt, u as rt } from "./index-N3mTbV2j.js";
15
- import { useAtom as Br } from "jotai";
16
- import Ar from "react-autosuggest";
17
- import Dr from "fuse.js";
18
- import { A as Ir, C as ge, d as Pr } from "./utils-PPBbw5bk.js";
19
- import { a as $r } from "./MODIFIERS-MLfpKQY1.js";
7
+ import { PlusIcon as ke, Cross2Icon as We, EyeOpenIcon as Ct, EyeClosedIcon as He, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as kt, ArrowTopRightIcon as Nt, ArrowBottomRightIcon as Tt, ArrowBottomLeftIcon as St, AlignLeftIcon as Rt, AlignCenterHorizontallyIcon as Vt, AlignRightIcon as Ht, StretchHorizontallyIcon as Bt, FontItalicIcon as At, UnderlineIcon as Dt, OverlineIcon as It, LetterCaseUppercaseIcon as Pt, Cross1Icon as $t, InfoCircledIcon as Ne, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Mt, CrossCircledIcon as Et, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
+ import { b3 as Ft, b4 as Yt, B as ue, b5 as Wt, b6 as Xt, b7 as Zt, b8 as zt, b9 as Ut, ba as Gt, bb as Kt, a6 as G, aq as qt, ar as Jt, as as Qt, bc as er, ao as tr, bd as rr, ap as sr, aH as W, aI as X, aK as Z, ak as lr, be as or, bf as nr, bg as ar, bh as ir, bi as dr, bj as cr, p as ze, ac as Ue, i as pr, bk as Ge, bl as ie, bm as de, bn as ce, aj as Te, P as Ke, a3 as qe, j as Je, aM as Se, bo as ur, bp as xr, a4 as xe, W as gr, a9 as Qe, R as Be, ag as hr, ad as mr, bq as yr, au as br, av as fr, aw as vr, ax as jr, ay as H, br as wr, aB as Cr, aC as kr, aD as Ae, aE as De } from "./index-ORFlyrBx.js";
9
+ import Nr from "@rjsf/core";
10
+ import Tr from "@rjsf/validator-ajv8";
11
+ import { u as Sr } from "./controls-G0puEH71.js";
12
+ import { Check as Rr, EditIcon as Vr, TrashIcon as Hr } from "lucide-react";
13
+ import { getBlockComponent as et, getChaiDataProviders as Br } from "@chaibuilder/runtime";
14
+ import { E as tt, u as rt } from "./index-HjvZqhVh.js";
15
+ import { useAtom as Ar } from "jotai";
16
+ import Dr from "react-autosuggest";
17
+ import Ir from "fuse.js";
18
+ import { A as Pr, C as ge, d as $r } from "./utils-PPBbw5bk.js";
19
+ import { a as Lr } from "./MODIFIERS-MLfpKQY1.js";
20
20
  import "@radix-ui/react-toggle";
21
21
  import "class-variance-authority";
22
22
  import "@radix-ui/react-switch";
@@ -62,25 +62,25 @@ import "./tailwind-config-d1VL1lzE.js";
62
62
  import "tailwind-merge";
63
63
  import "react-hotkeys-hook";
64
64
  import "sonner";
65
- const Lr = I.lazy(() => import("react-json-view"));
66
- function Or(t) {
67
- const l = [], r = {};
68
- function s(n, a) {
69
- we(a, (d, i) => {
70
- const o = n ? `${n}.${i}` : i, u = ae(d) ? "list" : typeof d;
71
- l.push(o), r[o] = u === "string" ? "text" : u === "object" ? "model" : u, u === "object" && !ae(d) && s(o, d);
65
+ const Or = I.lazy(() => import("react-json-view"));
66
+ function Mr(t) {
67
+ const s = [], r = {};
68
+ function l(o, n) {
69
+ Ce(n, (d, i) => {
70
+ const a = o ? `${o}.${i}` : i, p = ae(d) ? "list" : typeof d;
71
+ s.push(a), r[a] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ae(d) && l(a, d);
72
72
  });
73
73
  }
74
- return s("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
74
+ return l("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: s, pathsType: r };
75
75
  }
76
- const ve = ({ data: t, fullView: l }) => {
76
+ const je = ({ data: t, fullView: s }) => {
77
77
  if (!t)
78
78
  return null;
79
79
  const r = typeof t;
80
- return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
80
+ return s ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
81
81
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
82
82
  /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(
83
- Lr,
83
+ Or,
84
84
  {
85
85
  style: { maxHeight: "40vh", overflowY: "auto" },
86
86
  name: "Content",
@@ -95,21 +95,21 @@ const ve = ({ data: t, fullView: l }) => {
95
95
  /* @__PURE__ */ e.jsx("span", { className: "font-medium text-gray-800/80", children: "Content: " }),
96
96
  t
97
97
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: pt(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
98
- }, De = ({
98
+ }, Ie = ({
99
99
  type: t,
100
- value: l = "",
100
+ value: s = "",
101
101
  setValue: r,
102
- data: s,
103
- onChange: n,
104
- dataType: a,
102
+ data: l,
103
+ onChange: o,
104
+ dataType: n,
105
105
  appliedBindings: d
106
106
  }) => {
107
- const { paths: i, pathsType: o } = Or(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
108
- (g) => !M(d, g) && p(u, `props.${pe(ut(g, "."))}.binding`)
109
- ) : i.filter((g) => a === p(o, g, "")), [t, i, d, a, u]);
107
+ const { paths: i, pathsType: a } = Mr(l), p = t === "PROP" ? et(l == null ? void 0 : l._type) : {}, g = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
108
+ (x) => !M(d, x) && u(p, `props.${pe(ut(x, "."))}.binding`)
109
+ ) : i.filter((x) => n === u(a, x, "")), [t, i, d, n, p]);
110
110
  return _(() => {
111
- l && n(l);
112
- }, [l, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
111
+ s && o(s);
112
+ }, [s, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
113
113
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
114
114
  /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: Y(te(t)) }),
115
115
  /* @__PURE__ */ e.jsxs(Ft, { open: c, onOpenChange: m, children: [
@@ -118,11 +118,11 @@ const ve = ({ data: t, fullView: l }) => {
118
118
  {
119
119
  variant: "outline",
120
120
  size: "sm",
121
- className: ` ${b(l) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
122
- children: l ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
121
+ className: ` ${b(s) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
122
+ children: s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
123
123
  /* @__PURE__ */ e.jsxs("span", { className: "text-sm pr-8", children: [
124
- x && /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 mr-2 rounded-full", children: Y(a) }),
125
- l
124
+ g && /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 mr-2 rounded-full", children: Y(n) }),
125
+ s
126
126
  ] }),
127
127
  /* @__PURE__ */ e.jsx("span", { className: "text-[9px] text-blue-400 underline cursor-pointer hover:text-blue-700", children: "Change" })
128
128
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
@@ -135,50 +135,50 @@ const ve = ({ data: t, fullView: l }) => {
135
135
  /* @__PURE__ */ e.jsx(Zt, { placeholder: `Choose ${te(t)}...` }),
136
136
  /* @__PURE__ */ e.jsxs(zt, { children: [
137
137
  /* @__PURE__ */ e.jsx(Ut, { children: "No results found." }),
138
- /* @__PURE__ */ e.jsx(Gt, { children: C(h, (g) => /* @__PURE__ */ e.jsxs(
138
+ /* @__PURE__ */ e.jsx(Gt, { children: C(h, (x) => /* @__PURE__ */ e.jsxs(
139
139
  Kt,
140
140
  {
141
- value: g,
142
- className: `cursor-pointer ${x ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
141
+ value: x,
142
+ className: `cursor-pointer ${g ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
143
143
  onSelect: (f) => {
144
144
  r(xt(h, (T) => T === f) || null), m(!1);
145
145
  },
146
146
  children: [
147
147
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
148
- /* @__PURE__ */ e.jsx(Rr, { className: `w-4 h-4 text-green-500 ${l === g ? "" : "opacity-0"}` }),
149
- g
148
+ /* @__PURE__ */ e.jsx(Rr, { className: `w-4 h-4 text-green-500 ${s === x ? "" : "opacity-0"}` }),
149
+ x
150
150
  ] }),
151
- x ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(p(o, g, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(ve, { data: p(s, g) }) })
151
+ g ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(u(a, x, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(je, { data: u(l, x) }) })
152
152
  ]
153
153
  },
154
- g
154
+ x
155
155
  )) })
156
156
  ] })
157
157
  ] }) })
158
158
  ] })
159
159
  ] }),
160
- !x && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(ve, { data: p(s, l, ""), fullView: !0 }) })
160
+ !g && !b(s) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(je, { data: u(l, s, ""), fullView: !0 }) })
161
161
  ] });
162
- }, Mr = ({
162
+ }, Er = ({
163
163
  appliedBindings: t = [],
164
- onAddBinding: l,
164
+ onAddBinding: s,
165
165
  editMode: r,
166
- item: s
166
+ item: l
167
167
  }) => {
168
- const [n, a] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), o = G(), [u] = rt(), x = A(
169
- (h, g) => {
168
+ const [o, n] = w(r ? l.key : ""), [d, i] = w(r ? l.value : ""), a = G(), [p] = rt(), g = A(
169
+ (h, x) => {
170
170
  if (b(h))
171
171
  return "";
172
172
  {
173
- const f = p(g === "PROP" ? o : u, h, "");
173
+ const f = u(x === "PROP" ? a : p, h, "");
174
174
  if (ae(f))
175
175
  return "list";
176
176
  const T = typeof f;
177
177
  return T === "string" ? "text" : T === "object" ? "model" : T;
178
178
  }
179
179
  },
180
- [o, u]
181
- ), [c, m] = w(r ? x(s.key, "PROP") : "");
180
+ [a, p]
181
+ ), [c, m] = w(r ? g(l.key, "PROP") : "");
182
182
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
183
183
  /* @__PURE__ */ e.jsxs(qt, { children: [
184
184
  /* @__PURE__ */ e.jsx(Jt, { children: "Add Data Binding" }),
@@ -186,36 +186,36 @@ const ve = ({ data: t, fullView: l }) => {
186
186
  ] }),
187
187
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 relative", children: [
188
188
  /* @__PURE__ */ e.jsx(
189
- De,
189
+ Ie,
190
190
  {
191
191
  type: "PROP",
192
192
  isDisabled: !1,
193
193
  placeholder: "Enter prop key",
194
- value: n,
195
- setValue: a,
194
+ value: o,
195
+ setValue: n,
196
196
  onChange: (h) => {
197
- const g = x(h, "PROP");
198
- a(h), c !== g && i(""), m(g);
197
+ const x = g(h, "PROP");
198
+ n(h), c !== x && i(""), m(x);
199
199
  },
200
- data: o,
200
+ data: a,
201
201
  dataType: c,
202
202
  appliedBindings: t
203
203
  }
204
204
  ),
205
205
  /* @__PURE__ */ e.jsx("div", { className: "h-2" }),
206
206
  /* @__PURE__ */ e.jsx(
207
- De,
207
+ Ie,
208
208
  {
209
209
  type: "PATH",
210
- isDisabled: b(n),
210
+ isDisabled: b(o),
211
211
  placeholder: "Enter data path",
212
212
  value: d,
213
213
  setValue: i,
214
214
  onChange: (h) => {
215
- const g = x(h, "PATH");
216
- i(c === g ? h : "");
215
+ const x = g(h, "PATH");
216
+ i(c === x ? h : "");
217
217
  },
218
- data: u,
218
+ data: p,
219
219
  dataType: c,
220
220
  appliedBindings: t
221
221
  }
@@ -226,55 +226,55 @@ const ve = ({ data: t, fullView: l }) => {
226
226
  {
227
227
  type: "submit",
228
228
  className: "mt-4",
229
- disabled: b(n) && b(d),
230
- onClick: () => l({ key: n, value: d }),
229
+ disabled: b(o) && b(d),
230
+ onClick: () => s({ key: o, value: d }),
231
231
  children: "Save"
232
232
  }
233
233
  ) })
234
234
  ] });
235
- }, lt = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: n = !0, item: a = {} }) => {
235
+ }, st = ({ disabled: t, children: s, onAddBinding: r, appliedBindings: l, editMode: o = !0, item: n = {} }) => {
236
236
  const [d, i] = w(!1);
237
237
  return /* @__PURE__ */ e.jsxs(tr, { children: [
238
- /* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
239
- d && /* @__PURE__ */ e.jsx(lr, { children: /* @__PURE__ */ e.jsx(
240
- Mr,
238
+ /* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: s }),
239
+ d && /* @__PURE__ */ e.jsx(sr, { children: /* @__PURE__ */ e.jsx(
240
+ Er,
241
241
  {
242
- item: a,
243
- editMode: n,
244
- appliedBindings: s,
245
- onAddBinding: (o) => {
246
- r(o), i(!1);
242
+ item: n,
243
+ editMode: o,
244
+ appliedBindings: l,
245
+ onAddBinding: (a) => {
246
+ r(a), i(!1);
247
247
  }
248
248
  }
249
249
  ) })
250
250
  ] });
251
- }, Er = ({
251
+ }, _r = ({
252
252
  item: t,
253
- onAddBinding: l,
253
+ onAddBinding: s,
254
254
  onRemove: r,
255
- selectedBlock: s,
256
- dataProvider: n,
257
- appliedBindings: a
255
+ selectedBlock: l,
256
+ dataProvider: o,
257
+ appliedBindings: n
258
258
  }) => {
259
- const [d, i] = w("string"), o = (u, x) => {
260
- if (b(u))
259
+ const [d, i] = w("string"), a = (p, g) => {
260
+ if (b(p))
261
261
  return "";
262
262
  {
263
- const c = p(x === "PROP" ? s : n, u, "");
263
+ const c = u(g === "PROP" ? l : o, p, "");
264
264
  if (ae(c))
265
265
  return "list";
266
266
  const m = typeof c;
267
267
  return m === "string" ? "text" : m === "object" ? "model" : m;
268
268
  }
269
269
  };
270
- return _(() => i(() => o(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
270
+ return _(() => i(() => a(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
271
271
  /* @__PURE__ */ e.jsx("div", { className: "text-gray-500 font-normal text-sm", children: t.key }),
272
272
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
273
- /* @__PURE__ */ e.jsx(ve, { data: p(n, t.value, "") }),
273
+ /* @__PURE__ */ e.jsx(je, { data: u(o, t.value, "") }),
274
274
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
275
- /* @__PURE__ */ e.jsx(lt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(Sr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
275
+ /* @__PURE__ */ e.jsx(st, { editMode: !0, onAddBinding: s, appliedBindings: n, item: t, children: /* @__PURE__ */ e.jsx(Vr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
276
276
  /* @__PURE__ */ e.jsx(
277
- Vr,
277
+ Hr,
278
278
  {
279
279
  onClick: () => r(),
280
280
  className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-red-400 hover:text-white border-red-400 p-1 text-red-400 hover:scale-105 duration-200"
@@ -283,94 +283,94 @@ const ve = ({ data: t, fullView: l }) => {
283
283
  ] }),
284
284
  !b(d) && !b(t.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-0 top-1 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: Y(d) })
285
285
  ] });
286
- }, _r = ({ bindingData: t, onChange: l }) => {
287
- const r = G(), [s] = rt(), n = Hr(), [a, d] = w(
286
+ }, Fr = ({ bindingData: t, onChange: s }) => {
287
+ const r = G(), [l] = rt(), o = Br(), [n, d] = w(
288
288
  C(t, (c, m) => ({ key: m, value: c }))
289
289
  );
290
290
  _(() => {
291
291
  d(C(t, (c, m) => ({ key: m, value: c })));
292
292
  }, [r == null ? void 0 : r._id]);
293
293
  const i = N(() => {
294
- if (b(s))
294
+ if (b(l))
295
295
  return !0;
296
- if (b(a))
296
+ if (b(n))
297
297
  return !1;
298
- const c = be(a);
298
+ const c = fe(n);
299
299
  return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
300
- }, [s, a]), o = (c) => {
301
- const m = fe(a, (h) => h.key !== c.key);
302
- d([...m, c]), x([...m, c]);
303
- }, u = (c) => {
304
- const m = fe(a, (h, g) => c !== g);
305
- x([...m]);
306
- }, x = A(
300
+ }, [l, n]), a = (c) => {
301
+ const m = ve(n, (h) => h.key !== c.key);
302
+ d([...m, c]), g([...m, c]);
303
+ }, p = (c) => {
304
+ const m = ve(n, (h, x) => c !== x);
305
+ g([...m]);
306
+ }, g = A(
307
307
  (c = []) => {
308
308
  if (d(c), b(c)) {
309
- l({});
309
+ s({});
310
310
  return;
311
311
  }
312
312
  const m = {};
313
- we(c, (h) => {
313
+ Ce(c, (h) => {
314
314
  !b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Ee(m, h.key, h.value);
315
- }), l(m);
315
+ }), s(m);
316
316
  },
317
- [l]
317
+ [s]
318
318
  );
319
- return b(n) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
319
+ return b(o) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
320
320
  "You have no data providers registered. Please add a data provider to your project. ",
321
321
  /* @__PURE__ */ e.jsx("br", {}),
322
322
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
323
323
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
324
- C(a, (c, m) => /* @__PURE__ */ e.jsx(
325
- Er,
324
+ C(n, (c, m) => /* @__PURE__ */ e.jsx(
325
+ _r,
326
326
  {
327
327
  item: c,
328
- onAddBinding: o,
329
- onRemove: () => u(m),
328
+ onAddBinding: a,
329
+ onRemove: () => p(m),
330
330
  selectedBlock: r,
331
- dataProvider: s,
332
- appliedBindings: C(a, "key")
331
+ dataProvider: l,
332
+ appliedBindings: C(n, "key")
333
333
  },
334
334
  c.key
335
335
  )),
336
336
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
337
337
  /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
338
- lt,
338
+ st,
339
339
  {
340
340
  disabled: i,
341
- appliedBindings: C(a, "key"),
342
- onAddBinding: o,
341
+ appliedBindings: C(n, "key"),
342
+ onAddBinding: a,
343
343
  children: /* @__PURE__ */ e.jsx(
344
344
  "span",
345
345
  {
346
346
  className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30"}`,
347
- children: b(s) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
347
+ children: b(l) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
348
348
  }
349
349
  )
350
350
  }
351
351
  ) }),
352
- i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(s) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
352
+ i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(l) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
353
353
  ] })
354
354
  ] });
355
- }, Fr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), Ie = dt(
355
+ }, Yr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), me = dt(
356
356
  ({
357
357
  createHistorySnapshot: t,
358
- properties: l,
358
+ properties: s,
359
359
  formData: r,
360
- onChange: s
360
+ onChange: l
361
361
  }) => {
362
- const [n] = sr(), a = { type: "object", properties: {} }, d = {};
363
- return Object.keys(l).forEach((i) => {
364
- const o = l[i];
365
- if (M(["slot", "styles"], o.type))
362
+ const [o] = lr(), n = { type: "object", properties: {} }, d = {};
363
+ return Object.keys(s).forEach((i) => {
364
+ const a = s[i];
365
+ if (M(["slot", "styles"], a.type))
366
366
  return;
367
- const u = p(o, "i18n", !1) ? `${i}-${n}` : i;
368
- a.properties[u] = or(o, n), d[u] = nr(o, n);
367
+ const p = u(a, "i18n", !1) ? `${i}-${o}` : i;
368
+ n.properties[p] = or(a, o), d[p] = nr(a, o);
369
369
  }), /* @__PURE__ */ e.jsx(
370
- kr,
370
+ Nr,
371
371
  {
372
372
  widgets: {
373
- binding: Fr,
373
+ binding: Yr,
374
374
  richtext: ar,
375
375
  icon: ir,
376
376
  image: dr
@@ -383,61 +383,59 @@ const ve = ({ data: t, fullView: l }) => {
383
383
  omitExtraData: !1,
384
384
  liveOmit: !1,
385
385
  liveValidate: !0,
386
- validator: Nr,
386
+ validator: Tr,
387
387
  uiSchema: d,
388
388
  onBlur: t,
389
- schema: a,
389
+ schema: n,
390
390
  formData: r,
391
- onChange: s
391
+ onChange: l
392
392
  }
393
393
  );
394
394
  }
395
395
  );
396
- function Yr() {
397
- const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = et(t._type), n = { ...t }, a = () => l(), d = ({ formData: x }, c) => {
398
- if (c) {
399
- const m = c.replace("root.", "");
400
- r([t._id], { [m]: p(x, m) });
396
+ function Wr() {
397
+ const t = G(), { createSnapshot: s } = ze(), r = Ue(), l = et(t._type), o = { ...t }, n = pr("dataBindingSupport", !1), d = () => s(), i = ({ formData: c }, m) => {
398
+ if (m) {
399
+ const h = m.replace("root.", "");
400
+ r([t._id], { [h]: u(c, h) });
401
401
  }
402
- }, i = {
403
- _name: Tr({
402
+ }, a = {
403
+ _name: Sr({
404
404
  title: "Name",
405
- default: p(t, "_name", t._type)
405
+ default: u(t, "_name", t._type)
406
406
  })
407
- }, o = gt(p(n, "_bindings", {})), u = N(() => {
408
- const x = ht(p(s, "props", {}));
409
- return mt(o, (c) => {
410
- delete x[c];
411
- }), x;
412
- }, [s, o]);
407
+ }, p = gt(u(o, "_bindings", {})), g = N(() => {
408
+ const c = ht(u(l, "props", {}));
409
+ return n && mt(p, (m) => delete c[m]), c;
410
+ }, [l, p, n]);
413
411
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
414
412
  /* @__PURE__ */ e.jsx(
415
- Ie,
413
+ me,
416
414
  {
417
- onChange: d,
418
- createHistorySnapshot: a,
419
- formData: n,
420
- properties: i
415
+ onChange: i,
416
+ createHistorySnapshot: d,
417
+ formData: o,
418
+ properties: a
421
419
  }
422
420
  ),
423
421
  /* @__PURE__ */ e.jsx("hr", { className: "mt-4" }),
424
- /* @__PURE__ */ e.jsxs(Ge, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
422
+ n ? /* @__PURE__ */ e.jsxs(Ge, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
425
423
  /* @__PURE__ */ e.jsxs(ie, { value: "BINDING", children: [
426
424
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline bg-gray-100 ml-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
427
425
  /* @__PURE__ */ e.jsx(
428
426
  "div",
429
427
  {
430
- className: `h-[8px] w-[8px] rounded-full ${b(p(t, "_bindings", {})) ? "bg-gray-300" : "bg-blue-500"}`
428
+ className: `h-[8px] w-[8px] rounded-full ${b(u(t, "_bindings", {})) ? "bg-gray-300" : "bg-blue-500"}`
431
429
  }
432
430
  ),
433
431
  "Data Binding"
434
432
  ] }) }),
435
433
  /* @__PURE__ */ e.jsx(ce, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
436
- _r,
434
+ Fr,
437
435
  {
438
- bindingData: p(n, "_bindings", {}),
439
- onChange: (x) => {
440
- d({ formData: { ...n, _bindings: x } }, "root._bindings");
436
+ bindingData: u(o, "_bindings", {}),
437
+ onChange: (c) => {
438
+ i({ formData: { ...o, _bindings: c } }, "root._bindings");
441
439
  }
442
440
  }
443
441
  ) })
@@ -448,40 +446,48 @@ function Yr() {
448
446
  "Static Content"
449
447
  ] }) }),
450
448
  /* @__PURE__ */ e.jsxs(ce, { className: "pt-4", children: [
451
- b(o) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
449
+ b(p) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
452
450
  "Data binding is set for ",
453
- /* @__PURE__ */ e.jsx("b", { children: C(o, yt).join(", ") }),
451
+ /* @__PURE__ */ e.jsx("b", { children: C(p, yt).join(", ") }),
454
452
  " ",
455
- o.length === 1 ? "property" : "properties",
453
+ p.length === 1 ? "property" : "properties",
456
454
  ". Remove data binding to edit static content."
457
455
  ] }),
458
456
  /* @__PURE__ */ e.jsx(
459
- Ie,
457
+ me,
460
458
  {
461
- onChange: d,
462
- createHistorySnapshot: a,
463
- formData: n,
464
- properties: u
459
+ onChange: i,
460
+ createHistorySnapshot: d,
461
+ formData: o,
462
+ properties: g
465
463
  }
466
464
  )
467
465
  ] })
468
466
  ] })
469
- ] }),
467
+ ] }) : /* @__PURE__ */ e.jsx(
468
+ me,
469
+ {
470
+ onChange: i,
471
+ createHistorySnapshot: d,
472
+ formData: o,
473
+ properties: g
474
+ }
475
+ ),
470
476
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
471
477
  ] });
472
478
  }
473
- const Pe = new Dr(Ir, {
479
+ const Pe = new Ir(Pr, {
474
480
  isCaseSensitive: !1,
475
481
  threshold: 0.2,
476
482
  minMatchCharLength: 2,
477
483
  keys: ["name"]
478
484
  });
479
- function Wr() {
485
+ function Xr() {
480
486
  var D;
481
- const [t] = Ne(), l = G(), r = Ke(), s = qe(), [n] = Je(), [a, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, o = bt((p(l, i, "").replace($r, "").split(",").pop() || "").split(" "), b), u = () => {
482
- const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
483
- r(n, j, !0), d("");
484
- }, [x, c] = w([]), m = ({ value: j }) => {
487
+ const [t] = Te(), s = G(), r = Ke(), l = qe(), [o] = Je(), [n, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, a = bt((u(s, i, "").replace(Lr, "").split(",").pop() || "").split(" "), b), p = () => {
488
+ const j = n.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
489
+ r(o, j, !0), d("");
490
+ }, [g, c] = w([]), m = ({ value: j }) => {
485
491
  const L = j.trim().toLowerCase(), P = L.match(/.+:/g);
486
492
  let k = [];
487
493
  if (P && P.length > 0) {
@@ -495,15 +501,15 @@ function Wr() {
495
501
  c(C(k, "item"));
496
502
  }, h = () => {
497
503
  c([]);
498
- }, g = (j) => j.name, f = (j) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: j.name }), T = {
504
+ }, x = (j) => j.name, f = (j) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: j.name }), T = {
499
505
  autoComplete: "off",
500
506
  autoCorrect: "off",
501
507
  autoCapitalize: "off",
502
508
  spellCheck: !1,
503
509
  placeholder: "Enter class name",
504
- value: a,
510
+ value: n,
505
511
  onKeyDown: (j) => {
506
- j.key === "Enter" && a.trim() !== "" && u();
512
+ j.key === "Enter" && n.trim() !== "" && p();
507
513
  },
508
514
  onChange: (j, { newValue: L }) => d(L),
509
515
  className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
@@ -511,17 +517,17 @@ function Wr() {
511
517
  return /* @__PURE__ */ e.jsxs(
512
518
  "div",
513
519
  {
514
- className: `no-scrollbar flex ${x.length > 0 ? "min-h-[300px]" : "min-h-max"} w-full flex-col gap-y-5 overflow-y-auto bg-gray-100 px-px`,
520
+ className: `no-scrollbar flex ${g.length > 0 ? "min-h-[300px]" : "min-h-max"} w-full flex-col gap-y-5 overflow-y-auto bg-gray-100 px-px`,
515
521
  children: [
516
- /* @__PURE__ */ e.jsx(Te, { className: "mt-2", children: "Add Tailwind classes" }),
522
+ /* @__PURE__ */ e.jsx(Se, { className: "mt-2", children: "Add Tailwind classes" }),
517
523
  /* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
518
524
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
519
- Ar,
525
+ Dr,
520
526
  {
521
- suggestions: x,
527
+ suggestions: g,
522
528
  onSuggestionsFetchRequested: m,
523
529
  onSuggestionsClearRequested: h,
524
- getSuggestionValue: g,
530
+ getSuggestionValue: x,
525
531
  renderSuggestion: f,
526
532
  inputProps: T,
527
533
  containerProps: {
@@ -539,17 +545,17 @@ function Wr() {
539
545
  {
540
546
  variant: "outline",
541
547
  className: "h-6 border-gray-700",
542
- onClick: u,
543
- disabled: a.trim() === "",
548
+ onClick: p,
549
+ disabled: n.trim() === "",
544
550
  size: "sm",
545
- children: /* @__PURE__ */ e.jsx(Ce, {})
551
+ children: /* @__PURE__ */ e.jsx(ke, {})
546
552
  }
547
553
  )
548
554
  ] }),
549
555
  /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-wrap gap-2", children: [
550
- b(o) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
556
+ b(a) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
551
557
  ne.Children.toArray(
552
- o.map((j) => /* @__PURE__ */ e.jsxs(
558
+ a.map((j) => /* @__PURE__ */ e.jsxs(
553
559
  "div",
554
560
  {
555
561
  className: "group relative flex cursor-default items-center gap-x-1 rounded-full border border-blue-600 bg-blue-500 p-px px-1.5 text-[11px] text-white hover:border-blue-900",
@@ -558,7 +564,7 @@ function Wr() {
558
564
  /* @__PURE__ */ e.jsx(
559
565
  We,
560
566
  {
561
- onClick: () => s(n, [j]),
567
+ onClick: () => l(o, [j]),
562
568
  className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
563
569
  }
564
570
  )
@@ -572,7 +578,7 @@ function Wr() {
572
578
  }
573
579
  );
574
580
  }
575
- const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
581
+ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Zr = {
576
582
  heading: "Flex Child",
577
583
  items: [
578
584
  { type: "arbitrary", label: "Basis", units: B, property: "flexBasis" },
@@ -581,7 +587,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
581
587
  { type: "dropdown", label: "Grow", property: "flexGrow" },
582
588
  { type: "dropdown", label: "Shrink", property: "flexShrink" }
583
589
  ]
584
- }, Zr = {
590
+ }, zr = {
585
591
  heading: "Grid Child",
586
592
  items: [
587
593
  { type: "range", label: "Col Span", property: "gridColSpan" },
@@ -592,7 +598,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
592
598
  { type: "range", label: "Row End", property: "gridRowEnd" },
593
599
  { type: "range", label: "Order", property: "order" }
594
600
  ]
595
- }, zr = [
601
+ }, Ur = [
596
602
  {
597
603
  heading: "Layout",
598
604
  items: [
@@ -994,42 +1000,42 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
994
1000
  },
995
1001
  {
996
1002
  heading: "Classes",
997
- items: [{ component: Wr }]
1003
+ items: [{ component: Xr }]
998
1004
  }
999
- ], st = {
1005
+ ], lt = {
1000
1006
  "not-italic": () => /* @__PURE__ */ e.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 3H11V5H9V11H11V13H5V11H7V5H5V3H9Z", fill: "white" }) }),
1001
1007
  // visibility
1002
1008
  visible: Ct,
1003
- invisible: Ve,
1009
+ invisible: He,
1004
1010
  // display
1005
- hidden: Ve,
1011
+ hidden: He,
1006
1012
  gap: O,
1007
- gapX: S,
1013
+ gapX: R,
1008
1014
  gapY: V,
1009
- spaceX: S,
1015
+ spaceX: R,
1010
1016
  spaceY: V,
1011
1017
  overscroll: O,
1012
- overscrollX: S,
1018
+ overscrollX: R,
1013
1019
  overscrollY: V,
1014
1020
  overflow: O,
1015
- overflowX: S,
1021
+ overflowX: R,
1016
1022
  overflowY: V,
1017
1023
  top: q,
1018
1024
  right: J,
1019
1025
  bottom: Q,
1020
1026
  left: ee,
1021
1027
  inset: O,
1022
- insetX: S,
1028
+ insetX: R,
1023
1029
  insetY: V,
1024
1030
  border: O,
1025
- borderX: S,
1031
+ borderX: R,
1026
1032
  borderY: V,
1027
1033
  borderTop: q,
1028
1034
  borderRight: J,
1029
1035
  borderBottom: Q,
1030
1036
  borderLeft: ee,
1031
1037
  borderRadius: O,
1032
- borderRadiusX: S,
1038
+ borderRadiusX: R,
1033
1039
  borderRadiusY: V,
1034
1040
  borderRadiusTop: q,
1035
1041
  borderRadiusRight: J,
@@ -1038,19 +1044,19 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1038
1044
  borderRadiusTopLeft: kt,
1039
1045
  borderRadiusTopRight: Nt,
1040
1046
  borderRadiusBottomRight: Tt,
1041
- borderRadiusBottomLeft: Rt,
1042
- divideXWidth: S,
1047
+ borderRadiusBottomLeft: St,
1048
+ divideXWidth: R,
1043
1049
  divideYWidth: V,
1044
1050
  scale: O,
1045
- scaleX: S,
1051
+ scaleX: R,
1046
1052
  scaleY: V,
1047
- skewX: S,
1053
+ skewX: R,
1048
1054
  skewY: V,
1049
- translateX: S,
1055
+ translateX: R,
1050
1056
  translateY: V,
1051
1057
  // padding
1052
1058
  padding: O,
1053
- paddingX: S,
1059
+ paddingX: R,
1054
1060
  paddingY: V,
1055
1061
  paddingTop: q,
1056
1062
  paddingRight: J,
@@ -1058,14 +1064,14 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1058
1064
  paddingLeft: ee,
1059
1065
  // margin
1060
1066
  margin: O,
1061
- marginX: S,
1067
+ marginX: R,
1062
1068
  marginY: V,
1063
1069
  marginTop: q,
1064
1070
  marginRight: J,
1065
1071
  marginBottom: Q,
1066
1072
  marginLeft: ee,
1067
1073
  // text-align
1068
- textLeft: St,
1074
+ textLeft: Rt,
1069
1075
  textCenter: Vt,
1070
1076
  textRight: Ht,
1071
1077
  textJustify: Bt,
@@ -1190,100 +1196,100 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1190
1196
  )
1191
1197
  ] }),
1192
1198
  static: $t
1193
- }, le = Me({ canReset: !1, canChange: !0 }), Ur = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1199
+ }, se = Me({ canReset: !1, canChange: !0 }), Gr = ({ children: t, canReset: s = !1, canChange: r = !0 }) => (
1194
1200
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1195
- /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
1196
- ), ot = ({ label: t, property: l, onChange: r }) => {
1197
- const s = N(() => p(ge, `${l}.classes`, [""]), [l]), n = se(l), a = N(() => p(n, "cls", ""), [n]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
1201
+ /* @__PURE__ */ e.jsx(se.Provider, { value: { canReset: s, canChange: r }, children: t })
1202
+ ), ot = ({ label: t, property: s, onChange: r }) => {
1203
+ const l = N(() => u(ge, `${s}.classes`, [""]), [s]), o = le(s), n = N(() => u(o, "cls", ""), [o]), { canChange: d } = re(se), i = /\[.*\]/g.test(n);
1198
1204
  return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1199
- /* @__PURE__ */ e.jsx(pr, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1205
+ /* @__PURE__ */ e.jsx(ur, { className: "w-[70%] rounded py-1", readOnly: !0, value: n }),
1200
1206
  /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1201
- /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
1207
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1202
1208
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
1203
1209
  ] })
1204
1210
  ] }) : /* @__PURE__ */ e.jsx(
1205
- je,
1211
+ we,
1206
1212
  {
1207
1213
  rounded: t,
1208
- onChange: (o) => r(o, l),
1209
- selected: a,
1210
- options: s,
1214
+ onChange: (a) => r(a, s),
1215
+ selected: n,
1216
+ options: l,
1211
1217
  disabled: !d
1212
1218
  }
1213
1219
  ) });
1214
1220
  };
1215
- function je({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: n = !1 }) {
1216
- const a = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1221
+ function we({ selected: t, onChange: s, rounded: r = !1, options: l, disabled: o = !1 }) {
1222
+ const n = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1217
1223
  return /* @__PURE__ */ e.jsxs(
1218
1224
  "select",
1219
1225
  {
1220
- disabled: !s.length || n,
1226
+ disabled: !l.length || o,
1221
1227
  className: `${r ? "rounded-md border border-border" : "border-0"} w-full disable:bg-gray-500 h-full truncate rounded bg-background px-2 py-1 text-xs outline-none disabled:cursor-not-allowed`,
1222
- onChange: (o) => l(o.target.value),
1223
- onKeyDown: (o) => {
1224
- o.ctrlKey && (o.key === "z" && d(), o.key === "y" && i());
1228
+ onChange: (a) => s(a.target.value),
1229
+ onKeyDown: (a) => {
1230
+ a.ctrlKey && (a.key === "z" && d(), a.key === "y" && i());
1225
1231
  },
1226
- value: a,
1232
+ value: n,
1227
1233
  children: [
1228
1234
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1229
1235
  I.Children.toArray(
1230
- s.map((o) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: o, children: o }))
1236
+ l.map((a) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: a, children: a }))
1231
1237
  )
1232
1238
  ]
1233
1239
  }
1234
1240
  );
1235
1241
  }
1236
- const Gr = ({ property: t, onChange: l }) => {
1237
- const { canReset: r, canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]), d = N(() => p(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, o = /\[.*\]/g.test(a);
1238
- return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: o ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1242
+ const Kr = ({ property: t, onChange: s }) => {
1243
+ const { canReset: r, canChange: l } = re(se), o = le(t), n = N(() => u(o, "cls", ""), [o]), d = N(() => u(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(n) > -1 ? d.indexOf(n) : 0, a = /\[.*\]/g.test(n);
1244
+ return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: a ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1239
1245
  /* @__PURE__ */ e.jsx(
1240
1246
  "button",
1241
1247
  {
1242
1248
  type: "button",
1243
1249
  className: "box-border w-2/12 rounded-tl rounded-bl bg-background px-1 text-center hover:bg-bg-gray-700 disabled:cursor-not-allowed disabled:bg-gray-600",
1244
- disabled: !s && (!r || i - 1 < 0),
1245
- onClick: () => l(Se(d, i - 1), t),
1250
+ disabled: !l && (!r || i - 1 < 0),
1251
+ onClick: () => s(Ve(d, i - 1), t),
1246
1252
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1247
1253
  Lt,
1248
1254
  {
1249
- className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1255
+ className: !l && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1250
1256
  }
1251
1257
  ) })
1252
1258
  }
1253
1259
  ),
1254
- /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: l }) }),
1260
+ /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: s }) }),
1255
1261
  /* @__PURE__ */ e.jsx(
1256
1262
  "button",
1257
1263
  {
1258
1264
  type: "button",
1259
1265
  className: "w-2/12 rounded-tr rounded-br bg-background px-1 text-center hover:bg-bg-gray-700 disabled:cursor-not-allowed disabled:bg-gray-600",
1260
- disabled: !s && (!r || i + 1 >= d.length),
1261
- onClick: () => l(Se(d, i + 1), t),
1266
+ disabled: !l && (!r || i + 1 >= d.length),
1267
+ onClick: () => s(Ve(d, i + 1), t),
1262
1268
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1263
- Ce,
1269
+ ke,
1264
1270
  {
1265
- className: !s && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1271
+ className: !l && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1266
1272
  }
1267
1273
  ) })
1268
1274
  }
1269
1275
  )
1270
1276
  ] }) });
1271
- }, Kr = ({ property: t, onChange: l }) => {
1272
- const r = N(() => p(ge, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]);
1277
+ }, qr = ({ property: t, onChange: s }) => {
1278
+ const r = N(() => u(ge, `${t}.classes`, [""]), [t]), { canChange: l } = re(se), o = le(t), n = N(() => u(o, "cls", ""), [o]);
1273
1279
  return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
1274
1280
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1275
1281
  "button",
1276
1282
  {
1277
1283
  type: "button",
1278
- disabled: !s,
1279
- onClick: () => l(d, t),
1280
- className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${a === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1281
- children: I.createElement(p(st, d, Xe))
1284
+ disabled: !l,
1285
+ onClick: () => s(d, t),
1286
+ className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${n === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1287
+ children: I.createElement(u(lt, d, Xe))
1282
1288
  }
1283
1289
  ) }),
1284
1290
  /* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
1285
1291
  ] })) });
1286
- }, qr = {
1292
+ }, Jr = {
1287
1293
  backgroundColor: "bg",
1288
1294
  textColor: "text",
1289
1295
  borderColor: "border",
@@ -1295,38 +1301,38 @@ const Gr = ({ property: t, onChange: l }) => {
1295
1301
  toColor: "to",
1296
1302
  ringColor: "ring",
1297
1303
  ringOffsetColor: "ring-offset"
1298
- }, Jr = ({ property: t, onChange: l }) => {
1299
- const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange: n } = re(le), [a, d] = w([]), [i, o] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
1304
+ }, Qr = ({ property: t, onChange: s }) => {
1305
+ const r = le(t), l = N(() => u(r, "cls", ""), [r]), { canChange: o } = re(se), [n, d] = w([]), [i, a] = w({ color: "", shade: "" }), p = l.split("-"), g = u(p, "1", ""), c = u(p, "2", ""), m = A(
1300
1306
  // eslint-disable-next-line no-shadow
1301
- (g) => {
1302
- ["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), o({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((f) => ({ ...f, color: g, shade: f.shade ? f.shade : "500" })));
1307
+ (x) => {
1308
+ ["current", "inherit", "transparent", "black", "white"].includes(x) ? (d([]), a({ color: x })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), a((f) => ({ ...f, color: x, shade: f.shade ? f.shade : "500" })));
1303
1309
  },
1304
- [d, o]
1310
+ [d, a]
1305
1311
  );
1306
1312
  _(() => {
1307
- if (["current", "inherit", "transparent", "black", "white"].includes(x))
1313
+ if (["current", "inherit", "transparent", "black", "white"].includes(g))
1308
1314
  return d([]);
1309
1315
  d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]);
1310
- }, [x]);
1316
+ }, [g]);
1311
1317
  const h = A(
1312
1318
  // eslint-disable-next-line no-shadow
1313
- (g) => {
1314
- o({ color: x, shade: g });
1319
+ (x) => {
1320
+ a({ color: g, shade: x });
1315
1321
  },
1316
- [x]
1322
+ [g]
1317
1323
  );
1318
1324
  return _(() => {
1319
- o({ color: "", shade: "" });
1325
+ a({ color: "", shade: "" });
1320
1326
  }, [r]), _(() => {
1321
- const f = `${p(qr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1322
- f.match(new RegExp(p(ge, `${t}.regExp`, ""))) && l(f, t);
1323
- }, [i, l, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1327
+ const f = `${u(Jr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1328
+ f.match(new RegExp(u(ge, `${t}.regExp`, ""))) && s(f, t);
1329
+ }, [i, s, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1324
1330
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
1325
- je,
1331
+ we,
1326
1332
  {
1327
- disabled: !n,
1333
+ disabled: !o,
1328
1334
  rounded: !0,
1329
- selected: x,
1335
+ selected: g,
1330
1336
  onChange: m,
1331
1337
  options: [
1332
1338
  "current",
@@ -1360,20 +1366,20 @@ const Gr = ({ property: t, onChange: l }) => {
1360
1366
  ]
1361
1367
  }
1362
1368
  ) }),
1363
- /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(je, { rounded: !0, selected: c, disabled: !x || !n, onChange: h, options: a }) })
1369
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(we, { rounded: !0, selected: c, disabled: !g || !o, onChange: h, options: n }) })
1364
1370
  ] });
1365
- }, $e = (t, l) => {
1371
+ }, $e = (t, s) => {
1366
1372
  t = t.toLowerCase();
1367
1373
  let r = t.trim().replace(/ |\+/g, "");
1368
- if ((r === "auto" || r === "none") && l.includes(r))
1374
+ if ((r === "auto" || r === "none") && s.includes(r))
1369
1375
  return { value: "", unit: r };
1370
- const s = l.length ? new RegExp(l.join("|"), "g") : /XXXXXX/g;
1371
- r = r.replace(s, "");
1372
- const n = t.match(s), a = n && n.length > 1, d = !b(r) && Number.isNaN(Number(r));
1373
- return a || d ? { error: "Invalid value" } : n && (n[0] === "auto" || n[0] === "none") ? { value: n[0], unit: "" } : { value: r, unit: n ? n[0] : "" };
1376
+ const l = s.length ? new RegExp(s.join("|"), "g") : /XXXXXX/g;
1377
+ r = r.replace(l, "");
1378
+ const o = t.match(l), n = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1379
+ return n || d ? { error: "Invalid value" } : o && (o[0] === "auto" || o[0] === "none") ? { value: o[0], unit: "" } : { value: r, unit: o ? o[0] : "" };
1374
1380
  };
1375
- const Qr = (t) => {
1376
- const l = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1381
+ const es = (t) => {
1382
+ const s = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1377
1383
  if (["auto", "none"].includes(r))
1378
1384
  return { value: "", unit: r };
1379
1385
  if (r === "px")
@@ -1383,21 +1389,21 @@ const Qr = (t) => {
1383
1389
  if (r === "full")
1384
1390
  return { value: "100", unit: "%" };
1385
1391
  if (M(t, "skew-"))
1386
- return { value: `${l}${r}`, unit: "deg" };
1392
+ return { value: `${s}${r}`, unit: "deg" };
1387
1393
  if (M(t, "rotate-"))
1388
- return { value: `${l}${r}`, unit: "deg" };
1394
+ return { value: `${s}${r}`, unit: "deg" };
1389
1395
  if (M(t, "opacity-"))
1390
1396
  return { value: `${r / 100}`, unit: "-" };
1391
1397
  if (M(t, "duration-") || M(t, "delay-"))
1392
1398
  return { value: `${r}`, unit: "ms" };
1393
1399
  if (M(t, "translate-") && !r.includes("/"))
1394
- return { value: `${l}${`${r / 4}`}`, unit: "rem" };
1400
+ return { value: `${s}${`${r / 4}`}`, unit: "rem" };
1395
1401
  if (M(t, "scale-"))
1396
- return { value: `${l}${`${r / 100}`}`, unit: "-" };
1402
+ return { value: `${s}${`${r / 100}`}`, unit: "-" };
1397
1403
  if (z(t, "border")) {
1398
- const s = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1399
- if (s)
1400
- return { value: s[0].split("-").pop(), unit: "px" };
1404
+ const l = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1405
+ if (l)
1406
+ return { value: l[0].split("-").pop(), unit: "px" };
1401
1407
  if (t.match(/border-?(x|y|t|r|b|l)?/g))
1402
1408
  return { value: "1", unit: "px" };
1403
1409
  }
@@ -1496,29 +1502,29 @@ const Qr = (t) => {
1496
1502
  if (["max", "min", "fit"].includes(r))
1497
1503
  return { value: t, unit: "class" };
1498
1504
  if (r.includes("/")) {
1499
- const [s, n] = C(r.split("/"), (a) => parseInt(a, 10));
1500
- return { value: l + (s / n * 100).toFixed(2).replace(".00", ""), unit: "%" };
1505
+ const [l, o] = C(r.split("/"), (n) => parseInt(n, 10));
1506
+ return { value: s + (l / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1501
1507
  }
1502
- return ft(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1508
+ return ft(parseFloat(r)) ? { value: `${s + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1503
1509
  };
1504
- const el = (t) => {
1510
+ const ts = (t) => {
1505
1511
  if (b(t))
1506
1512
  return { value: "", unit: "" };
1507
- const l = t.match(/\[.*\]/g);
1508
- if (l === null)
1509
- return tl(t);
1510
- const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", n = pe(r.match(/\d+.\d+|\d+/g));
1511
- return { value: `${s}${n}`, unit: r.replace(n, "") };
1512
- }, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t), nt = I.createContext({
1513
+ const s = t.match(/\[.*\]/g);
1514
+ if (s === null)
1515
+ return rs(t);
1516
+ const r = u(s, "0", "").replace(/\[|\]/g, ""), l = t.startsWith("-") ? "-" : "", o = pe(r.match(/\d+.\d+|\d+/g));
1517
+ return { value: `${l}${o}`, unit: r.replace(o, "") };
1518
+ }, rs = (t) => b(t) ? { value: "", unit: "" } : es(t), nt = I.createContext({
1513
1519
  setDragData: () => {
1514
1520
  }
1515
- }), rl = ({
1521
+ }), ss = ({
1516
1522
  unit: t,
1517
- currentValue: l,
1523
+ currentValue: s,
1518
1524
  onDrag: r,
1519
- onDragEnd: s,
1520
- onDragStart: n,
1521
- negative: a,
1525
+ onDragEnd: l,
1526
+ onDragStart: o,
1527
+ negative: n,
1522
1528
  cssProperty: d
1523
1529
  }) => {
1524
1530
  const { setDragData: i } = re(nt);
@@ -1526,86 +1532,86 @@ const el = (t) => {
1526
1532
  "button",
1527
1533
  {
1528
1534
  type: "button",
1529
- onMouseDown: (o) => {
1530
- const u = {
1535
+ onMouseDown: (a) => {
1536
+ const p = {
1531
1537
  onDrag: r,
1532
- onDragEnd: s,
1538
+ onDragEnd: l,
1533
1539
  dragging: !0,
1534
- dragStartY: o.pageY,
1535
- dragStartValue: `${l}`,
1540
+ dragStartY: a.pageY,
1541
+ dragStartValue: `${s}`,
1536
1542
  dragUnit: t,
1537
- negative: a,
1543
+ negative: n,
1538
1544
  cssProperty: d
1539
1545
  };
1540
- n(u), i(u);
1546
+ o(p), i(p);
1541
1547
  },
1542
1548
  color: void 0,
1543
1549
  className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
1544
1550
  children: /* @__PURE__ */ e.jsx(Ot, {})
1545
1551
  }
1546
1552
  );
1547
- }, ll = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
1553
+ }, ls = ({ onSelect: t, current: s, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((l) => /* @__PURE__ */ e.jsx(
1548
1554
  ue,
1549
1555
  {
1550
1556
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
1551
- color: l === s ? "primary" : void 0,
1557
+ color: s === l ? "primary" : void 0,
1552
1558
  size: "sm",
1553
- onClick: (n) => {
1554
- n.stopPropagation(), t(s);
1559
+ onClick: (o) => {
1560
+ o.stopPropagation(), t(l);
1555
1561
  },
1556
- children: s
1562
+ children: l
1557
1563
  },
1558
- s
1559
- )) }), Le = 50, sl = (t) => {
1560
- const [l, r] = w(!1), [s, n] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: o, units: u, negative: x } = t, [c, m] = w(o != null && o.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
1564
+ l
1565
+ )) }), Le = 50, os = (t) => {
1566
+ const [s, r] = w(!1), [l, o] = w(""), { currentClass: n, onChange: d, classPrefix: i, cssProperty: a, units: p, negative: g } = t, [c, m] = w(a != null && a.toLowerCase().includes("width") ? "%" : p[0]), [h, x] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
1561
1567
  _(() => {
1562
- const { value: y, unit: v } = el(a);
1568
+ const { value: y, unit: v } = ts(n);
1563
1569
  if (v === "") {
1564
- n(y), m(o != null && o.toLowerCase().includes("width") ? "%" : pe(u));
1570
+ o(y), m(a != null && a.toLowerCase().includes("width") ? "%" : pe(p));
1565
1571
  return;
1566
1572
  }
1567
- m(v), n(v === "class" || b(y) ? "" : y);
1568
- }, [a, o, u]);
1569
- const k = ye((y) => d(y), [d], Le), $ = ye((y) => d(y, !1), [d], Le), F = A(
1573
+ m(v), o(v === "class" || b(y) ? "" : y);
1574
+ }, [n, a, p]);
1575
+ const k = be((y) => d(y), [d], Le), $ = be((y) => d(y, !1), [d], Le), F = A(
1570
1576
  (y = !1) => {
1571
- const v = $e(`${s}`, u);
1572
- if (p(v, "error", !1)) {
1573
- g(!0);
1577
+ const v = $e(`${l}`, p);
1578
+ if (u(v, "error", !1)) {
1579
+ x(!0);
1574
1580
  return;
1575
1581
  }
1576
- const R = p(v, "unit") !== "" ? p(v, "unit") : c;
1577
- if (R === "auto" || R === "none") {
1578
- k(`${i}${R}`);
1582
+ const S = u(v, "unit") !== "" ? u(v, "unit") : c;
1583
+ if (S === "auto" || S === "none") {
1584
+ k(`${i}${S}`);
1579
1585
  return;
1580
1586
  }
1581
- if (p(v, "value") === "")
1587
+ if (u(v, "value") === "")
1582
1588
  return;
1583
- const K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${R === "-" ? "" : R}]`;
1589
+ const K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1584
1590
  y ? $(K) : k(K);
1585
1591
  },
1586
- [k, $, s, c, i, u]
1592
+ [k, $, l, c, i, p]
1587
1593
  ), oe = A(
1588
1594
  (y) => {
1589
- const v = $e(`${s}`, u);
1590
- if (p(v, "error", !1)) {
1591
- g(!0);
1595
+ const v = $e(`${l}`, p);
1596
+ if (u(v, "error", !1)) {
1597
+ x(!0);
1592
1598
  return;
1593
1599
  }
1594
1600
  if (y === "auto" || y === "none") {
1595
1601
  k(`${i}${y}`);
1596
1602
  return;
1597
1603
  }
1598
- if (p(v, "value") === "")
1604
+ if (u(v, "value") === "")
1599
1605
  return;
1600
- const R = p(v, "unit") !== "" ? p(v, "unit") : y, K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${R === "-" ? "" : R}]`;
1606
+ const S = u(v, "unit") !== "" ? u(v, "unit") : y, K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1601
1607
  k(K);
1602
1608
  },
1603
- [k, s, i, u]
1609
+ [k, l, i, p]
1604
1610
  );
1605
1611
  return /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-start", children: c === "class" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1606
- /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: a }),
1612
+ /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: n }),
1607
1613
  /* @__PURE__ */ e.jsxs(W, { children: [
1608
- /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
1614
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1609
1615
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind preset class." })
1610
1616
  ] })
1611
1617
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: `group relative flex items-center ${D ? "z-auto" : ""}`, children: [
@@ -1622,9 +1628,9 @@ const el = (t) => {
1622
1628
  return;
1623
1629
  y.preventDefault(), P(!0);
1624
1630
  const v = vt(y.target.value);
1625
- let R = _e(v) ? 0 : v;
1626
- y.keyCode === 38 && (R += 1), y.keyCode === 40 && (R -= 1);
1627
- const E = `${R}`, it = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1631
+ let S = _e(v) ? 0 : v;
1632
+ y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
1633
+ const E = `${S}`, it = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1628
1634
  $(it);
1629
1635
  },
1630
1636
  onKeyUp: (y) => {
@@ -1632,36 +1638,36 @@ const el = (t) => {
1632
1638
  },
1633
1639
  onBlur: () => F(),
1634
1640
  onChange: (y) => {
1635
- g(!1), n(y.target.value);
1641
+ x(!1), o(y.target.value);
1636
1642
  },
1637
1643
  onClick: (y) => {
1638
1644
  var v;
1639
1645
  (v = y == null ? void 0 : y.target) == null || v.select(), r(!1);
1640
1646
  },
1641
- value: D ? f : s,
1647
+ value: D ? f : l,
1642
1648
  className: "h-6 w-14 rounded rounded-r-none bg-background pl-2 text-sm focus-visible:outline-0 ".concat(
1643
1649
  " ",
1644
1650
  h ? "border-red-500 text-red-500" : "border-foreground/20"
1645
1651
  )
1646
1652
  }
1647
1653
  ),
1648
- /* @__PURE__ */ e.jsxs(W, { open: l, delayDuration: 100, children: [
1654
+ /* @__PURE__ */ e.jsxs(W, { open: s, delayDuration: 100, children: [
1649
1655
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1650
1656
  "button",
1651
1657
  {
1652
1658
  type: "button",
1653
- onClick: () => r(!l),
1659
+ onClick: () => r(!s),
1654
1660
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1655
1661
  children: [
1656
- /* @__PURE__ */ e.jsx("span", { className: `inline-block ${u.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
1657
- u.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
1662
+ /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
1663
+ p.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
1658
1664
  ]
1659
1665
  }
1660
1666
  ) }),
1661
- /* @__PURE__ */ e.jsx(ur, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1662
- ll,
1667
+ /* @__PURE__ */ e.jsx(xr, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1668
+ ls,
1663
1669
  {
1664
- units: u,
1670
+ units: p,
1665
1671
  current: c,
1666
1672
  onSelect: (y) => {
1667
1673
  r(!1), m(y), oe(y);
@@ -1671,7 +1677,7 @@ const el = (t) => {
1671
1677
  ] })
1672
1678
  ] }),
1673
1679
  ["none", "auto"].indexOf(c) !== -1 || D ? null : /* @__PURE__ */ e.jsx(
1674
- rl,
1680
+ ss,
1675
1681
  {
1676
1682
  onDragStart: () => j(!0),
1677
1683
  onDragEnd: (y) => {
@@ -1687,17 +1693,17 @@ const el = (t) => {
1687
1693
  const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1688
1694
  $(E);
1689
1695
  },
1690
- currentValue: s,
1696
+ currentValue: l,
1691
1697
  unit: c,
1692
- negative: x,
1693
- cssProperty: o
1698
+ negative: g,
1699
+ cssProperty: a
1694
1700
  }
1695
1701
  )
1696
1702
  ] }) }) });
1697
- }, se = (t) => {
1698
- const l = xe();
1699
- return jt(l, { property: t });
1700
- }, ol = (t, l) => {
1703
+ }, le = (t) => {
1704
+ const s = xe();
1705
+ return jt(s, { property: t });
1706
+ }, ns = (t, s) => {
1701
1707
  const r = {
1702
1708
  xs: 0,
1703
1709
  sm: 1,
@@ -1706,8 +1712,8 @@ const el = (t) => {
1706
1712
  xl: 4,
1707
1713
  "2xl": 5
1708
1714
  };
1709
- return r[p(t, "mq", "xs")] <= r[l];
1710
- }, nl = {
1715
+ return r[u(t, "mq", "xs")] <= r[s];
1716
+ }, as = {
1711
1717
  width: "w-",
1712
1718
  height: "h-",
1713
1719
  minWidth: "min-w-",
@@ -1780,23 +1786,23 @@ const el = (t) => {
1780
1786
  lg: "1024px",
1781
1787
  xl: "1280px",
1782
1788
  "2xl": "1536px"
1783
- }, al = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1784
- const { type: l = "icons", label: r, property: s, onEmitChange: n = () => {
1785
- }, units: a, negative: d = !1 } = t, [i] = xr(), [o] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = N(() => p(x, "fullCls", ""), [x]), f = A(
1789
+ }, is = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1790
+ const { type: s = "icons", label: r, property: l, onEmitChange: o = () => {
1791
+ }, units: n, negative: d = !1 } = t, [i] = gr(), [a] = Qe(), [, p] = Be(), g = le(l), c = Ke(), m = qe(), [h] = Je(), x = N(() => u(g, "fullCls", ""), [g]), f = A(
1786
1792
  (k, $ = !0) => {
1787
- const F = { dark: i, mq: u, mod: o, cls: k, property: s, fullCls: "" };
1788
- (i || o !== "") && (F.mq = "xs");
1789
- const oe = Pr(F);
1793
+ const F = { dark: i, mq: p, mod: a, cls: k, property: l, fullCls: "" };
1794
+ (i || a !== "") && (F.mq = "xs");
1795
+ const oe = $r(F);
1790
1796
  c(h, [oe], $);
1791
1797
  },
1792
- [h, i, u, o, s, c]
1798
+ [h, i, p, a, l, c]
1793
1799
  ), T = A(() => {
1794
- m(h, [g]);
1795
- }, [h, g, m]), D = N(() => ol(x, u), [x, u]);
1800
+ m(h, [x]);
1801
+ }, [h, x, m]), D = N(() => ns(g, p), [g, p]);
1796
1802
  _(() => {
1797
- n(D, x);
1798
- }, [D, n, x]);
1799
- const [, , j] = He(), L = A(
1803
+ o(D, g);
1804
+ }, [D, o, g]);
1805
+ const [, , j] = Be(), L = A(
1800
1806
  (k) => {
1801
1807
  j({
1802
1808
  xs: 400,
@@ -1808,52 +1814,52 @@ const el = (t) => {
1808
1814
  }[k]);
1809
1815
  },
1810
1816
  [j]
1811
- ), P = p(x, "dark", null) === i && p(x, "mod", null) === o && p(x, "mq", null) === u;
1812
- return /* @__PURE__ */ e.jsx(Ur, { canChange: D, canReset: x && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1813
- /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x && !P ? "text-foreground" : ""}`, children: r }) }),
1817
+ ), P = u(g, "dark", null) === i && u(g, "mod", null) === a && u(g, "mq", null) === p;
1818
+ return /* @__PURE__ */ e.jsx(Gr, { canChange: D, canReset: g && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1819
+ /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${g && !P ? "text-foreground" : ""}`, children: r }) }),
1814
1820
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1815
1821
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1816
- l === "arbitrary" ? /* @__PURE__ */ e.jsx(
1817
- sl,
1822
+ s === "arbitrary" ? /* @__PURE__ */ e.jsx(
1823
+ os,
1818
1824
  {
1819
- currentClass: p(x, "cls", ""),
1820
- classPrefix: p(nl, s, ""),
1821
- units: a || [],
1825
+ currentClass: u(g, "cls", ""),
1826
+ classPrefix: u(as, l, ""),
1827
+ units: n || [],
1822
1828
  onChange: f,
1823
1829
  negative: d,
1824
- cssProperty: s
1830
+ cssProperty: l
1825
1831
  }
1826
1832
  ) : null,
1827
- l === "icons" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
1828
- l === "range" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
1829
- l === "color" && /* @__PURE__ */ e.jsx(Jr, { property: s, onChange: f }),
1830
- l === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: s, onChange: f })
1833
+ s === "icons" && /* @__PURE__ */ e.jsx(qr, { property: l, onChange: f }),
1834
+ s === "range" && /* @__PURE__ */ e.jsx(Kr, { property: l, onChange: f }),
1835
+ s === "color" && /* @__PURE__ */ e.jsx(Qr, { property: l, onChange: f }),
1836
+ s === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: l, onChange: f })
1831
1837
  ] }),
1832
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Et, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && x ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1838
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Et, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && g ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1833
1839
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1834
1840
  "button",
1835
1841
  {
1836
1842
  type: "button",
1837
1843
  className: "invisible ml-3 mt-1 rounded-full bg-blue-500 text-white group-hover:visible",
1838
- children: /* @__PURE__ */ e.jsx(ke, {})
1844
+ children: /* @__PURE__ */ e.jsx(Ne, {})
1839
1845
  }
1840
1846
  ) }),
1841
1847
  /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
1842
1848
  "Current style is set at  ",
1843
1849
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
1844
- al(p(x, "mq")),
1845
- i && !x.dark ? "(Light mode)" : ""
1850
+ is(u(g, "mq")),
1851
+ i && !g.dark ? "(Light mode)" : ""
1846
1852
  ] }),
1847
1853
  /* @__PURE__ */ e.jsx("br", {}),
1848
1854
  /* @__PURE__ */ e.jsxs(
1849
1855
  "button",
1850
1856
  {
1851
1857
  type: "button",
1852
- onClick: () => L(p(x, "mq")),
1858
+ onClick: () => L(u(g, "mq")),
1853
1859
  className: "block w-full cursor-default text-right font-semibold text-blue-500",
1854
1860
  children: [
1855
1861
  "Switch to ",
1856
- p(x, "mq").toUpperCase()
1862
+ u(g, "mq").toUpperCase()
1857
1863
  ]
1858
1864
  }
1859
1865
  )
@@ -1861,36 +1867,36 @@ const el = (t) => {
1861
1867
  ] }) : null })
1862
1868
  ] })
1863
1869
  ] }) });
1864
- }, il = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
1870
+ }, ds = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
1865
1871
  label: t,
1866
- options: l,
1872
+ options: s,
1867
1873
  borderB: r = !1,
1868
- borderT: s = !1,
1869
- type: n = "arbitrary",
1870
- units: a = il,
1874
+ borderT: l = !1,
1875
+ type: o = "arbitrary",
1876
+ units: n = ds,
1871
1877
  negative: d = !1
1872
1878
  }) => {
1873
- const [i, o] = w(l[0].key), u = xe(), x = A((c) => C(u, "property").includes(c), [u]);
1879
+ const [i, a] = w(s[0].key), p = xe(), g = A((c) => C(p, "property").includes(c), [p]);
1874
1880
  return /* @__PURE__ */ e.jsxs(
1875
1881
  "div",
1876
1882
  {
1877
- className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${s ? "border-t" : ""}`,
1883
+ className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${l ? "border-t" : ""}`,
1878
1884
  children: [
1879
1885
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
1880
1886
  t && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: t }),
1881
1887
  /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: I.Children.toArray(
1882
- l.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1888
+ s.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1883
1889
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1884
1890
  "button",
1885
1891
  {
1886
1892
  type: "button",
1887
- onClick: () => o(m),
1893
+ onClick: () => a(m),
1888
1894
  className: `relative cursor-pointer rounded-full p-1 text-[8px] ${m === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1889
1895
  children: [
1890
1896
  I.createElement("div", {
1891
- className: x(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1897
+ className: g(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1892
1898
  }),
1893
- I.createElement(p(st, m, Xe), { className: "text-inherit w-3 h-3" })
1899
+ I.createElement(u(lt, m, Xe), { className: "text-inherit w-3 h-3" })
1894
1900
  ]
1895
1901
  }
1896
1902
  ) }),
@@ -1901,8 +1907,8 @@ const el = (t) => {
1901
1907
  /* @__PURE__ */ e.jsx("div", { className: "mt-0 flex items-center", children: /* @__PURE__ */ e.jsx(
1902
1908
  Re,
1903
1909
  {
1904
- type: n,
1905
- units: [...a],
1910
+ type: o,
1911
+ units: [...n],
1906
1912
  label: "",
1907
1913
  property: i,
1908
1914
  negative: d
@@ -1911,73 +1917,73 @@ const el = (t) => {
1911
1917
  ]
1912
1918
  }
1913
1919
  );
1914
- }, dl = ({ heading: t, items: l }) => {
1915
- const r = xe(), s = N(() => {
1916
- const n = (i) => U(
1917
- i.map((o) => o.styleType === "multiple" ? C(o.options, "key") : o.property)
1918
- ), a = U(
1919
- l.map((i) => i.styleType === "accordion" ? n(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1920
+ }, cs = ({ heading: t, items: s }) => {
1921
+ const r = xe(), l = N(() => {
1922
+ const o = (i) => U(
1923
+ i.map((a) => a.styleType === "multiple" ? C(a.options, "key") : a.property)
1924
+ ), n = U(
1925
+ s.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1920
1926
  ), d = C(r, "property");
1921
- return Fe(a, d).length > 0;
1922
- }, [r, l]);
1927
+ return Fe(n, d).length > 0;
1928
+ }, [r, s]);
1923
1929
  return /* @__PURE__ */ e.jsxs("details", { children: [
1924
1930
  /* @__PURE__ */ e.jsx("summary", { className: "my-px cursor-default rounded-md bg-background p-px px-2 text-[11px] text-foreground", children: /* @__PURE__ */ e.jsxs("div", { className: "inline", children: [
1925
1931
  t,
1926
- s ? /* @__PURE__ */ e.jsx(
1932
+ l ? /* @__PURE__ */ e.jsx(
1927
1933
  "span",
1928
1934
  {
1929
- className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}`
1935
+ className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}`
1930
1936
  }
1931
1937
  ) : null
1932
1938
  ] }) }),
1933
- /* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((n) => n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label)) })
1939
+ /* @__PURE__ */ e.jsx("div", { className: "p-2", children: s.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Re, { ...o }, o.label)) })
1934
1940
  ] });
1935
- }, cl = Me({}), me = ({ section: t }) => {
1936
- const l = xe(), r = A(
1937
- (a = []) => {
1941
+ }, ps = Me({}), ye = ({ section: t }) => {
1942
+ const s = xe(), r = A(
1943
+ (n = []) => {
1938
1944
  const d = {};
1939
- for (let o = 0; o < l.length; o++)
1940
- d[l[o].property] = l[o].cls;
1945
+ for (let a = 0; a < s.length; a++)
1946
+ d[s[a].property] = s[a].cls;
1941
1947
  let i = !0;
1942
- for (const o in a)
1943
- if (!he(d, o) || d[o] !== a[o]) {
1948
+ for (const a in n)
1949
+ if (!he(d, a) || d[a] !== n[a]) {
1944
1950
  i = !1;
1945
1951
  break;
1946
1952
  }
1947
1953
  return i;
1948
1954
  },
1949
- [l]
1950
- ), s = N(() => {
1951
- if (l.length > 0 && t.heading === "Classes")
1955
+ [s]
1956
+ ), l = N(() => {
1957
+ if (s.length > 0 && t.heading === "Classes")
1952
1958
  return !0;
1953
- const a = (o) => U(
1954
- o.map((u) => u.styleType === "multiple" ? U(C(u.options, "key")) : u.property)
1959
+ const n = (a) => U(
1960
+ a.map((p) => p.styleType === "multiple" ? U(C(p.options, "key")) : p.property)
1955
1961
  ), d = U(
1956
- t.items.map((o) => o.styleType === "accordion" ? a(o.items) : o.styleType === "multiple" ? U(C(o.options, "key")) : o.property)
1957
- ), i = C(l, "property");
1962
+ t.items.map((a) => a.styleType === "accordion" ? n(a.items) : a.styleType === "multiple" ? U(C(a.options, "key")) : a.property)
1963
+ ), i = C(s, "property");
1958
1964
  return Fe(d, i).length > 0;
1959
- }, [l, t.heading, t.items]), n = N(() => ({}), []);
1960
- return /* @__PURE__ */ e.jsx(cl.Provider, { value: n, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1965
+ }, [s, t.heading, t.items]), o = N(() => ({}), []);
1966
+ return /* @__PURE__ */ e.jsx(ps.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1961
1967
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1962
- /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
1968
+ /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}` }),
1963
1969
  t.heading
1964
1970
  ] }) }),
1965
1971
  /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
1966
- t.items.map((a) => he(a, "component") ? I.createElement(a.component, { key: a.label }) : he(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(dl, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Re, { ...a }, a.label))
1972
+ t.items.map((n) => he(n, "component") ? I.createElement(n.component, { key: n.label }) : he(n, "styleType") ? n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : n.styleType === "accordion" && r(n == null ? void 0 : n.conditions) ? /* @__PURE__ */ e.jsx(cs, { ...n }, n.label) : null : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label))
1967
1973
  ) })
1968
1974
  ] }) });
1969
- }, pl = ({
1975
+ }, us = ({
1970
1976
  item: t,
1971
- index: l,
1977
+ index: s,
1972
1978
  canDelete: r,
1973
- onChange: s,
1974
- onRemove: n
1979
+ onChange: l,
1980
+ onRemove: o
1975
1981
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${r ? "border-b" : ""}`, children: [
1976
1982
  /* @__PURE__ */ e.jsx(
1977
1983
  "input",
1978
1984
  {
1979
1985
  name: "key",
1980
- onChange: (a) => s(a, l),
1986
+ onChange: (n) => l(n, s),
1981
1987
  value: t.key,
1982
1988
  placeholder: "Key",
1983
1989
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1990,7 +1996,7 @@ const el = (t) => {
1990
1996
  "input",
1991
1997
  {
1992
1998
  name: "value",
1993
- onChange: (a) => b(t.key) ? {} : s(a, l),
1999
+ onChange: (n) => b(t.key) ? {} : l(n, s),
1994
2000
  value: t.value,
1995
2001
  placeholder: "Value",
1996
2002
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -2001,74 +2007,74 @@ const el = (t) => {
2001
2007
  /* @__PURE__ */ e.jsx(
2002
2008
  _t,
2003
2009
  {
2004
- onClick: n,
2010
+ onClick: o,
2005
2011
  className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
2006
2012
  }
2007
2013
  )
2008
2014
  ] })
2009
- ] }), ul = ({ section: t }) => {
2015
+ ] }), xs = ({ section: t }) => {
2010
2016
  var m;
2011
- const { setSyncState: l } = gr(), r = G(), [s, n] = w([]), [a] = Ne(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
2017
+ const { setSyncState: s } = hr(), r = G(), [l, o] = w([]), [n] = Te(), d = Ue(), i = `${u(n, "0.prop")}_attrs`;
2012
2018
  ne.useEffect(() => {
2013
- const h = C(p(r, i), (g, f) => ({ key: f, value: g }));
2014
- b(h) ? n([]) : n(h);
2015
- }, [p(r, i)]);
2016
- const o = () => n([...s, { key: "", value: "" }]), u = (h) => {
2017
- const g = fe(s, (f, T) => h !== T);
2018
- c(g);
2019
- }, x = (h, g) => {
2020
- const f = [...s];
2021
- f[g][h.target.name] = h.target.value, c(f);
2019
+ const h = C(u(r, i), (x, f) => ({ key: f, value: x }));
2020
+ b(h) ? o([]) : o(h);
2021
+ }, [u(r, i)]);
2022
+ const a = () => o([...l, { key: "", value: "" }]), p = (h) => {
2023
+ const x = ve(l, (f, T) => h !== T);
2024
+ c(x);
2025
+ }, g = (h, x) => {
2026
+ const f = [...l];
2027
+ f[x][h.target.name] = h.target.value, c(f);
2022
2028
  }, c = ne.useCallback(
2023
2029
  (h = []) => {
2024
- const g = {};
2025
- we(h, (f) => {
2026
- b(f.key) || Ee(g, f.key, f.value);
2027
- }), d([p(r, "_id")], { [i]: g }), l("UNSAVED");
2030
+ const x = {};
2031
+ Ce(h, (f) => {
2032
+ b(f.key) || Ee(x, f.key, f.value);
2033
+ }), d([u(r, "_id")], { [i]: x }), s("UNSAVED");
2028
2034
  },
2029
- [r, l, d, i]
2035
+ [r, s, d, i]
2030
2036
  );
2031
2037
  return /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
2032
2038
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
2033
2039
  /* @__PURE__ */ e.jsx(
2034
2040
  "div",
2035
2041
  {
2036
- className: `h-[8px] w-[8px] rounded-full ${b(p(r, i)) ? "bg-gray-300" : "bg-blue-500"}`
2042
+ className: `h-[8px] w-[8px] rounded-full ${b(u(r, i)) ? "bg-gray-300" : "bg-blue-500"}`
2037
2043
  }
2038
2044
  ),
2039
2045
  "Attributes"
2040
2046
  ] }) }),
2041
2047
  /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: /* @__PURE__ */ e.jsxs("div", { className: "no-scrollbar flex min-h-max flex-col gap-y-2 overflow-y-auto bg-gray-100 p-px", children: [
2042
- /* @__PURE__ */ e.jsxs(Te, { className: "mt-2 flex w-full items-center justify-between", children: [
2048
+ /* @__PURE__ */ e.jsxs(Se, { className: "mt-2 flex w-full items-center justify-between", children: [
2043
2049
  "Add Custom attributes",
2044
2050
  /* @__PURE__ */ e.jsxs(
2045
2051
  "div",
2046
2052
  {
2047
- className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(s) && b((m = be(s)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
2053
+ className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(l) && b((m = fe(l)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
2048
2054
  onClick: () => {
2049
2055
  var h;
2050
- !b(s) && b((h = be(s)) == null ? void 0 : h.key) || o();
2056
+ !b(l) && b((h = fe(l)) == null ? void 0 : h.key) || a();
2051
2057
  },
2052
2058
  children: [
2053
- /* @__PURE__ */ e.jsx(Ce, { width: 12, height: 12 }),
2059
+ /* @__PURE__ */ e.jsx(ke, { width: 12, height: 12 }),
2054
2060
  " Add"
2055
2061
  ]
2056
2062
  }
2057
2063
  )
2058
2064
  ] }),
2059
2065
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
2060
- b(s) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2066
+ b(l) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2061
2067
  ne.Children.toArray(
2062
- C(s, (h, g) => {
2063
- const f = s.length > 0 && g < s.length - 1;
2068
+ C(l, (h, x) => {
2069
+ const f = l.length > 0 && x < l.length - 1;
2064
2070
  return /* @__PURE__ */ e.jsx(
2065
- pl,
2071
+ us,
2066
2072
  {
2067
2073
  item: h,
2068
- index: g,
2074
+ index: x,
2069
2075
  canDelete: f,
2070
- onChange: x,
2071
- onRemove: () => u(g)
2076
+ onChange: g,
2077
+ onRemove: () => p(x)
2072
2078
  }
2073
2079
  );
2074
2080
  })
@@ -2077,11 +2083,11 @@ const el = (t) => {
2077
2083
  ] }) })
2078
2084
  ] });
2079
2085
  };
2080
- function xl() {
2081
- const [t, l] = Qe(), { flexChild: r, gridChild: s } = hr(), [, n] = Br(mr), { t: a } = Ye(), [d] = Ne();
2086
+ function gs() {
2087
+ const [t, s] = Qe(), { flexChild: r, gridChild: l } = mr(), [, o] = Ar(yr), { t: n } = Ye(), [d] = Te();
2082
2088
  return b(d) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2083
2089
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2084
- /* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
2090
+ /* @__PURE__ */ e.jsx("h1", { children: n("no_styling_block_selected") }),
2085
2091
  /* @__PURE__ */ e.jsxs("p", { className: "text-xs ", children: [
2086
2092
  "Hint: Styling allowed blocks are highlighted with",
2087
2093
  " ",
@@ -2090,12 +2096,12 @@ function xl() {
2090
2096
  ] })
2091
2097
  ] }) }) : (
2092
2098
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2093
- /* @__PURE__ */ e.jsxs("div", { onClick: () => n(!1), className: "flex h-full flex-col", children: [
2099
+ /* @__PURE__ */ e.jsxs("div", { onClick: () => o(!1), className: "flex h-full flex-col", children: [
2094
2100
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-x-4 space-y-3 border-b border-border px-4 py-2", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-1.5", children: [
2095
- /* @__PURE__ */ e.jsx(Te, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2096
- /* @__PURE__ */ e.jsxs(yr, { defaultValue: t, onValueChange: (i) => l(i), children: [
2097
- /* @__PURE__ */ e.jsx(br, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(fr, { placeholder: "State" }) }),
2098
- /* @__PURE__ */ e.jsxs(vr, { children: [
2101
+ /* @__PURE__ */ e.jsx(Se, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2102
+ /* @__PURE__ */ e.jsxs(br, { defaultValue: t, onValueChange: (i) => s(i), children: [
2103
+ /* @__PURE__ */ e.jsx(fr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(vr, { placeholder: "State" }) }),
2104
+ /* @__PURE__ */ e.jsxs(jr, { children: [
2099
2105
  /* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
2100
2106
  /* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
2101
2107
  /* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
@@ -2111,19 +2117,19 @@ function xl() {
2111
2117
  ] })
2112
2118
  ] })
2113
2119
  ] }) }),
2114
- /* @__PURE__ */ e.jsxs(jr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2120
+ /* @__PURE__ */ e.jsxs(wr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2115
2121
  /* @__PURE__ */ e.jsxs(Ge, { defaultValue: ["Layout"], type: "multiple", className: "h-full w-full", children: [
2116
- r && /* @__PURE__ */ e.jsx(me, { section: Xr }),
2117
- s ? /* @__PURE__ */ e.jsx(me, { section: Zr }) : null,
2118
- zr.map((i) => /* @__PURE__ */ e.jsx(me, { section: i }, i.heading)),
2119
- /* @__PURE__ */ e.jsx(ul, { section: { heading: "Attributes" } })
2122
+ r && /* @__PURE__ */ e.jsx(ye, { section: Zr }),
2123
+ l ? /* @__PURE__ */ e.jsx(ye, { section: zr }) : null,
2124
+ Ur.map((i) => /* @__PURE__ */ e.jsx(ye, { section: i }, i.heading)),
2125
+ /* @__PURE__ */ e.jsx(xs, { section: { heading: "Attributes" } })
2120
2126
  ] }),
2121
2127
  /* @__PURE__ */ e.jsx("div", { className: "h-60" })
2122
2128
  ] })
2123
2129
  ] })
2124
2130
  );
2125
2131
  }
2126
- const gl = {
2132
+ const hs = {
2127
2133
  px: 1,
2128
2134
  "%": 1,
2129
2135
  em: 100,
@@ -2134,32 +2140,32 @@ const gl = {
2134
2140
  "-": 1,
2135
2141
  deg: 1,
2136
2142
  ms: 0.1
2137
- }, ks = () => {
2138
- const t = G(), { t: l } = Ye(), [r, s] = I.useState(""), [n, a] = I.useState({
2139
- onDrag: (o) => o,
2140
- onDragEnd: (o) => o,
2143
+ }, Nl = () => {
2144
+ const t = G(), { t: s } = Ye(), [r, l] = I.useState(""), [o, n] = I.useState({
2145
+ onDrag: (a) => a,
2146
+ onDragEnd: (a) => a,
2141
2147
  dragStartY: 0,
2142
2148
  dragging: !1,
2143
2149
  dragStartValue: 0,
2144
2150
  dragUnit: "",
2145
2151
  negative: !1,
2146
2152
  cssProperty: ""
2147
- }), d = ye(
2148
- (o) => {
2149
- const u = !p(n, "negative", !1), x = p(n, "cssProperty", "");
2150
- let c = parseFloat(n.dragStartValue);
2153
+ }), d = be(
2154
+ (a) => {
2155
+ const p = !u(o, "negative", !1), g = u(o, "cssProperty", "");
2156
+ let c = parseFloat(o.dragStartValue);
2151
2157
  c = _e(c) ? 0 : c;
2152
- let m = gl[n.dragUnit];
2153
- (z(x, "scale") || x === "opacity") && (m = 10);
2154
- let g = (n.dragStartY - o.pageY) / m + c;
2155
- u && g < 0 && (g = 0), x === "opacity" && g > 1 && (g = 1), n.onDrag(`${g}`), s(`${g}`);
2158
+ let m = hs[o.dragUnit];
2159
+ (z(g, "scale") || g === "opacity") && (m = 10);
2160
+ let x = (o.dragStartY - a.pageY) / m + c;
2161
+ p && x < 0 && (x = 0), g === "opacity" && x > 1 && (x = 1), o.onDrag(`${x}`), l(`${x}`);
2156
2162
  },
2157
- [n],
2163
+ [o],
2158
2164
  50
2159
2165
  ), i = A(() => {
2160
- setTimeout(() => n.onDragEnd(`${r}`), 100), a({
2161
- onDrag: (o) => o,
2162
- onDragEnd: (o) => o,
2166
+ setTimeout(() => o.onDragEnd(`${r}`), 100), n({
2167
+ onDrag: (a) => a,
2168
+ onDragEnd: (a) => a,
2163
2169
  dragStartY: 0,
2164
2170
  dragging: !1,
2165
2171
  dragStartValue: 0,
@@ -2167,12 +2173,12 @@ const gl = {
2167
2173
  negative: !1,
2168
2174
  cssProperty: ""
2169
2175
  });
2170
- }, [n, r, a]);
2176
+ }, [o, r, n]);
2171
2177
  return wt(t) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2172
2178
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2173
- /* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
2174
- ] }) }) : /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: a }, children: [
2175
- n.dragging ? /* @__PURE__ */ e.jsx(
2179
+ /* @__PURE__ */ e.jsx("h1", { children: s("no_block_selected_for_styling") })
2180
+ ] }) }) : /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: n }, children: [
2181
+ o.dragging ? /* @__PURE__ */ e.jsx(
2176
2182
  "div",
2177
2183
  {
2178
2184
  onMouseMove: d,
@@ -2180,23 +2186,23 @@ const gl = {
2180
2186
  className: "absolute inset-0 z-30 cursor-row-resize bg-gray-300/10 "
2181
2187
  }
2182
2188
  ) : null,
2183
- /* @__PURE__ */ e.jsxs(wr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2184
- /* @__PURE__ */ e.jsxs(Cr, { className: "mx-1 grid grid-cols-2", children: [
2185
- /* @__PURE__ */ e.jsx(Be, { value: "settings", children: "Settings" }),
2186
- /* @__PURE__ */ e.jsx(Be, { value: "styling", children: "Styling" })
2189
+ /* @__PURE__ */ e.jsxs(Cr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2190
+ /* @__PURE__ */ e.jsxs(kr, { className: "mx-1 grid grid-cols-2", children: [
2191
+ /* @__PURE__ */ e.jsx(Ae, { value: "settings", children: "Settings" }),
2192
+ /* @__PURE__ */ e.jsx(Ae, { value: "styling", children: "Styling" })
2187
2193
  ] }),
2188
2194
  /* @__PURE__ */ e.jsx(
2189
- Ae,
2195
+ De,
2190
2196
  {
2191
2197
  value: "settings",
2192
2198
  className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
2193
- children: /* @__PURE__ */ e.jsx(Yr, {})
2199
+ children: /* @__PURE__ */ e.jsx(Wr, {})
2194
2200
  }
2195
2201
  ),
2196
- /* @__PURE__ */ e.jsx(Ae, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(xl, {}) })
2202
+ /* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(gs, {}) })
2197
2203
  ] })
2198
2204
  ] }) });
2199
2205
  };
2200
2206
  export {
2201
- ks as default
2207
+ Nl as default
2202
2208
  };