@chaibuilder/sdk 0.1.22 → 0.1.24

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 (52) hide show
  1. package/dist/{AddBlocks-254892c5.js → AddBlocks-5818ee33.js} +13 -14
  2. package/dist/AddBlocks-97c464e1.cjs +3 -0
  3. package/dist/{BrandingOptions-81fb41d9.js → BrandingOptions-3095a1ac.js} +1 -1
  4. package/dist/{BrandingOptions-10c05f85.cjs → BrandingOptions-a4de85eb.cjs} +1 -1
  5. package/dist/{CanvasArea-a261378b.cjs → CanvasArea-45062968.cjs} +2 -2
  6. package/dist/{CanvasArea-7e09f98e.js → CanvasArea-a6706381.js} +2 -2
  7. package/dist/{CurrentPage-b67bee36.cjs → CurrentPage-181bbdc0.cjs} +1 -1
  8. package/dist/{CurrentPage-ce5a51fa.js → CurrentPage-36e1f888.js} +1 -1
  9. package/dist/{Layers-b3a452cc.js → Layers-066e5450.js} +2 -2
  10. package/dist/{Layers-4e859d15.cjs → Layers-884713c8.cjs} +1 -1
  11. package/dist/{MarkAsGlobalBlock-1a1039f8.cjs → MarkAsGlobalBlock-3336e964.cjs} +1 -1
  12. package/dist/{MarkAsGlobalBlock-7d9f5e11.js → MarkAsGlobalBlock-dc93e527.js} +1 -1
  13. package/dist/{PagesPanel-163b7771.cjs → PagesPanel-574a0a87.cjs} +1 -1
  14. package/dist/{PagesPanel-2559ea9e.js → PagesPanel-dba3d5fa.js} +2 -2
  15. package/dist/{ProjectPanel-e78931cd.cjs → ProjectPanel-a737a211.cjs} +1 -1
  16. package/dist/{ProjectPanel-fab32a4f.js → ProjectPanel-b7c44110.js} +2 -2
  17. package/dist/Settings-7d129d30.cjs +1 -0
  18. package/dist/{Settings-a2638a6e.js → Settings-a3117310.js} +584 -579
  19. package/dist/SidePanels-b4ba0640.cjs +1 -0
  20. package/dist/SidePanels-ffe30d1c.js +329 -0
  21. package/dist/{Topbar-ef648e78.js → Topbar-4e04e218.js} +1 -1
  22. package/dist/{Topbar-c131ef83.cjs → Topbar-836552a6.cjs} +1 -1
  23. package/dist/{add-page-modal-7d645bf7.cjs → add-page-modal-217f08a5.cjs} +1 -1
  24. package/dist/{add-page-modal-8c9dad17.js → add-page-modal-41831178.js} +1 -1
  25. package/dist/core.cjs +1 -1
  26. package/dist/core.js +1 -1
  27. package/dist/{delete-page-modal-ec091c19.js → delete-page-modal-9c81fd1f.js} +1 -1
  28. package/dist/{delete-page-modal-19001f8d.cjs → delete-page-modal-a58fb14e.cjs} +1 -1
  29. package/dist/{index-e6e838ec.js → index-088a9534.js} +6 -6
  30. package/dist/{index-2f61b040.cjs → index-e2dad9ec.cjs} +18 -18
  31. package/dist/{page-viewer-dec9a6d2.js → page-viewer-6a9db9cc.js} +2 -2
  32. package/dist/{page-viewer-65e2ca1a.cjs → page-viewer-ff2173dd.cjs} +1 -1
  33. package/dist/{project-general-setting-c7d95cc0.cjs → project-general-setting-695a14fa.cjs} +1 -1
  34. package/dist/{project-general-setting-067afe22.js → project-general-setting-d0cb6eca.js} +1 -1
  35. package/dist/render.cjs +1 -1
  36. package/dist/render.d.ts +2 -4
  37. package/dist/render.js +59 -67
  38. package/dist/{single-page-detail-f110be66.js → single-page-detail-ac77d6d0.js} +2 -2
  39. package/dist/{single-page-detail-14e7a650.cjs → single-page-detail-f54b60af.cjs} +1 -1
  40. package/dist/textarea-0750bcd2.js +73 -0
  41. package/dist/textarea-a338ede6.cjs +1 -0
  42. package/dist/ui.cjs +1 -1
  43. package/dist/ui.js +72 -73
  44. package/package.json +3 -3
  45. package/dist/AddBlocks-a86eec32.cjs +0 -3
  46. package/dist/Settings-d9df3548.cjs +0 -1
  47. package/dist/SidePanels-1439e695.cjs +0 -1
  48. package/dist/SidePanels-aa583e71.js +0 -242
  49. package/dist/card-14e1d020.cjs +0 -1
  50. package/dist/card-f8f4f985.js +0 -33
  51. package/dist/textarea-20b2f6b2.cjs +0 -1
  52. package/dist/textarea-9dfb6a32.js +0 -45
@@ -1,29 +1,29 @@
1
1
  import { j as e } from "./jsx-runtime-944c88e2.js";
2
2
  import * as se from "react";
3
- import $, { useState as k, useEffect as M, useMemo as T, useCallback as I, createContext as Le, useContext as ee } from "react";
3
+ import P, { useState as k, useEffect as M, useMemo as R, useCallback as L, createContext as Pe, useContext as ee } from "react";
4
4
  import { useThrottledCallback as xe } from "@react-hookz/web";
5
- import { map as C, isEmpty as b, last as he, forEach as fe, set as Pe, startCase as Q, filter as Oe, get as g, isArray as ye, omit as at, includes as O, toLower as ne, first as be, split as Ne, truncate as it, keys as dt, cloneDeep as ct, each as pt, capitalize as ut, reject as gt, nth as Se, startsWith as Z, isNumber as xt, parseInt as ht, isNaN as Me, findLast as yt, has as ue, flatten as z, intersection as _e, isNull as mt } from "lodash";
5
+ import { map as N, isEmpty as b, last as he, forEach as be, set as Le, startCase as Q, filter as Oe, get as u, isArray as me, omit as at, includes as O, toLower as ne, first as fe, split as Ne, truncate as it, keys as dt, cloneDeep as ct, each as pt, capitalize as ut, reject as gt, nth as Se, startsWith as Z, isNumber as xt, parseInt as ht, isNaN as Me, findLast as mt, has as ue, flatten as z, intersection as _e, isNull as yt } from "lodash";
6
6
  import { useTranslation as Ee } from "react-i18next";
7
- import { PlusIcon as ve, Cross2Icon as Fe, EyeOpenIcon as ft, EyeClosedIcon as Te, BorderAllIcon as _, WidthIcon as V, HeightIcon as H, ArrowUpIcon as G, ArrowRightIcon as K, ArrowDownIcon as q, ArrowLeftIcon as J, ArrowTopLeftIcon as bt, ArrowTopRightIcon as vt, ArrowBottomRightIcon as wt, ArrowBottomLeftIcon as jt, AlignLeftIcon as Ct, AlignCenterHorizontallyIcon as kt, AlignRightIcon as Nt, StretchHorizontallyIcon as St, FontItalicIcon as Tt, UnderlineIcon as Rt, OverlineIcon as Vt, LetterCaseUppercaseIcon as Ht, Cross1Icon as Bt, InfoCircledIcon as we, MinusIcon as At, BoxIcon as Xe, TriangleDownIcon as Dt, RowSpacingIcon as $t, TrashIcon as Ye, MixerHorizontalIcon as We } from "@radix-ui/react-icons";
8
- import { T as It, a as Lt, b as Re, c as Ve } from "./tabs-85caa1e8.js";
9
- import Pt from "@rjsf/core";
7
+ import { PlusIcon as ve, Cross2Icon as Fe, EyeOpenIcon as bt, EyeClosedIcon as Te, BorderAllIcon as E, WidthIcon as H, HeightIcon as V, ArrowUpIcon as G, ArrowRightIcon as K, ArrowDownIcon as q, ArrowLeftIcon as J, ArrowTopLeftIcon as ft, ArrowTopRightIcon as vt, ArrowBottomRightIcon as wt, ArrowBottomLeftIcon as jt, AlignLeftIcon as Ct, AlignCenterHorizontallyIcon as kt, AlignRightIcon as Nt, StretchHorizontallyIcon as St, FontItalicIcon as Tt, UnderlineIcon as Rt, OverlineIcon as Ht, LetterCaseUppercaseIcon as Vt, Cross1Icon as Bt, InfoCircledIcon as we, MinusIcon as At, BoxIcon as Ye, TriangleDownIcon as Dt, RowSpacingIcon as $t, TrashIcon as Xe, MixerHorizontalIcon as We } from "@radix-ui/react-icons";
8
+ import { T as It, a as Pt, b as Re, c as He } from "./tabs-85caa1e8.js";
9
+ import Lt from "@rjsf/core";
10
10
  import Ot from "@rjsf/validator-ajv8";
11
- import { D as te, d as Ze, G as ze, H as Mt, I as _t, J as Et, j as je, K as Ue, L as Ge, i as Ke, e as Ft, M as qe, f as He, N as ce, c as Xt, O as Yt, P as Wt } from "./index-e6e838ec.js";
12
- import { getBlockComponent as Je, SingleLineText as Zt } from "@chaibuilder/blocks";
13
- import { TrashIcon as zt, ChevronRight as Ut } from "lucide-react";
11
+ import { D as te, d as Ze, G as ze, H as Mt, I as _t, J as Et, j as je, K as Ue, L as Ge, i as Ke, e as Ft, M as qe, f as Ve, N as ce, c as Yt, O as Xt, P as Wt } from "./index-088a9534.js";
12
+ import { getChaiDataProviders as Zt, getBlockComponent as Je, SingleLineText as zt } from "@chaibuilder/blocks";
13
+ import { TrashIcon as Ut, ChevronRight as Gt } from "lucide-react";
14
14
  import Qe from "react-autosuggest";
15
- import { u as Gt } from "./useChaiExternalData-192c7896.js";
16
- import { d as X, e as Y, f as W, B as et, g as Kt } from "./useBuilderProp-81a14920.js";
15
+ import { u as Kt } from "./useChaiExternalData-192c7896.js";
16
+ import { d as Y, e as X, f as W, B as et, g as qt } from "./useBuilderProp-81a14920.js";
17
17
  import { A as tt, a as ae, b as ie, c as de } from "./accordion-c0176dc5.js";
18
- import { R as qt, I as Jt, a as Qt, L as er } from "./link-2af5de8b.js";
19
- import { useAtom as tr } from "jotai";
20
- import rr from "fuse.js";
21
- import { A as lr, C as pe, d as or } from "./html-to-json-45e0e3b5.js";
18
+ import { R as Jt, I as Qt, a as er, L as tr } from "./link-2af5de8b.js";
19
+ import { useAtom as rr } from "jotai";
20
+ import lr from "fuse.js";
21
+ import { A as or, C as pe, d as sr } from "./html-to-json-45e0e3b5.js";
22
22
  import { L as Ce } from "./label-e770a087.js";
23
- import { S as sr } from "./MODIFIERS-2f19c314.js";
24
- import { I as nr } from "./input-a0ea2bc7.js";
25
- import { S as ar } from "./scroll-area-83bd9e8f.js";
26
- import { S as ir, c as dr, b as cr, d as pr, f as A } from "./select-7fddd7c3.js";
23
+ import { S as nr } from "./MODIFIERS-2f19c314.js";
24
+ import { I as ar } from "./input-a0ea2bc7.js";
25
+ import { S as ir } from "./scroll-area-83bd9e8f.js";
26
+ import { S as dr, c as cr, b as pr, d as ur, f as A } from "./select-7fddd7c3.js";
27
27
  import "@radix-ui/react-tabs";
28
28
  import "./utils-ac68b2c8.js";
29
29
  import "clsx";
@@ -52,90 +52,91 @@ import "react-quill";
52
52
  import "himalaya";
53
53
  import "@radix-ui/react-label";
54
54
  import "@radix-ui/react-select";
