@chaibuilder/sdk 2.0.0-beta.111 → 2.0.0-beta.114
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/Functions-BGzDsf1z.js +14 -0
- package/dist/Functions-BZmyleS1.cjs +1 -0
- package/dist/core.cjs +4 -4
- package/dist/core.js +696 -755
- package/dist/render.cjs +2 -2
- package/dist/render.js +103 -102
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +178 -161
- package/package.json +3 -5
- package/dist/iconBase-Cn2BsTrq.cjs +0 -1
- package/dist/iconBase-DHfFLkem.js +0 -124
package/dist/web-blocks.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { registerChaiBlockSchema as m, StylesProp as u, registerChaiBlock as d } from "@chaibuilder/runtime";
|
|
2
2
|
import { jsx as i, jsxs as b, Fragment as A } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as f from "react";
|
|
4
4
|
import { createElement as L } from "react";
|
|
5
|
-
import { c as
|
|
6
|
-
import { ButtonIcon as
|
|
7
|
-
import { isEmpty as w, get as
|
|
8
|
-
import { GlobeIcon as R, GroupIcon as le, Columns as oe, Rows as re } from "lucide-react";
|
|
9
|
-
const
|
|
5
|
+
import { c as v, g as I } from "./Functions-BGzDsf1z.js";
|
|
6
|
+
import { ButtonIcon as M, CodeIcon as H, HeadingIcon as z, TextIcon as q, CursorTextIcon as F, DividerHorizontalIcon as j, SketchLogoIcon as D, ImageIcon as E, Link1Icon as G, RowsIcon as U, ColumnsIcon as V, SpaceBetweenVerticallyIcon as O, VideoIcon as W, CheckboxIcon as X, InputIcon as T, LetterCaseToggleIcon as Y, RadiobuttonIcon as Z, DropdownMenuIcon as J } from "@radix-ui/react-icons";
|
|
7
|
+
import { isEmpty as w, get as k, isNull as K, pick as Q, omit as ee, map as _ } from "lodash-es";
|
|
8
|
+
import { FileCode as te, GlobeIcon as R, GroupIcon as le, Columns as oe, Rows as re } from "lucide-react";
|
|
9
|
+
const C = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div", { className: v("pointer-events-none flex h-20 flex-col items-center justify-center p-2", e), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-2 dark:bg-gray-800", children: /* @__PURE__ */ i("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300 dark:outline-gray-700" }) }) }) : null, ne = (e) => {
|
|
10
10
|
const { blockProps: t, inBuilder: l, backgroundImage: r, children: o, tag: n = "div", styles: s } = e;
|
|
11
11
|
let a = o;
|
|
12
|
-
o || (a = /* @__PURE__ */ i(
|
|
12
|
+
o || (a = /* @__PURE__ */ i(C, { inBuilder: l }));
|
|
13
13
|
let c = {};
|
|
14
|
-
return r && (c = { backgroundImage: `url(${r})` }),
|
|
14
|
+
return r && (c = { backgroundImage: `url(${r})` }), f.createElement(n, { ...t, ...s, style: c }, a);
|
|
15
15
|
}, ie = {
|
|
16
16
|
type: "Box",
|
|
17
17
|
label: "Box",
|
|
@@ -54,14 +54,14 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
54
54
|
}),
|
|
55
55
|
canAcceptBlock: () => !0
|
|
56
56
|
}, se = (e) => {
|
|
57
|
-
const { blockProps: t, iconSize: l, icon: r, content: o, styles: n, children: s, iconPos: a, link: c, inBuilder: y } = e,
|
|
57
|
+
const { blockProps: t, iconSize: l, icon: r, content: o, styles: n, children: s, iconPos: a, link: c, inBuilder: y } = e, g = r, h = s || /* @__PURE__ */ b(A, { children: [
|
|
58
58
|
/* @__PURE__ */ i("span", { "data-ai-key": "content", children: o }),
|
|
59
|
-
|
|
59
|
+
g && /* @__PURE__ */ i(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
style: { width: l + "px" },
|
|
63
63
|
className: a + " " + (a === "order-first" ? "mr-2" : "ml-2") || "",
|
|
64
|
-
dangerouslySetInnerHTML: { __html:
|
|
64
|
+
dangerouslySetInnerHTML: { __html: g }
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
67
|
] }), p = L(
|
|
@@ -72,14 +72,14 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
72
72
|
type: "button",
|
|
73
73
|
"aria-label": o
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
h
|
|
76
76
|
);
|
|
77
|
-
return w(
|
|
77
|
+
return w(k(c, "href")) ? p : y ? /* @__PURE__ */ i("span", { children: p }) : /* @__PURE__ */ i("a", { "aria-label": o, href: k(c, "href") || "/", target: k(c, "target", "_self"), children: p });
|
|
78
78
|
}, ae = {
|
|
79
79
|
type: "Button",
|
|
80
80
|
label: "Button",
|
|
81
81
|
category: "core",
|
|
82
|
-
icon:
|
|
82
|
+
icon: M,
|
|
83
83
|
group: "basic",
|
|
84
84
|
...m({
|
|
85
85
|
properties: {
|
|
@@ -130,11 +130,11 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
130
130
|
const { blockProps: t, styles: l, htmlCode: r, inBuilder: o } = e;
|
|
131
131
|
return o ? /* @__PURE__ */ b("div", { className: "relative", children: [
|
|
132
132
|
o ? /* @__PURE__ */ i("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
|
|
133
|
-
|
|
133
|
+
f.createElement("div", {
|
|
134
134
|
...l,
|
|
135
135
|
dangerouslySetInnerHTML: { __html: r.replace(/<script.*?>.*?<\/script>/g, "") }
|
|
136
136
|
})
|
|
137
|
-
] }) :
|
|
137
|
+
] }) : f.createElement("div", {
|
|
138
138
|
...t,
|
|
139
139
|
...l,
|
|
140
140
|
dangerouslySetInnerHTML: { __html: r }
|
|
@@ -143,7 +143,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
143
143
|
type: "CustomHTML",
|
|
144
144
|
label: "web_blocks.custom_html",
|
|
145
145
|
category: "core",
|
|
146
|
-
icon:
|
|
146
|
+
icon: H,
|
|
147
147
|
group: "advanced",
|
|
148
148
|
...m({
|
|
149
149
|
properties: {
|
|
@@ -158,7 +158,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
158
158
|
}, ue = (e) => {
|
|
159
159
|
const { blockProps: t, styles: l, backgroundImage: r } = e;
|
|
160
160
|
let o = {};
|
|
161
|
-
return r && (o = { backgroundImage: `url(${r})` }),
|
|
161
|
+
return r && (o = { backgroundImage: `url(${r})` }), f.createElement("div", { ...t, ...l, style: o });
|
|
162
162
|
}, de = {
|
|
163
163
|
type: "EmptyBox",
|
|
164
164
|
label: "Empty Box",
|
|
@@ -177,7 +177,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
177
177
|
})
|
|
178
178
|
}, me = (e) => {
|
|
179
179
|
const { blockProps: t, styles: l, content: r, tag: o = "h1", children: n = null } = e;
|
|
180
|
-
return n ?
|
|
180
|
+
return n ? f.createElement(o, { ...l, ...t }, n) : f.createElement(o, {
|
|
181
181
|
...l,
|
|
182
182
|
...t,
|
|
183
183
|
dangerouslySetInnerHTML: { __html: r }
|
|
@@ -186,7 +186,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
186
186
|
type: "Heading",
|
|
187
187
|
label: "web_blocks.heading",
|
|
188
188
|
category: "core",
|
|
189
|
-
icon:
|
|
189
|
+
icon: z,
|
|
190
190
|
group: "typography",
|
|
191
191
|
...m({
|
|
192
192
|
properties: {
|
|
@@ -210,16 +210,16 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
210
210
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
211
211
|
}, ge = (e) => {
|
|
212
212
|
const { blockProps: t, styles: l, content: r } = e;
|
|
213
|
-
return
|
|
213
|
+
return K(e.children) ? f.createElement("p", {
|
|
214
214
|
...l,
|
|
215
215
|
...t,
|
|
216
216
|
dangerouslySetInnerHTML: { __html: r }
|
|
217
|
-
}) :
|
|
217
|
+
}) : f.createElement("p", { ...l, ...t }, e.children);
|
|
218
218
|
}, fe = {
|
|
219
219
|
type: "Paragraph",
|
|
220
220
|
label: "Paragraph",
|
|
221
221
|
category: "core",
|
|
222
|
-
icon:
|
|
222
|
+
icon: q,
|
|
223
223
|
group: "typography",
|
|
224
224
|
...m({
|
|
225
225
|
properties: {
|
|
@@ -239,7 +239,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
239
239
|
canAcceptBlock: (e) => e === "Span" || e === "Link" || e === "Text"
|
|
240
240
|
}, P = (e, ...t) => ({
|
|
241
241
|
...e,
|
|
242
|
-
className:
|
|
242
|
+
className: v(e.className, ...t)
|
|
243
243
|
}), be = (e) => {
|
|
244
244
|
const { blockProps: t, content: l, styles: r } = e, o = P(
|
|
245
245
|
r,
|
|
@@ -251,7 +251,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
251
251
|
type: "RichText",
|
|
252
252
|
label: "Rich Text",
|
|
253
253
|
category: "core",
|
|
254
|
-
icon:
|
|
254
|
+
icon: F,
|
|
255
255
|
group: "typography",
|
|
256
256
|
...m({
|
|
257
257
|
properties: {
|
|
@@ -268,7 +268,7 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
268
268
|
i18nProps: ["content"]
|
|
269
269
|
}, ke = (e) => {
|
|
270
270
|
const { blockProps: t, styles: l, content: r, children: o = null, tag: n } = e;
|
|
271
|
-
return o ?
|
|
271
|
+
return o ? f.createElement("span", { ...l, ...t }, o) : f.createElement(n || "span", {
|
|
272
272
|
...l,
|
|
273
273
|
...t,
|
|
274
274
|
dangerouslySetInnerHTML: { __html: r || "" }
|
|
@@ -292,18 +292,14 @@ const v = ({ className: e = "", inBuilder: t }) => t ? /* @__PURE__ */ i("div",
|
|
|
292
292
|
aiProps: ["content"],
|
|
293
293
|
i18nProps: ["content"],
|
|
294
294
|
canAcceptBlock: () => !0
|
|
295
|
-
}
|
|
296
|
-
function xe(e) {
|
|
297
|
-
return H({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M4.698 3.419l2.057 23.073 9.231 2.563 9.256-2.566 2.059-23.069h-22.604zM13.226 9.394l-0.409 4.441 9.671 0.001-0.069 0.76-0.665 7.45-0.042 0.478-5.804 1.609-5.796-1.609-0.396-4.443h2.84l0.202 2.257 3.154 0.85 3.156-0.852 0.328-3.67-9.671-0.001 0.069-0.76 0.665-7.45 0.209-2.086h11.287l0.131 1.598 0.403 4.453h-2.841l-0.262-2.922-2.889-0.174h-0.515v-0.004l-2.755 0.074z" }, child: [] }] })(e);
|
|
298
|
-
}
|
|
299
|
-
const Le = (e) => {
|
|
295
|
+
}, xe = (e) => {
|
|
300
296
|
const { scripts: t, inBuilder: l, blockProps: r } = e;
|
|
301
|
-
return l ? /* @__PURE__ */ i("div", { ...r, children: /* @__PURE__ */ i("div", { className:
|
|
302
|
-
},
|
|
297
|
+
return l ? /* @__PURE__ */ i("div", { ...r, children: /* @__PURE__ */ i("div", { className: v("pointer-events-none flex flex-col items-center justify-center p-2", ""), children: /* @__PURE__ */ i("div", { className: "h-full w-full rounded bg-gray-200 p-1 dark:bg-gray-800", children: /* @__PURE__ */ i("p", { className: "text-left text-xs text-gray-400", children: "Scripts will be only executed in preview and live mode. Place your script at the bottom of the" }) }) }) }) : /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: { __html: t } });
|
|
298
|
+
}, Le = {
|
|
303
299
|
type: "CustomScript",
|
|
304
300
|
label: "web_blocks.custom_script",
|
|
305
301
|
category: "core",
|
|
306
|
-
icon:
|
|
302
|
+
icon: te,
|
|
307
303
|
group: "advanced",
|
|
308
304
|
...m({
|
|
309
305
|
properties: {
|
|
@@ -316,21 +312,21 @@ const Le = (e) => {
|
|
|
316
312
|
}
|
|
317
313
|
}
|
|
318
314
|
})
|
|
319
|
-
},
|
|
315
|
+
}, Ce = (e) => {
|
|
320
316
|
const { blockProps: t, styles: l } = e;
|
|
321
317
|
return L("hr", { ...l, ...t });
|
|
322
|
-
},
|
|
318
|
+
}, Ie = {
|
|
323
319
|
type: "Divider",
|
|
324
320
|
label: "web_blocks.divider",
|
|
325
321
|
category: "core",
|
|
326
|
-
icon:
|
|
322
|
+
icon: j,
|
|
327
323
|
group: "basic",
|
|
328
324
|
...m({
|
|
329
325
|
properties: {
|
|
330
326
|
styles: u("bg-gray-900 h-0.5 py-2 my-1")
|
|
331
327
|
}
|
|
332
328
|
})
|
|
333
|
-
},
|
|
329
|
+
}, ve = (e) => {
|
|
334
330
|
const { blockProps: t, inBuilder: l, children: r, globalBlock: o } = e;
|
|
335
331
|
return l && !o ? /* @__PURE__ */ b(
|
|
336
332
|
"div",
|
|
@@ -345,8 +341,8 @@ const Le = (e) => {
|
|
|
345
341
|
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
346
342
|
]
|
|
347
343
|
}
|
|
348
|
-
) :
|
|
349
|
-
},
|
|
344
|
+
) : f.createElement("span", { ...t }, r);
|
|
345
|
+
}, Be = {
|
|
350
346
|
type: "GlobalBlock",
|
|
351
347
|
label: "Global Block",
|
|
352
348
|
icon: R,
|
|
@@ -363,12 +359,12 @@ const Le = (e) => {
|
|
|
363
359
|
}
|
|
364
360
|
}
|
|
365
361
|
})
|
|
366
|
-
},
|
|
362
|
+
}, Pe = (e) => {
|
|
367
363
|
const { blockProps: t, icon: l, styles: r, width: o, inBuilder: n, height: s } = e, a = P(r, "");
|
|
368
364
|
if (w(l))
|
|
369
|
-
return /* @__PURE__ */ i(
|
|
365
|
+
return /* @__PURE__ */ i(C, { inBuilder: n, className: "h-8 w-14" });
|
|
370
366
|
const c = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
371
|
-
return
|
|
367
|
+
return f.createElement("span", {
|
|
372
368
|
...t,
|
|
373
369
|
...a,
|
|
374
370
|
style: {
|
|
@@ -377,11 +373,11 @@ const Le = (e) => {
|
|
|
377
373
|
},
|
|
378
374
|
dangerouslySetInnerHTML: { __html: c }
|
|
379
375
|
});
|
|
380
|
-
},
|
|
376
|
+
}, _e = {
|
|
381
377
|
type: "Icon",
|
|
382
378
|
label: "web_blocks.icon",
|
|
383
379
|
category: "core",
|
|
384
|
-
icon:
|
|
380
|
+
icon: D,
|
|
385
381
|
group: "media",
|
|
386
382
|
...m({
|
|
387
383
|
properties: {
|
|
@@ -404,9 +400,9 @@ const Le = (e) => {
|
|
|
404
400
|
}
|
|
405
401
|
}
|
|
406
402
|
})
|
|
407
|
-
},
|
|
403
|
+
}, Se = (e) => {
|
|
408
404
|
const { blockProps: t, image: l, mobileImage: r, styles: o, alt: n, height: s, width: a, lazyLoading: c } = e;
|
|
409
|
-
return w(l) ? /* @__PURE__ */ i(
|
|
405
|
+
return w(l) ? /* @__PURE__ */ i(C, { className: "h-36" }) : /* @__PURE__ */ b("picture", { children: [
|
|
410
406
|
r && /* @__PURE__ */ i("source", { srcSet: r, media: "(max-width: 480px)" }),
|
|
411
407
|
/* @__PURE__ */ i(
|
|
412
408
|
"img",
|
|
@@ -421,7 +417,7 @@ const Le = (e) => {
|
|
|
421
417
|
}
|
|
422
418
|
)
|
|
423
419
|
] });
|
|
424
|
-
},
|
|
420
|
+
}, Ne = {
|
|
425
421
|
type: "Image",
|
|
426
422
|
label: "Image",
|
|
427
423
|
category: "core",
|
|
@@ -470,9 +466,9 @@ const Le = (e) => {
|
|
|
470
466
|
aiProps: ["alt"],
|
|
471
467
|
i18nProps: ["alt"]
|
|
472
468
|
}, $e = (e) => {
|
|
473
|
-
const { blockProps: t, children: l, styles: r, inBuilder: o, content: n, href: s } = e, { hrefType: a, autoplay: c, maxWidth: y, backdropColor:
|
|
469
|
+
const { blockProps: t, children: l, styles: r, inBuilder: o, content: n, href: s } = e, { hrefType: a, autoplay: c, maxWidth: y, backdropColor: g, galleryName: h } = e, p = P(r, "cb-lightbox vbox-item");
|
|
474
470
|
if (!l && w(r == null ? void 0 : r.className) && w(n))
|
|
475
|
-
return /* @__PURE__ */ i(
|
|
471
|
+
return /* @__PURE__ */ i(C, { inBuilder: o });
|
|
476
472
|
if (o)
|
|
477
473
|
return l ? /* @__PURE__ */ i("span", { ...t, ...p, children: l }) : L("span", {
|
|
478
474
|
...t,
|
|
@@ -480,7 +476,7 @@ const Le = (e) => {
|
|
|
480
476
|
dangerouslySetInnerHTML: { __html: n }
|
|
481
477
|
});
|
|
482
478
|
const x = {};
|
|
483
|
-
return a !== "image" && (x["data-vbtype"] = a), c && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"),
|
|
479
|
+
return a !== "image" && (x["data-vbtype"] = a), c && (x["data-autoplay"] = "true"), y && (x["data-maxwidth"] = y + "px"), g && (x["data-overlay"] = g), h && (x["data-gall"] = h), l ? /* @__PURE__ */ i("a", { "aria-label": n, ...x, href: s || "#/", ...t, ...p, children: l }) : L("a", {
|
|
484
480
|
...t,
|
|
485
481
|
...p,
|
|
486
482
|
...x,
|
|
@@ -488,7 +484,7 @@ const Le = (e) => {
|
|
|
488
484
|
dangerouslySetInnerHTML: { __html: n },
|
|
489
485
|
"aria-label": n
|
|
490
486
|
});
|
|
491
|
-
},
|
|
487
|
+
}, Me = {
|
|
492
488
|
type: "LightBoxLink",
|
|
493
489
|
label: "Lightbox Link",
|
|
494
490
|
category: "core",
|
|
@@ -542,7 +538,7 @@ const Le = (e) => {
|
|
|
542
538
|
i18nProps: ["content"],
|
|
543
539
|
aiProps: ["content"],
|
|
544
540
|
canAcceptBlock: (e) => e !== "Link" && e !== "LightBoxLink"
|
|
545
|
-
},
|
|
541
|
+
}, Ee = (e) => {
|
|
546
542
|
const { blockProps: t, link: l, children: r, styles: o, inBuilder: n, content: s } = e;
|
|
547
543
|
let a = {};
|
|
548
544
|
return !r && w(s) && (a = { minHeight: "50px", display: "flex", alignItems: "center", justifyContent: "center" }), n ? r ? /* @__PURE__ */ i("span", { ...t, style: a, ...o, children: r }) : L(
|
|
@@ -564,11 +560,11 @@ const Le = (e) => {
|
|
|
564
560
|
},
|
|
565
561
|
s
|
|
566
562
|
);
|
|
567
|
-
},
|
|
563
|
+
}, Te = {
|
|
568
564
|
type: "Link",
|
|
569
565
|
label: "Link",
|
|
570
566
|
category: "core",
|
|
571
|
-
icon:
|
|
567
|
+
icon: G,
|
|
572
568
|
group: "basic",
|
|
573
569
|
...m({
|
|
574
570
|
properties: {
|
|
@@ -599,17 +595,17 @@ const Le = (e) => {
|
|
|
599
595
|
aiProps: ["content"],
|
|
600
596
|
i18nProps: ["content"],
|
|
601
597
|
canAcceptBlock: (e) => e !== "Link"
|
|
602
|
-
},
|
|
603
|
-
const { blockProps: t, children: l, listType: r, styles: o, tag: n, inBuilder: s } = e, a =
|
|
604
|
-
return !l && w(o == null ? void 0 : o.className) ? /* @__PURE__ */ i(
|
|
598
|
+
}, Re = (e) => {
|
|
599
|
+
const { blockProps: t, children: l, listType: r, styles: o, tag: n, inBuilder: s } = e, a = v(k(o, "className", ""), r);
|
|
600
|
+
return !l && w(o == null ? void 0 : o.className) ? /* @__PURE__ */ i(C, { inBuilder: s }) : f.createElement(
|
|
605
601
|
n || (r === "list-decimal" ? "ol" : "ul"),
|
|
606
602
|
{ ...t, ...o, className: a },
|
|
607
603
|
l
|
|
608
604
|
);
|
|
609
|
-
},
|
|
605
|
+
}, Ae = {
|
|
610
606
|
type: "List",
|
|
611
607
|
label: "web_blocks.list",
|
|
612
|
-
icon:
|
|
608
|
+
icon: U,
|
|
613
609
|
category: "core",
|
|
614
610
|
group: "basic",
|
|
615
611
|
...m({
|
|
@@ -652,17 +648,17 @@ const Le = (e) => {
|
|
|
652
648
|
content: "Item 3"
|
|
653
649
|
}
|
|
654
650
|
]
|
|
655
|
-
},
|
|
651
|
+
}, He = (e) => {
|
|
656
652
|
const { blockProps: t, content: l, styles: r, children: o, tag: n } = e;
|
|
657
|
-
return o ?
|
|
653
|
+
return o ? f.createElement(n || "li", { ...r, ...t }, o) : f.createElement(n || "li", {
|
|
658
654
|
...r,
|
|
659
655
|
...t,
|
|
660
656
|
dangerouslySetInnerHTML: { __html: l }
|
|
661
657
|
});
|
|
662
|
-
},
|
|
658
|
+
}, ze = {
|
|
663
659
|
type: "ListItem",
|
|
664
660
|
label: "List Item",
|
|
665
|
-
icon:
|
|
661
|
+
icon: V,
|
|
666
662
|
category: "core",
|
|
667
663
|
group: "basic",
|
|
668
664
|
...m({
|
|
@@ -682,13 +678,13 @@ const Le = (e) => {
|
|
|
682
678
|
aiProps: ["content"],
|
|
683
679
|
canAcceptBlock: (e) => e !== "ListItem",
|
|
684
680
|
canBeNested: (e) => e === "List"
|
|
685
|
-
},
|
|
681
|
+
}, qe = (e) => e.inBuilder || e.forceWrapper ? /* @__PURE__ */ i("span", { ...e.blockProps, children: e.content }) : `${e.content}`, Fe = {
|
|
686
682
|
type: "Text",
|
|
687
683
|
label: "Text",
|
|
688
684
|
hidden: !0,
|
|
689
685
|
category: "core",
|
|
690
686
|
group: "typography",
|
|
691
|
-
icon:
|
|
687
|
+
icon: O,
|
|
692
688
|
...m({
|
|
693
689
|
properties: {
|
|
694
690
|
styles: u("text-black"),
|
|
@@ -701,7 +697,7 @@ const Le = (e) => {
|
|
|
701
697
|
}),
|
|
702
698
|
aiProps: ["content"],
|
|
703
699
|
i18nProps: ["content"]
|
|
704
|
-
}, S = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/,
|
|
700
|
+
}, S = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, N = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, $ = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, je = (e) => {
|
|
705
701
|
if (S.test(e)) {
|
|
706
702
|
const t = e.match(S);
|
|
707
703
|
return t ? `https://www.youtube.com/embed/${t[4]}` : e;
|
|
@@ -710,30 +706,30 @@ const Le = (e) => {
|
|
|
710
706
|
const t = e.match(N);
|
|
711
707
|
return t ? `https://player.vimeo.com/video/${t[3]}` : e;
|
|
712
708
|
}
|
|
713
|
-
if (
|
|
714
|
-
const t = e.match(
|
|
709
|
+
if ($.test(e)) {
|
|
710
|
+
const t = e.match($);
|
|
715
711
|
return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
|
|
716
712
|
}
|
|
717
713
|
return null;
|
|
718
|
-
},
|
|
719
|
-
const { blockProps: t, inBuilder: l, styles: r, url: o, controls: n } = e, s =
|
|
720
|
-
if (w(o)) return /* @__PURE__ */ i(
|
|
721
|
-
let
|
|
722
|
-
if (
|
|
723
|
-
if (!w(
|
|
714
|
+
}, De = f.memo((e) => {
|
|
715
|
+
const { blockProps: t, inBuilder: l, styles: r, url: o, controls: n } = e, s = k(n, "autoPlay", !1), a = k(n, "controls", !1), c = s || k(n, "muted", !0), y = k(n, "loop", !1);
|
|
716
|
+
if (w(o)) return /* @__PURE__ */ i(C, { inBuilder: l, className: "h-36" });
|
|
717
|
+
let g = je(o), h = null;
|
|
718
|
+
if (g) {
|
|
719
|
+
if (!w(g)) {
|
|
724
720
|
const p = [];
|
|
725
|
-
p.push(`autoplay=${s ? 1 : 0}`), p.push(`controls=${n ? 1 : 0}`), p.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), p.push(`loop=${y ? 1 : 0}`),
|
|
721
|
+
p.push(`autoplay=${s ? 1 : 0}`), p.push(`controls=${n ? 1 : 0}`), p.push(`mute=${c ? 1 : 0}&muted=${c ? 1 : 0}`), p.push(`loop=${y ? 1 : 0}`), g = `${g}?${p.join("&")}`;
|
|
726
722
|
}
|
|
727
|
-
|
|
723
|
+
h = f.createElement("iframe", {
|
|
728
724
|
...t,
|
|
729
725
|
className: "absolute inset-0 w-full h-full",
|
|
730
|
-
src:
|
|
726
|
+
src: g,
|
|
731
727
|
allow: l ? "" : "autoplay *; fullscreen *",
|
|
732
728
|
allowFullScreen: !0,
|
|
733
729
|
frameBorder: 0
|
|
734
730
|
});
|
|
735
731
|
} else
|
|
736
|
-
|
|
732
|
+
h = f.createElement("video", {
|
|
737
733
|
...t,
|
|
738
734
|
className: "absolute inset-0 w-full h-full",
|
|
739
735
|
src: o,
|
|
@@ -742,15 +738,15 @@ const Le = (e) => {
|
|
|
742
738
|
autoPlay: l ? !1 : s,
|
|
743
739
|
loop: y
|
|
744
740
|
});
|
|
745
|
-
return /* @__PURE__ */ i("div", { ...
|
|
746
|
-
l ? /* @__PURE__ */ i("div", { ...t, ...
|
|
747
|
-
|
|
741
|
+
return /* @__PURE__ */ i("div", { ...Q(r, ["className"]), children: /* @__PURE__ */ b("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
742
|
+
l ? /* @__PURE__ */ i("div", { ...t, ...ee(r, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
743
|
+
h
|
|
748
744
|
] }) });
|
|
749
|
-
}),
|
|
745
|
+
}), Ge = {
|
|
750
746
|
type: "Video",
|
|
751
747
|
label: "Video",
|
|
752
748
|
category: "core",
|
|
753
|
-
icon:
|
|
749
|
+
icon: W,
|
|
754
750
|
group: "media",
|
|
755
751
|
...m({
|
|
756
752
|
properties: {
|
|
@@ -795,7 +791,7 @@ const Le = (e) => {
|
|
|
795
791
|
}
|
|
796
792
|
}),
|
|
797
793
|
i18nProps: ["url"]
|
|
798
|
-
},
|
|
794
|
+
}, Ue = (e) => {
|
|
799
795
|
const { blockProps: t, fieldName: l, label: r, styles: o, inputStyles: n, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
800
796
|
return c ? /* @__PURE__ */ b("div", { ...o, ...t, children: [
|
|
801
797
|
/* @__PURE__ */ i(
|
|
@@ -822,11 +818,11 @@ const Le = (e) => {
|
|
|
822
818
|
name: l
|
|
823
819
|
}
|
|
824
820
|
);
|
|
825
|
-
},
|
|
821
|
+
}, Ve = {
|
|
826
822
|
type: "Checkbox",
|
|
827
823
|
label: "web_blocks.checkbox",
|
|
828
824
|
category: "core",
|
|
829
|
-
icon:
|
|
825
|
+
icon: X,
|
|
830
826
|
group: "form",
|
|
831
827
|
...m({
|
|
832
828
|
properties: {
|
|
@@ -861,10 +857,10 @@ const Le = (e) => {
|
|
|
861
857
|
}),
|
|
862
858
|
aiProps: ["label"],
|
|
863
859
|
i18nProps: ["label"]
|
|
864
|
-
},
|
|
860
|
+
}, Oe = (e) => {
|
|
865
861
|
const { children: t, blockProps: l, errorMessage: r, successMessage: o, action: n, styles: s, inBuilder: a } = e;
|
|
866
862
|
let c = t;
|
|
867
|
-
return t || (c = /* @__PURE__ */ i(
|
|
863
|
+
return t || (c = /* @__PURE__ */ i(C, { inBuilder: a })), /* @__PURE__ */ b(
|
|
868
864
|
"form",
|
|
869
865
|
{
|
|
870
866
|
...{
|
|
@@ -886,7 +882,7 @@ const Le = (e) => {
|
|
|
886
882
|
]
|
|
887
883
|
}
|
|
888
884
|
);
|
|
889
|
-
},
|
|
885
|
+
}, We = {
|
|
890
886
|
type: "Form",
|
|
891
887
|
label: "Form",
|
|
892
888
|
category: "core",
|
|
@@ -908,7 +904,7 @@ const Le = (e) => {
|
|
|
908
904
|
action: {
|
|
909
905
|
type: "string",
|
|
910
906
|
title: "Submit URL",
|
|
911
|
-
default: "/api/form
|
|
907
|
+
default: "/api/form"
|
|
912
908
|
},
|
|
913
909
|
errorMessage: {
|
|
914
910
|
type: "string",
|
|
@@ -927,7 +923,7 @@ const Le = (e) => {
|
|
|
927
923
|
i18nProps: ["errorMessage", "successMessage"],
|
|
928
924
|
aiProps: ["errorMessage", "successMessage"],
|
|
929
925
|
canAcceptBlock: () => !0
|
|
930
|
-
},
|
|
926
|
+
}, Xe = (e) => {
|
|
931
927
|
const { blockProps: t, inBuilder: l, label: r, styles: o, inputStyles: n, icon: s, iconSize: a, iconPos: c } = e, y = I();
|
|
932
928
|
return /* @__PURE__ */ b(
|
|
933
929
|
"button",
|
|
@@ -954,11 +950,11 @@ const Le = (e) => {
|
|
|
954
950
|
]
|
|
955
951
|
}
|
|
956
952
|
);
|
|
957
|
-
},
|
|
953
|
+
}, Ye = {
|
|
958
954
|
type: "FormButton",
|
|
959
955
|
label: "Submit Button",
|
|
960
956
|
category: "core",
|
|
961
|
-
icon:
|
|
957
|
+
icon: M,
|
|
962
958
|
group: "form",
|
|
963
959
|
...m({
|
|
964
960
|
properties: {
|
|
@@ -994,35 +990,48 @@ const Le = (e) => {
|
|
|
994
990
|
}),
|
|
995
991
|
i18nProps: ["label"],
|
|
996
992
|
aiProps: ["label"]
|
|
997
|
-
},
|
|
998
|
-
const {
|
|
993
|
+
}, Ze = (e) => {
|
|
994
|
+
const {
|
|
995
|
+
blockProps: t,
|
|
996
|
+
fieldName: l,
|
|
997
|
+
label: r,
|
|
998
|
+
placeholder: o,
|
|
999
|
+
styles: n,
|
|
1000
|
+
inputStyles: s,
|
|
1001
|
+
showLabel: a,
|
|
1002
|
+
required: c,
|
|
1003
|
+
inputType: y,
|
|
1004
|
+
autocomplete: g
|
|
1005
|
+
} = e, h = I();
|
|
999
1006
|
return a ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1000
|
-
a && /* @__PURE__ */ i("label", { htmlFor:
|
|
1007
|
+
a && /* @__PURE__ */ i("label", { htmlFor: h, children: r }),
|
|
1001
1008
|
/* @__PURE__ */ i(
|
|
1002
1009
|
"input",
|
|
1003
1010
|
{
|
|
1004
1011
|
name: l,
|
|
1005
1012
|
...s,
|
|
1006
|
-
id:
|
|
1013
|
+
id: h,
|
|
1007
1014
|
type: y,
|
|
1008
1015
|
placeholder: o,
|
|
1009
|
-
required: c
|
|
1016
|
+
required: c,
|
|
1017
|
+
autoComplete: g ? "on" : "off"
|
|
1010
1018
|
}
|
|
1011
1019
|
)
|
|
1012
1020
|
] }) : /* @__PURE__ */ i(
|
|
1013
1021
|
"input",
|
|
1014
1022
|
{
|
|
1015
|
-
id:
|
|
1023
|
+
id: h,
|
|
1016
1024
|
name: l,
|
|
1017
1025
|
...t,
|
|
1018
1026
|
...s,
|
|
1019
1027
|
...n,
|
|
1020
1028
|
type: y,
|
|
1021
1029
|
placeholder: o,
|
|
1022
|
-
required: c
|
|
1030
|
+
required: c,
|
|
1031
|
+
autoComplete: g ? "on" : "off"
|
|
1023
1032
|
}
|
|
1024
1033
|
);
|
|
1025
|
-
},
|
|
1034
|
+
}, Je = {
|
|
1026
1035
|
type: "Input",
|
|
1027
1036
|
label: "web_blocks.input",
|
|
1028
1037
|
category: "core",
|
|
@@ -1054,45 +1063,37 @@ const Le = (e) => {
|
|
|
1054
1063
|
title: "Placeholder",
|
|
1055
1064
|
default: "Placeholder"
|
|
1056
1065
|
},
|
|
1066
|
+
inputType: {
|
|
1067
|
+
type: "string",
|
|
1068
|
+
title: "Input Type",
|
|
1069
|
+
default: "text",
|
|
1070
|
+
enum: ["text", "email", "password", "number", "tel", "hidden", "range", "color", "date", "time"]
|
|
1071
|
+
},
|
|
1057
1072
|
required: {
|
|
1058
1073
|
type: "boolean",
|
|
1059
1074
|
title: "Required",
|
|
1060
1075
|
default: !1
|
|
1061
1076
|
},
|
|
1062
|
-
|
|
1063
|
-
type: "
|
|
1064
|
-
title: "
|
|
1065
|
-
default:
|
|
1066
|
-
enum: [
|
|
1067
|
-
"text",
|
|
1068
|
-
"email",
|
|
1069
|
-
"password",
|
|
1070
|
-
"number",
|
|
1071
|
-
"tel",
|
|
1072
|
-
"file",
|
|
1073
|
-
"hidden",
|
|
1074
|
-
"range",
|
|
1075
|
-
"submit",
|
|
1076
|
-
"color",
|
|
1077
|
-
"date",
|
|
1078
|
-
"time"
|
|
1079
|
-
]
|
|
1077
|
+
autocomplete: {
|
|
1078
|
+
type: "boolean",
|
|
1079
|
+
title: "Autocomplete",
|
|
1080
|
+
default: !0
|
|
1080
1081
|
}
|
|
1081
1082
|
}
|
|
1082
1083
|
}),
|
|
1083
1084
|
aiProps: ["label", "placeholder"],
|
|
1084
1085
|
i18nProps: ["label", "placeholder"]
|
|
1085
|
-
},
|
|
1086
|
+
}, Ke = (e) => {
|
|
1086
1087
|
const { blockProps: t, content: l, styles: r, children: o } = e, n = { ...r, ...t };
|
|
1087
|
-
return o ?
|
|
1088
|
+
return o ? f.createElement("label", n, o) : f.createElement("label", {
|
|
1088
1089
|
...n,
|
|
1089
1090
|
dangerouslySetInnerHTML: { __html: l }
|
|
1090
1091
|
});
|
|
1091
|
-
},
|
|
1092
|
+
}, Qe = {
|
|
1092
1093
|
type: "Label",
|
|
1093
1094
|
label: "Label",
|
|
1094
1095
|
category: "core",
|
|
1095
|
-
icon:
|
|
1096
|
+
icon: Y,
|
|
1096
1097
|
group: "form",
|
|
1097
1098
|
...m({
|
|
1098
1099
|
properties: {
|
|
@@ -1106,7 +1107,7 @@ const Le = (e) => {
|
|
|
1106
1107
|
}),
|
|
1107
1108
|
aiProps: ["content"],
|
|
1108
1109
|
i18nProps: ["content"]
|
|
1109
|
-
},
|
|
1110
|
+
}, et = (e) => {
|
|
1110
1111
|
const { blockProps: t, fieldName: l, label: r, styles: o, inputStyles: n, required: s, checked: a, showLabel: c = !0 } = e, y = I();
|
|
1111
1112
|
return c ? /* @__PURE__ */ b("div", { ...o, ...t, children: [
|
|
1112
1113
|
/* @__PURE__ */ i("input", { ...n, name: l, id: y, type: "radio", required: s, defaultChecked: a }),
|
|
@@ -1124,11 +1125,11 @@ const Le = (e) => {
|
|
|
1124
1125
|
name: l
|
|
1125
1126
|
}
|
|
1126
1127
|
);
|
|
1127
|
-
},
|
|
1128
|
+
}, tt = {
|
|
1128
1129
|
type: "Radio",
|
|
1129
1130
|
label: "web_blocks.radio",
|
|
1130
1131
|
category: "core",
|
|
1131
|
-
icon:
|
|
1132
|
+
icon: Z,
|
|
1132
1133
|
group: "form",
|
|
1133
1134
|
...m({
|
|
1134
1135
|
properties: {
|
|
@@ -1163,23 +1164,23 @@ const Le = (e) => {
|
|
|
1163
1164
|
}),
|
|
1164
1165
|
aiProps: ["label"],
|
|
1165
1166
|
i18nProps: ["label"]
|
|
1166
|
-
},
|
|
1167
|
-
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, required: a, showLabel: c, _multiple: y, options:
|
|
1167
|
+
}, lt = (e) => {
|
|
1168
|
+
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, required: a, showLabel: c, _multiple: y, options: g } = e, h = I();
|
|
1168
1169
|
return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1169
|
-
c && /* @__PURE__ */ i("label", { htmlFor:
|
|
1170
|
-
/* @__PURE__ */ b("select", { ...s, id:
|
|
1170
|
+
c && /* @__PURE__ */ i("label", { htmlFor: h, children: r }),
|
|
1171
|
+
/* @__PURE__ */ b("select", { ...s, id: h, required: a, multiple: y, name: l, children: [
|
|
1171
1172
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1172
|
-
_(
|
|
1173
|
+
_(g, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1173
1174
|
] })
|
|
1174
|
-
] }) : /* @__PURE__ */ b("select", { id:
|
|
1175
|
+
] }) : /* @__PURE__ */ b("select", { id: h, ...n, ...t, required: a, multiple: y, name: l, children: [
|
|
1175
1176
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
1176
|
-
_(
|
|
1177
|
+
_(g, (p) => /* @__PURE__ */ i("option", { value: p == null ? void 0 : p.value, children: p == null ? void 0 : p.label }, p == null ? void 0 : p.value))
|
|
1177
1178
|
] });
|
|
1178
|
-
},
|
|
1179
|
+
}, ot = {
|
|
1179
1180
|
type: "Select",
|
|
1180
1181
|
label: "web_blocks.select",
|
|
1181
1182
|
category: "core",
|
|
1182
|
-
icon:
|
|
1183
|
+
icon: J,
|
|
1183
1184
|
group: "form",
|
|
1184
1185
|
...m({
|
|
1185
1186
|
properties: {
|
|
@@ -1239,24 +1240,35 @@ const Le = (e) => {
|
|
|
1239
1240
|
}),
|
|
1240
1241
|
aiProps: ["label", "placeholder"],
|
|
1241
1242
|
i18nProps: ["label", "placeholder"]
|
|
1242
|
-
},
|
|
1243
|
-
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s,
|
|
1243
|
+
}, rt = (e) => {
|
|
1244
|
+
const { blockProps: t, fieldName: l, label: r, placeholder: o, styles: n, inputStyles: s, rows: a, showLabel: c, required: y } = e, g = I();
|
|
1244
1245
|
return c ? /* @__PURE__ */ b("div", { ...n, ...t, children: [
|
|
1245
|
-
c && /* @__PURE__ */ i("label", { htmlFor:
|
|
1246
|
-
/* @__PURE__ */ i(
|
|
1246
|
+
c && /* @__PURE__ */ i("label", { htmlFor: g, children: r }),
|
|
1247
|
+
/* @__PURE__ */ i(
|
|
1248
|
+
"textarea",
|
|
1249
|
+
{
|
|
1250
|
+
name: l,
|
|
1251
|
+
...s,
|
|
1252
|
+
id: g,
|
|
1253
|
+
placeholder: o,
|
|
1254
|
+
rows: a,
|
|
1255
|
+
required: y
|
|
1256
|
+
}
|
|
1257
|
+
)
|
|
1247
1258
|
] }) : /* @__PURE__ */ i(
|
|
1248
1259
|
"textarea",
|
|
1249
1260
|
{
|
|
1250
|
-
id:
|
|
1261
|
+
id: g,
|
|
1251
1262
|
name: l,
|
|
1252
1263
|
...t,
|
|
1253
1264
|
...s,
|
|
1254
1265
|
...n,
|
|
1255
1266
|
placeholder: o,
|
|
1256
|
-
rows: a
|
|
1267
|
+
rows: a,
|
|
1268
|
+
required: y
|
|
1257
1269
|
}
|
|
1258
1270
|
);
|
|
1259
|
-
},
|
|
1271
|
+
}, nt = {
|
|
1260
1272
|
type: "TextArea",
|
|
1261
1273
|
label: "web_blocks.textarea",
|
|
1262
1274
|
category: "core",
|
|
@@ -1287,19 +1299,24 @@ const Le = (e) => {
|
|
|
1287
1299
|
title: "Placeholder",
|
|
1288
1300
|
default: "Placeholder"
|
|
1289
1301
|
},
|
|
1290
|
-
|
|
1302
|
+
rows: {
|
|
1291
1303
|
type: "number",
|
|
1292
1304
|
title: "Rows",
|
|
1293
1305
|
default: 3
|
|
1306
|
+
},
|
|
1307
|
+
required: {
|
|
1308
|
+
type: "boolean",
|
|
1309
|
+
title: "Required",
|
|
1310
|
+
default: !1
|
|
1294
1311
|
}
|
|
1295
1312
|
}
|
|
1296
1313
|
}),
|
|
1297
1314
|
aiProps: ["label", "placeholder"],
|
|
1298
1315
|
i18nProps: ["label", "placeholder"]
|
|
1299
|
-
},
|
|
1316
|
+
}, it = (e) => {
|
|
1300
1317
|
const { blockProps: t, styles: l } = e;
|
|
1301
1318
|
return L("br", { ...t, ...l });
|
|
1302
|
-
},
|
|
1319
|
+
}, st = {
|
|
1303
1320
|
type: "LineBreak",
|
|
1304
1321
|
label: "Line Break",
|
|
1305
1322
|
category: "core",
|
|
@@ -1314,7 +1331,7 @@ const Le = (e) => {
|
|
|
1314
1331
|
canDelete: () => !1,
|
|
1315
1332
|
canMove: () => !1,
|
|
1316
1333
|
canDuplicate: () => !1
|
|
1317
|
-
},
|
|
1334
|
+
}, at = (e) => {
|
|
1318
1335
|
const { blockProps: t, inBuilder: l, children: r, partialBlockId: o } = e;
|
|
1319
1336
|
return l && !o ? /* @__PURE__ */ b(
|
|
1320
1337
|
"div",
|
|
@@ -1329,8 +1346,8 @@ const Le = (e) => {
|
|
|
1329
1346
|
/* @__PURE__ */ i("p", { children: "Choose a block from the sidebar to add it to this page." })
|
|
1330
1347
|
]
|
|
1331
1348
|
}
|
|
1332
|
-
) :
|
|
1333
|
-
},
|
|
1349
|
+
) : f.createElement("span", { ...t }, r);
|
|
1350
|
+
}, ct = {
|
|
1334
1351
|
type: "PartialBlock",
|
|
1335
1352
|
label: "Partial Block",
|
|
1336
1353
|
icon: R,
|
|
@@ -1390,15 +1407,15 @@ const Le = (e) => {
|
|
|
1390
1407
|
11: "lg:col-span-11",
|
|
1391
1408
|
12: "lg:col-span-12"
|
|
1392
1409
|
}
|
|
1393
|
-
},
|
|
1410
|
+
}, pt = (e) => {
|
|
1394
1411
|
const { blockProps: t, children: l, styles: r, colSpan: o, tabletColSpan: n, desktopColSpan: s } = e, c = { className: [
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
n ?
|
|
1398
|
-
s ?
|
|
1412
|
+
k(r, "className", ""),
|
|
1413
|
+
k(B, ["SMALL", isNaN(o) || !o ? 6 : o], ""),
|
|
1414
|
+
n ? k(B, ["MEDIUM", n || o], "") : "",
|
|
1415
|
+
s ? k(B, ["LARGE", n || o], "") : ""
|
|
1399
1416
|
].join(" ") };
|
|
1400
1417
|
return /* @__PURE__ */ i("div", { ...t, ...r, ...c, children: l || /* @__PURE__ */ i("div", { className: "h-full min-h-12 w-full border-2 border-dashed border-gray-400 bg-gray-100 dark:bg-gray-900" }) });
|
|
1401
|
-
},
|
|
1418
|
+
}, ut = {
|
|
1402
1419
|
type: "Column",
|
|
1403
1420
|
label: "Column",
|
|
1404
1421
|
group: "basic",
|
|
@@ -1433,10 +1450,10 @@ const Le = (e) => {
|
|
|
1433
1450
|
}
|
|
1434
1451
|
}
|
|
1435
1452
|
})
|
|
1436
|
-
},
|
|
1437
|
-
const { blockProps: t, children: l, styles: r, gutter: o } = e, s = { className: [
|
|
1453
|
+
}, dt = (e) => {
|
|
1454
|
+
const { blockProps: t, children: l, styles: r, gutter: o } = e, s = { className: [k(r, "className", ""), " grid grid-cols-12"].join() };
|
|
1438
1455
|
return typeof (r == null ? void 0 : r.style) == "object" ? r.style.gap = `${o}px` : s.style = { gap: `${o}px` }, /* @__PURE__ */ i("div", { ...t, ...r, ...s, children: l });
|
|
1439
|
-
},
|
|
1456
|
+
}, mt = {
|
|
1440
1457
|
type: "Row",
|
|
1441
1458
|
label: "Row",
|
|
1442
1459
|
group: "basic",
|
|
@@ -1466,9 +1483,9 @@ const Le = (e) => {
|
|
|
1466
1483
|
}
|
|
1467
1484
|
}
|
|
1468
1485
|
})
|
|
1469
|
-
},
|
|
1470
|
-
d(ne, ie), d(ue, de), d(se, ae), d(me, ye), d(ge, fe), d(ke, we), d(be, he), d(
|
|
1486
|
+
}, xt = () => {
|
|
1487
|
+
d(ne, ie), d(ue, de), d(se, ae), d(me, ye), d(ge, fe), d(ke, we), d(be, he), d(Ee, Te), d($e, Me), d(Re, Ae), d(He, ze), d(Pe, _e), d(Se, Ne), d(De, Ge), d(ce, pe), d(xe, Le), d(qe, Fe), d(Oe, We), d(Xe, Ye), d(Ze, Je), d(Ue, Ve), d(et, tt), d(lt, ot), d(rt, nt), d(Ke, Qe), d(it, st), d(Ce, Ie), d(ve, Be), d(at, ct), d(dt, mt), d(pt, ut);
|
|
1471
1488
|
};
|
|
1472
1489
|
export {
|
|
1473
|
-
|
|
1490
|
+
xt as loadWebBlocks
|
|
1474
1491
|
};
|