@chaibuilder/sdk 1.2.26 → 1.2.27
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-S-4jzdWv.cjs +1 -0
- package/dist/{AddBlocks-l1JENNvq.js → AddBlocks-ksZjjn0k.js} +6 -7
- package/dist/BrandingOptions-EMCT0Wa3.cjs +1 -0
- package/dist/{BrandingOptions-udtH5yJs.js → BrandingOptions-T_kbQFQv.js} +5 -6
- package/dist/{CanvasArea-zme1r3Zi.cjs → CanvasArea-SDzbubar.cjs} +2 -2
- package/dist/{CanvasArea-h0W-Tyha.js → CanvasArea-rhOeubmu.js} +7 -8
- package/dist/{Class-lGzsNBOK.js → Class-3k8xjeiM.js} +1 -1
- package/dist/{Class-PoYusiA5.cjs → Class-MmCxz2Ay.cjs} +1 -1
- package/dist/{CurrentPage-tJUjXWdb.js → CurrentPage-0eeU1V_c.js} +8 -9
- package/dist/CurrentPage-aTjWjc3o.cjs +1 -0
- package/dist/{ListTree-cZ-Ihlt3.js → ListTree-Muu4rAtp.js} +8 -9
- package/dist/ListTree-SWsqdfcG.cjs +1 -0
- package/dist/MODIFIERS-9EwxLM8V.cjs +1 -0
- package/dist/{MODIFIERS-dytZ-osO.js → MODIFIERS-WQdaNvb8.js} +8 -4
- package/dist/PagesPanel-n3x-0ozR.cjs +1 -0
- package/dist/{PagesPanel-6rrLXEO-.js → PagesPanel-rYN28QpN.js} +8 -9
- package/dist/{ProjectPanel-tz3bjdXy.js → ProjectPanel-ivFOhdcz.js} +13 -14
- package/dist/ProjectPanel-pBePMOta.cjs +1 -0
- package/dist/Settings-JRyJayf5.cjs +1 -0
- package/dist/{Settings-4s2LUVmC.js → Settings-XWmKzRl9.js} +6 -7
- package/dist/SidePanels-BtUeo6M9.cjs +1 -0
- package/dist/{SidePanels-bugFfInz.js → SidePanels-ODktnGbC.js} +16 -17
- package/dist/Topbar-QMeD3hvq.cjs +1 -0
- package/dist/{Topbar-pWzBEOed.js → Topbar-Yunooh00.js} +5 -6
- package/dist/UnsplashImages-05JR8oIu.cjs +1 -0
- package/dist/{UnsplashImages-qvwFbV-E.js → UnsplashImages-QMl0bxix.js} +15 -16
- package/dist/UploadImages-OgSN1HVt.cjs +1 -0
- package/dist/{UploadImages-9NapgXBq.js → UploadImages-Si-A26bc.js} +10 -11
- package/dist/add-page-modal-9pTKItY-.cjs +1 -0
- package/dist/{add-page-modal-k2Kb92HS.js → add-page-modal-U7AUUrI1.js} +24 -25
- package/dist/confirm-alert-DhRc-Zcd.cjs +1 -0
- package/dist/{confirm-alert-GUhZ_G8w.js → confirm-alert-kV5-c70T.js} +5 -6
- package/dist/core.cjs +1 -1
- package/dist/core.js +46 -47
- package/dist/defaultTheme-7Lk2zq60.cjs +1 -0
- package/dist/{defaultTheme-D8B4-wHO.js → defaultTheme-gunU_Fe5.js} +1 -1
- package/dist/delete-page-modal-4s-6AIy4.cjs +1 -0
- package/dist/{delete-page-modal-zONvdebd.js → delete-page-modal-UCBpdjLe.js} +8 -9
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +6 -7
- package/dist/{form-lBQ_76Uw.cjs → form-Ap63cNec.cjs} +1 -1
- package/dist/{form-STUz-6nE.js → form-zmlTjM9j.js} +1 -1
- package/dist/html-to-json-C_Eobs_d.cjs +1 -0
- package/dist/{html-to-json-ngX9ef2u.js → html-to-json-p__Fgqdg.js} +75 -50
- package/dist/{index-Gk6sASBd.js → index-CFUoB97-.js} +128 -129
- package/dist/index-F4AQQ6qq.cjs +1 -0
- package/dist/{index-mbyqq81O.cjs → index-Qk028f-N.cjs} +1 -1
- package/dist/{index-llTXLDGE.js → index-f0AbmoYY.js} +4 -4
- package/dist/{index-OB199Izc.cjs → index-l19JVVXI.cjs} +2 -2
- package/dist/{index-SkyM3d6Q.js → index-lOJfSheQ.js} +2 -2
- package/dist/lib.cjs +3 -3
- package/dist/lib.js +16 -17
- package/dist/page-viewer-YFrIG3L7.cjs +1 -0
- package/dist/{page-viewer-Pdg9F5Hv.js → page-viewer-jOwy--9A.js} +9 -10
- package/dist/{project-general-setting-f8Ebsn6K.js → project-general-setting-3N8HZ2fe.js} +9 -10
- package/dist/project-general-setting-hK7I7FuN.cjs +1 -0
- package/dist/{project-seo-setting-pX34Qsym.js → project-seo-setting-bSiNgO_1.js} +6 -7
- package/dist/project-seo-setting-x-FK0pez.cjs +1 -0
- package/dist/render.cjs +1 -1
- package/dist/render.js +13 -14
- package/dist/{single-page-detail-dpe5LT0M.js → single-page-detail--AZlZ-pC.js} +10 -11
- package/dist/single-page-detail-9abF2g2R.cjs +1 -0
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +7 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +137 -138
- package/dist/web-blocks.cjs +1 -6
- package/dist/web-blocks.js +385 -486
- package/package.json +1 -1
- package/dist/AddBlocks-zPPKkeKs.cjs +0 -1
- package/dist/BrandingOptions-DkpqGARR.cjs +0 -1
- package/dist/CurrentPage-Hl52iub_.cjs +0 -1
- package/dist/ListTree-WvTjY5rr.cjs +0 -1
- package/dist/MODIFIERS-0g14w5RS.cjs +0 -1
- package/dist/PagesPanel-WzCocl6u.cjs +0 -1
- package/dist/ProjectPanel-o7gdcwPn.cjs +0 -1
- package/dist/STRINGS--j49GZJP.js +0 -7
- package/dist/STRINGS-gPz7CUOk.cjs +0 -1
- package/dist/Settings-AqoKwR92.cjs +0 -1
- package/dist/SidePanels-3o6Okmvu.cjs +0 -1
- package/dist/Topbar-CqW7G360.cjs +0 -1
- package/dist/UnsplashImages-NGskB93R.cjs +0 -1
- package/dist/UploadImages-Oh7Glr9A.cjs +0 -1
- package/dist/add-page-modal--6TTBRYa.cjs +0 -1
- package/dist/confirm-alert-C4M9eF-o.cjs +0 -1
- package/dist/defaultTheme-7VqqhOcp.cjs +0 -1
- package/dist/delete-page-modal-cFoL-wdo.cjs +0 -1
- package/dist/html-to-json-efmv1pCj.cjs +0 -1
- package/dist/index-h-hd6EvN.cjs +0 -1
- package/dist/page-viewer-2kwnKM6v.cjs +0 -1
- package/dist/project-general-setting-CnNL98NM.cjs +0 -1
- package/dist/project-seo-setting-mlxL_e2_.cjs +0 -1
- package/dist/single-page-detail-XfzrGlzA.cjs +0 -1
package/dist/web-blocks.js
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { isNull as F, isEmpty as k, get as v, pick as
|
|
1
|
+
import { isNull as F, isEmpty as k, get as v, pick as $, omit as D, map as _, noop as q } from "lodash-es";
|
|
2
2
|
import { j as s } from "./jsx-runtime-WbnYoNE9.js";
|
|
3
|
-
import * as
|
|
4
|
-
import { S as
|
|
5
|
-
import { registerChaiBlock as
|
|
6
|
-
import { E as
|
|
7
|
-
import { HeadingIcon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { a as j } from "./STRINGS--j49GZJP.js";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { S as c, s as I, o as j, g as B, m as T, u as f, T as E, c as w, q as z, b as O, r as h, h as V } from "./controls-OfJWSEqC.js";
|
|
5
|
+
import { registerChaiBlock as p } from "@chaibuilder/runtime";
|
|
6
|
+
import { E as g } from "./empty-slot-ZBlsQi6m.js";
|
|
7
|
+
import { HeadingIcon as U, TextIcon as G, CursorTextIcon as W, ButtonIcon as H, Link1Icon as Y, RowsIcon as X, ColumnsIcon as Z, SketchLogoIcon as J, ImageIcon as K, VideoIcon as Q, CodeIcon as ee, DividerHorizontalIcon as te, SpaceBetweenVerticallyIcon as R, TableIcon as le, BorderTopIcon as oe, BorderAllIcon as ae, ViewHorizontalIcon as re, DragHandleHorizontalIcon as se, GroupIcon as ne, LetterCaseToggleIcon as ie, CheckboxIcon as ce, InputIcon as A, RadiobuttonIcon as de, DropdownMenuIcon as ue } from "@radix-ui/react-icons";
|
|
8
|
+
import { c as P, g as x } from "./Functions-7jnEwJyw.js";
|
|
10
9
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
11
10
|
import "clsx";
|
|
12
11
|
import "tailwind-merge";
|
|
13
|
-
const
|
|
12
|
+
const pe = d.memo(
|
|
14
13
|
(e) => {
|
|
15
|
-
const { blockProps: t, inBuilder: l, backgroundImage:
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
return
|
|
14
|
+
const { blockProps: t, inBuilder: l, backgroundImage: a, children: o, tag: r = "div", styles: n } = e;
|
|
15
|
+
let i = o;
|
|
16
|
+
o || (i = /* @__PURE__ */ s.jsx(g, { blockProps: {}, styles: {}, inBuilder: l }));
|
|
17
|
+
let u = {};
|
|
18
|
+
return a && (u = { backgroundImage: `url(${a})` }), d.createElement(r, { ...t, ...n, style: u }, i);
|
|
20
19
|
}
|
|
21
20
|
);
|
|
22
|
-
|
|
21
|
+
p(pe, {
|
|
23
22
|
type: "Box",
|
|
24
23
|
label: "Box",
|
|
25
24
|
category: "core",
|
|
26
25
|
group: "basic",
|
|
27
26
|
props: {
|
|
28
|
-
styles:
|
|
29
|
-
tag:
|
|
27
|
+
styles: c({ default: "" }),
|
|
28
|
+
tag: I({
|
|
30
29
|
title: "Tag",
|
|
31
30
|
default: "div",
|
|
32
31
|
options: [
|
|
@@ -49,26 +48,26 @@ d(he, {
|
|
|
49
48
|
{ value: "mark", title: "mark" }
|
|
50
49
|
]
|
|
51
50
|
}),
|
|
52
|
-
backgroundImage:
|
|
51
|
+
backgroundImage: j({ title: "Background Image" })
|
|
53
52
|
},
|
|
54
53
|
canAcceptBlock: () => !0
|
|
55
54
|
});
|
|
56
|
-
const
|
|
57
|
-
const { blockProps: t, styles: l, content:
|
|
58
|
-
return
|
|
55
|
+
const me = (e) => {
|
|
56
|
+
const { blockProps: t, styles: l, content: a, level: o = "h1", children: r = null } = e;
|
|
57
|
+
return r ? d.createElement(o, { ...l, ...t }, r) : d.createElement(o, {
|
|
59
58
|
...l,
|
|
60
59
|
...t,
|
|
61
|
-
dangerouslySetInnerHTML: { __html:
|
|
60
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
|
-
|
|
63
|
+
p(me, {
|
|
65
64
|
type: "Heading",
|
|
66
65
|
label: "Heading",
|
|
67
66
|
category: "core",
|
|
68
|
-
icon:
|
|
67
|
+
icon: U,
|
|
69
68
|
group: "typography",
|
|
70
69
|
props: {
|
|
71
|
-
level:
|
|
70
|
+
level: I({
|
|
72
71
|
title: "Level",
|
|
73
72
|
default: "h1",
|
|
74
73
|
binding: !1,
|
|
@@ -81,97 +80,97 @@ d(ye, {
|
|
|
81
80
|
{ value: "h6", title: "h6" }
|
|
82
81
|
]
|
|
83
82
|
}),
|
|
84
|
-
styles:
|
|
85
|
-
content:
|
|
83
|
+
styles: c({ default: "text-3xl" }),
|
|
84
|
+
content: B({ title: "Content", default: "Heading goes here" })
|
|
86
85
|
},
|
|
87
86
|
canAcceptBlock: (e) => e === "Span" || e === "Text"
|
|
88
87
|
});
|
|
89
88
|
const fe = (e) => {
|
|
90
|
-
const { blockProps: t, styles: l, content:
|
|
91
|
-
return F(e.children) ?
|
|
89
|
+
const { blockProps: t, styles: l, content: a } = e;
|
|
90
|
+
return F(e.children) ? d.createElement("div", {
|
|
92
91
|
...l,
|
|
93
92
|
...t,
|
|
94
|
-
dangerouslySetInnerHTML: { __html:
|
|
95
|
-
}) :
|
|
93
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
94
|
+
}) : d.createElement("p", { ...l, ...t }, e.children);
|
|
96
95
|
};
|
|
97
|
-
|
|
96
|
+
p(fe, {
|
|
98
97
|
type: "Paragraph",
|
|
99
98
|
label: "Paragraph",
|
|
100
99
|
category: "core",
|
|
101
|
-
icon:
|
|
100
|
+
icon: G,
|
|
102
101
|
group: "typography",
|
|
103
102
|
props: {
|
|
104
|
-
styles:
|
|
105
|
-
content:
|
|
103
|
+
styles: c({ default: "" }),
|
|
104
|
+
content: B({
|
|
106
105
|
title: "Content",
|
|
107
106
|
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."
|
|
108
107
|
})
|
|
109
108
|
},
|
|
110
109
|
canAcceptBlock: (e) => e === "Span" || e === "Link"
|
|
111
110
|
});
|
|
112
|
-
const
|
|
113
|
-
const { blockProps: t, styles: l, content:
|
|
114
|
-
return
|
|
111
|
+
const ye = (e) => {
|
|
112
|
+
const { blockProps: t, styles: l, content: a, children: o = null, tag: r } = e;
|
|
113
|
+
return o ? d.createElement("span", { ...l, ...t }, o) : d.createElement(r || "span", {
|
|
115
114
|
...l,
|
|
116
115
|
...t,
|
|
117
|
-
dangerouslySetInnerHTML: { __html:
|
|
116
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
118
117
|
});
|
|
119
118
|
};
|
|
120
|
-
|
|
119
|
+
p(ye, {
|
|
121
120
|
type: "Span",
|
|
122
121
|
label: "Span",
|
|
123
122
|
category: "core",
|
|
124
123
|
group: "typography",
|
|
125
124
|
props: {
|
|
126
|
-
styles:
|
|
127
|
-
content:
|
|
125
|
+
styles: c({ default: "" }),
|
|
126
|
+
content: B({ title: "Content", default: "Enter your content" })
|
|
128
127
|
},
|
|
129
128
|
canAcceptBlock: () => !0
|
|
130
129
|
});
|
|
131
|
-
const
|
|
132
|
-
const { blockProps: t, content: l, styles:
|
|
133
|
-
return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx("div", { ...t, ...
|
|
130
|
+
const be = (e) => {
|
|
131
|
+
const { blockProps: t, content: l, styles: a } = e;
|
|
132
|
+
return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx("div", { ...t, ...a, dangerouslySetInnerHTML: { __html: l } }) });
|
|
134
133
|
};
|
|
135
|
-
|
|
134
|
+
p(be, {
|
|
136
135
|
type: "RichText",
|
|
137
136
|
label: "Rich Text",
|
|
138
137
|
category: "core",
|
|
139
|
-
icon:
|
|
138
|
+
icon: W,
|
|
140
139
|
group: "typography",
|
|
141
140
|
props: {
|
|
142
|
-
styles:
|
|
143
|
-
content:
|
|
141
|
+
styles: c({ default: "" }),
|
|
142
|
+
content: T({
|
|
144
143
|
title: "Content",
|
|
145
144
|
default: "<p>This is a rich text block. You can add text, and other content here.</p>"
|
|
146
145
|
})
|
|
147
146
|
}
|
|
148
147
|
});
|
|
149
|
-
const
|
|
150
|
-
const { blockProps: t, iconSize: l, icon:
|
|
151
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
152
|
-
|
|
148
|
+
const he = (e) => {
|
|
149
|
+
const { blockProps: t, iconSize: l, icon: a, content: o, iconPos: r, styles: n, children: i } = e, u = a, m = i || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
150
|
+
/* @__PURE__ */ s.jsx("span", { children: o }),
|
|
151
|
+
u && /* @__PURE__ */ s.jsx(
|
|
153
152
|
"div",
|
|
154
153
|
{
|
|
155
154
|
style: { width: l + "px" },
|
|
156
|
-
className:
|
|
157
|
-
dangerouslySetInnerHTML: { __html:
|
|
155
|
+
className: r + " " + (r === "order-first" ? "mr-2" : "ml-2") || "",
|
|
156
|
+
dangerouslySetInnerHTML: { __html: u }
|
|
158
157
|
}
|
|
159
158
|
)
|
|
160
159
|
] });
|
|
161
|
-
return
|
|
160
|
+
return d.createElement("button", { ...t, ...n, type: "button" }, m);
|
|
162
161
|
};
|
|
163
|
-
|
|
162
|
+
p(he, {
|
|
164
163
|
type: "Button",
|
|
165
164
|
label: "Button",
|
|
166
165
|
category: "core",
|
|
167
|
-
icon:
|
|
166
|
+
icon: H,
|
|
168
167
|
group: "basic",
|
|
169
168
|
props: {
|
|
170
|
-
content:
|
|
171
|
-
styles:
|
|
172
|
-
icon:
|
|
173
|
-
iconSize:
|
|
174
|
-
iconPos:
|
|
169
|
+
content: f({ title: "Label", default: "Button", multiLingual: !0 }),
|
|
170
|
+
styles: c({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
|
|
171
|
+
icon: E({ title: "Icon", default: "" }),
|
|
172
|
+
iconSize: w({ title: "Icon Size", default: 24 }),
|
|
173
|
+
iconPos: I({
|
|
175
174
|
title: "Icon Position",
|
|
176
175
|
default: "order-last",
|
|
177
176
|
options: [
|
|
@@ -181,54 +180,54 @@ d(xe, {
|
|
|
181
180
|
})
|
|
182
181
|
}
|
|
183
182
|
});
|
|
184
|
-
const
|
|
185
|
-
const { blockProps: t, link: l, children:
|
|
186
|
-
return !
|
|
183
|
+
const ge = (e) => {
|
|
184
|
+
const { blockProps: t, link: l, children: a, styles: o, inBuilder: r, content: n } = e;
|
|
185
|
+
return !a && k(o == null ? void 0 : o.className) && k(n) ? /* @__PURE__ */ s.jsx(g, { blockProps: t, inBuilder: r }) : r ? a ? /* @__PURE__ */ s.jsx("span", { "data-simulate": "a", ...t, ...o, children: a }) : d.createElement("span", {
|
|
187
186
|
...t,
|
|
188
|
-
...
|
|
187
|
+
...o,
|
|
189
188
|
dangerouslySetInnerHTML: { __html: n },
|
|
190
189
|
"data-simulate": "a"
|
|
191
|
-
}) :
|
|
190
|
+
}) : a ? /* @__PURE__ */ s.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...o, children: a }) : d.createElement("a", {
|
|
192
191
|
...t,
|
|
193
|
-
...
|
|
192
|
+
...o,
|
|
194
193
|
href: l.href || "#",
|
|
195
194
|
target: l.target || "_self",
|
|
196
195
|
dangerouslySetInnerHTML: { __html: n }
|
|
197
196
|
});
|
|
198
197
|
};
|
|
199
|
-
|
|
198
|
+
p(ge, {
|
|
200
199
|
type: "Link",
|
|
201
200
|
label: "Link",
|
|
202
201
|
category: "core",
|
|
203
|
-
icon:
|
|
202
|
+
icon: Y,
|
|
204
203
|
group: "basic",
|
|
205
204
|
props: {
|
|
206
|
-
styles:
|
|
207
|
-
content:
|
|
208
|
-
link:
|
|
205
|
+
styles: c({ default: "" }),
|
|
206
|
+
content: f({ title: "Content", default: "" }),
|
|
207
|
+
link: z({
|
|
209
208
|
title: "Link",
|
|
210
209
|
default: { type: "page", target: "_self", href: "" }
|
|
211
210
|
})
|
|
212
211
|
},
|
|
213
212
|
canAcceptBlock: () => !0
|
|
214
213
|
});
|
|
215
|
-
const
|
|
216
|
-
const { blockProps: t, children: l, listType:
|
|
217
|
-
return !l && k(
|
|
218
|
-
|
|
219
|
-
{ ...t, ...
|
|
214
|
+
const xe = (e) => {
|
|
215
|
+
const { blockProps: t, children: l, listType: a, styles: o, tag: r, inBuilder: n } = e, i = P(v(o, "className", ""), a);
|
|
216
|
+
return !l && k(o == null ? void 0 : o.className) ? /* @__PURE__ */ s.jsx(g, { inBuilder: n, blockProps: t, text: "LIST ITEM" }) : d.createElement(
|
|
217
|
+
r || (a === "list-decimal" ? "ol" : "ul"),
|
|
218
|
+
{ ...t, ...o, className: i },
|
|
220
219
|
l
|
|
221
220
|
);
|
|
222
221
|
};
|
|
223
|
-
|
|
222
|
+
p(xe, {
|
|
224
223
|
type: "List",
|
|
225
224
|
label: "List",
|
|
226
|
-
icon:
|
|
225
|
+
icon: X,
|
|
227
226
|
category: "core",
|
|
228
227
|
group: "basic",
|
|
229
228
|
props: {
|
|
230
|
-
styles:
|
|
231
|
-
listType:
|
|
229
|
+
styles: c({ default: "" }),
|
|
230
|
+
listType: I({
|
|
232
231
|
title: "List type",
|
|
233
232
|
default: "list-disc",
|
|
234
233
|
options: [
|
|
@@ -264,501 +263,401 @@ d(ve, {
|
|
|
264
263
|
}
|
|
265
264
|
]
|
|
266
265
|
});
|
|
267
|
-
const
|
|
268
|
-
const { blockProps: t, content: l, styles:
|
|
269
|
-
return
|
|
270
|
-
...
|
|
266
|
+
const ke = (e) => {
|
|
267
|
+
const { blockProps: t, content: l, styles: a, children: o, tag: r } = e;
|
|
268
|
+
return o ? d.createElement(r || "li", { ...a, ...t }, o) : d.createElement(r || "li", {
|
|
269
|
+
...a,
|
|
271
270
|
...t,
|
|
272
271
|
dangerouslySetInnerHTML: { __html: l }
|
|
273
272
|
});
|
|
274
273
|
};
|
|
275
|
-
|
|
274
|
+
p(ke, {
|
|
276
275
|
type: "ListItem",
|
|
277
276
|
label: "List Item",
|
|
278
|
-
icon:
|
|
277
|
+
icon: Z,
|
|
279
278
|
category: "core",
|
|
280
279
|
group: "basic",
|
|
281
280
|
props: {
|
|
282
|
-
styles:
|
|
283
|
-
content:
|
|
281
|
+
styles: c({ default: "" }),
|
|
282
|
+
content: B({ title: "Content", default: "List item" })
|
|
284
283
|
},
|
|
285
284
|
canAcceptBlock: () => !0,
|
|
286
285
|
canBeNested: (e) => e === "List"
|
|
287
286
|
});
|
|
288
|
-
const
|
|
287
|
+
const ve = (e, t) => ({
|
|
289
288
|
...e,
|
|
290
289
|
className: `${e.className} ${t}`
|
|
291
290
|
}), Ie = (e) => {
|
|
292
|
-
const { blockProps: t, icon: l, styles:
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
const { blockProps: t, icon: l, styles: a, width: o, inBuilder: r, height: n } = e, i = ve(
|
|
292
|
+
a,
|
|
293
|
+
P("inline-block", o ? `w-[${o}px]` : "", n ? `h-[${n}px]` : "")
|
|
295
294
|
);
|
|
296
295
|
if (k(l))
|
|
297
|
-
return /* @__PURE__ */ s.jsx(
|
|
298
|
-
const
|
|
299
|
-
return
|
|
296
|
+
return /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "", inBuilder: r, className: "h-8 w-14" });
|
|
297
|
+
const u = l.replace(/<svg /g, '<svg class="w-[inherit] h-[inherit]" ');
|
|
298
|
+
return d.createElement("span", {
|
|
300
299
|
...t,
|
|
301
|
-
...
|
|
302
|
-
dangerouslySetInnerHTML: { __html:
|
|
300
|
+
...i,
|
|
301
|
+
dangerouslySetInnerHTML: { __html: u }
|
|
303
302
|
});
|
|
304
303
|
};
|
|
305
|
-
|
|
304
|
+
p(Ie, {
|
|
306
305
|
type: "Icon",
|
|
307
306
|
label: "Icon",
|
|
308
307
|
category: "core",
|
|
309
|
-
icon:
|
|
308
|
+
icon: J,
|
|
310
309
|
group: "media",
|
|
311
310
|
props: {
|
|
312
|
-
styles:
|
|
313
|
-
icon:
|
|
311
|
+
styles: c({ default: "text-black" }),
|
|
312
|
+
icon: E({
|
|
314
313
|
title: "Icon",
|
|
315
314
|
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>'
|
|
316
315
|
}),
|
|
317
|
-
width:
|
|
318
|
-
height:
|
|
316
|
+
width: w({ title: "Width", default: "" }),
|
|
317
|
+
height: w({ title: "Height", default: "" })
|
|
319
318
|
}
|
|
320
319
|
});
|
|
321
320
|
const Be = (e) => {
|
|
322
|
-
const { blockProps: t, image: l, styles:
|
|
323
|
-
return k(l) ? /* @__PURE__ */ s.jsx(
|
|
321
|
+
const { blockProps: t, image: l, styles: a, alt: o, height: r, width: n } = e;
|
|
322
|
+
return k(l) ? /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : d.createElement("img", {
|
|
324
323
|
...t,
|
|
325
|
-
...
|
|
324
|
+
...a,
|
|
326
325
|
src: l,
|
|
327
|
-
alt:
|
|
328
|
-
height:
|
|
326
|
+
alt: o,
|
|
327
|
+
height: r,
|
|
329
328
|
width: n
|
|
330
329
|
});
|
|
331
330
|
};
|
|
332
|
-
|
|
331
|
+
p(Be, {
|
|
333
332
|
type: "Image",
|
|
334
333
|
label: "Image",
|
|
335
334
|
category: "core",
|
|
336
|
-
icon:
|
|
335
|
+
icon: K,
|
|
337
336
|
group: "media",
|
|
338
337
|
props: {
|
|
339
|
-
styles:
|
|
340
|
-
image:
|
|
338
|
+
styles: c({ default: "" }),
|
|
339
|
+
image: j({
|
|
341
340
|
title: "Image",
|
|
342
341
|
default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
|
|
343
342
|
}),
|
|
344
|
-
alt:
|
|
345
|
-
width:
|
|
346
|
-
height:
|
|
343
|
+
alt: f({ title: "Alt", default: "" }),
|
|
344
|
+
width: f({ title: "Width", default: "" }),
|
|
345
|
+
height: f({ title: "Height", default: "" })
|
|
347
346
|
}
|
|
348
347
|
});
|
|
349
|
-
const
|
|
348
|
+
const Le = (e) => {
|
|
350
349
|
var n;
|
|
351
|
-
const { blockProps: t, inBuilder: l, styles:
|
|
352
|
-
let
|
|
353
|
-
return !
|
|
354
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
350
|
+
const { blockProps: t, inBuilder: l, styles: a, children: o } = e;
|
|
351
|
+
let r = null;
|
|
352
|
+
return !o && l && (r = // @ts-ignore
|
|
353
|
+
/* @__PURE__ */ s.jsx("div", { className: P("flex flex-col items-center justify-center", (n = e.emptyStyles) == null ? void 0 : n.className), children: /* @__PURE__ */ s.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ s.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
|
|
355
354
|
"Slot: ",
|
|
356
355
|
e.name
|
|
357
|
-
] }) }) })),
|
|
356
|
+
] }) }) })), d.createElement("div", { ...a, ...t, droppable: "yes" }, o || r);
|
|
358
357
|
};
|
|
359
|
-
|
|
358
|
+
p(Le, {
|
|
360
359
|
type: "Slot",
|
|
361
360
|
label: "Slot",
|
|
362
361
|
group: "basic",
|
|
363
362
|
category: "core",
|
|
364
363
|
hidden: !0,
|
|
365
364
|
props: {
|
|
366
|
-
styles:
|
|
367
|
-
emptyStyles:
|
|
365
|
+
styles: c({ default: "" }),
|
|
366
|
+
emptyStyles: c({ default: "" })
|
|
368
367
|
},
|
|
369
368
|
canAcceptBlock: () => !0
|
|
370
369
|
});
|
|
371
|
-
const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/,
|
|
370
|
+
const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, C = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, M = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Te = (e) => {
|
|
372
371
|
if (N.test(e)) {
|
|
373
372
|
const t = e.match(N);
|
|
374
373
|
return t ? `https://www.youtube.com/embed/${t[4]}` : e;
|
|
375
374
|
}
|
|
376
|
-
if (
|
|
377
|
-
const t = e.match(
|
|
375
|
+
if (C.test(e)) {
|
|
376
|
+
const t = e.match(C);
|
|
378
377
|
return t ? `https://player.vimeo.com/video/${t[3]}` : e;
|
|
379
378
|
}
|
|
380
|
-
if (
|
|
381
|
-
const t = e.match(
|
|
379
|
+
if (M.test(e)) {
|
|
380
|
+
const t = e.match(M);
|
|
382
381
|
return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
|
|
383
382
|
}
|
|
384
383
|
return null;
|
|
385
|
-
},
|
|
384
|
+
}, we = d.memo(
|
|
386
385
|
(e) => {
|
|
387
|
-
const { blockProps: t, inBuilder: l, styles:
|
|
388
|
-
if (k(
|
|
389
|
-
return /* @__PURE__ */ s.jsx(
|
|
390
|
-
let
|
|
391
|
-
if (
|
|
392
|
-
if (!k(
|
|
393
|
-
const
|
|
394
|
-
|
|
386
|
+
const { blockProps: t, inBuilder: l, styles: a, url: o, controls: r } = e, n = v(r, "autoPlay", !1), i = v(r, "controls", !1), u = n || v(r, "muted", !0), m = v(r, "loop", !1);
|
|
387
|
+
if (k(o))
|
|
388
|
+
return /* @__PURE__ */ s.jsx(g, { inBuilder: l, blockProps: t, text: "VIDEO URL", className: "h-36" });
|
|
389
|
+
let b = Te(o), y = null;
|
|
390
|
+
if (b) {
|
|
391
|
+
if (!k(b)) {
|
|
392
|
+
const L = [];
|
|
393
|
+
L.push(`autoplay=${n ? 1 : 0}`), L.push(`controls=${r ? 1 : 0}`), L.push(`mute=${u ? 1 : 0}&muted=${u ? 1 : 0}`), L.push(`loop=${m ? 1 : 0}`), b = `${b}?${L.join("&")}`;
|
|
395
394
|
}
|
|
396
|
-
y =
|
|
395
|
+
y = d.createElement("iframe", {
|
|
397
396
|
...t,
|
|
398
397
|
className: "absolute inset-0 w-full h-full",
|
|
399
|
-
src:
|
|
398
|
+
src: b,
|
|
400
399
|
allow: l ? "" : "autoplay *; fullscreen *",
|
|
401
400
|
allowFullScreen: !0,
|
|
402
401
|
frameBorder: 0
|
|
403
402
|
});
|
|
404
403
|
} else
|
|
405
|
-
y =
|
|
404
|
+
y = d.createElement("video", {
|
|
406
405
|
...t,
|
|
407
406
|
className: "absolute inset-0 w-full h-full",
|
|
408
|
-
src:
|
|
409
|
-
controls:
|
|
410
|
-
muted:
|
|
407
|
+
src: o,
|
|
408
|
+
controls: i,
|
|
409
|
+
muted: u,
|
|
411
410
|
autoPlay: l ? !1 : n,
|
|
412
411
|
loop: m
|
|
413
412
|
});
|
|
414
|
-
return /* @__PURE__ */ s.jsx("div", {
|
|
415
|
-
l ? /* @__PURE__ */ s.jsx("div", { ...t, ...
|
|
413
|
+
return /* @__PURE__ */ s.jsx("div", { ...$(a, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
|
|
414
|
+
l ? /* @__PURE__ */ s.jsx("div", { ...t, ...D(a, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
|
|
416
415
|
y
|
|
417
416
|
] }) });
|
|
418
417
|
}
|
|
419
418
|
);
|
|
420
|
-
|
|
419
|
+
p(we, {
|
|
421
420
|
type: "Video",
|
|
422
421
|
label: "Video",
|
|
423
422
|
category: "core",
|
|
424
|
-
icon:
|
|
423
|
+
icon: Q,
|
|
425
424
|
group: "media",
|
|
426
425
|
props: {
|
|
427
|
-
styles:
|
|
428
|
-
url:
|
|
426
|
+
styles: c({ default: "" }),
|
|
427
|
+
url: f({
|
|
429
428
|
title: "Video URL",
|
|
430
429
|
default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
|
|
431
430
|
}),
|
|
432
|
-
controls:
|
|
431
|
+
controls: O({
|
|
433
432
|
title: "Controls",
|
|
434
433
|
properties: {
|
|
435
|
-
autoPlay:
|
|
436
|
-
controls:
|
|
437
|
-
loop:
|
|
438
|
-
muted:
|
|
434
|
+
autoPlay: h({ title: "Autoplay", default: !0 }),
|
|
435
|
+
controls: h({ title: "Show controls", default: !1 }),
|
|
436
|
+
loop: h({ title: "Loop", default: !1 }),
|
|
437
|
+
muted: h({ title: "Muted", default: !0 })
|
|
439
438
|
}
|
|
440
439
|
})
|
|
441
440
|
}
|
|
442
441
|
});
|
|
443
|
-
const Se =
|
|
442
|
+
const Se = d.memo(
|
|
444
443
|
(e) => {
|
|
445
|
-
const { blockProps: t, styles: l, content:
|
|
444
|
+
const { blockProps: t, styles: l, content: a, inBuilder: o } = e;
|
|
446
445
|
return /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
o ? /* @__PURE__ */ s.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
|
|
447
|
+
d.createElement("div", {
|
|
449
448
|
...l,
|
|
450
|
-
dangerouslySetInnerHTML: { __html:
|
|
449
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
451
450
|
})
|
|
452
451
|
] });
|
|
453
452
|
}
|
|
454
453
|
);
|
|
455
|
-
|
|
454
|
+
p(Se, {
|
|
456
455
|
type: "CustomHTML",
|
|
457
456
|
label: "Custom HTML",
|
|
458
457
|
category: "core",
|
|
459
|
-
icon:
|
|
458
|
+
icon: ee,
|
|
460
459
|
group: "advanced",
|
|
461
460
|
props: {
|
|
462
|
-
styles:
|
|
463
|
-
content:
|
|
461
|
+
styles: c({ default: "" }),
|
|
462
|
+
content: B({
|
|
464
463
|
title: "HTML Content",
|
|
465
464
|
default: "<div><p>HTML Snippet goes here...</p></div>",
|
|
466
465
|
placeholder: "Enter custom HTML code here"
|
|
467
466
|
})
|
|
468
467
|
}
|
|
469
468
|
});
|
|
470
|
-
const
|
|
469
|
+
const _e = (e) => {
|
|
471
470
|
const { blockProps: t, styles: l } = e;
|
|
472
|
-
return
|
|
471
|
+
return d.createElement("hr", { ...l, ...t });
|
|
473
472
|
};
|
|
474
|
-
|
|
473
|
+
p(_e, {
|
|
475
474
|
type: "Divider",
|
|
476
475
|
label: "Divider",
|
|
477
476
|
category: "core",
|
|
478
|
-
icon:
|
|
477
|
+
icon: te,
|
|
479
478
|
group: "basic",
|
|
480
479
|
props: {
|
|
481
|
-
styles:
|
|
480
|
+
styles: c({ default: "bg-gray-900 h-0.5 py-2 my-1" })
|
|
482
481
|
}
|
|
483
482
|
});
|
|
484
|
-
const
|
|
485
|
-
|
|
483
|
+
const je = (e) => e.inBuilder ? /* @__PURE__ */ s.jsx("span", { className: "flex", ...e.blockProps, children: e.content }) : `${e.content}`;
|
|
484
|
+
p(je, {
|
|
486
485
|
type: "Text",
|
|
487
486
|
label: "Text",
|
|
488
487
|
hidden: !0,
|
|
489
488
|
category: "core",
|
|
490
489
|
group: "typography",
|
|
491
|
-
icon:
|
|
490
|
+
icon: R,
|
|
492
491
|
props: {
|
|
493
|
-
content:
|
|
492
|
+
content: B({ title: "Content", defaultValue: "" })
|
|
494
493
|
}
|
|
495
494
|
});
|
|
496
|
-
const
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
};
|
|
500
|
-
d(Pe, {
|
|
501
|
-
type: "Accordion",
|
|
502
|
-
label: "Accordion",
|
|
503
|
-
category: "core",
|
|
504
|
-
group: "advanced",
|
|
505
|
-
hidden: !0,
|
|
506
|
-
props: {
|
|
507
|
-
styles: i({ default: "" })
|
|
508
|
-
},
|
|
509
|
-
// @ts-ignore
|
|
510
|
-
blocks: () => {
|
|
511
|
-
const e = "accordion" + g();
|
|
512
|
-
return [
|
|
513
|
-
{ _id: "a", _type: "Accordion", _name: "Accordion" },
|
|
514
|
-
{
|
|
515
|
-
_id: "b",
|
|
516
|
-
_type: "AccordionTrigger",
|
|
517
|
-
_parent: "a",
|
|
518
|
-
_name: "Accordion Trigger",
|
|
519
|
-
styles_attrs: { "aria-controls": e }
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
_id: "b1",
|
|
523
|
-
_type: "Icon",
|
|
524
|
-
_parent: "b",
|
|
525
|
-
styles: `${j},hs-accordion-active:hidden hs-accordion-active:text-blue-600 hs-accordion-active:group-hover:text-blue-600 block size-4 text-gray-600 group-hover:text-gray-500 dark:text-neutral-400`,
|
|
526
|
-
icon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
527
|
-
<path d="M5 12h14"></path>
|
|
528
|
-
<path d="M12 5v14"></path>
|
|
529
|
-
</svg>`
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
_id: "b2",
|
|
533
|
-
_type: "Icon",
|
|
534
|
-
_parent: "b",
|
|
535
|
-
styles: `${j},hs-accordion-active:block hs-accordion-active:text-blue-600 hs-accordion-active:group-hover:text-blue-600 hidden size-4 text-gray-600 group-hover:text-gray-500 dark:text-neutral-400`,
|
|
536
|
-
icon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
537
|
-
<path d="M5 12h14"></path>
|
|
538
|
-
</svg>`
|
|
539
|
-
},
|
|
540
|
-
{ _id: "b1", _type: "Text", _parent: "b", content: "Accordion Title" },
|
|
541
|
-
{
|
|
542
|
-
_id: "c",
|
|
543
|
-
_type: "AccordionContent",
|
|
544
|
-
_parent: "a",
|
|
545
|
-
_name: "Accordion Content",
|
|
546
|
-
styles: `${j},w-full overflow-hidden transition-[height] duration-300 px-6 py-3`,
|
|
547
|
-
styles_attrs: { "aria-labelledby": e }
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
_id: "c1",
|
|
551
|
-
_type: "Text",
|
|
552
|
-
_parent: "c",
|
|
553
|
-
content: "It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element."
|
|
554
|
-
}
|
|
555
|
-
];
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
const Ce = ({ children: e, blockProps: t, styles: l }) => {
|
|
559
|
-
const o = L(l, "hs-accordion-toggle");
|
|
560
|
-
return /* @__PURE__ */ s.jsx("button", { ...o, ...t, children: e });
|
|
561
|
-
};
|
|
562
|
-
d(Ce, {
|
|
563
|
-
type: "AccordionTrigger",
|
|
564
|
-
label: "Accordion Trigger",
|
|
565
|
-
category: "core",
|
|
566
|
-
group: "advanced",
|
|
567
|
-
hidden: !0,
|
|
568
|
-
props: {
|
|
569
|
-
styles: i({
|
|
570
|
-
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"
|
|
571
|
-
})
|
|
572
|
-
},
|
|
573
|
-
canAcceptBlock: () => !0,
|
|
574
|
-
canDelete: () => !1,
|
|
575
|
-
canMove: () => !1,
|
|
576
|
-
canDuplicate: () => !1
|
|
577
|
-
});
|
|
578
|
-
const Me = ({ children: e, blockProps: t, styles: l }) => {
|
|
579
|
-
const o = L(l, "hs-accordion-content");
|
|
580
|
-
return /* @__PURE__ */ s.jsx("div", { ...o, ...t, children: e });
|
|
581
|
-
};
|
|
582
|
-
d(Me, {
|
|
583
|
-
type: "AccordionContent",
|
|
584
|
-
label: "Accordion Content",
|
|
585
|
-
category: "core",
|
|
586
|
-
group: "advanced",
|
|
587
|
-
hidden: !0,
|
|
588
|
-
props: {
|
|
589
|
-
styles: i({ default: "w-full overflow-hidden transition-[height] duration-300" })
|
|
590
|
-
},
|
|
591
|
-
canAcceptBlock: () => !0,
|
|
592
|
-
canDelete: () => !1,
|
|
593
|
-
canMove: () => !1,
|
|
594
|
-
canDuplicate: () => !1
|
|
595
|
-
});
|
|
596
|
-
const Ne = (e) => {
|
|
597
|
-
const { blockProps: t, backgroundImage: l, children: o, styles: r } = e;
|
|
598
|
-
let a = {};
|
|
599
|
-
return l && (a = { backgroundImage: `url(${l})` }), u.createElement("div", { ...t, ...r, style: a }, o);
|
|
495
|
+
const Ee = (e) => {
|
|
496
|
+
const { blockProps: t, backgroundImage: l, children: a, styles: o } = e;
|
|
497
|
+
let r = {};
|
|
498
|
+
return l && (r = { backgroundImage: `url(${l})` }), d.createElement("div", { ...t, ...o, style: r }, a);
|
|
600
499
|
};
|
|
601
|
-
|
|
500
|
+
p(Ee, {
|
|
602
501
|
type: "Body",
|
|
603
502
|
label: "Body",
|
|
604
503
|
category: "core",
|
|
605
504
|
group: "basic",
|
|
606
505
|
hidden: !0,
|
|
607
506
|
props: {
|
|
608
|
-
styles:
|
|
609
|
-
backgroundImage:
|
|
507
|
+
styles: c({ default: "font-body antialiased" }),
|
|
508
|
+
backgroundImage: j({ title: "Background Image" })
|
|
610
509
|
},
|
|
611
510
|
canAcceptBlock: () => !0,
|
|
612
511
|
canDelete: () => !1,
|
|
613
512
|
canMove: () => !1,
|
|
614
513
|
canDuplicate: () => !1
|
|
615
514
|
});
|
|
616
|
-
const
|
|
515
|
+
const Pe = (e) => {
|
|
617
516
|
const { blockProps: t, styles: l } = e;
|
|
618
|
-
return
|
|
517
|
+
return d.createElement("br", { ...t, ...l });
|
|
619
518
|
};
|
|
620
|
-
|
|
519
|
+
p(Pe, {
|
|
621
520
|
type: "LineBreak",
|
|
622
521
|
label: "Line Break",
|
|
623
522
|
category: "core",
|
|
624
523
|
group: "basic",
|
|
625
524
|
hidden: !0,
|
|
626
|
-
icon:
|
|
525
|
+
icon: R,
|
|
627
526
|
props: {
|
|
628
|
-
styles:
|
|
527
|
+
styles: c({ default: "" })
|
|
629
528
|
}
|
|
630
529
|
});
|
|
631
530
|
const S = (e) => {
|
|
632
|
-
const t = (
|
|
633
|
-
_id:
|
|
634
|
-
_parent:
|
|
531
|
+
const t = (r, n) => ({
|
|
532
|
+
_id: x(),
|
|
533
|
+
_parent: r,
|
|
635
534
|
_type: "TableCell",
|
|
636
535
|
styles: "#styles:,",
|
|
637
536
|
content: `${e === "TableHead" ? "Table Head" : "Table Cell " + n}`
|
|
638
|
-
}), l = (
|
|
639
|
-
const n =
|
|
537
|
+
}), l = (r) => {
|
|
538
|
+
const n = x(), i = {
|
|
640
539
|
_type: "TableRow",
|
|
641
540
|
_id: n,
|
|
642
541
|
styles: "#styles:,border-b"
|
|
643
542
|
};
|
|
644
|
-
return
|
|
645
|
-
},
|
|
646
|
-
const n =
|
|
543
|
+
return r && (i._parent = r), [i, t(n, "1"), t(n, "2"), t(n, "3")];
|
|
544
|
+
}, a = (r) => {
|
|
545
|
+
const n = x(), i = {
|
|
647
546
|
_id: n,
|
|
648
547
|
_type: "TableHead",
|
|
649
548
|
styles: "#styles:,font-medium"
|
|
650
549
|
};
|
|
651
|
-
return
|
|
652
|
-
},
|
|
653
|
-
const n =
|
|
550
|
+
return r && (i._parent = r), [i, ...l(n)];
|
|
551
|
+
}, o = (r) => {
|
|
552
|
+
const n = x(), i = {
|
|
654
553
|
_id: n,
|
|
655
554
|
_type: "TableBody",
|
|
656
555
|
styles: "#styles:,"
|
|
657
556
|
};
|
|
658
|
-
return
|
|
557
|
+
return r && (i._parent = r), [i, ...l(n), ...l(n)];
|
|
659
558
|
};
|
|
660
559
|
if (e === "Table") {
|
|
661
|
-
const
|
|
560
|
+
const r = x();
|
|
662
561
|
return [
|
|
663
562
|
{
|
|
664
|
-
_id:
|
|
563
|
+
_id: r,
|
|
665
564
|
_type: "Table",
|
|
666
565
|
styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
|
|
667
566
|
},
|
|
668
|
-
...
|
|
669
|
-
...r
|
|
567
|
+
...a(r),
|
|
568
|
+
...o(r)
|
|
670
569
|
];
|
|
671
570
|
}
|
|
672
|
-
return e === "TableRow" ? l() : e === "TableHead" ?
|
|
673
|
-
},
|
|
674
|
-
const { blockProps: t, children: l, styles:
|
|
675
|
-
return l ?
|
|
571
|
+
return e === "TableRow" ? l() : e === "TableHead" ? a() : e === "TableBody" ? o() : [];
|
|
572
|
+
}, Ne = (e) => {
|
|
573
|
+
const { blockProps: t, children: l, styles: a } = e;
|
|
574
|
+
return l ? d.createElement("table", { ...t, ...a }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE HEAD / BODY" });
|
|
676
575
|
};
|
|
677
|
-
|
|
576
|
+
p(Ne, {
|
|
678
577
|
type: "Table",
|
|
679
578
|
label: "Table",
|
|
680
579
|
category: "core",
|
|
681
580
|
group: "table",
|
|
682
581
|
hidden: !0,
|
|
683
|
-
icon:
|
|
582
|
+
icon: le,
|
|
684
583
|
props: {
|
|
685
|
-
styles:
|
|
584
|
+
styles: c({ default: "" })
|
|
686
585
|
},
|
|
687
586
|
blocks: S("Table")
|
|
688
587
|
});
|
|
689
|
-
const
|
|
690
|
-
const { blockProps: t, children: l, styles:
|
|
691
|
-
return l ?
|
|
588
|
+
const Ce = (e) => {
|
|
589
|
+
const { blockProps: t, children: l, styles: a } = e;
|
|
590
|
+
return l ? d.createElement("thead", { ...t, ...a }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE ROW" });
|
|
692
591
|
};
|
|
693
|
-
|
|
592
|
+
p(Ce, {
|
|
694
593
|
type: "TableHead",
|
|
695
594
|
label: "Table Head",
|
|
696
595
|
category: "core",
|
|
697
596
|
group: "table",
|
|
698
597
|
hidden: !0,
|
|
699
|
-
icon:
|
|
598
|
+
icon: oe,
|
|
700
599
|
props: {
|
|
701
|
-
styles:
|
|
600
|
+
styles: c({ default: "" })
|
|
702
601
|
},
|
|
703
602
|
blocks: S("TableHead")
|
|
704
603
|
});
|
|
705
|
-
const
|
|
706
|
-
const { blockProps: t, children: l, styles:
|
|
707
|
-
return l ?
|
|
604
|
+
const Me = (e) => {
|
|
605
|
+
const { blockProps: t, children: l, styles: a } = e;
|
|
606
|
+
return l ? d.createElement("tbody", { ...t, ...a }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE ROW" });
|
|
708
607
|
};
|
|
709
|
-
|
|
608
|
+
p(Me, {
|
|
710
609
|
type: "TableBody",
|
|
711
610
|
label: "Table Body",
|
|
712
611
|
category: "core",
|
|
713
612
|
group: "table",
|
|
714
613
|
hidden: !0,
|
|
715
|
-
icon:
|
|
614
|
+
icon: ae,
|
|
716
615
|
props: {
|
|
717
|
-
styles:
|
|
616
|
+
styles: c({ default: "" })
|
|
718
617
|
},
|
|
719
618
|
blocks: S("TableBody")
|
|
720
619
|
});
|
|
721
|
-
const
|
|
722
|
-
const { blockProps: t, children: l, styles:
|
|
723
|
-
return l ?
|
|
620
|
+
const He = (e) => {
|
|
621
|
+
const { blockProps: t, children: l, styles: a } = e;
|
|
622
|
+
return l ? d.createElement("tr", { ...t, ...a }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE CELL" });
|
|
724
623
|
};
|
|
725
|
-
|
|
624
|
+
p(He, {
|
|
726
625
|
type: "TableRow",
|
|
727
626
|
label: "Table Row",
|
|
728
627
|
category: "core",
|
|
729
628
|
group: "table",
|
|
730
629
|
hidden: !0,
|
|
731
|
-
icon:
|
|
630
|
+
icon: re,
|
|
732
631
|
props: {
|
|
733
|
-
styles:
|
|
632
|
+
styles: c({ default: "w-full" })
|
|
734
633
|
},
|
|
735
634
|
blocks: S("TableRow")
|
|
736
635
|
});
|
|
737
|
-
const
|
|
738
|
-
const { blockProps: t, children: l, content:
|
|
739
|
-
return !l && k(
|
|
636
|
+
const Re = (e) => {
|
|
637
|
+
const { blockProps: t, children: l, content: a, styles: o } = e;
|
|
638
|
+
return !l && k(a) ? /* @__PURE__ */ s.jsx(g, { blockProps: t }) : l ? d.createElement("td", { ...t, ...o }, l) : d.createElement("td", {
|
|
740
639
|
...t,
|
|
741
|
-
...
|
|
742
|
-
dangerouslySetInnerHTML: { __html:
|
|
640
|
+
...o,
|
|
641
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
743
642
|
});
|
|
744
643
|
};
|
|
745
|
-
|
|
644
|
+
p(Re, {
|
|
746
645
|
type: "TableCell",
|
|
747
646
|
label: "Table Cell",
|
|
748
647
|
category: "core",
|
|
749
648
|
group: "table",
|
|
750
649
|
hidden: !0,
|
|
751
|
-
icon:
|
|
650
|
+
icon: se,
|
|
752
651
|
props: {
|
|
753
|
-
styles:
|
|
754
|
-
content:
|
|
652
|
+
styles: c({ default: "" }),
|
|
653
|
+
content: T({ title: "Content", default: "Table cell item" })
|
|
755
654
|
}
|
|
756
655
|
});
|
|
757
|
-
const
|
|
758
|
-
const { blockProps: t, errorMessage: l, name:
|
|
759
|
-
let m =
|
|
760
|
-
|
|
761
|
-
const
|
|
656
|
+
const Ae = (e) => {
|
|
657
|
+
const { blockProps: t, errorMessage: l, name: a, _type: o, successMessage: r, action: n, styles: i, children: u } = e;
|
|
658
|
+
let m = u;
|
|
659
|
+
u || (m = /* @__PURE__ */ s.jsx(g, { blockProps: {}, text: "FORM FIELDS" }));
|
|
660
|
+
const b = {
|
|
762
661
|
"x-data": "useForm",
|
|
763
662
|
"x-on:submit.prevent": "post"
|
|
764
663
|
}, y = {
|
|
@@ -768,99 +667,99 @@ const ze = (e) => {
|
|
|
768
667
|
return /* @__PURE__ */ s.jsxs(
|
|
769
668
|
"form",
|
|
770
669
|
{
|
|
771
|
-
...
|
|
670
|
+
...b,
|
|
772
671
|
"data-error": l,
|
|
773
|
-
"data-success":
|
|
672
|
+
"data-success": r,
|
|
774
673
|
method: "post",
|
|
775
674
|
action: n,
|
|
776
675
|
...t,
|
|
777
|
-
...
|
|
676
|
+
...i,
|
|
778
677
|
children: [
|
|
779
678
|
/* @__PURE__ */ s.jsx("div", { ...y }),
|
|
780
|
-
/* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value:
|
|
679
|
+
/* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value: a || o }),
|
|
781
680
|
m
|
|
782
681
|
]
|
|
783
682
|
}
|
|
784
683
|
);
|
|
785
684
|
};
|
|
786
|
-
|
|
685
|
+
p(Ae, {
|
|
787
686
|
type: "Form",
|
|
788
687
|
label: "Form",
|
|
789
688
|
category: "core",
|
|
790
|
-
icon:
|
|
689
|
+
icon: ne,
|
|
791
690
|
group: "form",
|
|
792
691
|
hidden: !0,
|
|
793
692
|
props: {
|
|
794
|
-
styles:
|
|
795
|
-
action:
|
|
693
|
+
styles: c({ default: "" }),
|
|
694
|
+
action: f({
|
|
796
695
|
title: "Submit URL",
|
|
797
696
|
default: "/api/form/submit"
|
|
798
697
|
}),
|
|
799
|
-
errorMessage:
|
|
698
|
+
errorMessage: T({
|
|
800
699
|
title: "Error Message",
|
|
801
700
|
default: "Something went wrong. Please try again"
|
|
802
701
|
}),
|
|
803
|
-
successMessage:
|
|
702
|
+
successMessage: T({
|
|
804
703
|
title: "Success Message",
|
|
805
704
|
default: "Thank you for your submission."
|
|
806
705
|
})
|
|
807
706
|
},
|
|
808
707
|
canAcceptBlock: () => !0
|
|
809
708
|
});
|
|
810
|
-
const
|
|
811
|
-
const { blockProps: t, content: l, styles:
|
|
812
|
-
return
|
|
813
|
-
...
|
|
709
|
+
const Fe = (e) => {
|
|
710
|
+
const { blockProps: t, content: l, styles: a, children: o } = e, r = { ...a, ...t };
|
|
711
|
+
return o ? d.createElement("label", r, o) : d.createElement("label", {
|
|
712
|
+
...r,
|
|
814
713
|
dangerouslySetInnerHTML: { __html: l }
|
|
815
714
|
});
|
|
816
715
|
};
|
|
817
|
-
|
|
716
|
+
p(Fe, {
|
|
818
717
|
type: "Label",
|
|
819
718
|
label: "Label",
|
|
820
719
|
category: "core",
|
|
821
|
-
icon:
|
|
720
|
+
icon: ie,
|
|
822
721
|
group: "form",
|
|
823
722
|
hidden: !0,
|
|
824
723
|
props: {
|
|
825
|
-
styles:
|
|
826
|
-
content:
|
|
724
|
+
styles: c({ default: "" }),
|
|
725
|
+
content: f({ title: "Content", default: "Label" })
|
|
827
726
|
}
|
|
828
727
|
});
|
|
829
|
-
const
|
|
830
|
-
const { blockProps: t, inBuilder: l, label:
|
|
728
|
+
const $e = (e) => {
|
|
729
|
+
const { blockProps: t, inBuilder: l, label: a, placeholder: o, styles: r, inputStyles: n, icon: i, iconPos: u } = e, m = x(), b = {
|
|
831
730
|
"x-bind:disabled": "formLoading"
|
|
832
731
|
};
|
|
833
732
|
return /* @__PURE__ */ s.jsxs(
|
|
834
733
|
"button",
|
|
835
734
|
{
|
|
836
735
|
id: m,
|
|
837
|
-
...
|
|
736
|
+
...b,
|
|
838
737
|
...n,
|
|
839
|
-
...
|
|
738
|
+
...r,
|
|
840
739
|
...t || {},
|
|
841
740
|
type: l ? "button" : "submit",
|
|
842
|
-
placeholder:
|
|
741
|
+
placeholder: o,
|
|
843
742
|
children: [
|
|
844
|
-
|
|
845
|
-
|
|
743
|
+
a,
|
|
744
|
+
i && /* @__PURE__ */ s.jsx("span", { className: u, dangerouslySetInnerHTML: { __html: i } })
|
|
846
745
|
]
|
|
847
746
|
}
|
|
848
747
|
);
|
|
849
748
|
};
|
|
850
|
-
|
|
749
|
+
p($e, {
|
|
851
750
|
type: "FormButton",
|
|
852
751
|
label: "Submit Button",
|
|
853
752
|
category: "core",
|
|
854
|
-
icon:
|
|
753
|
+
icon: H,
|
|
855
754
|
group: "form",
|
|
856
755
|
hidden: !0,
|
|
857
756
|
props: {
|
|
858
|
-
label:
|
|
859
|
-
styles:
|
|
757
|
+
label: f({ title: "Label", default: "Submit" }),
|
|
758
|
+
styles: c({
|
|
860
759
|
default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
|
|
861
760
|
}),
|
|
862
|
-
icon:
|
|
863
|
-
iconPos:
|
|
761
|
+
icon: E({ title: "Icon", default: "" }),
|
|
762
|
+
iconPos: I({
|
|
864
763
|
title: "Icon Position",
|
|
865
764
|
default: "order-last",
|
|
866
765
|
options: [
|
|
@@ -870,104 +769,104 @@ d(Oe, {
|
|
|
870
769
|
})
|
|
871
770
|
}
|
|
872
771
|
});
|
|
873
|
-
const
|
|
874
|
-
const { blockProps: t, fieldName: l, label:
|
|
875
|
-
return
|
|
772
|
+
const De = (e) => {
|
|
773
|
+
const { blockProps: t, fieldName: l, label: a, styles: o, inputStyles: r, required: n, checked: i, showLabel: u = !0 } = e, m = x();
|
|
774
|
+
return u ? /* @__PURE__ */ s.jsxs("div", { ...o, ...t, children: [
|
|
876
775
|
/* @__PURE__ */ s.jsx(
|
|
877
776
|
"input",
|
|
878
777
|
{
|
|
879
|
-
...
|
|
778
|
+
...r,
|
|
880
779
|
name: l,
|
|
881
780
|
id: m,
|
|
882
781
|
type: "checkbox",
|
|
883
782
|
required: n,
|
|
884
|
-
defaultChecked:
|
|
783
|
+
defaultChecked: i
|
|
885
784
|
}
|
|
886
785
|
),
|
|
887
|
-
|
|
786
|
+
a && a !== "Label" && /* @__PURE__ */ s.jsx("label", { htmlFor: m, children: a })
|
|
888
787
|
] }) : /* @__PURE__ */ s.jsx(
|
|
889
788
|
"input",
|
|
890
789
|
{
|
|
891
790
|
id: m,
|
|
892
791
|
...t,
|
|
893
|
-
...a,
|
|
894
792
|
...r,
|
|
793
|
+
...o,
|
|
895
794
|
type: "checkbox",
|
|
896
795
|
required: n,
|
|
897
796
|
name: l
|
|
898
797
|
}
|
|
899
798
|
);
|
|
900
799
|
};
|
|
901
|
-
|
|
800
|
+
p(De, {
|
|
902
801
|
type: "Checkbox",
|
|
903
802
|
label: "Checkbox",
|
|
904
803
|
category: "core",
|
|
905
|
-
icon:
|
|
804
|
+
icon: ce,
|
|
906
805
|
group: "form",
|
|
907
806
|
hidden: !0,
|
|
908
807
|
props: {
|
|
909
|
-
fieldName:
|
|
910
|
-
styles:
|
|
911
|
-
label:
|
|
912
|
-
checked:
|
|
913
|
-
required:
|
|
808
|
+
fieldName: f({ title: "Field Name", default: "checkbox" }),
|
|
809
|
+
styles: c({ default: "flex items-center gap-x-2" }),
|
|
810
|
+
label: f({ title: "Label", default: "Label" }),
|
|
811
|
+
checked: h({ title: "Checked", default: !1 }),
|
|
812
|
+
required: h({ title: "Required", default: !1 })
|
|
914
813
|
}
|
|
915
814
|
});
|
|
916
|
-
const
|
|
815
|
+
const qe = (e) => {
|
|
917
816
|
const {
|
|
918
817
|
blockProps: t,
|
|
919
818
|
label: l,
|
|
920
|
-
placeholder:
|
|
921
|
-
styles:
|
|
922
|
-
inputStyles:
|
|
819
|
+
placeholder: a,
|
|
820
|
+
styles: o,
|
|
821
|
+
inputStyles: r,
|
|
923
822
|
showLabel: n,
|
|
924
|
-
required:
|
|
925
|
-
inputType:
|
|
823
|
+
required: i,
|
|
824
|
+
inputType: u = "text",
|
|
926
825
|
inBuilder: m,
|
|
927
|
-
fieldName:
|
|
928
|
-
} = e, y =
|
|
929
|
-
return !n ||
|
|
826
|
+
fieldName: b
|
|
827
|
+
} = e, y = x();
|
|
828
|
+
return !n || u === "submit" ? (u === "submit" && (t.value = l), /* @__PURE__ */ s.jsx(
|
|
930
829
|
"input",
|
|
931
830
|
{
|
|
932
831
|
id: y,
|
|
933
|
-
name:
|
|
832
|
+
name: b,
|
|
934
833
|
readOnly: m,
|
|
935
834
|
...t,
|
|
936
|
-
...a,
|
|
937
835
|
...r,
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
836
|
+
...o,
|
|
837
|
+
type: u,
|
|
838
|
+
placeholder: a,
|
|
839
|
+
required: i
|
|
941
840
|
}
|
|
942
|
-
)) : /* @__PURE__ */ s.jsxs("div", { ...
|
|
841
|
+
)) : /* @__PURE__ */ s.jsxs("div", { ...o, ...t, children: [
|
|
943
842
|
n && /* @__PURE__ */ s.jsx("label", { htmlFor: y, children: l }),
|
|
944
843
|
/* @__PURE__ */ s.jsx(
|
|
945
844
|
"input",
|
|
946
845
|
{
|
|
947
|
-
name:
|
|
846
|
+
name: b,
|
|
948
847
|
readOnly: m,
|
|
949
|
-
...
|
|
848
|
+
...r,
|
|
950
849
|
id: y,
|
|
951
|
-
type:
|
|
952
|
-
placeholder:
|
|
953
|
-
required:
|
|
850
|
+
type: u,
|
|
851
|
+
placeholder: a,
|
|
852
|
+
required: i
|
|
954
853
|
}
|
|
955
854
|
)
|
|
956
855
|
] });
|
|
957
856
|
};
|
|
958
|
-
|
|
857
|
+
p(qe, {
|
|
959
858
|
type: "Input",
|
|
960
859
|
label: "Input",
|
|
961
860
|
category: "core",
|
|
962
|
-
icon:
|
|
861
|
+
icon: A,
|
|
963
862
|
group: "form",
|
|
964
863
|
hidden: !0,
|
|
965
864
|
props: {
|
|
966
|
-
styles:
|
|
967
|
-
fieldName:
|
|
968
|
-
inputType:
|
|
865
|
+
styles: c({ default: "" }),
|
|
866
|
+
fieldName: f({ title: "Field Name", default: "input" }),
|
|
867
|
+
inputType: I({
|
|
969
868
|
title: "Type",
|
|
970
|
-
options:
|
|
869
|
+
options: _(
|
|
971
870
|
["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
|
|
972
871
|
(e) => ({
|
|
973
872
|
value: e,
|
|
@@ -976,77 +875,77 @@ d(Ue, {
|
|
|
976
875
|
),
|
|
977
876
|
default: "text"
|
|
978
877
|
}),
|
|
979
|
-
value:
|
|
980
|
-
showLabel:
|
|
981
|
-
inputStyles:
|
|
982
|
-
label:
|
|
983
|
-
placeholder:
|
|
878
|
+
value: f({ title: "Value", default: "" }),
|
|
879
|
+
showLabel: h({ title: "Show label", default: !0 }),
|
|
880
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
881
|
+
label: f({ title: "Label", default: "Label" }),
|
|
882
|
+
placeholder: f({
|
|
984
883
|
title: "Placeholder",
|
|
985
884
|
default: "Placeholder"
|
|
986
885
|
}),
|
|
987
|
-
required:
|
|
886
|
+
required: h({ title: "Required", default: !1 })
|
|
988
887
|
}
|
|
989
888
|
});
|
|
990
|
-
const
|
|
991
|
-
const { blockProps: t, fieldName: l, label:
|
|
992
|
-
return
|
|
993
|
-
/* @__PURE__ */ s.jsx("input", { ...
|
|
994
|
-
|
|
889
|
+
const ze = (e) => {
|
|
890
|
+
const { blockProps: t, fieldName: l, label: a, styles: o, inputStyles: r, checked: n, required: i, showLabel: u = !0 } = e, m = x();
|
|
891
|
+
return u ? /* @__PURE__ */ s.jsxs("div", { ...o, ...t, children: [
|
|
892
|
+
/* @__PURE__ */ s.jsx("input", { ...r, name: l, id: m, type: "radio", required: i, defaultChecked: n }),
|
|
893
|
+
a && /* @__PURE__ */ s.jsx("label", { htmlFor: m, children: a })
|
|
995
894
|
] }) : /* @__PURE__ */ s.jsx(
|
|
996
895
|
"input",
|
|
997
896
|
{
|
|
998
897
|
id: m,
|
|
999
898
|
...t,
|
|
1000
|
-
...a,
|
|
1001
899
|
...r,
|
|
900
|
+
...o,
|
|
1002
901
|
type: "radio",
|
|
1003
|
-
required:
|
|
902
|
+
required: i,
|
|
1004
903
|
checked: n,
|
|
1005
904
|
name: l
|
|
1006
905
|
}
|
|
1007
906
|
);
|
|
1008
907
|
};
|
|
1009
|
-
|
|
908
|
+
p(ze, {
|
|
1010
909
|
type: "Radio",
|
|
1011
910
|
label: "Radio",
|
|
1012
911
|
category: "core",
|
|
1013
|
-
icon:
|
|
912
|
+
icon: de,
|
|
1014
913
|
group: "form",
|
|
1015
914
|
hidden: !0,
|
|
1016
915
|
props: {
|
|
1017
|
-
styles:
|
|
1018
|
-
fieldName:
|
|
1019
|
-
label:
|
|
1020
|
-
checked:
|
|
1021
|
-
required:
|
|
916
|
+
styles: c({ default: "flex items-center w-max gap-x-2" }),
|
|
917
|
+
fieldName: f({ title: "Field Name", default: "radio" }),
|
|
918
|
+
label: f({ title: "Label", default: "Label" }),
|
|
919
|
+
checked: h({ title: "Checked", default: !1 }),
|
|
920
|
+
required: h({ title: "Required", default: !1 })
|
|
1022
921
|
}
|
|
1023
922
|
});
|
|
1024
|
-
const
|
|
923
|
+
const Oe = (e) => {
|
|
1025
924
|
const {
|
|
1026
925
|
blockProps: t,
|
|
1027
926
|
fieldName: l,
|
|
1028
|
-
label:
|
|
1029
|
-
placeholder:
|
|
1030
|
-
styles:
|
|
927
|
+
label: a,
|
|
928
|
+
placeholder: o,
|
|
929
|
+
styles: r,
|
|
1031
930
|
inputStyles: n,
|
|
1032
|
-
required:
|
|
1033
|
-
showLabel:
|
|
931
|
+
required: i,
|
|
932
|
+
showLabel: u,
|
|
1034
933
|
_multiple: m = !1
|
|
1035
|
-
} = e,
|
|
1036
|
-
return
|
|
1037
|
-
|
|
934
|
+
} = e, b = x();
|
|
935
|
+
return u ? /* @__PURE__ */ s.jsxs("div", { ...r, children: [
|
|
936
|
+
u && /* @__PURE__ */ s.jsx("label", { htmlFor: b, children: a }),
|
|
1038
937
|
/* @__PURE__ */ s.jsxs(
|
|
1039
938
|
"select",
|
|
1040
939
|
{
|
|
1041
940
|
...n,
|
|
1042
|
-
id:
|
|
1043
|
-
placeholder:
|
|
1044
|
-
required:
|
|
941
|
+
id: b,
|
|
942
|
+
placeholder: o,
|
|
943
|
+
required: i,
|
|
1045
944
|
multiple: m,
|
|
1046
945
|
name: l,
|
|
1047
946
|
children: [
|
|
1048
|
-
/* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children:
|
|
1049
|
-
|
|
947
|
+
/* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
948
|
+
_(e.options, (y) => /* @__PURE__ */ s.jsx(
|
|
1050
949
|
"option",
|
|
1051
950
|
{
|
|
1052
951
|
selected: v(y, "selected", !1),
|
|
@@ -1061,16 +960,16 @@ const Ge = (e) => {
|
|
|
1061
960
|
] }) : /* @__PURE__ */ s.jsxs(
|
|
1062
961
|
"select",
|
|
1063
962
|
{
|
|
1064
|
-
id:
|
|
1065
|
-
...
|
|
963
|
+
id: b,
|
|
964
|
+
...r,
|
|
1066
965
|
...t,
|
|
1067
|
-
placeholder:
|
|
1068
|
-
required:
|
|
966
|
+
placeholder: o,
|
|
967
|
+
required: i,
|
|
1069
968
|
multiple: m,
|
|
1070
969
|
name: l,
|
|
1071
970
|
children: [
|
|
1072
|
-
/* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children:
|
|
1073
|
-
|
|
971
|
+
/* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
|
|
972
|
+
_(e.options, (y) => /* @__PURE__ */ s.jsx(
|
|
1074
973
|
"option",
|
|
1075
974
|
{
|
|
1076
975
|
selected: v(y, "selected", !1),
|
|
@@ -1083,39 +982,39 @@ const Ge = (e) => {
|
|
|
1083
982
|
}
|
|
1084
983
|
);
|
|
1085
984
|
};
|
|
1086
|
-
|
|
985
|
+
p(Oe, {
|
|
1087
986
|
type: "Select",
|
|
1088
987
|
label: "Select",
|
|
1089
988
|
category: "core",
|
|
1090
|
-
icon:
|
|
989
|
+
icon: ue,
|
|
1091
990
|
group: "form",
|
|
1092
991
|
hidden: !0,
|
|
1093
992
|
props: {
|
|
1094
|
-
styles:
|
|
1095
|
-
fieldName:
|
|
1096
|
-
showLabel:
|
|
1097
|
-
inputStyles:
|
|
1098
|
-
label:
|
|
1099
|
-
placeholder:
|
|
993
|
+
styles: c({ default: "" }),
|
|
994
|
+
fieldName: f({ title: "Field Name", default: "select" }),
|
|
995
|
+
showLabel: h({ title: "Show label", default: !0 }),
|
|
996
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
997
|
+
label: f({ title: "Label", default: "Label" }),
|
|
998
|
+
placeholder: f({
|
|
1100
999
|
title: "Placeholder",
|
|
1101
1000
|
default: "Placeholder"
|
|
1102
1001
|
}),
|
|
1103
|
-
required:
|
|
1104
|
-
_multiple:
|
|
1105
|
-
options:
|
|
1002
|
+
required: h({ title: "Required", default: !1 }),
|
|
1003
|
+
_multiple: h({ title: "Multiple Choice", default: !1 }),
|
|
1004
|
+
options: V({
|
|
1106
1005
|
title: "Options",
|
|
1107
1006
|
itemProperties: {
|
|
1108
|
-
label:
|
|
1109
|
-
value:
|
|
1007
|
+
label: f({ title: "Label", default: "" }),
|
|
1008
|
+
value: f({ title: "Value", default: "" })
|
|
1110
1009
|
}
|
|
1111
1010
|
})
|
|
1112
1011
|
}
|
|
1113
1012
|
});
|
|
1114
|
-
const
|
|
1115
|
-
const { blockProps: t, fieldName: l, label:
|
|
1116
|
-
return
|
|
1117
|
-
|
|
1118
|
-
/* @__PURE__ */ s.jsx("textarea", { name: l, ...n, id: m, placeholder:
|
|
1013
|
+
const Ve = (e) => {
|
|
1014
|
+
const { blockProps: t, fieldName: l, label: a, placeholder: o, styles: r, inputStyles: n, _rows: i, showLabel: u } = e, m = x();
|
|
1015
|
+
return u ? /* @__PURE__ */ s.jsxs("div", { ...r, ...t, children: [
|
|
1016
|
+
u && /* @__PURE__ */ s.jsx("label", { htmlFor: m, children: a }),
|
|
1017
|
+
/* @__PURE__ */ s.jsx("textarea", { name: l, ...n, id: m, placeholder: o, rows: i })
|
|
1119
1018
|
] }) : /* @__PURE__ */ s.jsx(
|
|
1120
1019
|
"textarea",
|
|
1121
1020
|
{
|
|
@@ -1123,33 +1022,33 @@ const We = (e) => {
|
|
|
1123
1022
|
name: l,
|
|
1124
1023
|
...t,
|
|
1125
1024
|
...n,
|
|
1126
|
-
...
|
|
1127
|
-
placeholder:
|
|
1128
|
-
rows:
|
|
1025
|
+
...r,
|
|
1026
|
+
placeholder: o,
|
|
1027
|
+
rows: i
|
|
1129
1028
|
}
|
|
1130
1029
|
);
|
|
1131
1030
|
};
|
|
1132
|
-
|
|
1031
|
+
p(Ve, {
|
|
1133
1032
|
type: "TextArea",
|
|
1134
1033
|
label: "TextArea",
|
|
1135
1034
|
category: "core",
|
|
1136
|
-
icon:
|
|
1035
|
+
icon: A,
|
|
1137
1036
|
group: "form",
|
|
1138
1037
|
hidden: !0,
|
|
1139
1038
|
props: {
|
|
1140
|
-
fieldName:
|
|
1141
|
-
showLabel:
|
|
1142
|
-
styles:
|
|
1143
|
-
inputStyles:
|
|
1144
|
-
label:
|
|
1145
|
-
placeholder:
|
|
1039
|
+
fieldName: f({ title: "Field Name", default: "textarea" }),
|
|
1040
|
+
showLabel: h({ title: "Show label", default: !0 }),
|
|
1041
|
+
styles: c({ default: "" }),
|
|
1042
|
+
inputStyles: c({ default: "w-full p-1" }),
|
|
1043
|
+
label: f({ title: "Label", default: "Label" }),
|
|
1044
|
+
placeholder: f({
|
|
1146
1045
|
title: "Placeholder",
|
|
1147
1046
|
default: "Placeholder"
|
|
1148
1047
|
}),
|
|
1149
|
-
_rows:
|
|
1048
|
+
_rows: w({ title: "Rows", default: 3 })
|
|
1150
1049
|
}
|
|
1151
1050
|
});
|
|
1152
|
-
const
|
|
1051
|
+
const tt = q;
|
|
1153
1052
|
export {
|
|
1154
|
-
|
|
1053
|
+
tt as loadWebBlocks
|
|
1155
1054
|
};
|