@chaibuilder/sdk 1.1.7 → 1.1.8
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/{CanvasArea-56IwfHIV.cjs → CanvasArea-0dMH8DLY.cjs} +5 -5
- package/dist/{CanvasArea-_gcqHG0e.js → CanvasArea-qr3Iv0Xx.js} +6 -6
- package/dist/{CurrentPage-ogo1pTCD.js → CurrentPage-XW_-vuBP.js} +1 -1
- package/dist/{CurrentPage-d3IIwt97.cjs → CurrentPage-xRSxWOUz.cjs} +1 -1
- package/dist/{Layers-SmpctVMM.cjs → Layers-fvXADkdU.cjs} +1 -1
- package/dist/{Layers-3C2qfE8G.js → Layers-urjdDTKB.js} +116 -109
- package/dist/{PagesPanel-sc72ECZ1.js → PagesPanel-ID_Vm6CO.js} +2 -2
- package/dist/{PagesPanel-n8aaGxOS.cjs → PagesPanel-SkDUfIP1.cjs} +1 -1
- package/dist/{ProjectPanel-C4_3bWv2.js → ProjectPanel-_XAgk4uz.js} +2 -2
- package/dist/{ProjectPanel-7AXA-iE5.cjs → ProjectPanel-tbw24HmR.cjs} +1 -1
- package/dist/Settings-CchIkXh7.cjs +1 -0
- package/dist/{Settings-E0XoSH8T.js → Settings-b5UJ1CbF.js} +97 -100
- package/dist/{SidePanels-1069fKzh.js → SidePanels-BH-IFPaj.js} +2 -2
- package/dist/{SidePanels-hUn7OxCz.cjs → SidePanels-cPyWHJGN.cjs} +1 -1
- package/dist/{add-page-modal-zJdjAwi4.cjs → add-page-modal-FSnagas1.cjs} +1 -1
- package/dist/{add-page-modal-FHkXgRVi.js → add-page-modal-ZvUYpd4h.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-6YM8fLlU.js → delete-page-modal-4MVbQbIE.js} +1 -1
- package/dist/{delete-page-modal-zvGw8-RI.cjs → delete-page-modal-DAFOspX2.cjs} +1 -1
- package/dist/{index-QWyJwEV6.js → index-LOLasIJD.js} +3 -3
- package/dist/{index--Qs9Me8k.cjs → index-rhyb2TB9.cjs} +1 -1
- package/dist/{page-viewer-oMx73Vh5.cjs → page-viewer-V6dlnIHN.cjs} +1 -1
- package/dist/{page-viewer-xoXV9sNk.js → page-viewer-r_ZdpaXh.js} +2 -2
- package/dist/{project-general-setting-asVlFesb.js → project-general-setting-6kSqNVU3.js} +1 -1
- package/dist/{project-general-setting-jUTxNFN_.cjs → project-general-setting-Dh5ki1wJ.cjs} +1 -1
- package/dist/{single-page-detail-lsJhbpKe.cjs → single-page-detail-E3QAv3RO.cjs} +1 -1
- package/dist/{single-page-detail-qjCS5xcG.js → single-page-detail-LTirOwox.js} +2 -2
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +1 -1
- package/package.json +1 -1
- package/dist/Settings-5FA08bpV.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-NV737rRe.js";
|
|
2
2
|
import * as ne from "react";
|
|
3
|
-
import I, { useState as w, useMemo as N, useEffect as _, useCallback as A, memo as
|
|
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
4
|
import { useThrottledCallback as be } from "@react-hookz/web";
|
|
5
|
-
import { forEach as Ce, isArray as ae, omit as
|
|
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
6
|
import { useTranslation as Ye } from "react-i18next";
|
|
7
|
-
import { PlusIcon as ke, Cross2Icon as We, EyeOpenIcon as
|
|
8
|
-
import { b0 as
|
|
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-bKgIzodL.js";
|
|
9
9
|
import { u as kr } from "./controls-G0puEH71.js";
|
|
10
10
|
import { Check as Nr, EditIcon as Tr, TrashIcon as Sr } from "lucide-react";
|
|
11
|
-
import { getBlockComponent as
|
|
12
|
-
import { E as
|
|
11
|
+
import { getBlockComponent as tt, getChaiDataProviders as Rr } from "@chaibuilder/runtime";
|
|
12
|
+
import { E as rt, u as lt } from "./index-LOLasIJD.js";
|
|
13
13
|
import Vr from "@rjsf/core";
|
|
14
14
|
import Hr from "@rjsf/validator-ajv8";
|
|
15
15
|
import { useAtom as Br } from "jotai";
|
|
@@ -71,7 +71,7 @@ function Or(t) {
|
|
|
71
71
|
l.push(a), r[a] = p === "string" ? "text" : p === "object" ? "model" : p, p === "object" && !ae(d) && s(a, d);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
return s("",
|
|
74
|
+
return s("", pt(t, ["styles", "_type", "_id", "_name", "_bindings"])), { paths: l, pathsType: r };
|
|
75
75
|
}
|
|
76
76
|
const je = ({ data: t, fullView: l }) => {
|
|
77
77
|
if (!t)
|
|
@@ -79,7 +79,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
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(
|
|
82
|
+
/* @__PURE__ */ e.jsx(rt, { children: /* @__PURE__ */ e.jsx(
|
|
83
83
|
Lr,
|
|
84
84
|
{
|
|
85
85
|
style: { maxHeight: "40vh", overflowY: "auto" },
|
|
@@ -94,7 +94,7 @@ const je = ({ 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: ut(r === "object" ? JSON.stringify(t) : t, { length: 40 }) });
|
|
98
98
|
}, Ie = ({
|
|
99
99
|
type: t,
|
|
100
100
|
value: l = "",
|
|
@@ -104,16 +104,16 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
104
104
|
dataType: n,
|
|
105
105
|
appliedBindings: d
|
|
106
106
|
}) => {
|
|
107
|
-
const { paths: i, pathsType: a } = Or(s), p = t === "PROP" ?
|
|
108
|
-
(x) => !E(d, x) && u(p, `props.${pe(
|
|
107
|
+
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(
|
|
108
|
+
(x) => !E(d, x) && u(p, `props.${pe(xt(x, "."))}.binding`)
|
|
109
109
|
) : i.filter((x) => n === u(a, x, "")), [t, i, d, n, p]);
|
|
110
110
|
return _(() => {
|
|
111
111
|
l && o(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(
|
|
115
|
+
/* @__PURE__ */ e.jsxs(Yt, { open: c, onOpenChange: m, children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
117
117
|
ue,
|
|
118
118
|
{
|
|
119
119
|
variant: "outline",
|
|
@@ -131,17 +131,17 @@ const je = ({ 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(Xt, { className: "p-0 z-[999] min-w-[300px]", side: "right", align: "start", children: /* @__PURE__ */ e.jsxs(Zt, { children: [
|
|
135
|
+
/* @__PURE__ */ e.jsx(zt, { placeholder: `Choose ${te(t)}...` }),
|
|
136
|
+
/* @__PURE__ */ e.jsxs(Ut, { children: [
|
|
137
|
+
/* @__PURE__ */ e.jsx(Gt, { children: "No results found." }),
|
|
138
|
+
/* @__PURE__ */ e.jsx(Kt, { children: C(h, (x) => /* @__PURE__ */ e.jsxs(
|
|
139
|
+
qt,
|
|
140
140
|
{
|
|
141
141
|
value: x,
|
|
142
142
|
className: `cursor-pointer ${g ? "flex justify-between items-center" : "flex flex-col items-start justify-start"}`,
|
|
143
143
|
onSelect: (f) => {
|
|
144
|
-
r(
|
|
144
|
+
r(gt(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: [
|
|
@@ -165,7 +165,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
165
165
|
editMode: r,
|
|
166
166
|
item: s
|
|
167
167
|
}) => {
|
|
168
|
-
const [o, n] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), a = G(), [p] =
|
|
168
|
+
const [o, n] = w(r ? s.key : ""), [d, i] = w(r ? s.value : ""), a = G(), [p] = lt(), g = A(
|
|
169
169
|
(h, x) => {
|
|
170
170
|
if (b(h))
|
|
171
171
|
return "";
|
|
@@ -180,9 +180,9 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
180
180
|
[a, p]
|
|
181
181
|
), [c, m] = w(r ? g(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(Jt, { children: [
|
|
184
|
+
/* @__PURE__ */ e.jsx(Qt, { children: "Add Data Binding" }),
|
|
185
|
+
/* @__PURE__ */ e.jsx(er, { 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(
|
|
@@ -221,7 +221,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
221
221
|
}
|
|
222
222
|
)
|
|
223
223
|
] }),
|
|
224
|
-
/* @__PURE__ */ e.jsx(
|
|
224
|
+
/* @__PURE__ */ e.jsx(tr, { children: /* @__PURE__ */ e.jsx(
|
|
225
225
|
ue,
|
|
226
226
|
{
|
|
227
227
|
type: "submit",
|
|
@@ -232,11 +232,11 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
232
232
|
}
|
|
233
233
|
) })
|
|
234
234
|
] });
|
|
235
|
-
},
|
|
235
|
+
}, st = ({ disabled: t, children: l, onAddBinding: r, appliedBindings: s, editMode: o = !0, item: n = {} }) => {
|
|
236
236
|
const [d, i] = w(!1);
|
|
237
|
-
return /* @__PURE__ */ e.jsxs(
|
|
238
|
-
/* @__PURE__ */ e.jsx(
|
|
239
|
-
d && /* @__PURE__ */ e.jsx(
|
|
237
|
+
return /* @__PURE__ */ e.jsxs(rr, { children: [
|
|
238
|
+
/* @__PURE__ */ e.jsx(lr, { disabled: t, asChild: !0, onClick: () => i(!0), children: l }),
|
|
239
|
+
d && /* @__PURE__ */ e.jsx(sr, { children: /* @__PURE__ */ e.jsx(
|
|
240
240
|
Er,
|
|
241
241
|
{
|
|
242
242
|
item: n,
|
|
@@ -272,7 +272,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
272
272
|
/* @__PURE__ */ e.jsx("div", { className: "font-medium leading-5", children: t.value }),
|
|
273
273
|
/* @__PURE__ */ e.jsx(je, { data: u(o, t.value, "") }),
|
|
274
274
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
275
|
-
/* @__PURE__ */ e.jsx(
|
|
275
|
+
/* @__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" }) }),
|
|
276
276
|
/* @__PURE__ */ e.jsx(
|
|
277
277
|
Sr,
|
|
278
278
|
{
|
|
@@ -284,7 +284,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
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
286
|
}, _r = ({ bindingData: t, onChange: l }) => {
|
|
287
|
-
const r = G(), [s] =
|
|
287
|
+
const r = G(), [s] = lt(), o = Rr(), [n, d] = w(
|
|
288
288
|
C(t, (c, m) => ({ key: m, value: c }))
|
|
289
289
|
);
|
|
290
290
|
_(() => {
|
|
@@ -335,7 +335,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
335
335
|
)),
|
|
336
336
|
/* @__PURE__ */ e.jsxs(W, { delayDuration: 200, children: [
|
|
337
337
|
/* @__PURE__ */ e.jsx(X, { className: "w-full", children: /* @__PURE__ */ e.jsx(
|
|
338
|
-
|
|
338
|
+
st,
|
|
339
339
|
{
|
|
340
340
|
disabled: i,
|
|
341
341
|
appliedBindings: C(n, "key"),
|
|
@@ -352,24 +352,24 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
352
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" })
|
|
353
353
|
] })
|
|
354
354
|
] });
|
|
355
|
-
}, Fr = () => /* @__PURE__ */ e.jsx("div", { className: "text-xs border rounded-sm p-1 mt-1 border-orange-500 text-orange-500 bg-orange-100", children: "Data binding is set for this field" }), me =
|
|
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" }), me = ct(({ createHistorySnapshot: t, properties: l, formData: r, onChange: s }) => {
|
|
356
356
|
const o = { type: "object", properties: {} }, n = {};
|
|
357
357
|
return Object.keys(l).forEach((d) => {
|
|
358
358
|
const i = l[d];
|
|
359
359
|
if (E(["slot", "styles"], i.type))
|
|
360
360
|
return;
|
|
361
361
|
const a = d;
|
|
362
|
-
o.properties[a] =
|
|
362
|
+
o.properties[a] = or(i), n[a] = nr(i);
|
|
363
363
|
}), /* @__PURE__ */ e.jsx(
|
|
364
364
|
Vr,
|
|
365
365
|
{
|
|
366
366
|
widgets: {
|
|
367
367
|
binding: Fr,
|
|
368
|
-
richtext:
|
|
369
|
-
icon:
|
|
370
|
-
image:
|
|
368
|
+
richtext: ar,
|
|
369
|
+
icon: ir,
|
|
370
|
+
image: dr
|
|
371
371
|
},
|
|
372
|
-
fields: { link:
|
|
372
|
+
fields: { link: cr },
|
|
373
373
|
idSeparator: ".",
|
|
374
374
|
autoComplete: "off",
|
|
375
375
|
omitExtraData: !1,
|
|
@@ -385,7 +385,7 @@ const je = ({ data: t, fullView: l }) => {
|
|
|
385
385
|
);
|
|
386
386
|
});
|
|
387
387
|
function Yr() {
|
|
388
|
-
const t = G(), { createSnapshot: l } = ze(), r = Ue(), s =
|
|
388
|
+
const t = G(), { createSnapshot: l } = ze(), r = Ue(), s = tt(t._type), o = { ...t }, n = pr("dataBindingSupport", !1), d = () => l(), i = ({ formData: c }, m) => {
|
|
389
389
|
if (m) {
|
|
390
390
|
const h = m.replace("root.", "");
|
|
391
391
|
r([t._id], { [h]: u(c, h) });
|
|
@@ -395,9 +395,9 @@ function Yr() {
|
|
|
395
395
|
title: "Name",
|
|
396
396
|
default: u(t, "_name", t._type)
|
|
397
397
|
})
|
|
398
|
-
}, p =
|
|
399
|
-
const c =
|
|
400
|
-
return n &&
|
|
398
|
+
}, p = ht(u(o, "_bindings", {})), g = N(() => {
|
|
399
|
+
const c = mt(u(s, "props", {}));
|
|
400
|
+
return n && yt(p, (m) => delete c[m]), c;
|
|
401
401
|
}, [s, p, n]);
|
|
402
402
|
return /* @__PURE__ */ e.jsxs("div", { className: "overflow-x-hidden", children: [
|
|
403
403
|
/* @__PURE__ */ e.jsx(
|
|
@@ -439,7 +439,7 @@ function Yr() {
|
|
|
439
439
|
/* @__PURE__ */ e.jsxs(ce, { className: "pt-4", children: [
|
|
440
440
|
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: [
|
|
441
441
|
"Data binding is set for ",
|
|
442
|
-
/* @__PURE__ */ e.jsx("b", { children: C(p,
|
|
442
|
+
/* @__PURE__ */ e.jsx("b", { children: C(p, bt).join(", ") }),
|
|
443
443
|
" ",
|
|
444
444
|
p.length === 1 ? "property" : "properties",
|
|
445
445
|
". Remove data binding to edit static content."
|
|
@@ -475,7 +475,7 @@ const Pe = new Dr(Ir, {
|
|
|
475
475
|
});
|
|
476
476
|
function Wr() {
|
|
477
477
|
var D;
|
|
478
|
-
const [t] = Te(), l = G(), r = Ke(), s = qe(), [o] = Je(), [n, d] = w(""), i = (D = pe(t)) == null ? void 0 : D.prop, a =
|
|
478
|
+
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 = () => {
|
|
479
479
|
const j = n.trim().toLowerCase().replace(/ +(?= )/g, "").split(" ");
|
|
480
480
|
r(o, j, !0), d("");
|
|
481
481
|
}, [g, c] = w([]), m = ({ value: j }) => {
|
|
@@ -750,7 +750,7 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
|
750
750
|
{ key: "insetY", label: "Top Bottom" }
|
|
751
751
|
]
|
|
752
752
|
},
|
|
753
|
-
{ type: "arbitrary", label: "Z-
|
|
753
|
+
{ type: "arbitrary", label: "Z-Index", units: ["-", "auto"], property: "zIndex" }
|
|
754
754
|
]
|
|
755
755
|
},
|
|
756
756
|
{
|
|
@@ -993,10 +993,10 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
|
993
993
|
heading: "Classes",
|
|
994
994
|
items: [{ component: Wr }]
|
|
995
995
|
}
|
|
996
|
-
],
|
|
996
|
+
], ot = {
|
|
997
997
|
"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" }) }),
|
|
998
998
|
// visibility
|
|
999
|
-
visible:
|
|
999
|
+
visible: kt,
|
|
1000
1000
|
invisible: He,
|
|
1001
1001
|
// display
|
|
1002
1002
|
hidden: He,
|
|
@@ -1032,10 +1032,10 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
|
1032
1032
|
borderRadiusRight: J,
|
|
1033
1033
|
borderRadiusBottom: Q,
|
|
1034
1034
|
borderRadiusLeft: ee,
|
|
1035
|
-
borderRadiusTopLeft:
|
|
1036
|
-
borderRadiusTopRight:
|
|
1037
|
-
borderRadiusBottomRight:
|
|
1038
|
-
borderRadiusBottomLeft:
|
|
1035
|
+
borderRadiusTopLeft: Nt,
|
|
1036
|
+
borderRadiusTopRight: Tt,
|
|
1037
|
+
borderRadiusBottomRight: St,
|
|
1038
|
+
borderRadiusBottomLeft: Rt,
|
|
1039
1039
|
divideXWidth: R,
|
|
1040
1040
|
divideYWidth: V,
|
|
1041
1041
|
scale: O,
|
|
@@ -1062,18 +1062,18 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
|
1062
1062
|
marginBottom: Q,
|
|
1063
1063
|
marginLeft: ee,
|
|
1064
1064
|
// text-align
|
|
1065
|
-
textLeft:
|
|
1066
|
-
textCenter:
|
|
1067
|
-
textRight:
|
|
1068
|
-
textJustify:
|
|
1065
|
+
textLeft: Vt,
|
|
1066
|
+
textCenter: Ht,
|
|
1067
|
+
textRight: Bt,
|
|
1068
|
+
textJustify: At,
|
|
1069
1069
|
// font style
|
|
1070
|
-
italic:
|
|
1070
|
+
italic: Dt,
|
|
1071
1071
|
// "not-italic": "",
|
|
1072
1072
|
// decoration
|
|
1073
|
-
underline:
|
|
1074
|
-
overline:
|
|
1073
|
+
underline: It,
|
|
1074
|
+
overline: Pt,
|
|
1075
1075
|
// transform
|
|
1076
|
-
uppercase:
|
|
1076
|
+
uppercase: $t,
|
|
1077
1077
|
block: () => /* @__PURE__ */ e.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1078
1078
|
/* @__PURE__ */ e.jsx(
|
|
1079
1079
|
"path",
|
|
@@ -1186,14 +1186,14 @@ const B = ["px", "%", "em", "rem", "ch", "vh", "vw"], Xr = {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
)
|
|
1188
1188
|
] }),
|
|
1189
|
-
static:
|
|
1189
|
+
static: Lt
|
|
1190
1190
|
}, le = Ee({ canReset: !1, canChange: !0 }), Ur = ({ children: t, canReset: l = !1, canChange: r = !0 }) => (
|
|
1191
1191
|
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
1192
1192
|
/* @__PURE__ */ e.jsx(le.Provider, { value: { canReset: l, canChange: r }, children: t })
|
|
1193
|
-
),
|
|
1193
|
+
), nt = ({ label: t, property: l, onChange: r }) => {
|
|
1194
1194
|
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);
|
|
1195
1195
|
return /* @__PURE__ */ e.jsx("div", { className: t ? "w-full rounded " : "grow", children: i ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1196
|
-
/* @__PURE__ */ e.jsx(
|
|
1196
|
+
/* @__PURE__ */ e.jsx(ur, { className: "w-[70%] rounded py-1", readOnly: !0, value: n }),
|
|
1197
1197
|
/* @__PURE__ */ e.jsxs(W, { delayDuration: 100, children: [
|
|
1198
1198
|
/* @__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, {}) }) }),
|
|
1199
1199
|
/* @__PURE__ */ e.jsx(Z, { children: "Current value is using a Tailwind arbitrary value." })
|
|
@@ -1241,14 +1241,14 @@ const Gr = ({ property: t, onChange: l }) => {
|
|
|
1241
1241
|
disabled: !s && (!r || i - 1 < 0),
|
|
1242
1242
|
onClick: () => l(Ve(d, i - 1), t),
|
|
1243
1243
|
children: /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
|
|
1244
|
-
|
|
1244
|
+
Ot,
|
|
1245
1245
|
{
|
|
1246
1246
|
className: !s && (!r || i - 1 < 0) ? "text-gray-500" : "text-black/60 dark:text-white/60"
|
|
1247
1247
|
}
|
|
1248
1248
|
) })
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(
|
|
1251
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-8/12 text-center", children: /* @__PURE__ */ e.jsx(nt, { label: !1, property: t, onChange: l }) }),
|
|
1252
1252
|
/* @__PURE__ */ e.jsx(
|
|
1253
1253
|
"button",
|
|
1254
1254
|
{
|
|
@@ -1275,7 +1275,7 @@ const Gr = ({ property: t, onChange: l }) => {
|
|
|
1275
1275
|
disabled: !s,
|
|
1276
1276
|
onClick: () => l(d, t),
|
|
1277
1277
|
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"}`,
|
|
1278
|
-
children: I.createElement(u(
|
|
1278
|
+
children: I.createElement(u(ot, d, Xe))
|
|
1279
1279
|
}
|
|
1280
1280
|
) }),
|
|
1281
1281
|
/* @__PURE__ */ e.jsx(Z, { children: Y(te(d)) })
|
|
@@ -1496,7 +1496,7 @@ const Qr = (t) => {
|
|
|
1496
1496
|
const [s, o] = C(r.split("/"), (n) => parseInt(n, 10));
|
|
1497
1497
|
return { value: l + (s / o * 100).toFixed(2).replace(".00", ""), unit: "%" };
|
|
1498
1498
|
}
|
|
1499
|
-
return
|
|
1499
|
+
return vt(parseFloat(r)) ? { value: `${l + parseFloat(r) * 4}`, unit: "px" } : { value: r, unit: "class" };
|
|
1500
1500
|
};
|
|
1501
1501
|
const el = (t) => {
|
|
1502
1502
|
if (b(t))
|
|
@@ -1506,7 +1506,7 @@ const el = (t) => {
|
|
|
1506
1506
|
return tl(t);
|
|
1507
1507
|
const r = u(l, "0", "").replace(/\[|\]/g, ""), s = t.startsWith("-") ? "-" : "", o = pe(r.match(/\d+.\d+|\d+/g));
|
|
1508
1508
|
return { value: `${s}${o}`, unit: r.replace(o, "") };
|
|
1509
|
-
}, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t),
|
|
1509
|
+
}, tl = (t) => b(t) ? { value: "", unit: "" } : Qr(t), at = I.createContext({
|
|
1510
1510
|
setDragData: () => {
|
|
1511
1511
|
}
|
|
1512
1512
|
}), rl = ({
|
|
@@ -1518,7 +1518,7 @@ const el = (t) => {
|
|
|
1518
1518
|
negative: n,
|
|
1519
1519
|
cssProperty: d
|
|
1520
1520
|
}) => {
|
|
1521
|
-
const { setDragData: i } = re(
|
|
1521
|
+
const { setDragData: i } = re(at);
|
|
1522
1522
|
return /* @__PURE__ */ e.jsx(
|
|
1523
1523
|
"button",
|
|
1524
1524
|
{
|
|
@@ -1538,7 +1538,7 @@ const el = (t) => {
|
|
|
1538
1538
|
},
|
|
1539
1539
|
color: void 0,
|
|
1540
1540
|
className: "relative z-50 ml-1 hidden h-6 cursor-row-resize rounded bg-background/70 px-2 group-hover:inline",
|
|
1541
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1541
|
+
children: /* @__PURE__ */ e.jsx(Et, {})
|
|
1542
1542
|
}
|
|
1543
1543
|
);
|
|
1544
1544
|
}, 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(
|
|
@@ -1618,11 +1618,11 @@ const el = (t) => {
|
|
|
1618
1618
|
if (y.keyCode !== 38 && y.keyCode !== 40)
|
|
1619
1619
|
return;
|
|
1620
1620
|
y.preventDefault(), P(!0);
|
|
1621
|
-
const v =
|
|
1621
|
+
const v = jt(y.target.value);
|
|
1622
1622
|
let S = _e(v) ? 0 : v;
|
|
1623
1623
|
y.keyCode === 38 && (S += 1), y.keyCode === 40 && (S -= 1);
|
|
1624
|
-
const M = `${S}`,
|
|
1625
|
-
$(
|
|
1624
|
+
const M = `${S}`, dt = `${M.startsWith("-") ? "-" : ""}${i}[${M.replace("-", "")}${c === "-" ? "" : c}]`;
|
|
1625
|
+
$(dt);
|
|
1626
1626
|
},
|
|
1627
1627
|
onKeyUp: (y) => {
|
|
1628
1628
|
L && (y.preventDefault(), P(!1));
|
|
@@ -1651,11 +1651,11 @@ const el = (t) => {
|
|
|
1651
1651
|
className: "flex h-6 cursor-pointer items-center gap-x-1 rounded rounded-l-none bg-background p-px px-1 text-[11px] uppercase",
|
|
1652
1652
|
children: [
|
|
1653
1653
|
/* @__PURE__ */ e.jsx("span", { className: `inline-block ${p.length === 1 ? "px-2 font-semibold" : ""}`, children: c }),
|
|
1654
|
-
p.length > 1 ? /* @__PURE__ */ e.jsx(
|
|
1654
|
+
p.length > 1 ? /* @__PURE__ */ e.jsx(Mt, {}) : null
|
|
1655
1655
|
]
|
|
1656
1656
|
}
|
|
1657
1657
|
) }),
|
|
1658
|
-
/* @__PURE__ */ e.jsx(
|
|
1658
|
+
/* @__PURE__ */ e.jsx(xr, { children: /* @__PURE__ */ e.jsx(Z, { className: "bg-background", children: /* @__PURE__ */ e.jsx(
|
|
1659
1659
|
ll,
|
|
1660
1660
|
{
|
|
1661
1661
|
units: p,
|
|
@@ -1693,7 +1693,7 @@ const el = (t) => {
|
|
|
1693
1693
|
] }) }) });
|
|
1694
1694
|
}, se = (t) => {
|
|
1695
1695
|
const l = xe();
|
|
1696
|
-
return
|
|
1696
|
+
return wt(l, { property: t });
|
|
1697
1697
|
}, ol = (t, l) => {
|
|
1698
1698
|
const r = {
|
|
1699
1699
|
xs: 0,
|
|
@@ -1779,7 +1779,7 @@ const el = (t) => {
|
|
|
1779
1779
|
"2xl": "1536px"
|
|
1780
1780
|
}, al = (t) => `${t.toUpperCase()} ${Oe[t] ? `(${Oe[t]} & up)` : ""}`, Re = (t) => {
|
|
1781
1781
|
const { type: l = "icons", label: r, property: s, onEmitChange: o = () => {
|
|
1782
|
-
}, units: n, negative: d = !1 } = t, [i] =
|
|
1782
|
+
}, 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(
|
|
1783
1783
|
(k, $ = !0) => {
|
|
1784
1784
|
const F = { dark: i, mq: p, mod: a, cls: k, property: s, fullCls: "" };
|
|
1785
1785
|
(i || a !== "") && (F.mq = "xs");
|
|
@@ -1824,9 +1824,9 @@ const el = (t) => {
|
|
|
1824
1824
|
l === "icons" && /* @__PURE__ */ e.jsx(Kr, { property: s, onChange: f }),
|
|
1825
1825
|
l === "range" && /* @__PURE__ */ e.jsx(Gr, { property: s, onChange: f }),
|
|
1826
1826
|
l === "color" && /* @__PURE__ */ e.jsx(Jr, { property: s, onChange: f }),
|
|
1827
|
-
l === "dropdown" && /* @__PURE__ */ e.jsx(
|
|
1827
|
+
l === "dropdown" && /* @__PURE__ */ e.jsx(nt, { label: r, property: s, onChange: f })
|
|
1828
1828
|
] }),
|
|
1829
|
-
/* @__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(
|
|
1829
|
+
/* @__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: [
|
|
1830
1830
|
/* @__PURE__ */ e.jsx(X, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
1831
1831
|
"button",
|
|
1832
1832
|
{
|
|
@@ -1858,7 +1858,7 @@ const el = (t) => {
|
|
|
1858
1858
|
] }) : null })
|
|
1859
1859
|
] })
|
|
1860
1860
|
] }) });
|
|
1861
|
-
}, il = ["px", "%", "em", "rem", "ch", "vh", "vw"],
|
|
1861
|
+
}, il = ["px", "%", "em", "rem", "ch", "vh", "vw"], it = ({
|
|
1862
1862
|
label: t,
|
|
1863
1863
|
options: l,
|
|
1864
1864
|
borderB: r = !1,
|
|
@@ -1887,7 +1887,7 @@ const el = (t) => {
|
|
|
1887
1887
|
I.createElement("div", {
|
|
1888
1888
|
className: g(m) ? "-bottom-1.5 absolute bg-[#3E57F0] h-[2px] left-0 w-full" : ""
|
|
1889
1889
|
}),
|
|
1890
|
-
I.createElement(u(
|
|
1890
|
+
I.createElement(u(ot, m, Xe), { className: "text-inherit w-3 h-3" })
|
|
1891
1891
|
]
|
|
1892
1892
|
}
|
|
1893
1893
|
) }),
|
|
@@ -1927,7 +1927,7 @@ const el = (t) => {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
) : null
|
|
1929
1929
|
] }) }),
|
|
1930
|
-
/* @__PURE__ */ e.jsx("div", { className: "p-2", children: l.map((o) => o.styleType === "multiple" ? /* @__PURE__ */ e.jsx(
|
|
1930
|
+
/* @__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)) })
|
|
1931
1931
|
] });
|
|
1932
1932
|
}, cl = Ee({}), ye = ({ section: t }) => {
|
|
1933
1933
|
const l = xe(), r = A(
|
|
@@ -1960,7 +1960,7 @@ const el = (t) => {
|
|
|
1960
1960
|
t.heading
|
|
1961
1961
|
] }) }),
|
|
1962
1962
|
/* @__PURE__ */ e.jsx(ce, { className: "bg-gray-100 px-3.5 py-2", children: I.Children.toArray(
|
|
1963
|
-
t.items.map((n) => he(n, "component") ? I.createElement(n.component, { key: n.label }) : he(n, "styleType") ? n.styleType === "multiple" ? /* @__PURE__ */ e.jsx(
|
|
1963
|
+
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))
|
|
1964
1964
|
) })
|
|
1965
1965
|
] }) });
|
|
1966
1966
|
}, pl = ({
|
|
@@ -1996,7 +1996,7 @@ const el = (t) => {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
),
|
|
1998
1998
|
/* @__PURE__ */ e.jsx(
|
|
1999
|
-
|
|
1999
|
+
Ft,
|
|
2000
2000
|
{
|
|
2001
2001
|
onClick: o,
|
|
2002
2002
|
className: "h-6 w-6 cursor-pointer rounded border border-red-400 p-1 text-red-400 hover:opacity-80"
|
|
@@ -2005,7 +2005,7 @@ const el = (t) => {
|
|
|
2005
2005
|
] })
|
|
2006
2006
|
] }), ul = ({ section: t }) => {
|
|
2007
2007
|
var m;
|
|
2008
|
-
const { setSyncState: l } =
|
|
2008
|
+
const { setSyncState: l } = hr(), r = G(), [s, o] = w([]), [n] = Te(), d = Ue(), i = `${u(n, "0.prop")}_attrs`;
|
|
2009
2009
|
ne.useEffect(() => {
|
|
2010
2010
|
const h = C(u(r, i), (x, f) => ({ key: f, value: x }));
|
|
2011
2011
|
b(h) ? o([]) : o(h);
|
|
@@ -2075,7 +2075,7 @@ const el = (t) => {
|
|
|
2075
2075
|
] });
|
|
2076
2076
|
};
|
|
2077
2077
|
function xl() {
|
|
2078
|
-
const [t, l] = Qe(), { flexChild: r, gridChild: s } =
|
|
2078
|
+
const [t, l] = Qe(), { flexChild: r, gridChild: s } = mr(), [, o] = Br(yr), { t: n } = Ye(), [d] = Te();
|
|
2079
2079
|
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: [
|
|
2080
2080
|
/* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
|
|
2081
2081
|
/* @__PURE__ */ e.jsx("h1", { children: n("no_styling_block_selected") }),
|
|
@@ -2090,9 +2090,9 @@ function xl() {
|
|
|
2090
2090
|
/* @__PURE__ */ e.jsxs("div", { onClick: () => o(!1), className: "flex h-full flex-col", children: [
|
|
2091
2091
|
/* @__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: [
|
|
2092
2092
|
/* @__PURE__ */ e.jsx(Se, { htmlFor: "", className: "flex gap-x-1.5 text-xs italic", children: "State" }),
|
|
2093
|
-
/* @__PURE__ */ e.jsxs(
|
|
2094
|
-
/* @__PURE__ */ e.jsx(
|
|
2095
|
-
/* @__PURE__ */ e.jsxs(
|
|
2093
|
+
/* @__PURE__ */ e.jsxs(br, { defaultValue: t, onValueChange: (i) => l(i), children: [
|
|
2094
|
+
/* @__PURE__ */ e.jsx(fr, { className: "h-auto w-fit p-1 px-3", children: /* @__PURE__ */ e.jsx(vr, { placeholder: "State" }) }),
|
|
2095
|
+
/* @__PURE__ */ e.jsxs(jr, { children: [
|
|
2096
2096
|
/* @__PURE__ */ e.jsx(H, { value: "", children: "Normal" }),
|
|
2097
2097
|
/* @__PURE__ */ e.jsx(H, { value: "hover", children: "Hover" }),
|
|
2098
2098
|
/* @__PURE__ */ e.jsx(H, { value: "active", children: "Active" }),
|
|
@@ -2108,15 +2108,12 @@ function xl() {
|
|
|
2108
2108
|
] })
|
|
2109
2109
|
] })
|
|
2110
2110
|
] }) }),
|
|
2111
|
-
/* @__PURE__ */ e.
|
|
2112
|
-
/* @__PURE__ */ e.
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
] }),
|
|
2118
|
-
/* @__PURE__ */ e.jsx("div", { className: "h-60" })
|
|
2119
|
-
] })
|
|
2111
|
+
/* @__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: [
|
|
2112
|
+
r && /* @__PURE__ */ e.jsx(ye, { section: Xr }),
|
|
2113
|
+
s ? /* @__PURE__ */ e.jsx(ye, { section: Zr }) : null,
|
|
2114
|
+
zr.map((i) => /* @__PURE__ */ e.jsx(ye, { section: i }, i.heading)),
|
|
2115
|
+
/* @__PURE__ */ e.jsx(ul, { section: { heading: "Attributes" } })
|
|
2116
|
+
] }) })
|
|
2120
2117
|
] })
|
|
2121
2118
|
);
|
|
2122
2119
|
}
|
|
@@ -2165,10 +2162,10 @@ const gl = {
|
|
|
2165
2162
|
cssProperty: ""
|
|
2166
2163
|
});
|
|
2167
2164
|
}, [o, r, n]);
|
|
2168
|
-
return
|
|
2165
|
+
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: [
|
|
2169
2166
|
/* @__PURE__ */ e.jsx(Ze, { className: "mx-auto text-3xl" }),
|
|
2170
2167
|
/* @__PURE__ */ e.jsx("h1", { children: l("no_block_selected_for_styling") })
|
|
2171
|
-
] }) }) : /* @__PURE__ */ e.jsx(
|
|
2168
|
+
] }) }) : /* @__PURE__ */ e.jsx(rt, { children: /* @__PURE__ */ e.jsxs(at.Provider, { value: { setDragData: n }, children: [
|
|
2172
2169
|
o.dragging ? /* @__PURE__ */ e.jsx(
|
|
2173
2170
|
"div",
|
|
2174
2171
|
{
|
|
@@ -2187,7 +2184,7 @@ const gl = {
|
|
|
2187
2184
|
{
|
|
2188
2185
|
value: "settings",
|
|
2189
2186
|
className: "no-scrollbar -mx-1 -mr-2 h-full flex-1 overflow-y-auto overflow-x-hidden",
|
|
2190
|
-
children: /* @__PURE__ */ e.jsx(Yr, {})
|
|
2187
|
+
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, {}) })
|
|
2191
2188
|
}
|
|
2192
2189
|
),
|
|
2193
2190
|
/* @__PURE__ */ e.jsx(De, { value: "styling", className: "flex-1 h-full overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ e.jsx(xl, {}) })
|
|
@@ -7,7 +7,7 @@ import { ak as O, al as Y, am as J, an as U, ao as $, D as q, E as G, F as Z, G
|
|
|
7
7
|
import "./lib.js";
|
|
8
8
|
import { ListTreeIcon as C, DatabaseIcon as pe } from "lucide-react";
|
|
9
9
|
import { getChaiDataProviders as ue } from "@chaibuilder/runtime";
|
|
10
|
-
import { E as he } from "./index-
|
|
10
|
+
import { E as he } from "./index-LOLasIJD.js";
|
|
11
11
|
import { c as fe } from "./utils-PPBbw5bk.js";
|
|
12
12
|
import "./MODIFIERS-MLfpKQY1.js";
|
|
13
13
|
import "@radix-ui/react-toggle";
|
|
@@ -204,7 +204,7 @@ const be = () => {
|
|
|
204
204
|
/* @__PURE__ */ e.jsx(je, { onClose: () => l(null), provider: f })
|
|
205
205
|
] })
|
|
206
206
|
] });
|
|
207
|
-
}, ye = b(() => import("./AddBlocks-a2VUDT5t.js")), D = b(() => import("./Layers-
|
|
207
|
+
}, ye = b(() => import("./AddBlocks-a2VUDT5t.js")), D = b(() => import("./Layers-urjdDTKB.js")), we = b(() => import("./BrandingOptions-uU1nNRzP.js")), Ne = b(() => import("./index-bKgIzodL.js").then((r) => r.cy));
|
|
208
208
|
let B = null;
|
|
209
209
|
const Ps = () => {
|
|
210
210
|
const r = k("sideBarComponents.top", []), o = k("sideBarComponents.bottom", []), [a, d] = A(ce), [t, n] = u(a), [m, y] = u(null), f = {
|