@chaibuilder/sdk 1.1.13 → 1.1.14

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 (97) hide show
  1. package/dist/AddBlocks-AG_J7s2Z.cjs +1 -0
  2. package/dist/{AddBlocks-A7WofxHV.js → AddBlocks-FsdsASNp.js} +51 -51
  3. package/dist/{BrandingOptions-wkFrLFI_.js → BrandingOptions-4qzTYdj5.js} +6 -5
  4. package/dist/BrandingOptions-xBuqDpj0.cjs +1 -0
  5. package/dist/{CanvasArea-kF46NWZK.cjs → CanvasArea-4m1-c1yq.cjs} +7 -7
  6. package/dist/{CanvasArea-chEYQhH8.js → CanvasArea-U3egqewu.js} +7 -7
  7. package/dist/{CurrentPage-Wd7F9Egg.js → CurrentPage-spjJpQSM.js} +10 -10
  8. package/dist/CurrentPage-zxrdTVsG.cjs +1 -0
  9. package/dist/{Layers-qMOMP2Mi.js → Layers-QNAlCI4j.js} +81 -81
  10. package/dist/Layers-YyBChBtg.cjs +1 -0
  11. package/dist/MarkAsGlobalBlock-LXDkmFUr.cjs +1 -0
  12. package/dist/{MarkAsGlobalBlock-Czq45Amf.js → MarkAsGlobalBlock-xOHhiMDl.js} +3 -3
  13. package/dist/{PagesPanel-ay4uk4mg.js → PagesPanel--LI-BoSj.js} +6 -6
  14. package/dist/PagesPanel-BeJrveus.cjs +1 -0
  15. package/dist/ProjectPanel-MjcAymKT.cjs +1 -0
  16. package/dist/{ProjectPanel-eLlbfAtj.js → ProjectPanel-VNj0jXca.js} +10 -10
  17. package/dist/Settings-BrYkhn3H.cjs +1 -0
  18. package/dist/{Settings-lpoxaMDu.js → Settings-LZJwbkO6.js} +433 -432
  19. package/dist/{SidePanels-iRXV69vh.js → SidePanels-4lvmnnlw.js} +36 -36
  20. package/dist/SidePanels-_5oUp-eI.cjs +1 -0
  21. package/dist/{Topbar-dQYhW4iv.js → Topbar-_-1HX-EE.js} +3 -3
  22. package/dist/Topbar-gQxbcPtG.cjs +1 -0
  23. package/dist/UnsplashImages-PNp5fYCc.cjs +1 -0
  24. package/dist/{UnsplashImages-AL1ASAoD.js → UnsplashImages-mqK09h8E.js} +6 -6
  25. package/dist/UploadImages-BoSSsLtD.cjs +1 -0
  26. package/dist/{UploadImages-09wuhk2O.js → UploadImages-IDkkRuhx.js} +3 -3
  27. package/dist/{add-page-modal-TXREEFPZ.js → add-page-modal-fZnKopNf.js} +14 -13
  28. package/dist/add-page-modal-rWhPuGd9.cjs +1 -0
  29. package/dist/confirm-alert-dHRDZrA1.cjs +1 -0
  30. package/dist/{confirm-alert-GkfW9chS.js → confirm-alert-ea5xpncD.js} +3 -3
  31. package/dist/core.cjs +1 -1
  32. package/dist/core.d.ts +5 -15
  33. package/dist/core.js +5 -5
  34. package/dist/delete-page-modal-P_KKu12n.cjs +1 -0
  35. package/dist/{delete-page-modal-LNME2FwD.js → delete-page-modal-fRoXPfhG.js} +5 -5
  36. package/dist/form-6qGAOYI3.cjs +1 -0
  37. package/dist/{form-Fk4CaX1A.js → form-irY39wvJ.js} +29 -29
  38. package/dist/functions-86L6n983.js +23 -0
  39. package/dist/functions-Jr7gX_RX.cjs +1 -0
  40. package/dist/{html-to-json-kGgp07Hv.js → html-to-json-Y5M0N8PH.js} +33 -33
  41. package/dist/html-to-json-aAZkA0f5.cjs +1 -0
  42. package/dist/{index-89A3jPHh.js → index-0OqmBgqo.js} +3 -3
  43. package/dist/{index-61c5wSJn.cjs → index-1Dr-VtaT.cjs} +2 -2
  44. package/dist/{index-Q5q5Y_8a.js → index-CQz6j3ex.js} +6 -6
  45. package/dist/index-d55M5MRz.cjs +1 -0
  46. package/dist/lib.cjs +1 -1
  47. package/dist/lib.js +27 -27
  48. package/dist/lodash-2us0VT8I.cjs +36 -0
  49. package/dist/lodash-3gkdNK5u.js +4538 -0
  50. package/dist/{page-viewer-LPx-OTCC.js → page-viewer-39ZtxLzx.js} +6 -6
  51. package/dist/page-viewer-_lc8vqU4.cjs +1 -0
  52. package/dist/{project-general-setting-sSpFUD_Y.js → project-general-setting-CCVuGyHh.js} +9 -8
  53. package/dist/project-general-setting-LEzDhwoq.cjs +1 -0
  54. package/dist/{project-seo-setting-CGVegBtM.js → project-seo-setting-Wo7E46w7.js} +6 -5
  55. package/dist/project-seo-setting-orwH-Ufg.cjs +1 -0
  56. package/dist/render.cjs +1 -1
  57. package/dist/render.js +46 -46
  58. package/dist/server.cjs +1 -1
  59. package/dist/server.js +11 -11
  60. package/dist/single-page-detail-jkDYF7lW.cjs +1 -0
  61. package/dist/{single-page-detail-32H1_IG4.js → single-page-detail-r1GJF00l.js} +29 -28
  62. package/dist/studio.cjs +1 -1
  63. package/dist/studio.js +5 -5
  64. package/dist/ui.cjs +1 -1
  65. package/dist/ui.js +3 -3
  66. package/dist/useAddBlockByDrop-5QW86HjG.js +20 -0
  67. package/dist/useAddBlockByDrop-Ckzuvu-s.cjs +1 -0
  68. package/dist/utils-37UXq2O5.cjs +1 -0
  69. package/dist/{utils-zWMk4dB2.js → utils-XsPKXMVo.js} +5 -5
  70. package/package.json +2 -2
  71. package/dist/AddBlocks-Yuc4t0Z_.cjs +0 -1
  72. package/dist/BrandingOptions-KkPF1OGn.cjs +0 -1
  73. package/dist/CurrentPage-p9MaXTOB.cjs +0 -1
  74. package/dist/Layers-wQ0Fv9Xc.cjs +0 -1
  75. package/dist/MarkAsGlobalBlock-sb3hMXLq.cjs +0 -1
  76. package/dist/PagesPanel--maZxwX5.cjs +0 -1
  77. package/dist/ProjectPanel-KhIpO7m3.cjs +0 -1
  78. package/dist/Settings-n2DpS5Ta.cjs +0 -1
  79. package/dist/SidePanels-Dud5Xh9L.cjs +0 -1
  80. package/dist/Topbar-vqzjB75a.cjs +0 -1
  81. package/dist/UnsplashImages-3Sh4UZ-7.cjs +0 -1
  82. package/dist/UploadImages-mPzLhMiH.cjs +0 -1
  83. package/dist/add-page-modal-FPnIWwqA.cjs +0 -1
  84. package/dist/confirm-alert-YNyc3WEo.cjs +0 -1
  85. package/dist/delete-page-modal-sTbqZPvk.cjs +0 -1
  86. package/dist/form-OhgCJlVA.cjs +0 -1
  87. package/dist/functions-ZWGlwlQY.cjs +0 -1
  88. package/dist/functions-slns6ONz.js +0 -23
  89. package/dist/html-to-json-po8on2ju.cjs +0 -1
  90. package/dist/index-GNmGzavZ.cjs +0 -1
  91. package/dist/page-viewer-wQO9oV9h.cjs +0 -1
  92. package/dist/project-general-setting-8EwuN5lN.cjs +0 -1
  93. package/dist/project-seo-setting-R77SKM1I.cjs +0 -1
  94. package/dist/single-page-detail-nyBEHLtT.cjs +0 -1
  95. package/dist/useAddBlockByDrop-4VH-SMj7.cjs +0 -1
  96. package/dist/useAddBlockByDrop-_kyR0iI4.js +0 -20
  97. package/dist/utils-tx6hqsHY.cjs +0 -1
@@ -1,22 +1,22 @@
1
1
  import { j as e } from "./jsx-runtime-NV737rRe.js";