55
- function ur(r) {
56
- const s = [], t = {};
57
- function n(l, a) {
58
- fe(a, (d, i) => {
59
- const o = l ? `${l}.${i}` : i, p = ye(d) ? "list" : typeof d;
60
- s.push(o), t[o] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ye(d) && n(o, d);
55
+ function gr(r) {
56
+ const o = [], t = {};
57
+ function a(l, s) {
58
+ be(s, (d, i) => {
59
+ const n = l ? `${l}.${i}` : i, p = me(d) ? "list" : typeof d;
60
+ o.push(n), t[n] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !me(d) && a(n, d);
61
61
  });
62
62
  }
63
- return n("", at(r, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: s, pathsType: t };
63
+ return a("", at(r, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: o, pathsType: t };
64
64
  }
65
- const gr = ({ data: r }) => {
65
+ const xr = ({ data: r }) => {
66
66
  if (!r)
67
67
  return null;
68
- const s = typeof r;
69
- return /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: it(s === "object" ? JSON.stringify(r) : r, { length: 40 }) });
68
+ const o = typeof r;
69
+ return /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: it(o === "object" ? JSON.stringify(r) : r, { length: 40 }) });
70
70
  }, Be = ({
71
71
  type: r,
72
- isDisabled: s = !1,
72
+ isDisabled: o = !1,
73
73
  placeholder: t,
74
- defaultValue: n = "",
74
+ defaultValue: a = "",
75
75
  data: l,
76
- onChange: a,
76
+ onChange: s,
77
77
  dataType: d,
78
78
  appliedBindings: i
79
79
  }) => {
80
- const [o, p] = k(n), { paths: u, pathsType: c } = ur(l), y = r === "PROP" ? Je(l == null ? void 0 : l._type) : {};
80
+ const [n, p] = k(!1), [c, h] = k(a), { paths: g, pathsType: y } = gr(l), x = r === "PROP" ? Je(l == null ? void 0 : l._type) : {};
81
81
  M(() => {
82
- b(o) && a("");
83
- }, [o]), M(() => p(n), [n]);
84
- const x = () => u.filter((f) => {
85
- const j = b(o) || O(ne(f), ne(o));
86
- return r === "PATH" ? j && d === g(c, f, "") : j && !O(i, f) && g(y, `props.${be(Ne(f, "."))}.binding`);
87
- }), [m, v] = k(() => x());
88
- M(() => v(() => x()), [d]);
89
- const L = {
82
+ b(c) && s("");
83
+ }, [c]), M(() => h(a), [a]);
84
+ const f = () => g.filter((v) => {
85
+ const C = b(c) || O(ne(v), ne(c));
86
+ return r === "PATH" ? C && d === u(y, v, "") : C && !O(i, v) && u(x, `props.${fe(Ne(v, "."))}.binding`);
87
+ }), [$, S] = k(() => f());
88
+ M(() => S(() => f()), [d]);
89
+ const j = r === "PATH" && b($) && n && !b(d), I = {
90
90
  autoComplete: "off",
91
91
  autoCorrect: "on",
92
92
  autoCapitalize: "off",
93
93
  spellCheck: !1,
94
- placeholder: t,
95
- value: o,
96
- disabled: s,
94
+ placeholder: j ? "No available options" : t,
95
+ value: c,
96
+ disabled: o,
97
+ onFocus: () => p(r === "PATH"),
97
98
  onBlur: () => {
98
- u.includes(o) ? a(o) : (p(""), a(""));
99
+ p(!1), g.includes(c) ? s(c) : (h(""), s(""));
99
100
  },
100
- onChange: (f, { newValue: j }) => p(j),
101
- className: `chai-input w-full ${s ? "cursor-not-allowed" : ""}`
102
- }, R = (f) => /* @__PURE__ */ e.jsxs(
101
+ onChange: (v, { newValue: C }) => h(j ? "" : C),
102
+ className: `chai-input w-full ${o ? "cursor-not-allowed" : ""} ${j ? "placeholder-red-400" : ""}`
103
+ }, B = (v) => /* @__PURE__ */ e.jsxs(
103
104
  "div",
104
105
  {
105
106
  className: "rounded-md px-1 py-1.5 flex items-center justify-between space-x-2 font-light relative",
106
- "data-suggest": f,
107
+ "data-suggest": v,
107
108
  children: [
108
- /* @__PURE__ */ e.jsx("div", { className: "-mt-1 w-full h-full absolute opacity-0 z-20", children: f }),
109
+ /* @__PURE__ */ e.jsx("div", { className: "-mt-1 w-full h-full absolute opacity-0 z-20", children: v }),
109
110
  /* @__PURE__ */ e.jsxs("div", { className: "w-full", children: [
110
- /* @__PURE__ */ e.jsx("div", { className: "leading-4 text-xs flex items-center text-gray-800", children: $.Children.toArray(
111
- C(Ne(f, "."), (j, B) => /* @__PURE__ */ e.jsxs("span", { className: "flex items-end", children: [
112
- B > 0 && /* @__PURE__ */ e.jsx(Ut, { size: 14, className: "h-full text-gray-400" }),
113
- Q(j)
111
+ /* @__PURE__ */ e.jsx("div", { className: "leading-4 text-xs flex items-center text-gray-800", children: P.Children.toArray(
112
+ N(Ne(v, "."), (C, _) => /* @__PURE__ */ e.jsxs("span", { className: "flex items-end", children: [
113
+ _ > 0 && /* @__PURE__ */ e.jsx(Gt, { size: 14, className: "h-full text-gray-400" }),
114
+ Q(C)
114
115
  ] }))
115
116
  ) }),
116
- r === "PATH" && /* @__PURE__ */ e.jsx(gr, { data: g(l, f) })
117
+ r === "PATH" && /* @__PURE__ */ e.jsx(xr, { data: u(l, v) })
117
118
  ] }),
118
- r === "PROP" && /* @__PURE__ */ e.jsx("div", { className: "bg-purple-100 text-purple-400 text-[9px] flex items-center font-medium h-4 px-2 rounded-full", children: Q(g(c, f, "")) })
119
+ r === "PROP" && /* @__PURE__ */ e.jsx("div", { className: "bg-purple-100 text-purple-400 text-[9px] flex items-center font-medium h-4 px-2 rounded-full", children: Q(u(y, v, "")) })
119
120
  ]
120
121
  }
121
122
  );
122
123
  return /* @__PURE__ */ e.jsx(
123
124
  Qe,
124
125
  {
125
- suggestions: m,
126
- onSuggestionsFetchRequested: () => v(() => x()),
127
- onSuggestionsClearRequested: () => v([]),
128
- onSuggestionSelected: (f) => {
129
- if (f.type === "click") {
130
- const j = g(f.target, "childNodes[0].data", "");
131
- u.includes(j) && a(j);
126
+ suggestions: $,
127
+ onSuggestionsFetchRequested: () => S(() => f()),
128
+ onSuggestionsClearRequested: () => S([]),
129
+ onSuggestionSelected: (v) => {
130
+ if (v.type === "click") {
131
+ const C = u(v.target, "childNodes[0].data", "");
132
+ g.includes(C) && s(C);
132
133
  } else
133
- a(f.target.value);
134
+ s(v.target.value);
134
135
  },
135
- getSuggestionValue: (f) => f,
136
- renderSuggestion: R,
136
+ getSuggestionValue: (v) => v,
137
+ renderSuggestion: B,
137
138
  shouldRenderSuggestions: () => !0,
138
- inputProps: L,
139
+ inputProps: I,
139
140
  containerProps: { className: "w-full" },
140
141
  theme: {
141
142
  suggestion: "text-gray-500 border-b overflow-hidden text-ellipsis",
@@ -144,26 +145,26 @@ const gr = ({ data: r }) => {
144
145
  }
145
146
  }
146
147
  );
147
- }, xr = ({
148
+ }, hr = ({
148
149
  item: r,
149
- onChange: s,
150
+ onChange: o,
150
151
  onRemove: t,
151
- selectedBlock: n,
152
+ selectedBlock: a,
152
153
  dataProvider: l,
153
- appliedBindings: a
154
+ appliedBindings: s
154
155
  }) => {
155
- const [d, i] = k("string"), o = (p, u) => {
156
+ const [d, i] = k("string"), n = (p, c) => {
156
157
  if (b(p))
157
158
  return "";
158
159
  {
159
- const c = g(u === "PROP" ? n : l, p, "");
160
- if (ye(c))
160
+ const h = u(c === "PROP" ? a : l, p, "");
161
+ if (me(h))
161
162
  return "list";
162
- const y = typeof c;
163
- return y === "string" ? "text" : y === "object" ? "model" : y;
163
+ const g = typeof h;
164
+ return g === "string" ? "text" : g === "object" ? "model" : g;
164
165
  }
165
166
  };
166
- return M(() => i(() => o(r.key, "PROP")), [r.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 border border-gray-200 relative rounded-md p-2", children: [
167
+ return M(() => i(() => n(r.key, "PROP")), [r.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 border border-gray-200 relative rounded-md p-2", children: [
167
168
  !b(d) && !b(r.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-2 top-4 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: Q(d) }),
168
169
  /* @__PURE__ */ e.jsx(
169
170
  Be,
@@ -173,12 +174,12 @@ const gr = ({ data: r }) => {
173
174
  placeholder: "Enter prop key",
174
175
  defaultValue: r.key,
175
176
  onChange: (p) => {
176
- const u = o(p, "PROP");
177
- s({ target: { name: "key", value: p } }), d !== u && s({ target: { name: "value", value: "" } }), i(u);
177
+ const c = n(p, "PROP");
178
+ o({ target: { name: "key", value: p } }), d !== c && o({ target: { name: "value", value: "" } }), i(c);
178
179
  },
179
- data: n,
180
+ data: a,
180
181
  dataType: d,
181
- appliedBindings: a
182
+ appliedBindings: s
182
183
  }
183
184
  ),
184
185
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between gap-x-1.5 w-full relative", children: [
@@ -190,16 +191,16 @@ const gr = ({ data: r }) => {
190
191
  placeholder: "Enter data path",
191
192
  defaultValue: r.value,
192
193
  onChange: (p) => {
193
- const u = o(p, "PATH");
194
- s(d !== u ? { target: { name: "value", value: "" } } : { target: { name: "value", value: p } });
194
+ const c = n(p, "PATH");
195
+ o(d !== c ? { target: { name: "value", value: "" } } : { target: { name: "value", value: p } });
195
196
  },
196
197
  data: l,
197
198
  dataType: d,
198
- appliedBindings: a
199
+ appliedBindings: s
199
200
  }
200
201
  ),
201
202
  /* @__PURE__ */ e.jsx(
202
- zt,
203
+ Ut,
203
204
  {
204
205
  onClick: t,
205
206
  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"
@@ -207,87 +208,91 @@ const gr = ({ data: r }) => {
207
208
  )
208
209
  ] })
209
210
  ] });
210
- }, hr = ({ bindingData: r, onChange: s }) => {
211
- const t = te(), [n] = Gt(), [l, a] = k(C(r, (c, y) => ({ key: y, value: c })));
211
+ }, mr = ({ bindingData: r, onChange: o }) => {
212
+ const t = te(), [a] = Kt(), l = Zt(), [s, d] = k(N(r, (g, y) => ({ key: y, value: g })));
212
213
  M(() => {
213
- a(C(r, (c, y) => ({ key: y, value: c })));
214
+ d(N(r, (g, y) => ({ key: y, value: g })));
214
215
  }, [t == null ? void 0 : t._id]);
215
- const d = T(() => {
216
- if (b(l))
216
+ const i = R(() => {
217
+ if (b(s))
217
218
  return !1;
218
- const c = he(l);
219
- return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
220
- }, [l]), i = () => {
221
- a([...l, { key: "", value: "" }]);
222
- }, o = (c) => {
223
- const y = Oe(l, (x, m) => c !== m);
224
- u([...y]);
225
- }, p = (c, y) => {
226
- const x = [...l];
227
- x[y][c.target.name] = c.target.value, u(x);
228
- }, u = I(
229
- (c = []) => {
230
- if (a(c), b(c)) {
231
- s({});
219
+ const g = he(s);
220
+ return b(g == null ? void 0 : g.key) || b(g == null ? void 0 : g.value);
221
+ }, [s]), n = () => {
222
+ d([...s, { key: "", value: "" }]);
223
+ }, p = (g) => {
224
+ const y = Oe(s, (x, f) => g !== f);
225
+ h([...y]);
226
+ }, c = (g, y) => {
227
+ const x = [...s];
228
+ x[y][g.target.name] = g.target.value, h(x);
229
+ }, h = L(
230
+ (g = []) => {
231
+ if (d(g), b(g)) {
232
+ o({});
232
233
  return;
233
234
  }
234
235
  const y = {};
235
- fe(c, (x) => {
236
- !b(x == null ? void 0 : x.key) && !b(x == null ? void 0 : x.value) && Pe(y, x.key, x.value);
237
- }), s(y);
236
+ be(g, (x) => {
237
+ !b(x == null ? void 0 : x.key) && !b(x == null ? void 0 : x.value) && Le(y, x.key, x.value);
238
+ }), o(y);
238
239
  },
239
240
  [t]
240
241
  );
241
- return b(n) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-xs text-gray-400", children: "No data provider selected." }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
242
- C(l, (c, y) => /* @__PURE__ */ e.jsx(
243
- xr,
242
+ return b(l) ? /* @__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: [
243
+ "You have no data providers registered. Please add a data provider to your project. ",
244
+ /* @__PURE__ */ e.jsx("br", {}),
245
+ /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
246
+ ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
247
+ N(s, (g, y) => /* @__PURE__ */ e.jsx(
248
+ hr,
244
249
  {
245
- item: c,
246
- onChange: (x) => p(x, y),
247
- onRemove: () => o(y),
250
+ item: g,
251
+ onChange: (x) => c(x, y),
252
+ onRemove: () => p(y),
248
253
  selectedBlock: t,
249
- dataProvider: n,
250
- appliedBindings: C(l, "key")
254
+ dataProvider: a,
255
+ appliedBindings: N(s, "key")
251
256
  },
252
- c.key
257
+ g.key
253
258
  )),
254
- /* @__PURE__ */ e.jsxs(X, { delayDuration: 200, children: [
255
- /* @__PURE__ */ e.jsx(Y, { className: "w-full", children: /* @__PURE__ */ e.jsx(
259
+ /* @__PURE__ */ e.jsxs(Y, { delayDuration: 200, children: [
260
+ /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
256
261
  "button",
257
262
  {
258
- onClick: i,
259
- disabled: d,
260
- className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${b(l) ? "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30 " : ""} ${d ? "cursor-not-allowed bg-gray-200 text-gray-400" : b(l) ? "" : "bg-gray-700/20 text-gray-800 hover:bg-blue-700/30"}`,
263
+ onClick: n,
264
+ disabled: i,
265
+ className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${b(s) ? "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30 " : ""} ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : b(s) ? "" : "bg-gray-700/20 text-gray-800 hover:bg-blue-700/30"}`,
261
266
  children: "+ Add Data Binding"
262
267
  }
263
268
  ) }),
264
- d && /* @__PURE__ */ e.jsx(W, { sideOffset: 10, className: "text-[11px]", children: "Complete last added data binding to add more" })
269
+ i && /* @__PURE__ */ e.jsx(W, { sideOffset: -55, className: "text-[11px]", children: "Complete last added data binding to add more" })
265
270
  ] })
266
271
  ] });
267
- }, yr = hr, mr = () => /* @__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" }), Ae = ({
272
+ }, yr = mr, br = () => /* @__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" }), Ae = ({
268
273
  createHistorySnapshot: r,
269
- properties: s,
274
+ properties: o,
270
275
  formData: t,
271
- onChange: n
276
+ onChange: a
272
277
  }) => {
273
- const [l] = Mt(), a = { type: "object", properties: {} }, d = {};
274
- return Object.keys(s).forEach((i) => {
275
- const o = s[i];
276
- if (O(["slot", "styles"], o.type))
278
+ const [l] = Mt(), s = { type: "object", properties: {} }, d = {};
279
+ return Object.keys(o).forEach((i) => {
280
+ const n = o[i];
281
+ if (O(["slot", "styles"], n.type))
277
282
  return;
278
- const p = g(o, "i18n", !1) ? `${i}-${l}` : i;
279
- a.properties[p] = _t(o, l), d[p] = Et(o, l);
283
+ const p = u(n, "i18n", !1) ? `${i}-${l}` : i;
284
+ s.properties[p] = _t(n, l), d[p] = Et(n, l);
280
285
  }), /* @__PURE__ */ e.jsx(
281
- Pt,
286
+ Lt,
282
287
  {
283
288
  widgets: {
284
- binding: mr,
285
- richtext: qt,
286
- icon: Jt,
287
- image: Qt
289
+ binding: br,
290
+ richtext: Jt,
291
+ icon: Qt,
292
+ image: er
288
293
  },
289
294
  fields: {
290
- link: er
295
+ link: tr
291
296
  },
292
297
  idSeparator: ".",
293
298
  autoComplete: "off",
@@ -297,35 +302,35 @@ const gr = ({ data: r }) => {
297
302
  validator: Ot,
298
303
  uiSchema: d,
299
304
  onBlur: r,
300
- schema: a,
305
+ schema: s,
301
306
  formData: t,
302
- onChange: n
307
+ onChange: a
303
308
  }
304
309
  );
305
310
  };
306
311
  function fr() {
307
- const r = te(), { createSnapshot: s } = Ze(), t = ze(), n = Je(r._type), l = { ...r }, a = () => s(), d = ({ formData: u }, c) => {
308
- if (c) {
309
- const y = c.replace("root.", "");
310
- t([r._id], { [y]: g(u, y) });
312
+ const r = te(), { createSnapshot: o } = Ze(), t = ze(), a = Je(r._type), l = { ...r }, s = () => o(), d = ({ formData: c }, h) => {
313
+ if (h) {
314
+ const g = h.replace("root.", "");
315
+ t([r._id], { [g]: u(c, g) });
311
316
  }
312
317
  }, i = {
313
- _name: Zt({
318
+ _name: zt({
314
319
  title: "Name",
315
- default: g(r, "_name", r._type)
320
+ default: u(r, "_name", r._type)
316
321
  })
317
- }, o = dt(g(l, "_bindings", {})), p = T(() => {
318
- const u = ct(g(n, "props", {}));
319
- return pt(o, (c) => {
320
- delete u[c];
321
- }), u;
322
- }, [n, o]);
322
+ }, n = dt(u(l, "_bindings", {})), p = R(() => {
323
+ const c = ct(u(a, "props", {}));
324
+ return pt(n, (h) => {
325
+ delete c[h];
326
+ }), c;
327
+ }, [a, n]);
323
328
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
324
329
  /* @__PURE__ */ e.jsx(
325
330
  Ae,
326
331
  {
327
332
  onChange: d,
328
- createHistorySnapshot: a,
333
+ createHistorySnapshot: s,
329
334
  formData: l,
330
335
  properties: i
331
336
  }
@@ -337,7 +342,7 @@ function fr() {
337
342
  /* @__PURE__ */ e.jsx(
338
343
  "div",
339
344
  {
340
- className: `h-[8px] w-[8px] rounded-full ${b(g(r, "_bindings", {})) ? "bg-gray-300" : "bg-blue-500"}`
345
+ className: `h-[8px] w-[8px] rounded-full ${b(u(r, "_bindings", {})) ? "bg-gray-300" : "bg-blue-500"}`
341
346
  }
342
347
  ),
343
348
  "Data Binding"
@@ -345,9 +350,9 @@ function fr() {
345
350
  /* @__PURE__ */ e.jsx(de, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
346
351
  yr,
347
352
  {
348
- bindingData: g(l, "_bindings", {}),
349
- onChange: (u) => {
350
- d({ formData: { ...l, _bindings: u } }, "root._bindings");
353
+ bindingData: u(l, "_bindings", {}),
354
+ onChange: (c) => {
355
+ d({ formData: { ...l, _bindings: c } }, "root._bindings");
351
356
  }
352
357
  }
353
358
  ) })
@@ -358,18 +363,18 @@ function fr() {
358
363
  "Static Content"
359
364
  ] }) }),
360
365
  /* @__PURE__ */ e.jsxs(de, { className: "pt-4", children: [
361
- 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: [
366
+ b(n) ? "" : /* @__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: [
362
367
  "Data binding is set for ",
363
- /* @__PURE__ */ e.jsx("b", { children: C(o, ut).join(", ") }),
368
+ /* @__PURE__ */ e.jsx("b", { children: N(n, ut).join(", ") }),
364
369
  " ",
365
- o.length === 1 ? "property" : "properties",
370
+ n.length === 1 ? "property" : "properties",
366
371
  ". Remove data binding to edit static content."
367
372
  ] }),
368
373
  /* @__PURE__ */ e.jsx(
369
374
  Ae,
370
375
  {
371
376
  onChange: d,
372
- createHistorySnapshot: a,
377
+ createHistorySnapshot: s,
373
378
  formData: l,
374
379
  properties: p
375
380
  }
@@ -380,60 +385,60 @@ function fr() {
380
385
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
381
386
  ] });
382
387
  }
383
- const De = new rr(lr, {
388
+ const De = new lr(or, {
384
389
  isCaseSensitive: !1,
385
390
  threshold: 0.2,
386
391
  minMatchCharLength: 2,
387
392
  keys: ["name"]
388
393
  });
389
- function br() {
390
- var R;
391
- const [r] = je(), s = te(), t = Ue(), n = Ge(), [l] = Ke(), [a, d] = k(""), i = (R = be(r)) == null ? void 0 : R.prop, o = gt((g(s, i, "").replace(sr, "").split(",").pop() || "").split(" "), b), p = () => {
392
- const f = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
393
- t(l, f, !0), d("");
394
- }, [u, c] = k([]), y = ({ value: f }) => {
395
- const j = f.trim().toLowerCase(), B = j.match(/.+:/g);
396
- let N = [];
394
+ function vr() {
395
+ var S;
396
+ const [r] = je(), o = te(), t = Ue(), a = Ge(), [l] = Ke(), [s, d] = k(""), i = (S = fe(r)) == null ? void 0 : S.prop, n = gt((u(o, i, "").replace(nr, "").split(",").pop() || "").split(" "), b), p = () => {
397
+ const j = s.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
398
+ t(l, j, !0), d("");
399
+ }, [c, h] = k([]), g = ({ value: j }) => {
400
+ const I = j.trim().toLowerCase(), B = I.match(/.+:/g);
401
+ let v = [];
397
402
  if (B && B.length > 0) {
398
- const [P] = B, F = j.replace(P, "");
399
- N = De.search(F).map((h) => ({
400
- ...h,
401
- item: { ...h.item, name: P + h.item.name }
403
+ const [C] = B, _ = I.replace(C, "");
404
+ v = De.search(_).map((m) => ({
405
+ ...m,
406
+ item: { ...m.item, name: C + m.item.name }
402
407
  }));
403
408
  } else
404
- N = De.search(j);
405
- c(C(N, "item"));
406
- }, x = () => {
407
- c([]);
408
- }, m = (f) => f.name, v = (f) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: f.name }), L = {
409
+ v = De.search(I);
410
+ h(N(v, "item"));
411
+ }, y = () => {
412
+ h([]);
413
+ }, x = (j) => j.name, f = (j) => /* @__PURE__ */ e.jsx("div", { className: "rounded-md p-1", children: j.name }), $ = {
409
414
  autoComplete: "off",
410
415
  autoCorrect: "off",
411
416
  autoCapitalize: "off",
412
417
  spellCheck: !1,
413
418
  placeholder: "Enter class name",
414
- value: a,
415
- onKeyDown: (f) => {
416
- f.key === "Enter" && a.trim() !== "" && p();
419
+ value: s,
420
+ onKeyDown: (j) => {
421
+ j.key === "Enter" && s.trim() !== "" && p();
417
422
  },
418
- onChange: (f, { newValue: j }) => d(j),
423
+ onChange: (j, { newValue: I }) => d(I),
419
424
  className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
420
425
  };
421
426
  return /* @__PURE__ */ e.jsxs(
422
427
  "div",
423
428
  {
424
- className: `no-scrollbar flex ${u.length > 0 ? "min-h-[300px]" : "min-h-max"} w-full flex-col gap-y-5 overflow-y-auto bg-gray-100 px-px`,
429
+ className: `no-scrollbar flex ${c.length > 0 ? "min-h-[300px]" : "min-h-max"} w-full flex-col gap-y-5 overflow-y-auto bg-gray-100 px-px`,
425
430
  children: [
426
431
  /* @__PURE__ */ e.jsx(Ce, { className: "mt-2", children: "Add Tailwind classes" }),
427
432
  /* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
428
433
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
429
434
  Qe,
430
435
  {
431
- suggestions: u,
432
- onSuggestionsFetchRequested: y,
433
- onSuggestionsClearRequested: x,
434
- getSuggestionValue: m,
435
- renderSuggestion: v,
436
- inputProps: L,
436
+ suggestions: c,
437
+ onSuggestionsFetchRequested: g,
438
+ onSuggestionsClearRequested: y,
439
+ getSuggestionValue: x,
440
+ renderSuggestion: f,
441
+ inputProps: $,
437
442
  containerProps: {
438
443
  className: "relative h-8 w-full gap-y-1 py-1 border-gray-600"
439
444
  },
@@ -450,31 +455,31 @@ function br() {
450
455
  variant: "outline",
451
456
  className: "h-6 border-gray-700",
452
457
  onClick: p,
453
- disabled: a.trim() === "",
458
+ disabled: s.trim() === "",
454
459
  size: "sm",
455
460
  children: /* @__PURE__ */ e.jsx(ve, {})
456
461
  }
457
462
  )
458
463
  ] }),
459
464
  /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-wrap gap-2", children: [
460
- 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" }),
465
+ b(n) && /* @__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" }),
461
466
  se.Children.toArray(
462
- o.map((f) => /* @__PURE__ */ e.jsxs(
467
+ n.map((j) => /* @__PURE__ */ e.jsxs(
463
468
  "div",
464
469
  {
465
470
  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",
466
471
  children: [
467
- f,
472
+ j,
468
473
  /* @__PURE__ */ e.jsx(
469
474
  Fe,
470
475
  {
471
- onClick: () => n(l, [f]),
476
+ onClick: () => a(l, [j]),
472
477
  className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
473
478
  }
474
479
  )
475
480
  ]
476
481
  },
477
- f
482
+ j
478
483
  ))
479
484
  )
480
485
  ] })
@@ -482,7 +487,7 @@ function br() {
482
487
  }
483
488
  );
484
489
  }
485
- const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
490
+ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], wr = {
486
491
  heading: "Flex Child",
487
492
  items: [
488
493
  { type: "arbitrary", label: "Basis", units: D, property: "flexBasis" },
@@ -491,7 +496,7 @@ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
491
496
  { type: "dropdown", label: "Grow", property: "flexGrow" },
492
497
  { type: "dropdown", label: "Shrink", property: "flexShrink" }
493
498
  ]
494
- }, wr = {
499
+ }, jr = {
495
500
  heading: "Grid Child",
496
501
  items: [
497
502
  { type: "range", label: "Col Span", property: "gridColSpan" },
@@ -502,7 +507,7 @@ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
502
507
  { type: "range", label: "Row End", property: "gridRowEnd" },
503
508
  { type: "range", label: "Order", property: "order" }
504
509
  ]
505
- }, jr = [
510
+ }, Cr = [
506
511
  {
507
512
  heading: "Display",
508
513
  items: [
@@ -904,72 +909,72 @@ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
904
909
  },
905
910
  {
906
911
  heading: "Classes",
907
- items: [{ component: br }]
912
+ items: [{ component: vr }]
908
913
  }
909
914
  ], rt = {
910
915
  "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" }) }),
911
916
  // visibility
912
- visible: ft,
917
+ visible: bt,
913
918
  invisible: Te,
914
919
  // display
915
920
  hidden: Te,
916
- gap: _,
917
- gapX: V,
918
- gapY: H,
919
- spaceX: V,
920
- spaceY: H,
921
- overscroll: _,
922
- overscrollX: V,
923
- overscrollY: H,
924
- overflow: _,
925
- overflowX: V,
926
- overflowY: H,
921
+ gap: E,
922
+ gapX: H,
923
+ gapY: V,
924
+ spaceX: H,
925
+ spaceY: V,
926
+ overscroll: E,
927
+ overscrollX: H,
928
+ overscrollY: V,
929
+ overflow: E,
930
+ overflowX: H,
931
+ overflowY: V,
927
932
  top: G,
928
933
  right: K,
929
934
  bottom: q,
930
935
  left: J,
931
- inset: _,
932
- insetX: V,
933
- insetY: H,
934
- border: _,
935
- borderX: V,
936
- borderY: H,
936
+ inset: E,
937
+ insetX: H,
938
+ insetY: V,
939
+ border: E,
940
+ borderX: H,
941
+ borderY: V,
937
942
  borderTop: G,
938
943
  borderRight: K,
939
944
  borderBottom: q,
940
945
  borderLeft: J,
941
- borderRadius: _,
942
- borderRadiusX: V,
943
- borderRadiusY: H,
946
+ borderRadius: E,
947
+ borderRadiusX: H,
948
+ borderRadiusY: V,
944
949
  borderRadiusTop: G,
945
950
  borderRadiusRight: K,
946
951
  borderRadiusBottom: q,
947
952
  borderRadiusLeft: J,
948
- borderRadiusTopLeft: bt,
953
+ borderRadiusTopLeft: ft,
949
954
  borderRadiusTopRight: vt,
950
955
  borderRadiusBottomRight: wt,
951
956
  borderRadiusBottomLeft: jt,
952
- divideXWidth: V,
953
- divideYWidth: H,
954
- scale: _,
955
- scaleX: V,
956
- scaleY: H,
957
- skewX: V,
958
- skewY: H,
959
- translateX: V,
960
- translateY: H,
957
+ divideXWidth: H,
958
+ divideYWidth: V,
959
+ scale: E,
960
+ scaleX: H,
961
+ scaleY: V,
962
+ skewX: H,
963
+ skewY: V,
964
+ translateX: H,
965
+ translateY: V,
961
966
  // padding
962
- padding: _,
963
- paddingX: V,
964
- paddingY: H,
967
+ padding: E,
968
+ paddingX: H,
969
+ paddingY: V,
965
970
  paddingTop: G,
966
971
  paddingRight: K,
967
972
  paddingBottom: q,
968
973
  paddingLeft: J,
969
974
  // margin
970
- margin: _,
971
- marginX: V,
972
- marginY: H,
975
+ margin: E,
976
+ marginX: H,
977
+ marginY: V,
973
978
  marginTop: G,
974
979
  marginRight: K,
975
980
  marginBottom: q,
@@ -984,9 +989,9 @@ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
984
989
  // "not-italic": "",
985
990
  // decoration
986
991
  underline: Rt,
987
- overline: Vt,
992
+ overline: Ht,
988
993
  // transform
989
- uppercase: Ht,
994
+ uppercase: Vt,
990
995
  block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
991
996
  /* @__PURE__ */ e.jsx(
992
997
  "path",
@@ -1100,95 +1105,95 @@ const D = ["px", "%", "em", "rem", "ch", "vh", "vw"], vr = {
1100
1105
  )
1101
1106
  ] }),
1102
1107
  static: Bt
1103
- }, re = Le({ canReset: !1, canChange: !0 }), Cr = ({ children: r, canReset: s = !1, canChange: t = !0 }) => (
1108
+ }, re = Pe({ canReset: !1, canChange: !0 }), kr = ({ children: r, canReset: o = !1, canChange: t = !0 }) => (
1104
1109
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1105
- /* @__PURE__ */ e.jsx(re.Provider, { value: { canReset: s, canChange: t }, children: r })
1106
- ), lt = ({ label: r, property: s, onChange: t }) => {
1107
- const n = T(() => g(pe, `${s}.classes`, [""]), [s]), l = le(s), a = T(() => g(l, "cls", ""), [l]), { canChange: d } = ee(re), i = /\[.*\]/g.test(a);
1110
+ /* @__PURE__ */ e.jsx(re.Provider, { value: { canReset: o, canChange: t }, children: r })
1111
+ ), lt = ({ label: r, property: o, onChange: t }) => {
1112
+ const a = R(() => u(pe, `${o}.classes`, [""]), [o]), l = le(o), s = R(() => u(l, "cls", ""), [l]), { canChange: d } = ee(re), i = /\[.*\]/g.test(s);
1108
1113
  return /* @__PURE__ */ e.jsx("div", { className: r ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1109
- /* @__PURE__ */ e.jsx(nr, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1110
- /* @__PURE__ */ e.jsxs(X, { delayDuration: 100, children: [
1111
- /* @__PURE__ */ e.jsx(Y, { 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(we, {}) }) }),
1114
+ /* @__PURE__ */ e.jsx(ar, { className: "w-[70%] rounded py-1", readOnly: !0, value: s }),
1115
+ /* @__PURE__ */ e.jsxs(Y, { delayDuration: 100, children: [
1116
+ /* @__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(we, {}) }) }),
1112
1117
  /* @__PURE__ */ e.jsx(W, { children: "Current value is using a Tailwind arbitrary value." })
1113
1118
  ] })
1114
1119
  ] }) : /* @__PURE__ */ e.jsx(
1115
- me,
1120
+ ye,
1116
1121
  {
1117
1122
  rounded: r,
1118
- onChange: (o) => t(o, s),
1119
- selected: a,
1120
- options: n,
1123
+ onChange: (n) => t(n, o),
1124
+ selected: s,
1125
+ options: a,
1121
1126
  disabled: !d
1122
1127
  }
1123
1128
  ) });
1124
1129
  };
1125
- function me({ selected: r, onChange: s, rounded: t = !1, options: n, disabled: l = !1 }) {
1126
- const a = r.replace(/.*:/g, "").trim(), { undo: d, redo: i } = Ze();
1130
+ function ye({ selected: r, onChange: o, rounded: t = !1, options: a, disabled: l = !1 }) {
1131
+ const s = r.replace(/.*:/g, "").trim(), { undo: d, redo: i } = Ze();
1127
1132
  return /* @__PURE__ */ e.jsxs(
1128
1133
  "select",
1129
1134
  {
1130
- disabled: !n.length || l,
1135
+ disabled: !a.length || l,
1131
1136
  className: `${t ? "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`,
1132
- onChange: (o) => s(o.target.value),
1133
- onKeyDown: (o) => {
1134
- o.ctrlKey && (o.key === "z" && d(), o.key === "y" && i());
1137
+ onChange: (n) => o(n.target.value),
1138
+ onKeyDown: (n) => {
1139
+ n.ctrlKey && (n.key === "z" && d(), n.key === "y" && i());
1135
1140
  },
1136
- value: a,
1141
+ value: s,
1137
1142
  children: [
1138
1143
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1139
- $.Children.toArray(
1140
- n.map((o) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: o, children: o }))
1144
+ P.Children.toArray(
1145
+ a.map((n) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: n, children: n }))
1141
1146
  )
1142
1147
  ]
1143
1148
  }
1144
1149
  );
1145
1150
  }
1146
- const kr = ({ property: r, onChange: s }) => {
1147
- const { canReset: t, canChange: n } = ee(re), l = le(r), a = T(() => g(l, "cls", ""), [l]), d = T(() => g(pe, `${r}.classes`, [""]), [r]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, o = /\[.*\]/g.test(a);
1148
- 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: [
1151
+ const Nr = ({ property: r, onChange: o }) => {
1152
+ const { canReset: t, canChange: a } = ee(re), l = le(r), s = R(() => u(l, "cls", ""), [l]), d = R(() => u(pe, `${r}.classes`, [""]), [r]), i = d.indexOf(s) > -1 ? d.indexOf(s) : 0, n = /\[.*\]/g.test(s);
1153
+ return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: n ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: s }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1149
1154
  /* @__PURE__ */ e.jsx(
1150
1155
  "button",
1151
1156
  {
1152
1157
  type: "button",
1153
1158
  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",
1154
- disabled: !n && (!t || i - 1 < 0),
1155
- onClick: () => s(Se(d, i - 1), r),
1156
- children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(At, { className: !n && (!t || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1159
+ disabled: !a && (!t || i - 1 < 0),
1160
+ onClick: () => o(Se(d, i - 1), r),
1161
+ children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(At, { className: !a && (!t || i - 1 < 0) ? "text-gray-500" : "text-white/60" }) })
1157
1162
  }
1158
1163
  ),
1159
- /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(lt, { label: !1, property: r, onChange: s }) }),
1164
+ /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(lt, { label: !1, property: r, onChange: o }) }),
1160
1165
  /* @__PURE__ */ e.jsx(
1161
1166
  "button",
1162
1167
  {
1163
1168
  type: "button",
1164
1169
  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",
1165
- disabled: !n && (!t || i + 1 >= d.length),
1166
- onClick: () => s(Se(d, i + 1), r),
1170
+ disabled: !a && (!t || i + 1 >= d.length),
1171
+ onClick: () => o(Se(d, i + 1), r),
1167
1172
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1168
1173
  ve,
1169
1174
  {
1170
- className: !n && (!t || i + 1 >= d.length) ? "text-gray-500" : "text-white/60"
1175
+ className: !a && (!t || i + 1 >= d.length) ? "text-gray-500" : "text-white/60"
1171
1176
  }
1172
1177
  ) })
1173
1178
  }
1174
1179
  )
1175
1180
  ] }) });
1176
- }, Nr = ({ property: r, onChange: s }) => {
1177
- const t = T(() => g(pe, `${r}.classes`, [""]), [r]), { canChange: n } = ee(re), l = le(r), a = T(() => g(l, "cls", ""), [l]);
1178
- return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(t, (d) => /* @__PURE__ */ e.jsxs(X, { children: [
1179
- /* @__PURE__ */ e.jsx(Y, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1181
+ }, Sr = ({ property: r, onChange: o }) => {
1182
+ const t = R(() => u(pe, `${r}.classes`, [""]), [r]), { canChange: a } = ee(re), l = le(r), s = R(() => u(l, "cls", ""), [l]);
1183
+ return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: N(t, (d) => /* @__PURE__ */ e.jsxs(Y, { children: [
1184
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1180
1185
  "button",
1181
1186
  {
1182
1187
  type: "button",
1183
- disabled: !n,
1184
- onClick: () => s(d, r),
1185
- 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"}`,
1186
- children: $.createElement(g(rt, d, Xe))
1188
+ disabled: !a,
1189
+ onClick: () => o(d, r),
1190
+ className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${s === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1191
+ children: P.createElement(u(rt, d, Ye))
1187
1192
  }
1188
1193
  ) }),
1189
1194
  /* @__PURE__ */ e.jsx(W, { children: Q(ne(d)) })
1190
1195
  ] })) });
1191
- }, Sr = {
1196
+ }, Tr = {
1192
1197
  backgroundColor: "bg",
1193
1198
  textColor: "text",
1194
1199
  borderColor: "border",
@@ -1200,39 +1205,39 @@ const kr = ({ property: r, onChange: s }) => {
1200
1205
  toColor: "to",
1201
1206
  ringColor: "ring",
1202
1207
  ringOffsetColor: "ring-offset"
1203
- }, Tr = ({ property: r, onChange: s }) => {
1204
- const t = le(r), n = T(() => g(t, "cls", ""), [t]), { canChange: l } = ee(re), [a, d] = k([]), [i, o] = k({ color: "", shade: "" }), p = n.split("-"), u = g(p, "1", ""), c = g(p, "2", ""), y = I(
1208
+ }, Rr = ({ property: r, onChange: o }) => {
1209
+ const t = le(r), a = R(() => u(t, "cls", ""), [t]), { canChange: l } = ee(re), [s, d] = k([]), [i, n] = k({ color: "", shade: "" }), p = a.split("-"), c = u(p, "1", ""), h = u(p, "2", ""), g = L(
1205
1210
  // eslint-disable-next-line no-shadow
1206
- (m) => {
1207
- ["current", "inherit", "transparent", "black", "white"].includes(m) ? (d([]), o({ color: m })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((v) => ({ ...v, color: m, shade: v.shade ? v.shade : "500" })));
1211
+ (x) => {
1212
+ ["current", "inherit", "transparent", "black", "white"].includes(x) ? (d([]), n({ color: x })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), n((f) => ({ ...f, color: x, shade: f.shade ? f.shade : "500" })));
1208
1213
  },
1209
- [d, o]
1214
+ [d, n]
1210
1215
  );
1211
1216
  M(() => {
1212
- if (["current", "inherit", "transparent", "black", "white"].includes(u))
1217
+ if (["current", "inherit", "transparent", "black", "white"].includes(c))
1213
1218
  return d([]);
1214
1219
  d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]);
1215
- }, [u]);
1216
- const x = I(
1220
+ }, [c]);
1221
+ const y = L(
1217
1222
  // eslint-disable-next-line no-shadow
1218
- (m) => {
1219
- o({ color: u, shade: m });
1223
+ (x) => {
1224
+ n({ color: c, shade: x });
1220
1225
  },
1221
- [u]
1226
+ [c]
1222
1227
  );
1223
1228
  return M(() => {
1224
- o({ color: "", shade: "" });
1229
+ n({ color: "", shade: "" });
1225
1230
  }, [t]), M(() => {
1226
- const v = `${g(Sr, r, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1227
- v.match(new RegExp(g(pe, `${r}.regExp`, ""))) && s(v, r);
1228
- }, [i, s, r]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1231
+ const f = `${u(Tr, r, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1232
+ f.match(new RegExp(u(pe, `${r}.regExp`, ""))) && o(f, r);
1233
+ }, [i, o, r]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1229
1234
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
1230
- me,
1235
+ ye,
1231
1236
  {
1232
1237
  disabled: !l,
1233
1238
  rounded: !0,
1234
- selected: u,
1235
- onChange: y,
1239
+ selected: c,
1240
+ onChange: g,
1236
1241
  options: [
1237
1242
  "current",
1238
1243
  "transparent",
@@ -1265,19 +1270,19 @@ const kr = ({ property: r, onChange: s }) => {
1265
1270
  ]
1266
1271
  }
1267
1272
  ) }),
1268
- /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(me, { rounded: !0, selected: c, disabled: !u || !l, onChange: x, options: a }) })
1273
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(ye, { rounded: !0, selected: h, disabled: !c || !l, onChange: y, options: s }) })
1269
1274
  ] });
