@levo-so/studio 0.1.100 → 0.1.101

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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as e } from "./dist-ir7pIkAm.js";
2
+ import { r as e } from "./dist-DuTd566a.js";
3
3
  import { n as t } from "./AuthProvider-56TywIOB.js";
4
4
  import { t as n } from "./card-BQr9258p.js";
5
5
  import { t as r } from "./MessageFooter-AzAtJWMo.js";
@@ -8,7 +8,7 @@ var s = {
8
8
  title: "_title_s7k8g_7",
9
9
  subtitle: "_subtitle_s7k8g_14",
10
10
  formWrapper: "_formWrapper_s7k8g_20"
11
- }, c = r(() => import("./PendingApprovalCard-z2sdLyCa.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-C6ORDqrY.js")), l = ({ logo: r, siteName: l, page: u }) => {
12
12
  let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
13
13
  return p ? /* @__PURE__ */ a(n, {
14
14
  fallback: /* @__PURE__ */ a("div", {}),
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as e } from "./dist-ir7pIkAm.js";
2
+ import { r as e } from "./dist-DuTd566a.js";
3
3
  import { t } from "./card-BQr9258p.js";
4
4
  import { t as n } from "./MessageFooter-AzAtJWMo.js";
5
5
  import { useState as r } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { t as e } from "./getFieldValidations-DZnDgNI0.js";
3
3
  import { r as t } from "./Input-Btdc1Dee.js";
4
- import { t as n } from "./VerifyButton-CdPQqtc2.js";
4
+ import { t as n } from "./VerifyButton-Bl2QqMpB.js";
5
5
  import { t as r } from "./CollectionInput-cmJ0RXzG.js";
6
6
  import { useState as i } from "react";
7
7
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -22,7 +22,7 @@ var _ = "_1k4xirc1", v = (e) => {
22
22
  className: i,
23
23
  ...r
24
24
  }), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
25
- }, y = "qkytrb0", b = "qkytrb1", x = "qkytrb2", S = "qkytrb3", C = "qkytrb4", w = "qkytrb5", T = "qkytrb6", E = "ch8h0x0", D = "ch8h0x1", O = "ch8h0x2", k = "ch8h0x3", A = "ch8h0x5", j = (e) => {
25
+ }, y = "_6o7s4x0", b = "qkytrb0", x = "qkytrb1", S = "qkytrb2", C = "qkytrb3", w = "qkytrb4", T = "qkytrb5", E = "qkytrb6", D = "ch8h0x0", O = "ch8h0x1", k = "ch8h0x2", A = "ch8h0x3", j = "ch8h0x5", M = (e) => {
26
26
  let t = d(4), n;
27
27
  t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
28
28
  let r;
@@ -30,7 +30,7 @@ var _ = "_1k4xirc1", v = (e) => {
30
30
  "data-slot": "dialog",
31
31
  ...n
32
32
  }), t[2] = n, t[3] = r), r;
33
- }, M = (t) => {
33
+ }, N = (t) => {
34
34
  let n = d(5), r;
35
35
  n[0] === t ? r = n[1] : ({...r} = t, n[0] = t, n[1] = r);
36
36
  let { portalRef: i } = e(), a;
@@ -38,36 +38,22 @@ var _ = "_1k4xirc1", v = (e) => {
38
38
  container: i,
39
39
  ...r
40
40
  }), n[2] = i, n[3] = r, n[4] = a) : a = n[4], a;