2
- import * as ne from "react";
3
- import I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as ct, createContext as Ee, useContext as re } from "react";
4
- import { useThrottledCallback as be } from "@react-hookz/web";
5
- import { forEach as Ce, isArray as ae, omit as pt, truncate as ut, includes as E, get as u, first as pe, split as xt, startCase as Y, toLower as te, isEmpty as b, map as C, find as gt, last as fe, filter as ve, set as Me, keys as ht, cloneDeep as mt, each as yt, capitalize as bt, reject as ft, nth as Ve, startsWith as z, isNumber as vt, parseInt as jt, isNaN as _e, findLast as wt, flatten as U, intersection as Fe, has as he, isNull as Ct } from "lodash";
6
- import { useTranslation as Ye } from "react-i18next";
7
- import { PlusIcon as ke, Cross2Icon as We, EyeOpenIcon as kt, EyeClosedIcon as He, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as Nt, ArrowTopRightIcon as Tt, ArrowBottomRightIcon as St, ArrowBottomLeftIcon as Rt, AlignLeftIcon as Vt, AlignCenterHorizontallyIcon as Ht, AlignRightIcon as Bt, StretchHorizontallyIcon as At, FontItalicIcon as Dt, UnderlineIcon as It, OverlineIcon as Pt, LetterCaseUppercaseIcon as $t, Cross1Icon as Lt, InfoCircledIcon as Ne, MinusIcon as Ot, BoxIcon as Xe, RowSpacingIcon as Et, TriangleDownIcon as Mt, CrossCircledIcon as _t, TrashIcon as Ft, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
- import { b0 as Yt, b1 as Wt, B as ue, b2 as Xt, b3 as Zt, b4 as zt, b5 as Ut, b6 as Gt, b7 as Kt, b8 as qt, a6 as G, am as Jt, an as Qt, ao as er, b9 as tr, ak as rr, ba as lr, al as sr, aD as W, aE as X, aG as Z, bb as or, bc as nr, bd as ar, be as ir, bf as dr, bg as cr, p as ze, ac as Ue, i as pr, bh as Ge, bi as ie, bj as de, bk as ce, aj as Te, P as Ke, a3 as qe, j as Je, aI as Se, bl as ur, bm as xr, a4 as xe, W as gr, a9 as Qe, R as Be, ag as hr, ad as mr, bn as yr, aq as br, ar as fr, as as vr, at as jr, au as H, bo as et, ax as wr, ay as Cr, az as Ae, aA as De } from "./index-89A3jPHh.js";
9
- import { u as kr } from "./controls-G0puEH71.js";
10
- import { Check as Nr, EditIcon as Tr, TrashIcon as Sr } from "lucide-react";
11
- import { getBlockComponent as tt, getChaiDataProviders as Rr } from "@chaibuilder/runtime";
12
- import { E as rt, u as lt } from "./index-Q5q5Y_8a.js";
13
- import Vr from "@rjsf/core";
14
- import Hr from "@rjsf/validator-ajv8";
15
- import { useAtom as Br } from "jotai";
16
- import Ar from "react-autosuggest";
17
- import Dr from "fuse.js";
18
- import { A as Ir, C as ge, e as Pr } from "./utils-zWMk4dB2.js";
19
- import { a as $r } from "./MODIFIERS-MLfpKQY1.js";
2
+ import * as ae from "react";
3
+ import P, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as ct, createContext as Me, useContext as re } from "react";
4
+ import { useThrottledCallback as fe } from "@react-hookz/web";
5
+ import { f as pe, L as ne, o as pt, M as ut, c as M, g as u, h as ue, N as xt, O as W, P as te, a as b, d as C, j as gt, l as ve, b as je, s as Ee, k as ht, Q as mt, u as yt, R as bt, S as Ve, e as z, T as ft, p as vt, U as _e, V as jt, n as U, W as Fe, t as me, A as wt } from "./lodash-3gkdNK5u.js";
6
+ import { useTranslation as We } from "react-i18next";
7
+ import { PlusIcon as ke, Cross2Icon as Ye, EyeOpenIcon as Ct, EyeClosedIcon as He, BorderAllIcon as O, WidthIcon as R, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as kt, ArrowTopRightIcon as Nt, ArrowBottomRightIcon as Tt, ArrowBottomLeftIcon as St, AlignLeftIcon as Rt, AlignCenterHorizontallyIcon as Vt, AlignRightIcon as Ht, StretchHorizontallyIcon as Bt, FontItalicIcon as At, UnderlineIcon as Dt, OverlineIcon as Pt, LetterCaseUppercaseIcon as It, Cross1Icon as $t, InfoCircledIcon as Ne, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Mt, CrossCircledIcon as Et, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
8
+ import { b0 as Ft, b1 as Wt, B as xe, b2 as Yt, b3 as Xt, b4 as Zt, b5 as zt, b6 as Ut, b7 as Gt, b8 as Kt, a6 as G, am as qt, an as Jt, ao as Qt, b9 as er, ak as tr, ba as rr, al as sr, aD as Y, aE as X, aG as Z, bb as lr, bc as or, bd as ar, be as nr, bf as ir, bg as dr, p as ze, ac as Ue, i as cr, bh as Ge, bi as ie, bj as de, bk as ce, aj as Te, P as Ke, a3 as qe, j as Je, aI as Se, bl as pr, bm as ur, a4 as ge, W as xr, a9 as Qe, R as Be, ag as gr, ad as hr, bn as mr, aq as yr, ar as br, as as fr, at as vr, au as H, bo as et, ax as jr, ay as wr, az as Ae, aA as De } from "./index-0OqmBgqo.js";
9
+ import { u as Cr } from "./controls-G0puEH71.js";
10
+ import { Check as kr, EditIcon as Nr, TrashIcon as Tr } from "lucide-react";
11
+ import { getBlockComponent as tt, getChaiDataProviders as Sr } from "@chaibuilder/runtime";
12
+ import { E as rt, u as st } from "./index-CQz6j3ex.js";
13
+ import Rr from "@rjsf/core";
14
+ import Vr from "@rjsf/validator-ajv8";
15
+ import { useAtom as Hr } from "jotai";
16
+ import Br from "react-autosuggest";
17
+ import Ar from "fuse.js";
18
+ import { A as Dr, C as he, e as Pr } from "./utils-XsPKXMVo.js";
19
+ import { a as Ir } from "./MODIFIERS-MLfpKQY1.js";
20
20
  import "@radix-ui/react-toggle";
21
21
  import "class-variance-authority";
22
22
  import "@radix-ui/react-switch";
@@ -42,6 +42,7 @@ import "react-dom";
42
42
  import "react-quill";
43
43
  import "flat-to-nested";
44
44
  import "redux-undo";
45
+ import "lodash";
45
46
  import "i18next";
46
47
  import "clsx";
47
48
  import "@floating-ui/react-dom";
@@ -51,28 +52,28 @@ import "react-dnd";
51
52
  import "@minoru/react-dnd-treeview";
52
53
  import "react-hotkeys-hook";
53
54
  import "sonner";
54
- import "./html-to-json-kGgp07Hv.js";
55
+ import "./html-to-json-Y5M0N8PH.js";
55
56
  import "himalaya";
56
57
  import "tailwind-merge";
57
- const Lr = I.lazy(() => import("react-json-view"));
58
- function Or(t) {
59
- const l = [], r = {};
60
- function s(o, n) {
61
- Ce(n, (d, i) => {
62
- const a = o ? `${o}.${i}` : i, p = ae(d) ? "list" : typeof d;
63
- l.push(a), r[a] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ae(d) && s(a, d);
58
+ const $r = P.lazy(() => import("react-json-view"));
59
+ function Lr(t) {
60
+ const s = [], r = {};
61
+ function l(o, a) {
62
+ pe(a, (d, i) => {
63
+ const n = o ? `${o}.${i}` : i, p = ne(d) ? "list" : typeof d;
64
+ s.push(n), r[n] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ne(d) && l(n, d);
64
65
  });
65
66
  }
66
- return s("", pt(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
67
+ return l("", pt(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: s, pathsType: r };
67
68
  }
68
- const je = ({ data: t, fullView: l }) => {
69
+ const we = ({ data: t, fullView: s }) => {
69
70
  if (!t)
70
71
  return null;
71
72
  const r = typeof t;
72
- return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
73
+ return s ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
73
74
  /* @__PURE__ */ e.jsx("div", { className: "h-3" }),
74
75
  /* @__PURE__ */ e.jsx(rt, { children: /* @__PURE__ */ e.jsx(
75
- Lr,
76
+ $r,
76
77
  {
77
78
  style: { maxHeight: "40vh", overflowY: "auto" },
78
79
  name: "Content",
@@ -87,48 +88,48 @@ const je = ({ data: t, fullView: l }) => {
87
88
  /* @__PURE__ */ e.jsx("span", { className: "font-medium text-gray-800/80", children: "Content: " }),
88
89
  t
89
90
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: ut(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
90
- }, Ie = ({
91
+ }, Pe = ({
91
92
  type: t,
92
- value: l = "",
93
+ value: s = "",
93
94
  setValue: r,
94
- data: s,
95
+ data: l,
95
96
  onChange: o,
96
- dataType: n,
97
+ dataType: a,
97
98
  appliedBindings: d
98
99
  }) => {
99
- const { paths: i, pathsType: a } = Or(s), p = t === "PROP" ? tt(s == null ? void 0 : s._type) : {}, g = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
100
- (x) => !E(d, x) && u(p, `props.${pe(xt(x, "."))}.binding`)
101
- ) : i.filter((x) => n === u(a, x, "")), [t, i, d, n, p]);
100
+ const { paths: i, pathsType: n } = Lr(l), p = t === "PROP" ? tt(l == null ? void 0 : l._type) : {}, g = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
101
+ (x) => !M(d, x) && u(p, `props.${ue(xt(x, "."))}.binding`)
102
+ ) : i.filter((x) => a === u(n, x, "")), [t, i, d, a, p]);
102
103
  return _(() => {
103
- l && o(l);
104
- }, [l, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
104
+ s && o(s);
105
+ }, [s, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
105
106
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
106
- /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: Y(te(t)) }),
107
- /* @__PURE__ */ e.jsxs(Yt, { open: c, onOpenChange: m, children: [
107
+ /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: W(te(t)) }),
108
+ /* @__PURE__ */ e.jsxs(Ft, { open: c, onOpenChange: m, children: [
108
109
  /* @__PURE__ */ e.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
109
- ue,
110
+ xe,
110
111
  {
111
112
  variant: "outline",
112
113
  size: "sm",
113
- className: ` ${b(l) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
114
- children: l ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
114
+ className: ` ${b(s) ? "bg-blue-500 text-gray-100 hover:bg-blue-400 hover:text-white w-44 justify-center" : "min-w-[350px] justify-between items-center"}`,
115
+ children: s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
115
116
  /* @__PURE__ */ e.jsxs("span", { className: "text-sm pr-8", children: [
116
- g && /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 mr-2 rounded-full", children: Y(n) }),
117
- l
117
+ g && /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 mr-2 rounded-full", children: W(a) }),
118
+ s
118
119
  ] }),
119
120
  /* @__PURE__ */ e.jsx("span", { className: "text-[9px] text-blue-400 underline cursor-pointer hover:text-blue-700", children: "Change" })
120
121
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
121
122
  "+ Set ",
122
- Y(te(t))
123
+ W(te(t))
123
124
  ] })
124
125
  }
125
126
  ) }),
126
- /* @__PURE__ */ e.jsx(Xt, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Zt, { children: [
127
- /* @__PURE__ */ e.jsx(zt, { placeholder: `Choose ${te(t)}...` }),
128
- /* @__PURE__ */ e.jsxs(Ut, { children: [
129
- /* @__PURE__ */ e.jsx(Gt, { children: "No results found." }),
130
- /* @__PURE__ */ e.jsx(Kt, { children: C(h, (x) => /* @__PURE__ */ e.jsxs(
131
- qt,
127
+ /* @__PURE__ */ e.jsx(Yt, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Xt, { children: [
128
+ /* @__PURE__ */ e.jsx(Zt, { placeholder: `Choose ${te(t)}...` }),
129
+ /* @__PURE__ */ e.jsxs(zt, { children: [
130
+ /* @__PURE__ */ e.jsx(Ut, { children: "No results found." }),
131
+ /* @__PURE__ */ e.jsx(Gt, { children: C(h, (x) => /* @__PURE__ */ e.jsxs(
132
+ Kt,
132
133
  {
133
134
  value: x,
134
135
  className: `cursor-pointer ${g ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
@@ -137,10 +138,10 @@ const je = ({ data: t, fullView: l }) => {
137
138
  },
138
139
  children: [
139
140
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
140
- /* @__PURE__ */ e.jsx(Nr, { className: `w-4 h-4 text-green-500 ${l === x ? "" : "opacity-0"}` }),
141
+ /* @__PURE__ */ e.jsx(kr, { className: `w-4 h-4 text-green-500 ${s === x ? "" : "opacity-0"}` }),
141
142
  x
142
143
  ] }),
143
- g ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(u(a, x, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(je, { data: u(s, x) }) })
144
+ g ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: W(u(n, x, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(we, { data: u(l, x) }) })
144
145
  ]
145
146
  },
146
147
  x
@@ -149,54 +150,54 @@ const je = ({ data: t, fullView: l }) => {
149
150
  ] }) })
150
151
  ] })
151
152
  ] }),
152
- !g && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(je, { data: u(s, l, ""), fullView: !0 }) })
153
+ !g && !b(s) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(we, { data: u(l, s, ""), fullView: !0 }) })
153
154
  ] });
