@chaibuilder/sdk 1.2.28 → 1.2.30
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-YJPdSqcY.cjs → AddBlocks-UxJOFB9M.cjs} +1 -1
- package/dist/{AddBlocks-0sW6gkCO.js → AddBlocks-u1FkSHNj.js} +19 -19
- package/dist/{BrandingOptions--vgnQvD1.js → BrandingOptions-A3_c_sd7.js} +1 -1
- package/dist/{CanvasArea-aii0PyU-.js → CanvasArea-3D9rpjpk.js} +3 -3
- package/dist/{CanvasArea-41QoxuLf.cjs → CanvasArea-e829y1ts.cjs} +1 -1
- package/dist/{CurrentPage-2W1pdAOG.cjs → CurrentPage-5xKDQqvg.cjs} +1 -1
- package/dist/{CurrentPage-06Iacwyp.js → CurrentPage-VbdmddMv.js} +4 -4
- package/dist/{ListTree-DnA8gj-7.js → ListTree-c9Z0kWbN.js} +1 -1
- package/dist/{PagesPanel-_1CDTUdE.js → PagesPanel-_VzJ1__k.js} +5 -5
- package/dist/{PagesPanel-PBFzPSNY.cjs → PagesPanel-wex1zGzm.cjs} +1 -1
- package/dist/{ProjectPanel-755bbzEQ.cjs → ProjectPanel-N6iWd_4Z.cjs} +1 -1
- package/dist/{ProjectPanel-pUMeIiUW.js → ProjectPanel-rPNO2QsE.js} +5 -5
- package/dist/{Settings-dnO-s6x0.js → Settings-jTl7IOPc.js} +560 -532
- package/dist/Settings-mlh0i_1M.cjs +1 -0
- package/dist/{SidePanels-VxSXXkt_.js → SidePanels-jYJEFpxC.js} +3 -3
- package/dist/{SidePanels-Gq2LdVuY.cjs → SidePanels-mx5TyZBn.cjs} +1 -1
- package/dist/{Topbar-5zbOSGF6.js → Topbar-VCFW9uNI.js} +1 -1
- package/dist/{UnsplashImages-4WAWgA4s.js → UnsplashImages-N9h0avWO.js} +1 -1
- package/dist/{UploadImages-PONIHtn6.js → UploadImages-e70AeNGX.js} +1 -1
- package/dist/{add-page-modal-4VrFvgEm.js → add-page-modal-o1euqbsp.js} +5 -5
- package/dist/{add-page-modal-jWcp0w-S.cjs → add-page-modal-v5smARyL.cjs} +1 -1
- package/dist/{confirm-alert-j7b88hsW.js → confirm-alert-EDOFRmH8.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +2 -2
- package/dist/{delete-page-modal-p6b0upz4.cjs → delete-page-modal-DNjqQuop.cjs} +1 -1
- package/dist/{delete-page-modal--xHHdRAq.js → delete-page-modal-QzRkBAct.js} +4 -4
- package/dist/email.cjs +1 -1
- package/dist/email.js +2 -2
- package/dist/{form-_GJb9YcB.js → form-yw3Uuk6v.js} +1 -1
- package/dist/html-to-json-Xhu27KFD.cjs +1 -0
- package/dist/{html-to-json-LJyJsnmZ.js → html-to-json-ZV4QjSww.js} +53 -52
- package/dist/{index-KArv7pNz.cjs → index-5c_rU-9B.cjs} +1 -1
- package/dist/{index-mlMvwv2b.cjs → index-DHwvjZ5z.cjs} +1 -1
- package/dist/{index-Eb5zyh2F.js → index-DtBYhldP.js} +4 -4
- package/dist/{index-UHaqEdws.js → index-HiiWSXkE.js} +9 -9
- package/dist/{index-0QJwevON.js → index-SEJRE2ab.js} +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +1 -1
- package/dist/{page-viewer-00Xx4u8e.js → page-viewer-1vswRGpL.js} +5 -5
- package/dist/{page-viewer-SZNm7b1n.cjs → page-viewer-87wtE0pN.cjs} +1 -1
- package/dist/{project-general-setting-C_pHNuZE.cjs → project-general-setting-RSG7ZQSx.cjs} +1 -1
- package/dist/{project-general-setting-asDxlmhZ.js → project-general-setting-SE9QJ6mF.js} +5 -5
- package/dist/{project-seo-setting-DuAaDfDR.js → project-seo-setting-x3peNgla.js} +2 -2
- package/dist/{single-page-detail-oqj6zsLU.cjs → single-page-detail-8Arndzmw.cjs} +1 -1
- package/dist/{single-page-detail-UNxXvhl4.js → single-page-detail-bels-Cjo.js} +12 -12
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +4 -4
- package/dist/ui.js +7 -7
- package/dist/{useCanvasSettings-R6br4J9i.js → useCanvasSettings-unTQUdlP.js} +1 -1
- package/dist/web-blocks.cjs +4 -4
- package/dist/web-blocks.js +232 -219
- package/package.json +1 -1
- package/dist/Settings-G9Xtqr7n.cjs +0 -1
- package/dist/html-to-json-vP1ESB_e.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { isNull as $, isEmpty as k, get as x, pick as z, omit as q, find as O, map as E, noop as V } from "lodash-es";
|
|
2
2
|
import { j as n } from "./jsx-runtime-WbnYoNE9.js";
|
|
3
|
-
import * as
|
|
4
|
-
import { S as
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { S as c, s as w, o as C, g as I, m as L, u as y, T as P, c as _, q as U, b as G, r as b, h as W } from "./controls-OfJWSEqC.js";
|
|
5
5
|
import { registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
6
6
|
import { E as v } from "./empty-slot-ZBlsQi6m.js";
|
|
7
7
|
import { HeadingIcon as Y, TextIcon as X, CursorTextIcon as Z, ButtonIcon as R, Link1Icon as J, RowsIcon as K, ColumnsIcon as Q, SketchLogoIcon as ee, ImageIcon as te, VideoIcon as le, CodeIcon as oe, DividerHorizontalIcon as se, SpaceBetweenVerticallyIcon as F, TableIcon as ae, BorderTopIcon as ne, BorderAllIcon as re, ViewHorizontalIcon as ce, DragHandleHorizontalIcon as ie, GroupIcon as de, LetterCaseToggleIcon as ue, CheckboxIcon as pe, InputIcon as D, RadiobuttonIcon as he, DropdownMenuIcon as ye } from "@radix-ui/react-icons";
|
|
8
8
|
import { c as S, g } from "./Functions-7jnEwJyw.js";
|
|
9
|
-
import { g as A } from "./html-to-json-
|
|
9
|
+
import { g as A } from "./html-to-json-ZV4QjSww.js";
|
|
10
10
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
11
|
import "clsx";
|
|
12
12
|
import "tailwind-merge";
|
|
13
13
|
import "himalaya";
|
|
14
14
|
import "./STRINGS--j49GZJP.js";
|
|
15
|
-
const me =
|
|
15
|
+
const me = u.memo(
|
|
16
16
|
(e) => {
|
|
17
17
|
const { blockProps: t, inBuilder: l, backgroundImage: o, children: s, tag: a = "div", styles: r } = e;
|
|
18
|
-
let
|
|
19
|
-
s || (
|
|
20
|
-
let
|
|
21
|
-
return o && (
|
|
18
|
+
let i = s;
|
|
19
|
+
s || (i = /* @__PURE__ */ n.jsx(v, { blockProps: {}, styles: {}, inBuilder: l }));
|
|
20
|
+
let p = {};
|
|
21
|
+
return o && (p = { backgroundImage: `url(${o})` }), u.createElement(a, { ...t, ...r, style: p }, i);
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
d(me, {
|
|
@@ -27,8 +27,8 @@ d(me, {
|
|
|
27
27
|
category: "core",
|
|
28
28
|
group: "basic",
|
|
29
29
|
props: {
|
|
30
|
-
styles:
|
|
31
|
-
tag:
|
|
30
|
+
styles: c({ default: "" }),
|
|
31
|
+
tag: w({
|
|
32
32
|
title: "Tag",
|
|
33
33
|
default: "div",
|
|
34
34
|
options: [
|
|
@@ -55,22 +55,38 @@ d(me, {
|
|
|
55
55
|
},
|
|
56
56
|
canAcceptBlock: () => !0
|
|
57
57
|
});
|
|
58
|
-
const fe = (
|
|
58
|
+
const fe = u.memo(
|
|
59
|
+
(e) => {
|
|
60
|
+
const { blockProps: t, styles: l } = e;
|
|
61
|
+
return u.createElement("div", { ...t, ...l });
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
d(fe, {
|
|
65
|
+
type: "EmptyBox",
|
|
66
|
+
label: "Empty Box",
|
|
67
|
+
category: "core",
|
|
68
|
+
group: "basic",
|
|
69
|
+
props: {
|
|
70
|
+
styles: c({ default: "" })
|
|
71
|
+
},
|
|
72
|
+
canAcceptBlock: () => !1
|
|
73
|
+
});
|
|
74
|
+
const be = (e) => {
|
|
59
75
|
const { blockProps: t, styles: l, content: o, level: s = "h1", children: a = null } = e;
|
|
60
|
-
return a ?
|
|
76
|
+
return a ? u.createElement(s, { ...l, ...t }, a) : u.createElement(s, {
|
|
61
77
|
...l,
|
|
62
78
|
...t,
|
|
63
79
|
dangerouslySetInnerHTML: { __html: o }
|
|
64
80
|
});
|
|
65
81
|
};
|
|
66
|
-
d(
|
|
82
|
+
d(be, {
|
|
67
83
|
type: "Heading",
|
|
68
84
|
label: "Heading",
|
|
69
85
|
category: "core",
|
|
70
86
|
icon: Y,
|
|
71
87
|
group: "typography",
|
|
72
88
|
props: {
|
|
73
|
-
level:
|
|
89
|
+
level: w({
|
|
74
90
|
title: "Level",
|
|
75
91
|
default: "h1",
|
|
76
92
|
binding: !1,
|
|
@@ -83,86 +99,86 @@ d(fe, {
|
|
|
83
99
|
{ value: "h6", title: "h6" }
|
|
84
100
|
]
|
|
85
101
|
}),
|
|
86
|
-
styles:
|
|
87
|
-
content:
|
|
102
|
+
styles: c({ default: "text-3xl" }),
|
|
103
|
+
content: I({ title: "Content", default: "Heading goes here" })
|
|
88
104
|
},
|
|
89
105
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
90
106
|
});
|
|
91
|
-
const
|
|
107
|
+
const ge = (e) => {
|
|
92
108
|
const { blockProps: t, styles: l, content: o } = e;
|
|
93
|
-
return $(e.children) ?
|
|
109
|
+
return $(e.children) ? u.createElement("p", {
|
|
94
110
|
...l,
|
|
95
111
|
...t,
|
|
96
112
|
dangerouslySetInnerHTML: { __html: o }
|
|
97
|
-
}) :
|
|
113
|
+
}) : u.createElement("p", { ...l, ...t }, e.children);
|
|
98
114
|
};
|
|
99
|
-
d(
|
|
115
|
+
d(ge, {
|
|
100
116
|
type: "Paragraph",
|
|
101
117
|
label: "Paragraph",
|
|
102
118
|
category: "core",
|
|
103
119
|
icon: X,
|
|
104
120
|
group: "typography",
|
|
105
121
|
props: {
|
|
106
|
-
styles:
|
|
107
|
-
content:
|
|
122
|
+
styles: c({ default: "" }),
|
|
123
|
+
content: I({
|
|
108
124
|
title: "Content",
|
|
109
125
|
default: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere."
|
|
110
126
|
})
|
|
111
127
|
},
|
|
112
128
|
canAcceptBlock: (e) => e === "Span" || e === "Link"
|
|
113
129
|
});
|
|
114
|
-
const
|
|
130
|
+
const ve = (e) => {
|
|
115
131
|
const { blockProps: t, styles: l, content: o, children: s = null, tag: a } = e;
|
|
116
|
-
return s ?
|
|
132
|
+
return s ? u.createElement("span", { ...l, ...t }, s) : u.createElement(a || "span", {
|
|
117
133
|
...l,
|
|
118
134
|
...t,
|
|
119
135
|
dangerouslySetInnerHTML: { __html: o }
|
|
120
136
|
});
|
|
121
137
|
};
|
|
122
|
-
d(
|
|
138
|
+
d(ve, {
|
|
123
139
|
type: "Span",
|
|
124
140
|
label: "Span",
|
|
125
141
|
category: "core",
|
|
126
142
|
group: "typography",
|
|
127
143
|
props: {
|
|
128
|
-
styles:
|
|
129
|
-
content:
|
|
144
|
+
styles: c({ default: "" }),
|
|
145
|
+
content: I({ title: "Content", default: "Enter your content" })
|
|
130
146
|
},
|
|
131
147
|
canAcceptBlock: () => !0
|
|
132
148
|
});
|
|
133
|
-
const
|
|
149
|
+
const xe = (e) => {
|
|
134
150
|
const { blockProps: t, content: l, styles: o } = e;
|
|
135
151
|
return /* @__PURE__ */ n.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ n.jsx("div", { ...t, ...o, dangerouslySetInnerHTML: { __html: l } }) });
|
|
136
152
|
};
|
|
137
|
-
d(
|
|
153
|
+
d(xe, {
|
|
138
154
|
type: "RichText",
|
|
139
155
|
label: "Rich Text",
|
|
140
156
|
category: "core",
|
|
141
157
|
icon: Z,
|
|
142
158
|
group: "typography",
|
|
143
159
|
props: {
|
|
144
|
-
styles:
|
|
160
|
+
styles: c({ default: "" }),
|
|
145
161
|
content: L({
|
|
146
162
|
title: "Content",
|
|
147
163
|
default: "<p>This is a rich text block. You can add text, and other content here.</p>"
|
|
148
164
|
})
|
|
149
165
|
}
|
|
150
166
|
});
|
|
151
|
-
const
|
|
152
|
-
const { blockProps: t, iconSize: l, icon: o, content: s, iconPos: a, styles: r, children:
|
|
167
|
+
const ke = (e) => {
|
|
168
|
+
const { blockProps: t, iconSize: l, icon: o, content: s, iconPos: a, styles: r, children: i } = e, p = o, h = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
153
169
|
/* @__PURE__ */ n.jsx("span", { children: s }),
|
|
154
|
-
|
|
170
|
+
p && /* @__PURE__ */ n.jsx(
|
|
155
171
|
"div",
|
|
156
172
|
{
|
|
157
173
|
style: { width: l + "px" },
|
|
158
174
|
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
159
|
-
dangerouslySetInnerHTML: { __html:
|
|
175
|
+
dangerouslySetInnerHTML: { __html: p }
|
|
160
176
|
}
|
|
161
177
|
)
|
|
162
178
|
] });
|
|
163
|
-
return
|
|
179
|
+
return u.createElement("button", { ...t, ...r, type: "button" }, h);
|
|
164
180
|
};
|
|
165
|
-
d(
|
|
181
|
+
d(ke, {
|
|
166
182
|
type: "Button",
|
|
167
183
|
label: "Button",
|
|
168
184
|
category: "core",
|
|
@@ -170,10 +186,10 @@ d(xe, {
|
|
|
170
186
|
group: "basic",
|
|
171
187
|
props: {
|
|
172
188
|
content: y({ title: "Label", default: "Button", multiLingual: !0 }),
|
|
173
|
-
styles:
|
|
189
|
+
styles: c({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
174
190
|
icon: P({ title: "Icon", default: "" }),
|
|
175
191
|
iconSize: _({ title: "Icon Size", default: 24 }),
|
|
176
|
-
iconPos:
|
|
192
|
+
iconPos: w({
|
|
177
193
|
title: "Icon Position",
|
|
178
194
|
default: "order-last",
|
|
179
195
|
options: [
|
|
@@ -183,14 +199,14 @@ d(xe, {
|
|
|
183
199
|
})
|
|
184
200
|
}
|
|
185
201
|
});
|
|
186
|
-
const
|
|
202
|
+
const Be = (e) => {
|
|
187
203
|
const { blockProps: t, link: l, children: o, styles: s, inBuilder: a, content: r } = e;
|
|
188
|
-
return !o && k(s == null ? void 0 : s.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, inBuilder: a }) : a ? o ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...s, children: o }) :
|
|
204
|
+
return !o && k(s == null ? void 0 : s.className) && k(r) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, inBuilder: a }) : a ? o ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...s, children: o }) : u.createElement("span", {
|
|
189
205
|
...t,
|
|
190
206
|
...s,
|
|
191
207
|
dangerouslySetInnerHTML: { __html: r },
|
|
192
208
|
"data-simulate": "a"
|
|
193
|
-
}) : o ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...s, children: o }) :
|
|
209
|
+
}) : o ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...s, children: o }) : u.createElement("a", {
|
|
194
210
|
...t,
|
|
195
211
|
...s,
|
|
196
212
|
href: l.href || "#",
|
|
@@ -198,14 +214,14 @@ const ke = (e) => {
|
|
|
198
214
|
dangerouslySetInnerHTML: { __html: r }
|
|
199
215
|
});
|
|
200
216
|
};
|
|
201
|
-
d(
|
|
217
|
+
d(Be, {
|
|
202
218
|
type: "Link",
|
|
203
219
|
label: "Link",
|
|
204
220
|
category: "core",
|
|
205
221
|
icon: J,
|
|
206
222
|
group: "basic",
|
|
207
223
|
props: {
|
|
208
|
-
styles:
|
|
224
|
+
styles: c({ default: "" }),
|
|
209
225
|
content: y({ title: "Content", default: "" }),
|
|
210
226
|
link: U({
|
|
211
227
|
title: "Link",
|
|
@@ -215,10 +231,10 @@ d(ke, {
|
|
|
215
231
|
canAcceptBlock: () => !0
|
|
216
232
|
});
|
|
217
233
|
const we = (e) => {
|
|
218
|
-
const { blockProps: t, children: l, listType: o, styles: s, tag: a, inBuilder: r } = e,
|
|
219
|
-
return !l && k(s == null ? void 0 : s.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r, blockProps: t, text: "LIST ITEM" }) :
|
|
234
|
+
const { blockProps: t, children: l, listType: o, styles: s, tag: a, inBuilder: r } = e, i = S(x(s, "className", ""), o);
|
|
235
|
+
return !l && k(s == null ? void 0 : s.className) ? /* @__PURE__ */ n.jsx(v, { inBuilder: r, blockProps: t, text: "LIST ITEM" }) : u.createElement(
|
|
220
236
|
a || (o === "list-decimal" ? "ol" : "ul"),
|
|
221
|
-
{ ...t, ...s, className:
|
|
237
|
+
{ ...t, ...s, className: i },
|
|
222
238
|
l
|
|
223
239
|
);
|
|
224
240
|
};
|
|
@@ -229,8 +245,8 @@ d(we, {
|
|
|
229
245
|
category: "core",
|
|
230
246
|
group: "basic",
|
|
231
247
|
props: {
|
|
232
|
-
styles:
|
|
233
|
-
listType:
|
|
248
|
+
styles: c({ default: "" }),
|
|
249
|
+
listType: w({
|
|
234
250
|
title: "List type",
|
|
235
251
|
default: "list-disc",
|
|
236
252
|
options: [
|
|
@@ -268,7 +284,7 @@ d(we, {
|
|
|
268
284
|
});
|
|
269
285
|
const Ie = (e) => {
|
|
270
286
|
const { blockProps: t, content: l, styles: o, children: s, tag: a } = e;
|
|
271
|
-
return s ?
|
|
287
|
+
return s ? u.createElement(a || "li", { ...o, ...t }, s) : u.createElement(a || "li", {
|
|
272
288
|
...o,
|
|
273
289
|
...t,
|
|
274
290
|
dangerouslySetInnerHTML: { __html: l }
|
|
@@ -281,37 +297,34 @@ d(Ie, {
|
|
|
281
297
|
category: "core",
|
|
282
298
|
group: "basic",
|
|
283
299
|
props: {
|
|
284
|
-
styles:
|
|
285
|
-
content:
|
|
300
|
+
styles: c({ default: "" }),
|
|
301
|
+
content: I({ title: "Content", default: "List item" })
|
|
286
302
|
},
|
|
287
303
|
canAcceptBlock: () => !0,
|
|
288
304
|
canBeNested: (e) => e === "List"
|
|
289
305
|
});
|
|
290
|
-
const
|
|
306
|
+
const B = (e, ...t) => ({
|
|
291
307
|
...e,
|
|
292
308
|
className: S(e.className, ...t)
|
|
293
|
-
}),
|
|
294
|
-
const { blockProps: t, icon: l, styles: o, width: s, inBuilder: a, height: r } = e,
|
|
295
|
-
o,
|
|
296
|
-
S("inline-block", s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : "")
|
|
297
|
-
);
|
|
309
|
+
}), Te = (e) => {
|
|
310
|
+
const { blockProps: t, icon: l, styles: o, width: s, inBuilder: a, height: r } = e, i = B(o, S(s ? `w-[${s}px]` : "", r ? `h-[${r}px]` : ""));
|
|
298
311
|
if (k(l))
|
|
299
312
|
return /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "", inBuilder: a, className: "h-8 w-14" });
|
|
300
|
-
const
|
|
301
|
-
return
|
|
313
|
+
const p = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
314
|
+
return u.createElement("span", {
|
|
302
315
|
...t,
|
|
303
|
-
...
|
|
304
|
-
dangerouslySetInnerHTML: { __html:
|
|
316
|
+
...i,
|
|
317
|
+
dangerouslySetInnerHTML: { __html: p }
|
|
305
318
|
});
|
|
306
319
|
};
|
|
307
|
-
d(
|
|
320
|
+
d(Te, {
|
|
308
321
|
type: "Icon",
|
|
309
322
|
label: "Icon",
|
|
310
323
|
category: "core",
|
|
311
324
|
icon: ee,
|
|
312
325
|
group: "media",
|
|
313
326
|
props: {
|
|
314
|
-
styles:
|
|
327
|
+
styles: c({ default: "text-black" }),
|
|
315
328
|
icon: P({
|
|
316
329
|
title: "Icon",
|
|
317
330
|
default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'
|
|
@@ -320,9 +333,9 @@ d(Be, {
|
|
|
320
333
|
height: _({ title: "Height", default: "" })
|
|
321
334
|
}
|
|
322
335
|
});
|
|
323
|
-
const
|
|
336
|
+
const Le = (e) => {
|
|
324
337
|
const { blockProps: t, image: l, styles: o, alt: s, height: a, width: r } = e;
|
|
325
|
-
return k(l) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "IMAGE URL", className: "h-36" }) :
|
|
338
|
+
return k(l) ? /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : u.createElement("img", {
|
|
326
339
|
...t,
|
|
327
340
|
...o,
|
|
328
341
|
src: l,
|
|
@@ -331,14 +344,14 @@ const Te = (e) => {
|
|
|
331
344
|
width: r
|
|
332
345
|
});
|
|
333
346
|
};
|
|
334
|
-
d(
|
|
347
|
+
d(Le, {
|
|
335
348
|
type: "Image",
|
|
336
349
|
label: "Image",
|
|
337
350
|
category: "core",
|
|
338
351
|
icon: te,
|
|
339
352
|
group: "media",
|
|
340
353
|
props: {
|
|
341
|
-
styles:
|
|
354
|
+
styles: c({ default: "" }),
|
|
342
355
|
image: C({
|
|
343
356
|
title: "Image",
|
|
344
357
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
@@ -348,7 +361,7 @@ d(Te, {
|
|
|
348
361
|
height: y({ title: "Height", default: "" })
|
|
349
362
|
}
|
|
350
363
|
});
|
|
351
|
-
const
|
|
364
|
+
const _e = (e) => {
|
|
352
365
|
var r;
|
|
353
366
|
const { blockProps: t, inBuilder: l, styles: o, children: s } = e;
|
|
354
367
|
let a = null;
|
|
@@ -356,27 +369,27 @@ const Le = (e) => {
|
|
|
356
369
|
/* @__PURE__ */ n.jsx("div", { className: S("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ n.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
|
|
357
370
|
"Slot: ",
|
|
358
371
|
e.name
|
|
359
|
-
] }) }) })),
|
|
372
|
+
] }) }) })), u.createElement("div", { ...o, ...t, droppable: "yes" }, s || a);
|
|
360
373
|
};
|
|
361
|
-
d(
|
|
374
|
+
d(_e, {
|
|
362
375
|
type: "Slot",
|
|
363
376
|
label: "Slot",
|
|
364
377
|
group: "basic",
|
|
365
378
|
category: "core",
|
|
366
379
|
hidden: !0,
|
|
367
380
|
props: {
|
|
368
|
-
styles:
|
|
369
|
-
emptyStyles:
|
|
381
|
+
styles: c({ default: "" }),
|
|
382
|
+
emptyStyles: c({ default: "" })
|
|
370
383
|
},
|
|
371
384
|
canAcceptBlock: () => !0
|
|
372
385
|
});
|
|
373
|
-
const
|
|
374
|
-
if (N.test(e)) {
|
|
375
|
-
const t = e.match(N);
|
|
376
|
-
return t ? `https://www.youtube.com/embed/${t[4]}` : e;
|
|
377
|
-
}
|
|
386
|
+
const M = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, H = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Se = (e) => {
|
|
378
387
|
if (M.test(e)) {
|
|
379
388
|
const t = e.match(M);
|
|
389
|
+
return t ? `https://www.youtube.com/embed/${t[4]}` : e;
|
|
390
|
+
}
|
|
391
|
+
if (N.test(e)) {
|
|
392
|
+
const t = e.match(N);
|
|
380
393
|
return t ? `https://player.vimeo.com/video/${t[3]}` : e;
|
|
381
394
|
}
|
|
382
395
|
if (H.test(e)) {
|
|
@@ -384,18 +397,18 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
|
|
|
384
397
|
return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
|
|
385
398
|
}
|
|
386
399
|
return null;
|
|
387
|
-
},
|
|
400
|
+
}, je = u.memo(
|
|
388
401
|
(e) => {
|
|
389
|
-
const { blockProps: t, inBuilder: l, styles: o, url: s, controls: a } = e, r = x(a, "autoPlay", !1),
|
|
402
|
+
const { blockProps: t, inBuilder: l, styles: o, url: s, controls: a } = e, r = x(a, "autoPlay", !1), i = x(a, "controls", !1), p = r || x(a, "muted", !0), h = x(a, "loop", !1);
|
|
390
403
|
if (k(s))
|
|
391
404
|
return /* @__PURE__ */ n.jsx(v, { inBuilder: l, blockProps: t, text: "VIDEO URL", className: "h-36" });
|
|
392
|
-
let f =
|
|
405
|
+
let f = Se(s), m = null;
|
|
393
406
|
if (f) {
|
|
394
407
|
if (!k(f)) {
|
|
395
408
|
const T = [];
|
|
396
|
-
T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${a ? 1 : 0}`), T.push(`mute=${
|
|
409
|
+
T.push(`autoplay=${r ? 1 : 0}`), T.push(`controls=${a ? 1 : 0}`), T.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), T.push(`loop=${h ? 1 : 0}`), f = `${f}?${T.join("&")}`;
|
|
397
410
|
}
|
|
398
|
-
m =
|
|
411
|
+
m = u.createElement("iframe", {
|
|
399
412
|
...t,
|
|
400
413
|
className: "absolute inset-0 w-full h-full",
|
|
401
414
|
src: f,
|
|
@@ -404,12 +417,12 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
|
|
|
404
417
|
frameBorder: 0
|
|
405
418
|
});
|
|
406
419
|
} else
|
|
407
|
-
m =
|
|
420
|
+
m = u.createElement("video", {
|
|
408
421
|
...t,
|
|
409
422
|
className: "absolute inset-0 w-full h-full",
|
|
410
423
|
src: s,
|
|
411
|
-
controls:
|
|
412
|
-
muted:
|
|
424
|
+
controls: i,
|
|
425
|
+
muted: p,
|
|
413
426
|
autoPlay: l ? !1 : r,
|
|
414
427
|
loop: h
|
|
415
428
|
});
|
|
@@ -419,14 +432,14 @@ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
|
|
|
419
432
|
] }) });
|
|
420
433
|
}
|
|
421
434
|
);
|
|
422
|
-
d(
|
|
435
|
+
d(je, {
|
|
423
436
|
type: "Video",
|
|
424
437
|
label: "Video",
|
|
425
438
|
category: "core",
|
|
426
439
|
icon: le,
|
|
427
440
|
group: "media",
|
|
428
441
|
props: {
|
|
429
|
-
styles:
|
|
442
|
+
styles: c({ default: "" }),
|
|
430
443
|
url: y({
|
|
431
444
|
title: "Video URL",
|
|
432
445
|
default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
|
|
@@ -442,49 +455,49 @@ d(Se, {
|
|
|
442
455
|
})
|
|
443
456
|
}
|
|
444
457
|
});
|
|
445
|
-
const
|
|
458
|
+
const Ee = u.memo(
|
|
446
459
|
(e) => {
|
|
447
460
|
const { blockProps: t, styles: l, content: o, inBuilder: s } = e;
|
|
448
461
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
449
462
|
s ? /* @__PURE__ */ n.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
|
|
450
|
-
|
|
463
|
+
u.createElement("div", {
|
|
451
464
|
...l,
|
|
452
465
|
dangerouslySetInnerHTML: { __html: o }
|
|
453
466
|
})
|
|
454
467
|
] });
|
|
455
468
|
}
|
|
456
469
|
);
|
|
457
|
-
d(
|
|
470
|
+
d(Ee, {
|
|
458
471
|
type: "CustomHTML",
|
|
459
472
|
label: "Custom HTML",
|
|
460
473
|
category: "core",
|
|
461
474
|
icon: oe,
|
|
462
475
|
group: "advanced",
|
|
463
476
|
props: {
|
|
464
|
-
styles:
|
|
465
|
-
content:
|
|
477
|
+
styles: c({ default: "" }),
|
|
478
|
+
content: I({
|
|
466
479
|
title: "HTML Content",
|
|
467
480
|
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
468
481
|
placeholder: "Enter custom HTML code here"
|
|
469
482
|
})
|
|
470
483
|
}
|
|
471
484
|
});
|
|
472
|
-
const
|
|
485
|
+
const Ce = (e) => {
|
|
473
486
|
const { blockProps: t, styles: l } = e;
|
|
474
|
-
return
|
|
487
|
+
return u.createElement("hr", { ...l, ...t });
|
|
475
488
|
};
|
|
476
|
-
d(
|
|
489
|
+
d(Ce, {
|
|
477
490
|
type: "Divider",
|
|
478
491
|
label: "Divider",
|
|
479
492
|
category: "core",
|
|
480
493
|
icon: se,
|
|
481
494
|
group: "basic",
|
|
482
495
|
props: {
|
|
483
|
-
styles:
|
|
496
|
+
styles: c({ default: "bg-gray-900 h-0.5 py-2 my-1" })
|
|
484
497
|
}
|
|
485
498
|
});
|
|
486
|
-
const
|
|
487
|
-
d(
|
|
499
|
+
const Pe = (e) => e.inBuilder ? /* @__PURE__ */ n.jsx("span", { ...e.blockProps, children: e.content }) : `${e.content}`;
|
|
500
|
+
d(Pe, {
|
|
488
501
|
type: "Text",
|
|
489
502
|
label: "Text",
|
|
490
503
|
hidden: !0,
|
|
@@ -492,20 +505,20 @@ d(Ce, {
|
|
|
492
505
|
group: "typography",
|
|
493
506
|
icon: F,
|
|
494
507
|
props: {
|
|
495
|
-
content:
|
|
508
|
+
content: I({ title: "Content", defaultValue: "" })
|
|
496
509
|
}
|
|
497
510
|
});
|
|
498
|
-
const
|
|
499
|
-
const o =
|
|
511
|
+
const Ae = ({ children: e, blockProps: t, styles: l }) => {
|
|
512
|
+
const o = B(l, "hs-accordion-group");
|
|
500
513
|
return /* @__PURE__ */ n.jsx("div", { ...t, ...o, children: e });
|
|
501
514
|
};
|
|
502
|
-
d(
|
|
515
|
+
d(Ae, {
|
|
503
516
|
type: "AccordionGroup",
|
|
504
517
|
label: "Accordion Group",
|
|
505
518
|
category: "core",
|
|
506
519
|
group: "advanced",
|
|
507
520
|
props: {
|
|
508
|
-
styles:
|
|
521
|
+
styles: c({ default: "" })
|
|
509
522
|
},
|
|
510
523
|
// @ts-ignore
|
|
511
524
|
blocks: () => {
|
|
@@ -532,19 +545,19 @@ d(Pe, {
|
|
|
532
545
|
},
|
|
533
546
|
canAcceptBlock: (e) => e === "Accordion"
|
|
534
547
|
});
|
|
535
|
-
const
|
|
536
|
-
const s =
|
|
548
|
+
const Me = ({ children: e, blockProps: t, styles: l, blockState: o }) => {
|
|
549
|
+
const s = B(
|
|
537
550
|
l,
|
|
538
551
|
"hs-accordion " + (o && o != null && o.active ? "active" : "")
|
|
539
552
|
);
|
|
540
553
|
return /* @__PURE__ */ n.jsx("div", { ...t, ...s, children: e });
|
|
541
554
|
};
|
|
542
|
-
d(
|
|
555
|
+
d(Me, {
|
|
543
556
|
type: "Accordion",
|
|
544
557
|
label: "Accordion",
|
|
545
558
|
category: "core",
|
|
546
559
|
group: "advanced",
|
|
547
|
-
props: { styles:
|
|
560
|
+
props: { styles: c({ default: "" }) },
|
|
548
561
|
//@ts-ignore
|
|
549
562
|
customStylingStates: {
|
|
550
563
|
"hs-accordion-active": "Accordion Active"
|
|
@@ -570,7 +583,7 @@ d(Ae, {
|
|
|
570
583
|
}
|
|
571
584
|
});
|
|
572
585
|
const Ne = ({ children: e, blockProps: t, styles: l }) => {
|
|
573
|
-
const o =
|
|
586
|
+
const o = B(l, "hs-accordion-toggle");
|
|
574
587
|
return /* @__PURE__ */ n.jsx("button", { ...o, ...t, children: e });
|
|
575
588
|
};
|
|
576
589
|
d(Ne, {
|
|
@@ -580,7 +593,7 @@ d(Ne, {
|
|
|
580
593
|
group: "advanced",
|
|
581
594
|
hidden: !0,
|
|
582
595
|
props: {
|
|
583
|
-
styles:
|
|
596
|
+
styles: c({
|
|
584
597
|
default: "hs-accordion-active:text-blue-600 dark:hs-accordion-active:text-blue-500 inline-flex w-full items-center gap-x-3 rounded-lg px-6 py-3 text-start text-sm font-semibold text-gray-800 hover:text-gray-500 disabled:pointer-events-none disabled:opacity-50 dark:text-neutral-200 dark:hover:text-neutral-400"
|
|
585
598
|
})
|
|
586
599
|
},
|
|
@@ -589,22 +602,22 @@ d(Ne, {
|
|
|
589
602
|
canMove: () => !1,
|
|
590
603
|
canDuplicate: () => !1
|
|
591
604
|
});
|
|
592
|
-
const
|
|
593
|
-
const a =
|
|
605
|
+
const He = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
|
|
606
|
+
const a = B(
|
|
594
607
|
l,
|
|
595
608
|
"hs-accordion-content",
|
|
596
609
|
s && o ? o != null && o.active ? "!block !opacity-100" : "!hidden !opacity-0" : ""
|
|
597
610
|
);
|
|
598
611
|
return /* @__PURE__ */ n.jsx("div", { ...a, ...t, children: e });
|
|
599
612
|
};
|
|
600
|
-
d(
|
|
613
|
+
d(He, {
|
|
601
614
|
type: "AccordionContent",
|
|
602
615
|
label: "Accordion Content",
|
|
603
616
|
category: "core",
|
|
604
617
|
group: "advanced",
|
|
605
618
|
hidden: !0,
|
|
606
619
|
props: {
|
|
607
|
-
styles:
|
|
620
|
+
styles: c({ default: "w-full overflow-hidden transition-height hidden duration-300" })
|
|
608
621
|
},
|
|
609
622
|
//@ts-ignore
|
|
610
623
|
getBlockStateFrom: (e) => [e._parent],
|
|
@@ -613,17 +626,17 @@ d(Me, {
|
|
|
613
626
|
canMove: () => !1,
|
|
614
627
|
canDuplicate: () => !1
|
|
615
628
|
});
|
|
616
|
-
const
|
|
617
|
-
const a = s && (o != null && o.active) ? " open" : "", r =
|
|
629
|
+
const Re = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
|
|
630
|
+
const a = s && (o != null && o.active) ? " open" : "", r = B(l, "hs-collapse-toggle", a);
|
|
618
631
|
return /* @__PURE__ */ n.jsx("button", { type: "button", ...r, ...t, children: e });
|
|
619
632
|
};
|
|
620
|
-
d(
|
|
633
|
+
d(Re, {
|
|
621
634
|
type: "CollapseToggle",
|
|
622
635
|
label: "Collapse Toggle",
|
|
623
636
|
category: "core",
|
|
624
637
|
group: "advanced",
|
|
625
638
|
hidden: !0,
|
|
626
|
-
props: { styles:
|
|
639
|
+
props: { styles: c({ default: "" }) },
|
|
627
640
|
canAcceptBlock: () => !0,
|
|
628
641
|
//@ts-ignore
|
|
629
642
|
customStylingStates: {
|
|
@@ -638,17 +651,17 @@ d(He, {
|
|
|
638
651
|
return o ? [o == null ? void 0 : o._id] : [];
|
|
639
652
|
}
|
|
640
653
|
});
|
|
641
|
-
const
|
|
642
|
-
const a = s ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "
|
|
643
|
-
return /* @__PURE__ */ n.jsx("div", { ...
|
|
654
|
+
const Fe = ({ children: e, blockProps: t, styles: l, blockState: o, inBuilder: s }) => {
|
|
655
|
+
const a = s ? { "!block !opacity-100 open": o == null ? void 0 : o.active, "": !(o != null && o.active) } : {}, r = Object.keys(a).filter((p) => a[p]).join(" "), i = B(l, "hs-collapse", r);
|
|
656
|
+
return /* @__PURE__ */ n.jsx("div", { ...i, ...t, children: e });
|
|
644
657
|
};
|
|
645
|
-
d(
|
|
658
|
+
d(Fe, {
|
|
646
659
|
type: "Collapse",
|
|
647
660
|
label: "Collapse",
|
|
648
661
|
category: "core",
|
|
649
662
|
group: "advanced",
|
|
650
663
|
props: {
|
|
651
|
-
styles:
|
|
664
|
+
styles: c({
|
|
652
665
|
default: "transition-opacity transition-margin duration hs-collapse-open:opacity-100 opacity-0 w-56 hidden z-10 mt-2 min-w-60 bg-white"
|
|
653
666
|
})
|
|
654
667
|
},
|
|
@@ -666,19 +679,19 @@ d(Re, {
|
|
|
666
679
|
This is a collapse body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions.
|
|
667
680
|
</div>`.replace(/hs-unstyled-collapse/g, `dnd-collapse-${g()}`))
|
|
668
681
|
});
|
|
669
|
-
const
|
|
682
|
+
const De = (e) => {
|
|
670
683
|
const { blockProps: t, backgroundImage: l, children: o, styles: s } = e;
|
|
671
684
|
let a = {};
|
|
672
|
-
return l && (a = { backgroundImage: `url(${l})` }),
|
|
685
|
+
return l && (a = { backgroundImage: `url(${l})` }), u.createElement("div", { ...t, ...s, style: a }, o);
|
|
673
686
|
};
|
|
674
|
-
d(
|
|
687
|
+
d(De, {
|
|
675
688
|
type: "Body",
|
|
676
689
|
label: "Body",
|
|
677
690
|
category: "core",
|
|
678
691
|
group: "basic",
|
|
679
692
|
hidden: !0,
|
|
680
693
|
props: {
|
|
681
|
-
styles:
|
|
694
|
+
styles: c({ default: "font-body antialiased" }),
|
|
682
695
|
backgroundImage: C({ title: "Background Image" })
|
|
683
696
|
},
|
|
684
697
|
canAcceptBlock: () => !0,
|
|
@@ -686,11 +699,11 @@ d(Fe, {
|
|
|
686
699
|
canMove: () => !1,
|
|
687
700
|
canDuplicate: () => !1
|
|
688
701
|
});
|
|
689
|
-
const
|
|
702
|
+
const $e = (e) => {
|
|
690
703
|
const { blockProps: t, styles: l } = e;
|
|
691
|
-
return
|
|
704
|
+
return u.createElement("br", { ...t, ...l });
|
|
692
705
|
};
|
|
693
|
-
d(
|
|
706
|
+
d($e, {
|
|
694
707
|
type: "LineBreak",
|
|
695
708
|
label: "Line Break",
|
|
696
709
|
category: "core",
|
|
@@ -698,7 +711,7 @@ d(De, {
|
|
|
698
711
|
hidden: !0,
|
|
699
712
|
icon: F,
|
|
700
713
|
props: {
|
|
701
|
-
styles:
|
|
714
|
+
styles: c({ default: "" })
|
|
702
715
|
}
|
|
703
716
|
});
|
|
704
717
|
const j = (e) => {
|
|
@@ -709,26 +722,26 @@ const j = (e) => {
|
|
|
709
722
|
styles: "#styles:,",
|
|
710
723
|
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + r}`
|
|
711
724
|
}), l = (a) => {
|
|
712
|
-
const r = g(),
|
|
725
|
+
const r = g(), i = {
|
|
713
726
|
_type: "TableRow",
|
|
714
727
|
_id: r,
|
|
715
728
|
styles: "#styles:,border-b"
|
|
716
729
|
};
|
|
717
|
-
return a && (
|
|
730
|
+
return a && (i._parent = a), [i, t(r, "1"), t(r, "2"), t(r, "3")];
|
|
718
731
|
}, o = (a) => {
|
|
719
|
-
const r = g(),
|
|
732
|
+
const r = g(), i = {
|
|
720
733
|
_id: r,
|
|
721
734
|
_type: "TableHead",
|
|
722
735
|
styles: "#styles:,font-medium"
|
|
723
736
|
};
|
|
724
|
-
return a && (
|
|
737
|
+
return a && (i._parent = a), [i, ...l(r)];
|
|
725
738
|
}, s = (a) => {
|
|
726
|
-
const r = g(),
|
|
739
|
+
const r = g(), i = {
|
|
727
740
|
_id: r,
|
|
728
741
|
_type: "TableBody",
|
|
729
742
|
styles: "#styles:,"
|
|
730
743
|
};
|
|
731
|
-
return a && (
|
|
744
|
+
return a && (i._parent = a), [i, ...l(r), ...l(r)];
|
|
732
745
|
};
|
|
733
746
|
if (e === "Table") {
|
|
734
747
|
const a = g();
|
|
@@ -743,11 +756,11 @@ const j = (e) => {
|
|
|
743
756
|
];
|
|
744
757
|
}
|
|
745
758
|
return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? s() : [];
|
|
746
|
-
},
|
|
759
|
+
}, ze = (e) => {
|
|
747
760
|
const { blockProps: t, children: l, styles: o } = e;
|
|
748
|
-
return l ?
|
|
761
|
+
return l ? u.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE HEAD / BODY" });
|
|
749
762
|
};
|
|
750
|
-
d(
|
|
763
|
+
d(ze, {
|
|
751
764
|
type: "Table",
|
|
752
765
|
label: "Table",
|
|
753
766
|
category: "core",
|
|
@@ -755,15 +768,15 @@ d($e, {
|
|
|
755
768
|
hidden: !0,
|
|
756
769
|
icon: ae,
|
|
757
770
|
props: {
|
|
758
|
-
styles:
|
|
771
|
+
styles: c({ default: "" })
|
|
759
772
|
},
|
|
760
773
|
blocks: j("Table")
|
|
761
774
|
});
|
|
762
|
-
const
|
|
775
|
+
const qe = (e) => {
|
|
763
776
|
const { blockProps: t, children: l, styles: o } = e;
|
|
764
|
-
return l ?
|
|
777
|
+
return l ? u.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
|
|
765
778
|
};
|
|
766
|
-
d(
|
|
779
|
+
d(qe, {
|
|
767
780
|
type: "TableHead",
|
|
768
781
|
label: "Table Head",
|
|
769
782
|
category: "core",
|
|
@@ -771,15 +784,15 @@ d(ze, {
|
|
|
771
784
|
hidden: !0,
|
|
772
785
|
icon: ne,
|
|
773
786
|
props: {
|
|
774
|
-
styles:
|
|
787
|
+
styles: c({ default: "" })
|
|
775
788
|
},
|
|
776
789
|
blocks: j("TableHead")
|
|
777
790
|
});
|
|
778
|
-
const
|
|
791
|
+
const Oe = (e) => {
|
|
779
792
|
const { blockProps: t, children: l, styles: o } = e;
|
|
780
|
-
return l ?
|
|
793
|
+
return l ? u.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE ROW" });
|
|
781
794
|
};
|
|
782
|
-
d(
|
|
795
|
+
d(Oe, {
|
|
783
796
|
type: "TableBody",
|
|
784
797
|
label: "Table Body",
|
|
785
798
|
category: "core",
|
|
@@ -787,15 +800,15 @@ d(qe, {
|
|
|
787
800
|
hidden: !0,
|
|
788
801
|
icon: re,
|
|
789
802
|
props: {
|
|
790
|
-
styles:
|
|
803
|
+
styles: c({ default: "" })
|
|
791
804
|
},
|
|
792
805
|
blocks: j("TableBody")
|
|
793
806
|
});
|
|
794
|
-
const
|
|
807
|
+
const Ve = (e) => {
|
|
795
808
|
const { blockProps: t, children: l, styles: o } = e;
|
|
796
|
-
return l ?
|
|
809
|
+
return l ? u.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ n.jsx(v, { blockProps: t, text: "TABLE CELL" });
|
|
797
810
|
};
|
|
798
|
-
d(
|
|
811
|
+
d(Ve, {
|
|
799
812
|
type: "TableRow",
|
|
800
813
|
label: "Table Row",
|
|
801
814
|
category: "core",
|
|
@@ -803,19 +816,19 @@ d(Oe, {
|
|
|
803
816
|
hidden: !0,
|
|
804
817
|
icon: ce,
|
|
805
818
|
props: {
|
|
806
|
-
styles:
|
|
819
|
+
styles: c({ default: "w-full" })
|
|
807
820
|
},
|
|
808
821
|
blocks: j("TableRow")
|
|
809
822
|
});
|
|
810
|
-
const
|
|
823
|
+
const Ue = (e) => {
|
|
811
824
|
const { blockProps: t, children: l, content: o, styles: s } = e;
|
|
812
|
-
return !l && k(o) ? /* @__PURE__ */ n.jsx(v, { blockProps: t }) : l ?
|
|
825
|
+
return !l && k(o) ? /* @__PURE__ */ n.jsx(v, { blockProps: t }) : l ? u.createElement("td", { ...t, ...s }, l) : u.createElement("td", {
|
|
813
826
|
...t,
|
|
814
827
|
...s,
|
|
815
828
|
dangerouslySetInnerHTML: { __html: o }
|
|
816
829
|
});
|
|
817
830
|
};
|
|
818
|
-
d(
|
|
831
|
+
d(Ue, {
|
|
819
832
|
type: "TableCell",
|
|
820
833
|
label: "Table Cell",
|
|
821
834
|
category: "core",
|
|
@@ -823,14 +836,14 @@ d(Ve, {
|
|
|
823
836
|
hidden: !0,
|
|
824
837
|
icon: ie,
|
|
825
838
|
props: {
|
|
826
|
-
styles:
|
|
839
|
+
styles: c({ default: "" }),
|
|
827
840
|
content: L({ title: "Content", default: "Table cell item" })
|
|
828
841
|
}
|
|
829
842
|
});
|
|
830
|
-
const
|
|
831
|
-
const { blockProps: t, errorMessage: l, name: o, _type: s, successMessage: a, action: r, styles:
|
|
832
|
-
let h =
|
|
833
|
-
|
|
843
|
+
const Ge = (e) => {
|
|
844
|
+
const { blockProps: t, errorMessage: l, name: o, _type: s, successMessage: a, action: r, styles: i, children: p } = e;
|
|
845
|
+
let h = p;
|
|
846
|
+
p || (h = /* @__PURE__ */ n.jsx(v, { blockProps: {}, text: "FORM FIELDS" }));
|
|
834
847
|
const f = {
|
|
835
848
|
"x-data": "useForm",
|
|
836
849
|
"x-on:submit.prevent": "post"
|
|
@@ -847,7 +860,7 @@ const Ue = (e) => {
|
|
|
847
860
|
method: "post",
|
|
848
861
|
action: r,
|
|
849
862
|
...t,
|
|
850
|
-
...
|
|
863
|
+
...i,
|
|
851
864
|
children: [
|
|
852
865
|
/* @__PURE__ */ n.jsx("div", { ...m }),
|
|
853
866
|
/* @__PURE__ */ n.jsx("input", { name: "formname", type: "hidden", value: o || s }),
|
|
@@ -856,7 +869,7 @@ const Ue = (e) => {
|
|
|
856
869
|
}
|
|
857
870
|
);
|
|
858
871
|
};
|
|
859
|
-
d(
|
|
872
|
+
d(Ge, {
|
|
860
873
|
type: "Form",
|
|
861
874
|
label: "Form",
|
|
862
875
|
category: "core",
|
|
@@ -864,7 +877,7 @@ d(Ue, {
|
|
|
864
877
|
group: "form",
|
|
865
878
|
hidden: !0,
|
|
866
879
|
props: {
|
|
867
|
-
styles:
|
|
880
|
+
styles: c({ default: "" }),
|
|
868
881
|
action: y({
|
|
869
882
|
title: "Submit URL",
|
|
870
883
|
default: "/api/form/submit"
|
|
@@ -880,14 +893,14 @@ d(Ue, {
|
|
|
880
893
|
},
|
|
881
894
|
canAcceptBlock: () => !0
|
|
882
895
|
});
|
|
883
|
-
const
|
|
896
|
+
const We = (e) => {
|
|
884
897
|
const { blockProps: t, content: l, styles: o, children: s } = e, a = { ...o, ...t };
|
|
885
|
-
return s ?
|
|
898
|
+
return s ? u.createElement("label", a, s) : u.createElement("label", {
|
|
886
899
|
...a,
|
|
887
900
|
dangerouslySetInnerHTML: { __html: l }
|
|
888
901
|
});
|
|
889
902
|
};
|
|
890
|
-
d(
|
|
903
|
+
d(We, {
|
|
891
904
|
type: "Label",
|
|
892
905
|
label: "Label",
|
|
893
906
|
category: "core",
|
|
@@ -895,12 +908,12 @@ d(Ge, {
|
|
|
895
908
|
group: "form",
|
|
896
909
|
hidden: !0,
|
|
897
910
|
props: {
|
|
898
|
-
styles:
|
|
911
|
+
styles: c({ default: "" }),
|
|
899
912
|
content: y({ title: "Content", default: "Label" })
|
|
900
913
|
}
|
|
901
914
|
});
|
|
902
|
-
const
|
|
903
|
-
const { blockProps: t, inBuilder: l, label: o, placeholder: s, styles: a, inputStyles: r, icon:
|
|
915
|
+
const Ye = (e) => {
|
|
916
|
+
const { blockProps: t, inBuilder: l, label: o, placeholder: s, styles: a, inputStyles: r, icon: i, iconPos: p } = e, h = g(), f = {
|
|
904
917
|
"x-bind:disabled": "formLoading"
|
|
905
918
|
};
|
|
906
919
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -915,12 +928,12 @@ const We = (e) => {
|
|
|
915
928
|
placeholder: s,
|
|
916
929
|
children: [
|
|
917
930
|
o,
|
|
918
|
-
|
|
931
|
+
i && /* @__PURE__ */ n.jsx("span", { className: p, dangerouslySetInnerHTML: { __html: i } })
|
|
919
932
|
]
|
|
920
933
|
}
|
|
921
934
|
);
|
|
922
935
|
};
|
|
923
|
-
d(
|
|
936
|
+
d(Ye, {
|
|
924
937
|
type: "FormButton",
|
|
925
938
|
label: "Submit Button",
|
|
926
939
|
category: "core",
|
|
@@ -929,11 +942,11 @@ d(We, {
|
|
|
929
942
|
hidden: !0,
|
|
930
943
|
props: {
|
|
931
944
|
label: y({ title: "Label", default: "Submit" }),
|
|
932
|
-
styles:
|
|
945
|
+
styles: c({
|
|
933
946
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
934
947
|
}),
|
|
935
948
|
icon: P({ title: "Icon", default: "" }),
|
|
936
|
-
iconPos:
|
|
949
|
+
iconPos: w({
|
|
937
950
|
title: "Icon Position",
|
|
938
951
|
default: "order-last",
|
|
939
952
|
options: [
|
|
@@ -943,9 +956,9 @@ d(We, {
|
|
|
943
956
|
})
|
|
944
957
|
}
|
|
945
958
|
});
|
|
946
|
-
const
|
|
947
|
-
const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, required: r, checked:
|
|
948
|
-
return
|
|
959
|
+
const Xe = (e) => {
|
|
960
|
+
const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, required: r, checked: i, showLabel: p = !0 } = e, h = g();
|
|
961
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
|
|
949
962
|
/* @__PURE__ */ n.jsx(
|
|
950
963
|
"input",
|
|
951
964
|
{
|
|
@@ -954,7 +967,7 @@ const Ye = (e) => {
|
|
|
954
967
|
id: h,
|
|
955
968
|
type: "checkbox",
|
|
956
969
|
required: r,
|
|
957
|
-
defaultChecked:
|
|
970
|
+
defaultChecked: i
|
|
958
971
|
}
|
|
959
972
|
),
|
|
960
973
|
o && o !== "Label" && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
|
|
@@ -971,7 +984,7 @@ const Ye = (e) => {
|
|
|
971
984
|
}
|
|
972
985
|
);
|
|
973
986
|
};
|
|
974
|
-
d(
|
|
987
|
+
d(Xe, {
|
|
975
988
|
type: "Checkbox",
|
|
976
989
|
label: "Checkbox",
|
|
977
990
|
category: "core",
|
|
@@ -980,13 +993,13 @@ d(Ye, {
|
|
|
980
993
|
hidden: !0,
|
|
981
994
|
props: {
|
|
982
995
|
fieldName: y({ title: "Field Name", default: "checkbox" }),
|
|
983
|
-
styles:
|
|
996
|
+
styles: c({ default: "flex items-center gap-x-2" }),
|
|
984
997
|
label: y({ title: "Label", default: "Label" }),
|
|
985
998
|
checked: b({ title: "Checked", default: !1 }),
|
|
986
999
|
required: b({ title: "Required", default: !1 })
|
|
987
1000
|
}
|
|
988
1001
|
});
|
|
989
|
-
const
|
|
1002
|
+
const Ze = (e) => {
|
|
990
1003
|
const {
|
|
991
1004
|
blockProps: t,
|
|
992
1005
|
label: l,
|
|
@@ -994,12 +1007,12 @@ const Xe = (e) => {
|
|
|
994
1007
|
styles: s,
|
|
995
1008
|
inputStyles: a,
|
|
996
1009
|
showLabel: r,
|
|
997
|
-
required:
|
|
998
|
-
inputType:
|
|
1010
|
+
required: i,
|
|
1011
|
+
inputType: p = "text",
|
|
999
1012
|
inBuilder: h,
|
|
1000
1013
|
fieldName: f
|
|
1001
1014
|
} = e, m = g();
|
|
1002
|
-
return !r ||
|
|
1015
|
+
return !r || p === "submit" ? (p === "submit" && (t.value = l), /* @__PURE__ */ n.jsx(
|
|
1003
1016
|
"input",
|
|
1004
1017
|
{
|
|
1005
1018
|
id: m,
|
|
@@ -1008,9 +1021,9 @@ const Xe = (e) => {
|
|
|
1008
1021
|
...t,
|
|
1009
1022
|
...a,
|
|
1010
1023
|
...s,
|
|
1011
|
-
type:
|
|
1024
|
+
type: p,
|
|
1012
1025
|
placeholder: o,
|
|
1013
|
-
required:
|
|
1026
|
+
required: i
|
|
1014
1027
|
}
|
|
1015
1028
|
)) : /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
|
|
1016
1029
|
r && /* @__PURE__ */ n.jsx("label", { htmlFor: m, children: l }),
|
|
@@ -1021,14 +1034,14 @@ const Xe = (e) => {
|
|
|
1021
1034
|
readOnly: h,
|
|
1022
1035
|
...a,
|
|
1023
1036
|
id: m,
|
|
1024
|
-
type:
|
|
1037
|
+
type: p,
|
|
1025
1038
|
placeholder: o,
|
|
1026
|
-
required:
|
|
1039
|
+
required: i
|
|
1027
1040
|
}
|
|
1028
1041
|
)
|
|
1029
1042
|
] });
|
|
1030
1043
|
};
|
|
1031
|
-
d(
|
|
1044
|
+
d(Ze, {
|
|
1032
1045
|
type: "Input",
|
|
1033
1046
|
label: "Input",
|
|
1034
1047
|
category: "core",
|
|
@@ -1036,9 +1049,9 @@ d(Xe, {
|
|
|
1036
1049
|
group: "form",
|
|
1037
1050
|
hidden: !0,
|
|
1038
1051
|
props: {
|
|
1039
|
-
styles:
|
|
1052
|
+
styles: c({ default: "" }),
|
|
1040
1053
|
fieldName: y({ title: "Field Name", default: "input" }),
|
|
1041
|
-
inputType:
|
|
1054
|
+
inputType: w({
|
|
1042
1055
|
title: "Type",
|
|
1043
1056
|
options: E(
|
|
1044
1057
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
@@ -1051,7 +1064,7 @@ d(Xe, {
|
|
|
1051
1064
|
}),
|
|
1052
1065
|
value: y({ title: "Value", default: "" }),
|
|
1053
1066
|
showLabel: b({ title: "Show label", default: !0 }),
|
|
1054
|
-
inputStyles:
|
|
1067
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
1055
1068
|
label: y({ title: "Label", default: "Label" }),
|
|
1056
1069
|
placeholder: y({
|
|
1057
1070
|
title: "Placeholder",
|
|
@@ -1060,10 +1073,10 @@ d(Xe, {
|
|
|
1060
1073
|
required: b({ title: "Required", default: !1 })
|
|
1061
1074
|
}
|
|
1062
1075
|
});
|
|
1063
|
-
const
|
|
1064
|
-
const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, checked: r, required:
|
|
1065
|
-
return
|
|
1066
|
-
/* @__PURE__ */ n.jsx("input", { ...a, name: l, id: h, type: "radio", required:
|
|
1076
|
+
const Je = (e) => {
|
|
1077
|
+
const { blockProps: t, fieldName: l, label: o, styles: s, inputStyles: a, checked: r, required: i, showLabel: p = !0 } = e, h = g();
|
|
1078
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...s, ...t, children: [
|
|
1079
|
+
/* @__PURE__ */ n.jsx("input", { ...a, name: l, id: h, type: "radio", required: i, defaultChecked: r }),
|
|
1067
1080
|
o && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o })
|
|
1068
1081
|
] }) : /* @__PURE__ */ n.jsx(
|
|
1069
1082
|
"input",
|
|
@@ -1073,13 +1086,13 @@ const Ze = (e) => {
|
|
|
1073
1086
|
...a,
|
|
1074
1087
|
...s,
|
|
1075
1088
|
type: "radio",
|
|
1076
|
-
required:
|
|
1089
|
+
required: i,
|
|
1077
1090
|
checked: r,
|
|
1078
1091
|
name: l
|
|
1079
1092
|
}
|
|
1080
1093
|
);
|
|
1081
1094
|
};
|
|
1082
|
-
d(
|
|
1095
|
+
d(Je, {
|
|
1083
1096
|
type: "Radio",
|
|
1084
1097
|
label: "Radio",
|
|
1085
1098
|
category: "core",
|
|
@@ -1087,14 +1100,14 @@ d(Ze, {
|
|
|
1087
1100
|
group: "form",
|
|
1088
1101
|
hidden: !0,
|
|
1089
1102
|
props: {
|
|
1090
|
-
styles:
|
|
1103
|
+
styles: c({ default: "flex items-center w-max gap-x-2" }),
|
|
1091
1104
|
fieldName: y({ title: "Field Name", default: "radio" }),
|
|
1092
1105
|
label: y({ title: "Label", default: "Label" }),
|
|
1093
1106
|
checked: b({ title: "Checked", default: !1 }),
|
|
1094
1107
|
required: b({ title: "Required", default: !1 })
|
|
1095
1108
|
}
|
|
1096
1109
|
});
|
|
1097
|
-
const
|
|
1110
|
+
const Ke = (e) => {
|
|
1098
1111
|
const {
|
|
1099
1112
|
blockProps: t,
|
|
1100
1113
|
fieldName: l,
|
|
@@ -1102,19 +1115,19 @@ const Je = (e) => {
|
|
|
1102
1115
|
placeholder: s,
|
|
1103
1116
|
styles: a,
|
|
1104
1117
|
inputStyles: r,
|
|
1105
|
-
required:
|
|
1106
|
-
showLabel:
|
|
1118
|
+
required: i,
|
|
1119
|
+
showLabel: p,
|
|
1107
1120
|
_multiple: h = !1
|
|
1108
1121
|
} = e, f = g();
|
|
1109
|
-
return
|
|
1110
|
-
|
|
1122
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, children: [
|
|
1123
|
+
p && /* @__PURE__ */ n.jsx("label", { htmlFor: f, children: o }),
|
|
1111
1124
|
/* @__PURE__ */ n.jsxs(
|
|
1112
1125
|
"select",
|
|
1113
1126
|
{
|
|
1114
1127
|
...r,
|
|
1115
1128
|
id: f,
|
|
1116
1129
|
placeholder: s,
|
|
1117
|
-
required:
|
|
1130
|
+
required: i,
|
|
1118
1131
|
multiple: h,
|
|
1119
1132
|
name: l,
|
|
1120
1133
|
children: [
|
|
@@ -1138,7 +1151,7 @@ const Je = (e) => {
|
|
|
1138
1151
|
...a,
|
|
1139
1152
|
...t,
|
|
1140
1153
|
placeholder: s,
|
|
1141
|
-
required:
|
|
1154
|
+
required: i,
|
|
1142
1155
|
multiple: h,
|
|
1143
1156
|
name: l,
|
|
1144
1157
|
children: [
|
|
@@ -1156,7 +1169,7 @@ const Je = (e) => {
|
|
|
1156
1169
|
}
|
|
1157
1170
|
);
|
|
1158
1171
|
};
|
|
1159
|
-
d(
|
|
1172
|
+
d(Ke, {
|
|
1160
1173
|
type: "Select",
|
|
1161
1174
|
label: "Select",
|
|
1162
1175
|
category: "core",
|
|
@@ -1164,10 +1177,10 @@ d(Je, {
|
|
|
1164
1177
|
group: "form",
|
|
1165
1178
|
hidden: !0,
|
|
1166
1179
|
props: {
|
|
1167
|
-
styles:
|
|
1180
|
+
styles: c({ default: "" }),
|
|
1168
1181
|
fieldName: y({ title: "Field Name", default: "select" }),
|
|
1169
1182
|
showLabel: b({ title: "Show label", default: !0 }),
|
|
1170
|
-
inputStyles:
|
|
1183
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
1171
1184
|
label: y({ title: "Label", default: "Label" }),
|
|
1172
1185
|
placeholder: y({
|
|
1173
1186
|
title: "Placeholder",
|
|
@@ -1184,11 +1197,11 @@ d(Je, {
|
|
|
1184
1197
|
})
|
|
1185
1198
|
}
|
|
1186
1199
|
});
|
|
1187
|
-
const
|
|
1188
|
-
const { blockProps: t, fieldName: l, label: o, placeholder: s, styles: a, inputStyles: r, _rows:
|
|
1189
|
-
return
|
|
1190
|
-
|
|
1191
|
-
/* @__PURE__ */ n.jsx("textarea", { name: l, ...r, id: h, placeholder: s, rows:
|
|
1200
|
+
const Qe = (e) => {
|
|
1201
|
+
const { blockProps: t, fieldName: l, label: o, placeholder: s, styles: a, inputStyles: r, _rows: i, showLabel: p } = e, h = g();
|
|
1202
|
+
return p ? /* @__PURE__ */ n.jsxs("div", { ...a, ...t, children: [
|
|
1203
|
+
p && /* @__PURE__ */ n.jsx("label", { htmlFor: h, children: o }),
|
|
1204
|
+
/* @__PURE__ */ n.jsx("textarea", { name: l, ...r, id: h, placeholder: s, rows: i })
|
|
1192
1205
|
] }) : /* @__PURE__ */ n.jsx(
|
|
1193
1206
|
"textarea",
|
|
1194
1207
|
{
|
|
@@ -1198,11 +1211,11 @@ const Ke = (e) => {
|
|
|
1198
1211
|
...r,
|
|
1199
1212
|
...a,
|
|
1200
1213
|
placeholder: s,
|
|
1201
|
-
rows:
|
|
1214
|
+
rows: i
|
|
1202
1215
|
}
|
|
1203
1216
|
);
|
|
1204
1217
|
};
|
|
1205
|
-
d(
|
|
1218
|
+
d(Qe, {
|
|
1206
1219
|
type: "TextArea",
|
|
1207
1220
|
label: "TextArea",
|
|
1208
1221
|
category: "core",
|
|
@@ -1212,8 +1225,8 @@ d(Ke, {
|
|
|
1212
1225
|
props: {
|
|
1213
1226
|
fieldName: y({ title: "Field Name", default: "textarea" }),
|
|
1214
1227
|
showLabel: b({ title: "Show label", default: !0 }),
|
|
1215
|
-
styles:
|
|
1216
|
-
inputStyles:
|
|
1228
|
+
styles: c({ default: "" }),
|
|
1229
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
1217
1230
|
label: y({ title: "Label", default: "Label" }),
|
|
1218
1231
|
placeholder: y({
|
|
1219
1232
|
title: "Placeholder",
|
|
@@ -1222,7 +1235,7 @@ d(Ke, {
|
|
|
1222
1235
|
_rows: _({ title: "Rows", default: 3 })
|
|
1223
1236
|
}
|
|
1224
1237
|
});
|
|
1225
|
-
const
|
|
1238
|
+
const ht = V;
|
|
1226
1239
|
export {
|
|
1227
|
-
|
|
1240
|
+
ht as loadWebBlocks
|
|
1228
1241
|
};
|