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