154
- }, Er = ({
155
+ }, Or = ({
155
156
  appliedBindings: t = [],
156
- onAddBinding: l,
157
+ onAddBinding: s,
157
158
  editMode: r,
158
- item: s
159
+ item: l
159
160
  }) => {
160
- const [o, n] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), a = G(), [p] = lt(), g = A(
161
+ const [o, a] = w(r ? l.key : ""), [d, i] = w(r ? l.value : ""), n = G(), [p] = st(), g = A(
161
162
  (h, x) => {
162
163
  if (b(h))
163
164
  return "";
164
165
  {
165
- const f = u(x === "PROP" ? a : p, h, "");
166
- if (ae(f))
166
+ const f = u(x === "PROP" ? n : p, h, "");
167
+ if (ne(f))
167
168
  return "list";
168
169
  const T = typeof f;
169
170
  return T === "string" ? "text" : T === "object" ? "model" : T;
170
171
  }
171
172
  },
172
- [a, p]
173
- ), [c, m] = w(r ? g(s.key, "PROP") : "");
173
+ [n, p]
174
+ ), [c, m] = w(r ? g(l.key, "PROP") : "");
174
175
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
175
- /* @__PURE__ */ e.jsxs(Jt, { children: [
176
- /* @__PURE__ */ e.jsx(Qt, { children: "Add Data Binding" }),
177
- /* @__PURE__ */ e.jsx(er, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
176
+ /* @__PURE__ */ e.jsxs(qt, { children: [
177
+ /* @__PURE__ */ e.jsx(Jt, { children: "Add Data Binding" }),
178
+ /* @__PURE__ */ e.jsx(Qt, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
178
179
  ] }),
179
180
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 relative", children: [
180
181
  /* @__PURE__ */ e.jsx(
181
- Ie,
182
+ Pe,
182
183
  {
183
184
  type: "PROP",
184
185
  isDisabled: !1,
185
186
  placeholder: "Enter prop key",
186
187
  value: o,
187
- setValue: n,
188
+ setValue: a,
188
189
  onChange: (h) => {
189
190
  const x = g(h, "PROP");
190
- n(h), c !== x && i(""), m(x);
191
+ a(h), c !== x && i(""), m(x);
191
192
  },
192
- data: a,
193
+ data: n,
193
194
  dataType: c,
194
195
  appliedBindings: t
195
196
  }
196
197
  ),
197
198
  /* @__PURE__ */ e.jsx("div", { className: "h-2" }),
198
199
  /* @__PURE__ */ e.jsx(
199
- Ie,
200
+ Pe,
200
201
  {
201
202
  type: "PATH",
202
203
  isDisabled: b(o),
@@ -213,196 +214,196 @@ const je = ({ data: t, fullView: l }) => {
213
214
  }
214
215
  )
215
216
  ] }),
216
- /* @__PURE__ */ e.jsx(tr, { children: /* @__PURE__ */ e.jsx(
217
- ue,
217
+ /* @__PURE__ */ e.jsx(er, { children: /* @__PURE__ */ e.jsx(
218
+ xe,
218
219
  {
219
220
  type: "submit",
220
221
  className: "mt-4",
221
222
  disabled: b(o) && b(d),
222
- onClick: () => l({ key: o, value: d }),
223
+ onClick: () => s({ key: o, value: d }),
223
224
  children: "Save"
224
225
  }
225
226
  ) })
226
227
  ] });
227
- }, st = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: o = !0, item: n = {} }) => {
228
+ }, lt = ({ disabled: t, children: s, onAddBinding: r, appliedBindings: l, editMode: o = !0, item: a = {} }) => {
228
229
  const [d, i] = w(!1);
229
- return /* @__PURE__ */ e.jsxs(rr, { children: [
230
- /* @__PURE__ */ e.jsx(lr, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
230
+ return /* @__PURE__ */ e.jsxs(tr, { children: [
231
+ /* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: s }),
231
232
  d && /* @__PURE__ */ e.jsx(sr, { children: /* @__PURE__ */ e.jsx(
232
- Er,
233
+ Or,
233
234
  {
234
- item: n,
235
+ item: a,
235
236
  editMode: o,
236
- appliedBindings: s,
237
- onAddBinding: (a) => {
238
- r(a), i(!1);
237
+ appliedBindings: l,
238
+ onAddBinding: (n) => {
239
+ r(n), i(!1);
239
240
  }
240
241
  }
241
242
  ) })
242
243
  ] });
243
244
  }, Mr = ({
244
245
  item: t,
245
- onAddBinding: l,
246
+ onAddBinding: s,
246
247
  onRemove: r,
247
- selectedBlock: s,
248
+ selectedBlock: l,
248
249
  dataProvider: o,
249
- appliedBindings: n
250
+ appliedBindings: a
250
251
  }) => {
251
- const [d, i] = w("string"), a = (p, g) => {
252
+ const [d, i] = w("string"), n = (p, g) => {
252
253
  if (b(p))
253
254
  return "";
254
255
  {
255
- const c = u(g === "PROP" ? s : o, p, "");
256
- if (ae(c))
256
+ const c = u(g === "PROP" ? l : o, p, "");
257
+ if (ne(c))
257
258
  return "list";
258
259
  const m = typeof c;
259
260
  return m === "string" ? "text" : m === "object" ? "model" : m;
260
261
  }
261
262
  };
262
- return _(() => i(() => a(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
263
+ return _(() => i(() => n(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
263
264
  /* @__PURE__ */ e.jsx("div", { className: "text-gray-500 font-normal text-sm", children: t.key }),
264
265
  /* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
265
- /* @__PURE__ */ e.jsx(je, { data: u(o, t.value, "") }),
266
+ /* @__PURE__ */ e.jsx(we, { data: u(o, t.value, "") }),
266
267
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
267
- /* @__PURE__ */ e.jsx(st, { editMode: !0, onAddBinding: l, appliedBindings: n, item: t, children: /* @__PURE__ */ e.jsx(Tr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
268
+ /* @__PURE__ */ e.jsx(lt, { editMode: !0, onAddBinding: s, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(Nr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
268
269
  /* @__PURE__ */ e.jsx(
269
- Sr,
270
+ Tr,
270
271
  {
271
272
  onClick: () => r(),
272
273
  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"
273
274
  }
274
275
  )
275
276
  ] }),
276
- !b(d) && !b(t.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-0 top-1 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: Y(d) })
277
+ !b(d) && !b(t.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-0 top-1 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: W(d) })
277
278
  ] });
278
- }, _r = ({ bindingData: t, onChange: l }) => {
279
- const r = G(), [s] = lt(), o = Rr(), [n, d] = w(
279
+ }, Er = ({ bindingData: t, onChange: s }) => {
280
+ const r = G(), [l] = st(), o = Sr(), [a, d] = w(
280
281
  C(t, (c, m) => ({ key: m, value: c }))
281
282
  );
282
283
  _(() => {
283
284
  d(C(t, (c, m) => ({ key: m, value: c })));
284
285
  }, [r == null ? void 0 : r._id]);
285
286
  const i = N(() => {
286
- if (b(s))
287
+ if (b(l))
287
288
  return !0;
288
- if (b(n))
289
+ if (b(a))
289
290
  return !1;
290
- const c = fe(n);
291
+ const c = ve(a);
291
292
  return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
292
- }, [s, n]), a = (c) => {
293
- const m = ve(n, (h) => h.key !== c.key);
293
+ }, [l, a]), n = (c) => {
294
+ const m = je(a, (h) => h.key !== c.key);
294
295
  d([...m, c]), g([...m, c]);
295
296
  }, p = (c) => {
296
- const m = ve(n, (h, x) => c !== x);
297
+ const m = je(a, (h, x) => c !== x);
297
298
  g([...m]);
298
299
  }, g = A(
299
300
  (c = []) => {
300
301
  if (d(c), b(c)) {
301
- l({});
302
+ s({});
302
303
  return;
303
304
  }
304
305
  const m = {};
305
- Ce(c, (h) => {
306
- !b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Me(m, h.key, h.value);
307
- }), l(m);
306
+ pe(c, (h) => {
307
+ !b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Ee(m, h.key, h.value);
308
+ }), s(m);
308
309
  },
309
- [l]
310
+ [s]
310
311
  );
311
312
  return b(o) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
312
313
  "You have no data providers registered. Please add a data provider to your project. ",
313
314
  /* @__PURE__ */ e.jsx("br", {}),
314
315
  /* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
315
316
  ] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
316
- C(n, (c, m) => /* @__PURE__ */ e.jsx(
317
+ C(a, (c, m) => /* @__PURE__ */ e.jsx(
317
318
  Mr,
318
319
  {
319
320
  item: c,
320
- onAddBinding: a,
321
+ onAddBinding: n,
321
322
  onRemove: () => p(m),
322
323
  selectedBlock: r,
323
- dataProvider: s,
324
- appliedBindings: C(n, "key")
324
+ dataProvider: l,
325
+ appliedBindings: C(a, "key")
325
326
  },
326
327
  c.key
327
328
  )),
328
- /* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
329
+ /* @__PURE__ */ e.jsxs(Y, { delayDuration: 200, children: [
329
330
  /* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
330
- st,
331
+ lt,
331
332
  {
332
333
  disabled: i,
333
- appliedBindings: C(n, "key"),
334
- onAddBinding: a,
334
+ appliedBindings: C(a, "key"),
335
+ onAddBinding: n,
335
336
  children: /* @__PURE__ */ e.jsx(
336
337
  "span",
337
338
  {
338
339
  className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30"}`,
339
- children: b(s) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
340
+ children: b(l) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
340
341
  }
341
342
  )
342
343
  }
343
344
  ) }),
344
- i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(s) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
345
+ i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(l) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
345
346
  ] })
346
347
  ] });
347
- }, Fr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), me = ct(({ createHistorySnapshot: t, properties: l, formData: r, onChange: s }) => {
348
- const o = { type: "object", properties: {} }, n = {};
349
- return Object.keys(l).forEach((d) => {
350
- const i = l[d];
351
- if (E(["slot", "styles"], i.type))
348
+ }, _r = () => /* @__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" }), ye = ct(({ createHistorySnapshot: t, properties: s, formData: r, onChange: l }) => {
349
+ const o = { type: "object", properties: {} }, a = {};
350
+ return Object.keys(s).forEach((d) => {
351
+ const i = s[d];
352
+ if (M(["slot", "styles"], i.type))
352
353
  return;
353
- const a = d;
354
- o.properties[a] = or(i), n[a] = nr(i);
354
+ const n = d;
355
+ o.properties[n] = lr(i), a[n] = or(i);
355
356
  }), /* @__PURE__ */ e.jsx(
356
- Vr,
357
+ Rr,
357
358
  {
358
359
  widgets: {
359
- binding: Fr,
360
+ binding: _r,
360
361
  richtext: ar,
361
- icon: ir,
362
- image: dr
362
+ icon: nr,
363
+ image: ir
363
364
  },
364
- fields: { link: cr },
365
+ fields: { link: dr },
365
366
  idSeparator: ".",
366
367
  autoComplete: "off",
367
368
  omitExtraData: !1,
368
369
  liveOmit: !1,
369
370
  liveValidate: !0,
370
- validator: Hr,
371
- uiSchema: n,
371
+ validator: Vr,
372
+ uiSchema: a,
372
373
  onBlur: t,
373
374
  schema: o,
374
375
  formData: r,
375
- onChange: s
376
+ onChange: l
376
377
  }
377
378
  );
378
379
  });
379
- function Yr() {
380
- const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = tt(t._type), o = { ...t }, n = pr("dataBindingSupport", !1), d = () => l(), i = ({ formData: c }, m) => {
380
+ function Fr() {
381
+ const t = G(), { createSnapshot: s } = ze(), r = Ue(), l = tt(t._type), o = { ...t }, a = cr("dataBindingSupport", !1), d = () => s(), i = ({ formData: c }, m) => {
381
382
  if (m) {
382
383
  const h = m.replace("root.", "");
383
384
  r([t._id], { [h]: u(c, h) });
384
385
  }
385
- }, a = {
386
- _name: kr({
386
+ }, n = {
387
+ _name: Cr({
387
388
  title: "Name",
388
389
  default: u(t, "_name", t._type)
389
390
  })
390
391
  }, p = ht(u(o, "_bindings", {})), g = N(() => {
391
- const c = mt(u(s, "props", {}));
392
- return n && yt(p, (m) => delete c[m]), c;
393
- }, [s, p, n]);
392
+ const c = mt(u(l, "props", {}));
393
+ return a && pe(p, (m) => delete c[m]), c;
394
+ }, [l, p, a]);
394
395
  return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
395
396
  /* @__PURE__ */ e.jsx(
396
- me,
397
+ ye,
397
398
  {
398
399
  onChange: i,
399
400
  createHistorySnapshot: d,
400
401
  formData: o,
401
- properties: a
402
+ properties: n
402
403
  }
403
404
  ),
404
405
  /* @__PURE__ */ e.jsx("hr", { className: "mt-4" }),
405
- n ? /* @__PURE__ */ e.jsxs(Ge, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
406
+ a ? /* @__PURE__ */ e.jsxs(Ge, { type: "multiple", defaultValue: ["STATIC", "BINDING"], className: "h-full w-full", children: [
406
407
  /* @__PURE__ */ e.jsxs(ie, { value: "BINDING", children: [
407
408
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline bg-gray-100 ml-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
408
409
  /* @__PURE__ */ e.jsx(
@@ -414,7 +415,7 @@ function Yr() {
414
415
  "Data Binding"
415
416
  ] }) }),
416
417
  /* @__PURE__ */ e.jsx(ce, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
417
- _r,
418
+ Er,
418
419
  {
419
420
  bindingData: u(o, "_bindings", {}),
420
421
  onChange: (c) => {
@@ -431,13 +432,13 @@ function Yr() {
431
432
  /* @__PURE__ */ e.jsxs(ce, { className: "pt-4", children: [
432
433
  b(p) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
433
434
  "Data binding is set for ",
434
- /* @__PURE__ */ e.jsx("b", { children: C(p, bt).join(", ") }),
435
+ /* @__PURE__ */ e.jsx("b", { children: C(p, yt).join(", ") }),
435
436
  " ",
436
437
  p.length === 1 ? "property" : "properties",
437
438
  ". Remove data binding to edit static content."
438
439
  ] }),
439
440
  /* @__PURE__ */ e.jsx(
440
- me,
441
+ ye,
441
442
  {
442
443
  onChange: i,
443
444
  createHistorySnapshot: d,
@@ -448,7 +449,7 @@ function Yr() {
448
449
  ] })
449
450
  ] })
450
451
  ] }) : /* @__PURE__ */ e.jsx(
451
- me,
452
+ ye,
452
453
  {
453
454
  onChange: i,
454
455
  createHistorySnapshot: d,
@@ -459,7 +460,7 @@ function Yr() {
459
460
  /* @__PURE__ */ e.jsx("div", { className: "pb-60" })
460
461
  ] });
461
462
  }
462
- const Pe = new Dr(Ir, {
463
+ const Ie = new Ar(Dr, {
463
464
  isCaseSensitive: !1,
464
465
  threshold: 0.2,
465
466
  minMatchCharLength: 2,
@@ -467,20 +468,20 @@ const Pe = new Dr(Ir, {
467
468
  });
468
469
  function Wr() {
469
470
  var D;
470
- const [t] = Te(), l = G(), r = Ke(), s = qe(), [o] = Je(), [n, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, a = ft((u(l, i, "").replace($r, "").split(",").pop() || "").split(" "), b), p = () => {
471
- const j = n.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
471
+ const [t] = Te(), s = G(), r = Ke(), l = qe(), [o] = Je(), [a, d] = w(""), i = (D = ue(t)) == null ? void 0 : D.prop, n = bt((u(s, i, "").replace(Ir, "").split(",").pop() || "").split(" "), b), p = () => {
472
+ const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
472
473
  r(o, j, !0), d("");
473
474
  }, [g, c] = w([]), m = ({ value: j }) => {
474
- const L = j.trim().toLowerCase(), P = L.match(/.+:/g);
475
+ const L = j.trim().toLowerCase(), I = L.match(/.+:/g);
475
476
  let k = [];
476
- if (P && P.length > 0) {
477
- const [$] = P, F = L.replace($, "");
478
- k = Pe.search(F).map((y) => ({
477
+ if (I && I.length > 0) {
478
+ const [$] = I, F = L.replace($, "");
479
+ k = Ie.search(F).map((y) => ({
479
480
  ...y,
480
481
  item: { ...y.item, name: $ + y.item.name }
481
482
  }));
482
483
  } else
483
- k = Pe.search(L);
484
+ k = Ie.search(L);
484
485
  c(C(k, "item"));
485
486
  }, h = () => {
486
487
  c([]);
@@ -490,9 +491,9 @@ function Wr() {
490
491
  autoCapitalize: "off",
491
492
  spellCheck: !1,
492
493
  placeholder: "Enter class name",
493
- value: n,
494
+ value: a,
494
495
  onKeyDown: (j) => {
495
- j.key === "Enter" && n.trim() !== "" && p();
496
+ j.key === "Enter" && a.trim() !== "" && p();
496
497
  },
497
498
  onChange: (j, { newValue: L }) => d(L),
498
499
  className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1"
@@ -505,7 +506,7 @@ function Wr() {
505
506
  /* @__PURE__ */ e.jsx(Se, { className: "mt-2", children: "Add Tailwind classes" }),
506
507
  /* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
507
508
  /* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
508
- Ar,
509
+ Br,
509
510
  {
510
511
  suggestions: g,
511
512
  onSuggestionsFetchRequested: m,
@@ -524,30 +525,30 @@ function Wr() {
524
525
  }
525
526
  ) }),
526
527
  /* @__PURE__ */ e.jsx(
527
- ue,
528
+ xe,
528
529
  {
529
530
  variant: "outline",
530
531
  className: "h-6 border-gray-700",
531
532
  onClick: p,
532
- disabled: n.trim() === "",
533
+ disabled: a.trim() === "",
533
534
  size: "sm",
534
535
  children: /* @__PURE__ */ e.jsx(ke, {})
535
536
  }
536
537
  )
537
538
  ] }),
538
539
  /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-wrap gap-2", children: [
539
- b(a) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
540
- ne.Children.toArray(
541
- a.map((j) => /* @__PURE__ */ e.jsxs(
540
+ 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" }),
541
+ ae.Children.toArray(
542
+ n.map((j) => /* @__PURE__ */ e.jsxs(
542
543
  "div",
543
544
  {
544
545
  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",
545
546
  children: [
546
547
  j,
547
548
  /* @__PURE__ */ e.jsx(
548
- We,
549
+ Ye,
549
550
  {
550
- onClick: () => s(o, [j]),
551
+ onClick: () => l(o, [j]),
551
552
  className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
552
553
  }
553
554
  )
@@ -561,7 +562,7 @@ function Wr() {
561
562
  }
562
563
  );
563
564
  }
564
- const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
565
+ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Yr = {
565
566
  heading: "Flex Child",
566
567
  items: [
567
568
  { type: "arbitrary", label: "Basis", units: B, property: "flexBasis" },
@@ -570,7 +571,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
570
571
  { type: "dropdown", label: "Grow", property: "flexGrow" },
571
572
  { type: "dropdown", label: "Shrink", property: "flexShrink" }
572
573
  ]
573
- }, Zr = {
574
+ }, Xr = {
574
575
  heading: "Grid Child",
575
576
  items: [
576
577
  { type: "range", label: "Col Span", property: "gridColSpan" },
@@ -581,7 +582,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
581
582
  { type: "range", label: "Row End", property: "gridRowEnd" },
582
583
  { type: "range", label: "Order", property: "order" }
583
584
  ]
584
- }, zr = [
585
+ }, Zr = [
585
586
  {
586
587
  heading: "Layout",
587
588
  items: [
@@ -988,7 +989,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
988
989
  ], ot = {
989
990
  "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" }) }),
990
991
  // visibility
991
- visible: kt,
992
+ visible: Ct,
992
993
  invisible: He,
993
994
  // display
994
995
  hidden: He,
@@ -1024,10 +1025,10 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1024
1025
  borderRadiusRight: J,
1025
1026
  borderRadiusBottom: Q,
1026
1027
  borderRadiusLeft: ee,
1027
- borderRadiusTopLeft: Nt,
1028
- borderRadiusTopRight: Tt,
1029
- borderRadiusBottomRight: St,
1030
- borderRadiusBottomLeft: Rt,
1028
+ borderRadiusTopLeft: kt,
1029
+ borderRadiusTopRight: Nt,
1030
+ borderRadiusBottomRight: Tt,
1031
+ borderRadiusBottomLeft: St,
1031
1032
  divideXWidth: R,
1032
1033
  divideYWidth: V,
1033
1034
  scale: O,
@@ -1054,18 +1055,18 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1054
1055
  marginBottom: Q,
1055
1056
  marginLeft: ee,
1056
1057
  // text-align
1057
- textLeft: Vt,
1058
- textCenter: Ht,
1059
- textRight: Bt,
1060
- textJustify: At,
1058
+ textLeft: Rt,
1059
+ textCenter: Vt,
1060
+ textRight: Ht,
1061
+ textJustify: Bt,
1061
1062
  // font style
1062
- italic: Dt,
1063
+ italic: At,
1063
1064
  // "not-italic": "",
1064
1065
  // decoration
1065
- underline: It,
1066
+ underline: Dt,
1066
1067
  overline: Pt,
1067
1068
  // transform
1068
- uppercase: $t,
1069
+ uppercase: It,
1069
1070
  block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1070
1071
  /* @__PURE__ */ e.jsx(
1071
1072
  "path",
@@ -1106,7 +1107,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1106
1107
  }
1107
1108
  )
1108
1109
  ] }),
1109
- "float-none": We,
1110
+ "float-none": Ye,
1110
1111
  // position
1111
1112
  fixed: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1112
1113
  /* @__PURE__ */ e.jsx(
@@ -1178,101 +1179,101 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
1178
1179
  }
1179
1180
  )
1180
1181
  ] }),
1181
- static: Lt
1182
- }, le = Ee({ canReset: !1, canChange: !0 }), Ur = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
1182
+ static: $t
1183
+ }, se = Me({ canReset: !1, canChange: !0 }), zr = ({ children: t, canReset: s = !1, canChange: r = !0 }) => (
1183
1184
  // eslint-disable-next-line react/jsx-no-constructed-context-values
1184
- /* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
1185
- ), nt = ({ label: t, property: l, onChange: r }) => {
1186
- const s = N(() => u(ge, `${l}.classes`, [""]), [l]), o = se(l), n = N(() => u(o, "cls", ""), [o]), { canChange: d } = re(le), i = /\[.*\]/g.test(n);
1185
+ /* @__PURE__ */ e.jsx(se.Provider, { value: { canReset: s, canChange: r }, children: t })
1186
+ ), at = ({ label: t, property: s, onChange: r }) => {
1187
+ const l = N(() => u(he, `${s}.classes`, [""]), [s]), o = le(s), a = N(() => u(o, "cls", ""), [o]), { canChange: d } = re(se), i = /\[.*\]/g.test(a);
1187
1188
  return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1188
- /* @__PURE__ */ e.jsx(ur, { className: "w-[70%] rounded py-1", readOnly: !0, value: n }),
1189
- /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1189
+ /* @__PURE__ */ e.jsx(pr, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
1190
+ /* @__PURE__ */ e.jsxs(Y, { delayDuration: 100, children: [
1190
1191
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1191
1192
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
1192
1193
  ] })
1193
1194
  ] }) : /* @__PURE__ */ e.jsx(
1194
- we,
1195
+ Ce,
1195
1196
  {
1196
1197
  rounded: t,
1197
- onChange: (a) => r(a, l),
1198
- selected: n,
1199
- options: s,
1198
+ onChange: (n) => r(n, s),
1199
+ selected: a,
1200
+ options: l,
1200
1201
  disabled: !d
1201
1202
  }
1202
1203
  ) });
1203
1204
  };
1204
- function we({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: o = !1 }) {
1205
- const n = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1205
+ function Ce({ selected: t, onChange: s, rounded: r = !1, options: l, disabled: o = !1 }) {
1206
+ const a = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
1206
1207
  return /* @__PURE__ */ e.jsxs(
1207
1208
  "select",
1208
1209
  {
1209
- disabled: !s.length || o,
1210
+ disabled: !l.length || o,
1210
1211
  className: `${r ? "rounded-md border border-border" : "border-0"} w-full disable:bg-gray-500 h-full truncate rounded bg-background px-2 py-1 text-xs outline-none disabled:cursor-not-allowed`,
1211
- onChange: (a) => l(a.target.value),
1212
- onKeyDown: (a) => {
1213
- a.ctrlKey && (a.key === "z" && d(), a.key === "y" && i());
1212
+ onChange: (n) => s(n.target.value),
1213
+ onKeyDown: (n) => {
1214
+ n.ctrlKey && (n.key === "z" && d(), n.key === "y" && i());
1214
1215
  },
1215
- value: n,
1216
+ value: a,
1216
1217
  children: [
1217
1218
  /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
1218
- I.Children.toArray(
1219
- s.map((a) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: a, children: a }))
1219
+ P.Children.toArray(
1220
+ l.map((n) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: n, children: n }))
1220
1221
  )
1221
1222
  ]
1222
1223
  }
1223
1224
  );
1224
1225
  }
1225
- const Gr = ({ property: t, onChange: l }) => {
1226
- const { canReset: r, canChange: s } = re(le), o = se(t), n = N(() => u(o, "cls", ""), [o]), d = N(() => u(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(n) > -1 ? d.indexOf(n) : 0, a = /\[.*\]/g.test(n);
1227
- return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: a ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1226
+ const Ur = ({ property: t, onChange: s }) => {
1227
+ const { canReset: r, canChange: l } = re(se), o = le(t), a = N(() => u(o, "cls", ""), [o]), d = N(() => u(he, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, n = /\[.*\]/g.test(a);
1228
+ 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: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1228
1229
  /* @__PURE__ */ e.jsx(
1229
1230
  "button",
1230
1231
  {
1231
1232
  type: "button",
1232
1233
  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",
1233
- disabled: !s && (!r || i - 1 < 0),
1234
- onClick: () => l(Ve(d, i - 1), t),
1234
+ disabled: !l && (!r || i - 1 < 0),
1235
+ onClick: () => s(Ve(d, i - 1), t),
1235
1236
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1236
- Ot,
1237
+ Lt,
1237
1238
  {
1238
- className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1239
+ className: !l && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1239
1240
  }
1240
1241
  ) })
1241
1242
  }
1242
1243
  ),
1243
- /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(nt, { label: !1, property: t, onChange: l }) }),
1244
+ /* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(at, { label: !1, property: t, onChange: s }) }),
1244
1245
  /* @__PURE__ */ e.jsx(
1245
1246
  "button",
1246
1247
  {
1247
1248
  type: "button",
1248
1249
  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",
1249
- disabled: !s && (!r || i + 1 >= d.length),
1250
- onClick: () => l(Ve(d, i + 1), t),
1250
+ disabled: !l && (!r || i + 1 >= d.length),
1251
+ onClick: () => s(Ve(d, i + 1), t),
1251
1252
  children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
1252
1253
  ke,
1253
1254
  {
1254
- className: !s && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1255
+ className: !l && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
1255
1256
  }
1256
1257
  ) })
1257
1258
  }
1258
1259
  )
1259
1260
  ] }) });
1260
- }, Kr = ({ property: t, onChange: l }) => {
1261
- const r = N(() => u(ge, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), o = se(t), n = N(() => u(o, "cls", ""), [o]);
1262
- return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
1261
+ }, Gr = ({ property: t, onChange: s }) => {
1262
+ const r = N(() => u(he, `${t}.classes`, [""]), [t]), { canChange: l } = re(se), o = le(t), a = N(() => u(o, "cls", ""), [o]);
1263
+ return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(Y, { children: [
1263
1264
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1264
1265
  "button",
1265
1266
  {
1266
1267
  type: "button",
1267
- disabled: !s,
1268
- onClick: () => l(d, t),
1269
- className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${n === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
1270
- children: I.createElement(u(ot, d, Xe))
1268
+ disabled: !l,
1269
+ onClick: () => s(d, t),
1270
+ 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"}`,
1271
+ children: P.createElement(u(ot, d, Xe))
1271
1272
  }
1272
1273
  ) }),
1273
- /* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
1274
+ /* @__PURE__ */ e.jsx(Z, { children: W(te(d)) })
1274
1275
  ] })) });
