@chaibuilder/sdk 1.2.22 → 1.2.23

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