@chaibuilder/sdk 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddBlocks-kQZRgF1n.cjs → AddBlocks-F05ZiQnz.cjs} +1 -1
- package/dist/{AddBlocks--G1jvF_h.js → AddBlocks-kmAje7cV.js} +1 -1
- package/dist/{BrandingOptions-3zuS6-D8.cjs → BrandingOptions-2aNZT1u3.cjs} +1 -1
- package/dist/{BrandingOptions-dwNB6XlX.js → BrandingOptions-GLVanp1T.js} +1 -1
- package/dist/CanvasArea-AHGpIP2x.cjs +56 -0
- package/dist/CanvasArea-gJ_UifbO.js +1349 -0
- package/dist/{CurrentPage-Fw-gGZIK.cjs → CurrentPage-JJpZpFko.cjs} +1 -1
- package/dist/{CurrentPage-iC1tGuWi.js → CurrentPage-fyWf5F84.js} +2 -2
- package/dist/{Layers-tvGxr-fn.js → Layers-RGy6kyuR.js} +3 -3
- package/dist/{Layers-bvtrSZ0e.cjs → Layers-YtfF6ty5.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-wqHaABl_.cjs → MarkAsGlobalBlock-1G5m_8t3.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-hUoxbVet.js → MarkAsGlobalBlock-EsX3-clj.js} +1 -1
- package/dist/{PagesPanel-IHkdL59C.cjs → PagesPanel-J8uYp1Tp.cjs} +1 -1
- package/dist/{PagesPanel-w32nyAEE.js → PagesPanel-LjiXL4rp.js} +3 -3
- package/dist/{ProjectPanel-1yH8uzoo.js → ProjectPanel-F435j6T2.js} +3 -3
- package/dist/{ProjectPanel-Rt_C00rp.cjs → ProjectPanel-IXVY1LJ_.cjs} +1 -1
- package/dist/{Settings-MbtN9j5p.js → Settings-b3lEaQ7w.js} +479 -477
- package/dist/Settings-xwTkQuKA.cjs +1 -0
- package/dist/{SidePanels-PcCVJHFu.cjs → SidePanels-1Ooc-KTb.cjs} +1 -1
- package/dist/{SidePanels-WDSKmDRO.js → SidePanels-MnI_uhIo.js} +3 -3
- package/dist/{Topbar-QBbGJftd.js → Topbar-1ClabAix.js} +1 -1
- package/dist/{Topbar-p07CgA1J.cjs → Topbar-e0hKiAm_.cjs} +1 -1
- package/dist/{UnsplashImages-RobUmAqJ.cjs → UnsplashImages-OJ5u1mVM.cjs} +1 -1
- package/dist/{UnsplashImages-NOdXhrYp.js → UnsplashImages-UejSDiRk.js} +1 -1
- package/dist/{UploadImages-oRvUykXU.cjs → UploadImages-2SqVkr1u.cjs} +1 -1
- package/dist/{UploadImages-_yFxI_3x.js → UploadImages-xBJTMBKX.js} +1 -1
- package/dist/{add-page-modal-1C4AYlR3.js → add-page-modal-SdyjVxRW.js} +14 -15
- package/dist/{add-page-modal-c20toln3.cjs → add-page-modal-rkF5RqMj.cjs} +1 -1
- package/dist/{confirm-alert-LM4La_do.js → confirm-alert-TCwoZBC3.js} +1 -1
- package/dist/{confirm-alert-exrulqxB.cjs → confirm-alert-uk39UILT.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -3
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-sMfhH69k.cjs → delete-page-modal-PKSlPOAB.cjs} +1 -1
- package/dist/{delete-page-modal-ZkdZdhkf.js → delete-page-modal-pjChqG0d.js} +2 -2
- package/dist/{form-0TlI-dUt.cjs → form-N6Izl5Ni.cjs} +1 -1
- package/dist/{form-rvWlnmcr.js → form-aIN_qzKQ.js} +1 -1
- package/dist/{index-UPQtDmUs.js → index-0ZqKzbSx.js} +3 -3
- package/dist/index-4h4Ti2E4.cjs +1 -0
- package/dist/{index-8dYzEcE3.cjs → index-LL32f5q7.cjs} +2 -2
- package/dist/{index-pgz9p5Yh.js → index-aPk1Fuat.js} +50 -49
- package/dist/{page-viewer-3860AKDT.js → page-viewer-SMOg1l3b.js} +3 -3
- package/dist/{page-viewer-1EuLsHyz.cjs → page-viewer-wrYXvC-7.cjs} +1 -1
- package/dist/{project-general-setting-mg_zEkzX.js → project-general-setting-CcnnvnwD.js} +3 -3
- package/dist/{project-general-setting-Bg7qIWUd.cjs → project-general-setting-wDjCo89M.cjs} +1 -1
- package/dist/{project-seo-setting-6Q0gFmHY.js → project-seo-setting-CPtrvtsw.js} +2 -2
- package/dist/{project-seo-setting-8B9pZPZN.cjs → project-seo-setting-RJMYUQxR.cjs} +1 -1
- package/dist/{single-page-detail-Asn7bb7f.js → single-page-detail-7NRw-CLc.js} +4 -4
- package/dist/{single-page-detail-52Xz-XJ7.cjs → single-page-detail-gnpyWcy7.cjs} +1 -1
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
- package/dist/CanvasArea-SzwU-7i5.cjs +0 -46
- package/dist/CanvasArea-YM7NWbx0.js +0 -1298
- package/dist/Settings-zqxhKtAP.cjs +0 -1
- package/dist/index-lH7BBNlu.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import * as ne from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useThrottledCallback as
|
|
5
|
-
import { forEach as
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { PlusIcon as Ce, Cross2Icon as
|
|
8
|
-
import { b1 as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { Check as
|
|
13
|
-
import { getBlockComponent as et, getChaiDataProviders as
|
|
14
|
-
import { E as
|
|
15
|
-
import { useAtom as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { A as
|
|
19
|
-
import { a as
|
|
3
|
+
import I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as dt, createContext as Me, useContext as re } from "react";
|
|
4
|
+
import { useThrottledCallback as ye } from "@react-hookz/web";
|
|
5
|
+
import { forEach as we, isArray as ae, omit as ct, truncate as pt, includes as M, get as p, first as pe, split as ut, startCase as Y, toLower as te, isEmpty as b, map as C, find as xt, last as be, filter as fe, set as Ee, keys as gt, cloneDeep as ht, each as mt, capitalize as yt, reject as bt, nth as Se, startsWith as z, isNumber as ft, parseInt as vt, isNaN as _e, findLast as jt, flatten as U, intersection as Fe, has as he, isNull as wt } from "lodash";
|
|
6
|
+
import { useTranslation as Ye } from "react-i18next";
|
|
7
|
+
import { PlusIcon as Ce, Cross2Icon as We, EyeOpenIcon as Ct, EyeClosedIcon as Ve, BorderAllIcon as O, WidthIcon as S, HeightIcon as V, ArrowUpIcon as q, ArrowRightIcon as J, ArrowDownIcon as Q, ArrowLeftIcon as ee, ArrowTopLeftIcon as kt, ArrowTopRightIcon as Nt, ArrowBottomRightIcon as Tt, ArrowBottomLeftIcon as Rt, AlignLeftIcon as St, AlignCenterHorizontallyIcon as Vt, AlignRightIcon as Ht, StretchHorizontallyIcon as Bt, FontItalicIcon as At, UnderlineIcon as Dt, OverlineIcon as It, LetterCaseUppercaseIcon as Pt, Cross1Icon as $t, InfoCircledIcon as ke, MinusIcon as Lt, BoxIcon as Xe, RowSpacingIcon as Ot, TriangleDownIcon as Mt, CrossCircledIcon as Et, TrashIcon as _t, MixerHorizontalIcon as Ze } from "@radix-ui/react-icons";
|
|
8
|
+
import { b1 as Ft, b2 as Yt, B as ue, b3 as Wt, b4 as Xt, b5 as Zt, b6 as zt, b7 as Ut, b8 as Gt, b9 as Kt, a6 as G, aq as qt, ar as Jt, as as Qt, ba as er, ao as tr, bb as rr, ap as lr, aH as W, aI as X, aK as Z, ak as sr, bc as or, bd as nr, be as ar, bf as ir, bg as dr, bh as cr, p as ze, ac as Ue, bi as Ge, bj as ie, bk as de, bl as ce, aj as Ne, P as Ke, a3 as qe, j as Je, aM as Te, bm as pr, bn as ur, a4 as xe, W as xr, a9 as Qe, R as He, ag as gr, ad as hr, bo as mr, au as yr, av as br, aw as fr, ax as vr, ay as H, bp as jr, aB as wr, aC as Cr, aD as Be, aE as Ae } from "./index-aPk1Fuat.js";
|
|
9
|
+
import kr from "@rjsf/core";
|
|
10
|
+
import Nr from "@rjsf/validator-ajv8";
|
|
11
|
+
import { u as Tr } from "./controls-G0puEH71.js";
|
|
12
|
+
import { Check as Rr, EditIcon as Sr, TrashIcon as Vr } from "lucide-react";
|
|
13
|
+
import { getBlockComponent as et, getChaiDataProviders as Hr } from "@chaibuilder/runtime";
|
|
14
|
+
import { E as tt, u as rt } from "./index-0ZqKzbSx.js";
|
|
15
|
+
import { useAtom as Br } from "jotai";
|
|
16
|
+
import Ar from "react-autosuggest";
|
|
17
|
+
import Dr from "fuse.js";
|
|
18
|
+
import { A as Ir, C as ge, d as Pr } from "./utils-PPBbw5bk.js";
|
|
19
|
+
import { a as $r } from "./MODIFIERS-MLfpKQY1.js";
|
|
20
20
|
import "@radix-ui/react-toggle";
|
|
21
21
|
import "class-variance-authority";
|
|
22
22
|
import "@radix-ui/react-switch";
|
|
@@ -62,25 +62,25 @@ import "./tailwind-config-d1VL1lzE.js";
|
|
|
62
62
|
import "tailwind-merge";
|
|
63
63
|
import "react-hotkeys-hook";
|
|
64
64
|
import "sonner";
|
|
65
|
-
const
|
|
66
|
-
function
|
|
65
|
+
const Lr = I.lazy(() => import("react-json-view"));
|
|
66
|
+
function Or(t) {
|
|
67
67
|
const l = [], r = {};
|
|
68
|
-
function s(
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
l.push(
|
|
68
|
+
function s(n, a) {
|
|
69
|
+
we(a, (d, i) => {
|
|
70
|
+
const o = n ? `${n}.${i}` : i, u = ae(d) ? "list" : typeof d;
|
|
71
|
+
l.push(o), r[o] = u === "string" ? "text" : u === "object" ? "model" : u, u === "object" && !ae(d) && s(o, d);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return s("",
|
|
74
|
+
return s("", ct(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const ve = ({ data: t, fullView: l }) => {
|
|
77
77
|
if (!t)
|
|
78
78
|
return null;
|
|
79
79
|
const r = typeof t;
|
|
80
80
|
return l ? typeof t == "object" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
81
81
|
/* @__PURE__ */ e.jsx("div", { className: "h-3" }),
|
|
82
|
-
/* @__PURE__ */ e.jsx(
|
|
83
|
-
|
|
82
|
+
/* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(
|
|
83
|
+
Lr,
|
|
84
84
|
{
|
|
85
85
|
style: { maxHeight: "40vh", overflowY: "auto" },
|
|
86
86
|
name: "Content",
|
|
@@ -94,27 +94,27 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
94
94
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: "text-gray-800/50 text-[12px] leading-4 w-full max-h-36 overflow-x-hidden overflow-y-auto", children: [
|
|
95
95
|
/* @__PURE__ */ e.jsx("span", { className: "font-medium text-gray-800/80", children: "Content: " }),
|
|
96
96
|
t
|
|
97
|
-
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children:
|
|
97
|
+
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-[10px] text-gray-800/50 leading-3 whitespace-nowrap overflow-hidden w-full", children: pt(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
|
|
98
98
|
}, De = ({
|
|
99
99
|
type: t,
|
|
100
100
|
value: l = "",
|
|
101
101
|
setValue: r,
|
|
102
102
|
data: s,
|
|
103
|
-
onChange:
|
|
103
|
+
onChange: n,
|
|
104
104
|
dataType: a,
|
|
105
105
|
appliedBindings: d
|
|
106
106
|
}) => {
|
|
107
|
-
const { paths: i, pathsType:
|
|
108
|
-
(g) => !M(d, g) && p(u, `props.${
|
|
109
|
-
) : i.filter((g) => a === p(
|
|
107
|
+
const { paths: i, pathsType: o } = Or(s), u = t === "PROP" ? et(s == null ? void 0 : s._type) : {}, x = t === "PROP", [c, m] = w(!1), h = N(() => t === "PROP" ? i.filter(
|
|
108
|
+
(g) => !M(d, g) && p(u, `props.${pe(ut(g, "."))}.binding`)
|
|
109
|
+
) : i.filter((g) => a === p(o, g, "")), [t, i, d, a, u]);
|
|
110
110
|
return _(() => {
|
|
111
|
-
l &&
|
|
111
|
+
l && n(l);
|
|
112
112
|
}, [l, t]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
113
113
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
114
114
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted-foreground", children: Y(te(t)) }),
|
|
115
|
-
/* @__PURE__ */ e.jsxs(
|
|
116
|
-
/* @__PURE__ */ e.jsx(
|
|
117
|
-
|
|
115
|
+
/* @__PURE__ */ e.jsxs(Ft, { open: c, onOpenChange: m, children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(Yt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
117
|
+
ue,
|
|
118
118
|
{
|
|
119
119
|
variant: "outline",
|
|
120
120
|
size: "sm",
|
|
@@ -131,24 +131,24 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
131
131
|
] })
|
|
132
132
|
}
|
|
133
133
|
) }),
|
|
134
|
-
/* @__PURE__ */ e.jsx(
|
|
135
|
-
/* @__PURE__ */ e.jsx(
|
|
136
|
-
/* @__PURE__ */ e.jsxs(
|
|
137
|
-
/* @__PURE__ */ e.jsx(
|
|
138
|
-
/* @__PURE__ */ e.jsx(
|
|
139
|
-
|
|
134
|
+
/* @__PURE__ */ e.jsx(Wt, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Xt, { children: [
|
|
135
|
+
/* @__PURE__ */ e.jsx(Zt, { placeholder: `Choose ${te(t)}...` }),
|
|
136
|
+
/* @__PURE__ */ e.jsxs(zt, { children: [
|
|
137
|
+
/* @__PURE__ */ e.jsx(Ut, { children: "No results found." }),
|
|
138
|
+
/* @__PURE__ */ e.jsx(Gt, { children: C(h, (g) => /* @__PURE__ */ e.jsxs(
|
|
139
|
+
Kt,
|
|
140
140
|
{
|
|
141
141
|
value: g,
|
|
142
142
|
className: `cursor-pointer ${x ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
|
|
143
143
|
onSelect: (f) => {
|
|
144
|
-
r(
|
|
144
|
+
r(xt(h, (T) => T === f) || null), m(!1);
|
|
145
145
|
},
|
|
146
146
|
children: [
|
|
147
147
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
148
|
-
/* @__PURE__ */ e.jsx(
|
|
148
|
+
/* @__PURE__ */ e.jsx(Rr, { className: `w-4 h-4 text-green-500 ${l === g ? "" : "opacity-0"}` }),
|
|
149
149
|
g
|
|
150
150
|
] }),
|
|
151
|
-
x ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(p(
|
|
151
|
+
x ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("span", { className: "text-[10px] text-purple-500 bg-purple-100 px-2 py-0.5 rounded-full", children: Y(p(o, g, "")) }) }) : /* @__PURE__ */ e.jsx("div", { className: "pl-6", children: /* @__PURE__ */ e.jsx(ve, { data: p(s, g) }) })
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
g
|
|
@@ -157,32 +157,32 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
157
157
|
] }) })
|
|
158
158
|
] })
|
|
159
159
|
] }),
|
|
160
|
-
!x && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(
|
|
160
|
+
!x && !b(l) && /* @__PURE__ */ e.jsx("div", { className: "pt-2", children: /* @__PURE__ */ e.jsx(ve, { data: p(s, l, ""), fullView: !0 }) })
|
|
161
161
|
] });
|
|
162
|
-
},
|
|
162
|
+
}, Mr = ({
|
|
163
163
|
appliedBindings: t = [],
|
|
164
164
|
onAddBinding: l,
|
|
165
165
|
editMode: r,
|
|
166
166
|
item: s
|
|
167
167
|
}) => {
|
|
168
|
-
const [
|
|
168
|
+
const [n, a] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), o = G(), [u] = rt(), x = A(
|
|
169
169
|
(h, g) => {
|
|
170
170
|
if (b(h))
|
|
171
171
|
return "";
|
|
172
172
|
{
|
|
173
|
-
const f = p(g === "PROP" ?
|
|
173
|
+
const f = p(g === "PROP" ? o : u, h, "");
|
|
174
174
|
if (ae(f))
|
|
175
175
|
return "list";
|
|
176
176
|
const T = typeof f;
|
|
177
177
|
return T === "string" ? "text" : T === "object" ? "model" : T;
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[o, u]
|
|
181
181
|
), [c, m] = w(r ? x(s.key, "PROP") : "");
|
|
182
182
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
183
|
-
/* @__PURE__ */ e.jsxs(
|
|
184
|
-
/* @__PURE__ */ e.jsx(
|
|
185
|
-
/* @__PURE__ */ e.jsx(
|
|
183
|
+
/* @__PURE__ */ e.jsxs(qt, { children: [
|
|
184
|
+
/* @__PURE__ */ e.jsx(Jt, { children: "Add Data Binding" }),
|
|
185
|
+
/* @__PURE__ */ e.jsx(Qt, { className: "text-xs", children: "Add prop and path of binding. Click save when you're done." })
|
|
186
186
|
] }),
|
|
187
187
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1 relative", children: [
|
|
188
188
|
/* @__PURE__ */ e.jsx(
|
|
@@ -191,13 +191,13 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
191
191
|
type: "PROP",
|
|
192
192
|
isDisabled: !1,
|
|
193
193
|
placeholder: "Enter prop key",
|
|
194
|
-
value:
|
|
194
|
+
value: n,
|
|
195
195
|
setValue: a,
|
|
196
196
|
onChange: (h) => {
|
|
197
197
|
const g = x(h, "PROP");
|
|
198
198
|
a(h), c !== g && i(""), m(g);
|
|
199
199
|
},
|
|
200
|
-
data:
|
|
200
|
+
data: o,
|
|
201
201
|
dataType: c,
|
|
202
202
|
appliedBindings: t
|
|
203
203
|
}
|
|
@@ -207,7 +207,7 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
207
207
|
De,
|
|
208
208
|
{
|
|
209
209
|
type: "PATH",
|
|
210
|
-
isDisabled: b(
|
|
210
|
+
isDisabled: b(n),
|
|
211
211
|
placeholder: "Enter data path",
|
|
212
212
|
value: d,
|
|
213
213
|
setValue: i,
|
|
@@ -221,60 +221,60 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
221
221
|
}
|
|
222
222
|
)
|
|
223
223
|
] }),
|
|
224
|
-
/* @__PURE__ */ e.jsx(
|
|
225
|
-
|
|
224
|
+
/* @__PURE__ */ e.jsx(er, { children: /* @__PURE__ */ e.jsx(
|
|
225
|
+
ue,
|
|
226
226
|
{
|
|
227
227
|
type: "submit",
|
|
228
228
|
className: "mt-4",
|
|
229
|
-
disabled: b(
|
|
230
|
-
onClick: () => l({ key:
|
|
229
|
+
disabled: b(n) && b(d),
|
|
230
|
+
onClick: () => l({ key: n, value: d }),
|
|
231
231
|
children: "Save"
|
|
232
232
|
}
|
|
233
233
|
) })
|
|
234
234
|
] });
|
|
235
|
-
},
|
|
236
|
-
const [
|
|
237
|
-
return /* @__PURE__ */ e.jsxs(
|
|
238
|
-
/* @__PURE__ */ e.jsx(
|
|
239
|
-
|
|
240
|
-
|
|
235
|
+
}, lt = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: n = !0, item: a = {} }) => {
|
|
236
|
+
const [d, i] = w(!1);
|
|
237
|
+
return /* @__PURE__ */ e.jsxs(tr, { children: [
|
|
238
|
+
/* @__PURE__ */ e.jsx(rr, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
|
|
239
|
+
d && /* @__PURE__ */ e.jsx(lr, { children: /* @__PURE__ */ e.jsx(
|
|
240
|
+
Mr,
|
|
241
241
|
{
|
|
242
|
-
item:
|
|
243
|
-
editMode:
|
|
244
|
-
appliedBindings:
|
|
245
|
-
onAddBinding: (
|
|
246
|
-
|
|
242
|
+
item: a,
|
|
243
|
+
editMode: n,
|
|
244
|
+
appliedBindings: s,
|
|
245
|
+
onAddBinding: (o) => {
|
|
246
|
+
r(o), i(!1);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
) })
|
|
250
250
|
] });
|
|
251
|
-
},
|
|
251
|
+
}, Er = ({
|
|
252
252
|
item: t,
|
|
253
253
|
onAddBinding: l,
|
|
254
254
|
onRemove: r,
|
|
255
255
|
selectedBlock: s,
|
|
256
|
-
dataProvider:
|
|
256
|
+
dataProvider: n,
|
|
257
257
|
appliedBindings: a
|
|
258
258
|
}) => {
|
|
259
|
-
const [d, i] = w("string"),
|
|
259
|
+
const [d, i] = w("string"), o = (u, x) => {
|
|
260
260
|
if (b(u))
|
|
261
261
|
return "";
|
|
262
262
|
{
|
|
263
|
-
const c = p(x === "PROP" ? s :
|
|
263
|
+
const c = p(x === "PROP" ? s : n, u, "");
|
|
264
264
|
if (ae(c))
|
|
265
265
|
return "list";
|
|
266
266
|
const m = typeof c;
|
|
267
267
|
return m === "string" ? "text" : m === "object" ? "model" : m;
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
|
-
return _(() => i(() =>
|
|
270
|
+
return _(() => i(() => o(t.key, "PROP")), [t.key]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col border border-gray-200 relative rounded-md p-2", children: [
|
|
271
271
|
/* @__PURE__ */ e.jsx("div", { className: "text-gray-500 font-normal text-sm", children: t.key }),
|
|
272
272
|
/* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
|
|
273
|
-
/* @__PURE__ */ e.jsx(
|
|
273
|
+
/* @__PURE__ */ e.jsx(ve, { data: p(n, t.value, "") }),
|
|
274
274
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
275
|
-
/* @__PURE__ */ e.jsx(
|
|
275
|
+
/* @__PURE__ */ e.jsx(lt, { editMode: !0, onAddBinding: l, appliedBindings: a, item: t, children: /* @__PURE__ */ e.jsx(Sr, { className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-blue-400 hover:text-white border-blue-400 p-1 text-blue-400 hover:scale-105 duration-200" }) }),
|
|
276
276
|
/* @__PURE__ */ e.jsx(
|
|
277
|
-
|
|
277
|
+
Vr,
|
|
278
278
|
{
|
|
279
279
|
onClick: () => r(),
|
|
280
280
|
className: "h-6 w-6 mt-1 cursor-pointer rounded border hover:bg-red-400 hover:text-white border-red-400 p-1 text-red-400 hover:scale-105 duration-200"
|
|
@@ -283,8 +283,8 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
283
283
|
] }),
|
|
284
284
|
!b(d) && !b(t.key) && /* @__PURE__ */ e.jsx("div", { className: "mt-px absolute right-0 top-1 text-purple-600 text-[10px] flex items-center font-medium h-4 px-2 rounded-full", children: Y(d) })
|
|
285
285
|
] });
|
|
286
|
-
},
|
|
287
|
-
const r = G(), [s] =
|
|
286
|
+
}, _r = ({ bindingData: t, onChange: l }) => {
|
|
287
|
+
const r = G(), [s] = rt(), n = Hr(), [a, d] = w(
|
|
288
288
|
C(t, (c, m) => ({ key: m, value: c }))
|
|
289
289
|
);
|
|
290
290
|
_(() => {
|
|
@@ -295,13 +295,13 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
295
295
|
return !0;
|
|
296
296
|
if (b(a))
|
|
297
297
|
return !1;
|
|
298
|
-
const c =
|
|
298
|
+
const c = be(a);
|
|
299
299
|
return b(c == null ? void 0 : c.key) || b(c == null ? void 0 : c.value);
|
|
300
|
-
}, [s, a]),
|
|
301
|
-
const m =
|
|
300
|
+
}, [s, a]), o = (c) => {
|
|
301
|
+
const m = fe(a, (h) => h.key !== c.key);
|
|
302
302
|
d([...m, c]), x([...m, c]);
|
|
303
303
|
}, u = (c) => {
|
|
304
|
-
const m =
|
|
304
|
+
const m = fe(a, (h, g) => c !== g);
|
|
305
305
|
x([...m]);
|
|
306
306
|
}, x = A(
|
|
307
307
|
(c = []) => {
|
|
@@ -310,22 +310,22 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
const m = {};
|
|
313
|
-
|
|
314
|
-
!b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) &&
|
|
313
|
+
we(c, (h) => {
|
|
314
|
+
!b(h == null ? void 0 : h.key) && !b(h == null ? void 0 : h.value) && Ee(m, h.key, h.value);
|
|
315
315
|
}), l(m);
|
|
316
316
|
},
|
|
317
317
|
[l]
|
|
318
318
|
);
|
|
319
|
-
return b(
|
|
319
|
+
return b(n) ? /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("p", { className: "text-gray-500 mb-1.5 text-xs", children: [
|
|
320
320
|
"You have no data providers registered. Please add a data provider to your project. ",
|
|
321
321
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
322
322
|
/* @__PURE__ */ e.jsx("a", { className: "text-blue-500", href: "https://chaibuilder.com/docs/registering-data-providers", target: "_blank", children: "Learn more" })
|
|
323
323
|
] }) }) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
324
324
|
C(a, (c, m) => /* @__PURE__ */ e.jsx(
|
|
325
|
-
|
|
325
|
+
Er,
|
|
326
326
|
{
|
|
327
327
|
item: c,
|
|
328
|
-
onAddBinding:
|
|
328
|
+
onAddBinding: o,
|
|
329
329
|
onRemove: () => u(m),
|
|
330
330
|
selectedBlock: r,
|
|
331
331
|
dataProvider: s,
|
|
@@ -334,80 +334,89 @@ const fe = ({ data: t, fullView: l }) => {
|
|
|
334
334
|
c.key
|
|
335
335
|
)),
|
|
336
336
|
/* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
|
|
337
|
-
/* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
|
|
338
|
-
|
|
337
|
+
/* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
|
|
338
|
+
lt,
|
|
339
339
|
{
|
|
340
340
|
disabled: i,
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
appliedBindings: C(a, "key"),
|
|
342
|
+
onAddBinding: o,
|
|
343
|
+
children: /* @__PURE__ */ e.jsx(
|
|
344
|
+
"span",
|
|
345
|
+
{
|
|
346
|
+
className: `w-full px-5 py-1.5 text-xs rounded-md font-medium duration-200 ${i ? "cursor-not-allowed bg-gray-200 text-gray-400" : "bg-blue-700/20 text-blue-800 hover:bg-blue-700/30"}`,
|
|
347
|
+
children: b(s) ? /* @__PURE__ */ e.jsx("small", { className: "text-gray-500 text-[9.5px]", children: "No data provider has been set up for this page" }) : "+ Add Data Binding"
|
|
348
|
+
}
|
|
349
|
+
)
|
|
343
350
|
}
|
|
344
|
-
) })
|
|
351
|
+
) }),
|
|
345
352
|
i && /* @__PURE__ */ e.jsx(Z, { sideOffset: -55, className: "text-[11px]", children: b(s) ? "No data provider has been set up for this page." : "Complete last added data binding to add more" })
|
|
346
353
|
] })
|
|
347
354
|
] });
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
355
|
+
}, Fr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), Ie = dt(
|
|
356
|
+
({
|
|
357
|
+
createHistorySnapshot: t,
|
|
358
|
+
properties: l,
|
|
359
|
+
formData: r,
|
|
360
|
+
onChange: s
|
|
361
|
+
}) => {
|
|
362
|
+
const [n] = sr(), a = { type: "object", properties: {} }, d = {};
|
|
363
|
+
return Object.keys(l).forEach((i) => {
|
|
364
|
+
const o = l[i];
|
|
365
|
+
if (M(["slot", "styles"], o.type))
|
|
366
|
+
return;
|
|
367
|
+
const u = p(o, "i18n", !1) ? `${i}-${n}` : i;
|
|
368
|
+
a.properties[u] = or(o, n), d[u] = nr(o, n);
|
|
369
|
+
}), /* @__PURE__ */ e.jsx(
|
|
370
|
+
kr,
|
|
371
|
+
{
|
|
372
|
+
widgets: {
|
|
373
|
+
binding: Fr,
|
|
374
|
+
richtext: ar,
|
|
375
|
+
icon: ir,
|
|
376
|
+
image: dr
|
|
377
|
+
},
|
|
378
|
+
fields: {
|
|
379
|
+
link: cr
|
|
380
|
+
},
|
|
381
|
+
idSeparator: ".",
|
|
382
|
+
autoComplete: "off",
|
|
383
|
+
omitExtraData: !1,
|
|
384
|
+
liveOmit: !1,
|
|
385
|
+
liveValidate: !0,
|
|
386
|
+
validator: Nr,
|
|
387
|
+
uiSchema: d,
|
|
388
|
+
onBlur: t,
|
|
389
|
+
schema: a,
|
|
390
|
+
formData: r,
|
|
391
|
+
onChange: s
|
|
392
|
+
}
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
);
|
|
396
|
+
function Yr() {
|
|
397
|
+
const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = et(t._type), n = { ...t }, a = () => l(), d = ({ formData: x }, c) => {
|
|
389
398
|
if (c) {
|
|
390
399
|
const m = c.replace("root.", "");
|
|
391
400
|
r([t._id], { [m]: p(x, m) });
|
|
392
401
|
}
|
|
393
402
|
}, i = {
|
|
394
|
-
_name:
|
|
403
|
+
_name: Tr({
|
|
395
404
|
title: "Name",
|
|
396
405
|
default: p(t, "_name", t._type)
|
|
397
406
|
})
|
|
398
|
-
},
|
|
399
|
-
const x =
|
|
400
|
-
return
|
|
407
|
+
}, o = gt(p(n, "_bindings", {})), u = N(() => {
|
|
408
|
+
const x = ht(p(s, "props", {}));
|
|
409
|
+
return mt(o, (c) => {
|
|
401
410
|
delete x[c];
|
|
402
411
|
}), x;
|
|
403
|
-
}, [s,
|
|
412
|
+
}, [s, o]);
|
|
404
413
|
return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
|
|
405
414
|
/* @__PURE__ */ e.jsx(
|
|
406
|
-
|
|
415
|
+
Ie,
|
|
407
416
|
{
|
|
408
417
|
onChange: d,
|
|
409
418
|
createHistorySnapshot: a,
|
|
410
|
-
formData:
|
|
419
|
+
formData: n,
|
|
411
420
|
properties: i
|
|
412
421
|
}
|
|
413
422
|
),
|
|
@@ -424,11 +433,11 @@ function Er() {
|
|
|
424
433
|
"Data Binding"
|
|
425
434
|
] }) }),
|
|
426
435
|
/* @__PURE__ */ e.jsx(ce, { className: "pt-4 px-4", children: /* @__PURE__ */ e.jsx(
|
|
427
|
-
|
|
436
|
+
_r,
|
|
428
437
|
{
|
|
429
|
-
bindingData: p(
|
|
438
|
+
bindingData: p(n, "_bindings", {}),
|
|
430
439
|
onChange: (x) => {
|
|
431
|
-
d({ formData: { ...
|
|
440
|
+
d({ formData: { ...n, _bindings: x } }, "root._bindings");
|
|
432
441
|
}
|
|
433
442
|
}
|
|
434
443
|
) })
|
|
@@ -439,19 +448,19 @@ function Er() {
|
|
|
439
448
|
"Static Content"
|
|
440
449
|
] }) }),
|
|
441
450
|
/* @__PURE__ */ e.jsxs(ce, { className: "pt-4", children: [
|
|
442
|
-
b(
|
|
451
|
+
b(o) ? "" : /* @__PURE__ */ e.jsxs("div", { className: "text-xs mx-4 border rounded-sm p-1 mb-1 mt-0 border-orange-500 text-orange-500 bg-orange-100", children: [
|
|
443
452
|
"Data binding is set for ",
|
|
444
|
-
/* @__PURE__ */ e.jsx("b", { children: C(
|
|
453
|
+
/* @__PURE__ */ e.jsx("b", { children: C(o, yt).join(", ") }),
|
|
445
454
|
" ",
|
|
446
|
-
|
|
455
|
+
o.length === 1 ? "property" : "properties",
|
|
447
456
|
". Remove data binding to edit static content."
|
|
448
457
|
] }),
|
|
449
458
|
/* @__PURE__ */ e.jsx(
|
|
450
|
-
|
|
459
|
+
Ie,
|
|
451
460
|
{
|
|
452
461
|
onChange: d,
|
|
453
462
|
createHistorySnapshot: a,
|
|
454
|
-
formData:
|
|
463
|
+
formData: n,
|
|
455
464
|
properties: u
|
|
456
465
|
}
|
|
457
466
|
)
|
|
@@ -461,28 +470,28 @@ function Er() {
|
|
|
461
470
|
/* @__PURE__ */ e.jsx("div", { className: "pb-60" })
|
|
462
471
|
] });
|
|
463
472
|
}
|
|
464
|
-
const
|
|
473
|
+
const Pe = new Dr(Ir, {
|
|
465
474
|
isCaseSensitive: !1,
|
|
466
475
|
threshold: 0.2,
|
|
467
476
|
minMatchCharLength: 2,
|
|
468
477
|
keys: ["name"]
|
|
469
478
|
});
|
|
470
|
-
function
|
|
479
|
+
function Wr() {
|
|
471
480
|
var D;
|
|
472
|
-
const [t] = Ne(), l = G(), r = Ke(), s = qe(), [
|
|
481
|
+
const [t] = Ne(), l = G(), r = Ke(), s = qe(), [n] = Je(), [a, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, o = bt((p(l, i, "").replace($r, "").split(",").pop() || "").split(" "), b), u = () => {
|
|
473
482
|
const j = a.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
474
|
-
r(
|
|
483
|
+
r(n, j, !0), d("");
|
|
475
484
|
}, [x, c] = w([]), m = ({ value: j }) => {
|
|
476
|
-
const L = j.trim().toLowerCase(),
|
|
485
|
+
const L = j.trim().toLowerCase(), P = L.match(/.+:/g);
|
|
477
486
|
let k = [];
|
|
478
|
-
if (
|
|
479
|
-
const [
|
|
480
|
-
k =
|
|
487
|
+
if (P && P.length > 0) {
|
|
488
|
+
const [$] = P, F = L.replace($, "");
|
|
489
|
+
k = Pe.search(F).map((y) => ({
|
|
481
490
|
...y,
|
|
482
|
-
item: { ...y.item, name:
|
|
491
|
+
item: { ...y.item, name: $ + y.item.name }
|
|
483
492
|
}));
|
|
484
493
|
} else
|
|
485
|
-
k =
|
|
494
|
+
k = Pe.search(L);
|
|
486
495
|
c(C(k, "item"));
|
|
487
496
|
}, h = () => {
|
|
488
497
|
c([]);
|
|
@@ -507,7 +516,7 @@ function _r() {
|
|
|
507
516
|
/* @__PURE__ */ e.jsx(Te, { className: "mt-2", children: "Add Tailwind classes" }),
|
|
508
517
|
/* @__PURE__ */ e.jsxs("div", { className: "relative -mt-4 flex items-center gap-x-3", children: [
|
|
509
518
|
/* @__PURE__ */ e.jsx("div", { className: "relative flex w-full items-center gap-x-3", children: /* @__PURE__ */ e.jsx(
|
|
510
|
-
|
|
519
|
+
Ar,
|
|
511
520
|
{
|
|
512
521
|
suggestions: x,
|
|
513
522
|
onSuggestionsFetchRequested: m,
|
|
@@ -526,7 +535,7 @@ function _r() {
|
|
|
526
535
|
}
|
|
527
536
|
) }),
|
|
528
537
|
/* @__PURE__ */ e.jsx(
|
|
529
|
-
|
|
538
|
+
ue,
|
|
530
539
|
{
|
|
531
540
|
variant: "outline",
|
|
532
541
|
className: "h-6 border-gray-700",
|
|
@@ -538,18 +547,18 @@ function _r() {
|
|
|
538
547
|
)
|
|
539
548
|
] }),
|
|
540
549
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-wrap gap-2", children: [
|
|
541
|
-
b(
|
|
550
|
+
b(o) && /* @__PURE__ */ e.jsx("div", { className: "flex h-10 w-full items-center justify-center text-center text-sm text-gray-400", children: "No class added" }),
|
|
542
551
|
ne.Children.toArray(
|
|
543
|
-
|
|
552
|
+
o.map((j) => /* @__PURE__ */ e.jsxs(
|
|
544
553
|
"div",
|
|
545
554
|
{
|
|
546
555
|
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",
|
|
547
556
|
children: [
|
|
548
557
|
j,
|
|
549
558
|
/* @__PURE__ */ e.jsx(
|
|
550
|
-
|
|
559
|
+
We,
|
|
551
560
|
{
|
|
552
|
-
onClick: () => s(
|
|
561
|
+
onClick: () => s(n, [j]),
|
|
553
562
|
className: "invisible absolute right-1 hover:text-white group-hover:visible group-hover:cursor-pointer"
|
|
554
563
|
}
|
|
555
564
|
)
|
|
@@ -563,7 +572,7 @@ function _r() {
|
|
|
563
572
|
}
|
|
564
573
|
);
|
|
565
574
|
}
|
|
566
|
-
const B = ["px", "%", "em", "rem", "ch", "vh", "vw"],
|
|
575
|
+
const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
567
576
|
heading: "Flex Child",
|
|
568
577
|
items: [
|
|
569
578
|
{ type: "arbitrary", label: "Basis", units: B, property: "flexBasis" },
|
|
@@ -572,7 +581,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
572
581
|
{ type: "dropdown", label: "Grow", property: "flexGrow" },
|
|
573
582
|
{ type: "dropdown", label: "Shrink", property: "flexShrink" }
|
|
574
583
|
]
|
|
575
|
-
},
|
|
584
|
+
}, Zr = {
|
|
576
585
|
heading: "Grid Child",
|
|
577
586
|
items: [
|
|
578
587
|
{ type: "range", label: "Col Span", property: "gridColSpan" },
|
|
@@ -583,70 +592,12 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
583
592
|
{ type: "range", label: "Row End", property: "gridRowEnd" },
|
|
584
593
|
{ type: "range", label: "Order", property: "order" }
|
|
585
594
|
]
|
|
586
|
-
},
|
|
595
|
+
}, zr = [
|
|
587
596
|
{
|
|
588
|
-
heading: "
|
|
589
|
-
items: [
|
|
590
|
-
{ type: "dropdown", label: "Display", property: "display", units: B },
|
|
591
|
-
{
|
|
592
|
-
styleType: "accordion",
|
|
593
|
-
heading: "Flex options",
|
|
594
|
-
items: [
|
|
595
|
-
{ type: "dropdown", label: "Direction", property: "flexDirection" },
|
|
596
|
-
{ type: "dropdown", label: "Wrap", property: "flexWrap" },
|
|
597
|
-
{ type: "dropdown", label: "Justify", property: "justifyContent" },
|
|
598
|
-
{ type: "dropdown", label: "Content", property: "alignContent" },
|
|
599
|
-
{ type: "dropdown", label: "Items", property: "alignItems" },
|
|
600
|
-
{
|
|
601
|
-
styleType: "multiple",
|
|
602
|
-
label: "Gap",
|
|
603
|
-
options: [
|
|
604
|
-
{ key: "gap", label: "All" },
|
|
605
|
-
{ key: "gapX", label: "Left-Right" },
|
|
606
|
-
{ key: "gapY", label: "Top-Bottom" }
|
|
607
|
-
]
|
|
608
|
-
}
|
|
609
|
-
],
|
|
610
|
-
conditions: { display: "flex" }
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
styleType: "accordion",
|
|
614
|
-
heading: "Grid options",
|
|
615
|
-
items: [
|
|
616
|
-
{ type: "range", label: "Columns", property: "gridColumns" },
|
|
617
|
-
{ type: "range", label: "Rows", property: "gridRows" },
|
|
618
|
-
{ type: "dropdown", label: "Auto Flow", property: "gridAutoFlow" },
|
|
619
|
-
{ type: "dropdown", label: "Auto Cols", property: "gridAutoColumns" },
|
|
620
|
-
{ type: "dropdown", label: "Auto Rows", property: "gridAutoRows" },
|
|
621
|
-
{ type: "dropdown", label: "Justify", property: "justifyContent" },
|
|
622
|
-
{ type: "dropdown", label: "Content", property: "alignContent" },
|
|
623
|
-
{ type: "dropdown", label: "Items", property: "alignItems" },
|
|
624
|
-
{
|
|
625
|
-
styleType: "multiple",
|
|
626
|
-
label: "Gap",
|
|
627
|
-
units: ["px", "rem"],
|
|
628
|
-
options: [
|
|
629
|
-
{ key: "gap", label: "All" },
|
|
630
|
-
{ key: "gapX", label: "Left-Right" },
|
|
631
|
-
{ key: "gapY", label: "Top-Bottom" }
|
|
632
|
-
]
|
|
633
|
-
}
|
|
634
|
-
],
|
|
635
|
-
conditions: { display: "grid" }
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
styleType: "accordion",
|
|
639
|
-
heading: "Visibility & Opacity",
|
|
640
|
-
items: [
|
|
641
|
-
{ type: "dropdown", label: "Visibility", property: "visibility", units: B },
|
|
642
|
-
{ type: "arbitrary", label: "Opacity", property: "opacity", units: ["-"] }
|
|
643
|
-
]
|
|
644
|
-
}
|
|
645
|
-
]
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
heading: "Spacing",
|
|
597
|
+
heading: "Layout",
|
|
649
598
|
items: [
|
|
599
|
+
{ type: "arbitrary", label: "Width", units: B.concat("auto"), property: "width" },
|
|
600
|
+
{ type: "arbitrary", label: "Height", units: B.concat("auto"), property: "height" },
|
|
650
601
|
{
|
|
651
602
|
styleType: "multiple",
|
|
652
603
|
label: "Margin",
|
|
@@ -677,7 +628,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
677
628
|
},
|
|
678
629
|
{
|
|
679
630
|
styleType: "multiple",
|
|
680
|
-
label: "Space
|
|
631
|
+
label: "Space Bt.",
|
|
681
632
|
options: [
|
|
682
633
|
{ key: "spaceX", label: "Left-Right" },
|
|
683
634
|
{ key: "spaceY", label: "Top-Bottom" }
|
|
@@ -688,8 +639,6 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
688
639
|
{
|
|
689
640
|
heading: "Size",
|
|
690
641
|
items: [
|
|
691
|
-
{ type: "arbitrary", label: "Width", units: B.concat("auto"), property: "width" },
|
|
692
|
-
{ type: "arbitrary", label: "Height", units: B.concat("auto"), property: "height" },
|
|
693
642
|
{
|
|
694
643
|
styleType: "accordion",
|
|
695
644
|
heading: "Min width & height",
|
|
@@ -717,6 +666,66 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
717
666
|
}
|
|
718
667
|
]
|
|
719
668
|
},
|
|
669
|
+
{
|
|
670
|
+
heading: "Display",
|
|
671
|
+
items: [
|
|
672
|
+
{ type: "dropdown", label: "Display", property: "display", units: B },
|
|
673
|
+
{
|
|
674
|
+
styleType: "accordion",
|
|
675
|
+
heading: "Flex options",
|
|
676
|
+
items: [
|
|
677
|
+
{ type: "dropdown", label: "Direction", property: "flexDirection" },
|
|
678
|
+
{ type: "dropdown", label: "Wrap", property: "flexWrap" },
|
|
679
|
+
{ type: "dropdown", label: "Justify", property: "justifyContent" },
|
|
680
|
+
{ type: "dropdown", label: "Content", property: "alignContent" },
|
|
681
|
+
{ type: "dropdown", label: "Items", property: "alignItems" },
|
|
682
|
+
{
|
|
683
|
+
styleType: "multiple",
|
|
684
|
+
label: "Gap",
|
|
685
|
+
options: [
|
|
686
|
+
{ key: "gap", label: "All" },
|
|
687
|
+
{ key: "gapX", label: "Left-Right" },
|
|
688
|
+
{ key: "gapY", label: "Top-Bottom" }
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
conditions: { display: "flex" }
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
styleType: "accordion",
|
|
696
|
+
heading: "Grid options",
|
|
697
|
+
items: [
|
|
698
|
+
{ type: "range", label: "Columns", property: "gridColumns" },
|
|
699
|
+
{ type: "range", label: "Rows", property: "gridRows" },
|
|
700
|
+
{ type: "dropdown", label: "Auto Flow", property: "gridAutoFlow" },
|
|
701
|
+
{ type: "dropdown", label: "Auto Cols", property: "gridAutoColumns" },
|
|
702
|
+
{ type: "dropdown", label: "Auto Rows", property: "gridAutoRows" },
|
|
703
|
+
{ type: "dropdown", label: "Justify", property: "justifyContent" },
|
|
704
|
+
{ type: "dropdown", label: "Content", property: "alignContent" },
|
|
705
|
+
{ type: "dropdown", label: "Items", property: "alignItems" },
|
|
706
|
+
{
|
|
707
|
+
styleType: "multiple",
|
|
708
|
+
label: "Gap",
|
|
709
|
+
units: ["px", "rem"],
|
|
710
|
+
options: [
|
|
711
|
+
{ key: "gap", label: "All" },
|
|
712
|
+
{ key: "gapX", label: "Left-Right" },
|
|
713
|
+
{ key: "gapY", label: "Top-Bottom" }
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
conditions: { display: "grid" }
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
styleType: "accordion",
|
|
721
|
+
heading: "Visibility & Opacity",
|
|
722
|
+
items: [
|
|
723
|
+
{ type: "dropdown", label: "Visibility", property: "visibility", units: B },
|
|
724
|
+
{ type: "arbitrary", label: "Opacity", property: "opacity", units: ["-"] }
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
]
|
|
728
|
+
},
|
|
720
729
|
{
|
|
721
730
|
heading: "Position",
|
|
722
731
|
items: [
|
|
@@ -985,63 +994,63 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
985
994
|
},
|
|
986
995
|
{
|
|
987
996
|
heading: "Classes",
|
|
988
|
-
items: [{ component:
|
|
997
|
+
items: [{ component: Wr }]
|
|
989
998
|
}
|
|
990
|
-
],
|
|
999
|
+
], st = {
|
|
991
1000
|
"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" }) }),
|
|
992
1001
|
// visibility
|
|
993
|
-
visible:
|
|
1002
|
+
visible: Ct,
|
|
994
1003
|
invisible: Ve,
|
|
995
1004
|
// display
|
|
996
1005
|
hidden: Ve,
|
|
997
1006
|
gap: O,
|
|
998
|
-
gapX:
|
|
1007
|
+
gapX: S,
|
|
999
1008
|
gapY: V,
|
|
1000
|
-
spaceX:
|
|
1009
|
+
spaceX: S,
|
|
1001
1010
|
spaceY: V,
|
|
1002
1011
|
overscroll: O,
|
|
1003
|
-
overscrollX:
|
|
1012
|
+
overscrollX: S,
|
|
1004
1013
|
overscrollY: V,
|
|
1005
1014
|
overflow: O,
|
|
1006
|
-
overflowX:
|
|
1015
|
+
overflowX: S,
|
|
1007
1016
|
overflowY: V,
|
|
1008
1017
|
top: q,
|
|
1009
1018
|
right: J,
|
|
1010
1019
|
bottom: Q,
|
|
1011
1020
|
left: ee,
|
|
1012
1021
|
inset: O,
|
|
1013
|
-
insetX:
|
|
1022
|
+
insetX: S,
|
|
1014
1023
|
insetY: V,
|
|
1015
1024
|
border: O,
|
|
1016
|
-
borderX:
|
|
1025
|
+
borderX: S,
|
|
1017
1026
|
borderY: V,
|
|
1018
1027
|
borderTop: q,
|
|
1019
1028
|
borderRight: J,
|
|
1020
1029
|
borderBottom: Q,
|
|
1021
1030
|
borderLeft: ee,
|
|
1022
1031
|
borderRadius: O,
|
|
1023
|
-
borderRadiusX:
|
|
1032
|
+
borderRadiusX: S,
|
|
1024
1033
|
borderRadiusY: V,
|
|
1025
1034
|
borderRadiusTop: q,
|
|
1026
1035
|
borderRadiusRight: J,
|
|
1027
1036
|
borderRadiusBottom: Q,
|
|
1028
1037
|
borderRadiusLeft: ee,
|
|
1029
|
-
borderRadiusTopLeft:
|
|
1030
|
-
borderRadiusTopRight:
|
|
1031
|
-
borderRadiusBottomRight:
|
|
1032
|
-
borderRadiusBottomLeft:
|
|
1033
|
-
divideXWidth:
|
|
1038
|
+
borderRadiusTopLeft: kt,
|
|
1039
|
+
borderRadiusTopRight: Nt,
|
|
1040
|
+
borderRadiusBottomRight: Tt,
|
|
1041
|
+
borderRadiusBottomLeft: Rt,
|
|
1042
|
+
divideXWidth: S,
|
|
1034
1043
|
divideYWidth: V,
|
|
1035
1044
|
scale: O,
|
|
1036
|
-
scaleX:
|
|
1045
|
+
scaleX: S,
|
|
1037
1046
|
scaleY: V,
|
|
1038
|
-
skewX:
|
|
1047
|
+
skewX: S,
|
|
1039
1048
|
skewY: V,
|
|
1040
|
-
translateX:
|
|
1049
|
+
translateX: S,
|
|
1041
1050
|
translateY: V,
|
|
1042
1051
|
// padding
|
|
1043
1052
|
padding: O,
|
|
1044
|
-
paddingX:
|
|
1053
|
+
paddingX: S,
|
|
1045
1054
|
paddingY: V,
|
|
1046
1055
|
paddingTop: q,
|
|
1047
1056
|
paddingRight: J,
|
|
@@ -1049,25 +1058,25 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
1049
1058
|
paddingLeft: ee,
|
|
1050
1059
|
// margin
|
|
1051
1060
|
margin: O,
|
|
1052
|
-
marginX:
|
|
1061
|
+
marginX: S,
|
|
1053
1062
|
marginY: V,
|
|
1054
1063
|
marginTop: q,
|
|
1055
1064
|
marginRight: J,
|
|
1056
1065
|
marginBottom: Q,
|
|
1057
1066
|
marginLeft: ee,
|
|
1058
1067
|
// text-align
|
|
1059
|
-
textLeft:
|
|
1060
|
-
textCenter:
|
|
1061
|
-
textRight:
|
|
1062
|
-
textJustify:
|
|
1068
|
+
textLeft: St,
|
|
1069
|
+
textCenter: Vt,
|
|
1070
|
+
textRight: Ht,
|
|
1071
|
+
textJustify: Bt,
|
|
1063
1072
|
// font style
|
|
1064
|
-
italic:
|
|
1073
|
+
italic: At,
|
|
1065
1074
|
// "not-italic": "",
|
|
1066
1075
|
// decoration
|
|
1067
|
-
underline:
|
|
1068
|
-
overline:
|
|
1076
|
+
underline: Dt,
|
|
1077
|
+
overline: It,
|
|
1069
1078
|
// transform
|
|
1070
|
-
uppercase:
|
|
1079
|
+
uppercase: Pt,
|
|
1071
1080
|
block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1072
1081
|
/* @__PURE__ */ e.jsx(
|
|
1073
1082
|
"path",
|
|
@@ -1108,7 +1117,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
1108
1117
|
}
|
|
1109
1118
|
)
|
|
1110
1119
|
] }),
|
|
1111
|
-
"float-none":
|
|
1120
|
+
"float-none": We,
|
|
1112
1121
|
// position
|
|
1113
1122
|
fixed: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1114
1123
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1180,82 +1189,87 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Fr = {
|
|
|
1180
1189
|
}
|
|
1181
1190
|
)
|
|
1182
1191
|
] }),
|
|
1183
|
-
static:
|
|
1184
|
-
}, le =
|
|
1192
|
+
static: $t
|
|
1193
|
+
}, le = Me({ canReset: !1, canChange: !0 }), Ur = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
|
|
1185
1194
|
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
1186
1195
|
/* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
|
|
1187
|
-
),
|
|
1188
|
-
const s = N(() => p(
|
|
1196
|
+
), ot = ({ label: t, property: l, onChange: r }) => {
|
|
1197
|
+
const s = N(() => p(ge, `${l}.classes`, [""]), [l]), n = se(l), a = N(() => p(n, "cls", ""), [n]), { canChange: d } = re(le), i = /\[.*\]/g.test(a);
|
|
1189
1198
|
return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1190
|
-
/* @__PURE__ */ e.jsx(
|
|
1199
|
+
/* @__PURE__ */ e.jsx(pr, { className: "w-[70%] rounded py-1", readOnly: !0, value: a }),
|
|
1191
1200
|
/* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
|
|
1192
1201
|
/* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx("button", { type: "button", className: "invisible ml-3 mt-1 text-blue-600 group-hover:visible", children: /* @__PURE__ */ e.jsx(ke, {}) }) }),
|
|
1193
1202
|
/* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
|
|
1194
1203
|
] })
|
|
1195
1204
|
] }) : /* @__PURE__ */ e.jsx(
|
|
1196
|
-
|
|
1205
|
+
je,
|
|
1197
1206
|
{
|
|
1198
1207
|
rounded: t,
|
|
1199
|
-
onChange: (
|
|
1208
|
+
onChange: (o) => r(o, l),
|
|
1200
1209
|
selected: a,
|
|
1201
1210
|
options: s,
|
|
1202
1211
|
disabled: !d
|
|
1203
1212
|
}
|
|
1204
1213
|
) });
|
|
1205
1214
|
};
|
|
1206
|
-
function
|
|
1215
|
+
function je({ selected: t, onChange: l, rounded: r = !1, options: s, disabled: n = !1 }) {
|
|
1207
1216
|
const a = t.replace(/.*:/g, "").trim(), { undo: d, redo: i } = ze();
|
|
1208
1217
|
return /* @__PURE__ */ e.jsxs(
|
|
1209
1218
|
"select",
|
|
1210
1219
|
{
|
|
1211
|
-
disabled: !s.length ||
|
|
1220
|
+
disabled: !s.length || n,
|
|
1212
1221
|
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`,
|
|
1213
|
-
onChange: (
|
|
1214
|
-
onKeyDown: (
|
|
1215
|
-
|
|
1222
|
+
onChange: (o) => l(o.target.value),
|
|
1223
|
+
onKeyDown: (o) => {
|
|
1224
|
+
o.ctrlKey && (o.key === "z" && d(), o.key === "y" && i());
|
|
1216
1225
|
},
|
|
1217
1226
|
value: a,
|
|
1218
1227
|
children: [
|
|
1219
1228
|
/* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: "" }),
|
|
1220
|
-
|
|
1221
|
-
s.map((
|
|
1229
|
+
I.Children.toArray(
|
|
1230
|
+
s.map((o) => /* @__PURE__ */ e.jsx("option", { className: "bg-transparent", value: o, children: o }))
|
|
1222
1231
|
)
|
|
1223
1232
|
]
|
|
1224
1233
|
}
|
|
1225
1234
|
);
|
|
1226
1235
|
}
|
|
1227
|
-
const
|
|
1228
|
-
const { canReset: r, canChange: s } = re(le),
|
|
1229
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children:
|
|
1236
|
+
const Gr = ({ property: t, onChange: l }) => {
|
|
1237
|
+
const { canReset: r, canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]), d = N(() => p(ge, `${t}.classes`, [""]), [t]), i = d.indexOf(a) > -1 ? d.indexOf(a) : 0, o = /\[.*\]/g.test(a);
|
|
1238
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex flex-row divide-x divide-solid divide-border rounded border border-border text-xs", children: o ? /* @__PURE__ */ e.jsx("div", { className: "py-[5px] px-2", children: a }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1230
1239
|
/* @__PURE__ */ e.jsx(
|
|
1231
1240
|
"button",
|
|
1232
1241
|
{
|
|
1233
1242
|
type: "button",
|
|
1234
1243
|
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",
|
|
1235
1244
|
disabled: !s && (!r || i - 1 < 0),
|
|
1236
|
-
onClick: () => l(
|
|
1237
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
1245
|
+
onClick: () => l(Se(d, i - 1), t),
|
|
1246
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
1247
|
+
Lt,
|
|
1248
|
+
{
|
|
1249
|
+
className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
|
|
1250
|
+
}
|
|
1251
|
+
) })
|
|
1238
1252
|
}
|
|
1239
1253
|
),
|
|
1240
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(
|
|
1254
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(ot, { label: !1, property: t, onChange: l }) }),
|
|
1241
1255
|
/* @__PURE__ */ e.jsx(
|
|
1242
1256
|
"button",
|
|
1243
1257
|
{
|
|
1244
1258
|
type: "button",
|
|
1245
1259
|
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",
|
|
1246
1260
|
disabled: !s && (!r || i + 1 >= d.length),
|
|
1247
|
-
onClick: () => l(
|
|
1261
|
+
onClick: () => l(Se(d, i + 1), t),
|
|
1248
1262
|
children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
1249
1263
|
Ce,
|
|
1250
1264
|
{
|
|
1251
|
-
className: !s && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-white/60"
|
|
1265
|
+
className: !s && (!r || i + 1 >= d.length) ? "text-gray-500" : "text-black/60 dark:text-white/60"
|
|
1252
1266
|
}
|
|
1253
1267
|
) })
|
|
1254
1268
|
}
|
|
1255
1269
|
)
|
|
1256
1270
|
] }) });
|
|
1257
|
-
},
|
|
1258
|
-
const r = N(() => p(
|
|
1271
|
+
}, Kr = ({ property: t, onChange: l }) => {
|
|
1272
|
+
const r = N(() => p(ge, `${t}.classes`, [""]), [t]), { canChange: s } = re(le), n = se(t), a = N(() => p(n, "cls", ""), [n]);
|
|
1259
1273
|
return /* @__PURE__ */ e.jsx("div", { className: "flex grow flex-wrap gap-1", children: C(r, (d) => /* @__PURE__ */ e.jsxs(W, { children: [
|
|
1260
1274
|
/* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1261
1275
|
"button",
|
|
@@ -1264,12 +1278,12 @@ const Zr = ({ property: t, onChange: l }) => {
|
|
|
1264
1278
|
disabled: !s,
|
|
1265
1279
|
onClick: () => l(d, t),
|
|
1266
1280
|
className: `cursor-pointer rounded border border-gray-600 p-1 disabled:cursor-not-allowed ${a === d ? " bg-blue-500 text-white" : "disabled:bg-gray-600 disabled:text-gray-400"}`,
|
|
1267
|
-
children:
|
|
1281
|
+
children: I.createElement(p(st, d, Xe))
|
|
1268
1282
|
}
|
|
1269
1283
|
) }),
|
|
1270
1284
|
/* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
|
|
1271
1285
|
] })) });
|
|
1272
|
-
},
|
|
1286
|
+
}, qr = {
|
|
1273
1287
|
backgroundColor: "bg",
|
|
1274
1288
|
textColor: "text",
|
|
1275
1289
|
borderColor: "border",
|
|
@@ -1281,13 +1295,13 @@ const Zr = ({ property: t, onChange: l }) => {
|
|
|
1281
1295
|
toColor: "to",
|
|
1282
1296
|
ringColor: "ring",
|
|
1283
1297
|
ringOffsetColor: "ring-offset"
|
|
1284
|
-
},
|
|
1285
|
-
const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange:
|
|
1298
|
+
}, Jr = ({ property: t, onChange: l }) => {
|
|
1299
|
+
const r = se(t), s = N(() => p(r, "cls", ""), [r]), { canChange: n } = re(le), [a, d] = w([]), [i, o] = w({ color: "", shade: "" }), u = s.split("-"), x = p(u, "1", ""), c = p(u, "2", ""), m = A(
|
|
1286
1300
|
// eslint-disable-next-line no-shadow
|
|
1287
1301
|
(g) => {
|
|
1288
|
-
["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]),
|
|
1302
|
+
["current", "inherit", "transparent", "black", "white"].includes(g) ? (d([]), o({ color: g })) : (d(["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]), o((f) => ({ ...f, color: g, shade: f.shade ? f.shade : "500" })));
|
|
1289
1303
|
},
|
|
1290
|
-
[d,
|
|
1304
|
+
[d, o]
|
|
1291
1305
|
);
|
|
1292
1306
|
_(() => {
|
|
1293
1307
|
if (["current", "inherit", "transparent", "black", "white"].includes(x))
|
|
@@ -1297,20 +1311,20 @@ const Zr = ({ property: t, onChange: l }) => {
|
|
|
1297
1311
|
const h = A(
|
|
1298
1312
|
// eslint-disable-next-line no-shadow
|
|
1299
1313
|
(g) => {
|
|
1300
|
-
|
|
1314
|
+
o({ color: x, shade: g });
|
|
1301
1315
|
},
|
|
1302
1316
|
[x]
|
|
1303
1317
|
);
|
|
1304
1318
|
return _(() => {
|
|
1305
|
-
|
|
1319
|
+
o({ color: "", shade: "" });
|
|
1306
1320
|
}, [r]), _(() => {
|
|
1307
|
-
const f = `${p(
|
|
1308
|
-
f.match(new RegExp(p(
|
|
1321
|
+
const f = `${p(qr, t, "")}-${i.color}${i.shade ? `-${i.shade}` : ""}`;
|
|
1322
|
+
f.match(new RegExp(p(ge, `${t}.regExp`, ""))) && l(f, t);
|
|
1309
1323
|
}, [i, l, t]), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-row divide-x divide-solid divide-border rounded-lg border border-border text-xs", children: [
|
|
1310
1324
|
/* @__PURE__ */ e.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ e.jsx(
|
|
1311
|
-
|
|
1325
|
+
je,
|
|
1312
1326
|
{
|
|
1313
|
-
disabled: !
|
|
1327
|
+
disabled: !n,
|
|
1314
1328
|
rounded: !0,
|
|
1315
1329
|
selected: x,
|
|
1316
1330
|
onChange: m,
|
|
@@ -1346,19 +1360,19 @@ const Zr = ({ property: t, onChange: l }) => {
|
|
|
1346
1360
|
]
|
|
1347
1361
|
}
|
|
1348
1362
|
) }),
|
|
1349
|
-
/* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(
|
|
1363
|
+
/* @__PURE__ */ e.jsx("button", { type: "button", className: "grow text-center", children: /* @__PURE__ */ e.jsx(je, { rounded: !0, selected: c, disabled: !x || !n, onChange: h, options: a }) })
|
|
1350
1364
|
] });
|
|
1351
|
-
},
|
|
1365
|
+
}, $e = (t, l) => {
|
|
1352
1366
|
t = t.toLowerCase();
|
|
1353
1367
|
let r = t.trim().replace(/ |\+/g, "");
|
|
1354
1368
|
if ((r === "auto" || r === "none") && l.includes(r))
|
|
1355
1369
|
return { value: "", unit: r };
|
|
1356
1370
|
const s = l.length ? new RegExp(l.join("|"), "g") : /XXXXXX/g;
|
|
1357
1371
|
r = r.replace(s, "");
|
|
1358
|
-
const
|
|
1359
|
-
return a || d ? { error: "Invalid value" } :
|
|
1372
|
+
const n = t.match(s), a = n && n.length > 1, d = !b(r) && Number.isNaN(Number(r));
|
|
1373
|
+
return a || d ? { error: "Invalid value" } : n && (n[0] === "auto" || n[0] === "none") ? { value: n[0], unit: "" } : { value: r, unit: n ? n[0] : "" };
|
|
1360
1374
|
};
|
|
1361
|
-
const
|
|
1375
|
+
const Qr = (t) => {
|
|
1362
1376
|
const l = t.startsWith("-") ? "-" : "", r = t.split("-").pop();
|
|
1363
1377
|
if (["auto", "none"].includes(r))
|
|
1364
1378
|
return { value: "", unit: r };
|
|
@@ -1482,109 +1496,97 @@ const Kr = (t) => {
|
|
|
1482
1496
|
if (["max", "min", "fit"].includes(r))
|
|
1483
1497
|
return { value: t, unit: "class" };
|
|
1484
1498
|
if (r.includes("/")) {
|
|
1485
|
-
const [s,
|
|
1486
|
-
return { value: l + (s /
|
|
1499
|
+
const [s, n] = C(r.split("/"), (a) => parseInt(a, 10));
|
|
1500
|
+
return { value: l + (s / n * 100).toFixed(2).replace(".00", ""), unit: "%" };
|
|
1487
1501
|
}
|
|
1488
|
-
return
|
|
1502
|
+
return ft(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
|
|
1489
1503
|
};
|
|
1490
|
-
const
|
|
1504
|
+
const el = (t) => {
|
|
1491
1505
|
if (b(t))
|
|
1492
1506
|
return { value: "", unit: "" };
|
|
1493
1507
|
const l = t.match(/\[.*\]/g);
|
|
1494
1508
|
if (l === null)
|
|
1495
|
-
return
|
|
1496
|
-
const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "",
|
|
1497
|
-
return { value: `${s}${
|
|
1498
|
-
},
|
|
1509
|
+
return tl(t);
|
|
1510
|
+
const r = p(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", n = pe(r.match(/\d+.\d+|\d+/g));
|
|
1511
|
+
return { value: `${s}${n}`, unit: r.replace(n, "") };
|
|
1512
|
+
}, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t), nt = I.createContext({
|
|
1499
1513
|
setDragData: () => {
|
|
1500
1514
|
}
|
|
1501
|
-
}),
|
|
1515
|
+
}), rl = ({
|
|
1502
1516
|
unit: t,
|
|
1503
1517
|
currentValue: l,
|
|
1504
1518
|
onDrag: r,
|
|
1505
1519
|
onDragEnd: s,
|
|
1506
|
-
onDragStart:
|
|
1520
|
+
onDragStart: n,
|
|
1507
1521
|
negative: a,
|
|
1508
1522
|
cssProperty: d
|
|
1509
1523
|
}) => {
|
|
1510
|
-
const { setDragData: i } = re(
|
|
1524
|
+
const { setDragData: i } = re(nt);
|
|
1511
1525
|
return /* @__PURE__ */ e.jsx(
|
|
1512
1526
|
"button",
|
|
1513
1527
|
{
|
|
1514
1528
|
type: "button",
|
|
1515
|
-
onMouseDown: (
|
|
1529
|
+
onMouseDown: (o) => {
|
|
1516
1530
|
const u = {
|
|
1517
1531
|
onDrag: r,
|
|
1518
1532
|
onDragEnd: s,
|
|
1519
1533
|
dragging: !0,
|
|
1520
|
-
dragStartY:
|
|
1534
|
+
dragStartY: o.pageY,
|
|
1521
1535
|
dragStartValue: `${l}`,
|
|
1522
1536
|
dragUnit: t,
|
|
1523
1537
|
negative: a,
|
|
1524
1538
|
cssProperty: d
|
|
1525
1539
|
};
|
|
1526
|
-
|
|
1540
|
+
n(u), i(u);
|
|
1527
1541
|
},
|
|
1528
1542
|
color: void 0,
|
|
1529
1543
|
className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
|
|
1530
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1544
|
+
children: /* @__PURE__ */ e.jsx(Ot, {})
|
|
1531
1545
|
}
|
|
1532
1546
|
);
|
|
1533
|
-
},
|
|
1534
|
-
|
|
1547
|
+
}, ll = ({ onSelect: t, current: l, units: r }) => /* @__PURE__ */ e.jsx("div", { "data-theme": "light", className: "-m-[7px] -mx-[13px] flex w-9 flex-col", children: r.map((s) => /* @__PURE__ */ e.jsx(
|
|
1548
|
+
ue,
|
|
1535
1549
|
{
|
|
1536
1550
|
className: "h-max rounded-none px-1 py-1 text-right text-[11px] hover:bg-blue-400",
|
|
1537
1551
|
color: l === s ? "primary" : void 0,
|
|
1538
1552
|
size: "sm",
|
|
1539
|
-
onClick: (
|
|
1540
|
-
|
|
1553
|
+
onClick: (n) => {
|
|
1554
|
+
n.stopPropagation(), t(s);
|
|
1541
1555
|
},
|
|
1542
1556
|
children: s
|
|
1543
1557
|
},
|
|
1544
1558
|
s
|
|
1545
|
-
)) }),
|
|
1546
|
-
const [l, r] = w(!1), [s,
|
|
1559
|
+
)) }), Le = 50, sl = (t) => {
|
|
1560
|
+
const [l, r] = w(!1), [s, n] = w(""), { currentClass: a, onChange: d, classPrefix: i, cssProperty: o, units: u, negative: x } = t, [c, m] = w(o != null && o.toLowerCase().includes("width") ? "%" : u[0]), [h, g] = w(!1), [f, T] = w(""), [D, j] = w(!1), [L, P] = w(!1);
|
|
1547
1561
|
_(() => {
|
|
1548
|
-
const { value: y, unit: v } =
|
|
1562
|
+
const { value: y, unit: v } = el(a);
|
|
1549
1563
|
if (v === "") {
|
|
1550
|
-
|
|
1564
|
+
n(y), m(o != null && o.toLowerCase().includes("width") ? "%" : pe(u));
|
|
1551
1565
|
return;
|
|
1552
1566
|
}
|
|
1553
|
-
m(v),
|
|
1554
|
-
}, [a,
|
|
1555
|
-
const k =
|
|
1556
|
-
(y) => {
|
|
1557
|
-
d(y);
|
|
1558
|
-
},
|
|
1559
|
-
[d],
|
|
1560
|
-
200
|
|
1561
|
-
), I = me(
|
|
1562
|
-
(y) => {
|
|
1563
|
-
d(y, !1);
|
|
1564
|
-
},
|
|
1565
|
-
[d],
|
|
1566
|
-
200
|
|
1567
|
-
), F = A(
|
|
1567
|
+
m(v), n(v === "class" || b(y) ? "" : y);
|
|
1568
|
+
}, [a, o, u]);
|
|
1569
|
+
const k = ye((y) => d(y), [d], Le), $ = ye((y) => d(y, !1), [d], Le), F = A(
|
|
1568
1570
|
(y = !1) => {
|
|
1569
|
-
const v =
|
|
1571
|
+
const v = $e(`${s}`, u);
|
|
1570
1572
|
if (p(v, "error", !1)) {
|
|
1571
1573
|
g(!0);
|
|
1572
1574
|
return;
|
|
1573
1575
|
}
|
|
1574
|
-
const
|
|
1575
|
-
if (
|
|
1576
|
-
k(`${i}${
|
|
1576
|
+
const R = p(v, "unit") !== "" ? p(v, "unit") : c;
|
|
1577
|
+
if (R === "auto" || R === "none") {
|
|
1578
|
+
k(`${i}${R}`);
|
|
1577
1579
|
return;
|
|
1578
1580
|
}
|
|
1579
1581
|
if (p(v, "value") === "")
|
|
1580
1582
|
return;
|
|
1581
|
-
const K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${
|
|
1582
|
-
y ?
|
|
1583
|
+
const K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${R === "-" ? "" : R}]`;
|
|
1584
|
+
y ? $(K) : k(K);
|
|
1583
1585
|
},
|
|
1584
|
-
[k,
|
|
1586
|
+
[k, $, s, c, i, u]
|
|
1585
1587
|
), oe = A(
|
|
1586
1588
|
(y) => {
|
|
1587
|
-
const v =
|
|
1589
|
+
const v = $e(`${s}`, u);
|
|
1588
1590
|
if (p(v, "error", !1)) {
|
|
1589
1591
|
g(!0);
|
|
1590
1592
|
return;
|
|
@@ -1595,7 +1597,7 @@ const qr = (t) => {
|
|
|
1595
1597
|
}
|
|
1596
1598
|
if (p(v, "value") === "")
|
|
1597
1599
|
return;
|
|
1598
|
-
const
|
|
1600
|
+
const R = p(v, "unit") !== "" ? p(v, "unit") : y, K = `${p(v, "value", "").startsWith("-") ? "-" : ""}${i}[${p(v, "value", "").replace("-", "")}${R === "-" ? "" : R}]`;
|
|
1599
1601
|
k(K);
|
|
1600
1602
|
},
|
|
1601
1603
|
[k, s, i, u]
|
|
@@ -1618,19 +1620,19 @@ const qr = (t) => {
|
|
|
1618
1620
|
onKeyDown: (y) => {
|
|
1619
1621
|
if (y.keyCode !== 38 && y.keyCode !== 40)
|
|
1620
1622
|
return;
|
|
1621
|
-
y.preventDefault(),
|
|
1622
|
-
const v =
|
|
1623
|
-
let
|
|
1624
|
-
y.keyCode === 38 && (
|
|
1625
|
-
const E = `${
|
|
1626
|
-
|
|
1623
|
+
y.preventDefault(), P(!0);
|
|
1624
|
+
const v = vt(y.target.value);
|
|
1625
|
+
let R = _e(v) ? 0 : v;
|
|
1626
|
+
y.keyCode === 38 && (R += 1), y.keyCode === 40 && (R -= 1);
|
|
1627
|
+
const E = `${R}`, it = `${E.startsWith("-") ? "-" : ""}${i}[${E.replace("-", "")}${c === "-" ? "" : c}]`;
|
|
1628
|
+
$(it);
|
|
1627
1629
|
},
|
|
1628
1630
|
onKeyUp: (y) => {
|
|
1629
|
-
L && (y.preventDefault(),
|
|
1631
|
+
L && (y.preventDefault(), P(!1));
|
|
1630
1632
|
},
|
|
1631
1633
|
onBlur: () => F(),
|
|
1632
1634
|
onChange: (y) => {
|
|
1633
|
-
g(!1),
|
|
1635
|
+
g(!1), n(y.target.value);
|
|
1634
1636
|
},
|
|
1635
1637
|
onClick: (y) => {
|
|
1636
1638
|
var v;
|
|
@@ -1652,12 +1654,12 @@ const qr = (t) => {
|
|
|
1652
1654
|
className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
|
|
1653
1655
|
children: [
|
|
1654
1656
|
/* @__PURE__ */ e.jsx("span", { className: `inline-block ${u.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
|
|
1655
|
-
u.length > 1 ? /* @__PURE__ */ e.jsx(
|
|
1657
|
+
u.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
|
|
1656
1658
|
]
|
|
1657
1659
|
}
|
|
1658
1660
|
) }),
|
|
1659
|
-
/* @__PURE__ */ e.jsx(
|
|
1660
|
-
|
|
1661
|
+
/* @__PURE__ */ e.jsx(ur, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
|
|
1662
|
+
ll,
|
|
1661
1663
|
{
|
|
1662
1664
|
units: u,
|
|
1663
1665
|
current: c,
|
|
@@ -1669,7 +1671,7 @@ const qr = (t) => {
|
|
|
1669
1671
|
] })
|
|
1670
1672
|
] }),
|
|
1671
1673
|
["none", "auto"].indexOf(c) !== -1 || D ? null : /* @__PURE__ */ e.jsx(
|
|
1672
|
-
|
|
1674
|
+
rl,
|
|
1673
1675
|
{
|
|
1674
1676
|
onDragStart: () => j(!0),
|
|
1675
1677
|
onDragEnd: (y) => {
|
|
@@ -1683,19 +1685,19 @@ const qr = (t) => {
|
|
|
1683
1685
|
return;
|
|
1684
1686
|
T(y);
|
|
1685
1687
|
const v = `${y}`, E = `${v.startsWith("-") ? "-" : ""}${i}[${v.replace("-", "")}${c === "-" ? "" : c}]`;
|
|
1686
|
-
|
|
1688
|
+
$(E);
|
|
1687
1689
|
},
|
|
1688
1690
|
currentValue: s,
|
|
1689
1691
|
unit: c,
|
|
1690
1692
|
negative: x,
|
|
1691
|
-
cssProperty:
|
|
1693
|
+
cssProperty: o
|
|
1692
1694
|
}
|
|
1693
1695
|
)
|
|
1694
1696
|
] }) }) });
|
|
1695
1697
|
}, se = (t) => {
|
|
1696
|
-
const l =
|
|
1697
|
-
return
|
|
1698
|
-
},
|
|
1698
|
+
const l = xe();
|
|
1699
|
+
return jt(l, { property: t });
|
|
1700
|
+
}, ol = (t, l) => {
|
|
1699
1701
|
const r = {
|
|
1700
1702
|
xs: 0,
|
|
1701
1703
|
sm: 1,
|
|
@@ -1705,7 +1707,7 @@ const qr = (t) => {
|
|
|
1705
1707
|
"2xl": 5
|
|
1706
1708
|
};
|
|
1707
1709
|
return r[p(t, "mq", "xs")] <= r[l];
|
|
1708
|
-
},
|
|
1710
|
+
}, nl = {
|
|
1709
1711
|
width: "w-",
|
|
1710
1712
|
height: "h-",
|
|
1711
1713
|
minWidth: "min-w-",
|
|
@@ -1771,29 +1773,29 @@ const qr = (t) => {
|
|
|
1771
1773
|
insetY: "inset-y-",
|
|
1772
1774
|
opacity: "opacity-",
|
|
1773
1775
|
flexBasis: "basis-"
|
|
1774
|
-
},
|
|
1776
|
+
}, Oe = {
|
|
1775
1777
|
xs: "",
|
|
1776
1778
|
sm: "640px",
|
|
1777
1779
|
md: "768px",
|
|
1778
1780
|
lg: "1024px",
|
|
1779
1781
|
xl: "1280px",
|
|
1780
1782
|
"2xl": "1536px"
|
|
1781
|
-
},
|
|
1782
|
-
const { type: l = "icons", label: r, property: s, onEmitChange:
|
|
1783
|
-
}, units: a, negative: d = !1 } = t, [i] =
|
|
1784
|
-
(k,
|
|
1785
|
-
const F = { dark: i, mq: u, mod:
|
|
1786
|
-
(i ||
|
|
1787
|
-
const oe =
|
|
1788
|
-
c(h, [oe],
|
|
1783
|
+
}, al = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
|
|
1784
|
+
const { type: l = "icons", label: r, property: s, onEmitChange: n = () => {
|
|
1785
|
+
}, units: a, negative: d = !1 } = t, [i] = xr(), [o] = Qe(), [, u] = He(), x = se(s), c = Ke(), m = qe(), [h] = Je(), g = N(() => p(x, "fullCls", ""), [x]), f = A(
|
|
1786
|
+
(k, $ = !0) => {
|
|
1787
|
+
const F = { dark: i, mq: u, mod: o, cls: k, property: s, fullCls: "" };
|
|
1788
|
+
(i || o !== "") && (F.mq = "xs");
|
|
1789
|
+
const oe = Pr(F);
|
|
1790
|
+
c(h, [oe], $);
|
|
1789
1791
|
},
|
|
1790
|
-
[h, i, u,
|
|
1792
|
+
[h, i, u, o, s, c]
|
|
1791
1793
|
), T = A(() => {
|
|
1792
1794
|
m(h, [g]);
|
|
1793
|
-
}, [h, g, m]), D = N(() =>
|
|
1795
|
+
}, [h, g, m]), D = N(() => ol(x, u), [x, u]);
|
|
1794
1796
|
_(() => {
|
|
1795
|
-
|
|
1796
|
-
}, [D,
|
|
1797
|
+
n(D, x);
|
|
1798
|
+
}, [D, n, x]);
|
|
1797
1799
|
const [, , j] = He(), L = A(
|
|
1798
1800
|
(k) => {
|
|
1799
1801
|
j({
|
|
@@ -1806,28 +1808,28 @@ const qr = (t) => {
|
|
|
1806
1808
|
}[k]);
|
|
1807
1809
|
},
|
|
1808
1810
|
[j]
|
|
1809
|
-
),
|
|
1810
|
-
return /* @__PURE__ */ e.jsx(
|
|
1811
|
-
/* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x &&
|
|
1811
|
+
), P = p(x, "dark", null) === i && p(x, "mod", null) === o && p(x, "mq", null) === u;
|
|
1812
|
+
return /* @__PURE__ */ e.jsx(Ur, { canChange: D, canReset: x && P, children: /* @__PURE__ */ e.jsxs("div", { className: "group flex flex-row items-center py-2 first:pt-0 last:pb-0", children: [
|
|
1813
|
+
/* @__PURE__ */ e.jsx("div", { className: "relative w-[70px] truncate text-xs text-foreground", children: /* @__PURE__ */ e.jsx("span", { className: `text-[11px] ${x && !P ? "text-foreground" : ""}`, children: r }) }),
|
|
1812
1814
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-row items-center", children: [
|
|
1813
1815
|
/* @__PURE__ */ e.jsxs("div", { className: "w-[150px]", children: [
|
|
1814
1816
|
l === "arbitrary" ? /* @__PURE__ */ e.jsx(
|
|
1815
|
-
|
|
1817
|
+
sl,
|
|
1816
1818
|
{
|
|
1817
1819
|
currentClass: p(x, "cls", ""),
|
|
1818
|
-
classPrefix: p(
|
|
1820
|
+
classPrefix: p(nl, s, ""),
|
|
1819
1821
|
units: a || [],
|
|
1820
1822
|
onChange: f,
|
|
1821
1823
|
negative: d,
|
|
1822
1824
|
cssProperty: s
|
|
1823
1825
|
}
|
|
1824
1826
|
) : null,
|
|
1825
|
-
l === "icons" && /* @__PURE__ */ e.jsx(
|
|
1826
|
-
l === "range" && /* @__PURE__ */ e.jsx(
|
|
1827
|
-
l === "color" && /* @__PURE__ */ e.jsx(
|
|
1828
|
-
l === "dropdown" && /* @__PURE__ */ e.jsx(
|
|
1827
|
+
l === "icons" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
|
|
1828
|
+
l === "range" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
|
|
1829
|
+
l === "color" && /* @__PURE__ */ e.jsx(Jr, { property: s, onChange: f }),
|
|
1830
|
+
l === "dropdown" && /* @__PURE__ */ e.jsx(ot, { label: r, property: s, onChange: f })
|
|
1829
1831
|
] }),
|
|
1830
|
-
/* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children:
|
|
1832
|
+
/* @__PURE__ */ e.jsx("div", { className: `w-[30px] cursor-pointer ${g ? "visible" : "invisible"}`, children: P ? /* @__PURE__ */ e.jsx("button", { type: "button", onClick: () => T(), title: "Reset", className: "flex px-1.5 text-xs", children: /* @__PURE__ */ e.jsx(Et, { className: "h-5 w-5 text-blue-500 hover:opacity-80" }) }) : D && x ? /* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
|
|
1831
1833
|
/* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1832
1834
|
"button",
|
|
1833
1835
|
{
|
|
@@ -1839,7 +1841,7 @@ const qr = (t) => {
|
|
|
1839
1841
|
/* @__PURE__ */ e.jsx(Z, { children: /* @__PURE__ */ e.jsx("div", { className: "text-right", children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1840
1842
|
"Current style is set at ",
|
|
1841
1843
|
/* @__PURE__ */ e.jsxs("span", { className: "font-bold ", children: [
|
|
1842
|
-
|
|
1844
|
+
al(p(x, "mq")),
|
|
1843
1845
|
i && !x.dark ? "(Light mode)" : ""
|
|
1844
1846
|
] }),
|
|
1845
1847
|
/* @__PURE__ */ e.jsx("br", {}),
|
|
@@ -1859,16 +1861,16 @@ const qr = (t) => {
|
|
|
1859
1861
|
] }) : null })
|
|
1860
1862
|
] })
|
|
1861
1863
|
] }) });
|
|
1862
|
-
},
|
|
1864
|
+
}, il = ["px", "%", "em", "rem", "ch", "vh", "vw"], at = ({
|
|
1863
1865
|
label: t,
|
|
1864
1866
|
options: l,
|
|
1865
1867
|
borderB: r = !1,
|
|
1866
1868
|
borderT: s = !1,
|
|
1867
|
-
type:
|
|
1868
|
-
units: a =
|
|
1869
|
+
type: n = "arbitrary",
|
|
1870
|
+
units: a = il,
|
|
1869
1871
|
negative: d = !1
|
|
1870
1872
|
}) => {
|
|
1871
|
-
const [i,
|
|
1873
|
+
const [i, o] = w(l[0].key), u = xe(), x = A((c) => C(u, "property").includes(c), [u]);
|
|
1872
1874
|
return /* @__PURE__ */ e.jsxs(
|
|
1873
1875
|
"div",
|
|
1874
1876
|
{
|
|
@@ -1876,19 +1878,19 @@ const qr = (t) => {
|
|
|
1876
1878
|
children: [
|
|
1877
1879
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-row text-xs", children: [
|
|
1878
1880
|
t && /* @__PURE__ */ e.jsx("span", { className: "relative w-[70px] flex-none text-xs text-foreground", children: t }),
|
|
1879
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children:
|
|
1881
|
+
/* @__PURE__ */ e.jsx("div", { className: "mb-3 flex grow flex-row flex-wrap gap-x-px", children: I.Children.toArray(
|
|
1880
1882
|
l.map(({ label: c, key: m }) => /* @__PURE__ */ e.jsx("div", { className: "first:rounded-l last:rounded-r", children: /* @__PURE__ */ e.jsxs(W, { children: [
|
|
1881
1883
|
/* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
1882
1884
|
"button",
|
|
1883
1885
|
{
|
|
1884
1886
|
type: "button",
|
|
1885
|
-
onClick: () =>
|
|
1887
|
+
onClick: () => o(m),
|
|
1886
1888
|
className: `relative cursor-pointer rounded-full p-1 text-[8px] ${m === i ? " bg-[#3E57F0] text-white" : "text-gray-600 dark:text-gray-300"}`,
|
|
1887
1889
|
children: [
|
|
1888
|
-
|
|
1890
|
+
I.createElement("div", {
|
|
1889
1891
|
className: x(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
|
|
1890
1892
|
}),
|
|
1891
|
-
|
|
1893
|
+
I.createElement(p(st, m, Xe), { className: "text-inherit w-3 h-3" })
|
|
1892
1894
|
]
|
|
1893
1895
|
}
|
|
1894
1896
|
) }),
|
|
@@ -1897,9 +1899,9 @@ const qr = (t) => {
|
|
|
1897
1899
|
) })
|
|
1898
1900
|
] }),
|
|
1899
1901
|
/* @__PURE__ */ e.jsx("div", { className: "mt-0 flex items-center", children: /* @__PURE__ */ e.jsx(
|
|
1900
|
-
|
|
1902
|
+
Re,
|
|
1901
1903
|
{
|
|
1902
|
-
type:
|
|
1904
|
+
type: n,
|
|
1903
1905
|
units: [...a],
|
|
1904
1906
|
label: "",
|
|
1905
1907
|
property: i,
|
|
@@ -1909,14 +1911,14 @@ const qr = (t) => {
|
|
|
1909
1911
|
]
|
|
1910
1912
|
}
|
|
1911
1913
|
);
|
|
1912
|
-
},
|
|
1913
|
-
const r =
|
|
1914
|
-
const
|
|
1915
|
-
i.map((
|
|
1914
|
+
}, dl = ({ heading: t, items: l }) => {
|
|
1915
|
+
const r = xe(), s = N(() => {
|
|
1916
|
+
const n = (i) => U(
|
|
1917
|
+
i.map((o) => o.styleType === "multiple" ? C(o.options, "key") : o.property)
|
|
1916
1918
|
), a = U(
|
|
1917
|
-
l.map((i) => i.styleType === "accordion" ?
|
|
1919
|
+
l.map((i) => i.styleType === "accordion" ? n(i.items) : i.styleType === "multiple" ? C(i.options, "key") : i.property)
|
|
1918
1920
|
), d = C(r, "property");
|
|
1919
|
-
return
|
|
1921
|
+
return Fe(a, d).length > 0;
|
|
1920
1922
|
}, [r, l]);
|
|
1921
1923
|
return /* @__PURE__ */ e.jsxs("details", { children: [
|
|
1922
1924
|
/* @__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: [
|
|
@@ -1928,17 +1930,17 @@ const qr = (t) => {
|
|
|
1928
1930
|
}
|
|
1929
1931
|
) : null
|
|
1930
1932
|
] }) }),
|
|
1931
|
-
/* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((
|
|
1933
|
+
/* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((n) => n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...n }, n.label) : /* @__PURE__ */ e.jsx(Re, { ...n }, n.label)) })
|
|
1932
1934
|
] });
|
|
1933
|
-
},
|
|
1934
|
-
const l =
|
|
1935
|
+
}, cl = Me({}), me = ({ section: t }) => {
|
|
1936
|
+
const l = xe(), r = A(
|
|
1935
1937
|
(a = []) => {
|
|
1936
1938
|
const d = {};
|
|
1937
|
-
for (let
|
|
1938
|
-
d[l[
|
|
1939
|
+
for (let o = 0; o < l.length; o++)
|
|
1940
|
+
d[l[o].property] = l[o].cls;
|
|
1939
1941
|
let i = !0;
|
|
1940
|
-
for (const
|
|
1941
|
-
if (!
|
|
1942
|
+
for (const o in a)
|
|
1943
|
+
if (!he(d, o) || d[o] !== a[o]) {
|
|
1942
1944
|
i = !1;
|
|
1943
1945
|
break;
|
|
1944
1946
|
}
|
|
@@ -1948,28 +1950,28 @@ const qr = (t) => {
|
|
|
1948
1950
|
), s = N(() => {
|
|
1949
1951
|
if (l.length > 0 && t.heading === "Classes")
|
|
1950
1952
|
return !0;
|
|
1951
|
-
const a = (
|
|
1952
|
-
|
|
1953
|
+
const a = (o) => U(
|
|
1954
|
+
o.map((u) => u.styleType === "multiple" ? U(C(u.options, "key")) : u.property)
|
|
1953
1955
|
), d = U(
|
|
1954
|
-
t.items.map((
|
|
1956
|
+
t.items.map((o) => o.styleType === "accordion" ? a(o.items) : o.styleType === "multiple" ? U(C(o.options, "key")) : o.property)
|
|
1955
1957
|
), i = C(l, "property");
|
|
1956
|
-
return
|
|
1957
|
-
}, [l, t.heading, t.items]),
|
|
1958
|
-
return /* @__PURE__ */ e.jsx(
|
|
1958
|
+
return Fe(d, i).length > 0;
|
|
1959
|
+
}, [l, t.heading, t.items]), n = N(() => ({}), []);
|
|
1960
|
+
return /* @__PURE__ */ e.jsx(cl.Provider, { value: n, children: /* @__PURE__ */ e.jsxs(ie, { value: t.heading, children: [
|
|
1959
1961
|
/* @__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: [
|
|
1960
1962
|
/* @__PURE__ */ e.jsx("div", { className: `h-[8px] w-[8px] rounded-full ${s ? "bg-blue-500" : "bg-gray-300"}` }),
|
|
1961
1963
|
t.heading
|
|
1962
1964
|
] }) }),
|
|
1963
|
-
/* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children:
|
|
1964
|
-
t.items.map((a) =>
|
|
1965
|
+
/* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
|
|
1966
|
+
t.items.map((a) => he(a, "component") ? I.createElement(a.component, { key: a.label }) : he(a, "styleType") ? a.styleType === "multiple" ? /* @__PURE__ */ e.jsx(at, { ...a }, a.label) : a.styleType === "accordion" && r(a == null ? void 0 : a.conditions) ? /* @__PURE__ */ e.jsx(dl, { ...a }, a.label) : null : /* @__PURE__ */ e.jsx(Re, { ...a }, a.label))
|
|
1965
1967
|
) })
|
|
1966
1968
|
] }) });
|
|
1967
|
-
},
|
|
1969
|
+
}, pl = ({
|
|
1968
1970
|
item: t,
|
|
1969
1971
|
index: l,
|
|
1970
1972
|
canDelete: r,
|
|
1971
1973
|
onChange: s,
|
|
1972
|
-
onRemove:
|
|
1974
|
+
onRemove: n
|
|
1973
1975
|
}) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col gap-1 border-gray-400 py-2 ${r ? "border-b" : ""}`, children: [
|
|
1974
1976
|
/* @__PURE__ */ e.jsx(
|
|
1975
1977
|
"input",
|
|
@@ -1997,22 +1999,22 @@ const qr = (t) => {
|
|
|
1997
1999
|
}
|
|
1998
2000
|
),
|
|
1999
2001
|
/* @__PURE__ */ e.jsx(
|
|
2000
|
-
|
|
2002
|
+
_t,
|
|
2001
2003
|
{
|
|
2002
|
-
onClick:
|
|
2004
|
+
onClick: n,
|
|
2003
2005
|
className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
|
|
2004
2006
|
}
|
|
2005
2007
|
)
|
|
2006
2008
|
] })
|
|
2007
|
-
] }),
|
|
2009
|
+
] }), ul = ({ section: t }) => {
|
|
2008
2010
|
var m;
|
|
2009
|
-
const { setSyncState: l } =
|
|
2011
|
+
const { setSyncState: l } = gr(), r = G(), [s, n] = w([]), [a] = Ne(), d = Ue(), i = `${p(a, "0.prop")}_attrs`;
|
|
2010
2012
|
ne.useEffect(() => {
|
|
2011
2013
|
const h = C(p(r, i), (g, f) => ({ key: f, value: g }));
|
|
2012
|
-
b(h) ?
|
|
2014
|
+
b(h) ? n([]) : n(h);
|
|
2013
2015
|
}, [p(r, i)]);
|
|
2014
|
-
const
|
|
2015
|
-
const g =
|
|
2016
|
+
const o = () => n([...s, { key: "", value: "" }]), u = (h) => {
|
|
2017
|
+
const g = fe(s, (f, T) => h !== T);
|
|
2016
2018
|
c(g);
|
|
2017
2019
|
}, x = (h, g) => {
|
|
2018
2020
|
const f = [...s];
|
|
@@ -2020,8 +2022,8 @@ const qr = (t) => {
|
|
|
2020
2022
|
}, c = ne.useCallback(
|
|
2021
2023
|
(h = []) => {
|
|
2022
2024
|
const g = {};
|
|
2023
|
-
|
|
2024
|
-
b(f.key) ||
|
|
2025
|
+
we(h, (f) => {
|
|
2026
|
+
b(f.key) || Ee(g, f.key, f.value);
|
|
2025
2027
|
}), d([p(r, "_id")], { [i]: g }), l("UNSAVED");
|
|
2026
2028
|
},
|
|
2027
2029
|
[r, l, d, i]
|
|
@@ -2042,10 +2044,10 @@ const qr = (t) => {
|
|
|
2042
2044
|
/* @__PURE__ */ e.jsxs(
|
|
2043
2045
|
"div",
|
|
2044
2046
|
{
|
|
2045
|
-
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 =
|
|
2047
|
+
className: `flex h-6 w-max items-center justify-center gap-x-0.5 rounded-full border p-1 px-2 text-xs ${!b(s) && b((m = be(s)) == null ? void 0 : m.key) ? "cursor-not-allowed border-gray-400 text-gray-400" : "cursor-pointer border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white"}`,
|
|
2046
2048
|
onClick: () => {
|
|
2047
2049
|
var h;
|
|
2048
|
-
!b(s) && b((h =
|
|
2050
|
+
!b(s) && b((h = be(s)) == null ? void 0 : h.key) || o();
|
|
2049
2051
|
},
|
|
2050
2052
|
children: [
|
|
2051
2053
|
/* @__PURE__ */ e.jsx(Ce, { width: 12, height: 12 }),
|
|
@@ -2060,7 +2062,7 @@ const qr = (t) => {
|
|
|
2060
2062
|
C(s, (h, g) => {
|
|
2061
2063
|
const f = s.length > 0 && g < s.length - 1;
|
|
2062
2064
|
return /* @__PURE__ */ e.jsx(
|
|
2063
|
-
|
|
2065
|
+
pl,
|
|
2064
2066
|
{
|
|
2065
2067
|
item: h,
|
|
2066
2068
|
index: g,
|
|
@@ -2075,8 +2077,8 @@ const qr = (t) => {
|
|
|
2075
2077
|
] }) })
|
|
2076
2078
|
] });
|
|
2077
2079
|
};
|
|
2078
|
-
function
|
|
2079
|
-
const [t, l] = Qe(), { flexChild: r, gridChild: s } =
|
|
2080
|
+
function xl() {
|
|
2081
|
+
const [t, l] = Qe(), { flexChild: r, gridChild: s } = hr(), [, n] = Br(mr), { t: a } = Ye(), [d] = Ne();
|
|
2080
2082
|
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: [
|
|
2081
2083
|
/* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
|
|
2082
2084
|
/* @__PURE__ */ e.jsx("h1", { children: a("no_styling_block_selected") }),
|
|
@@ -2088,12 +2090,12 @@ function cl() {
|
|
|
2088
2090
|
] })
|
|
2089
2091
|
] }) }) : (
|
|
2090
2092
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2091
|
-
/* @__PURE__ */ e.jsxs("div", { onClick: () =>
|
|
2093
|
+
/* @__PURE__ */ e.jsxs("div", { onClick: () => n(!1), className: "flex h-full flex-col", children: [
|
|
2092
2094
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-col space-x-4 space-y-3 border-b border-border px-4 py-2", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-1.5", children: [
|
|
2093
2095
|
/* @__PURE__ */ e.jsx(Te, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
|
|
2094
|
-
/* @__PURE__ */ e.jsxs(
|
|
2095
|
-
/* @__PURE__ */ e.jsx(
|
|
2096
|
-
/* @__PURE__ */ e.jsxs(
|
|
2096
|
+
/* @__PURE__ */ e.jsxs(yr, { defaultValue: t, onValueChange: (i) => l(i), children: [
|
|
2097
|
+
/* @__PURE__ */ e.jsx(br, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(fr, { placeholder: "State" }) }),
|
|
2098
|
+
/* @__PURE__ */ e.jsxs(vr, { children: [
|
|
2097
2099
|
/* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
|
|
2098
2100
|
/* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
|
|
2099
2101
|
/* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
|
|
@@ -2109,19 +2111,19 @@ function cl() {
|
|
|
2109
2111
|
] })
|
|
2110
2112
|
] })
|
|
2111
2113
|
] }) }),
|
|
2112
|
-
/* @__PURE__ */ e.jsxs(
|
|
2113
|
-
/* @__PURE__ */ e.jsxs(Ge, { type: "multiple", className: "h-full w-full", children: [
|
|
2114
|
-
r && /* @__PURE__ */ e.jsx(
|
|
2115
|
-
s ? /* @__PURE__ */ e.jsx(
|
|
2116
|
-
|
|
2117
|
-
/* @__PURE__ */ e.jsx(
|
|
2114
|
+
/* @__PURE__ */ e.jsxs(jr, { className: "no-scrollbar -mx-1 h-full overflow-x-hidden", children: [
|
|
2115
|
+
/* @__PURE__ */ e.jsxs(Ge, { defaultValue: ["Layout"], type: "multiple", className: "h-full w-full", children: [
|
|
2116
|
+
r && /* @__PURE__ */ e.jsx(me, { section: Xr }),
|
|
2117
|
+
s ? /* @__PURE__ */ e.jsx(me, { section: Zr }) : null,
|
|
2118
|
+
zr.map((i) => /* @__PURE__ */ e.jsx(me, { section: i }, i.heading)),
|
|
2119
|
+
/* @__PURE__ */ e.jsx(ul, { section: { heading: "Attributes" } })
|
|
2118
2120
|
] }),
|
|
2119
2121
|
/* @__PURE__ */ e.jsx("div", { className: "h-60" })
|
|
2120
2122
|
] })
|
|
2121
2123
|
] })
|
|
2122
2124
|
);
|
|
2123
2125
|
}
|
|
2124
|
-
const
|
|
2126
|
+
const gl = {
|
|
2125
2127
|
px: 1,
|
|
2126
2128
|
"%": 1,
|
|
2127
2129
|
em: 100,
|
|
@@ -2132,32 +2134,32 @@ const pl = {
|
|
|
2132
2134
|
"-": 1,
|
|
2133
2135
|
deg: 1,
|
|
2134
2136
|
ms: 0.1
|
|
2135
|
-
},
|
|
2136
|
-
const t = G(), { t: l } =
|
|
2137
|
-
onDrag: (
|
|
2138
|
-
onDragEnd: (
|
|
2137
|
+
}, ks = () => {
|
|
2138
|
+
const t = G(), { t: l } = Ye(), [r, s] = I.useState(""), [n, a] = I.useState({
|
|
2139
|
+
onDrag: (o) => o,
|
|
2140
|
+
onDragEnd: (o) => o,
|
|
2139
2141
|
dragStartY: 0,
|
|
2140
2142
|
dragging: !1,
|
|
2141
2143
|
dragStartValue: 0,
|
|
2142
2144
|
dragUnit: "",
|
|
2143
2145
|
negative: !1,
|
|
2144
2146
|
cssProperty: ""
|
|
2145
|
-
}), d =
|
|
2146
|
-
(
|
|
2147
|
-
const u = !p(
|
|
2148
|
-
let c = parseFloat(
|
|
2149
|
-
c =
|
|
2150
|
-
let m =
|
|
2147
|
+
}), d = ye(
|
|
2148
|
+
(o) => {
|
|
2149
|
+
const u = !p(n, "negative", !1), x = p(n, "cssProperty", "");
|
|
2150
|
+
let c = parseFloat(n.dragStartValue);
|
|
2151
|
+
c = _e(c) ? 0 : c;
|
|
2152
|
+
let m = gl[n.dragUnit];
|
|
2151
2153
|
(z(x, "scale") || x === "opacity") && (m = 10);
|
|
2152
|
-
let g = (
|
|
2153
|
-
u && g < 0 && (g = 0), x === "opacity" && g > 1 && (g = 1),
|
|
2154
|
+
let g = (n.dragStartY - o.pageY) / m + c;
|
|
2155
|
+
u && g < 0 && (g = 0), x === "opacity" && g > 1 && (g = 1), n.onDrag(`${g}`), s(`${g}`);
|
|
2154
2156
|
},
|
|
2155
|
-
[
|
|
2157
|
+
[n],
|
|
2156
2158
|
50
|
|
2157
2159
|
), i = A(() => {
|
|
2158
|
-
setTimeout(() =>
|
|
2159
|
-
onDrag: (
|
|
2160
|
-
onDragEnd: (
|
|
2160
|
+
setTimeout(() => n.onDragEnd(`${r}`), 100), a({
|
|
2161
|
+
onDrag: (o) => o,
|
|
2162
|
+
onDragEnd: (o) => o,
|
|
2161
2163
|
dragStartY: 0,
|
|
2162
2164
|
dragging: !1,
|
|
2163
2165
|
dragStartValue: 0,
|
|
@@ -2165,12 +2167,12 @@ const pl = {
|
|
|
2165
2167
|
negative: !1,
|
|
2166
2168
|
cssProperty: ""
|
|
2167
2169
|
});
|
|
2168
|
-
}, [
|
|
2169
|
-
return
|
|
2170
|
+
}, [n, r, a]);
|
|
2171
|
+
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: [
|
|
2170
2172
|
/* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
|
|
2171
2173
|
/* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
|
|
2172
|
-
] }) }) : /* @__PURE__ */ e.jsxs(
|
|
2173
|
-
|
|
2174
|
+
] }) }) : /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsxs(nt.Provider, { value: { setDragData: a }, children: [
|
|
2175
|
+
n.dragging ? /* @__PURE__ */ e.jsx(
|
|
2174
2176
|
"div",
|
|
2175
2177
|
{
|
|
2176
2178
|
onMouseMove: d,
|
|
@@ -2178,8 +2180,8 @@ const pl = {
|
|
|
2178
2180
|
className: "absolute inset-0 z-30 cursor-row-resize bg-gray-300/10 "
|
|
2179
2181
|
}
|
|
2180
2182
|
) : null,
|
|
2181
|
-
/* @__PURE__ */ e.jsxs(
|
|
2182
|
-
/* @__PURE__ */ e.jsxs(
|
|
2183
|
+
/* @__PURE__ */ e.jsxs(wr, { defaultValue: "settings", className: "flex h-full w-full flex-col py-1", children: [
|
|
2184
|
+
/* @__PURE__ */ e.jsxs(Cr, { className: "mx-1 grid grid-cols-2", children: [
|
|
2183
2185
|
/* @__PURE__ */ e.jsx(Be, { value: "settings", children: "Settings" }),
|
|
2184
2186
|
/* @__PURE__ */ e.jsx(Be, { value: "styling", children: "Styling" })
|
|
2185
2187
|
] }),
|
|
@@ -2188,13 +2190,13 @@ const pl = {
|
|
|
2188
2190
|
{
|
|
2189
2191
|
value: "settings",
|
|
2190
2192
|
className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
|
|
2191
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2193
|
+
children: /* @__PURE__ */ e.jsx(Yr, {})
|
|
2192
2194
|
}
|
|
2193
2195
|
),
|
|
2194
|
-
/* @__PURE__ */ e.jsx(Ae, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(
|
|
2196
|
+
/* @__PURE__ */ e.jsx(Ae, { value: "styling", className: "flex-1 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(xl, {}) })
|
|
2195
2197
|
] })
|
|
2196
|
-
] });
|
|
2198
|
+
] }) });
|
|
2197
2199
|
};
|
|
2198
2200
|
export {
|
|
2199
|
-
|
|
2201
|
+
ks as default
|
|
2200
2202
|
};
|