@chaibuilder/sdk 1.2.10 → 1.2.12

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 (98) hide show
  1. package/README.md +10 -12
  2. package/dist/AddBlocks-ByeMUUzE.js +218 -0
  3. package/dist/AddBlocks-nMUkm4og.cjs +1 -0
  4. package/dist/{BrandingOptions-10jJO8mG.js → BrandingOptions--poS5shs.js} +18 -21
  5. package/dist/BrandingOptions-eeDfvB0R.cjs +1 -0
  6. package/dist/{CanvasArea-jgBDM5Qd.js → CanvasArea--TKubnIM.js} +184 -185
  7. package/dist/{CanvasArea-6O8dMPug.cjs → CanvasArea-h4lA4oqP.cjs} +4 -4
  8. package/dist/{utils-AvyFzbPC.js → Class-17XFhL48.js} +15 -16
  9. package/dist/Class-5ARpH_Tu.cjs +1 -0
  10. package/dist/CurrentPage-B3YumhrX.cjs +1 -0
  11. package/dist/{CurrentPage-lakeZviD.js → CurrentPage-Gw9LJ40j.js} +24 -25
  12. package/dist/Layers-4r_4F6ST.cjs +1 -0
  13. package/dist/{Layers-R7TfREUd.js → Layers-d-xge4On.js} +77 -78
  14. package/dist/{PagesPanel-4mqxCFHq.js → PagesPanel-E4wSgVcE.js} +14 -15
  15. package/dist/PagesPanel-iZLDBwXQ.cjs +1 -0
  16. package/dist/ProjectPanel-2TcqGnfN.cjs +1 -0
  17. package/dist/{ProjectPanel-Wy2nw-1w.js → ProjectPanel-q7upaf7h.js} +17 -18
  18. package/dist/Settings-NuDNH2dR.cjs +1 -0
  19. package/dist/{Settings-_K28Ontt.js → Settings-y3DHsT88.js} +163 -164
  20. package/dist/SidePanels-91l1CjYv.cjs +1 -0
  21. package/dist/{SidePanels-6slnxdSj.js → SidePanels-BK_QnEh9.js} +40 -41
  22. package/dist/{Topbar-bwt6HjlL.js → Topbar-b7jnOD57.js} +16 -17
  23. package/dist/Topbar-rEO5z57t.cjs +1 -0
  24. package/dist/{UnsplashImages-V29UE-57.js → UnsplashImages-Lb78FYx7.js} +27 -28
  25. package/dist/UnsplashImages-p-WdKs3b.cjs +1 -0
  26. package/dist/{UploadImages-E0mi_qn8.js → UploadImages-aWG_1r7N.js} +23 -24
  27. package/dist/UploadImages-zk-IYDx8.cjs +1 -0
  28. package/dist/{add-page-modal-FJEAqfD3.js → add-page-modal-7djj9GZj.js} +28 -29
  29. package/dist/add-page-modal-iUffBbAe.cjs +1 -0
  30. package/dist/{confirm-alert-5hfE116f.js → confirm-alert-QuqMrpWn.js} +12 -13
  31. package/dist/confirm-alert-i3FRAgP4.cjs +1 -0
  32. package/dist/core.cjs +1 -1
  33. package/dist/core.d.ts +9 -50
  34. package/dist/core.js +47 -56
  35. package/dist/defaultTheme-IH19g4fv.cjs +1 -0
  36. package/dist/defaultTheme-YY8mlQS3.js +1055 -0
  37. package/dist/{delete-page-modal-wH0yLiQI.js → delete-page-modal-DEBiprds.js} +14 -15
  38. package/dist/delete-page-modal-RllDrgxs.cjs +1 -0
  39. package/dist/email-blocks.cjs +1 -1
  40. package/dist/email-blocks.js +100 -81
  41. package/dist/email.cjs +1 -0
  42. package/dist/email.d.ts +116 -0
  43. package/dist/email.js +79 -0
  44. package/dist/{controls-XPXGHKht.js → empty-slot-MWycClTb.js} +61 -50
  45. package/dist/empty-slot-TF2kd-0X.cjs +1 -0
  46. package/dist/{form-UVHCD9N3.js → form-94xR0NG8.js} +1 -1
  47. package/dist/{form-1j01gADS.cjs → form-yz7h2msc.cjs} +1 -1
  48. package/dist/{index-B4sL0YTN.js → index-0m8Zuv5X.js} +1434 -1552
  49. package/dist/{index-c2VLKuhY.js → index-19nTm_cE.js} +2069 -2059
  50. package/dist/index-TEfD-2ti.cjs +1 -0
  51. package/dist/{index-xbQL0wpz.cjs → index-XVud0HL8.cjs} +33 -33
  52. package/dist/lib.cjs +3 -3
  53. package/dist/lib.js +95 -1125
  54. package/dist/page-viewer-_ktv1pgX.cjs +1 -0
  55. package/dist/{page-viewer-TcK0I240.js → page-viewer-xPLhXv6k.js} +16 -17
  56. package/dist/{project-general-setting-4ruKl033.js → project-general-setting-XlORLtqJ.js} +15 -16
  57. package/dist/project-general-setting-nULU3Tzw.cjs +1 -0
  58. package/dist/project-seo-setting-9QkARPhg.cjs +1 -0
  59. package/dist/{project-seo-setting-d1EZlacB.js → project-seo-setting-KQkeHwny.js} +14 -15
  60. package/dist/render.cjs +1 -1
  61. package/dist/render.d.ts +2 -0
  62. package/dist/render.js +111 -70
  63. package/dist/single-page-detail-Gb6O3Yyw.cjs +1 -0
  64. package/dist/{single-page-detail-PihQi-dP.js → single-page-detail-gtVN9hxR.js} +44 -45
  65. package/dist/studio.cjs +1 -1
  66. package/dist/studio.js +13 -14
  67. package/dist/ui.cjs +1 -1
  68. package/dist/ui.d.ts +3 -3
  69. package/dist/ui.js +138 -139
  70. package/dist/{useAddBlockByDrop-nLzs79He.cjs → useAddBlockByDrop-GU5QLPtz.cjs} +1 -1
  71. package/dist/{useAddBlockByDrop-rcDR-z9_.js → useAddBlockByDrop-b5KJh_7w.js} +1 -1
  72. package/dist/web-blocks.cjs +1 -1
  73. package/dist/web-blocks.js +313 -322
  74. package/package.json +8 -2
  75. package/dist/AddBlocks-GiMnBMeQ.js +0 -224
  76. package/dist/AddBlocks-SzURo9Bj.cjs +0 -1
  77. package/dist/BrandingOptions-yK-54R-c.cjs +0 -1
  78. package/dist/CurrentPage-1y62Ne77.cjs +0 -1
  79. package/dist/Layers-Z4nmm9xK.cjs +0 -1
  80. package/dist/PagesPanel-ouHdxyOH.cjs +0 -1
  81. package/dist/ProjectPanel-hHolYZjt.cjs +0 -1
  82. package/dist/Settings-EYOw02iE.cjs +0 -1
  83. package/dist/SidePanels-U-_O1QN8.cjs +0 -1
  84. package/dist/Topbar-dQEoY2P8.cjs +0 -1
  85. package/dist/UnsplashImages-pGgaUPQy.cjs +0 -1
  86. package/dist/UploadImages-7oLycdSh.cjs +0 -1
  87. package/dist/add-page-modal-In6XI-vZ.cjs +0 -1
  88. package/dist/confirm-alert-Vwd3OzL9.cjs +0 -1
  89. package/dist/controls-Dy1qa8Dc.cjs +0 -1
  90. package/dist/delete-page-modal-tl7FLK9J.cjs +0 -1
  91. package/dist/functions-Ox_svtKm.cjs +0 -1
  92. package/dist/functions-xIebp8Aw.js +0 -23
  93. package/dist/index-7ogwGh39.cjs +0 -1
  94. package/dist/page-viewer-SfQUe0SI.cjs +0 -1
  95. package/dist/project-general-setting-t7E2Y_w9.cjs +0 -1
  96. package/dist/project-seo-setting-4b_BJZDF.cjs +0 -1
  97. package/dist/single-page-detail-KuXd9Mur.cjs +0 -1
  98. package/dist/utils-PTxFk6qT.cjs +0 -1