1275
- }, qr = {
1276
+ }, Kr = {
1276
1277
  backgroundColor: "bg",
1277
1278
  textColor: "text",
1278
1279
  borderColor: "border",
@@ -1284,13 +1285,13 @@ const Gr = ({ property: t, onChange: l }) => {
1284
1285
  toColor: "to",
1285
1286
  ringColor: "ring",
1286
1287
  ringOffsetColor: "ring-offset"
1287
- }, Jr = ({ property: t, onChange: l }) => {
1288
- const r = se(t), s = N(() => u(r, "cls", ""), [r]), { canChange: o } = re(le), [n, d] = w([]), [i, a] = w({ color: "", shade: "" }), p = s.split("-"), g = u(p, "1", ""), c = u(p, "2", ""), m = A(
1288
+ }, qr = ({ property: t, onChange: s }) => {
1289
+ const r = le(t), l = N(() => u(r, "cls", ""), [r]), { canChange: o } = re(se), [a, d] = w([]), [i, n] = w({ color: "", shade: "" }), p = l.split("-"), g = u(p, "1", ""), c = u(p, "2", ""), m = A(
1289
1290
  // eslint-disable-next-line no-shadow
1290
1291
  (x) => {
1291
- ["current", "inherit", "transparent", "black", "white"].includes(x) ? (d([]), a({ color: x })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), a((f) => ({ ...f, color: x, shade: f.shade ? f.shade : "500" })));
1292
+ ["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" })));
1292
1293
  },
