@levo-so/studio 0.1.77 → 0.1.79

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,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as C, jsxs as e } from "react/jsx-runtime";
2
+ import { jsx as C, jsxs as o } from "react/jsx-runtime";
3
+ import * as d from "motion/react-m";
3
4
  import r from "react";
4
- import { M as d, a as p } from "./elements-C4FqwQym.js";
5
- const m = r.memo(
5
+ const p = r.memo(
6
6
  ({
7
- className: o,
7
+ className: e,
8
8
  primaryColor: t = "#00ff00",
9
9
  secondaryColor: n = "#ff0000",
10
10
  lineColor: l = "#121212"
@@ -63,8 +63,8 @@ const m = r.memo(
63
63
  "M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483"
64
64
  ],
65
65
  []
66
- ), i = r.useMemo(
67
- () => a.map((s, M) => ({
66
+ ), s = r.useMemo(
67
+ () => a.map((i, M) => ({
68
68
  duration: Math.random() * 10 + 10,
69
69
  delay: Math.random() * 10,
70
70
  endY: `${93 + Math.random() * 8}%`
@@ -74,7 +74,7 @@ const m = r.memo(
74
74
  return /* @__PURE__ */ C(
75
75
  "div",
76
76
  {
77
- className: o,
77
+ className: e,
78
78
  style: {
79
79
  position: "absolute",
80
80
  inset: 0,
@@ -87,7 +87,7 @@ const m = r.memo(
87
87
  maskSize: "40px",
88
88
  zIndex: -1
89
89
  },
90
- children: /* @__PURE__ */ e(
90
+ children: /* @__PURE__ */ o(
91
91
  "svg",
92
92
  {
93
93
  style: {
@@ -113,19 +113,19 @@ const m = r.memo(
113
113
  strokeWidth: "0.5"
114
114
  }
115
115
  ),
116
- a.map((s, M) => /* @__PURE__ */ C(
117
- d,
116
+ a.map((i, M) => /* @__PURE__ */ C(
117
+ d.path,
118
118
  {
119
- d: s,
119
+ d: i,
120
120
  stroke: `url(#linearGradient-${M})`,
121
121
  strokeOpacity: "0.4",
122
122
  strokeWidth: "0.5"
123
123
  },
124
124
  "path-" + M
125
125
  )),
126
- /* @__PURE__ */ e("defs", { children: [
127
- a.map((s, M) => /* @__PURE__ */ e(
128
- p,
126
+ /* @__PURE__ */ o("defs", { children: [
127
+ a.map((i, M) => /* @__PURE__ */ o(
128
+ d.linearGradient,
129
129
  {
130
130
  id: `linearGradient-${M}`,
131
131
  initial: {
@@ -138,13 +138,13 @@ const m = r.memo(
138
138
  x1: ["0%", "100%"],
139
139
  x2: ["0%", "95%"],
140
140
  y1: ["0%", "100%"],
141
- y2: ["0%", i[M]?.endY || "100%"]
141
+ y2: ["0%", s[M]?.endY || "100%"]
142
142
  },
143
143
  transition: {
144
- duration: i[M]?.duration || 15,
144
+ duration: s[M]?.duration || 15,
145
145
  ease: "easeInOut",
146
146
  repeat: 1 / 0,
147
- delay: i[M]?.delay || 0
147
+ delay: s[M]?.delay || 0
148
148
  },
149
149
  children: [
150
150
  /* @__PURE__ */ C("stop", { stopColor: t, stopOpacity: "0" }),
@@ -155,7 +155,7 @@ const m = r.memo(
155
155
  },
156
156
  `gradient-${M}`
157
157
  )),
158
- /* @__PURE__ */ e(
158
+ /* @__PURE__ */ o(
159
159
  "radialGradient",
160
160
  {
161
161
  id: "paint0_radial_242_278",
@@ -179,9 +179,9 @@ const m = r.memo(
179
179
  );
180
180
  },
181
181
  // Custom comparison function for better memoization
182
- (o, t) => o.className === t.className && o.primaryColor === t.primaryColor && o.secondaryColor === t.secondaryColor && o.lineColor === t.lineColor
182
+ (e, t) => e.className === t.className && e.primaryColor === t.primaryColor && e.secondaryColor === t.secondaryColor && e.lineColor === t.lineColor
183
183
  );
184
- m.displayName = "BackgroundBeams";
184
+ p.displayName = "BackgroundBeams";
185
185
  export {
186
- m as BackgroundBeams
186
+ p as BackgroundBeams
187
187
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as s, jsx as t, Fragment as q } from "react/jsx-runtime";
3
3
  import { useState as d } from "react";
4
- import { B as k } from "./index-aRy7vrUx.js";
4
+ import { B as k } from "./index-DFWJOU6m.js";
5
5
  const F = ({
6
6
  onSubmit: h,
7
7
  prefillName: b,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as x } from "react/jsx-runtime";
3
- import c from "react";
4
- import { b as S } from "./elements-C4FqwQym.js";
5
- const C = c.memo(
3
+ import * as S from "motion/react-m";
4
+ import l from "react";
5
+ const C = l.memo(
6
6
  ({
7
7
  className: e,
8
8
  dotColor: n,
@@ -11,7 +11,7 @@ const C = c.memo(
11
11
  isAnimated: r = !1,
12
12
  speed: p
13
13
  }) => {
14
- const m = n ?? "#00ff00", d = Math.max(Number(y) || 2, 0.1), i = Math.max(Number(g) || 30, 1), M = Math.max(Number(p) || 1, 0.01), o = c.useMemo(
14
+ const m = n ?? "#00ff00", d = Math.max(Number(y) || 2, 0.1), i = Math.max(Number(g) || 30, 1), M = Math.max(Number(p) || 1, 0.01), o = l.useMemo(
15
15
  () => ({
16
16
  cx: i / 2,
17
17
  cy: i / 2,
@@ -20,20 +20,20 @@ const C = c.memo(
20
20
  height: Math.max(i, 1)
21
21
  }),
22
22
  [i, d]
23
- ), u = c.useMemo(
23
+ ), u = l.useMemo(
24
24
  () => `dots-pattern-${Math.random().toString(36).substring(2, 11)}`,
25
25
  []
26
- ), f = c.useMemo(() => {
26
+ ), f = l.useMemo(() => {
27
27
  if (!r || !i || i <= 0) return [];
28
- const t = [], l = Math.max(i, 2), w = Math.min(Math.ceil(100 / (l / 10)), 50), b = Math.min(Math.ceil(100 / (l / 10)), 50);
28
+ const t = [], c = Math.max(i, 2), w = Math.min(Math.ceil(100 / (c / 10)), 50), b = Math.min(Math.ceil(100 / (c / 10)), 50);
29
29
  for (let s = 0; s < w; s++)
30
30
  for (let h = 0; h < b; h++) {
31
31
  const $ = Math.abs(Math.sin(s * 12.9898 + h * 78.233) * 43758.5453) % 1, I = Math.abs(Math.sin(s * 39.346 + h * 11.135) * 43758.5453) % 1, N = Math.abs(Math.sin(s * 71.123 + h * 23.456) * 43758.5453) % 1, z = Math.abs(Math.sin(s * 15.987 + h * 82.345) * 43758.5453) % 1;
32
32
  t.push({
33
33
  id: `${s}-${h}`,
34
34
  // Use stable numeric values
35
- x: Number((h * l / 10 + ($ - 0.5) * 8).toFixed(2)),
36
- y: Number((s * l / 10 + (I - 0.5) * 8).toFixed(2)),
35
+ x: Number((h * c / 10 + ($ - 0.5) * 8).toFixed(2)),
36
+ y: Number((s * c / 10 + (I - 0.5) * 8).toFixed(2)),
37
37
  delay: Number((N * 3).toFixed(2)),
38
38
  amplitude: Number((2 + z * 3).toFixed(2))
39
39
  });
@@ -71,7 +71,7 @@ const C = c.memo(
71
71
  children: [
72
72
  /* @__PURE__ */ a("title", { children: "Animated Dots" }),
73
73
  f.map((t) => /* @__PURE__ */ a(
74
- S,
74
+ S.circle,
75
75
  {
76
76
  r: d,
77
77
  fill: m,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import o from "react";
4
- import { c as r } from "./elements-C4FqwQym.js";
5
- const s = o.memo(
3
+ import * as o from "motion/react-m";
4
+ import r from "react";
5
+ const s = r.memo(
6
6
  ({
7
7
  className: e,
8
8
  fromColor: i = "#ff0000",
@@ -23,7 +23,7 @@ const s = o.memo(
23
23
  zIndex: -1
24
24
  },
25
25
  children: /* @__PURE__ */ t(
26
- r,
26
+ o.div,
27
27
  {
28
28
  style: {
29
29
  position: "absolute",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as w } from "react/jsx-runtime";
3
+ import * as u from "motion/react-m";
3
4
  import r from "react";
4
- import { c as u } from "./elements-C4FqwQym.js";
5
5
  const M = r.memo(
6
6
  ({
7
7
  className: e,
@@ -10,11 +10,11 @@ const M = r.memo(
10
10
  spacing: y,
11
11
  // Interactive mode props
12
12
  isInteractive: f = !1,
13
- hoverColor: a = "#93c5fd",
13
+ hoverColor: d = "#93c5fd",
14
14
  rows: x,
15
15
  cols: $
16
16
  }) => {
17
- const o = n ?? "#333333", l = Math.max(p ?? 1, 0.1), i = Math.max(y ?? 50, 1), d = Math.max(x ?? 150, 1), h = Math.max($ ?? 100, 1), v = r.useMemo(() => new Array(d).fill(1), [d]), k = r.useMemo(() => new Array(h).fill(1), [h]), s = r.useMemo(
17
+ const o = n ?? "#333333", l = Math.max(p ?? 1, 0.1), i = Math.max(y ?? 50, 1), a = Math.max(x ?? 150, 1), h = Math.max($ ?? 100, 1), v = r.useMemo(() => new Array(a).fill(1), [a]), k = r.useMemo(() => new Array(h).fill(1), [h]), s = r.useMemo(
18
18
  () => ({
19
19
  rowStyle: {
20
20
  height: `${i}px`,
@@ -37,14 +37,14 @@ const M = r.memo(
37
37
  ), c = r.useMemo(
38
38
  () => ({
39
39
  hover: {
40
- backgroundColor: a,
40
+ backgroundColor: d,
41
41
  transition: { duration: 0 }
42
42
  },
43
43
  animate: {
44
44
  transition: { duration: 2 }
45
45
  }
46
46
  }),
47
- [a]
47
+ [d]
48
48
  );
49
49
  return f ? /* @__PURE__ */ t(
50
50
  "div",
@@ -75,13 +75,13 @@ const M = r.memo(
75
75
  width: "100%",
76
76
  padding: "1rem"
77
77
  },
78
- children: v.map((b, g) => /* @__PURE__ */ t(u, { style: { ...s.rowStyle, position: "relative" }, children: k.map((C, m) => /* @__PURE__ */ t(
79
- u,
78
+ children: v.map((b, m) => /* @__PURE__ */ t(u.div, { style: { ...s.rowStyle, position: "relative" }, children: k.map((C, g) => /* @__PURE__ */ t(
79
+ u.div,
80
80
  {
81
81
  whileHover: c.hover,
82
82
  animate: c.animate,
83
83
  style: { ...s.colStyle, position: "relative" },
84
- children: m % 2 === 0 && g % 2 === 0 ? /* @__PURE__ */ w(
84
+ children: g % 2 === 0 && m % 2 === 0 ? /* @__PURE__ */ w(
85
85
  "svg",
86
86
  {
87
87
  xmlns: "http://www.w3.org/2000/svg",
@@ -104,8 +104,8 @@ const M = r.memo(
104
104
  }
105
105
  ) : null
106
106
  },
107
- `col-${m}`
108
- )) }, `row-${g}`))
107
+ `col-${g}`
108
+ )) }, `row-${m}`))
109
109
  }
110
110
  )
111
111
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
3
  import { A as o } from "./index-IcG2wuuE.js";
4
- import { M as a } from "./index-w4OKu-Gd.js";
4
+ import { M as a } from "./index-DNVhz-wO.js";
5
5
  const m = ({ logo: s, siteName: t, options: l, message: n }) => /* @__PURE__ */ r(o, { logo: s, siteName: t, maxWidth: "sm", children: [
6
6
  /* @__PURE__ */ r("div", { className: "mb-6 px-8 sm:px-6", children: [
7
7
  /* @__PURE__ */ e("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ e(
@@ -1,40 +1,40 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
3
+ import * as y from "motion/react-m";
3
4
  import l from "react";
4
- import { M as G, b as Y } from "./elements-C4FqwQym.js";
5
- const j = l.memo(
5
+ const Y = l.memo(
6
6
  ({
7
- className: y,
8
- primaryColor: f,
9
- secondaryColor: m,
10
- amplitude: u,
11
- frequency: x,
12
- speed: v
7
+ className: f,
8
+ primaryColor: m,
9
+ secondaryColor: u,
10
+ amplitude: x,
11
+ frequency: v,
12
+ speed: g
13
13
  }) => {
14
- const a = f ?? "#3b82f6", r = m ?? "#8b5cf6", g = u ?? 50, M = x ?? 0.02, p = Math.max(v ?? 1, 0.01), w = 3, b = l.useMemo(() => Array.from({ length: w }, (t, o) => o), []), C = l.useMemo(() => Array.from({ length: 15 }, (t, o) => {
15
- const s = Math.abs(Math.sin(o * 12.9898) * 43758.5453) % 1, i = Math.abs(Math.sin(o * 39.346) * 43758.5453) % 1, c = Math.abs(Math.sin(o * 71.123) * 43758.5453) % 1;
14
+ const n = m ?? "#3b82f6", r = u ?? "#8b5cf6", w = x ?? 50, M = v ?? 0.02, p = Math.max(g ?? 1, 0.01), $ = 3, b = l.useMemo(() => Array.from({ length: $ }, (t, o) => o), []), C = l.useMemo(() => Array.from({ length: 15 }, (t, o) => {
15
+ const s = Math.abs(Math.sin(o * 12.9898) * 43758.5453) % 1, i = Math.abs(Math.sin(o * 39.346) * 43758.5453) % 1, d = Math.abs(Math.sin(o * 71.123) * 43758.5453) % 1;
16
16
  return {
17
17
  id: o,
18
18
  cx: s * 1e3,
19
19
  cy: i * 400,
20
- r: c * 3 + 1,
20
+ r: d * 3 + 1,
21
21
  duration: s * 10 + 5,
22
22
  delay: i * 5,
23
- moveX: [s * 1e3, i * 1e3, c * 1e3, s * 1e3],
24
- moveY: [i * 400, c * 400, s * 400, i * 400]
23
+ moveX: [s * 1e3, i * 1e3, d * 1e3, s * 1e3],
24
+ moveY: [i * 400, d * 400, s * 400, i * 400]
25
25
  };
26
- }), []), d = (t, o = g) => {
27
- const s = [], $ = t * 60;
26
+ }), []), c = (t, o = w) => {
27
+ const s = [], O = t * 60;
28
28
  for (let h = 0; h <= 1e3; h += 10) {
29
- const O = 200 + Math.sin(h * M + $) * o;
30
- s.push(`${h},${O}`);
29
+ const G = 200 + Math.sin(h * M + O) * o;
30
+ s.push(`${h},${G}`);
31
31
  }
32
32
  return `M 0,200 Q ${s.join(" ")} 1000,200 L 1000,400 L 0,400 Z`;
33
33
  };
34
34
  return /* @__PURE__ */ e(
35
35
  "div",
36
36
  {
37
- className: y,
37
+ className: f,
38
38
  style: {
39
39
  position: "absolute",
40
40
  inset: 0,
@@ -46,7 +46,7 @@ const j = l.memo(
46
46
  overflow: "hidden",
47
47
  zIndex: -1
48
48
  },
49
- children: /* @__PURE__ */ n(
49
+ children: /* @__PURE__ */ a(
50
50
  "svg",
51
51
  {
52
52
  style: {
@@ -63,32 +63,32 @@ const j = l.memo(
63
63
  xmlns: "http://www.w3.org/2000/svg",
64
64
  children: [
65
65
  /* @__PURE__ */ e("title", { children: "Waves" }),
66
- /* @__PURE__ */ n("defs", { children: [
67
- /* @__PURE__ */ n("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
68
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: a, stopOpacity: "0.3" }),
66
+ /* @__PURE__ */ a("defs", { children: [
67
+ /* @__PURE__ */ a("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
68
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.3" }),
69
69
  /* @__PURE__ */ e("stop", { offset: "100%", stopColor: r, stopOpacity: "0.1" })
70
70
  ] }),
71
- /* @__PURE__ */ n("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
71
+ /* @__PURE__ */ a("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
72
72
  /* @__PURE__ */ e("stop", { offset: "0%", stopColor: r, stopOpacity: "0.2" }),
73
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: a, stopOpacity: "0.05" })
73
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.05" })
74
74
  ] }),
75
- /* @__PURE__ */ n("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
76
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: a, stopOpacity: "0.1" }),
75
+ /* @__PURE__ */ a("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
76
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.1" }),
77
77
  /* @__PURE__ */ e("stop", { offset: "100%", stopColor: r, stopOpacity: "0.3" })
78
78
  ] })
79
79
  ] }),
80
80
  b.map((t) => /* @__PURE__ */ e(
81
- G,
81
+ y.path,
82
82
  {
83
- d: d(t),
83
+ d: c(t),
84
84
  fill: `url(#waveGradient${t + 1})`,
85
85
  initial: { x: -100 },
86
86
  animate: {
87
87
  x: [-100, 100],
88
88
  d: [
89
- d(t),
90
- d(t + 0.5),
91
- d(t)
89
+ c(t),
90
+ c(t + 0.5),
91
+ c(t)
92
92
  ]
93
93
  },
94
94
  transition: {
@@ -110,12 +110,12 @@ const j = l.memo(
110
110
  `wave-${t}`
111
111
  )),
112
112
  C.map((t) => /* @__PURE__ */ e(
113
- Y,
113
+ y.circle,
114
114
  {
115
115
  cx: t.cx,
116
116
  cy: t.cy,
117
117
  r: t.r,
118
- fill: t.id % 2 === 0 ? a : r,
118
+ fill: t.id % 2 === 0 ? n : r,
119
119
  initial: { opacity: 0.3 },
120
120
  animate: {
121
121
  opacity: [0.3, 0.8, 0.3],
@@ -138,7 +138,7 @@ const j = l.memo(
138
138
  );
139
139
  }
140
140
  );
141
- j.displayName = "BackgroundWaves";
141
+ Y.displayName = "BackgroundWaves";
142
142
  export {
143
- j as BackgroundWaves
143
+ Y as BackgroundWaves
144
144
  };
@@ -2,8 +2,8 @@
2
2
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
3
  import { CollectionFormBuilder as a } from "@levo-so/react-collection";
4
4
  import { A as d } from "./index-IcG2wuuE.js";
5
- import { M as m } from "./index-w4OKu-Gd.js";
6
- import { u } from "./index-aRy7vrUx.js";
5
+ import { M as m } from "./index-DNVhz-wO.js";
6
+ import { u } from "./index-DFWJOU6m.js";
7
7
  const h = "_header_emo7t_1", _ = "_title_emo7t_8", f = "_subtitle_emo7t_15", C = "_formContainer_emo7t_21", t = {
8
8
  header: h,
9
9
  title: _,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
3
  import { useEffect as n } from "react";
4
- import { b as l, u as c, D as d, d as m, e as u, f as g, g as h } from "./index-aRy7vrUx.js";
5
- import { L as f } from "./index-mGo8Emyj.js";
4
+ import { b as l, u as c, D as d, c as m, d as u, e as h, f as g } from "./index-DFWJOU6m.js";
5
+ import { L as f } from "./index-xFzpnJIa.js";
6
6
  const p = "_container_301k2_1", a = {
7
7
  container: p
8
8
  }, x = ({ config: o }) => {
@@ -11,8 +11,8 @@ const p = "_container_301k2_1", a = {
11
11
  r && (o?.redirect_uri && (window.location.href = o.redirect_uri), i());
12
12
  }, [r, o?.redirect_uri, i]), /* @__PURE__ */ e(d, { open: !0, onOpenChange: (s) => !s && i(), children: /* @__PURE__ */ t(m, { className: "sm:max-w-md", children: [
13
13
  /* @__PURE__ */ t(u, { children: [
14
- /* @__PURE__ */ e(g, { children: "Login" }),
15
- /* @__PURE__ */ e(h, {})
14
+ /* @__PURE__ */ e(h, { children: "Login" }),
15
+ /* @__PURE__ */ e(g, {})
16
16
  ] }),
17
17
  /* @__PURE__ */ e("div", { className: a.container, children: /* @__PURE__ */ e(
18
18
  f,