@chaibuilder/sdk 1.0.15 → 1.0.16

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.
Files changed (40) hide show
  1. package/dist/{BrandingOptions-_Og7VUHA.js → BrandingOptions-ZfGlHDQN.js} +1 -1
  2. package/dist/{BrandingOptions-WSCFnWAf.cjs → BrandingOptions-qLROZ5_E.cjs} +1 -1
  3. package/dist/{CanvasArea-hT9uHhkz.cjs → CanvasArea-970i3vfn.cjs} +1 -1
  4. package/dist/{CanvasArea-cky_d2Lu.js → CanvasArea-tngPDKeT.js} +2 -2
  5. package/dist/{CurrentPage--OlBwyNE.js → CurrentPage-CMfaRNdW.js} +2 -2
  6. package/dist/{CurrentPage-x6Ez11gP.cjs → CurrentPage-ChffzjTI.cjs} +1 -1
  7. package/dist/{Layers-gEA0qWYP.cjs → Layers-GkcHf9zi.cjs} +1 -1
  8. package/dist/{Layers-uzA3QA-4.js → Layers-uB7ROW-2.js} +2 -2
  9. package/dist/{PagesPanel-tH6c9Mnv.js → PagesPanel-DVZ90k1Y.js} +4 -4
  10. package/dist/{PagesPanel-5t0bV9T2.cjs → PagesPanel-ZhyfEOgv.cjs} +1 -1
  11. package/dist/{ProjectPanel-NdrR6a8t.cjs → ProjectPanel-8oW-gW5l.cjs} +1 -1
  12. package/dist/{ProjectPanel-Q2-15-In.js → ProjectPanel-WCQDwngA.js} +3 -3
  13. package/dist/{Settings-LOqpvQ_1.js → Settings-7Km8_Iba.js} +2 -2
  14. package/dist/{Settings-DBiwm1hY.cjs → Settings-CLiAR8FT.cjs} +1 -1
  15. package/dist/{SidePanels-8JWYXGqN.cjs → SidePanels-D7Jota-n.cjs} +1 -1
  16. package/dist/{SidePanels-F7ccs2Xf.js → SidePanels-_2og328o.js} +3 -3
  17. package/dist/{add-page-modal-tIt3N8jH.cjs → add-page-modal-OBghcP4h.cjs} +1 -1
  18. package/dist/{add-page-modal-U5ramelz.js → add-page-modal-PsNV4j42.js} +2 -2
  19. package/dist/core.cjs +1 -1
  20. package/dist/core.js +3 -3
  21. package/dist/{delete-page-modal-_E87bVUZ.js → delete-page-modal-5QqRuat8.js} +2 -2
  22. package/dist/{delete-page-modal-5XuSfQT0.cjs → delete-page-modal-niJTfDhl.cjs} +1 -1
  23. package/dist/{index-_jFEo7h5.cjs → index-3_eUgIcu.cjs} +2 -2
  24. package/dist/{index-cU5eyVRU.js → index-X20Fx8GF.js} +3 -3
  25. package/dist/index-aGgHTZqR.cjs +9 -0
  26. package/dist/{index-RVm8Txnj.js → index-yWvUd-lf.js} +354 -314
  27. package/dist/{page-viewer-nLqIs_9w.js → page-viewer-_Sx79O1c.js} +3 -3
  28. package/dist/{page-viewer-BSc-5M4B.cjs → page-viewer-vgt_sF5B.cjs} +1 -1
  29. package/dist/{project-general-setting-kXh5myAr.js → project-general-setting-d4UJ9Xsf.js} +2 -2
  30. package/dist/{project-general-setting-14MA_cX5.cjs → project-general-setting-isR_XMTY.cjs} +1 -1
  31. package/dist/{project-seo-setting-nT1qo1Bb.js → project-seo-setting-FpCjw-1j.js} +2 -2
  32. package/dist/{project-seo-setting-POGPEJZ8.cjs → project-seo-setting-tUM5Jqki.cjs} +1 -1
  33. package/dist/render.cjs +1 -1
  34. package/dist/render.js +1 -1
  35. package/dist/{single-page-detail-fV-A6vJR.js → single-page-detail-Ajzk6Hdb.js} +3 -3
  36. package/dist/{single-page-detail-EgQd9TSA.cjs → single-page-detail-nAykBmpV.cjs} +1 -1
  37. package/dist/studio.cjs +1 -1
  38. package/dist/studio.js +3 -3
  39. package/package.json +1 -1
  40. package/dist/index-m2muA80V.cjs +0 -9
@@ -1,11 +1,11 @@
1
+ import { j as n } from "./jsx-runtime-qAwJ85SY.js";
1
2
  import * as u from "react";
2
- import { HeadingIcon as q, TextIcon as A, CursorTextIcon as F, ButtonIcon as N, PlusCircledIcon as $, Link1Icon as D, RowsIcon as O, ColumnsIcon as z, SketchLogoIcon as V, ImageIcon as U, VideoIcon as G, CodeIcon as W, DividerHorizontalIcon as Y, SpaceBetweenVerticallyIcon as M, TableIcon as X, BorderTopIcon as Z, BorderAllIcon as K, ViewHorizontalIcon as J, DragHandleHorizontalIcon as Q, GroupIcon as ee, LetterCaseToggleIcon as te, InputIcon as R, DropdownMenuIcon as le, CheckboxIcon as oe, RadiobuttonIcon as ne } from "@radix-ui/react-icons";
3
- import { get as b, omit as T, isNull as re, isEmpty as I, map as _ } from "lodash";
3
+ import { get as b, omit as I, isEmpty as v, isNull as A, map as _ } from "lodash";
4
4
  import { f as d } from "./index-gmZcUXyn.js";
5
- import { j as a } from "./jsx-runtime-qAwJ85SY.js";
5
+ import { PlusCircledIcon as F, HeadingIcon as $, TextIcon as D, CursorTextIcon as O, ButtonIcon as N, Link1Icon as z, RowsIcon as V, ColumnsIcon as U, SketchLogoIcon as G, ImageIcon as W, VideoIcon as Y, CodeIcon as X, DividerHorizontalIcon as Z, SpaceBetweenVerticallyIcon as M, TableIcon as K, BorderTopIcon as J, BorderAllIcon as Q, ViewHorizontalIcon as ee, DragHandleHorizontalIcon as te, GroupIcon as le, LetterCaseToggleIcon as ae, InputIcon as R, DropdownMenuIcon as oe, CheckboxIcon as re, RadiobuttonIcon as ne } from "@radix-ui/react-icons";
6
6
  import "./lib.js";