1293
- [d, a]
1294
+ [d, n]
1294
1295
  );
1295
1296
  _(() => {
1296
1297
  if (["current", "inherit", "transparent", "black", "white"].includes(g))
@@ -1300,18 +1301,18 @@ const Gr = ({ property: t, onChange: l }) => {
1300
1301
  const h = A(
1301
1302
  // eslint-disable-next-line no-shadow
1302
1303
  (x) => {
1303
- a({ color: g, shade: x });
1304
+ n({ color: g, shade: x });
1304
1305
  },
1305
1306
  [g]
1306
1307
  );
1307
1308
  return _(() => {
1308
- a({ color: "", shade: "" });
1309
+ n({ color: "", shade: "" });
1309
1310
  }, [r]), _(() => {
1310
- const f = `${u(qr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1311
- f.match(new RegExp(u(ge, `${t}.regExp`, ""))) && l(f, t);
1312
- }, [i, l, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1311
+ const f = `${u(Kr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
1312
+ f.match(new RegExp(u(he, `${t}.regExp`, ""))) && s(f, t);
1313
+ }, [i, s, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
1313
1314
  /* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
1314
- we,
1315
+ Ce,
1315
1316
  {
1316
1317
  disabled: !o,
1317
1318
  rounded: !0,
@@ -1349,20 +1350,20 @@ const Gr = ({ property: t, onChange: l }) => {
1349
1350
  ]
1350
1351
  }
1351
1352
  ) }),
1352
- /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(we, { rounded: !0, selected: c, disabled: !g || !o, onChange: h, options: n }) })
1353
+ /* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(Ce, { rounded: !0, selected: c, disabled: !g || !o, onChange: h, options: a }) })
1353
1354
  ] });
1354
- }, $e = (t, l) => {
1355
+ }, $e = (t, s) => {
1355
1356
  t = t.toLowerCase();
1356
1357
  let r = t.trim().replace(/ |\+/g, "");
1357
- if ((r === "auto" || r === "none") && l.includes(r))
1358
+ if ((r === "auto" || r === "none") && s.includes(r))
1358
1359
  return { value: "", unit: r };
1359
- const s = l.length ? new RegExp(l.join("|"), "g") : /XXXXXX/g;
1360
- r = r.replace(s, "");
1361
- const o = t.match(s), n = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1362
- return n || d ? { error: "Invalid value" } : o && (o[0] === "auto" || o[0] === "none") ? { value: o[0], unit: "" } : { value: r, unit: o ? o[0] : "" };
1360
+ const l = s.length ? new RegExp(s.join("|"), "g") : /XXXXXX/g;
1361
+ r = r.replace(l, "");
1362
+ const o = t.match(l), a = o && o.length > 1, d = !b(r) && Number.isNaN(Number(r));
1363
+ return a || d ? { error: "Invalid value" } : o && (o[0] === "auto" || o[0] === "none") ? { value: o[0], unit: "" } : { value: r, unit: o ? o[0] : "" };
1363
1364
  };
1364
- const Qr = (t) => {
1365
- const l = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1365
+ const Jr = (t) => {
1366
+ const s = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
1366
1367
  if (["auto", "none"].includes(r))
1367
1368
  return { value: "", unit: r };
1368
1369
  if (r === "px")
@@ -1371,22 +1372,22 @@ const Qr = (t) => {
1371
1372
  return { value: "100", unit: t.indexOf("w-") !== -1 ? "vw" : "vh" };
1372
1373
  if (r === "full")
1373
1374
  return { value: "100", unit: "%" };
1374
- if (E(t, "skew-"))
1375
- return { value: `${l}${r}`, unit: "deg" };
1376
- if (E(t, "rotate-"))
1377
- return { value: `${l}${r}`, unit: "deg" };
1378
- if (E(t, "opacity-"))
1375
+ if (M(t, "skew-"))
1376
+ return { value: `${s}${r}`, unit: "deg" };
1377
+ if (M(t, "rotate-"))
1378
+ return { value: `${s}${r}`, unit: "deg" };
1379
+ if (M(t, "opacity-"))
1379
1380
  return { value: `${r / 100}`, unit: "-" };
1380
- if (E(t, "duration-") || E(t, "delay-"))
1381
+ if (M(t, "duration-") || M(t, "delay-"))
1381
1382
  return { value: `${r}`, unit: "ms" };
1382
- if (E(t, "translate-") && !r.includes("/"))
1383
- return { value: `${l}${`${r / 4}`}`, unit: "rem" };
1384
- if (E(t, "scale-"))
1385
- return { value: `${l}${`${r / 100}`}`, unit: "-" };
1383
+ if (M(t, "translate-") && !r.includes("/"))
1384
+ return { value: `${s}${`${r / 4}`}`, unit: "rem" };
1385
+ if (M(t, "scale-"))
1386
+ return { value: `${s}${`${r / 100}`}`, unit: "-" };
1386
1387
  if (z(t, "border")) {
1387
- const s = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1388
- if (s)
1389
- return { value: s[0].split("-").pop(), unit: "px" };
1388
+ const l = t.match(/border-?(x|y|t|r|b|l)?\d+/g);
1389
+ if (l)
1390
+ return { value: l[0].split("-").pop(), unit: "px" };
1390
1391
  if (t.match(/border-?(x|y|t|r|b|l)?/g))
1391
1392
  return { value: "1", unit: "px" };
1392
1393
  }
@@ -1485,79 +1486,79 @@ const Qr = (t) => {
1485
1486
  if (["max", "min", "fit"].includes(r))
1486
1487
  return { value: t, unit: "class" };
1487
1488
  if (r.includes("/")) {
1488
- const [s, o] = C(r.split("/"), (n) => parseInt(n, 10));
1489
- return { value: l + (s / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1489
+ const [l, o] = C(r.split("/"), (a) => parseInt(a, 10));
1490
+ return { value: s + (l / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
1490
1491
  }
1491
- return vt(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1492
+ return ft(parseFloat(r)) ? { value: `${s + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
1492
1493
  };
1493
- const el = (t) => {
1494
+ const Qr = (t) => {
1494
1495
  if (b(t))
1495
1496
  return { value: "", unit: "" };
1496
- const l = t.match(/\[.*\]/g);
1497
- if (l === null)
1498
- return tl(t);
1499
- const r = u(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", o = pe(r.match(/\d+.\d+|\d+/g));
1500
- return { value: `${s}${o}`, unit: r.replace(o, "") };
1501
- }, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t), at = I.createContext({
1497
+ const s = t.match(/\[.*\]/g);
1498
+ if (s === null)
1499
+ return es(t);
1500
+ const r = u(s, "0", "").replace(/\[|\]/g, ""), l = t.startsWith("-") ? "-" : "", o = ue(r.match(/\d+.\d+|\d+/g));
1501
+ return { value: `${l}${o}`, unit: r.replace(o, "") };
1502
+ }, es = (t) => b(t) ? { value: "", unit: "" } : Jr(t), nt = P.createContext({
1502
1503
  setDragData: () => {
1503
1504
  }
1504
- }), rl = ({
1505
+ }), ts = ({
1505
1506
  unit: t,
1506
- currentValue: l,
1507
+ currentValue: s,
1507
1508
  onDrag: r,
1508
- onDragEnd: s,
1509
+ onDragEnd: l,
1509
1510
  onDragStart: o,
1510
- negative: n,
1511
+ negative: a,
1511
1512
  cssProperty: d
1512
1513
  }) => {
1513
- const { setDragData: i } = re(at);
1514
+ const { setDragData: i } = re(nt);
1514
1515
  return /* @__PURE__ */ e.jsx(
1515
1516
  "button",
1516
1517
  {
1517
1518
  type: "button",
1518
- onMouseDown: (a) => {
1519
+ onMouseDown: (n) => {
1519
1520
  const p = {
1520
1521
  onDrag: r,
1521
- onDragEnd: s,
1522
+ onDragEnd: l,
1522
1523
  dragging: !0,
1523
- dragStartY: a.pageY,
1524
- dragStartValue: `${l}`,
1524
+ dragStartY: n.pageY,
1525
+ dragStartValue: `${s}`,
1525
1526
  dragUnit: t,
1526
- negative: n,
1527
+ negative: a,
1527
1528
  cssProperty: d
1528
1529
  };
1529
1530
  o(p), i(p);
1530
1531
  },
1531
1532
  color: void 0,
1532
1533
  className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
1533
- children: /* @__PURE__ */ e.jsx(Et, {})
1534
+ children: /* @__PURE__ */ e.jsx(Ot, {})
1534
1535
  }
1535
1536
  );
1536
- }, ll = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
1537
- ue,
1537
+ }, rs = ({ onSelect: t, current: s, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((l) => /* @__PURE__ */ e.jsx(
1538
+ xe,
1538
1539
  {
1539
1540
  className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
1540
- color: l === s ? "primary" : void 0,
1541
+ color: s === l ? "primary" : void 0,
1541
1542
  size: "sm",
1542
1543
  onClick: (o) => {
1543
- o.stopPropagation(), t(s);
1544
+ o.stopPropagation(), t(l);
1544
1545
  },
1545
- children: s
1546
+ children: l
1546
1547
  },
1547
- s
1548
- )) }), Le = 50, sl = (t) => {
1549
- const [l, r] = w(!1), [s, o] = w(""), { currentClass: n, onChange: d, classPrefix: i, cssProperty: a, units: p, negative: g } = t, [c, m] = w(a != null && a.toLowerCase().includes("width") ? "%" : p[0]), [h, x] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
1548
+ l
1549
+ )) }), Le = 50, ss = (t) => {
1550
+ const [s, r] = w(!1), [l, o] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: n, units: p, negative: g } = t, [c, m] = w(n != null && n.toLowerCase().includes("width") ? "%" : p[0]), [h, x] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, I] = w(!1);
1550
1551
  _(() => {
1551
- const { value: y, unit: v } = el(n);
1552
+ const { value: y, unit: v } = Qr(a);
1552
1553
  if (v === "") {
1553
- o(y), m(a != null && a.toLowerCase().includes("width") ? "%" : pe(p));
1554
+ o(y), m(n != null && n.toLowerCase().includes("width") ? "%" : ue(p));
1554
1555
  return;
1555
1556
  }
1556
1557
  m(v), o(v === "class" || b(y) ? "" : y);
1557
- }, [n, a, p]);
1558
- const k = be((y) => d(y), [d], Le), $ = be((y) => d(y, !1), [d], Le), F = A(
1558
+ }, [a, n, p]);
1559
+ const k = fe((y) => d(y), [d], Le), $ = fe((y) => d(y, !1), [d], Le), F = A(
1559
1560
  (y = !1) => {
1560
- const v = $e(`${s}`, p);
1561
+ const v = $e(`${l}`, p);
1561
1562
  if (u(v, "error", !1)) {
1562
1563
  x(!0);
1563
1564
  return;
@@ -1572,10 +1573,10 @@ const el = (t) => {
1572
1573
  const K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1573
1574
  y ? $(K) : k(K);
1574
1575
  },
1575
- [k, $, s, c, i, p]
1576
+ [k, $, l, c, i, p]
1576
1577
  ), oe = A(
1577
1578
  (y) => {
1578
- const v = $e(`${s}`, p);
1579
+ const v = $e(`${l}`, p);
1579
1580
  if (u(v, "error", !1)) {
1580
1581
  x(!0);
1581
1582
  return;
@@ -1589,11 +1590,11 @@ const el = (t) => {
1589
1590
  const S = u(v, "unit") !== "" ? u(v, "unit") : y, K = `${u(v, "value", "").startsWith("-") ? "-" : ""}${i}[${u(v, "value", "").replace("-", "")}${S === "-" ? "" : S}]`;
1590
1591
  k(K);
1591
1592
  },
1592
- [k, s, i, p]
1593
+ [k, l, i, p]
1593
1594
  );
1594
1595
  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: [
1595
- /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: n }),
1596
- /* @__PURE__ */ e.jsxs(W, { children: [
1596
+ /* @__PURE__ */ e.jsx("input", { className: "w-20 rounded py-1", readOnly: !0, value: a }),
1597
+ /* @__PURE__ */ e.jsxs(Y, { children: [
1597
1598
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(Ne, {}) }) }),
1598
1599
  /* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind preset class." })
1599
1600
  ] })
@@ -1609,15 +1610,15 @@ const el = (t) => {
1609
1610
  onKeyDown: (y) => {
1610
1611
  if (y.keyCode !== 38 && y.keyCode !== 40)
1611
1612
  return;
1612
- y.preventDefault(), P(!0);
1613
- const v = jt(y.target.value);
1613
+ y.preventDefault(), I(!0);
1614
+ const v = vt(y.target.value);
1614
1615
  let S = _e(v) ? 0 : v;
1615
1616
  y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
1616
- const M = `${S}`, dt = `${M.startsWith("-") ? "-" : ""}${i}[${M.replace("-", "")}${c === "-" ? "" : c}]`;
1617
+ const E = `${S}`, dt = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
1617
1618
  $(dt);
1618
1619
  },
1619
1620
  onKeyUp: (y) => {
1620
- L && (y.preventDefault(), P(!1));
1621
+ L && (y.preventDefault(), I(!1));
1621
1622
  },
1622
1623
  onBlur: () => F(),
1623
1624
  onChange: (y) => {
@@ -1627,19 +1628,19 @@ const el = (t) => {
1627
1628
  var v;
1628
1629
  (v = y == null ? void 0 : y.target) == null || v.select(), r(!1);
1629
1630
  },
1630
- value: D ? f : s,
1631
+ value: D ? f : l,
1631
1632
  className: "h-6 w-14 rounded rounded-r-none bg-background pl-2 text-sm focus-visible:outline-0 ".concat(
1632
1633
  " ",
1633
1634
  h ? "border-red-500 text-red-500" : "border-foreground/20"
1634
1635
  )
1635
1636
  }
1636
1637
  ),
1637
- /* @__PURE__ */ e.jsxs(W, { open: l, delayDuration: 100, children: [
1638
+ /* @__PURE__ */ e.jsxs(Y, { open: s, delayDuration: 100, children: [
1638
1639
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1639
1640
  "button",
1640
1641
  {
1641
1642
  type: "button",
1642
- onClick: () => r(!l),
1643
+ onClick: () => r(!s),
1643
1644
  className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
1644
1645
  children: [
1645
1646
  /* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
@@ -1647,8 +1648,8 @@ const el = (t) => {
1647
1648
  ]
1648
1649
  }
1649
1650
  ) }),
1650
- /* @__PURE__ */ e.jsx(xr, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1651
- ll,
1651
+ /* @__PURE__ */ e.jsx(ur, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
1652
+ rs,
1652
1653
  {
1653
1654
  units: p,
1654
1655
  current: c,
@@ -1660,33 +1661,33 @@ const el = (t) => {
1660
1661
  ] })
1661
1662
  ] }),
1662
1663
  ["none", "auto"].indexOf(c) !== -1 || D ? null : /* @__PURE__ */ e.jsx(
1663
- rl,
1664
+ ts,
1664
1665
  {
1665
1666
  onDragStart: () => j(!0),
1666
1667
  onDragEnd: (y) => {
1667
1668
  if (T(() => ""), j(!1), b(y))
1668
1669
  return;
1669
- const v = `${y}`, M = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1670
- k(M);
1670
+ const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1671
+ k(E);
1671
1672
  },
1672
1673
  onDrag: (y) => {
1673
1674
  if (b(y))
1674
1675
  return;
1675
1676
  T(y);
1676
- const v = `${y}`, M = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1677
- $(M);
1677
+ const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
1678
+ $(E);
1678
1679
  },
1679
- currentValue: s,
1680
+ currentValue: l,
1680
1681
  unit: c,
1681
1682
  negative: g,
1682
- cssProperty: a
1683
+ cssProperty: n
1683
1684
  }
1684
1685
  )
1685
1686
  ] }) }) });
1686
- }, se = (t) => {
1687
- const l = xe();
1688
- return wt(l, { property: t });
1689
- }, ol = (t, l) => {
1687
+ }, le = (t) => {
1688
+ const s = ge();
1689
+ return jt(s, { property: t });
1690
+ }, ls = (t, s) => {
1690
1691
  const r = {
1691
1692
  xs: 0,
1692
1693
  sm: 1,
@@ -1695,8 +1696,8 @@ const el = (t) => {
1695
1696
  xl: 4,
1696
1697
  "2xl": 5
1697
1698
  };
1698
- return r[u(t, "mq", "xs")] <= r[l];
1699
- }, nl = {
1699
+ return r[u(t, "mq", "xs")] <= r[s];
1700
+ }, os = {
1700
1701
  width: "w-",
1701
1702
  height: "h-",
1702
1703
  minWidth: "min-w-",
@@ -1769,19 +1770,19 @@ const el = (t) => {
1769
1770
  lg: "1024px",
1770
1771
  xl: "1280px",
1771
1772
  "2xl": "1536px"
1772
- }, al = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1773
- const { type: l = "icons", label: r, property: s, onEmitChange: o = () => {
1774
- }, units: n, negative: d = !1 } = t, [i] = gr(), [a] = Qe(), [, p] = Be(), g = se(s), c = Ke(), m = qe(), [h] = Je(), x = N(() => u(g, "fullCls", ""), [g]), f = A(
1773
+ }, as = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
1774
+ const { type: s = "icons", label: r, property: l, onEmitChange: o = () => {
1775
+ }, units: a, negative: d = !1 } = t, [i] = xr(), [n] = Qe(), [, p] = Be(), g = le(l), c = Ke(), m = qe(), [h] = Je(), x = N(() => u(g, "fullCls", ""), [g]), f = A(
1775
1776
  (k, $ = !0) => {
1776
- const F = { dark: i, mq: p, mod: a, cls: k, property: s, fullCls: "" };
1777
- (i || a !== "") && (F.mq = "xs");
1777
+ const F = { dark: i, mq: p, mod: n, cls: k, property: l, fullCls: "" };
1778
+ (i || n !== "") && (F.mq = "xs");
1778
1779
  const oe = Pr(F);
1779
1780
  c(h, [oe], $);
1780
1781
  },
1781
- [h, i, p, a, s, c]
1782
+ [h, i, p, n, l, c]
1782
1783
  ), T = A(() => {
1783
1784
  m(h, [x]);
1784
- }, [h, x, m]), D = N(() => ol(g, p), [g, p]);
1785
+ }, [h, x, m]), D = N(() => ls(g, p), [g, p]);
1785
1786
  _(() => {
1786
1787
  o(D, g);
1787
1788
  }, [D, o, g]);
@@ -1797,28 +1798,28 @@ const el = (t) => {
1797
1798
  }[k]);
1798
1799
  },
1799
1800
  [j]
1800
- ), P = u(g, "dark", null) === i && u(g, "mod", null) === a && u(g, "mq", null) === p;
1801
- return /* @__PURE__ */ e.jsx(Ur, { canChange: D, canReset: g && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1802
- /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${g && !P ? "text-foreground" : ""}`, children: r }) }),
1801
+ ), I = u(g, "dark", null) === i && u(g, "mod", null) === n && u(g, "mq", null) === p;
1802
+ return /* @__PURE__ */ e.jsx(zr, { canChange: D, canReset: g && I, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
1803
+ /* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${g && !I ? "text-foreground" : ""}`, children: r }) }),
1803
1804
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
1804
1805
  /* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
1805
- l === "arbitrary" ? /* @__PURE__ */ e.jsx(
1806
- sl,
1806
+ s === "arbitrary" ? /* @__PURE__ */ e.jsx(
1807
+ ss,
1807
1808
  {
1808
1809
  currentClass: u(g, "cls", ""),
1809
- classPrefix: u(nl, s, ""),
1810
- units: n || [],
1810
+ classPrefix: u(os, l, ""),
1811
+ units: a || [],
1811
1812
  onChange: f,
1812
1813
  negative: d,
1813
- cssProperty: s
1814
+ cssProperty: l
1814
1815
  }
1815
1816
  ) : null,
1816
- l === "icons" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
1817
- l === "range" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
1818
- l === "color" && /* @__PURE__ */ e.jsx(Jr, { property: s, onChange: f }),
1819
- l === "dropdown" && /* @__PURE__ */ e.jsx(nt, { label: r, property: s, onChange: f })
1817
+ s === "icons" && /* @__PURE__ */ e.jsx(Gr, { property: l, onChange: f }),
1818
+ s === "range" && /* @__PURE__ */ e.jsx(Ur, { property: l, onChange: f }),
1819
+ s === "color" && /* @__PURE__ */ e.jsx(qr, { property: l, onChange: f }),
1820
+ s === "dropdown" && /* @__PURE__ */ e.jsx(at, { label: r, property: l, onChange: f })
1820
1821
  ] }),