41
- }, N = (e) => {
41
+ }, P = (e) => {
42
42
  let t = d(8), n, r;
43
43
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
44
44
  let i;
45
- t[3] === n ? i = t[4] : (i = f(D, n), t[3] = n, t[4] = i);
45
+ t[3] === n ? i = t[4] : (i = f(O, n), t[3] = n, t[4] = i);
46
46
  let a;
47
47
  return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ o(g.Viewport, {
48
48
  "data-slot": "dialog-viewport",
49
49
  className: i,
50
50
  ...r
51
51
  }), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
52
- }, P = (e) => {
53
- let n = d(10), r, i, a;
54
- n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({variant: a, size: i, ...r} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
55
- let s;
56
- n[4] !== i || n[5] !== a ? (s = /* @__PURE__ */ o(t, {
57
- variant: a,
58
- size: i
59
- }), n[4] = i, n[5] = a, n[6] = s) : s = n[6];
60
- let c;
61
- return n[7] !== r || n[8] !== s ? (c = /* @__PURE__ */ o(g.Close, {
62
- "data-slot": "dialog-close",
63
- render: s,
64
- ...r
65
- }), n[7] = r, n[8] = s, n[9] = c) : c = n[9], c;
66
52
  }, F = (e) => {
67
53
  let t = d(8), n, r;
68
54
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
69
55
  let i;
70
- t[3] === n ? i = t[4] : (i = f(E, n), t[3] = n, t[4] = i);
56
+ t[3] === n ? i = t[4] : (i = f(D, n), t[3] = n, t[4] = i);
71
57
  let a;
72
58
  return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ o(g.Backdrop, {
73
59
  "data-slot": "dialog-backdrop",
@@ -78,7 +64,7 @@ var _ = "_1k4xirc1", v = (e) => {
78
64
  let n = d(14), r, i, a, c;
79
65
  n[0] === e ? (r = n[1], i = n[2], a = n[3], c = n[4]) : ({className: i, children: r, showCloseButton: c, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = c);
80
66
  let l = c === void 0 ? !0 : c, u;
81
- n[5] === i ? u = n[6] : (u = f(O, i), n[5] = i, n[6] = u);
67
+ n[5] === i ? u = n[6] : (u = f(k, i), n[5] = i, n[6] = u);
82
68
  let p;
83
69
  n[7] === l ? p = n[8] : (p = l && /* @__PURE__ */ o(g.Close, {
84
70
  "data-slot": "dialog-close",
@@ -101,7 +87,7 @@ var _ = "_1k4xirc1", v = (e) => {
101
87
  let t = d(8), n, r;
102
88
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
103
89
  let i;
104
- t[3] === n ? i = t[4] : (i = f(k, n), t[3] = n, t[4] = i);
90
+ t[3] === n ? i = t[4] : (i = f(A, n), t[3] = n, t[4] = i);
105
91
  let a;
106
92
  return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ o("div", {
107
93
  "data-slot": "dialog-header",
@@ -112,7 +98,7 @@ var _ = "_1k4xirc1", v = (e) => {
112
98
  let t = d(8), n, r;
113
99
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
114
100
  let i;
115
- t[3] === n ? i = t[4] : (i = f(A, n), t[3] = n, t[4] = i);
101
+ t[3] === n ? i = t[4] : (i = f(j, n), t[3] = n, t[4] = i);
116
102
  let a;
117
103
  return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ o(g.Title, {
118
104
  "data-slot": "dialog-title",
@@ -125,108 +111,111 @@ var _ = "_1k4xirc1", v = (e) => {
125
111
  let c = a === void 0 ? !0 : a, l;
126
112
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o(F, {}), t[5] = l) : l = t[5];
127
113
  let u;
128
- return t[6] !== n || t[7] !== r || t[8] !== i || t[9] !== c ? (u = /* @__PURE__ */ s(M, { children: [l, /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o(I, {
114
+ return t[6] !== n || t[7] !== r || t[8] !== i || t[9] !== c ? (u = /* @__PURE__ */ s(N, { children: [l, /* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(I, {
129
115
  className: r,
130
116
  showCloseButton: c,
131
117
  ...i,
132
118
  children: n
133
119
  }) })] }), t[6] = n, t[7] = r, t[8] = i, t[9] = c, t[10] = u) : u = t[10], u;
134
120
  }, B = ({ isOpen: e, onClose: a, value: d, type: f = "email", onVerifySuccess: p }) => {
135
- let { membership: m } = u(), [h, g] = i(""), [_, v] = i(!1), [E, D] = i(!1), [O, k] = i(30);
121
+ let { membership: m } = u(), [h, g] = i(""), [_, v] = i(!1), [D, O] = i(!1), [k, A] = i(30);
136
122
  return r(() => {
137
123
  let t;
138
- return e && O > 0 && (t = setInterval(() => {
139
- k((e) => e - 1);
124
+ return e && k > 0 && (t = setInterval(() => {
125
+ A((e) => e - 1);
140
126
  }, 1e3)), () => clearInterval(t);
141
- }, [e, O]), r(() => {
142
- e && (g(""), k(30), v(!1), D(!1));
143
- }, [e]), /* @__PURE__ */ o(j, {
127
+ }, [e, k]), r(() => {
128
+ e && (g(""), A(30), v(!1), O(!1));
129
+ }, [e]), /* @__PURE__ */ o(M, {
144
130
  open: e,
145
131
  onOpenChange: (e) => {
146
132
  e || a();
147
133
  },
148
- children: /* @__PURE__ */ s(z, { children: [/* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(R, { children: `Verify ${f === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ s("div", {
134
+ children: /* @__PURE__ */ s(z, {
149
135
  className: y,
150
- children: [
151
- /* @__PURE__ */ s("div", {
152
- className: b,
153
- children: [
154
- "Enter the 4-digit code sent to ",
155
- /* @__PURE__ */ o("strong", { children: d }),
156
- ".",
157
- " ",
158
- /* @__PURE__ */ o("button", {
159
- onClick: () => a(),
160
- className: x,
161
- children: "Change?"
136
+ children: [/* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(R, { children: `Verify ${f === "email" ? "Email" : "Phone"}` }) }), /* @__PURE__ */ s("div", {
137
+ className: b,
138
+ children: [
139
+ /* @__PURE__ */ s("div", {
140
+ className: x,
141
+ children: [
142
+ "Enter the 4-digit code sent to ",
143
+ /* @__PURE__ */ o("strong", { children: d }),
144
+ ".",
145
+ " ",
146
+ /* @__PURE__ */ o("button", {
147
+ onClick: () => a(),
148
+ className: S,
149
+ children: "Change?"
150
+ })
151
+ ]
152
+ }),
153
+ /* @__PURE__ */ o("div", {
154
+ className: C,
155
+ children: /* @__PURE__ */ o(n, {
156
+ value: h,
157
+ onChange: (e) => {
158
+ g(e.target.value.replace(/\D/g, "").slice(0, 4));
159
+ },
160
+ placeholder: "0000",
161
+ maxLength: 4,
162
+ className: T
162
163
  })
163
- ]
164
- }),
165
- /* @__PURE__ */ o("div", {
166
- className: S,
167
- children: /* @__PURE__ */ o(n, {
168
- value: h,
169
- onChange: (e) => {
170
- g(e.target.value.replace(/\D/g, "").slice(0, 4));
171
- },
172
- placeholder: "0000",
173
- maxLength: 4,
174
- className: w
175
- })
176
- }),
177
- /* @__PURE__ */ s("div", {
178
- className: C,
179
- children: [/* @__PURE__ */ o(t, {
180
- onClick: async () => {
181
- if (!(!h || h.length !== 4)) {
182
- v(!0);
183
- try {
184
- await m?.signInWithOtp({
185
- content: d,
186
- code: h
187
- }), l("Verification successful"), p(d), a();
188
- } catch (e) {
189
- let t = e;
190
- c(t?.message || "Invalid OTP", t?.title || "Verification Failed");
191
- } finally {
192
- v(!1);
193
- }
194
- }
195
- },
196
- disabled: h.length !== 4 || _,
197
- className: "w-full",
198
- children: _ ? "Verifying..." : "Verify"
199
- }), /* @__PURE__ */ o("div", {
200
- className: T,
201
- children: O > 0 ? /* @__PURE__ */ s("span", { children: [
202
- "Resend code in ",
203
- O,
204
- "s"
205
- ] }) : /* @__PURE__ */ o("button", {
164
+ }),
165
+ /* @__PURE__ */ s("div", {
166
+ className: w,
167
+ children: [/* @__PURE__ */ o(t, {
206
168
  onClick: async () => {
207
- if (!(O > 0)) {
208
- D(!0);
169
+ if (!(!h || h.length !== 4)) {
170
+ v(!0);
209
171
  try {
210
- await m?.requestOtp({
172
+ await m?.signInWithOtp({
211
173
  content: d,
212
- medium: f === "phone" ? "whatsapp" : "email"
213
- }), l("OTP resent successfully"), k(30);
174
+ code: h
175
+ }), l("Verification successful"), p(d), a();
214
176
  } catch (e) {
215
177
  let t = e;
216
- c(t?.message || "Failed to resend OTP", t?.title || "Error");
178
+ c(t?.message || "Invalid OTP", t?.title || "Verification Failed");
217
179
  } finally {
218
- D(!1);
180
+ v(!1);
219
181
  }
220
182
  }
221
183
  },
222
- disabled: E,
223
- className: x,
224
- children: E ? "Resending..." : "Resend Code"
225
- })
226
- })]
227
- })
228
- ]
229
- })] })
184
+ disabled: h.length !== 4 || _,
185
+ className: "w-full",
186
+ children: _ ? "Verifying..." : "Verify"
187
+ }), /* @__PURE__ */ o("div", {
188
+ className: E,
189
+ children: k > 0 ? /* @__PURE__ */ s("span", { children: [
190
+ "Resend code in ",
191
+ k,
192
+ "s"
193
+ ] }) : /* @__PURE__ */ o("button", {
194
+ onClick: async () => {
195
+ if (!(k > 0)) {
196
+ O(!0);
197
+ try {
198
+ await m?.requestOtp({
199
+ content: d,
200
+ medium: f === "phone" ? "whatsapp" : "email"
201
+ }), l("OTP resent successfully"), A(30);
202
+ } catch (e) {
203
+ let t = e;
204
+ c(t?.message || "Failed to resend OTP", t?.title || "Error");
205
+ } finally {
206
+ O(!1);
207
+ }
208
+ }
209
+ },
210
+ disabled: D,
211
+ className: S,
212
+ children: D ? "Resending..." : "Resend Code"
213
+ })
214
+ })]
215
+ })
216
+ ]
217
+ })]
218
+ })
230
219
  });
231
220
  }, V = "jfrbe10", H = "jfrbe11", U = "jfrbe12", W = ({ value: e, type: n, isVerified: r, onVerifySuccess: l, onStateChange: d }) => {
232
221
  let { membership: f } = u(), [m, h] = i(!1), [g, _] = i(!1), y = (e) => {
@@ -281,4 +270,4 @@ var _ = "_1k4xirc1", v = (e) => {
281
270
  })] });
282
271
  };
283
272
  //#endregion
284
- export { P as a, R as i, L as n, j as o, z as r, v as s, W as t };
273
+ export { M as a, R as i, L as n, y as o, z as r, v as s, W as t };
package/collection.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, u as d } from "./dist-ir7pIkAm.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, u as d } from "./dist-DuTd566a.js";
2
2
  import { t as f } from "./getFieldValidations-DZnDgNI0.js";
3
- import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./widgets-DD4OjK2Y.js";
4
- import { t as T } from "./utils-CsfPGq4R.js";
3
+ import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./widgets-CWDiqXm9.js";
4
+ import { t as T } from "./utils-kDaDLLGt.js";
5
5
  import { a as E, c as D, i as O, l as k, m as A, o as j, r as M, s as N, u as P } from "./Input-Btdc1Dee.js";
6
6
  import { t as F } from "./CollectionInput-cmJ0RXzG.js";
7
7
  //#region ../../libraries/react-collection/dist/types/formVariant.js
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { n as e, r as t, t as n } from "./getFieldValidations-DZnDgNI0.js";
3
- import { _ as r, d as i, f as a, g as o, h as s, n as c, o as l, p as u, r as d, t as f, v as p } from "./widgets-DD4OjK2Y.js";
3
+ import { _ as r, d as i, f as a, g as o, h as s, n as c, o as l, p as u, r as d, t as f, v as p } from "./widgets-CWDiqXm9.js";
4
4
  import { t as m } from "./theme.cssm-2YTdd8Yh.js";
5
5
  import { f as h, h as g, m as _, n as v, r as y } from "./Input-Btdc1Dee.js";
6
- import { a as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./VerifyButton-CdPQqtc2.js";
6
+ import { a as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./VerifyButton-Bl2QqMpB.js";
7
7
  import { n as D, r as O, t as k } from "./Tooltip-BOq5vSOW.js";
8
8
  import { n as A, r as j, t as M } from "./CollectionInput-cmJ0RXzG.js";
9
9
  import * as N from "react";
@@ -64,12 +64,7 @@ var Be = ((e) => (t) => t ? ze(e, t) : e)({
64
64
  height: "2.25rem",
65
65
  borderRadius: "6px"
66
66
  },
67
- checkbox: { labelFontSize: "0.875rem" },
68
- button: {
69
- fontSize: "0.875rem",
70
- padding: "0.5rem 1rem",
71
- borderRadius: "6px"
72
- }
67
+ checkbox: { labelFontSize: "0.875rem" }
73
68
  }), Ve = "_1g8bxz40", He = "_1kzhxrs0", Ue = "_1kzhxrs1", We = "_1kzhxrs2", Ge = "_1kzhxrs3", Ke = "_1kzhxrs4", qe = "_1kzhxrs5", Je = "_1kzhxrs6", Ye = "_1kzhxrs7", Xe = "_1kzhxrs8", Ze = "_1kzhxrs9", Qe = "_1kzhxrsa", $e = "_1kzhxrsb", et = "ktjhuv0", tt = ae({
74
69
  defaultClassName: "ktjhuv1",
75
70
  variantClassNames: { variant: {
@@ -241,7 +236,7 @@ var Be = ((e) => (t) => t ? ze(e, t) : e)({
241
236
  j
242
237
  ]
243
238
  }), t[32] = k, t[33] = A, t[34] = j, t[35] = M) : M = t[35], M;
244
- }, ut = "_8vx4f60 _1oiks600 _1ri7vba0", dt = "_8vx4f61", ft = "_8vx4f62", pt = "_8vx4f63", mt = "_8vx4f66", ht = "_8vx4f67", gt = "_8vx4f68", _t = "_8vx4f69", vt = "_8vx4f6a", yt = "_8vx4f6b", bt = "_8vx4f6c", xt = "_8vx4f6d _6o7s4x0", St = "_8vx4f6e", Ct = "_8vx4f6f", wt = "_8vx4f6g", Tt = "_8vx4f6h", Et = "_8vx4f6k _6o7s4x1", Dt = {
239
+ }, ut = "_8vx4f60 _1oiks600 _1ri7vba0", dt = "_8vx4f61", ft = "_8vx4f62", pt = "_8vx4f63", mt = "_8vx4f66", ht = "_8vx4f67", gt = "_8vx4f68", _t = "_8vx4f69", vt = "_8vx4f6a", yt = "_8vx4f6b", bt = "_8vx4f6c", xt = "_8vx4f6d _6o7s4x0", St = "_8vx4f6e", Ct = "_8vx4f6f", wt = "_8vx4f6g", Tt = "_8vx4f6h", Et = "_8vx4f6k", Dt = {
245
240
  container: () => dt,
246
241
  control: ({ isFocused: e, isMulti: t, isDisabled: n }) => Q(ut, t ? pt : ft, e && "_8vx4f64", n && "_8vx4f65"),
247
242
  input: () => "",
@@ -1495,7 +1490,7 @@ function Hn(e) {
1495
1490
  //#endregion
1496
1491
  //#region ../../libraries/react-collection/dist/widgets/uploadWidget/modal/FileUploadModal.cssm.js
1497
1492
  var Un = "vwpjhx0", Wn = "vwpjhx1", Gn = "vwpjhx2", Kn = "vwpjhx5", qn = "vwpjhx6", Jn = "vwpjhxb", Yn = (e) => {
1498
- let t = Z(56), { isOpen: n, setIsOpen: r, files: i, kind: a, allowedExtensions: o, isMultiple: s, isLoading: c, handleUploadFiles: l, handleChange: u } = e, d;
1493
+ let t = Z(57), { isOpen: n, setIsOpen: r, files: i, kind: a, allowedExtensions: o, isMultiple: s, isLoading: c, handleUploadFiles: l, handleChange: u } = e, d;
1499
1494
  t[0] === r ? d = t[1] : (d = () => r(!1), t[0] = r, t[1] = d);
1500
1495
  let f = d, p = i.length, m;
1501
1496
  bb0: {
@@ -1533,60 +1528,62 @@ var Un = "vwpjhx0", Wn = "vwpjhx1", Gn = "vwpjhx2", Kn = "vwpjhx5", qn = "vwpjhx
1533
1528
  disabled: c,
1534
1529
  onDropRejected: $n
1535
1530
  }, t[8] = g, t[9] = c, t[10] = s, t[11] = v, t[12] = y) : y = t[12];
1536
- let { getRootProps: E, getInputProps: D, isDragActive: O } = Fe(y), k = a?.length > 1 ? "Upload file" : `Upload ${a?.[0]}`, A;
1537
- t[13] === k ? A = t[14] : (A = /* @__PURE__ */ G(S, { children: /* @__PURE__ */ G(x, { children: k }) }), t[13] = k, t[14] = A);
1538
- let j = c && "vwpjhx3", M;
1539
- t[15] === j ? M = t[16] : (M = Q(Gn, j), t[15] = j, t[16] = M);
1540
- let N;
1541
- t[17] === E ? N = t[18] : (N = E(), t[17] = E, t[18] = N);
1531
+ let { getRootProps: E, getInputProps: D, isDragActive: O } = Fe(y), k;
1532
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (k = Q(Un, C), t[13] = k) : k = t[13];
1533
+ let A = a?.length > 1 ? "Upload file" : `Upload ${a?.[0]}`, j;
1534
+ t[14] === A ? j = t[15] : (j = /* @__PURE__ */ G(S, { children: /* @__PURE__ */ G(x, { children: A }) }), t[14] = A, t[15] = j);
1535
+ let M = c && "vwpjhx3", N;
1536
+ t[16] === M ? N = t[17] : (N = Q(Gn, M), t[16] = M, t[17] = N);
1542
1537
  let P;
1543
- t[19] === c ? P = t[20] : (P = c && /* @__PURE__ */ G("div", {
1538
+ t[18] === E ? P = t[19] : (P = E(), t[18] = E, t[19] = P);
1539
+ let F;
1540
+ t[20] === c ? F = t[21] : (F = c && /* @__PURE__ */ G("div", {
1544
1541
  className: "vwpjhx4",
1545
1542
  children: /* @__PURE__ */ G(T, {})
1546
- }), t[19] = c, t[20] = P);
1547
- let F = O ? "Drop your files here..." : s && i.length > 0 ? "Drag & Drop here to upload more!" : i?.length > 0 ? "Drag & Drop here to upload another file!" : "Drag & Drop here to upload file!", I;
1548
- t[21] === F ? I = t[22] : (I = /* @__PURE__ */ G("p", {
1543
+ }), t[20] = c, t[21] = F);
1544
+ let I = O ? "Drop your files here..." : s && i.length > 0 ? "Drag & Drop here to upload more!" : i?.length > 0 ? "Drag & Drop here to upload another file!" : "Drag & Drop here to upload file!", L;
1545
+ t[22] === I ? L = t[23] : (L = /* @__PURE__ */ G("p", {
1549
1546
  className: Kn,
1550
- children: F
1551
- }), t[21] = F, t[22] = I);
1552
- let L = c && "vwpjhx7", R;
1553
- t[23] === L ? R = t[24] : (R = Q(qn, L), t[23] = L, t[24] = R);
1554
- let z;
1555
- t[25] === D ? z = t[26] : (z = D(), t[25] = D, t[26] = z);
1547
+ children: I
1548
+ }), t[22] = I, t[23] = L);
1549
+ let R = c && "vwpjhx7", z;
1550
+ t[24] === R ? z = t[25] : (z = Q(qn, R), t[24] = R, t[25] = z);
1556
1551
  let B;
1557
- t[27] === z ? B = t[28] : (B = /* @__PURE__ */ G("input", { ...z }), t[27] = z, t[28] = B);
1552
+ t[26] === D ? B = t[27] : (B = D(), t[26] = D, t[27] = B);
1558
1553
  let V;
1559
- t[29] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ G(De, { size: 14 }), t[29] = V) : V = t[29];
1554
+ t[28] === B ? V = t[29] : (V = /* @__PURE__ */ G("input", { ...B }), t[28] = B, t[29] = V);
1560
1555
  let H;
1561
- t[30] === B ? H = t[31] : (H = /* @__PURE__ */ K(h, {
1556
+ t[30] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ G(De, { size: 14 }), t[30] = H) : H = t[30];
1557
+ let U;
1558
+ t[31] === V ? U = t[32] : (U = /* @__PURE__ */ K(h, {
1562
1559
  variant: "ghost",
1563
1560
  size: "sm",
1564
1561
  children: [
1565
- B,
1566
1562
  V,
1563
+ H,
1567
1564
  "Click to upload"
1568
1565
  ]
1569
- }), t[30] = B, t[31] = H);
1570
- let U;
1571
- t[32] !== R || t[33] !== H ? (U = /* @__PURE__ */ G("div", {
1572
- className: R,
1573
- children: H
1574
- }), t[32] = R, t[33] = H, t[34] = U) : U = t[34];
1566
+ }), t[31] = V, t[32] = U);
1575
1567
  let W;
1576
- t[35] !== P || t[36] !== I || t[37] !== U || t[38] !== M || t[39] !== N ? (W = /* @__PURE__ */ G("div", {
1568
+ t[33] !== z || t[34] !== U ? (W = /* @__PURE__ */ G("div", {
1569
+ className: z,
1570
+ children: U
1571
+ }), t[33] = z, t[34] = U, t[35] = W) : W = t[35];
1572
+ let q;
1573
+ t[36] !== P || t[37] !== F || t[38] !== L || t[39] !== W || t[40] !== N ? (q = /* @__PURE__ */ G("div", {
1577
1574
  className: Wn,
1578
1575
  children: /* @__PURE__ */ K("div", {
1579
- className: M,
1580
- ...N,
1576
+ className: N,
1577
+ ...P,
1581
1578
  children: [
1582
- P,
1583
- I,
1584
- U
1579
+ F,
1580
+ L,
1581
+ W
1585
1582
  ]
1586
1583
  })
1587
- }), t[35] = P, t[36] = I, t[37] = U, t[38] = M, t[39] = N, t[40] = W) : W = t[40];
1588
- let q;
1589
- t[41] !== i || t[42] !== u ? (q = i.length > 0 && /* @__PURE__ */ K("div", {
1584
+ }), t[36] = P, t[37] = F, t[38] = L, t[39] = W, t[40] = N, t[41] = q) : q = t[41];
1585
+ let J;
1586
+ t[42] !== i || t[43] !== u ? (J = i.length > 0 && /* @__PURE__ */ K("div", {
1590
1587
  className: "vwpjhx8",
1591
1588
  children: [/* @__PURE__ */ G("h3", {
1592
1589
  className: "vwpjhx9",
@@ -1600,32 +1597,32 @@ var Un = "vwpjhx0", Wn = "vwpjhx1", Gn = "vwpjhx2", Kn = "vwpjhx5", qn = "vwpjhx
1600
1597
  }
1601
1598
  }, e.id))
1602
1599
  })]
1603
- }), t[41] = i, t[42] = u, t[43] = q) : q = t[43];
1604
- let J = p === 1 ? `${p} file` : `${p} files`, Y;
1605
- t[44] !== f || t[45] !== J ? (Y = /* @__PURE__ */ G("div", {
1600
+ }), t[42] = i, t[43] = u, t[44] = J) : J = t[44];
1601
+ let Y = p === 1 ? `${p} file` : `${p} files`, X;
1602
+ t[45] !== f || t[46] !== Y ? (X = /* @__PURE__ */ G("div", {
1606
1603
  className: Jn,
1607
- children: /* @__PURE__ */ G(b, { children: /* @__PURE__ */ K(h, {
1604
+ children: /* @__PURE__ */ K(h, {
1608
1605
  variant: "default",
1609
1606
  onClick: f,
1610
- children: ["Save\xA0", J]
1611
- }) })
1612
- }), t[44] = f, t[45] = J, t[46] = Y) : Y = t[46];
1613
- let X;
1614
- t[47] !== W || t[48] !== q || t[49] !== Y || t[50] !== A ? (X = /* @__PURE__ */ K(w, {
1615
- className: Un,
1607
+ children: ["Save\xA0", Y]
1608
+ })
1609
+ }), t[45] = f, t[46] = Y, t[47] = X) : X = t[47];
1610
+ let ee;
1611
+ t[48] !== q || t[49] !== J || t[50] !== X || t[51] !== j ? (ee = /* @__PURE__ */ K(w, {
1612
+ className: k,
1616
1613
  children: [
1617
- A,
1618
- W,
1614
+ j,
1619
1615
  q,
1620
- Y
1616
+ J,
1617
+ X
1621
1618
  ]
1622
- }), t[47] = W, t[48] = q, t[49] = Y, t[50] = A, t[51] = X) : X = t[51];
1623
- let ee;
1624
- return t[52] !== n || t[53] !== r || t[54] !== X ? (ee = /* @__PURE__ */ G(C, {
1619
+ }), t[48] = q, t[49] = J, t[50] = X, t[51] = j, t[52] = ee) : ee = t[52];
1620
+ let ne;
1621
+ return t[53] !== n || t[54] !== r || t[55] !== ee ? (ne = /* @__PURE__ */ G(b, {
1625
1622
  open: n,
1626
1623
  onOpenChange: r,
1627
- children: X
1628
- }), t[52] = n, t[53] = r, t[54] = X, t[55] = ee) : ee = t[55], ee;
1624
+ children: ee
1625
+ }), t[53] = n, t[54] = r, t[55] = ee, t[56] = ne) : ne = t[56], ne;
1629
1626
  };
1630
1627
  function Xn(e, t) {
1631
1628
  return {
@@ -1747,7 +1744,7 @@ var er = "_156u72w0", tr = "_156u72w1", nr = (e) => Array.isArray(e) && e.every(
1747
1744
  leftIcon: n,
1748
1745
  ...e
1749
1746
  }), t[1] = e, t[2] = r), r;
1750
- }, ar = L(() => import("./DateTimeWidget-B5lBr0_R.js")), or = L(() => import("./PhoneWidget-1ffYuESC.js")), sr = L(() => import("./RichTextWidget-CjEoGecM.js")), cr = {
1747
+ }, ar = L(() => import("./DateTimeWidget-B5lBr0_R.js")), or = L(() => import("./PhoneWidget-BRIAve47.js")), sr = L(() => import("./RichTextWidget-CjEoGecM.js")), cr = {
1751
1748
  TextWidget: f((e) => /* @__PURE__ */ G(An, { ...e })),
1752
1749
  NumberWidget: f((e) => /* @__PURE__ */ G(An, {
1753
1750
  type: "number",
package/index.d.ts CHANGED
@@ -1075,11 +1075,6 @@ declare interface ICollectionTheme {
1075
1075
  checkbox: {
1076
1076
  labelFontSize: string;
1077
1077
  };
1078
- button: {
1079
- fontSize: string;
1080
- padding: string;
1081
- borderRadius: string;
1082
- };
1083
1078
  }
1084
1079
 
1085
1080
  declare interface ICommentsRestrictionOverlayProps {
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { n as e, t } from "./AuthProvider-56TywIOB.js";
3
3
  import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, y as b } from "./Button-XTKnNIl9.js";
4
4
  import { n as x, t as S } from "./ModalManager-SggxCIno.js";
5
- import { _ as C, c as w, h as T, v as E } from "./widgets-DD4OjK2Y.js";
5
+ import { _ as C, c as w, h as T, v as E } from "./widgets-CWDiqXm9.js";
6
6
  import { n as D } from "./theme.cssm-2YTdd8Yh.js";
7
7
  import { a as O, i as k, n as ee, o as te, r as ne, t as re } from "./nodeAlignment-BZbdafVA.js";
8
8
  import { a as ie, i as ae, n as A, o as oe, r as se, s as ce, t as le } from "./dialog-Dw6n_36P.js";
@@ -3043,7 +3043,7 @@ var Ni = j.memo(({ html_id: e, renderMode: t = "live", blocks: n, parsedBlockDat
3043
3043
  })
3044
3044
  }));
3045
3045
  Ni.displayName = "LevoBlock";
3046
- var Pi = { loadingContainer: "_loadingContainer_1d4on_1" }, Fi = P(() => import("./LoginCard-5LaKaFCO.js")), Ii = P(() => import("./EntryCard-CYdsSkIk.js")), Li = P(() => import("./MessageCard-ChDBqLVG.js")), Ri = {
3046
+ var Pi = { loadingContainer: "_loadingContainer_1d4on_1" }, Fi = P(() => import("./LoginCard-CnHmCKUF.js")), Ii = P(() => import("./EntryCard-DTcx6wfA.js")), Li = P(() => import("./MessageCard-ChDBqLVG.js")), Ri = {
3047
3047
  "authentication.NOT_LOGGED_IN": ({ logo: e, siteName: t, page: n }) => /* @__PURE__ */ V(M, {
3048
3048
  fallback: /* @__PURE__ */ V("div", {}),
3049
3049
  children: /* @__PURE__ */ V(Fi, {
@@ -6211,7 +6211,7 @@ var so = l(eo), co = N(({ children: e, className: t, elementKey: n, generatedCla
6211
6211
  children: [/* @__PURE__ */ V(Ja, { backgroundVideo: a?.backgroundVideo }), e]
6212
6212
  }));
6213
6213
  co.displayName = "BaseContainer";
6214
- var lo = l(co), uo = P(() => import("./dist-ir7pIkAm.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), fo = l(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ V("div", {
6214
+ var lo = l(co), uo = P(() => import("./dist-DuTd566a.js").then((e) => e.t).then((e) => ({ default: e.CollectionForm }))), fo = l(({ elementKey: e, generatedClassName: t, config: n, className: r, initialValues: i, theme: a, onSubmit: o, isLoading: s }) => /* @__PURE__ */ V("div", {
6215
6215
  "data-levo_element_key": e,
6216
6216
  className: W(r, t),
6217
6217
  children: /* @__PURE__ */ V(M, {
@@ -6233,7 +6233,7 @@ var lo = l(co), uo = P(() => import("./dist-ir7pIkAm.js").then((e) => e.t).then(
6233
6233
  isLoading: s
6234
6234
  })
6235
6235
  })
6236
- })), po = P(() => import("./dist-ir7pIkAm.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), mo = P(() => import("./bookingCard-D3ZSjq-P.js").then((e) => ({ default: e.BookingCard }))), ho = P(() => import("./BillingStep-Brc1Mzo3.js").then((e) => ({ default: e.BillingStep }))), go = l(({ elementKey: t, generatedClassName: n, config: r, className: i, initialValues: a, theme: o }) => {
6236
+ })), po = P(() => import("./dist-DuTd566a.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormRenderer }))), mo = P(() => import("./bookingCard-D3ZSjq-P.js").then((e) => ({ default: e.BookingCard }))), ho = P(() => import("./BillingStep-Brc1Mzo3.js").then((e) => ({ default: e.BillingStep }))), go = l(({ elementKey: t, generatedClassName: n, config: r, className: i, initialValues: a, theme: o }) => {
6237
6237
  let s = G(), { workspace: c } = e(), l = L(() => {
6238
6238
  if (!r?.theme && !o) return;
6239
6239
  let e = r?.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.1.100",
3
+ "version": "0.1.101",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",