7
- import { b as v, d as x } from "./Class-nQk08vqd.js";
8
- const ae = "#styles:";
7
+ import { b as w, d as k } from "./Class-nQk08vqd.js";
8
+ const ie = "#styles:";
9
9
  const m = (e) => ({
10
10
  type: "singular",
11
11
  default: e.default || "",
@@ -15,12 +15,12 @@ const m = (e) => ({
15
15
  required: e.required || !1,
16
16
  schema: {
17
17
  type: "string",
18
- ...T(e, ["i18n", "required"])
18
+ ...I(e, ["i18n", "required"])
19
19
  },
20
20
  uiSchema: {
21
21
  "ui:placeholder": e.placeholder || "Enter here"
22
22
  }
23
- }), j = (e) => ({
23
+ }), B = (e) => ({
24
24
  type: "singular",
25
25
  default: e.default || "",
26
26
  binding: b(e, "binding", !0),
@@ -29,7 +29,7 @@ const m = (e) => ({
29
29
  required: e.required || !1,
30
30
  schema: {
31
31
  type: "string",
32
- ...T(e, ["i18n", "required", "rows"])
32
+ ...I(e, ["i18n", "required", "rows"])
33
33
  },
34
34
  uiSchema: {
35
35
  "ui:widget": "textarea",
@@ -38,7 +38,7 @@ const m = (e) => ({
38
38
  rows: e.rows || 4
39
39
  }
40
40
  }
41
- }), g = (e) => ({
41
+ }), h = (e) => ({
42
42
  type: "singular",
43
43
  i18n: e.i18n || !1,
44
44
  default: e.default || !1,
@@ -46,7 +46,7 @@ const m = (e) => ({
46
46
  binding: b(e, "binding", !0),
47
47
  schema: {
48
48
  type: "boolean",
49
- ...T(e, ["i18n", "required"])
49
+ ...I(e, ["i18n", "required"])
50
50
  },
51
51
  uiSchema: {
52
52
  "ui:title": e.title || "Select Item",
@@ -61,10 +61,10 @@ const m = (e) => ({
61
61
  required: e.required || !1,
62
62
  schema: {
63
63
  type: "number",
64
- ...T(e, ["i18n", "required"])
64
+ ...I(e, ["i18n", "required"])
65
65
  },
66
66
  uiSchema: {}
67
- }), w = (e) => ({
67
+ }), L = (e) => ({
68
68
  type: "singular",
69
69
  default: e.default || "",
70
70
  binding: b(e, "binding", !0),
@@ -73,13 +73,13 @@ const m = (e) => ({
73
73
  dataType: "string",
74
74
  schema: {
75
75
  type: "string",
76
- ...T(e, ["i18n", "required", "options", "binding"]),
76
+ ...I(e, ["i18n", "required", "options", "binding"]),
77
77
  oneOf: e.options.map((t) => ({ const: t.value, title: t.title }))
78
78
  },
79
79
  uiSchema: {
80
80
  "ui:widget": "select"
81
81
  }
82
- }), We = (e) => ({
82
+ }), Ye = (e) => ({
83
83
  type: "singular",
84
84
  i18n: e.i18n || !1,
85
85
  default: e.default || "",
@@ -87,13 +87,13 @@ const m = (e) => ({
87
87
  dataType: "string",
88
88
  schema: {
89
89
  type: "string",
90
- ...T(e, ["i18n", "required"])
90
+ ...I(e, ["i18n", "required"])
91
91
  },
92
92
  uiSchema: {
93
93
  "ui:widget": "color"
94
94
  }
95
95
  });
96
- const L = (e) => ({
96
+ const T = (e) => ({
97
97
  type: "singular",
98
98
  default: e.default || "",
99
99
  i18n: e.i18n || !1,
@@ -101,19 +101,19 @@ const L = (e) => ({
101
101
  dataType: "string",
102
102
  schema: {
103
103
  type: "string",
104
- ...T(e, ["i18n", "required"])
104
+ ...I(e, ["i18n", "required"])
105
105
  },
106
106
  uiSchema: {
107
107
  "ui:widget": "richtext"
108
108
  }
109
- }), ie = (e) => ({
109
+ }), ce = (e) => ({
110
110
  type: "model",
111
111
  title: e.title,
112
112
  dataType: "object",
113
113
  default: e.default || {},
114
114
  binding: b(e, "binding", !0),
115
115
  properties: e.properties
116
- }), ce = (e) => ({
116
+ }), de = (e) => ({
117
117
  type: "list",
118
118
  itemProperties: e.itemProperties,
119
119
  binding: b(e, "binding", !0),
@@ -124,8 +124,8 @@ const L = (e) => ({
124
124
  }), c = (e) => ({
125
125
  type: "styles",
126
126
  binding: !1,
127
- default: `${ae},${e.default || ""}`
128
- }), B = (e) => ({
127
+ default: `${ie},${e.default || ""}`
128
+ }), j = (e) => ({
129
129
  default: e.default || "",
130
130
  binding: b(e, "binding", !0),
131
131
  type: "singular",
@@ -157,7 +157,7 @@ const L = (e) => ({
157
157
  uiSchema: {
158
158
  "ui:field": "link"
159
159
  }
160
- }), de = (e) => ({
160
+ }), q = (e) => ({
161
161
  type: "singular",
162
162
  default: e.default || "",
163
163
  binding: b(e, "binding", !0),
@@ -165,27 +165,79 @@ const L = (e) => ({
165
165
  i18n: e.i18n || !1,
166
166
  schema: {
167
167
  type: "string",
168
- ...T(e, ["i18n", "required"])
168
+ ...I(e, ["i18n", "required"])
169
169
  },
170
170
  uiSchema: {
171
171
  "ui:widget": "image"
172
172
  }
173
- }), ue = (e) => {
174
- const { blockProps: t, styles: l, content: o, level: n = "h1", children: r = null } = e;
175
- return r ? u.createElement(n, { ...l, ...t }, r) : u.createElement(n, {
173
+ }), x = ({ blockProps: e, className: t = "", text: l = "BLOCK", styles: a = {} }) => /* @__PURE__ */ n.jsx(
174
+ "div",
175
+ {
176
+ ...e,
177
+ className: w("flex h-20 flex-col items-center justify-center", t),
178
+ ...I(a, ["className"]),
179
+ children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full w-full items-center justify-center bg-[radial-gradient(#CCC,transparent_1.5px)] outline-dashed outline-2 outline-gray-400 duration-300 [background-size:12px_12px] dark:bg-[radial-gradient(#AAA,transparent_1.5px)]", children: /* @__PURE__ */ n.jsxs("span", { className: "opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400", children: [
180
+ /* @__PURE__ */ n.jsx(F, { className: "w-3 h-3" }),
181
+ " ADD ",
182
+ l
183
+ ] }) })
184
+ }
185
+ ), ue = (e) => {
186
+ const { blockProps: t, backgroundImage: l, children: a, tag: o = "div", styles: r } = e;
187
+ if (!a && v(r == null ? void 0 : r.className))
188
+ return /* @__PURE__ */ n.jsx(x, { blockProps: t, styles: r });
189
+ let i = {};
190
+ return l && (i = { backgroundImage: `url(${l})` }), u.createElement(o, { ...t, ...r, style: i }, a);
191
+ };
192
+ d(ue, {
193
+ type: "Box",
194
+ label: "Box",
195
+ category: "core",
196
+ group: "basic",
197
+ props: {
198
+ styles: c({ default: "" }),
199
+ tag: L({
200
+ title: "Tag",
201
+ default: "div",
202
+ options: [
203
+ { value: "div", title: "div" },
204
+ { value: "header", title: "header" },
205
+ { value: "footer", title: "footer" },
206
+ { value: "section", title: "section" },
207
+ { value: "article", title: "article" },
208
+ { value: "aside", title: "aside" },
209
+ { value: "main", title: "main" },
210
+ { value: "nav", title: "nav" },
211
+ { value: "figure", title: "figure" },
212
+ { value: "details", title: "details" },
213
+ { value: "summary", title: "summary" },
214
+ { value: "dialog", title: "dialog" },
215
+ { value: "strike", title: "strike" },
216
+ { value: "caption", title: "caption" },
217
+ { value: "legend", title: "legend" },
218
+ { value: "figcaption", title: "figcaption" },
219
+ { value: "mark", title: "mark" }
220
+ ]
221
+ }),
222
+ backgroundImage: q({ title: "Background Image" })
223
+ }
224
+ });
225
+ const pe = (e) => {
226
+ const { blockProps: t, styles: l, content: a, level: o = "h1", children: r = null } = e;
227
+ return r ? u.createElement(o, { ...l, ...t }, r) : u.createElement(o, {
176
228
  ...l,
177
229
  ...t,
178
- dangerouslySetInnerHTML: { __html: o }
230
+ dangerouslySetInnerHTML: { __html: a }
179
231
  });
180
232
  };
181
- d(ue, {
233
+ d(pe, {
182
234
  type: "Heading",
183
235
  label: "Heading",
184
236
  category: "core",
185
- icon: q,
237
+ icon: $,
186
238
  group: "basic",
187
239
  props: {
188
- level: w({
240
+ level: L({
189
241
  title: "Level",
190
242
  default: "h1",
191
243
  binding: !1,
@@ -199,44 +251,44 @@ d(ue, {
199
251
  ]
200
252
  }),
201
253
  styles: c({ default: "text-3xl" }),
202
- content: L({ title: "Content", default: "Heading goes here" })
254
+ content: T({ title: "Content", default: "Heading goes here" })
203
255
  }
204
256
  });
205
- const pe = (e) => {
206
- const { blockProps: t, styles: l, content: o } = e;
207
- return re(e.children) ? u.createElement("div", {
257
+ const me = (e) => {
258
+ const { blockProps: t, styles: l, content: a } = e;
259
+ return A(e.children) ? u.createElement("div", {
208
260
  ...l,
209
261
  ...t,
210
- dangerouslySetInnerHTML: { __html: o }
262
+ dangerouslySetInnerHTML: { __html: a }
211
263
  }) : u.createElement("p", { ...l, ...t }, e.children);
212
264
  };
213
- d(pe, {
265
+ d(me, {
214
266
  type: "Paragraph",
215
267
  label: "Paragraph",
216
268
  category: "core",
217
- icon: A,
269
+ icon: D,
218
270
  group: "basic",
219
271
  props: {
220
272
  styles: c({ default: "" }),
221
- content: L({
273
+ content: T({
222
274
  title: "Content",
223
275
  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."
224
276
  })
225
277
  }
226
278
  });
227
- const me = (e) => {
228
- const { blockProps: t, content: l, styles: o } = e;
229
- return /* @__PURE__ */ a.jsx("div", { className: "prose max-w-full", children: /* @__PURE__ */ a.jsx("div", { ...t, ...o, dangerouslySetInnerHTML: { __html: l } }) });
279
+ const fe = (e) => {
280
+ const { blockProps: t, content: l, styles: a } = e;
281
+ return /* @__PURE__ */ n.jsx("div", { className: "prose max-w-full", children: /* @__PURE__ */ n.jsx("div", { ...t, ...a, dangerouslySetInnerHTML: { __html: l } }) });
230
282
  };
231
- d(me, {
283
+ d(fe, {
232
284
  type: "RichText",
233
285
  label: "Rich Text",
234
286
  category: "core",
235
- icon: F,
287
+ icon: O,
236
288
  group: "basic",
237
289
  props: {
238
290
  styles: c({ default: "" }),
239
- content: L({
291
+ content: T({
240
292
  title: "Content",
241
293
  default: `Lorem Ipsum Rich Text Editor Demo
242
294
 
@@ -250,14 +302,14 @@ Utilize nested lists for organization.`
250
302
  })
251
303
  }
252
304
  });
253
- const fe = (e) => {
254
- const { blockProps: t, icon: l, content: o, iconPos: n, styles: r, children: s } = e, i = s || /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
255
- o,
256
- l && /* @__PURE__ */ a.jsx("span", { className: n || "", dangerouslySetInnerHTML: { __html: l } })
305
+ const ye = (e) => {
306
+ const { blockProps: t, icon: l, content: a, iconPos: o, styles: r, children: i } = e, s = i || /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
307
+ a,
308
+ l && /* @__PURE__ */ n.jsx("span", { className: o || "", dangerouslySetInnerHTML: { __html: l } })
257
309
  ] });
258
- return u.createElement("button", { ...t, ...r, type: "button" }, i);
310
+ return u.createElement("button", { ...t, ...r, type: "button" }, s);
259
311
  };
260
- d(fe, {
312
+ d(ye, {
261
313
  type: "Button",
262
314
  label: "Button",
263
315
  category: "core",
@@ -276,8 +328,8 @@ d(fe, {
276
328
  title: "Link",
277
329
  default: { type: "page", href: "", target: "_blank" }
278
330
  }),
279
- icon: B({ title: "Icon", default: "" }),
280
- iconPos: w({
331
+ icon: j({ title: "Icon", default: "" }),
332
+ iconPos: L({
281
333
  title: "Icon Position",
282
334
  default: "order-last",
283
335
  options: [
@@ -287,40 +339,28 @@ d(fe, {
287
339
  })
288
340
  }
289
341
  });
290
- const k = ({ blockProps: e, className: t = "", text: l = "BLOCK", styles: o = {} }) => /* @__PURE__ */ a.jsx(
291
- "div",
292
- {
293
- ...e,
294
- className: v("flex h-20 flex-col items-center justify-center", t),
295
- ...T(o, ["className"]),
296
- children: /* @__PURE__ */ a.jsx("div", { className: "flex h-full w-full items-center justify-center bg-[radial-gradient(#CCC,transparent_1.5px)] outline-dashed outline-2 outline-gray-400 duration-300 [background-size:12px_12px] dark:bg-[radial-gradient(#AAA,transparent_1.5px)]", children: /* @__PURE__ */ a.jsxs("span", { className: "opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400", children: [
297
- /* @__PURE__ */ a.jsx($, { className: "w-3 h-3" }),
298
- " ADD ",
299
- l
300
- ] }) })
301
- }
302
- ), ye = (e) => {
303
- const { blockProps: t, link: l, children: o, styles: n, inBuilder: r, content: s } = e;
304
- return !o && I(n == null ? void 0 : n.className) && I(s) ? /* @__PURE__ */ a.jsx(k, { blockProps: t }) : r ? o ? /* @__PURE__ */ a.jsx("span", { "data-simulate": "a", ...t, ...n, children: o }) : u.createElement("span", {
342
+ const be = (e) => {
343
+ const { blockProps: t, link: l, children: a, styles: o, inBuilder: r, content: i } = e;
344
+ return !a && v(o == null ? void 0 : o.className) && v(i) ? /* @__PURE__ */ n.jsx(x, { blockProps: t }) : r ? a ? /* @__PURE__ */ n.jsx("span", { "data-simulate": "a", ...t, ...o, children: a }) : u.createElement("span", {
305
345
  ...t,
306
- ...n,
346
+ ...o,
307
347
  href: l.href || "#",
308
348
  target: l.target || "_self",
309
- dangerouslySetInnerHTML: { __html: s },
349
+ dangerouslySetInnerHTML: { __html: i },
310
350
  "data-simulate": "a"
311
- }) : o ? /* @__PURE__ */ a.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...n, children: o }) : u.createElement("a", {
351
+ }) : a ? /* @__PURE__ */ n.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...o, children: a }) : u.createElement("a", {
312
352
  ...t,
313
- ...n,
353
+ ...o,
314
354
  href: l.href || "#",
315
355
  target: l.target || "_self",
316
- dangerouslySetInnerHTML: { __html: s }
356
+ dangerouslySetInnerHTML: { __html: i }
317
357
  });
318
358
  };
319
- d(ye, {
359
+ d(be, {
320
360
  type: "Link",
321
361
  label: "Link",
322
362
  category: "core",
323
- icon: D,
363
+ icon: z,
324
364
  group: "basic",
325
365
  props: {
326
366
  styles: c({ default: "" }),
@@ -331,23 +371,23 @@ d(ye, {
331
371
  })
332
372
  }
333
373
  });
334
- const be = (e) => {
335
- const { blockProps: t, children: l, listType: o, styles: n, tag: r } = e, s = v(b(n, "className", ""), o);
336
- return !l && I(n == null ? void 0 : n.className) ? /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "LIST ITEM" }) : u.createElement(
337
- r || (o === "list-decimal" ? "ol" : "ul"),
338
- { ...t, ...n, className: s },
374
+ const ge = (e) => {
375
+ const { blockProps: t, children: l, listType: a, styles: o, tag: r } = e, i = w(b(o, "className", ""), a);
376
+ return !l && v(o == null ? void 0 : o.className) ? /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "LIST ITEM" }) : u.createElement(
377
+ r || (a === "list-decimal" ? "ol" : "ul"),
378
+ { ...t, ...o, className: i },
339
379
  l
340
380
  );
341
381
  };
342
- d(be, {
382
+ d(ge, {
343
383
  type: "List",
344
384
  label: "List",
345
- icon: O,
385
+ icon: V,
346
386
  category: "core",
347
387
  group: "basic",
348
388
  props: {
349
389
  styles: c({ default: "" }),
350
- listType: w({
390
+ listType: L({
351
391
  title: "List type",
352
392
  default: "list-disc",
353
393
  options: [
@@ -383,9 +423,9 @@ d(be, {
383
423
  ]
384
424
  });
385
425
  const he = (e) => {
386
- const { blockProps: t, content: l, styles: o, children: n, tag: r } = e;
387
- return n ? u.createElement(r || "li", { ...o, ...t }, n) : u.createElement(r || "li", {
388
- ...o,
426
+ const { blockProps: t, content: l, styles: a, children: o, tag: r } = e;
427
+ return o ? u.createElement(r || "li", { ...a, ...t }, o) : u.createElement(r || "li", {
428
+ ...a,
389
429
  ...t,
390
430
  dangerouslySetInnerHTML: { __html: l }
391
431
  });
@@ -393,59 +433,59 @@ const he = (e) => {
393
433
  d(he, {
394
434
  type: "ListItem",
395
435
  label: "List Item",
396
- icon: z,
436
+ icon: U,
397
437
  category: "core",
398
438
  group: "basic",
399
439
  props: {
400
440
  styles: c({ default: "" }),
401
- content: L({ title: "Content", default: "List item" })
441
+ content: T({ title: "Content", default: "List item" })
402
442
  }
403
443
  });
404
- const ge = (e) => {
405
- const { blockProps: t, icon: l, styles: o } = e, n = {
406
- ...o,
407
- className: v(o.className, "inline-block c-inline-block")
444
+ const xe = (e) => {
445
+ const { blockProps: t, icon: l, styles: a } = e, o = {
446
+ ...a,
447
+ className: w(a.className, "inline-block c-inline-block")
408
448
  };
409
- return I(l) ? /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "", className: "h-8 w-14" }) : u.createElement("span", {
449
+ return v(l) ? /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "", className: "h-8 w-14" }) : u.createElement("span", {
410
450
  ...t,
411
- ...n,
451
+ ...o,
412
452
  dangerouslySetInnerHTML: { __html: l }
413
453
  });
414
454
  };
415
- d(ge, {
455
+ d(xe, {
416
456
  type: "Icon",
417
457
  label: "Icon",
418
458
  category: "core",
419
- icon: V,
459
+ icon: G,
420
460
  group: "basic",
421
461
  props: {
422
462
  styles: c({ default: "text-black" }),
423
- icon: B({
463
+ icon: j({
424
464
  title: "Icon",
425
465
  default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" 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>'
426
466
  })
427
467
  }
428
468
  });
429
- const xe = (e) => {
430
- const { blockProps: t, image: l, styles: o, alt: n, height: r = 200, width: s = 200 } = e;
431
- return I(l) ? /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : u.createElement("img", {
469
+ const ke = (e) => {
470
+ const { blockProps: t, image: l, styles: a, alt: o, height: r = 200, width: i = 200 } = e;
471
+ return v(l) ? /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : u.createElement("img", {
432
472
  ...t,
433
- ...o,
473
+ ...a,
434
474
  src: l,
435
- alt: n,
475
+ alt: o,
436
476
  height: r,
437
- width: s
477
+ width: i
438
478
  });
439
479
  };
440
- d(xe, {
480
+ d(ke, {
441
481
  type: "Image",
442
482
  label: "Image",
443
483
  category: "core",
444
- icon: U,
484
+ icon: W,
445
485
  group: "basic",
446
486
  props: {
447
487
  styles: c({ default: "" }),
448
- image: de({
488
+ image: q({
449
489
  title: "Image",
450
490
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
451
491
  }),
@@ -454,17 +494,17 @@ d(xe, {
454
494
  height: m({ title: "Height", default: "" })
455
495
  }
456
496
  });
457
- const ke = (e) => {
497
+ const ve = (e) => {
458
498
  var r;
459
- const { blockProps: t, styles: l, children: o } = e;
460
- let n = null;
461
- return o || (n = // @ts-ignore
462
- /* @__PURE__ */ a.jsx("div", { className: v("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ a.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
499
+ const { blockProps: t, styles: l, children: a } = e;
500
+ let o = null;
501
+ return a || (o = // @ts-ignore
502
+ /* @__PURE__ */ n.jsx("div", { className: w("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ n.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ n.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
463
503
  "Slot: ",
464
504
  e.name
465
- ] }) }) })), u.createElement("div", { ...l, ...t, droppable: "yes" }, o || n);
505
+ ] }) }) })), u.createElement("div", { ...l, ...t, droppable: "yes" }, a || o);
466
506
  };
467
- d(ke, {
507
+ d(ve, {
468
508
  type: "Slot",
469
509
  label: "Slot",
470
510
  group: "basic",
@@ -490,16 +530,16 @@ const E = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
490
530
  }
491
531
  return null;
492
532
  }, Te = (e) => {
493
- const { blockProps: t, styles: l, _url: o, _controls: n } = e, r = n.autoPlay, s = n.controls, i = r || n.muted, f = n.loop;
494
- if (I(o))
495
- return /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "VIDEO URL", className: "h-36" });
496
- let p = Ie(o), h = null;
533
+ const { blockProps: t, styles: l, _url: a, _controls: o } = e, r = o.autoPlay, i = o.controls, s = r || o.muted, f = o.loop;
534
+ if (v(a))
535
+ return /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "VIDEO URL", className: "h-36" });
536
+ let p = Ie(a), g = null;
497
537
  if (p) {
498
- if (!I(p)) {
538
+ if (!v(p)) {
499
539
  const y = [];
500
- y.push(`autoplay=${r ? 1 : 0}`), y.push(`controls=${s ? 1 : 0}`), y.push(`mute=${i ? 1 : 0}&muted=${i ? 1 : 0}`), y.push(`loop=${f ? 1 : 0}`), p = `${p}?${y.join("&")}`;
540
+ y.push(`autoplay=${r ? 1 : 0}`), y.push(`controls=${i ? 1 : 0}`), y.push(`mute=${s ? 1 : 0}&muted=${s ? 1 : 0}`), y.push(`loop=${f ? 1 : 0}`), p = `${p}?${y.join("&")}`;
501
541
  }
502
- h = u.createElement("iframe", {
542
+ g = u.createElement("iframe", {
503
543
  ...t,
504
544
  ...l,
505
545
  src: p,
@@ -508,25 +548,25 @@ const E = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-
508
548
  frameBorder: 0
509
549
  });
510
550
  } else
511
- h = u.createElement("video", {
551
+ g = u.createElement("video", {
512
552
  ...t,
513
553
  ...l,
514
- src: o,
515
- controls: s,
516
- muted: i,
554
+ src: a,
555
+ controls: i,
556
+ muted: s,
517
557
  autoPlay: r,
518
558
  loop: f
519
559
  });
520
- return /* @__PURE__ */ a.jsxs("div", { className: "relative overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
521
- /* @__PURE__ */ a.jsx("div", { className: "absolute h-full w-full" }),
522
- h
560
+ return /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
561
+ /* @__PURE__ */ n.jsx("div", { className: "absolute h-full w-full" }),
562
+ g
523
563
  ] });
524
564
  };
525
565
  d(Te, {
526
566
  type: "Video",
527
567
  label: "Video",
528
568
  category: "core",
529
- icon: G,
569
+ icon: Y,
530
570
  group: "basic",
531
571
  props: {
532
572
  styles: c({ default: "absolute top-0 left-0 w-full h-full" }),
@@ -534,34 +574,34 @@ d(Te, {
534
574
  title: "Video URL",
535
575
  default: "https://www.youtube.com/watch?v=9xwazD5SyVg&ab_channel=MaximilianMustermann"
536
576
  }),
537
- _controls: ie({
577
+ _controls: ce({
538
578
  title: "Controls",
539
579
  properties: {
540
- autoPlay: g({ title: "Autoplay", default: !0 }),
541
- controls: g({ title: "Show widgets", default: !1 }),
542
- loop: g({ title: "Loop", default: !1 }),
543
- muted: g({ title: "Muted", default: !0 })
580
+ autoPlay: h({ title: "Autoplay", default: !0 }),
581
+ controls: h({ title: "Show widgets", default: !1 }),
582
+ loop: h({ title: "Loop", default: !1 }),
583
+ muted: h({ title: "Muted", default: !0 })
544
584
  }
545
585
  })
546
586
  }
547
587
  });
548
588
  const Le = (e) => {
549
- const { blockProps: t, styles: l, content: o } = e;
589
+ const { blockProps: t, styles: l, content: a } = e;
550
590
  return u.createElement("div", {
551
591
  ...l,
552
592
  ...t,
553
- dangerouslySetInnerHTML: { __html: o }
593
+ dangerouslySetInnerHTML: { __html: a }
554
594
  });
555
595
  };
556
596
  d(Le, {
557
597
  type: "CustomHTML",
558
598
  label: "CustomHTML",
559
599
  category: "core",
560
- icon: W,
600
+ icon: X,
561
601
  group: "basic",
562
602
  props: {
563
603
  styles: c({ default: "" }),
564
- content: j({
604
+ content: B({
565
605
  title: "HTML Content",
566
606
  default: "",
567
607
  placeholder: "Enter custom HTML code here"
@@ -569,11 +609,11 @@ d(Le, {
569
609
  }
570
610
  });
571
611
  const we = (e) => {
572
- const { blockProps: t, styles: l, content: o, children: n = null, tag: r } = e;
573
- return n ? u.createElement("span", { ...l, ...t }, n) : u.createElement(r || "span", {
612
+ const { blockProps: t, styles: l, content: a, children: o = null, tag: r } = e;
613
+ return o ? u.createElement("span", { ...l, ...t }, o) : u.createElement(r || "span", {
574
614
  ...l,
575
615
  ...t,
576
- dangerouslySetInnerHTML: { __html: o }
616
+ dangerouslySetInnerHTML: { __html: a }
577
617
  });
578
618
  };
579
619
  d(we, {
@@ -583,28 +623,28 @@ d(we, {
583
623
  group: "basic",
584
624
  props: {
585
625
  styles: c({ default: "" }),
586
- content: j({ title: "Content", default: "" })
626
+ content: B({ title: "Content", default: "" })
587
627
  }
588
628
  });
589
- const ve = (e) => {
629
+ const Se = (e) => {
590
630
  const { blockProps: t, styles: l } = e;
591
631
  return u.createElement("hr", { ...l, ...t });
592
632
  };
593
- d(ve, {
633
+ d(Se, {
594
634
  type: "Divider",
595
635
  label: "Divider",
596
636
  category: "core",
597
- icon: Y,
637
+ icon: Z,
598
638
  group: "basic",
599
639
  props: {
600
640
  styles: c({ default: "bg-gray-900 h-0.5 py-2 my-1" })
601
641
  }
602
642
  });
603
- const Se = (e) => {
643
+ const _e = (e) => {
604
644
  const { blockProps: t, styles: l } = e;
605
645
  return u.createElement("br", { ...t, ...l });
606
646
  };
607
- d(Se, {
647
+ d(_e, {
608
648
  type: "LineBreak",
609
649
  label: "Line Break",
610
650
  category: "core",
@@ -614,12 +654,12 @@ d(Se, {
614
654
  styles: c({ default: "" })
615
655
  }
616
656
  });
617
- const _e = (e) => e.inBuilder ? /* @__PURE__ */ a.jsxs("span", { ...e.blockProps, children: [
657
+ const Be = (e) => e.inBuilder ? /* @__PURE__ */ n.jsxs("span", { ...e.blockProps, children: [
618
658
  " ",
619
659
  e.content,
620
660
  " "
621
661
  ] }) : ` ${e.content} `;
622
- d(_e, {
662
+ d(Be, {
623
663
  type: "Text",
624
664
  label: "Text",
625
665
  hidden: !0,
@@ -627,164 +667,164 @@ d(_e, {
627
667
  group: "basic",
628
668
  icon: M,
629
669
  props: {
630
- content: j({ title: "Content", defaultValue: "" })
670
+ content: B({ title: "Content", defaultValue: "" })
631
671
  }
632
672
  });
633
673
  const S = (e) => {
634
- const t = (r, s) => ({
635
- _id: x(),
674
+ const t = (r, i) => ({
675
+ _id: k(),
636
676
  _parent: r,
637
677
  _type: "TableCell",
638
678
  styles: "#styles:,",
639
- content: `${e === "TableHead" ? "Table Head" : "Table Cell " + s}`
679
+ content: `${e === "TableHead" ? "Table Head" : "Table Cell " + i}`
640
680
  }), l = (r) => {
641
- const s = x(), i = {
681
+ const i = k(), s = {
642
682
  _type: "TableRow",
643
- _id: s,
683
+ _id: i,
644
684
  styles: "#styles:,border-b"
645
685
  };
646
- return r && (i._parent = r), [i, t(s, "1"), t(s, "2"), t(s, "3")];
647
- }, o = (r) => {
648
- const s = x(), i = {
649
- _id: s,
686
+ return r && (s._parent = r), [s, t(i, "1"), t(i, "2"), t(i, "3")];
687
+ }, a = (r) => {
688
+ const i = k(), s = {
689
+ _id: i,
650
690
  _type: "TableHead",
651
691
  styles: "#styles:,font-medium"
652
692
  };
653
- return r && (i._parent = r), [i, ...l(s)];
654
- }, n = (r) => {
655
- const s = x(), i = {
656
- _id: s,
693
+ return r && (s._parent = r), [s, ...l(i)];
694
+ }, o = (r) => {
695
+ const i = k(), s = {
696
+ _id: i,
657
697
  _type: "TableBody",
658
698
  styles: "#styles:,"
659
699
  };
660
- return r && (i._parent = r), [i, ...l(s), ...l(s)];
700
+ return r && (s._parent = r), [s, ...l(i), ...l(i)];
661
701
  };
662
702
  if (e === "Table") {
663
- const r = x();
703
+ const r = k();
664
704
  return [
665
705
  {
666
706
  _id: r,
667
707
  _type: "Table",
668
708
  styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
669
709
  },
670
- ...o(r),
671
- ...n(r)
710
+ ...a(r),
711
+ ...o(r)
672
712
  ];
673
713
  }
674
- return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? n() : [];
714
+ return e === "TableRow" ? l() : e === "TableHead" ? a() : e === "TableBody" ? o() : [];
675
715
  }, je = (e) => {
676
- const { blockProps: t, children: l, styles: o } = e;
677
- return l ? u.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "TABLE HEAD / BODY" });
716
+ const { blockProps: t, children: l, styles: a } = e;
717
+ return l ? u.createElement("table", { ...t, ...a }, l) : /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "TABLE HEAD / BODY" });
678
718
  };
679
719
  d(je, {
680
720
  type: "Table",
681
721
  label: "Table",
682
722
  category: "core",
683
723
  group: "table",
684
- icon: X,
724
+ icon: K,
685
725
  props: {
686
726
  styles: c({ default: "" })
687
727
  },
688
728
  blocks: S("Table")
689
729
  });
690
- const Be = (e) => {
691
- const { blockProps: t, children: l, styles: o } = e;
692
- return l ? u.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "TABLE ROW" });
730
+ const Ee = (e) => {
731
+ const { blockProps: t, children: l, styles: a } = e;
732
+ return l ? u.createElement("thead", { ...t, ...a }, l) : /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "TABLE ROW" });
693
733
  };
694
- d(Be, {
734
+ d(Ee, {
695
735
  type: "TableHead",
696
736
  label: "Table Head",
697
737
  category: "core",
698
738
  group: "table",
699
- icon: Z,
739
+ icon: J,
700
740
  props: {
701
741
  styles: c({ default: "" })
702
742
  },
703
743
  blocks: S("TableHead")
704
744
  });
705
- const Ee = (e) => {
706
- const { blockProps: t, children: l, styles: o } = e;
707
- return l ? u.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "TABLE ROW" });
745
+ const Pe = (e) => {
746
+ const { blockProps: t, children: l, styles: a } = e;
747
+ return l ? u.createElement("tbody", { ...t, ...a }, l) : /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "TABLE ROW" });
708
748
  };
709
- d(Ee, {
749
+ d(Pe, {
710
750
  type: "TableBody",
711
751
  label: "Table Body",
712
752
  category: "core",
713
753
  group: "table",
714
- icon: K,
754
+ icon: Q,
715
755
  props: {
716
756
  styles: c({ default: "" })
717
757
  },
718
758
  blocks: S("TableBody")
719
759
  });
720
- const Pe = (e) => {
721
- const { blockProps: t, children: l, styles: o } = e;
722
- return l ? u.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "TABLE CELL" });
760
+ const Ce = (e) => {
761
+ const { blockProps: t, children: l, styles: a } = e;
762
+ return l ? u.createElement("tr", { ...t, ...a }, l) : /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "TABLE CELL" });
723
763
  };
724
- d(Pe, {
764
+ d(Ce, {
725
765
  type: "TableRow",
726
766
  label: "Table Row",
727
767
  category: "core",
728
768
  group: "table",
729
- icon: J,
769
+ icon: ee,
730
770
  props: {
731
771
  styles: c({ default: "w-full" })
732
772
  },
733
773
  blocks: S("TableRow")
734
774
  });
735
- const Ce = (e) => {
736
- const { blockProps: t, children: l, content: o, styles: n } = e;
737
- return !l && I(o) ? /* @__PURE__ */ a.jsx(k, { blockProps: t }) : l ? u.createElement("td", { ...t, ...n }, l) : u.createElement("td", {
775
+ const Ne = (e) => {
776
+ const { blockProps: t, children: l, content: a, styles: o } = e;
777
+ return !l && v(a) ? /* @__PURE__ */ n.jsx(x, { blockProps: t }) : l ? u.createElement("td", { ...t, ...o }, l) : u.createElement("td", {
738
778
  ...t,
739
- ...n,
740
- dangerouslySetInnerHTML: { __html: o }
779
+ ...o,
780
+ dangerouslySetInnerHTML: { __html: a }
741
781
  });
742
782
  };
743
- d(Ce, {
783
+ d(Ne, {
744
784
  type: "TableCell",
745
785
  label: "Table Cell",
746
786
  category: "core",
747
787
  group: "table",
748
- icon: Q,
788
+ icon: te,
749
789
  props: {
750
790
  styles: c({ default: "" }),
751
- content: L({ title: "Content", default: "Table cell item" })
791
+ content: T({ title: "Content", default: "Table cell item" })
752
792
  }
753
793
  });
754
- const Ne = (e) => {
755
- const { blockProps: t, errorMessage: l, name: o, _type: n, successMessage: r, action: s, styles: i, children: f } = e;
756
- if (!f && I(i == null ? void 0 : i.className))
757
- return /* @__PURE__ */ a.jsx(k, { blockProps: t, text: "FORM FIELDS" });
794
+ const Me = (e) => {
795
+ const { blockProps: t, errorMessage: l, name: a, _type: o, successMessage: r, action: i, styles: s, children: f } = e;
796
+ if (!f && v(s == null ? void 0 : s.className))
797
+ return /* @__PURE__ */ n.jsx(x, { blockProps: t, text: "FORM FIELDS" });
758
798
  const p = {
759
799
  "x-data": "useForm",
760
800
  "x-on:submit.prevent": "post"
761
- }, h = {
801
+ }, g = {
762
802
  "x-html": "formResponse",
763
803
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
764
804
  };
765
- return /* @__PURE__ */ a.jsxs(
805
+ return /* @__PURE__ */ n.jsxs(
766
806
  "form",
767
807
  {
768
808
  ...p,
769
809
  "data-error": l,
770
810
  "data-success": r,
771
811
  method: "post",
772
- action: s,
812
+ action: i,
773
813
  ...t,
774
- ...i,
814
+ ...s,
775
815
  children: [
776
- /* @__PURE__ */ a.jsx("div", { ...h }),
777
- /* @__PURE__ */ a.jsx("input", { name: "formname", type: "hidden", value: o || n }),
816
+ /* @__PURE__ */ n.jsx("div", { ...g }),
817
+ /* @__PURE__ */ n.jsx("input", { name: "formname", type: "hidden", value: a || o }),
778
818
  f
779
819
  ]
780
820
  }
781
821
  );
782
822
  };
783
- d(Ne, {
823
+ d(Me, {
784
824
  type: "Form",
785
825
  label: "Form",
786
826
  category: "core",
787
- icon: ee,
827
+ icon: le,
788
828
  group: "form",
789
829
  props: {
790
830
  styles: c({ default: "" }),
@@ -792,77 +832,77 @@ d(Ne, {
792
832
  title: "Submit URL",
793
833
  default: "/api/form/submit"
794
834
  }),
795
- errorMessage: L({
835
+ errorMessage: T({
796
836
  title: "Error Message",
797
837
  default: "Something went wrong. Please try again"
798
838
  }),
799
- successMessage: L({
839
+ successMessage: T({
800
840
  title: "Success Message",
801
841
  default: "Thank you for your submission."
802
842
  })
803
843
  }
804
844
  });
805
- const Me = (e) => {
806
- const { blockProps: t, content: l, styles: o, children: n } = e, r = { ...o, ...t };
807
- return n ? u.createElement("label", r, n) : u.createElement("label", {
845
+ const Re = (e) => {
846
+ const { blockProps: t, content: l, styles: a, children: o } = e, r = { ...a, ...t };
847
+ return o ? u.createElement("label", r, o) : u.createElement("label", {
808
848
  ...r,
809
849
  dangerouslySetInnerHTML: { __html: l }
810
850
  });
811
851
  };
812
- d(Me, {
852
+ d(Re, {
813
853
  type: "Label",
814
854
  label: "Label",
815
855
  category: "core",
816
- icon: te,
856
+ icon: ae,
817
857
  group: "form",
818
858
  props: {
819
859
  styles: c({ default: "" }),
820
860
  content: m({ title: "Content", default: "Label" })
821
861
  }
822
862
  });
823
- const Re = (e) => {
863
+ const He = (e) => {
824
864
  const {
825
865
  blockProps: t,
826
866
  label: l,
827
- placeholder: o,
828
- styles: n,
867
+ placeholder: a,
868
+ styles: o,
829
869
  inputStyles: r,
830
- showLabel: s,
831
- required: i,
870
+ showLabel: i,
871
+ required: s,
832
872
  inputType: f = "text",
833
873
  inBuilder: p,
834
- fieldName: h
835
- } = e, y = x();
836
- return !s || f === "submit" ? (f === "submit" && (t.value = l), /* @__PURE__ */ a.jsx(
874
+ fieldName: g
875
+ } = e, y = k();
876
+ return !i || f === "submit" ? (f === "submit" && (t.value = l), /* @__PURE__ */ n.jsx(
837
877
  "input",
838
878
  {
839
879
  id: y,
840
- name: h,
880
+ name: g,
841
881
  readOnly: p,
842
882
  ...t,
843
883
  ...r,
844
- ...n,
884
+ ...o,
845
885
  type: f,
846
- placeholder: o,
847
- required: i
886
+ placeholder: a,
887
+ required: s
848
888
  }
849
- )) : /* @__PURE__ */ a.jsxs("div", { ...n, ...t, children: [
850
- s && /* @__PURE__ */ a.jsx("label", { htmlFor: y, children: l }),
851
- /* @__PURE__ */ a.jsx(
889
+ )) : /* @__PURE__ */ n.jsxs("div", { ...o, ...t, children: [
890
+ i && /* @__PURE__ */ n.jsx("label", { htmlFor: y, children: l }),
891
+ /* @__PURE__ */ n.jsx(
852
892
  "input",
853
893
  {
854
- name: h,
894
+ name: g,
855
895
  readOnly: p,
856
896
  ...r,
857
897
  id: y,
858
898
  type: f,
859
- placeholder: o,
860
- required: i
899
+ placeholder: a,
900
+ required: s
861
901
  }
862
902
  )
863
903
  ] });
864
904
  };
865
- d(Re, {
905
+ d(He, {
866
906
  type: "Input",
867
907
  label: "Input",
868
908
  category: "core",
@@ -871,7 +911,7 @@ d(Re, {
871
911
  props: {
872
912
  styles: c({ default: "" }),
873
913
  fieldName: m({ title: "Field Name", default: "input" }),
874
- inputType: w({
914
+ inputType: L({
875
915
  title: "Type",
876
916
  options: _(
877
917
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
@@ -883,35 +923,35 @@ d(Re, {
883
923
  default: "text"
884
924
  }),
885
925
  value: m({ title: "Value", default: "" }),
886
- showLabel: g({ title: "Show label", default: !0 }),
926
+ showLabel: h({ title: "Show label", default: !0 }),
887
927
  inputStyles: c({ default: "w-full p-1" }),
888
928
  label: m({ title: "Label", default: "Label" }),
889
929
  placeholder: m({
890
930
  title: "Placeholder",
891
931
  default: "Placeholder"
892
932
  }),
893
- required: g({ title: "Required", default: !1 })
933
+ required: h({ title: "Required", default: !1 })
894
934
  }
895
935
  });
896
- const He = (e) => {
897
- const { blockProps: t, fieldName: l, label: o, placeholder: n, styles: r, inputStyles: s, _rows: i, showLabel: f } = e, p = x();
898
- return f ? /* @__PURE__ */ a.jsxs("div", { ...r, ...t, children: [
899
- f && /* @__PURE__ */ a.jsx("label", { htmlFor: p, children: o }),
900
- /* @__PURE__ */ a.jsx("textarea", { name: l, ...s, id: p, placeholder: n, rows: i })
901
- ] }) : /* @__PURE__ */ a.jsx(
936
+ const qe = (e) => {
937
+ const { blockProps: t, fieldName: l, label: a, placeholder: o, styles: r, inputStyles: i, _rows: s, showLabel: f } = e, p = k();
938
+ return f ? /* @__PURE__ */ n.jsxs("div", { ...r, ...t, children: [
939
+ f && /* @__PURE__ */ n.jsx("label", { htmlFor: p, children: a }),
940
+ /* @__PURE__ */ n.jsx("textarea", { name: l, ...i, id: p, placeholder: o, rows: s })
941
+ ] }) : /* @__PURE__ */ n.jsx(
902
942
  "textarea",
903
943
  {
904
944
  id: p,
905
945
  name: l,
906
946
  ...t,
907
- ...s,
947
+ ...i,
908
948
  ...r,
909
- placeholder: n,
910
- rows: i
949
+ placeholder: o,
950
+ rows: s
911
951
  }
912
952
  );
913
953
  };
914
- d(He, {
954
+ d(qe, {
915
955
  type: "TextArea",
916
956
  label: "TextArea",
917
957
  category: "core",
@@ -919,7 +959,7 @@ d(He, {
919
959
  group: "form",
920
960
  props: {
921
961
  fieldName: m({ title: "Field Name", default: "textarea" }),
922
- showLabel: g({ title: "Show label", default: !0 }),
962
+ showLabel: h({ title: "Show label", default: !0 }),
923
963
  styles: c({ default: "" }),
924
964
  inputStyles: c({ default: "w-full p-1" }),
925
965
  label: m({ title: "Label", default: "Label" }),
@@ -930,32 +970,32 @@ d(He, {
930
970
  _rows: se({ title: "Rows", default: 3 })
931
971
  }
932
972
  });
933
- const qe = (e) => {
973
+ const Ae = (e) => {
934
974
  const {
935
975
  blockProps: t,
936
976
  fieldName: l,
937
- label: o,
938
- placeholder: n,
977
+ label: a,
978
+ placeholder: o,
939
979
  styles: r,
940
- inputStyles: s,
941
- required: i,
980
+ inputStyles: i,
981
+ required: s,
942
982
  showLabel: f,
943
983
  _multiple: p = !1
944
- } = e, h = x();
945
- return f ? /* @__PURE__ */ a.jsxs("div", { ...r, children: [
946
- f && /* @__PURE__ */ a.jsx("label", { htmlFor: h, children: o }),
947
- /* @__PURE__ */ a.jsxs(
984
+ } = e, g = k();
985
+ return f ? /* @__PURE__ */ n.jsxs("div", { ...r, children: [
986
+ f && /* @__PURE__ */ n.jsx("label", { htmlFor: g, children: a }),
987
+ /* @__PURE__ */ n.jsxs(
948
988
  "select",
949
989
  {
950
- ...s,
951
- id: h,
952
- placeholder: n,
953
- required: i,
990
+ ...i,
991
+ id: g,
992
+ placeholder: o,
993
+ required: s,
954
994
  multiple: p,
955
995
  name: l,
956
996
  children: [
957
- /* @__PURE__ */ a.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: n }),
958
- _(e.options, (y) => /* @__PURE__ */ a.jsx(
997
+ /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
998
+ _(e.options, (y) => /* @__PURE__ */ n.jsx(
959
999
  "option",
960
1000
  {
961
1001
  selected: b(y, "selected", !1),
@@ -967,19 +1007,19 @@ const qe = (e) => {
967
1007
  ]
968
1008
  }
969
1009
  )
970
- ] }) : /* @__PURE__ */ a.jsxs(
1010
+ ] }) : /* @__PURE__ */ n.jsxs(
971
1011
  "select",
972
1012
  {
973
- id: h,
1013
+ id: g,
974
1014
  ...r,
975
1015
  ...t,
976
- placeholder: n,
977
- required: i,
1016
+ placeholder: o,
1017
+ required: s,
978
1018
  multiple: p,
979
1019
  name: l,
980
1020
  children: [
981
- /* @__PURE__ */ a.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: n }),
982
- _(e.options, (y) => /* @__PURE__ */ a.jsx(
1021
+ /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: o }),
1022
+ _(e.options, (y) => /* @__PURE__ */ n.jsx(
983
1023
  "option",
984
1024
  {
985
1025
  selected: b(y, "selected", !1),
@@ -992,25 +1032,25 @@ const qe = (e) => {
992
1032
  }
993
1033
  );
994
1034
  };
995
- d(qe, {
1035
+ d(Ae, {
996
1036
  type: "Select",
997
1037
  label: "Select",
998
1038
  category: "core",
999
- icon: le,
1039
+ icon: oe,
1000
1040
  group: "form",
1001
1041
  props: {
1002
1042
  styles: c({ default: "" }),
1003
1043
  fieldName: m({ title: "Field Name", default: "select" }),
1004
- showLabel: g({ title: "Show label", default: !0 }),
1044
+ showLabel: h({ title: "Show label", default: !0 }),
1005
1045
  inputStyles: c({ default: "w-full p-1" }),
1006
1046
  label: m({ title: "Label", default: "Label" }),
1007
1047
  placeholder: m({
1008
1048
  title: "Placeholder",
1009
1049
  default: "Placeholder"
1010
1050
  }),
1011
- required: g({ title: "Required", default: !1 }),
1012
- _multiple: g({ title: "Multiple Choice", default: !1 }),
1013
- options: ce({
1051
+ required: h({ title: "Required", default: !1 }),
1052
+ _multiple: h({ title: "Multiple Choice", default: !1 }),
1053
+ options: de({
1014
1054
  title: "Options",
1015
1055
  itemProperties: {
1016
1056
  label: m({ title: "Label", default: "" }),
@@ -1019,68 +1059,68 @@ d(qe, {
1019
1059
  })
1020
1060
  }
1021
1061
  });
1022
- const Ae = (e) => {
1023
- const { blockProps: t, fieldName: l, label: o, styles: n, inputStyles: r, required: s, checked: i, showLabel: f = !0 } = e, p = x();
1024
- return f ? /* @__PURE__ */ a.jsxs("div", { ...n, ...t, children: [
1025
- /* @__PURE__ */ a.jsx(
1062
+ const Fe = (e) => {
1063
+ const { blockProps: t, fieldName: l, label: a, styles: o, inputStyles: r, required: i, checked: s, showLabel: f = !0 } = e, p = k();
1064
+ return f ? /* @__PURE__ */ n.jsxs("div", { ...o, ...t, children: [
1065
+ /* @__PURE__ */ n.jsx(
1026
1066
  "input",
1027
1067
  {
1028
1068
  ...r,
1029
1069
  name: l,
1030
1070
  id: p,
1031
1071
  type: "checkbox",
1032
- required: s,
1033
- defaultChecked: i
1072
+ required: i,
1073
+ defaultChecked: s
1034
1074
  }
1035
1075
  ),
1036
- o && o !== "Label" && /* @__PURE__ */ a.jsx("label", { htmlFor: p, children: o })
1037
- ] }) : /* @__PURE__ */ a.jsx(
1076
+ a && a !== "Label" && /* @__PURE__ */ n.jsx("label", { htmlFor: p, children: a })
1077
+ ] }) : /* @__PURE__ */ n.jsx(
1038
1078
  "input",
1039
1079
  {
1040
1080
  id: p,
1041
1081
  ...t,
1042
1082
  ...r,
1043
- ...n,
1083
+ ...o,
1044
1084
  type: "checkbox",
1045
- required: s,
1085
+ required: i,
1046
1086
  name: l
1047
1087
  }
1048
1088
  );
1049
1089
  };
1050
- d(Ae, {
1090
+ d(Fe, {
1051
1091
  type: "Checkbox",
1052
1092
  label: "Checkbox",
1053
1093
  category: "core",
1054
- icon: oe,
1094
+ icon: re,
1055
1095
  group: "form",
1056
1096
  props: {
1057
1097
  fieldName: m({ title: "Field Name", default: "checkbox" }),
1058
1098
  styles: c({ default: "flex items-center gap-x-2" }),
1059
1099
  label: m({ title: "Label", default: "Label" }),
1060
- checked: g({ title: "Checked", default: !1 }),
1061
- required: g({ title: "Required", default: !1 })
1100
+ checked: h({ title: "Checked", default: !1 }),
1101
+ required: h({ title: "Required", default: !1 })
1062
1102
  }
1063
1103
  });
1064
- const Fe = (e) => {
1065
- const { blockProps: t, fieldName: l, label: o, styles: n, inputStyles: r, checked: s, required: i, showLabel: f = !0 } = e, p = x();
1066
- return f ? /* @__PURE__ */ a.jsxs("div", { ...n, ...t, children: [
1067
- /* @__PURE__ */ a.jsx("input", { ...r, name: l, id: p, type: "radio", required: i, defaultChecked: s }),
1068
- o && /* @__PURE__ */ a.jsx("label", { htmlFor: p, children: o })
1069
- ] }) : /* @__PURE__ */ a.jsx(
1104
+ const $e = (e) => {
1105
+ const { blockProps: t, fieldName: l, label: a, styles: o, inputStyles: r, checked: i, required: s, showLabel: f = !0 } = e, p = k();
1106
+ return f ? /* @__PURE__ */ n.jsxs("div", { ...o, ...t, children: [
1107
+ /* @__PURE__ */ n.jsx("input", { ...r, name: l, id: p, type: "radio", required: s, defaultChecked: i }),
1108
+ a && /* @__PURE__ */ n.jsx("label", { htmlFor: p, children: a })
1109
+ ] }) : /* @__PURE__ */ n.jsx(
1070
1110
  "input",
1071
1111
  {
1072
1112
  id: p,
1073
1113
  ...t,
1074
1114
  ...r,
1075
- ...n,
1115
+ ...o,
1076
1116
  type: "radio",
1077
- required: i,
1078
- checked: s,
1117
+ required: s,
1118
+ checked: i,
1079
1119
  name: l
1080
1120
  }
1081
1121
  );
1082
1122
  };
1083
- d(Fe, {
1123
+ d($e, {
1084
1124
  type: "Radio",
1085
1125
  label: "Radio",
1086
1126
  category: "core",
@@ -1090,32 +1130,32 @@ d(Fe, {
1090
1130
  styles: c({ default: "flex items-center w-max gap-x-2" }),
1091
1131
  fieldName: m({ title: "Field Name", default: "radio" }),
1092
1132
  label: m({ title: "Label", default: "Label" }),
1093
- checked: g({ title: "Checked", default: !1 }),
1094
- required: g({ title: "Required", default: !1 })
1133
+ checked: h({ title: "Checked", default: !1 }),
1134
+ required: h({ title: "Required", default: !1 })
1095
1135
  }
1096
1136
  });
1097
- const $e = (e) => {
1098
- const { blockProps: t, inBuilder: l, label: o, placeholder: n, styles: r, inputStyles: s, icon: i, iconPos: f } = e, p = x(), h = {
1137
+ const De = (e) => {
1138
+ const { blockProps: t, inBuilder: l, label: a, placeholder: o, styles: r, inputStyles: i, icon: s, iconPos: f } = e, p = k(), g = {
1099
1139
  "x-bind:disabled": "formLoading"
1100
1140
  };
1101
- return /* @__PURE__ */ a.jsxs(
1141
+ return /* @__PURE__ */ n.jsxs(
1102
1142
  "button",
1103
1143
  {
1104
1144
  id: p,
1105
- ...h,
1106
- ...s,
1145
+ ...g,
1146
+ ...i,
1107
1147
  ...r,
1108
1148
  ...t || {},
1109
1149
  type: l ? "button" : "submit",
1110
- placeholder: n,
1150
+ placeholder: o,
1111
1151
  children: [
1112
- o,
1113
- i && /* @__PURE__ */ a.jsx("span", { className: f, dangerouslySetInnerHTML: { __html: i } })
1152
+ a,
1153
+ s && /* @__PURE__ */ n.jsx("span", { className: f, dangerouslySetInnerHTML: { __html: s } })
1114
1154
  ]
1115
1155
  }
1116
1156
  );
1117
1157
  };
1118
- d($e, {
1158
+ d(De, {
1119
1159
  type: "FormButton",
1120
1160
  label: "Submit Button",
1121
1161
  category: "core",
@@ -1126,8 +1166,8 @@ d($e, {
1126
1166
  styles: c({
1127
1167
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
1128
1168
  }),
1129
- icon: B({ title: "Icon", default: "" }),
1130
- iconPos: w({
1169
+ icon: j({ title: "Icon", default: "" }),
1170
+ iconPos: L({
1131
1171
  title: "Icon Position",
1132
1172
  default: "order-last",
1133
1173
  options: [
@@ -1138,12 +1178,12 @@ d($e, {
1138
1178
  }
1139
1179
  });
1140
1180
  export {
1141
- ie as b,
1181
+ ce as b,
1142
1182
  se as c,
1143
- w as f,
1144
- j as g,
1145
- de as o,
1146
- g as r,
1183
+ L as f,
1184
+ B as g,
1185
+ q as o,
1186
+ h as r,
1147
1187
  m as u,
1148
- We as y
1188
+ Ye as y
1149
1189
  };