1821
- /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(_t, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && g ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
1822
+ /* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${x ? "visible" : "invisible"}`, children: I ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Et, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && g ? /* @__PURE__ */ e.jsxs(Y, { delayDuration: 100, children: [
1822
1823
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1823
1824
  "button",
1824
1825
  {
@@ -1830,7 +1831,7 @@ const el = (t) => {
1830
1831
  /* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
1831
1832
  "Current style is set at  ",
1832
1833
  /* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
1833
- al(u(g, "mq")),
1834
+ as(u(g, "mq")),
1834
1835
  i && !g.dark ? "(Light mode)" : ""
1835
1836
  ] }),
1836
1837
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1850,40 +1851,40 @@ const el = (t) => {
1850
1851
  ] }) : null })
1851
1852
  ] })
1852
1853
  ] }) });
1853
- }, il = ["px", "%", "em", "rem", "ch", "vh", "vw"], it = ({
1854
+ }, ns = ["px", "%", "em", "rem", "ch", "vh", "vw"], it = ({
1854
1855
  label: t,
1855
- options: l,
1856
+ options: s,
1856
1857
  borderB: r = !1,
1857
- borderT: s = !1,
1858
+ borderT: l = !1,
1858
1859
  type: o = "arbitrary",
1859
- units: n = il,
1860
+ units: a = ns,
1860
1861
  negative: d = !1
1861
1862
  }) => {
1862
- const [i, a] = w(l[0].key), p = xe(), g = A((c) => C(p, "property").includes(c), [p]);
1863
+ const [i, n] = w(s[0].key), p = ge(), g = A((c) => C(p, "property").includes(c), [p]);
1863
1864
  return /* @__PURE__ */ e.jsxs(
1864
1865
  "div",
1865
1866
  {
1866
- className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${s ? "border-t" : ""}`,
1867
+ className: `mb-2 border-gray-800 py-2 first:pt-0 last:pb-0 ${r ? "border-b" : ""} ${l ? "border-t" : ""}`,
1867
1868
  children: [
1868
1869
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
1869
1870
  t && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: t }),
1870
- /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: I.Children.toArray(
1871
- l.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
1871
+ /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: P.Children.toArray(
1872
+ s.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(Y, { children: [
1872
1873
  /* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1873
1874
  "button",
1874
1875
  {
1875
1876
  type: "button",
1876
- onClick: () => a(m),
1877
+ onClick: () => n(m),
1877
1878
  className: `relative cursor-pointer rounded-full p-1 text-[8px] ${m === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
1878
1879
  children: [
1879
- I.createElement("div", {
1880
+ P.createElement("div", {
1880
1881
  className: g(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
1881
1882
  }),
1882
- I.createElement(u(ot, m, Xe), { className: "text-inherit w-3 h-3" })
1883
+ P.createElement(u(ot, m, Xe), { className: "text-inherit w-3 h-3" })
1883
1884
  ]
1884
1885
  }
1885
1886
  ) }),
1886
- /* @__PURE__ */ e.jsx(Z, { children: Y(te(c)) })
1887
+ /* @__PURE__ */ e.jsx(Z, { children: W(te(c)) })
1887
1888
  ] }) }))
1888
1889
  ) })