@@ -1,28 +1,20 @@
1
- import { omit as H, isEmpty as k, isNull as D, get as v, pick as $, map as j, noop as q } from "lodash-es";
2
- import { j as r } from "./jsx-runtime-WbnYoNE9.js";
1
+ import { isNull as F, isEmpty as k, get as v, pick as D, omit as $, map as _, noop as q } from "lodash-es";
2
+ import { j as s } from "./jsx-runtime-WbnYoNE9.js";
3
3
  import * as d from "react";
4
- import { S as i, f as I, o as E, g as L, m as T, u as f, T as P, c as w, q as z, b as O, r as h, h as V } from "./controls-XPXGHKht.js";
4
+ import { E as g, S as i, f as I, o as j, g as L, m as T, u as f, T as E, c as w, q as z, b as O, r as h, h as V } from "./empty-slot-MWycClTb.js";
5
5
  import { registerChaiBlock as u } from "@chaibuilder/runtime";
6
- import { c as S, g as x } from "./Functions-7jnEwJyw.js";
7
- import { HeadingIcon as U, TextIcon as G, CursorTextIcon as W, ButtonIcon as R, Link1Icon as Y, RowsIcon as X, ColumnsIcon as Z, SketchLogoIcon as J, ImageIcon as K, VideoIcon as Q, CodeIcon as ee, DividerHorizontalIcon as te, SpaceBetweenVerticallyIcon as A, TableIcon as le, BorderTopIcon as oe, BorderAllIcon as ae, ViewHorizontalIcon as se, DragHandleHorizontalIcon as re, GroupIcon as ne, LetterCaseToggleIcon as ce, CheckboxIcon as ie, InputIcon as F, RadiobuttonIcon as de, DropdownMenuIcon as ue } from "@radix-ui/react-icons";
6
+ import { HeadingIcon as U, TextIcon as G, CursorTextIcon as W, ButtonIcon as H, Link1Icon as Y, RowsIcon as X, ColumnsIcon as Z, SketchLogoIcon as J, ImageIcon as K, VideoIcon as Q, CodeIcon as ee, DividerHorizontalIcon as te, SpaceBetweenVerticallyIcon as R, TableIcon as le, BorderTopIcon as oe, BorderAllIcon as ae, ViewHorizontalIcon as re, DragHandleHorizontalIcon as se, GroupIcon as ne, LetterCaseToggleIcon as ce, CheckboxIcon as ie, InputIcon as A, RadiobuttonIcon as de, DropdownMenuIcon as ue } from "@radix-ui/react-icons";
7
+ import { c as P, g as x } from "./Functions-7jnEwJyw.js";
8
8
  import "./_commonjsHelpers-UyOWmZb0.js";
9
9
  import "clsx";
10
10
  import "tailwind-merge";
11
- const g = ({ blockProps: t, className: e = "", styles: l = {} }) => /* @__PURE__ */ r.jsx(
12
- "div",
13
- {
14
- ...t,
15
- className: S("flex h-20 flex-col items-center justify-center", e),
16
- ...H(l, ["className"]),
17
- children: /* @__PURE__ */ r.jsx("div", { className: "flex h-full w-full items-center justify-center outline-dashed outline-1 -outline-offset-1 outline-gray-400 duration-300", children: /* @__PURE__ */ r.jsx("span", { className: "opacit flex items-center gap-x-1.5 text-xs font-semibold text-gray-400" }) })
18
- }
19
- ), pe = d.memo(
20
- (t) => {
21
- const { blockProps: e, backgroundImage: l, children: a, tag: s = "div", styles: o } = t;
22
- if (!a && k(o == null ? void 0 : o.className))
23
- return /* @__PURE__ */ r.jsx(g, { blockProps: e, styles: o });
24
- let n = {};
25
- return l && (n = { backgroundImage: `url(${l})` }), d.createElement(s, { ...e, ...o, style: n }, a);
11
+ const pe = d.memo(
12
+ (e) => {
13
+ const { blockProps: t, backgroundImage: l, children: o, tag: a = "div", styles: r } = e;
14
+ let n = o;
15
+ o || (n = /* @__PURE__ */ s.jsx(g, { blockProps: {}, styles: {} }));
16
+ let c = {};
17
+ return l && (c = { backgroundImage: `url(${l})` }), d.createElement(a, { ...t, ...r, style: c }, n);
26
18
  }
27
19
  );
28
20
  u(pe, {
@@ -55,16 +47,16 @@ u(pe, {
55
47
  { value: "mark", title: "mark" }
56
48
  ]
57
49
  }),
58
- backgroundImage: E({ title: "Background Image" })
50
+ backgroundImage: j({ title: "Background Image" })
59
51
  },
60
52
  canAcceptBlock: () => !0
61
53
  });
