@chaibuilder/sdk 1.2.26 → 1.2.27

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