1889
1890
  ] }),
@@ -1891,7 +1892,7 @@ const el = (t) => {
1891
1892
  Re,
1892
1893
  {
1893
1894
  type: o,
1894
- units: [...n],
1895
+ units: [...a],
1895
1896
  label: "",
1896
1897
  property: i,
1897
1898
  negative: d
@@ -1900,73 +1901,73 @@ const el = (t) => {
1900
1901
  ]
1901
1902
  }
1902
1903
  );
1903
- }, dl = ({ heading: t, items: l }) => {
1904
- const r = xe(), s = N(() => {
1904
+ }, is = ({ heading: t, items: s }) => {
1905
+ const r = ge(), l = N(() => {
1905
1906
  const o = (i) => U(
1906
- i.map((a) => a.styleType === "multiple" ? C(a.options, "key") : a.property)
1907
- ), n = U(
1908
- l.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1907
+ i.map((n) => n.styleType === "multiple" ? C(n.options, "key") : n.property)
1908
+ ), a = U(
1909
+ s.map((i) => i.styleType === "accordion" ? o(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
1909
1910
  ), d = C(r, "property");
1910
- return Fe(n, d).length > 0;
1911
- }, [r, l]);
1911
+ return Fe(a, d).length > 0;
1912
+ }, [r, s]);
1912
1913
  return /* @__PURE__ */ e.jsxs("details", { children: [
1913
1914
  /* @__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: [
1914
1915
  t,
1915
- s ? /* @__PURE__ */ e.jsx(
1916
+ l ? /* @__PURE__ */ e.jsx(
1916
1917
  "span",
1917
1918
  {
1918
- className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}`
1919
+ className: `ml-1 mr-2 inline-block h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}`
1919
1920
  }
1920
1921
  ) : null
1921
1922
  ] }) }),
1922
- /* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(it, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Re, { ...o }, o.label)) })
1923
+ /* @__PURE__ */ e.jsx("div", { className: "p-2", children: s.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(it, { ...o }, o.label) : /* @__PURE__ */ e.jsx(Re, { ...o }, o.label)) })
1923
1924
  ] });
1924
- }, cl = Ee({}), ye = ({ section: t }) => {
1925
- const l = xe(), r = A(
1926
- (n = []) => {
1925
+ }, ds = Me({}), be = ({ section: t }) => {
1926
+ const s = ge(), r = A(
1927
+ (a = []) => {
1927
1928
  const d = {};
1928
- for (let a = 0; a < l.length; a++)
1929
- d[l[a].property] = l[a].cls;
1929
+ for (let n = 0; n < s.length; n++)
1930
+ d[s[n].property] = s[n].cls;
1930
1931
  let i = !0;
1931
- for (const a in n)
1932
- if (!he(d, a) || d[a] !== n[a]) {
1932
+ for (const n in a)
1933
+ if (!me(d, n) || d[n] !== a[n]) {
1933
1934
  i = !1;
1934
1935
  break;
1935
1936
  }
1936
1937
  return i;
1937
1938
  },
1938
- [l]
1939
- ), s = N(() => {
1940
- if (l.length > 0 && t.heading === "Classes")
1939
+ [s]
1940
+ ), l = N(() => {
1941
+ if (s.length > 0 && t.heading === "Classes")
1941
1942
  return !0;
1942
- const n = (a) => U(
1943
- a.map((p) => p.styleType === "multiple" ? U(C(p.options, "key")) : p.property)
1943
+ const a = (n) => U(
1944
+ n.map((p) => p.styleType === "multiple" ? U(C(p.options, "key")) : p.property)
1944
1945
  ), d = U(
1945
- t.items.map((a) => a.styleType === "accordion" ? n(a.items) : a.styleType === "multiple" ? U(C(a.options, "key")) : a.property)
1946
- ), i = C(l, "property");
1946
+ t.items.map((n) => n.styleType === "accordion" ? a(n.items) : n.styleType === "multiple" ? U(C(n.options, "key")) : n.property)
1947
+ ), i = C(s, "property");
1947
1948
  return Fe(d, i).length > 0;
1948
- }, [l, t.heading, t.items]), o = N(() => ({}), []);
1949
- return /* @__PURE__ */ e.jsx(cl.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1949
+ }, [s, t.heading, t.items]), o = N(() => ({}), []);
1950
+ return /* @__PURE__ */ e.jsx(ds.Provider, { value: o, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
1950
1951
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1951
- /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
1952
+ /* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${l ? "bg-blue-500" : "bg-gray-300"}` }),
1952
1953
  t.heading
1953
1954
  ] }) }),
1954
- /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
1955
- t.items.map((n) => he(n, "component") ? I.createElement(n.component, { key: n.label }) : he(n, "styleType") ? n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(it, { ...n }, n.label) : n.styleType === "accordion" && r(n == null ? void 0 : n.conditions) ? /* @__PURE__ */ e.jsx(dl, { ...n }, n.label) : null : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label))
1955
+ /* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: P.Children.toArray(
1956
+ t.items.map((a) => me(a, "component") ? P.createElement(a.component, { key: a.label }) : me(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(it, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(is, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Re, { ...a }, a.label))
1956
1957
  ) })
1957
1958
  ] }) });
1958
- }, pl = ({
1959
+ }, cs = ({
1959
1960
  item: t,
1960
- index: l,
1961
+ index: s,
1961
1962
  canDelete: r,
1962
- onChange: s,
1963
+ onChange: l,
1963
1964
  onRemove: o
1964
1965
  }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${r ? "border-b" : ""}`, children: [
1965
1966
  /* @__PURE__ */ e.jsx(
1966
1967
  "input",
1967
1968
  {
1968
1969
  name: "key",
1969
- onChange: (n) => s(n, l),
1970
+ onChange: (a) => l(a, s),
1970
1971
  value: t.key,
1971
1972
  placeholder: "Key",
1972
1973
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1979,7 +1980,7 @@ const el = (t) => {
1979
1980
  "input",
1980
1981
  {
1981
1982
  name: "value",
1982
- onChange: (n) => b(t.key) ? {} : s(n, l),
1983
+ onChange: (a) => b(t.key) ? {} : l(a, s),
1983
1984
  value: t.value,
1984
1985
  placeholder: "Value",
1985
1986
  className: "w-full rounded border-gray-300 bg-background p-0.5 pl-2 text-sm focus-visible:outline-0",
@@ -1988,34 +1989,34 @@ const el = (t) => {
1988
1989
  }
1989
1990
  ),
1990
1991
  /* @__PURE__ */ e.jsx(
1991
- Ft,
1992
+ _t,
1992
1993
  {
1993
1994
  onClick: o,
1994
1995
  className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
1995
1996
  }
1996
1997
  )
1997
1998
  ] })