62
- const me = (t) => {
63
- const { blockProps: e, styles: l, content: a, level: s = "h1", children: o = null } = t;
64
- return o ? d.createElement(s, { ...l, ...e }, o) : d.createElement(s, {
54
+ const me = (e) => {
55
+ const { blockProps: t, styles: l, content: o, level: a = "h1", children: r = null } = e;
56
+ return r ? d.createElement(a, { ...l, ...t }, r) : d.createElement(a, {
65
57
  ...l,
66
- ...e,
67
- dangerouslySetInnerHTML: { __html: a }
58
+ ...t,
59
+ dangerouslySetInnerHTML: { __html: o }
68
60
  });
69
61
  };
70
62
  u(me, {
@@ -72,7 +64,7 @@ u(me, {
72
64
  label: "Heading",
73
65
  category: "core",
74
66
  icon: U,
75
- group: "basic",
67
+ group: "typography",
76
68
  props: {
77
69
  level: I({
78
70
  title: "Level",
@@ -90,22 +82,22 @@ u(me, {
90
82
  styles: i({ default: "text-3xl" }),
91
83
  content: L({ title: "Content", default: "Heading goes here" })
92
84
  },
93
- canAcceptBlock: (t) => t === "Span" || t === "Text"
85
+ canAcceptBlock: (e) => e === "Span" || e === "Text"
94
86
  });
95
- const fe = (t) => {
96
- const { blockProps: e, styles: l, content: a } = t;
97
- return D(t.children) ? d.createElement("div", {
87
+ const fe = (e) => {
88
+ const { blockProps: t, styles: l, content: o } = e;
89
+ return F(e.children) ? d.createElement("div", {
98
90
  ...l,
99
- ...e,
100
- dangerouslySetInnerHTML: { __html: a }
101
- }) : d.createElement("p", { ...l, ...e }, t.children);
91
+ ...t,
92
+ dangerouslySetInnerHTML: { __html: o }
93
+ }) : d.createElement("p", { ...l, ...t }, e.children);
102
94
  };
103
95
  u(fe, {
104
96
  type: "Paragraph",
105
97
  label: "Paragraph",
106
98
  category: "core",
107
99
  icon: G,
108
- group: "basic",
100
+ group: "typography",
109
101
  props: {
110
102
  styles: i({ default: "" }),
111
103
  content: L({
@@ -113,36 +105,36 @@ u(fe, {
113
105
  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."
114
106
  })
115
107
  },
116
- canAcceptBlock: (t) => t === "Span" || t === "Link"
108
+ canAcceptBlock: (e) => e === "Span" || e === "Link"
117
109
  });
118
- const be = (t) => {
119
- const { blockProps: e, styles: l, content: a, children: s = null, tag: o } = t;
120
- return s ? d.createElement("span", { ...l, ...e }, s) : d.createElement(o || "span", {
110
+ const ye = (e) => {
111
+ const { blockProps: t, styles: l, content: o, children: a = null, tag: r } = e;
112
+ return a ? d.createElement("span", { ...l, ...t }, a) : d.createElement(r || "span", {
121
113
  ...l,
122
- ...e,
123
- dangerouslySetInnerHTML: { __html: a }
114
+ ...t,
115
+ dangerouslySetInnerHTML: { __html: o }
124
116
  });
125
117
  };
126
- u(be, {
118
+ u(ye, {
127
119
  type: "Span",
128
120
  label: "Span",
129
121
  category: "core",
130
- group: "basic",
122
+ group: "typography",
131
123
  props: {
132
124
  styles: i({ default: "" }),
133
125
  content: L({ title: "Content", default: "Enter your content" })
134
126
  }
135
127
  });
136
- const ye = (t) => {
137
- const { blockProps: e, content: l, styles: a } = t;
138
- return /* @__PURE__ */ r.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ r.jsx("div", { ...e, ...a, dangerouslySetInnerHTML: { __html: l } }) });
128
+ const be = (e) => {
129
+ const { blockProps: t, content: l, styles: o } = e;
130
+ return /* @__PURE__ */ s.jsx("div", { className: "max-w-full", children: /* @__PURE__ */ s.jsx("div", { ...t, ...o, dangerouslySetInnerHTML: { __html: l } }) });
139
131
  };
140
- u(ye, {
132
+ u(be, {
141
133
  type: "RichText",
142
134
  label: "Rich Text",
143
135
  category: "core",
144
136
  icon: W,
145
- group: "basic",
137
+ group: "typography",
146
138
  props: {
147
139
  styles: i({ default: "" }),
148
140
  content: T({
@@ -151,30 +143,30 @@ u(ye, {
151
143
  })
152
144
  }
153
145
  });
154
- const he = (t) => {
155
- const { blockProps: e, iconSize: l, icon: a, content: s, iconPos: o, styles: n, children: c } = t, p = a, m = c || /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
156
- /* @__PURE__ */ r.jsx("span", { children: s }),
157
- p && /* @__PURE__ */ r.jsx(
146
+ const he = (e) => {
147
+ const { blockProps: t, iconSize: l, icon: o, content: a, iconPos: r, styles: n, children: c } = e, m = o, p = c || /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
148
+ /* @__PURE__ */ s.jsx("span", { children: a }),
149
+ m && /* @__PURE__ */ s.jsx(
158
150
  "div",
159
151
  {
160
152
  style: { width: l + "px" },
161
- className: o + " " + (o === "order-first" ? "mr-2" : "ml-2") || "",
162
- dangerouslySetInnerHTML: { __html: p }
153
+ className: r + " " + (r === "order-first" ? "mr-2" : "ml-2") || "",
154
+ dangerouslySetInnerHTML: { __html: m }
163
155
  }
164
156
  )
165
157
  ] });
166
- return d.createElement("button", { ...e, ...n, type: "button" }, m);
158
+ return d.createElement("button", { ...t, ...n, type: "button" }, p);
167
159
  };
168
160
  u(he, {
169
161
  type: "Button",
170
162
  label: "Button",
171
163
  category: "core",
172
- icon: R,
164
+ icon: H,
173
165
  group: "basic",
174
166
  props: {
175
167
  content: f({ title: "Label", default: "Button", multiLingual: !0 }),
176
168
  styles: i({ default: "text-white bg-primary px-4 py-2 rounded-global flex items-center" }),
177
- icon: P({ title: "Icon", default: "" }),
169
+ icon: E({ title: "Icon", default: "" }),
178
170
  iconSize: w({ title: "Icon Size", default: 24 }),
179
171
  iconPos: I({
180
172
  title: "Icon Position",
@@ -186,18 +178,16 @@ u(he, {
186
178
  })
187
179
  }
188
180
  });
189
- const ge = (t) => {
190
- const { blockProps: e, link: l, children: a, styles: s, inBuilder: o, content: n } = t;
191
- return !a && k(s == null ? void 0 : s.className) && k(n) ? /* @__PURE__ */ r.jsx(g, { blockProps: e }) : o ? a ? /* @__PURE__ */ r.jsx("span", { "data-simulate": "a", ...e, ...s, children: a }) : d.createElement("span", {
192
- ...e,
193
- ...s,
194
- href: l.href || "#",
195
- target: l.target || "_self",
181
+ const ge = (e) => {
182
+ const { blockProps: t, link: l, children: o, styles: a, inBuilder: r, content: n } = e;
183
+ return !o && k(a == null ? void 0 : a.className) && k(n) ? /* @__PURE__ */ s.jsx(g, { blockProps: t }) : r ? o ? /* @__PURE__ */ s.jsx("span", { "data-simulate": "a", ...t, ...a, children: o }) : d.createElement("span", {
184
+ ...t,
185
+ ...a,
196
186
  dangerouslySetInnerHTML: { __html: n },
197
187
  "data-simulate": "a"
198
- }) : a ? /* @__PURE__ */ r.jsx("a", { href: l.href || "#/", target: l.target, ...e, ...s, children: a }) : d.createElement("a", {
199
- ...e,
200
- ...s,
188
+ }) : o ? /* @__PURE__ */ s.jsx("a", { href: l.href || "#/", target: l.target, ...t, ...a, children: o }) : d.createElement("a", {
189
+ ...t,
190
+ ...a,
201
191
  href: l.href || "#",
202
192
  target: l.target || "_self",
203
193
  dangerouslySetInnerHTML: { __html: n }
@@ -219,11 +209,11 @@ u(ge, {
219
209
  },
220
210
  canAcceptBlock: () => !0
221
211
  });
222
- const xe = (t) => {
223
- const { blockProps: e, children: l, listType: a, styles: s, tag: o } = t, n = S(v(s, "className", ""), a);
224
- return !l && k(s == null ? void 0 : s.className) ? /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "LIST ITEM" }) : d.createElement(
225
- o || (a === "list-decimal" ? "ol" : "ul"),
226
- { ...e, ...s, className: n },
212
+ const xe = (e) => {
213
+ const { blockProps: t, children: l, listType: o, styles: a, tag: r } = e, n = P(v(a, "className", ""), o);
214
+ return !l && k(a == null ? void 0 : a.className) ? /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "LIST ITEM" }) : d.createElement(
215
+ r || (o === "list-decimal" ? "ol" : "ul"),
216
+ { ...t, ...a, className: n },
227
217
  l
228
218
  );
229
219
  };
@@ -245,7 +235,7 @@ u(xe, {
245
235
  ]
246
236
  })
247
237
  },
248
- canAcceptBlock: (t) => t === "ListItem",
238
+ canAcceptBlock: (e) => e === "ListItem",
249
239
  blocks: [
250
240
  { _type: "List", _id: "a", listType: "list-none", styles: "#styles:," },
251
241
  {
@@ -271,11 +261,11 @@ u(xe, {
271
261
  }
272
262
  ]
273
263
  });
274
- const ke = (t) => {
275
- const { blockProps: e, content: l, styles: a, children: s, tag: o } = t;
276
- return s ? d.createElement(o || "li", { ...a, ...e }, s) : d.createElement(o || "li", {
277
- ...a,
278
- ...e,
264
+ const ke = (e) => {
265
+ const { blockProps: t, content: l, styles: o, children: a, tag: r } = e;
266
+ return a ? d.createElement(r || "li", { ...o, ...t }, a) : d.createElement(r || "li", {
267
+ ...o,
268
+ ...t,
279
269
  dangerouslySetInnerHTML: { __html: l }
280
270
  });
281
271
  };
@@ -289,15 +279,16 @@ u(ke, {
289
279
  styles: i({ default: "" }),
290
280
  content: L({ title: "Content", default: "List item" })
291
281
  },
292
- canAcceptBlock: () => !0
282
+ canAcceptBlock: () => !0,
283
+ canBeNested: (e) => e === "List"
293
284
  });
294
- const ve = (t) => {
295
- const { blockProps: e, icon: l, styles: a, width: s, height: o } = t, n = {
296
- ...a,
297
- className: S(a.className, "inline-block c-inline-block", `w-[${s}px]`, `h-[${o}px]`)
285
+ const ve = (e) => {
286
+ const { blockProps: t, icon: l, styles: o, width: a, height: r } = e, n = {
287
+ ...o,
288
+ className: P(o.className, "inline-block c-inline-block", `w-[${a}px]`, `h-[${r}px]`)
298
289
  };
299
- return k(l) ? /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "", className: "h-8 w-14" }) : d.createElement("span", {
300
- ...e,
290
+ return k(l) ? /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "", className: "h-8 w-14" }) : d.createElement("span", {
291
+ ...t,
301
292
  ...n,
302
293
  dangerouslySetInnerHTML: { __html: l }
303
294
  });
@@ -307,10 +298,10 @@ u(ve, {
307
298
  label: "Icon",
308
299
  category: "core",
309
300
  icon: J,
310
- group: "basic",
301
+ group: "media",
311
302
  props: {
312
303
  styles: i({ default: "text-black" }),
313
- icon: P({
304
+ icon: E({
314
305
  title: "Icon",
315
306
  default: '<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM8 1.5c3.59 0 6.5 2.91 6.5 6.5s-2.91 6.5-6.5 6.5-6.5-2.91-6.5-6.5 2.91-6.5 6.5-6.5zM8 9.356c1.812 0 3.535-0.481 5-1.327-0.228 2.788-2.393 4.971-5 4.971s-4.772-2.186-5-4.973c1.465 0.845 3.188 1.329 5 1.329zM4 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5zM10 5.5c0-0.828 0.448-1.5 1-1.5s1 0.672 1 1.5c0 0.828-0.448 1.5-1 1.5s-1-0.672-1-1.5z"></path></svg>'
316
307
  }),
@@ -318,14 +309,14 @@ u(ve, {
318
309
  height: w({ title: "Height", default: 40 })
319
310
  }
320
311
  });
321
- const Ie = (t) => {
322
- const { blockProps: e, image: l, styles: a, alt: s, height: o, width: n } = t;
323
- return k(l) ? /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "IMAGE URL", className: "h-36" }) : d.createElement("img", {
324
- ...e,
325
- ...a,
312
+ const Ie = (e) => {
313
+ const { blockProps: t, image: l, styles: o, alt: a, height: r, width: n } = e;
314
+ return k(l) ? /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "IMAGE URL", className: "h-36" }) : d.createElement("img", {
315
+ ...t,
316
+ ...o,
326
317
  src: l,
327
- alt: s,
328
- height: o,
318
+ alt: a,
319
+ height: r,
329
320
  width: n
330
321
  });
331
322
  };
@@ -334,10 +325,10 @@ u(Ie, {
334
325
  label: "Image",
335
326
  category: "core",
336
327
  icon: K,
337
- group: "basic",
328
+ group: "media",
338
329
  props: {
339
330
  styles: i({ default: "" }),
340
- image: E({
331
+ image: j({
341
332
  title: "Image",
342
333
  default: "https://fakeimg.pl/400x200?text=Choose&font=bebas"
343
334
  }),
@@ -346,15 +337,15 @@ u(Ie, {
346
337
  height: f({ title: "Height", default: "" })
347
338
  }
348
339
  });
349
- const Le = (t) => {
350
- var o;
351
- const { blockProps: e, styles: l, children: a } = t;
352
- let s = null;
353
- return a || (s = // @ts-ignore
354
- /* @__PURE__ */ r.jsx("div", { className: S("flex flex-col items-center justify-center", (o = t.emptyStyles) == null ? void 0 : o.className), children: /* @__PURE__ */ r.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ r.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
340
+ const Le = (e) => {
341
+ var r;
342
+ const { blockProps: t, styles: l, children: o } = e;
343
+ let a = null;
344
+ return o || (a = // @ts-ignore
345
+ /* @__PURE__ */ s.jsx("div", { className: P("flex flex-col items-center justify-center", (r = e.emptyStyles) == null ? void 0 : r.className), children: /* @__PURE__ */ s.jsx("div", { className: "h-full w-full rounded-md border-4 border-dashed", children: /* @__PURE__ */ s.jsxs("p", { className: "truncate p-1 text-left text-xs text-gray-400", children: [
355
346
  "Slot: ",
356
- t.name
357
- ] }) }) })), d.createElement("div", { ...l, ...e, droppable: "yes" }, a || s);
347
+ e.name
348
+ ] }) }) })), d.createElement("div", { ...l, ...t, droppable: "yes" }, o || a);
358
349
  };
359
350
  u(Le, {
360
351
  type: "Slot",
@@ -368,52 +359,52 @@ u(Le, {
368
359
  },
369
360
  canAcceptBlock: () => !0
370
361
  });
371
- const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, M = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, C = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Be = (t) => {
372
- if (N.test(t)) {
373
- const e = t.match(N);
374
- return e ? `https://www.youtube.com/embed/${e[4]}` : t;
362
+ const N = /^(https?:\/\/)?(www\.)?youtube\.com\/(watch\?v=|embed\/)([a-zA-Z0-9_-]{11})/, C = /^(https?:\/\/)?(www\.)?player.vimeo\.com/, M = /^(https?:\/\/)?(www\.)?dailymotion\.com\/(video|embed\/video)\/([a-zA-Z0-9_-]+)/, Be = (e) => {
363
+ if (N.test(e)) {
364
+ const t = e.match(N);
365
+ return t ? `https://www.youtube.com/embed/${t[4]}` : e;
375
366
  }
376
- if (M.test(t)) {
377
- const e = t.match(M);
378
- return e ? `https://player.vimeo.com/video/${e[3]}` : t;
367
+ if (C.test(e)) {
368
+ const t = e.match(C);
369
+ return t ? `https://player.vimeo.com/video/${t[3]}` : e;
379
370
  }
380
- if (C.test(t)) {
381
- const e = t.match(C);
382
- return e ? `https://www.dailymotion.com/embed/video/${e[4]}` : t;
371
+ if (M.test(e)) {
372
+ const t = e.match(M);
373
+ return t ? `https://www.dailymotion.com/embed/video/${t[4]}` : e;
383
374
  }
384
375
  return null;
385
376
  }, Te = d.memo(
386
- (t) => {
387
- const { blockProps: e, inBuilder: l, styles: a, url: s, controls: o } = t, n = v(o, "autoPlay", !1), c = v(o, "controls", !1), p = n || v(o, "muted", !0), m = v(o, "loop", !1);
388
- if (k(s))
389
- return /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "VIDEO URL", className: "h-36" });
390
- let y = Be(s), b = null;
391
- if (y) {
392
- if (!k(y)) {
377
+ (e) => {
378
+ const { blockProps: t, inBuilder: l, styles: o, url: a, controls: r } = e, n = v(r, "autoPlay", !1), c = v(r, "controls", !1), m = n || v(r, "muted", !0), p = v(r, "loop", !1);
379
+ if (k(a))
380
+ return /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "VIDEO URL", className: "h-36" });
381
+ let b = Be(a), y = null;
382
+ if (b) {
383
+ if (!k(b)) {
393
384
  const B = [];
394
- B.push(`autoplay=${n ? 1 : 0}`), B.push(`controls=${o ? 1 : 0}`), B.push(`mute=${p ? 1 : 0}&muted=${p ? 1 : 0}`), B.push(`loop=${m ? 1 : 0}`), y = `${y}?${B.join("&")}`;
385
+ B.push(`autoplay=${n ? 1 : 0}`), B.push(`controls=${r ? 1 : 0}`), B.push(`mute=${m ? 1 : 0}&muted=${m ? 1 : 0}`), B.push(`loop=${p ? 1 : 0}`), b = `${b}?${B.join("&")}`;
395
386
  }
396
- b = d.createElement("iframe", {
397
- ...e,
387
+ y = d.createElement("iframe", {
388
+ ...t,
398
389
  className: "absolute inset-0 w-full h-full",
399
- src: y,
390
+ src: b,
400
391
  allow: l ? "" : "autoplay *; fullscreen *",
401
392
  allowFullScreen: !0,
402
393
  frameBorder: 0
403
394
  });
404
395
  } else
405
- b = d.createElement("video", {
406
- ...e,
396
+ y = d.createElement("video", {
397
+ ...t,
407
398
  className: "absolute inset-0 w-full h-full",
408
- src: s,
399
+ src: a,
409
400
  controls: c,
410
- muted: p,
401
+ muted: m,
411
402
  autoPlay: l ? !1 : n,
412
- loop: m
403
+ loop: p
413
404
  });
414
- return /* @__PURE__ */ r.jsx("div", { ...$(a, ["className"]), children: /* @__PURE__ */ r.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
415
- l ? /* @__PURE__ */ r.jsx("div", { ...e, ...H(a, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
416
- b
405
+ return /* @__PURE__ */ s.jsx("div", { ...D(o, ["className"]), children: /* @__PURE__ */ s.jsxs("div", { className: "relative w-full overflow-hidden", style: { paddingBottom: "56.25%" }, children: [
406
+ l ? /* @__PURE__ */ s.jsx("div", { ...t, ...$(o, ["className"]), className: "absolute inset-0 z-20 h-full w-full" }) : null,
407
+ y
417
408
  ] }) });
418
409
  }
419
410
  );
@@ -422,7 +413,7 @@ u(Te, {
422
413
  label: "Video",
423
414
  category: "core",
424
415
  icon: Q,
425
- group: "basic",
416
+ group: "media",
426
417
  props: {
427
418
  styles: i({ default: "" }),
428
419
  url: f({
@@ -441,23 +432,23 @@ u(Te, {
441
432
  }
442
433
  });
443
434
  const we = d.memo(
444
- (t) => {
445
- const { blockProps: e, styles: l, content: a, inBuilder: s } = t;
446
- return /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
447
- s ? /* @__PURE__ */ r.jsx("div", { ...e, ...l, className: "absolute h-full w-full z-20" }) : null,
435
+ (e) => {
436
+ const { blockProps: t, styles: l, content: o, inBuilder: a } = e;
437
+ return /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
438
+ a ? /* @__PURE__ */ s.jsx("div", { ...t, ...l, className: "absolute z-20 h-full w-full" }) : null,
448
439
  d.createElement("div", {
449
440
  ...l,
450
- dangerouslySetInnerHTML: { __html: a }
441
+ dangerouslySetInnerHTML: { __html: o }
451
442
  })
452
443
  ] });
453
444
  }
454
445
  );
455
446
  u(we, {
456
447
  type: "CustomHTML",
457
- label: "CustomHTML",
448
+ label: "Custom HTML",
458
449
  category: "core",
459
450
  icon: ee,
460
- group: "basic",
451
+ group: "advanced",
461
452
  props: {
462
453
  styles: i({ default: "" }),
463
454
  content: L({
@@ -467,9 +458,9 @@ u(we, {
467
458
  })
468
459
  }
469
460
  });
470
- const Se = (t) => {
471
- const { blockProps: e, styles: l } = t;
472
- return d.createElement("hr", { ...l, ...e });
461
+ const Se = (e) => {
462
+ const { blockProps: t, styles: l } = e;
463
+ return d.createElement("hr", { ...l, ...t });
473
464
  };
474
465
  u(Se, {
475
466
  type: "Divider",
@@ -481,22 +472,22 @@ u(Se, {
481
472
  styles: i({ default: "bg-gray-900 h-0.5 py-2 my-1" })
482
473
  }
483
474
  });
484
- const _e = (t) => t.inBuilder ? /* @__PURE__ */ r.jsx("span", { className: "inline", ...t.blockProps, children: t.content }) : `${t.content}`;
475
+ const _e = (e) => e.inBuilder ? /* @__PURE__ */ s.jsx("span", { className: "inline", ...e.blockProps, children: e.content }) : `${e.content}`;
485
476
  u(_e, {
486
477
  type: "Text",
487
478
  label: "Text",
488
479
  hidden: !0,
489
480
  category: "core",
490
- group: "basic",
491
- icon: A,
481
+ group: "typography",
482
+ icon: R,
492
483
  props: {
493
484
  content: L({ title: "Content", defaultValue: "" })
494
485
  }
495
486
  });
496
- const je = (t) => {
497
- const { blockProps: e, backgroundImage: l, children: a, styles: s } = t;
498
- let o = {};
499
- return l && (o = { backgroundImage: `url(${l})` }), d.createElement("div", { ...e, ...s, style: o }, a);
487
+ const je = (e) => {
488
+ const { blockProps: t, backgroundImage: l, children: o, styles: a } = e;
489
+ let r = {};
490
+ return l && (r = { backgroundImage: `url(${l})` }), d.createElement("div", { ...t, ...a, style: r }, o);
500
491
  };
501
492
  u(je, {
502
493
  type: "Body",
@@ -506,16 +497,16 @@ u(je, {
506
497
  hidden: !0,
507
498
  props: {
508
499
  styles: i({ default: "font-body antialiased" }),
509
- backgroundImage: E({ title: "Background Image" })
500
+ backgroundImage: j({ title: "Background Image" })
510
501
  },
511
502
  canAcceptBlock: () => !0,
512
503
  canDelete: () => !1,
513
504
  canMove: () => !1,
514
505
  canDuplicate: () => !1
515
506
  });
516
- const Ee = (t) => {
517
- const { blockProps: e, styles: l } = t;
518
- return d.createElement("br", { ...e, ...l });
507
+ const Ee = (e) => {
508
+ const { blockProps: t, styles: l } = e;
509
+ return d.createElement("br", { ...t, ...l });
519
510
  };
520
511
  u(Ee, {
521
512
  type: "LineBreak",
@@ -523,56 +514,56 @@ u(Ee, {
523
514
  category: "core",
524
515
  group: "basic",
525
516
  hidden: !0,
526
- icon: A,
517
+ icon: R,
527
518
  props: {
528
519
  styles: i({ default: "" })
529
520
  }
530
521
  });
531
- const _ = (t) => {
532
- const e = (o, n) => ({
522
+ const S = (e) => {
523
+ const t = (r, n) => ({
533
524
  _id: x(),
534
- _parent: o,
525
+ _parent: r,
535
526
  _type: "TableCell",
536
527
  styles: "#styles:,",
537
- content: `${t === "TableHead" ? "Table Head" : "Table Cell " + n}`
538
- }), l = (o) => {
528
+ content: `${e === "TableHead" ? "Table Head" : "Table Cell " + n}`
529
+ }), l = (r) => {
539
530
  const n = x(), c = {
540
531
  _type: "TableRow",
541
532
  _id: n,
542
533
  styles: "#styles:,border-b"
543
534
  };
544
- return o && (c._parent = o), [c, e(n, "1"), e(n, "2"), e(n, "3")];
545
- }, a = (o) => {
535
+ return r && (c._parent = r), [c, t(n, "1"), t(n, "2"), t(n, "3")];
536
+ }, o = (r) => {
546
537
  const n = x(), c = {
547
538
  _id: n,
548
539
  _type: "TableHead",
549
540
  styles: "#styles:,font-medium"
550
541
  };
551
- return o && (c._parent = o), [c, ...l(n)];
552
- }, s = (o) => {
542
+ return r && (c._parent = r), [c, ...l(n)];
543
+ }, a = (r) => {
553
544
  const n = x(), c = {
554
545
  _id: n,
555
546
  _type: "TableBody",
556
547
  styles: "#styles:,"
557
548
  };
558
- return o && (c._parent = o), [c, ...l(n), ...l(n)];
549
+ return r && (c._parent = r), [c, ...l(n), ...l(n)];
559
550
  };
560
- if (t === "Table") {
561
- const o = x();
551
+ if (e === "Table") {
552
+ const r = x();
562
553
  return [
563
554
  {
564
- _id: o,
555
+ _id: r,
565
556
  _type: "Table",
566
557
  styles: "#styles:,w-full text-left text-gray-500 dark:text-gray-400"
567
558
  },
568
- ...a(o),
569
- ...s(o)
559
+ ...o(r),
560
+ ...a(r)
570
561
  ];
571
562
  }
572
- return t === "TableRow" ? l() : t === "TableHead" ? a() : t === "TableBody" ? s() : [];
573
- }, Pe = (t) => {
574
- const { blockProps: e, children: l, styles: a } = t;
575
- return l ? d.createElement("table", { ...e, ...a }, l) : /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "TABLE HEAD / BODY" });
563
+ return e === "TableRow" ? l() : e === "TableHead" ? o() : e === "TableBody" ? a() : [];
564
+ }, Pe = (e) => {
565
+ const { blockProps: t, children: l, styles: o } = e;
566
+ return l ? d.createElement("table", { ...t, ...o }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE HEAD / BODY" });
576
567
  };
577
568
  u(Pe, {
578
569
  type: "Table",
@@ -584,11 +575,11 @@ u(Pe, {
584
575
  props: {
585
576
  styles: i({ default: "" })
586
577
  },
587
- blocks: _("Table")
578
+ blocks: S("Table")
588
579
  });
589
- const Ne = (t) => {
590
- const { blockProps: e, children: l, styles: a } = t;
591
- return l ? d.createElement("thead", { ...e, ...a }, l) : /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "TABLE ROW" });
580
+ const Ne = (e) => {
581
+ const { blockProps: t, children: l, styles: o } = e;
582
+ return l ? d.createElement("thead", { ...t, ...o }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE ROW" });
592
583
  };
593
584
  u(Ne, {
594
585
  type: "TableHead",
@@ -600,13 +591,13 @@ u(Ne, {
600
591
  props: {
601
592
  styles: i({ default: "" })
602
593
  },
603
- blocks: _("TableHead")
594
+ blocks: S("TableHead")
604
595
  });
605
- const Me = (t) => {
606
- const { blockProps: e, children: l, styles: a } = t;
607
- return l ? d.createElement("tbody", { ...e, ...a }, l) : /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "TABLE ROW" });
596
+ const Ce = (e) => {
597
+ const { blockProps: t, children: l, styles: o } = e;
598
+ return l ? d.createElement("tbody", { ...t, ...o }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE ROW" });
608
599
  };
609
- u(Me, {
600
+ u(Ce, {
610
601
  type: "TableBody",
611
602
  label: "Table Body",
612
603
  category: "core",
@@ -616,30 +607,30 @@ u(Me, {
616
607
  props: {
617
608
  styles: i({ default: "" })
618
609
  },
619
- blocks: _("TableBody")
610
+ blocks: S("TableBody")
620
611
  });
621
- const Ce = (t) => {
622
- const { blockProps: e, children: l, styles: a } = t;
623
- return l ? d.createElement("tr", { ...e, ...a }, l) : /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "TABLE CELL" });
612
+ const Me = (e) => {
613
+ const { blockProps: t, children: l, styles: o } = e;
614
+ return l ? d.createElement("tr", { ...t, ...o }, l) : /* @__PURE__ */ s.jsx(g, { blockProps: t, text: "TABLE CELL" });
624
615
  };
625
- u(Ce, {
616
+ u(Me, {
626
617
  type: "TableRow",
627
618
  label: "Table Row",
628
619
  category: "core",
629
620
  group: "table",
630
621
  hidden: !0,
631
- icon: se,
622
+ icon: re,
632
623
  props: {
633
624
  styles: i({ default: "w-full" })
634
625
  },
635
- blocks: _("TableRow")
626
+ blocks: S("TableRow")
636
627
  });
637
- const He = (t) => {
638
- const { blockProps: e, children: l, content: a, styles: s } = t;
639
- return !l && k(a) ? /* @__PURE__ */ r.jsx(g, { blockProps: e }) : l ? d.createElement("td", { ...e, ...s }, l) : d.createElement("td", {
640
- ...e,
641
- ...s,
642
- dangerouslySetInnerHTML: { __html: a }
628
+ const He = (e) => {
629
+ const { blockProps: t, children: l, content: o, styles: a } = e;
630
+ return !l && k(o) ? /* @__PURE__ */ s.jsx(g, { blockProps: t }) : l ? d.createElement("td", { ...t, ...a }, l) : d.createElement("td", {
631
+ ...t,
632
+ ...a,
633
+ dangerouslySetInnerHTML: { __html: o }
643
634
  });
644
635
  };
645
636
  u(He, {
@@ -648,36 +639,36 @@ u(He, {
648
639
  category: "core",
649
640
  group: "table",
650
641
  hidden: !0,
651
- icon: re,
642
+ icon: se,
652
643
  props: {
653
644
  styles: i({ default: "" }),
654
645
  content: T({ title: "Content", default: "Table cell item" })
655
646
  }
656
647
  });
657
- const Re = (t) => {
658
- const { blockProps: e, errorMessage: l, name: a, _type: s, successMessage: o, action: n, styles: c, children: p } = t;
659
- if (!p && k(c == null ? void 0 : c.className))
660
- return /* @__PURE__ */ r.jsx(g, { blockProps: e, text: "FORM FIELDS" });
661
- const m = {
648
+ const Re = (e) => {
649
+ const { blockProps: t, errorMessage: l, name: o, _type: a, successMessage: r, action: n, styles: c, children: m } = e;
650
+ let p = m;
651
+ m || (p = /* @__PURE__ */ s.jsx(g, { blockProps: {}, text: "FORM FIELDS" }));
652
+ const b = {
662
653
  "x-data": "useForm",
663
654
  "x-on:submit.prevent": "post"
664
655
  }, y = {
665
656
  "x-html": "formResponse",
666
657
  ":class": "{'text-red-500': formStatus === 'ERROR', 'text-green-500': formStatus === 'SUCCESS'}"
667
658
  };
668
- return /* @__PURE__ */ r.jsxs(
659
+ return /* @__PURE__ */ s.jsxs(
669
660
  "form",
670
661
  {
671
- ...m,
662
+ ...b,
672
663
  "data-error": l,
673
- "data-success": o,
664
+ "data-success": r,
674
665
  method: "post",
675
666
  action: n,
676
- ...e,
667
+ ...t,
677
668
  ...c,
678
669
  children: [
679
- /* @__PURE__ */ r.jsx("div", { ...y }),
680
- /* @__PURE__ */ r.jsx("input", { name: "formname", type: "hidden", value: a || s }),
670
+ /* @__PURE__ */ s.jsx("div", { ...y }),
671
+ /* @__PURE__ */ s.jsx("input", { name: "formname", type: "hidden", value: o || a }),
681
672
  p
682
673
  ]
683
674
  }
@@ -707,10 +698,10 @@ u(Re, {
707
698
  },
708
699
  canAcceptBlock: () => !0
709
700
  });
710
- const Ae = (t) => {
711
- const { blockProps: e, content: l, styles: a, children: s } = t, o = { ...a, ...e };
712
- return s ? d.createElement("label", o, s) : d.createElement("label", {
713
- ...o,
701
+ const Ae = (e) => {
702
+ const { blockProps: t, content: l, styles: o, children: a } = e, r = { ...o, ...t };
703
+ return a ? d.createElement("label", r, a) : d.createElement("label", {
704
+ ...r,
714
705
  dangerouslySetInnerHTML: { __html: l }
715
706
  });
716
707
  };
@@ -726,23 +717,23 @@ u(Ae, {
726
717
  content: f({ title: "Content", default: "Label" })
727
718
  }
728
719
  });
729
- const Fe = (t) => {
730
- const { blockProps: e, inBuilder: l, label: a, placeholder: s, styles: o, inputStyles: n, icon: c, iconPos: p } = t, m = x(), y = {
720
+ const Fe = (e) => {
721
+ const { blockProps: t, inBuilder: l, label: o, placeholder: a, styles: r, inputStyles: n, icon: c, iconPos: m } = e, p = x(), b = {
731
722
  "x-bind:disabled": "formLoading"
732
723
  };
733
- return /* @__PURE__ */ r.jsxs(
724
+ return /* @__PURE__ */ s.jsxs(
734
725
  "button",
735
726
  {
736
- id: m,
737
- ...y,
727
+ id: p,
728
+ ...b,
738
729
  ...n,
739
- ...o,
740
- ...e || {},
730
+ ...r,
731
+ ...t || {},
741
732
  type: l ? "button" : "submit",
742
- placeholder: s,
733
+ placeholder: a,
743
734
  children: [
744
- a,
745
- c && /* @__PURE__ */ r.jsx("span", { className: p, dangerouslySetInnerHTML: { __html: c } })
735
+ o,
736
+ c && /* @__PURE__ */ s.jsx("span", { className: m, dangerouslySetInnerHTML: { __html: c } })
746
737
  ]
747
738
  }
748
739
  );
@@ -751,7 +742,7 @@ u(Fe, {
751
742
  type: "FormButton",
752
743
  label: "Submit Button",
753
744
  category: "core",
754
- icon: R,
745
+ icon: H,
755
746
  group: "form",
756
747
  hidden: !0,
757
748
  props: {
@@ -759,7 +750,7 @@ u(Fe, {
759
750
  styles: i({
760
751
  default: "text-white bg-primary disabled:bg-gray-400 px-4 py-2 rounded-global flex items-center gap-x-2"
761
752
  }),
762
- icon: P({ title: "Icon", default: "" }),
753
+ icon: E({ title: "Icon", default: "" }),
763
754
  iconPos: I({
764
755
  title: "Icon Position",
765
756
  default: "order-last",
@@ -770,28 +761,28 @@ u(Fe, {
770
761
  })
771
762
  }
772
763
  });
773
- const De = (t) => {
774
- const { blockProps: e, fieldName: l, label: a, styles: s, inputStyles: o, required: n, checked: c, showLabel: p = !0 } = t, m = x();
775
- return p ? /* @__PURE__ */ r.jsxs("div", { ...s, ...e, children: [
776
- /* @__PURE__ */ r.jsx(
764
+ const De = (e) => {
765
+ const { blockProps: t, fieldName: l, label: o, styles: a, inputStyles: r, required: n, checked: c, showLabel: m = !0 } = e, p = x();
766
+ return m ? /* @__PURE__ */ s.jsxs("div", { ...a, ...t, children: [
767
+ /* @__PURE__ */ s.jsx(
777
768
  "input",
778
769
  {
779
- ...o,
770
+ ...r,
780
771
  name: l,
781
- id: m,
772
+ id: p,
782
773
  type: "checkbox",
783
774
  required: n,
784
775
  defaultChecked: c
785
776
  }
786
777
  ),
787
- a && a !== "Label" && /* @__PURE__ */ r.jsx("label", { htmlFor: m, children: a })
788
- ] }) : /* @__PURE__ */ r.jsx(
778
+ o && o !== "Label" && /* @__PURE__ */ s.jsx("label", { htmlFor: p, children: o })
779
+ ] }) : /* @__PURE__ */ s.jsx(
789
780
  "input",
790
781
  {
791
- id: m,
792
- ...e,
793
- ...o,
794
- ...s,
782
+ id: p,
783
+ ...t,
784
+ ...r,
785
+ ...a,
795
786
  type: "checkbox",
796
787
  required: n,
797
788
  name: l
@@ -813,43 +804,43 @@ u(De, {
813
804
  required: h({ title: "Required", default: !1 })
814
805
  }
815
806
  });
816
- const $e = (t) => {
807
+ const $e = (e) => {
817
808
  const {
818
- blockProps: e,
809
+ blockProps: t,
819
810
  label: l,
820
- placeholder: a,
821
- styles: s,
822
- inputStyles: o,
811
+ placeholder: o,
812
+ styles: a,
813
+ inputStyles: r,
823
814
  showLabel: n,
824
815
  required: c,
825
- inputType: p = "text",
826
- inBuilder: m,
827
- fieldName: y
828
- } = t, b = x();
829
- return !n || p === "submit" ? (p === "submit" && (e.value = l), /* @__PURE__ */ r.jsx(
816
+ inputType: m = "text",
817
+ inBuilder: p,
818
+ fieldName: b
819
+ } = e, y = x();
820
+ return !n || m === "submit" ? (m === "submit" && (t.value = l), /* @__PURE__ */ s.jsx(
830
821
  "input",
831
822
  {
832
- id: b,
833
- name: y,
834
- readOnly: m,
835
- ...e,
836
- ...o,
837
- ...s,
838
- type: p,
839
- placeholder: a,
823
+ id: y,
824
+ name: b,
825
+ readOnly: p,
826
+ ...t,
827
+ ...r,
828
+ ...a,
829
+ type: m,
830
+ placeholder: o,
840
831
  required: c
841
832
  }
842
- )) : /* @__PURE__ */ r.jsxs("div", { ...s, ...e, children: [
843
- n && /* @__PURE__ */ r.jsx("label", { htmlFor: b, children: l }),
844
- /* @__PURE__ */ r.jsx(
833
+ )) : /* @__PURE__ */ s.jsxs("div", { ...a, ...t, children: [
834
+ n && /* @__PURE__ */ s.jsx("label", { htmlFor: y, children: l }),
835
+ /* @__PURE__ */ s.jsx(
845
836
  "input",
846
837
  {
847
- name: y,
848
- readOnly: m,
849
- ...o,
850
- id: b,
851
- type: p,
852
- placeholder: a,
838
+ name: b,
839
+ readOnly: p,
840
+ ...r,
841
+ id: y,
842
+ type: m,
843
+ placeholder: o,
853
844
  required: c
854
845
  }
855
846
  )
@@ -859,7 +850,7 @@ u($e, {
859
850
  type: "Input",
860
851
  label: "Input",
861
852
  category: "core",
862
- icon: F,
853
+ icon: A,
863
854
  group: "form",
864
855
  hidden: !0,
865
856
  props: {
@@ -867,11 +858,11 @@ u($e, {
867
858
  fieldName: f({ title: "Field Name", default: "input" }),
868
859
  inputType: I({
869
860
  title: "Type",
870
- options: j(
861
+ options: _(
871
862
  ["text", "email", "password", "number", "tel", "file", "hidden", "range", "submit", "color", "date", "time"],
872
- (t) => ({
873
- value: t,
874
- title: t
863
+ (e) => ({
864
+ value: e,
865
+ title: e
875
866
  })
876
867
  ),
877
868
  default: "text"
@@ -887,18 +878,18 @@ u($e, {
887
878
  required: h({ title: "Required", default: !1 })
888
879
  }
889
880
  });
890
- const qe = (t) => {
891
- const { blockProps: e, fieldName: l, label: a, styles: s, inputStyles: o, checked: n, required: c, showLabel: p = !0 } = t, m = x();
892
- return p ? /* @__PURE__ */ r.jsxs("div", { ...s, ...e, children: [
893
- /* @__PURE__ */ r.jsx("input", { ...o, name: l, id: m, type: "radio", required: c, defaultChecked: n }),
894
- a && /* @__PURE__ */ r.jsx("label", { htmlFor: m, children: a })
895
- ] }) : /* @__PURE__ */ r.jsx(
881
+ const qe = (e) => {
882
+ const { blockProps: t, fieldName: l, label: o, styles: a, inputStyles: r, checked: n, required: c, showLabel: m = !0 } = e, p = x();
883
+ return m ? /* @__PURE__ */ s.jsxs("div", { ...a, ...t, children: [
884
+ /* @__PURE__ */ s.jsx("input", { ...r, name: l, id: p, type: "radio", required: c, defaultChecked: n }),
885
+ o && /* @__PURE__ */ s.jsx("label", { htmlFor: p, children: o })
886
+ ] }) : /* @__PURE__ */ s.jsx(
896
887
  "input",
897
888
  {
898
- id: m,
899
- ...e,
900
- ...o,
901
- ...s,
889
+ id: p,
890
+ ...t,
891
+ ...r,
892
+ ...a,
902
893
  type: "radio",
903
894
  required: c,
904
895
  checked: n,
@@ -921,63 +912,63 @@ u(qe, {
921
912
  required: h({ title: "Required", default: !1 })
922
913
  }
923
914
  });
924
- const ze = (t) => {
915
+ const ze = (e) => {
925
916
  const {
926
- blockProps: e,
917
+ blockProps: t,
927
918
  fieldName: l,
928
- label: a,
929
- placeholder: s,
930
- styles: o,
919
+ label: o,
920
+ placeholder: a,
921
+ styles: r,
931
922
  inputStyles: n,
932
923
  required: c,
933
- showLabel: p,
934
- _multiple: m = !1
935
- } = t, y = x();
936
- return p ? /* @__PURE__ */ r.jsxs("div", { ...o, children: [
937
- p && /* @__PURE__ */ r.jsx("label", { htmlFor: y, children: a }),
938
- /* @__PURE__ */ r.jsxs(
924
+ showLabel: m,
925
+ _multiple: p = !1
926
+ } = e, b = x();
927
+ return m ? /* @__PURE__ */ s.jsxs("div", { ...r, children: [
928
+ m && /* @__PURE__ */ s.jsx("label", { htmlFor: b, children: o }),
929
+ /* @__PURE__ */ s.jsxs(
939
930
  "select",
940
931
  {
941
932
  ...n,
942
- id: y,
943
- placeholder: s,
933
+ id: b,
934
+ placeholder: a,
944
935
  required: c,
945
- multiple: m,
936
+ multiple: p,
946
937
  name: l,
947
938
  children: [
948
- /* @__PURE__ */ r.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
949
- j(t.options, (b) => /* @__PURE__ */ r.jsx(
939
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
940
+ _(e.options, (y) => /* @__PURE__ */ s.jsx(
950
941
  "option",
951
942
  {
952
- selected: v(b, "selected", !1),
953
- value: b.value,
954
- dangerouslySetInnerHTML: { __html: b.label }
943
+ selected: v(y, "selected", !1),
944
+ value: y.value,
945
+ dangerouslySetInnerHTML: { __html: y.label }
955
946
  },
956
- b.value
947
+ y.value
957
948
  ))
958
949
  ]
959
950
  }
960
951
  )
961
- ] }) : /* @__PURE__ */ r.jsxs(
952
+ ] }) : /* @__PURE__ */ s.jsxs(
962
953
  "select",
963
954
  {
964
- id: y,
965
- ...o,
966
- ...e,
967
- placeholder: s,
955
+ id: b,
956
+ ...r,
957
+ ...t,
958
+ placeholder: a,
968
959
  required: c,
969
- multiple: m,
960
+ multiple: p,
970
961
  name: l,
971
962
  children: [
972
- /* @__PURE__ */ r.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: s }),
973
- j(t.options, (b) => /* @__PURE__ */ r.jsx(
963
+ /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, selected: !0, hidden: !0, children: a }),
964
+ _(e.options, (y) => /* @__PURE__ */ s.jsx(
974
965
  "option",
975
966
  {
976
- selected: v(b, "selected", !1),
977
- value: b.value,
978
- dangerouslySetInnerHTML: { __html: b.label }
967
+ selected: v(y, "selected", !1),
968
+ value: y.value,
969
+ dangerouslySetInnerHTML: { __html: y.label }
979
970
  },
980
- b.value
971
+ y.value
981
972
  ))
982
973
  ]
983
974
  }
@@ -1011,20 +1002,20 @@ u(ze, {
1011
1002
  })
1012
1003
  }
1013
1004
  });
1014
- const Oe = (t) => {
1015
- const { blockProps: e, fieldName: l, label: a, placeholder: s, styles: o, inputStyles: n, _rows: c, showLabel: p } = t, m = x();
1016
- return p ? /* @__PURE__ */ r.jsxs("div", { ...o, ...e, children: [
1017
- p && /* @__PURE__ */ r.jsx("label", { htmlFor: m, children: a }),
1018
- /* @__PURE__ */ r.jsx("textarea", { name: l, ...n, id: m, placeholder: s, rows: c })
1019
- ] }) : /* @__PURE__ */ r.jsx(
1005
+ const Oe = (e) => {
1006
+ const { blockProps: t, fieldName: l, label: o, placeholder: a, styles: r, inputStyles: n, _rows: c, showLabel: m } = e, p = x();
1007
+ return m ? /* @__PURE__ */ s.jsxs("div", { ...r, ...t, children: [
1008
+ m && /* @__PURE__ */ s.jsx("label", { htmlFor: p, children: o }),
1009
+ /* @__PURE__ */ s.jsx("textarea", { name: l, ...n, id: p, placeholder: a, rows: c })
1010
+ ] }) : /* @__PURE__ */ s.jsx(
1020
1011
  "textarea",
1021
1012
  {
1022
- id: m,
1013
+ id: p,
1023
1014
  name: l,
1024
- ...e,
1015
+ ...t,
1025
1016
  ...n,
1026
- ...o,
1027
- placeholder: s,
1017
+ ...r,
1018
+ placeholder: a,
1028
1019
  rows: c
1029
1020
  }
1030
1021
  );
@@ -1033,7 +1024,7 @@ u(Oe, {
1033
1024
  type: "TextArea",
1034
1025
  label: "TextArea",
1035
1026
  category: "core",
1036
- icon: F,
1027
+ icon: A,
1037
1028
  group: "form",
1038
1029
  hidden: !0,
1039
1030
  props: {