1270
- }, $e = (r, s) => {
1275
+ }, $e = (r, o) => {
1271
1276
  r = r.toLowerCase();
1272
1277
  let t = r.trim().replace(/ |\+/g, "");
1273
- if ((t === "auto" || t === "none") && s.includes(t))
1278
+ if ((t === "auto" || t === "none") && o.includes(t))
1274
1279
  return { value: "", unit: t };
1275
- const n = s.length ? new RegExp(s.join("|"), "g") : /XXXXXX/g;
1276
- t = t.replace(n, "");
1277
- const l = r.match(n), a = l && l.length > 1, d = !b(t) && Number.isNaN(Number(t));
1278
- return a || d ? { error: "Invalid value" } : l && (l[0] === "auto" || l[0] === "none") ? { value: l[0], unit: "" } : { value: t, unit: l ? l[0] : "" };
1279
- }, Rr = (r) => {
1280
- const s = r.startsWith("-") ? "-" : "", t = r.split("-").pop();
1280
+ const a = o.length ? new RegExp(o.join("|"), "g") : /XXXXXX/g;
1281
+ t = t.replace(a, "");
1282
+ const l = r.match(a), s = l && l.length > 1, d = !b(t) && Number.isNaN(Number(t));
1283
+ return s || d ? { error: "Invalid value" } : l && (l[0] === "auto" || l[0] === "none") ? { value: l[0], unit: "" } : { value: t, unit: l ? l[0] : "" };
1284
+ }, Hr = (r) => {
1285
+ const o = r.startsWith("-") ? "-" : "", t = r.split("-").pop();
1281
1286
  if (["auto", "none"].includes(t))
1282
1287
  return { value: "", unit: t };
1283
1288
  if (t === "px")
@@ -1287,21 +1292,21 @@ const kr = ({ property: r, onChange: s }) => {
1287
1292
  if (t === "full")
1288
1293
  return { value: "100", unit: "%" };
1289
1294
  if (O(r, "skew-"))
1290
- return { value: `${s}${t}`, unit: "deg" };
1295
+ return { value: `${o}${t}`, unit: "deg" };
1291
1296
  if (O(r, "rotate-"))
1292
- return { value: `${s}${t}`, unit: "deg" };
1297
+ return { value: `${o}${t}`, unit: "deg" };
1293
1298
  if (O(r, "opacity-"))
1294
1299
  return { value: `${t / 100}`, unit: "-" };
1295
1300
  if (O(r, "duration-") || O(r, "delay-"))
1296
1301
  return { value: `${t}`, unit: "ms" };
1297
1302
  if (O(r, "translate-") && !t.includes("/"))
1298
- return { value: `${s}${`${t / 4}`}`, unit: "rem" };
1303
+ return { value: `${o}${`${t / 4}`}`, unit: "rem" };
1299
1304
  if (O(r, "scale-"))
1300
- return { value: `${s}${`${t / 100}`}`, unit: "-" };
1305
+ return { value: `${o}${`${t / 100}`}`, unit: "-" };
1301
1306
  if (Z(r, "border")) {
1302
- const n = r.match(/border-?(x|y|t|r|b|l)?\d+/g);
1303
- if (n)
1304
- return { value: n[0].split("-").pop(), unit: "px" };
1307
+ const a = r.match(/border-?(x|y|t|r|b|l)?\d+/g);
1308
+ if (a)
1309
+ return { value: a[0].split("-").pop(), unit: "px" };
1305
1310
  if (r.match(/border-?(x|y|t|r|b|l)?/g))
1306
1311
  return { value: "1", unit: "px" };
1307
1312
  }
@@ -1400,28 +1405,28 @@ const kr = ({ property: r, onChange: s }) => {
1400
1405
  if (["max", "min", "fit"].includes(t))
1401
1406
  return { value: r, unit: "class" };
1402
1407
  if (t.includes("/")) {
1403
- const [n, l] = C(t.split("/"), (a) => parseInt(a, 10));
1404
- return { value: s + (n / l * 100).toFixed(2).replace(".00", ""), unit: "%" };
1408
+ const [a, l] = N(t.split("/"), (s) => parseInt(s, 10));
1409
+ return { value: o + (a / l * 100).toFixed(2).replace(".00", ""), unit: "%" };
1405
1410
  }
1406
- return xt(parseFloat(t)) ? { value: `${s + parseFloat(t) * 4}`, unit: "px" } : { value: t, unit: "class" };
1411
+ return xt(parseFloat(t)) ? { value: `${o + parseFloat(t) * 4}`, unit: "px" } : { value: t, unit: "class" };
1407
1412
  }, Vr = (r) => {
1408
1413
  if (b(r))
1409
1414
  return { value: "", unit: "" };
1410
- const s = r.match(/\[.*\]/g);
1411
- if (s === null)
1412
- return Hr(r);
1413
- const t = g(s, "0", "").replace(/\[|\]/g, ""), n = r.startsWith("-") ? "-" : "", l = be(t.match(/\d+.\d+|\d+/g));
1414
- return { value: `${n}${l}`, unit: t.replace(l, "") };
1415
- }, Hr = (r) => b(r) ? { value: "", unit: "" } : Rr(r), ot = $.createContext({
1415
+ const o = r.match(/\[.*\]/g);
1416
+ if (o === null)
1417
+ return Br(r);
1418
+ const t = u(o, "0", "").replace(/\[|\]/g, ""), a = r.startsWith("-") ? "-" : "", l = fe(t.match(/\d+.\d+|\d+/g));
1419
+ return { value: `${a}${l}`, unit: t.replace(l, "") };
1420
+ }, Br = (r) => b(r) ? { value: "", unit: "" } : Hr(r), ot = P.createContext({
1416
1421
  setDragData: () => {
1417
1422
  }
1418
- }), Br = ({
1423
+ }), Ar = ({
1419
1424
  unit: r,
1420
- currentValue: s,
1425
+ currentValue: o,
1421
1426
  onDrag: t,
1422
- onDragEnd: n,
1427
+ onDragEnd: a,
1423
1428
  onDragStart: l,
1424
- negative: a,
1429
+ negative: s,
1425
1430
  cssProperty: d
1426
1431
  }) => {
1427
1432
  const { setDragData: i } = ee(ot);
@@ -1429,15 +1434,15 @@ const kr = ({ property: r, onChange: s }) => {
1429
1434
  "button",
1430
1435
  {
1431
1436
  type: "button",
1432
- onMouseDown: (o) => {
1437
+ onMouseDown: (n) => {
1433
1438
  const p = {
1434
1439
  onDrag: t,
1435
- onDragEnd: n,
1440
+ onDragEnd: a,
1436
1441
  dragging: !0,
1437
- dragStartY: o.pageY,
1438
- dragStartValue: `${s}`,
1442
+ dragStartY: n.pageY,
1443
+ dragStartValue: `${o}`,
1439
1444
  dragUnit: r,
1440
- negative: a,
1445
+ negative: s,
1441
1446
  cssProperty: d
1442
1447
  };
1443
1448
  l(p), i(p);
@@ -1447,172 +1452,172 @@ const kr = ({ property: r, onChange: s }) => {
1447
1452
  children: /* @__PURE__ */ e.jsx($t, {})
1448
1453
  }
1449
1454
  );
1450
- }, Ar = ({ onSelect: r, current: s, units: t }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: t.map((n) => /* @__PURE__ */ e.jsx(
1455
+ }, Dr = ({ onSelect: r, current: o, units: t }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: t.map((a) => /* @__PURE__ */ e.jsx(
1451
1456
  et,
1452
1457
  {
1453
1458
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
1454
- color: s === n ? "primary" : void 0,
1459
+ color: o === a ? "primary" : void 0,
1455
1460
  size: "sm",
1456
1461
  onClick: (l) => {
1457
- l.stopPropagation(), r(n);
1462
+ l.stopPropagation(), r(a);
1458
1463
  },
1459
- children: n
1464
+ children: a
1460
1465
  },
1461
- n
1462
- )) }), Dr = (r) => {
1463
- const [s, t] = k(!1), [n, l] = k(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: o, units: p, negative: u } = r, [c, y] = k(o != null && o.toLowerCase().includes("width") ? "%" : p[0]), [x, m] = k(!1), [v, L] = k(""), [R, f] = k(!1), [j, B] = k(!1);
1466
+ a
1467
+ )) }), $r = (r) => {
1468
+ const [o, t] = k(!1), [a, l] = k(""), { currentClass: s, onChange: d, classPrefix: i, cssProperty: n, units: p, negative: c } = r, [h, g] = k(n != null && n.toLowerCase().includes("width") ? "%" : p[0]), [y, x] = k(!1), [f, $] = k(""), [S, j] = k(!1), [I, B] = k(!1);
1464
1469
  M(() => {
1465
- const { value: h, unit: w } = Vr(a);
1470
+ const { value: m, unit: w } = Vr(s);
1466
1471
  if (w === "") {
1467
- l(h), y(o != null && o.toLowerCase().includes("width") ? "%" : p[0]);
1472
+ l(m), g(n != null && n.toLowerCase().includes("width") ? "%" : p[0]);
1468
1473
  return;
1469
1474
  }
1470
- y(w), l(w === "class" || b(h) ? "" : h);
1471
- }, [a, o, p]);
1472
- const N = xe(
1473
- (h) => {
1474
- d(h);
1475
+ g(w), l(w === "class" || b(m) ? "" : m);
1476
+ }, [s, n, p]);
1477
+ const v = xe(
1478
+ (m) => {
1479
+ d(m);
1475
1480
  },
1476
1481
  [d],
1477
1482
  200
1478
- ), P = xe(
1479
- (h) => {
1480
- d(h, !1);
1483
+ ), C = xe(
1484
+ (m) => {
1485
+ d(m, !1);
1481
1486
  },
1482
1487
  [d],
1483
1488
  200
1484
- ), F = I(
1485
- (h = !1) => {
1486
- const w = $e(`${n}`, p);
1487
- if (g(w, "error", !1)) {
1488
- m(!0);
1489
+ ), _ = L(
1490
+ (m = !1) => {
1491
+ const w = $e(`${a}`, p);
1492
+ if (u(w, "error", !1)) {
1493
+ x(!0);
1489
1494
  return;
1490
1495
  }
1491
- const S = g(w, "unit") !== "" ? g(w, "unit") : c;
1492
- if (S === "auto" || S === "none") {
1493
- N(`${i}${S}`);
1496
+ const T = u(w, "unit") !== "" ? u(w, "unit") : h;
1497
+ if (T === "auto" || T === "none") {
1498
+ v(`${i}${T}`);
1494
1499
  return;
1495
1500
  }
1496
- if (g(w, "value") === "")
1501
+ if (u(w, "value") === "")
1497
1502
  return;
1498
- const U = `${g(w, "value", "").startsWith("-") ? "-" : ""}${i}[${g(w, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1499
- h ? P(U) : N(U);
1503
+ const U = `${u(w, "value", "").startsWith("-") ? "-" : ""}${i}[${u(w, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
1504
+ m ? C(U) : v(U);
1500
1505
  },
1501
- [N, P, n, c, i, p]
1502
- ), oe = I(
1503
- (h) => {
1504
- const w = $e(`${n}`, p);
1505
- if (g(w, "error", !1)) {
1506
- m(!0);
1506
+ [v, C, a, h, i, p]
1507
+ ), oe = L(
1508
+ (m) => {
1509
+ const w = $e(`${a}`, p);
1510
+ if (u(w, "error", !1)) {
1511
+ x(!0);
1507
1512
  return;
1508
1513
  }
1509
- if (h === "auto" || h === "none") {
1510
- N(`${i}${h}`);
1514
+ if (m === "auto" || m === "none") {
1515
+ v(`${i}${m}`);
1511
1516
  return;
1512
1517
  }
1513
- if (g(w, "value") === "")
1518
+ if (u(w, "value") === "")
1514
1519
  return;
1515
- const S = g(w, "unit") !== "" ? g(w, "unit") : h, U = `${g(w, "value", "").startsWith("-") ? "-" : ""}${i}[${g(w, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1516
- N(U);
1520
+ const T = u(w, "unit") !== "" ? u(w, "unit") : m, U = `${u(w, "value", "").startsWith("-") ? "-" : ""}${i}[${u(w, "value", "").replace("-", "")}${T === "-" ? "" : T}]`;
1521
+ v(U);
1517
1522
  },
1518
- [N, n, i, p]
1523
+ [v, a, i, p]
1519
1524
  );
1520
- 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: [
1521
- /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: a }),
1522
- /* @__PURE__ */ e.jsxs(X, { children: [
1523
- /* @__PURE__ */ e.jsx(Y, { 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(we, {}) }) }),
1525
+ return /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-start", children: h === "class" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1526
+ /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: s }),
1527
+ /* @__PURE__ */ e.jsxs(Y, { children: [
1528
+ /* @__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(we, {}) }) }),
1524
1529
  /* @__PURE__ */ e.jsx(W, { children: "Current value is using a Tailwind preset class." })
1525
1530
  ] })
1526
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: `group relative flex items-center ${R ? "z-auto" : ""}`, children: [
1531
+ ] }) : /* @__PURE__ */ e.jsxs("div", { className: `group relative flex items-center ${S ? "z-auto" : ""}`, children: [
1527
1532
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center rounded-md border border-border", children: [
1528
- ["none", "auto"].indexOf(c) !== -1 ? null : /* @__PURE__ */ e.jsx(
1533
+ ["none", "auto"].indexOf(h) !== -1 ? null : /* @__PURE__ */ e.jsx(
1529
1534
  "input",
1530
1535
  {
1531
- readOnly: c === "class",
1532
- onKeyPress: (h) => {
1533
- h.key === "Enter" && F();
1536
+ readOnly: h === "class",
1537
+ onKeyPress: (m) => {
1538
+ m.key === "Enter" && _();
1534
1539
  },
1535
- onKeyDown: (h) => {
1536
- if (h.keyCode !== 38 && h.keyCode !== 40)
1540
+ onKeyDown: (m) => {
1541
+ if (m.keyCode !== 38 && m.keyCode !== 40)
1537
1542
  return;
1538
- h.preventDefault(), B(!0);
1539
- const w = ht(h.target.value);
1540
- let S = Me(w) ? 0 : w;
1541
- h.keyCode === 38 && (S += 1), h.keyCode === 40 && (S -= 1);
1542
- const E = `${S}`, nt = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1543
- P(nt);
1543
+ m.preventDefault(), B(!0);
1544
+ const w = ht(m.target.value);
1545
+ let T = Me(w) ? 0 : w;
1546
+ m.keyCode === 38 && (T += 1), m.keyCode === 40 && (T -= 1);
1547
+ const F = `${T}`, nt = `${F.startsWith("-") ? "-" : ""}${i}[${F.replace("-", "")}${h === "-" ? "" : h}]`;
1548
+ C(nt);
1544
1549
  },
1545
- onKeyUp: (h) => {
1546
- j && (h.preventDefault(), B(!1));
1550
+ onKeyUp: (m) => {
1551
+ I && (m.preventDefault(), B(!1));
1547
1552
  },
1548
- onBlur: () => F(),
1549
- onChange: (h) => {
1550
- m(!1), l(h.target.value);
1553
+ onBlur: () => _(),
1554
+ onChange: (m) => {
1555
+ x(!1), l(m.target.value);
1551
1556
  },
1552
- onClick: (h) => {
1557
+ onClick: (m) => {
1553
1558
  var w;
1554
- (w = h == null ? void 0 : h.target) == null || w.select(), t(!1);
1559
+ (w = m == null ? void 0 : m.target) == null || w.select(), t(!1);
1555
1560
  },
1556
- value: R ? v : n,
1561
+ value: S ? f : a,
1557
1562
  className: "h-6 w-14 rounded rounded-r-none bg-background pl-2 text-sm focus-visible:outline-0 ".concat(
1558
1563
  " ",
1559
- x ? "border-red-500 text-red-500" : "border-foreground/20"
1564
+ y ? "border-red-500 text-red-500" : "border-foreground/20"
1560
1565
  )
1561
1566
  }
1562
1567
  ),
1563
- /* @__PURE__ */ e.jsxs(X, { open: s, delayDuration: 100, children: [
1564
- /* @__PURE__ */ e.jsx(Y, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1568
+ /* @__PURE__ */ e.jsxs(Y, { open: o, delayDuration: 100, children: [
1569
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1565
1570
  "button",
1566
1571
  {
1567
1572
  type: "button",
1568
- onClick: () => t(!s),
1573
+ onClick: () => t(!o),
1569
1574
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1570
1575
  children: [
1571
- /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
1576
+ /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: h }),
1572
1577
  p.length > 1 ? /* @__PURE__ */ e.jsx(Dt, {}) : null
1573
1578
  ]
1574
1579
  }
1575
1580
  ) }),
1576
- /* @__PURE__ */ e.jsx(Kt, { children: /* @__PURE__ */ e.jsx(W, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1577
- Ar,
1581
+ /* @__PURE__ */ e.jsx(qt, { children: /* @__PURE__ */ e.jsx(W, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1582
+ Dr,
1578
1583
  {
1579
1584
  units: p,
1580
- current: c,
1581
- onSelect: (h) => {
1582
- t(!1), y(h), oe(h);
1585
+ current: h,
1586
+ onSelect: (m) => {
1587
+ t(!1), g(m), oe(m);
1583
1588
  }
1584
1589
  }
1585
1590
  ) }) })
1586
1591
  ] })
1587
1592
  ] }),
1588
- ["none", "auto"].indexOf(c) !== -1 || R ? null : /* @__PURE__ */ e.jsx(
1589
- Br,
1593
+ ["none", "auto"].indexOf(h) !== -1 || S ? null : /* @__PURE__ */ e.jsx(
1594
+ Ar,
1590
1595
  {
1591
- onDragStart: () => f(!0),
1592
- onDragEnd: (h) => {
1593
- if (L(() => ""), f(!1), b(h))
1596
+ onDragStart: () => j(!0),
1597
+ onDragEnd: (m) => {
1598
+ if ($(() => ""), j(!1), b(m))
1594
1599
  return;
1595
- const w = `${h}`, E = `${w.startsWith("-") ? "-" : ""}${i}[${w.replace("-", "")}${c === "-" ? "" : c}]`;
1596
- N(E);
1600
+ const w = `${m}`, F = `${w.startsWith("-") ? "-" : ""}${i}[${w.replace("-", "")}${h === "-" ? "" : h}]`;
1601
+ v(F);
1597
1602
  },
1598
- onDrag: (h) => {
1599
- if (b(h))
1603
+ onDrag: (m) => {
1604
+ if (b(m))
1600
1605
  return;
1601
- L(h);
1602
- const w = `${h}`, E = `${w.startsWith("-") ? "-" : ""}${i}[${w.replace("-", "")}${c === "-" ? "" : c}]`;
1603
- P(E);
1606
+ $(m);
1607
+ const w = `${m}`, F = `${w.startsWith("-") ? "-" : ""}${i}[${w.replace("-", "")}${h === "-" ? "" : h}]`;
1608
+ C(F);
1604
1609
  },
1605
- currentValue: n,
1606
- unit: c,
1607
- negative: u,
1608
- cssProperty: o
1610
+ currentValue: a,
1611
+ unit: h,
1612
+ negative: c,
1613
+ cssProperty: n
1609
1614
  }
1610
1615
  )
1611
1616
  ] }) }) });
1612
1617
  }, le = (r) => {
1613
- const s = ce();
1614
- return yt(s, { property: r });
1615
- }, $r = (r, s) => {
1618
+ const o = ce();
1619
+ return mt(o, { property: r });
1620
+ }, Ir = (r, o) => {
1616
1621
  const t = {
1617
1622
  xs: 0,
1618
1623
  sm: 1,
@@ -1621,8 +1626,8 @@ const kr = ({ property: r, onChange: s }) => {
1621
1626
  xl: 4,
1622
1627
  "2xl": 5
1623
1628
  };
1624
- return t[g(r, "mq", "xs")] <= t[s];
1625
- }, Ir = {
1629
+ return t[u(r, "mq", "xs")] <= t[o];
1630
+ }, Pr = {
1626
1631
  width: "w-",
1627
1632
  height: "h-",
1628
1633
  minWidth: "min-w-",
@@ -1696,56 +1701,56 @@ const kr = ({ property: r, onChange: s }) => {
1696
1701
  xl: "1280px",
1697
1702
  "2xl": "1536px"
1698
1703
  }, Lr = (r) => `${r.toUpperCase()} ${Ie[r] ? `(${Ie[r]} & up)` : ""}`, ke = (r) => {
1699
- const { type: s = "icons", label: t, property: n, onEmitChange: l = () => {
1700
- }, units: a, negative: d = !1 } = r, [i] = Ft(), [o] = qe(), [, p] = He(), u = le(n), c = Ue(), y = Ge(), [x] = Ke(), m = T(() => g(u, "fullCls", ""), [u]), v = I(
1701
- (N, P = !0) => {
1702
- const F = { dark: i, mq: p, mod: o, cls: N, property: n, fullCls: "" };
1703
- (i || o !== "") && (F.mq = "xs");
1704
- const oe = or(F);
1705
- c(x, [oe], P);
1704
+ const { type: o = "icons", label: t, property: a, onEmitChange: l = () => {
1705
+ }, units: s, negative: d = !1 } = r, [i] = Ft(), [n] = qe(), [, p] = Ve(), c = le(a), h = Ue(), g = Ge(), [y] = Ke(), x = R(() => u(c, "fullCls", ""), [c]), f = L(
1706
+ (v, C = !0) => {
1707
+ const _ = { dark: i, mq: p, mod: n, cls: v, property: a, fullCls: "" };
1708
+ (i || n !== "") && (_.mq = "xs");
1709
+ const oe = sr(_);
1710
+ h(y, [oe], C);
1706
1711
  },
1707
- [x, i, p, o, n, c]
1708
- ), L = I(() => {
1709
- y(x, [m]);
1710
- }, [x, m, y]), R = T(() => $r(u, p), [u, p]);
1712
+ [y, i, p, n, a, h]
1713
+ ), $ = L(() => {
1714
+ g(y, [x]);
1715
+ }, [y, x, g]), S = R(() => Ir(c, p), [c, p]);
1711
1716
  M(() => {
1712
- l(R, u);
1713
- }, [R, l, u]);
1714
- const [, , f] = He(), j = I(
1715
- (N) => {
1716
- f({
1717
+ l(S, c);
1718
+ }, [S, l, c]);
1719
+ const [, , j] = Ve(), I = L(
1720
+ (v) => {
1721
+ j({
1717
1722
  xs: 400,
1718
1723
  sm: 640,
1719
1724
  md: 800,
1720
1725
  lg: 1024,
1721
1726
  xl: 1420,
1722
1727
  "2xl": 1920
1723
- }[N]);
1728
+ }[v]);
1724
1729
  },
1725
- [f]
1726
- ), B = g(u, "dark", null) === i && g(u, "mod", null) === o && g(u, "mq", null) === p;
1727
- return /* @__PURE__ */ e.jsx(Cr, { canChange: R, canReset: u && B, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1728
- /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${u && !B ? "text-foreground" : ""}`, children: t }) }),
1730
+ [j]
1731
+ ), B = u(c, "dark", null) === i && u(c, "mod", null) === n && u(c, "mq", null) === p;
1732
+ return /* @__PURE__ */ e.jsx(kr, { canChange: S, canReset: c && B, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1733
+ /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${c && !B ? "text-foreground" : ""}`, children: t }) }),
1729
1734
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1730
1735
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1731
- s === "arbitrary" ? /* @__PURE__ */ e.jsx(
1732
- Dr,
1736
+ o === "arbitrary" ? /* @__PURE__ */ e.jsx(
1737
+ $r,
1733
1738
  {
1734
- currentClass: g(u, "cls", ""),
1735
- classPrefix: g(Ir, n, ""),
1736
- units: a || [],
1737
- onChange: v,
1739
+ currentClass: u(c, "cls", ""),
1740
+ classPrefix: u(Pr, a, ""),
1741
+ units: s || [],
1742
+ onChange: f,
1738
1743
  negative: d,
1739
- cssProperty: n
1744
+ cssProperty: a
1740
1745
  }
1741
1746
  ) : null,
1742
- s === "icons" && /* @__PURE__ */ e.jsx(Nr, { property: n, onChange: v }),
1743
- s === "range" && /* @__PURE__ */ e.jsx(kr, { property: n, onChange: v }),
1744
- s === "color" && /* @__PURE__ */ e.jsx(Tr, { property: n, onChange: v }),
1745
- s === "dropdown" && /* @__PURE__ */ e.jsx(lt, { label: t, property: n, onChange: v })
1747
+ o === "icons" && /* @__PURE__ */ e.jsx(Sr, { property: a, onChange: f }),
1748
+ o === "range" && /* @__PURE__ */ e.jsx(Nr, { property: a, onChange: f }),
1749
+ o === "color" && /* @__PURE__ */ e.jsx(Rr, { property: a, onChange: f }),
1750
+ o === "dropdown" && /* @__PURE__ */ e.jsx(lt, { label: t, property: a, onChange: f })
1746
1751
  ] }),
1747
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${m ? "visible" : "invisible"}`, children: B ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => L(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Ye, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : R && u ? /* @__PURE__ */ e.jsxs(X, { delayDuration: 100, children: [
1748
- /* @__PURE__ */ e.jsx(Y, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1752
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: B ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => $(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Xe, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : S && c ? /* @__PURE__ */ e.jsxs(Y, { delayDuration: 100, children: [
1753
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1749
1754
  "button",
1750
1755
  {
1751
1756
  type: "button",
@@ -1756,19 +1761,19 @@ const kr = ({ property: r, onChange: s }) => {
1756
1761
  /* @__PURE__ */ e.jsx(W, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
1757
1762
  "Current style is set at  ",
1758
1763
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
1759
- Lr(g(u, "mq")),
1760
- i && !u.dark ? "(Light mode)" : ""
1764
+ Lr(u(c, "mq")),
1765
+ i && !c.dark ? "(Light mode)" : ""
1761
1766
  ] }),
1762
1767
  /* @__PURE__ */ e.jsx("br", {}),
1763
1768
  /* @__PURE__ */ e.jsxs(
1764
1769
  "button",
1765
1770
  {
1766
1771
  type: "button",
1767
- onClick: () => j(g(u, "mq")),
1772
+ onClick: () => I(u(c, "mq")),
1768
1773
  className: "block w-full cursor-default text-right font-semibold text-blue-500",
1769
1774
  children: [
1770
1775
  "Switch to ",
1771
- g(u, "mq").toUpperCase()
1776
+ u(c, "mq").toUpperCase()
1772
1777
  ]
1773
1778
  }
1774
1779
  )
@@ -1776,40 +1781,40 @@ const kr = ({ property: r, onChange: s }) => {
1776
1781
  ] }) : null })
1777
1782
  ] })
1778
1783
  ] }) });
1779
- }, Pr = ["px", "%", "em", "rem", "ch", "vh", "vw"], st = ({
1784
+ }, Or = ["px", "%", "em", "rem", "ch", "vh", "vw"], st = ({
1780
1785
  label: r,
1781
- options: s,
1786
+ options: o,
1782
1787
  borderB: t = !1,
1783
- borderT: n = !1,
1788
+ borderT: a = !1,
1784
1789
  type: l = "arbitrary",
1785
- units: a = Pr,
1790
+ units: s = Or,
1786
1791
  negative: d = !1
1787
1792
  }) => {
1788
- const [i, o] = k(s[0].key), p = ce(), u = I((c) => C(p, "property").includes(c), [p]);
1793
+ const [i, n] = k(o[0].key), p = ce(), c = L((h) => N(p, "property").includes(h), [p]);
1789
1794
  return /* @__PURE__ */ e.jsxs(
1790
1795
  "div",
1791
1796
  {
1792
- className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${t ? "border-b" : ""} ${n ? "border-t" : ""}`,
1797
+ className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${t ? "border-b" : ""} ${a ? "border-t" : ""}`,
1793
1798
  children: [
1794
1799
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
1795
1800
  r && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: r }),
1796
- /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: $.Children.toArray(
1797
- s.map(({ label: c, key: y }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(X, { children: [
1798
- /* @__PURE__ */ e.jsx(Y, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1801
+ /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: P.Children.toArray(
1802
+ o.map(({ label: h, key: g }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(Y, { children: [
1803
+ /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1799
1804
  "button",
1800
1805
  {
1801
1806
  type: "button",
1802
- onClick: () => o(y),
1803
- className: `relative cursor-pointer rounded-full p-1 text-[8px] ${y === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1807
+ onClick: () => n(g),
1808
+ className: `relative cursor-pointer rounded-full p-1 text-[8px] ${g === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1804
1809
  children: [
1805
- $.createElement("div", {
1806
- className: u(y) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1810
+ P.createElement("div", {
1811
+ className: c(g) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1807
1812
  }),
1808
- $.createElement(g(rt, y, Xe), { className: "text-inherit w-3 h-3" })
1813
+ P.createElement(u(rt, g, Ye), { className: "text-inherit w-3 h-3" })
1809
1814
  ]
1810
1815
  }
1811
1816
  ) }),
1812
- /* @__PURE__ */ e.jsx(W, { children: Q(ne(c)) })
1817
+ /* @__PURE__ */ e.jsx(W, { children: Q(ne(h)) })
1813
1818
  ] }) }))
1814
1819
  ) })
1815
1820
  ] }),
@@ -1817,7 +1822,7 @@ const kr = ({ property: r, onChange: s }) => {
1817
1822
  ke,
1818
1823
  {
1819
1824
  type: l,
1820
- units: [...a],
1825
+ units: [...s],
1821
1826
  label: "",
1822
1827
  property: i,
1823
1828
  negative: d
@@ -1826,73 +1831,73 @@ const kr = ({ property: r, onChange: s }) => {
1826
1831
  ]
1827
1832
  }
1828
1833
  );
1829
- }, Or = ({ heading: r, items: s }) => {
1830
- const t = ce(), n = T(() => {
1834
+ }, Mr = ({ heading: r, items: o }) => {
1835
+ const t = ce(), a = R(() => {
1831
1836
  const l = (i) => z(
1832
- i.map((o) => o.styleType === "multiple" ? C(o.options, "key") : o.property)
1833
- ), a = z(
1834
- s.map((i) => i.styleType === "accordion" ? l(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1835
- ), d = C(t, "property");
1836
- return _e(a, d).length > 0;
1837
- }, [t, s]);
1837
+ i.map((n) => n.styleType === "multiple" ? N(n.options, "key") : n.property)
1838
+ ), s = z(
1839
+ o.map((i) => i.styleType === "accordion" ? l(i.items) : i.styleType === "multiple" ? N(i.options, "key") : i.property)
1840
+ ), d = N(t, "property");
1841
+ return _e(s, d).length > 0;
1842
+ }, [t, o]);
1838
1843
  return /* @__PURE__ */ e.jsxs("details", { children: [
1839
1844
  /* @__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: [
1840
1845
  r,
1841
- n ? /* @__PURE__ */ e.jsx(
1846
+ a ? /* @__PURE__ */ e.jsx(
1842
1847
  "span",
1843
1848
  {
1844
- className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${n ? "bg-blue-500" : "bg-gray-300"}`
1849
+ className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${a ? "bg-blue-500" : "bg-gray-300"}`
1845
1850
  }
1846
1851
  ) : null
1847
1852
  ] }) }),
1848
- /* @__PURE__ */ e.jsx("div", { className: "p-2", children: s.map((l) => l.styleType === "multiple" ? /* @__PURE__ */ e.jsx(st, { ...l }, l.label) : /* @__PURE__ */ e.jsx(ke, { ...l }, l.label)) })
1853
+ /* @__PURE__ */ e.jsx("div", { className: "p-2", children: o.map((l) => l.styleType === "multiple" ? /* @__PURE__ */ e.jsx(st, { ...l }, l.label) : /* @__PURE__ */ e.jsx(ke, { ...l }, l.label)) })
1849
1854
  ] });
1850
- }, Mr = Le({}), ge = ({ section: r }) => {
1851
- const s = ce(), t = I(
1852
- (a = []) => {
1855
+ }, _r = Pe({}), ge = ({ section: r }) => {
1856
+ const o = ce(), t = L(
1857
+ (s = []) => {
1853
1858
  const d = {};
1854
- for (let o = 0; o < s.length; o++)
1855
- d[s[o].property] = s[o].cls;
1859
+ for (let n = 0; n < o.length; n++)
1860
+ d[o[n].property] = o[n].cls;
1856
1861
  let i = !0;
1857
- for (const o in a)
1858
- if (!ue(d, o) || d[o] !== a[o]) {
1862
+ for (const n in s)
1863
+ if (!ue(d, n) || d[n] !== s[n]) {
1859
1864
  i = !1;
1860
1865
  break;
1861
1866
  }
1862
1867
  return i;
1863
1868
  },
1864
- [s]
1865
- ), n = T(() => {
1866
- if (s.length > 0 && r.heading === "Classes")
1869
+ [o]
1870
+ ), a = R(() => {
1871
+ if (o.length > 0 && r.heading === "Classes")
1867
1872
  return !0;
1868
- const a = (o) => z(
1869
- o.map((p) => p.styleType === "multiple" ? z(C(p.options, "key")) : p.property)
1873
+ const s = (n) => z(
1874
+ n.map((p) => p.styleType === "multiple" ? z(N(p.options, "key")) : p.property)
1870
1875
  ), d = z(
1871
- r.items.map((o) => o.styleType === "accordion" ? a(o.items) : o.styleType === "multiple" ? z(C(o.options, "key")) : o.property)
1872
- ), i = C(s, "property");
1876
+ r.items.map((n) => n.styleType === "accordion" ? s(n.items) : n.styleType === "multiple" ? z(N(n.options, "key")) : n.property)
1877
+ ), i = N(o, "property");
1873
1878
  return _e(d, i).length > 0;
1874
- }, [s, r.heading, r.items]), l = T(() => ({}), []);
1875
- return /* @__PURE__ */ e.jsx(Mr.Provider, { value: l, children: /* @__PURE__ */ e.jsxs(ae, { value: r.heading, children: [
1879
+ }, [o, r.heading, r.items]), l = R(() => ({}), []);
1880
+ return /* @__PURE__ */ e.jsx(_r.Provider, { value: l, children: /* @__PURE__ */ e.jsxs(ae, { value: r.heading, children: [
1876
1881
  /* @__PURE__ */ e.jsx(ie, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1877
- /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${n ? "bg-blue-500" : "bg-gray-300"}` }),
1882
+ /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${a ? "bg-blue-500" : "bg-gray-300"}` }),
1878
1883
  r.heading
1879
1884
  ] }) }),
1880
- /* @__PURE__ */ e.jsx(de, { className: "bg-gray-100 px-3.5 py-2", children: $.Children.toArray(
1881
- r.items.map((a) => ue(a, "component") ? $.createElement(a.component, { key: a.label }) : ue(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(st, { ...a }, a.label) : a.styleType === "accordion" && t(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(Or, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(ke, { ...a }, a.label))
1885
+ /* @__PURE__ */ e.jsx(de, { className: "bg-gray-100 px-3.5 py-2", children: P.Children.toArray(
1886
+ r.items.map((s) => ue(s, "component") ? P.createElement(s.component, { key: s.label }) : ue(s, "styleType") ? s.styleType === "multiple" ? /* @__PURE__ */ e.jsx(st, { ...s }, s.label) : s.styleType === "accordion" && t(s == null ? void 0 : s.conditions) ? /* @__PURE__ */ e.jsx(Mr, { ...s }, s.label) : null : /* @__PURE__ */ e.jsx(ke, { ...s }, s.label))
1882
1887
  ) })
1883
1888
  ] }) });
1884
- }, _r = ({
1889
+ }, Er = ({
1885
1890
  item: r,
1886
- index: s,
1891
+ index: o,
1887
1892
  canDelete: t,
1888
- onChange: n,
1893
+ onChange: a,
1889
1894
  onRemove: l
1890
1895
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${t ? "border-b" : ""}`, children: [
1891
1896
  /* @__PURE__ */ e.jsx(
1892
1897
  "input",
1893
1898
  {
1894
1899
  name: "key",
1895
- onChange: (a) => n(a, s),
1900
+ onChange: (s) => a(s, o),
1896
1901
  value: r.key,
1897
1902
  placeholder: "Key",
1898
1903
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1905,7 +1910,7 @@ const kr = ({ property: r, onChange: s }) => {
1905
1910
  "input",
1906
1911
  {
1907
1912
  name: "value",
1908
- onChange: (a) => b(r.key) ? {} : n(a, s),
1913
+ onChange: (s) => b(r.key) ? {} : a(s, o),
1909
1914
  value: r.value,
1910
1915
  placeholder: "Value",
1911
1916
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1914,41 +1919,41 @@ const kr = ({ property: r, onChange: s }) => {
1914
1919
  }
1915
1920
  ),
1916
1921
  /* @__PURE__ */ e.jsx(
1917
- Ye,
1922
+ Xe,
1918
1923
  {
1919
1924
  onClick: l,
1920
1925
  className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
1921
1926
  }
1922
1927
  )
1923
1928
  ] })
1924
- ] }), Er = ({ section: r }) => {
1925
- var y;
1926
- const { setSyncState: s } = Xt(), t = te(), [n, l] = k([]), [a] = je(), d = ze(), i = `${g(a, "0.prop")}_attrs`;
1929
+ ] }), Fr = ({ section: r }) => {
1930
+ var g;
1931
+ const { setSyncState: o } = Yt(), t = te(), [a, l] = k([]), [s] = je(), d = ze(), i = `${u(s, "0.prop")}_attrs`;
1927
1932
  se.useEffect(() => {
1928
- const x = C(g(t, i), (m, v) => ({ key: v, value: m }));
1929
- b(x) ? l([]) : l(x);
1930
- }, [g(t, i)]);
1931
- const o = () => l([...n, { key: "", value: "" }]), p = (x) => {
1932
- const m = Oe(n, (v, L) => x !== L);
1933
- c(m);
1934
- }, u = (x, m) => {
1935
- const v = [...n];
1936
- v[m][x.target.name] = x.target.value, c(v);
1937
- }, c = se.useCallback(
1938
- (x = []) => {
1939
- const m = {};
1940
- fe(x, (v) => {
1941
- b(v.key) || Pe(m, v.key, v.value);
1942
- }), d([g(t, "_id")], { [i]: m }), s("UNSAVED");
1933
+ const y = N(u(t, i), (x, f) => ({ key: f, value: x }));
1934
+ b(y) ? l([]) : l(y);
1935
+ }, [u(t, i)]);
1936
+ const n = () => l([...a, { key: "", value: "" }]), p = (y) => {
1937
+ const x = Oe(a, (f, $) => y !== $);
1938
+ h(x);
1939
+ }, c = (y, x) => {
1940
+ const f = [...a];
1941
+ f[x][y.target.name] = y.target.value, h(f);
1942
+ }, h = se.useCallback(
1943
+ (y = []) => {
1944
+ const x = {};
1945
+ be(y, (f) => {
1946
+ b(f.key) || Le(x, f.key, f.value);
1947
+ }), d([u(t, "_id")], { [i]: x }), o("UNSAVED");
1943
1948
  },
1944
- [t, s, d, i]
1949
+ [t, o, d, i]
1945
1950
  );
1946
1951
  return /* @__PURE__ */ e.jsxs(ae, { value: r.heading, children: [
1947
1952
  /* @__PURE__ */ e.jsx(ie, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1948
1953
  /* @__PURE__ */ e.jsx(
1949
1954
  "div",
1950
1955
  {
1951
- className: `h-[8px] w-[8px] rounded-full ${b(g(t, i)) ? "bg-gray-300" : "bg-blue-500"}`
1956
+ className: `h-[8px] w-[8px] rounded-full ${b(u(t, i)) ? "bg-gray-300" : "bg-blue-500"}`
1952
1957
  }
1953
1958
  ),
1954
1959
  "Attributes"
@@ -1959,10 +1964,10 @@ const kr = ({ property: r, onChange: s }) => {
1959
1964
  /* @__PURE__ */ e.jsxs(
1960
1965
  "div",
1961
1966
  {
1962
- className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(n) && b((y = he(n)) == null ? void 0 : y.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"}`,
1967
+ className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(a) && b((g = he(a)) == null ? void 0 : g.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"}`,
1963
1968
  onClick: () => {
1964
- var x;
1965
- !b(n) && b((x = he(n)) == null ? void 0 : x.key) || o();
1969
+ var y;
1970
+ !b(a) && b((y = he(a)) == null ? void 0 : y.key) || n();
1966
1971
  },
1967
1972
  children: [
1968
1973
  /* @__PURE__ */ e.jsx(ve, { width: 12, height: 12 }),
@@ -1972,18 +1977,18 @@ const kr = ({ property: r, onChange: s }) => {
1972
1977
  )
1973
1978
  ] }),
1974
1979
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
1975
- b(n) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
1980
+ b(a) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
1976
1981
  se.Children.toArray(
1977
- C(n, (x, m) => {
1978
- const v = n.length > 0 && m < n.length - 1;
1982
+ N(a, (y, x) => {
1983
+ const f = a.length > 0 && x < a.length - 1;
1979
1984
  return /* @__PURE__ */ e.jsx(
1980
- _r,
1985
+ Er,
1981
1986
  {
1982
- item: x,
1983
- index: m,
1984
- canDelete: v,
1985
- onChange: u,
1986
- onRemove: () => p(m)
1987
+ item: y,
1988
+ index: x,
1989
+ canDelete: f,
1990
+ onChange: c,
1991
+ onRemove: () => p(x)
1987
1992
  }
1988
1993
  );
1989
1994
  })
@@ -1992,11 +1997,11 @@ const kr = ({ property: r, onChange: s }) => {
1992
1997
  ] }) })
1993
1998
  ] });
1994
1999
  };
1995
- function Fr() {
1996
- const [r, s] = qe(), { flexChild: t, gridChild: n } = Yt(), [, l] = tr(Wt), { t: a } = Ee(), [d] = je();
2000
+ function Yr() {
2001
+ const [r, o] = qe(), { flexChild: t, gridChild: a } = Xt(), [, l] = rr(Wt), { t: s } = Ee(), [d] = je();
1997
2002
  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: [
1998
2003
  /* @__PURE__ */ e.jsx(We, { className: "mx-auto text-3xl" }),
1999
- /* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
2004
+ /* @__PURE__ */ e.jsx("h1", { children: s("no_styling_block_selected") }),
2000
2005
  /* @__PURE__ */ e.jsxs("p", { className: "text-xs ", children: [
2001
2006
  "Hint: Styling allowed blocks are highlighted with",
2002
2007
  " ",
@@ -2008,9 +2013,9 @@ function Fr() {
2008
2013
  /* @__PURE__ */ e.jsxs("div", { onClick: () => l(!1), className: "flex h-full flex-col", children: [
2009
2014
  /* @__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: [
2010
2015
  /* @__PURE__ */ e.jsx(Ce, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2011
- /* @__PURE__ */ e.jsxs(ir, { defaultValue: r, onValueChange: (i) => s(i), children: [
2012
- /* @__PURE__ */ e.jsx(dr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(cr, { placeholder: "State" }) }),
2013
- /* @__PURE__ */ e.jsxs(pr, { children: [
2016
+ /* @__PURE__ */ e.jsxs(dr, { defaultValue: r, onValueChange: (i) => o(i), children: [
2017
+ /* @__PURE__ */ e.jsx(cr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(pr, { placeholder: "State" }) }),
2018
+ /* @__PURE__ */ e.jsxs(ur, { children: [
2014
2019
  /* @__PURE__ */ e.jsx(A, { value: "", children: "Normal" }),
2015
2020
  /* @__PURE__ */ e.jsx(A, { value: "hover", children: "Hover" }),
2016
2021
  /* @__PURE__ */ e.jsx(A, { value: "active", children: "Active" }),
@@ -2026,12 +2031,12 @@ function Fr() {
2026
2031
  ] })
2027
2032
  ] })
2028
2033
  ] }) }),
2029
- /* @__PURE__ */ e.jsxs(ar, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2034
+ /* @__PURE__ */ e.jsxs(ir, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
2030
2035
  /* @__PURE__ */ e.jsxs(tt, { type: "multiple", className: "h-full w-full", children: [
2031
- t && /* @__PURE__ */ e.jsx(ge, { section: vr }),
2032
- n ? /* @__PURE__ */ e.jsx(ge, { section: wr }) : null,
2033
- jr.map((i) => /* @__PURE__ */ e.jsx(ge, { section: i }, i.heading)),
2034
- /* @__PURE__ */ e.jsx(Er, { section: { heading: "Attributes" } })
2036
+ t && /* @__PURE__ */ e.jsx(ge, { section: wr }),
2037
+ a ? /* @__PURE__ */ e.jsx(ge, { section: jr }) : null,
2038
+ Cr.map((i) => /* @__PURE__ */ e.jsx(ge, { section: i }, i.heading)),
2039
+ /* @__PURE__ */ e.jsx(Fr, { section: { heading: "Attributes" } })
2035
2040
  ] }),
2036
2041
  /* @__PURE__ */ e.jsx("div", { className: "h-60" })
2037
2042
  ] })
@@ -2050,9 +2055,9 @@ const Xr = {
2050
2055
  deg: 1,
2051
2056
  ms: 0.1
2052
2057
  }, Xl = () => {
2053
- const r = te(), { t: s } = Ee(), [t, n] = $.useState(""), [l, a] = $.useState({
2054
- onDrag: (o) => o,
2055
- onDragEnd: (o) => o,
2058
+ const r = te(), { t: o } = Ee(), [t, a] = P.useState(""), [l, s] = P.useState({
2059
+ onDrag: (n) => n,
2060
+ onDragEnd: (n) => n,
2056
2061
  dragStartY: 0,
2057
2062
  dragging: !1,
2058
2063
  dragStartValue: 0,
@@ -2060,21 +2065,21 @@ const Xr = {
2060
2065
  negative: !1,
2061
2066
  cssProperty: ""
2062
2067
  }), d = xe(
2063
- (o) => {
2064
- const p = !g(l, "negative", !1), u = g(l, "cssProperty", "");
2065
- let c = parseFloat(l.dragStartValue);
2066
- c = Me(c) ? 0 : c;
2067
- let y = Xr[l.dragUnit];
2068
- (Z(u, "scale") || u === "opacity") && (y = 10);
2069
- let m = (l.dragStartY - o.pageY) / y + c;
2070
- p && m < 0 && (m = 0), u === "opacity" && m > 1 && (m = 1), l.onDrag(`${m}`), n(`${m}`);
2068
+ (n) => {
2069
+ const p = !u(l, "negative", !1), c = u(l, "cssProperty", "");
2070
+ let h = parseFloat(l.dragStartValue);
2071
+ h = Me(h) ? 0 : h;
2072
+ let g = Xr[l.dragUnit];
2073
+ (Z(c, "scale") || c === "opacity") && (g = 10);
2074
+ let x = (l.dragStartY - n.pageY) / g + h;
2075
+ p && x < 0 && (x = 0), c === "opacity" && x > 1 && (x = 1), l.onDrag(`${x}`), a(`${x}`);
2071
2076
  },
2072
2077
  [l],
2073
2078
  50
2074
- ), i = I(() => {
2075
- setTimeout(() => l.onDragEnd(`${t}`), 100), a({
2076
- onDrag: (o) => o,
2077
- onDragEnd: (o) => o,
2079
+ ), i = L(() => {
2080
+ setTimeout(() => l.onDragEnd(`${t}`), 100), s({
2081
+ onDrag: (n) => n,
2082
+ onDragEnd: (n) => n,
2078
2083
  dragStartY: 0,
2079
2084
  dragging: !1,
2080
2085
  dragStartValue: 0,
@@ -2082,11 +2087,11 @@ const Xr = {
2082
2087
  negative: !1,
2083
2088
  cssProperty: ""
2084
2089
  });
2085
- }, [l, t, a]);
2086
- return mt(r) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2090
+ }, [l, t, s]);
2091
+ return yt(r) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2087
2092
  /* @__PURE__ */ e.jsx(We, { className: "mx-auto text-3xl" }),
2088
- /* @__PURE__ */ e.jsx("h1", { children: s("no_block_selected_for_styling") })
2089
- ] }) }) : /* @__PURE__ */ e.jsxs(ot.Provider, { value: { setDragData: a }, children: [
2093
+ /* @__PURE__ */ e.jsx("h1", { children: o("no_block_selected_for_styling") })
2094
+ ] }) }) : /* @__PURE__ */ e.jsxs(ot.Provider, { value: { setDragData: s }, children: [
2090
2095
  l.dragging ? /* @__PURE__ */ e.jsx(
2091
2096
  "div",
2092
2097
  {
@@ -2096,19 +2101,19 @@ const Xr = {
2096
2101
  }
2097
2102
  ) : null,
2098
2103
  /* @__PURE__ */ e.jsxs(It, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2099
- /* @__PURE__ */ e.jsxs(Lt, { className: "mx-1 grid grid-cols-2", children: [
2104
+ /* @__PURE__ */ e.jsxs(Pt, { className: "mx-1 grid grid-cols-2", children: [
2100
2105
  /* @__PURE__ */ e.jsx(Re, { value: "settings", children: "Settings" }),
2101
2106
  /* @__PURE__ */ e.jsx(Re, { value: "styling", children: "Styling" })
2102
2107
  ] }),
2103
2108
  /* @__PURE__ */ e.jsx(
2104
- Ve,
2109
+ He,
2105
2110
  {
2106
2111
  value: "settings",
2107
2112
  className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
2108
2113
  children: /* @__PURE__ */ e.jsx(fr, {})
2109
2114
  }
2110
2115
  ),
2111
- /* @__PURE__ */ e.jsx(Ve, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Fr, {}) })
2116
+ /* @__PURE__ */ e.jsx(He, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Yr, {}) })
2112
2117
  ] })
2113
2118
  ] });
2114
2119
  };