@levo-so/studio 0.1.95 → 0.1.96

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 (41) hide show
  1. package/{BillingStep-BLwl9IDQ.js → BillingStep-C3jJkLXQ.js} +1 -1
  2. package/{Button-C6BOkG_z.js → Button-CwN6jTXH.js} +1 -1
  3. package/CollectionField-DnbpB0Z5.js +254 -0
  4. package/CollectionInput-BoNAc4sq.js +132 -0
  5. package/DateTimeWidget-IRleQI-3.js +255 -0
  6. package/{EntryCard-B-feJvrB.js → EntryCard-CZIUBwtE.js} +3 -3
  7. package/{LoginCard-CF9JbU-y.js → LoginCard-Bthy9dcf.js} +3 -3
  8. package/{LoginForm-CdpNCQJa.js → LoginForm-CPMtCyMF.js} +4 -0
  9. package/{LoginModal-ngTHCyli.js → LoginModal-BPI5tOIZ.js} +3 -3
  10. package/{MessageCard-D2uja800.js → MessageCard-BYxgc9dl.js} +2 -2
  11. package/{ModalManager-B7pCzvK1.js → ModalManager-BaIL6HG-.js} +1 -1
  12. package/{PendingApprovalCard-Dut-Xiw1.js → PendingApprovalCard-DEnawzxD.js} +3 -3
  13. package/PhoneWidget-CjhHfwuG.js +100 -0
  14. package/Popover-DHVZdJuv.js +56 -0
  15. package/RichTextWidget-CgT1_zC3.js +1135 -0
  16. package/Tooltip-ByJRyayB.js +78 -0
  17. package/VerifyButton-DFKzKYxC.js +283 -0
  18. package/{bookingCard-BU_MdmS9.js → bookingCard-Bw4tvDYh.js} +3 -3
  19. package/collection.d.ts +81 -46
  20. package/collection.js +8 -5
  21. package/dist-D_jY4Tf1.js +3168 -0
  22. package/getFieldValidations-qVzuq6mv.js +195 -0
  23. package/index.d.ts +5 -5
  24. package/index.js +1229 -1434
  25. package/nodeAlignment-CG3qmAuQ.js +180 -0
  26. package/package.json +3 -4
  27. package/studio.css +1 -1
  28. package/theme.cssm-De_pl52g.js +4 -0
  29. package/{utils-KqbqLlMF.js → utils-F6eBcsyI.js} +1 -1
  30. package/widgets-Dvyv5_uj.js +215 -0
  31. package/dist-DDKHTnIW.js +0 -3653
  32. package/widgets-B84lq4lO.js +0 -351
  33. /package/{Beams-CCNNOvfW.js → Beams-Blr-zwvz.js} +0 -0
  34. /package/{Dots-89WGkd-z.js → Dots-DeBKuibU.js} +0 -0
  35. /package/{Gradient-vTa_uWCj.js → Gradient-DGFxOjft.js} +0 -0
  36. /package/{Grid-CrtztrxK.js → Grid-A7HRCQ0T.js} +0 -0
  37. /package/{MessageFooter-Bu-jyPkJ.js → MessageFooter-C6DivT4m.js} +0 -0
  38. /package/{StripePaymentModal-CajqohNM.js → StripePaymentModal-BcePXzmC.js} +0 -0
  39. /package/{Waves-BhA6CLEI.js → Waves-CIT6Ngng.js} +0 -0
  40. /package/{card-DCbhJCO9.js → card-izMd2DvE.js} +0 -0
  41. /package/{dialog-CILIXExr.js → dialog-CCWrvmHd.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-CdpNCQJa.js";
3
- import { t } from "./card-DCbhJCO9.js";
2
+ import { t as e } from "./LoginForm-CPMtCyMF.js";
3
+ import { t } from "./card-izMd2DvE.js";
4
4
  import { Suspense as n, lazy as r, useState as i } from "react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  var s = {
@@ -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-Dut-Xiw1.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-DEnawzxD.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", {}),
@@ -136,11 +136,13 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
136
136
  }, I = ({ email: e, setEmail: t, otpSent: n, handleReset: r }) => /* @__PURE__ */ l("div", {
137
137
  className: F.container,
138
138
  children: [/* @__PURE__ */ c("label", {
139
+ htmlFor: "email",
139
140
  className: F.label,
140
141
  children: "Email"
141
142
  }), /* @__PURE__ */ l("div", {
142
143
  className: F.inputWrapper,
143
144
  children: [/* @__PURE__ */ c("input", {
145
+ id: "email",
144
146
  type: "email",
145
147
  value: e,
146
148
  onChange: (e) => t(e.target.value),
@@ -148,6 +150,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
148
150
  placeholder: "Enter your email",
149
151
  disabled: n
150
152
  }), n && /* @__PURE__ */ c(P, {
153
+ type: "button",
151
154
  variant: "outline",
152
155
  onClick: () => r(),
153
156
  className: F.editButton,
@@ -343,6 +346,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
343
346
  })
344
347
  }),
345
348
  /* @__PURE__ */ c("button", {
349
+ type: "button",
346
350
  onClick: () => {
347
351
  r(() => {
348
352
  s(30);
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-56TywIOB.js";
3
- import { n as t } from "./ModalManager-B7pCzvK1.js";
4
- import { a as n, n as r, o as i, r as a, t as o } from "./dialog-CILIXExr.js";
5
- import { t as s } from "./LoginForm-CdpNCQJa.js";
3
+ import { n as t } from "./ModalManager-BaIL6HG-.js";
4
+ import { a as n, n as r, o as i, r as a, t as o } from "./dialog-CCWrvmHd.js";
5
+ import { t as s } from "./LoginForm-CPMtCyMF.js";
6
6
  import { useEffect as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  var d = {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./card-DCbhJCO9.js";
3
- import { t } from "./MessageFooter-Bu-jyPkJ.js";
2
+ import { t as e } from "./card-izMd2DvE.js";
3
+ import { t } from "./MessageFooter-C6DivT4m.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region src/components/accessCard/MessageCard.tsx
6
6
  var i = ({ logo: i, siteName: a, options: o, message: s }) => /* @__PURE__ */ r(e, {
@@ -2,7 +2,7 @@
2
2
  import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
3
3
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
4
  //#region src/context/ModalManager.tsx
5
- var c = n(() => import("./LoginModal-ngTHCyli.js")), l = t({
5
+ var c = n(() => import("./LoginModal-BPI5tOIZ.js")), l = t({
6
6
  availableModals: ["login"],
7
7
  openModals: { key: null },
8
8
  openModal: () => ({}),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { r as e } from "./dist-DDKHTnIW.js";
3
- import { t } from "./card-DCbhJCO9.js";
4
- import { t as n } from "./MessageFooter-Bu-jyPkJ.js";
2
+ import { r as e } from "./dist-D_jY4Tf1.js";
3
+ import { t } from "./card-izMd2DvE.js";
4
+ import { t as n } from "./MessageFooter-C6DivT4m.js";
5
5
  import { useState as r } from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  var s = {
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import { t as e } from "./getFieldValidations-qVzuq6mv.js";
3
+ import { t } from "./CollectionField-DnbpB0Z5.js";
4
+ import { t as n } from "./VerifyButton-DFKzKYxC.js";
5
+ import { t as r } from "./CollectionInput-BoNAc4sq.js";
6
+ import { useState as i } from "react";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ import { c as s } from "react/compiler-runtime";
9
+ import { IconPencil as c } from "@tabler/icons-react";
10
+ import ee, { isSupportedCountry as te } from "react-phone-number-input";
11
+ import { useController as ne } from "react-hook-form";
12
+ //#region ../../libraries/react-collection/dist/widgets/phoneWidget/PhoneWidget.cssm.js
13
+ var re = "_89f1hw0", l = "_89f1hw1", u = "_89f1hw2", ie = "_89f1hw4", d = (d) => {
14
+ let f = s(51), { field: p, settings: ae } = d, { key: m, label: h, helper_text: g, readonly: _, options: v } = p, y = m === void 0 ? "" : m, b = h === void 0 ? "" : h, x = g === void 0 ? "" : g, S = _ === void 0 ? !1 : _, C = y, w = !!v?.verification && !!ae?.enableVerification, [T, E] = i(null), [D, oe] = i(!1), O;
15
+ f[0] !== D || f[1] !== w || f[2] !== T ? (O = (e) => D ? !0 : w && (!T || T !== e) ? "Phone verification required" : !0, f[0] = D, f[1] = w, f[2] = T, f[3] = O) : O = f[3];
16
+ let k;
17
+ f[4] !== p || f[5] !== O ? (k = e(p, O), f[4] = p, f[5] = O, f[6] = k) : k = f[6];
18
+ let A = k, j;
19
+ f[7] !== C || f[8] !== A ? (j = {
20
+ name: C,
21
+ rules: A
22
+ }, f[7] = C, f[8] = A, f[9] = j) : j = f[9];
23
+ let { field: M, fieldState: se } = ne(j), N, P, F, I;
24
+ f[10] === M ? (N = f[11], P = f[12], F = f[13], I = f[14]) : ({value: I, onBlur: N, onChange: P, ...F} = M, f[10] = M, f[11] = N, f[12] = P, f[13] = F, f[14] = I);
25
+ let { error: ce } = se, L = !!p?.required, R = ce?.message, z = !!T && !!I && T === I, B;
26
+ f[15] === v?.country ? B = f[16] : (B = () => {
27
+ let e = v?.country;
28
+ if (e && typeof e == "string") {
29
+ let t = e?.toUpperCase();
30
+ if (te(t)) return t;
31
+ }
32
+ return "IN";
33
+ }, f[15] = v?.country, f[16] = B);
34
+ let V = B, H;
35
+ f[17] === P ? H = f[18] : (H = (e) => {
36
+ E(e), P(e);
37
+ }, f[17] = P, f[18] = H);
38
+ let U = H, W = I ?? "", G;
39
+ f[19] === V ? G = f[20] : (G = V(), f[19] = V, f[20] = G);
40
+ let K;
41
+ f[21] === P ? K = f[22] : (K = (e) => {
42
+ P?.(e ?? "");
43
+ }, f[21] = P, f[22] = K);
44
+ let q;
45
+ f[23] === N ? q = f[24] : (q = () => {
46
+ N?.();
47
+ }, f[23] = N, f[24] = q);
48
+ let J = S || z, Y;
49
+ f[25] === z ? Y = f[26] : (Y = z ? /* @__PURE__ */ a("button", {
50
+ type: "button",
51
+ onClick: () => E(null),
52
+ className: ie,
53
+ title: "Change phone number",
54
+ children: /* @__PURE__ */ a(c, { size: 14 })
55
+ }) : null, f[25] = z, f[26] = Y);
56
+ let X;
57
+ f[27] !== F || f[28] !== W || f[29] !== G || f[30] !== K || f[31] !== q || f[32] !== J || f[33] !== Y ? (X = /* @__PURE__ */ a("div", {
58
+ className: u,
59
+ children: /* @__PURE__ */ a(ee, {
60
+ value: W,
61
+ international: !0,
62
+ inputComponent: r,
63
+ defaultCountry: G,
64
+ onChange: K,
65
+ onBlur: q,
66
+ className: re,
67
+ readOnly: J,
68
+ rightIcon: Y,
69
+ ...F
70
+ })
71
+ }), f[27] = F, f[28] = W, f[29] = G, f[30] = K, f[31] = q, f[32] = J, f[33] = Y, f[34] = X) : X = f[34];
72
+ let Z;
73
+ f[35] !== U || f[36] !== z || f[37] !== w || f[38] !== I ? (Z = w && /* @__PURE__ */ a("div", {
74
+ className: "_89f1hw3",
75
+ children: /* @__PURE__ */ a(n, {
76
+ value: I,
77
+ type: "phone",
78
+ isVerified: z,
79
+ onVerifySuccess: U,
80
+ onStateChange: oe
81
+ })
82
+ }), f[35] = U, f[36] = z, f[37] = w, f[38] = I, f[39] = Z) : Z = f[39];
83
+ let Q;
84
+ f[40] !== X || f[41] !== Z ? (Q = /* @__PURE__ */ o("div", {
85
+ className: l,
86
+ children: [X, Z]
87
+ }), f[40] = X, f[41] = Z, f[42] = Q) : Q = f[42];
88
+ let $;
89
+ return f[43] !== R || f[44] !== x || f[45] !== L || f[46] !== b || f[47] !== C || f[48] !== S || f[49] !== Q ? ($ = /* @__PURE__ */ a(t, {
90
+ error: R,
91
+ helperText: x,
92
+ readOnly: S,
93
+ label: b,
94
+ htmlFor: C,
95
+ isRequired: L,
96
+ children: Q
97
+ }), f[43] = R, f[44] = x, f[45] = L, f[46] = b, f[47] = C, f[48] = S, f[49] = Q, f[50] = $) : $ = f[50], $;
98
+ };
99
+ //#endregion
100
+ export { d as PhoneWidget, d as default };
@@ -0,0 +1,56 @@
1
+ import { i as e, r as t } from "./getFieldValidations-qVzuq6mv.js";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { c as r } from "react/compiler-runtime";
4
+ import i from "clsx";
5
+ import { Popover as a } from "@base-ui/react/popover";
6
+ //#region ../../libraries/levocn/dist/ui/popover/Popover.cssm.js
7
+ var o = "_1tn9uzj0", s = "_1tn9uzj4", c = (e) => {
8
+ let t = r(4), i;
9
+ t[0] === e ? i = t[1] : ({...i} = e, t[0] = e, t[1] = i);
10
+ let o;
11
+ return t[2] === i ? o = t[3] : (o = /* @__PURE__ */ n(a.Root, { ...i }), t[2] = i, t[3] = o), o;
12
+ }, l = (t) => {
13
+ let i = r(5), o;
14
+ i[0] === t ? o = i[1] : ({...o} = t, i[0] = t, i[1] = o);
15
+ let { portalRef: s } = e(), c;
16
+ return i[2] !== s || i[3] !== o ? (c = /* @__PURE__ */ n(a.Portal, {
17
+ container: s,
18
+ ...o
19
+ }), i[2] = s, i[3] = o, i[4] = c) : c = i[4], c;
20
+ }, u = (e) => {
21
+ let t = r(8), o, c;
22
+ t[0] === e ? (o = t[1], c = t[2]) : ({className: o, ...c} = e, t[0] = e, t[1] = o, t[2] = c);
23
+ let l;
24
+ t[3] === o ? l = t[4] : (l = i(s, o), t[3] = o, t[4] = l);
25
+ let u;
26
+ return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */ n(a.Positioner, {
27
+ className: l,
28
+ ...c
29
+ }), t[5] = c, t[6] = l, t[7] = u) : u = t[7], u;
30
+ }, d = (e) => {
31
+ let t = r(8), s, c;
32
+ t[0] === e ? (s = t[1], c = t[2]) : ({className: s, ...c} = e, t[0] = e, t[1] = s, t[2] = c);
33
+ let l;
34
+ t[3] === s ? l = t[4] : (l = i(o, s), t[3] = s, t[4] = l);
35
+ let u;
36
+ return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */ n(a.Popup, {
37
+ "data-slot": "popover-content",
38
+ className: l,
39
+ ...c
40
+ }), t[5] = c, t[6] = l, t[7] = u) : u = t[7], u;
41
+ }, f = (e) => {
42
+ let o = r(12), s, c, l, u;
43
+ o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4]) : ({className: s, variant: u, size: l, ...c} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u);
44
+ let d;
45
+ o[5] !== s || o[6] !== l || o[7] !== u ? (d = i(t({
46
+ variant: u,
47
+ size: l
48
+ }), s), o[5] = s, o[6] = l, o[7] = u, o[8] = d) : d = o[8];
49
+ let f;
50
+ return o[9] !== c || o[10] !== d ? (f = /* @__PURE__ */ n(a.Trigger, {
51
+ className: d,
52
+ ...c
53
+ }), o[9] = c, o[10] = d, o[11] = f) : f = o[11], f;
54
+ };
55
+ //#endregion
56
+ export { a, l as i, c as n, f as o, u as r, d as t };