1998
- ] }), ul = ({ section: t }) => {
1999
+ ] }), ps = ({ section: t }) => {
1999
2000
  var m;
2000
- const { setSyncState: l } = hr(), r = G(), [s, o] = w([]), [n] = Te(), d = Ue(), i = `${u(n, "0.prop")}_attrs`;
2001
- ne.useEffect(() => {
2001
+ const { setSyncState: s } = gr(), r = G(), [l, o] = w([]), [a] = Te(), d = Ue(), i = `${u(a, "0.prop")}_attrs`;
2002
+ ae.useEffect(() => {
2002
2003
  const h = C(u(r, i), (x, f) => ({ key: f, value: x }));
2003
2004
  b(h) ? o([]) : o(h);
2004
2005
  }, [u(r, i)]);
2005
- const a = () => o([...s, { key: "", value: "" }]), p = (h) => {
2006
- const x = ve(s, (f, T) => h !== T);
2006
+ const n = () => o([...l, { key: "", value: "" }]), p = (h) => {
2007
+ const x = je(l, (f, T) => h !== T);
2007
2008
  c(x);
2008
2009
  }, g = (h, x) => {
2009
- const f = [...s];
2010
+ const f = [...l];
2010
2011
  f[x][h.target.name] = h.target.value, c(f);
2011
- }, c = ne.useCallback(
2012
+ }, c = ae.useCallback(
2012
2013
  (h = []) => {
2013
2014
  const x = {};
2014
- Ce(h, (f) => {
2015
- b(f.key) || Me(x, f.key, f.value);
2016
- }), d([u(r, "_id")], { [i]: x }), l("UNSAVED");
2015
+ pe(h, (f) => {
2016
+ b(f.key) || Ee(x, f.key, f.value);
2017
+ }), d([u(r, "_id")], { [i]: x }), s("UNSAVED");
2017
2018
  },
2018
- [r, l, d, i]
2019
+ [r, s, d, i]
2019
2020
  );
2020
2021
  return /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
2021
2022
  /* @__PURE__ */ e.jsx(de, { className: "px-3 py-2 text-xs hover:no-underline", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
@@ -2033,10 +2034,10 @@ const el = (t) => {
2033
2034
  /* @__PURE__ */ e.jsxs(
2034
2035
  "div",
2035
2036
  {
2036
- className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(s) && b((m = fe(s)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
2037
+ className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(l) && b((m = ve(l)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
2037
2038
  onClick: () => {
2038
2039
  var h;
2039
- !b(s) && b((h = fe(s)) == null ? void 0 : h.key) || a();
2040
+ !b(l) && b((h = ve(l)) == null ? void 0 : h.key) || n();
2040
2041
  },
2041
2042
  children: [
2042
2043
  /* @__PURE__ */ e.jsx(ke, { width: 12, height: 12 }),
@@ -2046,12 +2047,12 @@ const el = (t) => {
2046
2047
  )
2047
2048
  ] }),
2048
2049
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
2049
- b(s) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2050
- ne.Children.toArray(
2051
- C(s, (h, x) => {
2052
- const f = s.length > 0 && x < s.length - 1;
2050
+ b(l) && /* @__PURE__ */ e.jsx("div", { className: "flex h-12 items-center justify-center text-sm text-gray-400", children: "Click + Add to add attributes" }),
2051
+ ae.Children.toArray(
2052
+ C(l, (h, x) => {
2053
+ const f = l.length > 0 && x < l.length - 1;
2053
2054
  return /* @__PURE__ */ e.jsx(
2054
- pl,
2055
+ cs,
2055
2056
  {
2056
2057
  item: h,
2057
2058
  index: x,
@@ -2066,11 +2067,11 @@ const el = (t) => {
2066
2067
  ] }) })
2067
2068
  ] });
2068
2069
  };
2069
- function xl() {
2070
- const [t, l] = Qe(), { flexChild: r, gridChild: s } = mr(), [, o] = Br(yr), { t: n } = Ye(), [d] = Te();
2070
+ function us() {
2071
+ const [t, s] = Qe(), { flexChild: r, gridChild: l } = hr(), [, o] = Hr(mr), { t: a } = We(), [d] = Te();
2071
2072
  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: [
2072
2073
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2073
- /* @__PURE__ */ e.jsx("h1", { children: n("no_styling_block_selected") }),
2074
+ /* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
2074
2075
  /* @__PURE__ */ e.jsxs("p", { className: "text-xs ", children: [
2075
2076
  "Hint: Styling allowed blocks are highlighted with",
2076
2077
  " ",
@@ -2082,9 +2083,9 @@ function xl() {
2082
2083
  /* @__PURE__ */ e.jsxs("div", { onClick: () => o(!1), className: "flex h-full flex-col", children: [
2083
2084
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-x-4 space-y-3 border-b h-12 border-border px-4 py-1", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-1.5", children: [
2084
2085
  /* @__PURE__ */ e.jsx(Se, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
2085
- /* @__PURE__ */ e.jsxs(br, { defaultValue: t, onValueChange: (i) => l(i), children: [
2086
- /* @__PURE__ */ e.jsx(fr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(vr, { placeholder: "State" }) }),
2087
- /* @__PURE__ */ e.jsxs(jr, { children: [
2086
+ /* @__PURE__ */ e.jsxs(yr, { defaultValue: t, onValueChange: (i) => s(i), children: [
2087
+ /* @__PURE__ */ e.jsx(br, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(fr, { placeholder: "State" }) }),
2088
+ /* @__PURE__ */ e.jsxs(vr, { children: [
2088
2089
  /* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
2089
2090
  /* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
2090
2091
  /* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
@@ -2101,15 +2102,15 @@ function xl() {
2101
2102
  ] })
2102
2103
  ] }) }),
2103
2104
  /* @__PURE__ */ e.jsx(et, { className: "no-scrollbar -mx-1 flex-1 max-h-full overflow-y-hidden overflow-x-hidden", children: /* @__PURE__ */ e.jsxs(Ge, { defaultValue: ["Layout"], type: "multiple", className: "w-full", children: [
2104
- r && /* @__PURE__ */ e.jsx(ye, { section: Xr }),
2105
- s ? /* @__PURE__ */ e.jsx(ye, { section: Zr }) : null,
2106
- zr.map((i) => /* @__PURE__ */ e.jsx(ye, { section: i }, i.heading)),
2107
- /* @__PURE__ */ e.jsx(ul, { section: { heading: "Attributes" } })
2105
+ r && /* @__PURE__ */ e.jsx(be, { section: Yr }),
2106
+ l ? /* @__PURE__ */ e.jsx(be, { section: Xr }) : null,
2107
+ Zr.map((i) => /* @__PURE__ */ e.jsx(be, { section: i }, i.heading)),
2108
+ /* @__PURE__ */ e.jsx(ps, { section: { heading: "Attributes" } })
2108
2109
  ] }) })
2109
2110
  ] })
2110
2111
  );
2111
2112
  }
2112
- const gl = {
2113
+ const xs = {
2113
2114
  px: 1,
2114
2115
  "%": 1,
2115
2116
  em: 100,
@@ -2120,32 +2121,32 @@ const gl = {
2120
2121
  "-": 1,
2121
2122
  deg: 1,
2122
2123
  ms: 0.1
2123
- }, ms = () => {
2124
- const t = G(), { t: l } = Ye(), [r, s] = I.useState(""), [o, n] = I.useState({
2125
- onDrag: (a) => a,
2126
- onDragEnd: (a) => a,
2124
+ }, ml = () => {
2125
+ const t = G(), { t: s } = We(), [r, l] = P.useState(""), [o, a] = P.useState({
2126
+ onDrag: (n) => n,
2127
+ onDragEnd: (n) => n,
2127
2128
  dragStartY: 0,
2128
2129
  dragging: !1,
2129
2130
  dragStartValue: 0,
2130
2131
  dragUnit: "",
2131
2132
  negative: !1,
2132
2133
  cssProperty: ""
2133
- }), d = be(
2134
- (a) => {
2134
+ }), d = fe(
2135
+ (n) => {
2135
2136
  const p = !u(o, "negative", !1), g = u(o, "cssProperty", "");
2136
2137
  let c = parseFloat(o.dragStartValue);
2137
2138
  c = _e(c) ? 0 : c;
2138
- let m = gl[o.dragUnit];
2139
+ let m = xs[o.dragUnit];
2139
2140
  (z(g, "scale") || g === "opacity") && (m = 10);
2140
- let x = (o.dragStartY - a.pageY) / m + c;
2141
- p && x < 0 && (x = 0), g === "opacity" && x > 1 && (x = 1), o.onDrag(`${x}`), s(`${x}`);
2141
+ let x = (o.dragStartY - n.pageY) / m + c;
2142
+ p && x < 0 && (x = 0), g === "opacity" && x > 1 && (x = 1), o.onDrag(`${x}`), l(`${x}`);
2142
2143
  },
2143
2144
  [o],
2144
2145
  50
2145
2146
  ), i = A(() => {
2146
- setTimeout(() => o.onDragEnd(`${r}`), 100), n({
2147
- onDrag: (a) => a,
2148
- onDragEnd: (a) => a,
2147
+ setTimeout(() => o.onDragEnd(`${r}`), 100), a({
2148
+ onDrag: (n) => n,
2149
+ onDragEnd: (n) => n,
2149
2150
  dragStartY: 0,
2150
2151
  dragging: !1,
2151
2152
  dragStartValue: 0,
@@ -2153,11 +2154,11 @@ const gl = {
2153
2154
  negative: !1,
2154
2155
  cssProperty: ""
2155
2156
  });
2156
- }, [o, r, n]);
2157
- return Ct(t) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2157
+ }, [o, r, a]);
2158
+ return wt(t) ? /* @__PURE__ */ e.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ e.jsxs("div", { className: "space-y-4 rounded-xl p-4", children: [
2158
2159
  /* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
2159
- /* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
2160
- ] }) }) : /* @__PURE__ */ e.jsx(rt, { children: /* @__PURE__ */ e.jsxs(at.Provider, { value: { setDragData: n }, children: [
2160
+ /* @__PURE__ */ e.jsx("h1", { children: s("no_block_selected_for_styling") })
2161
+ ] }) }) : /* @__PURE__ */ e.jsx(rt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: a }, children: [
2161
2162
  o.dragging ? /* @__PURE__ */ e.jsx(
2162
2163
  "div",
2163
2164
  {
@@ -2166,8 +2167,8 @@ const gl = {
2166
2167
  className: "absolute inset-0 z-30 cursor-row-resize bg-gray-300/10 "
2167
2168
  }
2168
2169
  ) : null,
2169
- /* @__PURE__ */ e.jsxs(wr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2170
- /* @__PURE__ */ e.jsxs(Cr, { className: "mx-1 grid grid-cols-2", children: [
2170
+ /* @__PURE__ */ e.jsxs(jr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
2171
+ /* @__PURE__ */ e.jsxs(wr, { className: "mx-1 grid grid-cols-2", children: [
2171
2172
  /* @__PURE__ */ e.jsx(Ae, { value: "settings", children: "Settings" }),
2172
2173
  /* @__PURE__ */ e.jsx(Ae, { value: "styling", children: "Styling" })
2173
2174
  ] }),
@@ -2176,13 +2177,13 @@ const gl = {
2176
2177
  {
2177
2178
  value: "settings",
2178
2179
  className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
2179
- children: /* @__PURE__ */ e.jsx(et, { className: "no-scrollbar -mx-1 pb-5 flex-1 max-h-full overflow-y-hidden overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Yr, {}) })
2180
+ children: /* @__PURE__ */ e.jsx(et, { className: "no-scrollbar -mx-1 pb-5 flex-1 max-h-full overflow-y-hidden overflow-x-hidden", children: /* @__PURE__ */ e.jsx(Fr, {}) })
2180
2181
  }
2181
2182
  ),
2182
- /* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 h-full overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(xl, {}) })
2183
+ /* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 h-full overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(us, {}) })
2183
2184
  ] })
2184
2185
  ] }) });
2185
2186
  };
2186
2187
  export {
2187
- ms as default
2188
+ ml as default
2188
2189
  };