@levo-so/studio 0.1.5 → 0.1.7

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 (47) hide show
  1. package/dist/{Beams-DtdSaSPQ.js → Beams-CS3YOY03.js} +56 -42
  2. package/dist/Dots-ZOcduxeG.js +164 -0
  3. package/dist/Gradient-cEvo0m5K.js +50 -0
  4. package/dist/Grid-IxhqSV77.js +191 -0
  5. package/dist/Waves-Dc0a0Nd8.js +139 -0
  6. package/dist/components/ActionWrapper.d.ts +1 -1
  7. package/dist/components/LoginForm/ErrorDisplay.d.ts +8 -0
  8. package/dist/components/LoginForm/GoogleOAuth.d.ts +10 -0
  9. package/dist/components/LoginForm/index.d.ts +7 -0
  10. package/dist/components/LoginModal/index.d.ts +7 -0
  11. package/dist/components/accessCard/EntryCard/index.d.ts +11 -0
  12. package/dist/components/accessCard/LoginCard/index.d.ts +7 -0
  13. package/dist/components/accessCard/MessageCard/index.d.ts +8 -0
  14. package/dist/components/accessCard/MessageFooter/index.d.ts +3 -0
  15. package/dist/components/accessCard/card/index.d.ts +10 -0
  16. package/dist/components/shared/EmailInput/index.d.ts +10 -0
  17. package/dist/components/shared/OTPInput/index.d.ts +11 -0
  18. package/dist/components/ui/StatefulButton/index.d.ts +15 -0
  19. package/dist/contentEngine/themeUtils.d.ts +1 -1
  20. package/dist/context/ModalManager.d.ts +21 -0
  21. package/dist/core/AccessManager/index.d.ts +7 -0
  22. package/dist/elements/UserMenu.d.ts +8 -0
  23. package/dist/elements/dialog/index.d.ts +16 -0
  24. package/dist/elements/index.d.ts +1 -0
  25. package/dist/hooks/useLogin.d.ts +29 -0
  26. package/dist/{index-BvyenzyF.js → index-CS6HcUVk.js} +3428 -2772
  27. package/dist/index.css +1 -1
  28. package/dist/index.js +75 -73
  29. package/dist/interfaces/contentSchema.d.ts +11 -9
  30. package/dist/interfaces/levoBlock.d.ts +1 -0
  31. package/dist/pixel/constants/borderRadius.d.ts +30 -0
  32. package/dist/pixel/constants/colorOptions.d.ts +30 -25
  33. package/dist/pixel/constants/fontSizeOptions.d.ts +5 -0
  34. package/dist/pixel/index.d.ts +1 -1
  35. package/dist/pixel/optionsMap.d.ts +5 -1
  36. package/dist/pixel/parserUtil.d.ts +15 -0
  37. package/dist/pixel/propertyMap.d.ts +1 -1
  38. package/dist/providers/AuthProvider.d.ts +8 -10
  39. package/dist/utils/index.d.ts +1 -1
  40. package/dist/utils/levoClient.d.ts +5 -0
  41. package/dist/utils/withBlockPropsUtils.d.ts +2 -1
  42. package/package.json +4 -2
  43. package/dist/Dots-BEdSVbPq.js +0 -139
  44. package/dist/Gradient-aW1lywfs.js +0 -41
  45. package/dist/Grid-B1ahCqzO.js +0 -161
  46. package/dist/Waves-D0fyu0lc.js +0 -126
  47. package/dist/utils/blocksLevoClient.d.ts +0 -5
@@ -1,139 +0,0 @@
1
- "use client";
2
- import { j as s, m as w } from "./index-BvyenzyF.js";
3
- import c from "react";
4
- import { cn as o } from "@levo-so/react";
5
- const j = c.memo(
6
- ({
7
- className: l,
8
- dotColor: i = "#00ff00",
9
- dotSize: h = 2,
10
- spacing: t = 30,
11
- isAnimated: u = !1,
12
- speed: d = 1
13
- }) => {
14
- const a = c.useMemo(
15
- () => ({
16
- cx: t / 2,
17
- cy: t / 2,
18
- r: h,
19
- width: t,
20
- height: t
21
- }),
22
- [t, h]
23
- ), m = c.useMemo(
24
- () => `dots-pattern-${Math.random().toString(36).substr(2, 9)}`,
25
- []
26
- ), f = c.useMemo(() => {
27
- if (!u) return [];
28
- const e = [], x = Math.ceil(100 / (t / 10)), y = Math.ceil(100 / (t / 10));
29
- for (let n = 0; n < x; n++)
30
- for (let r = 0; r < y; r++)
31
- e.push({
32
- id: `${n}-${r}`,
33
- x: r * t / 10 + Math.random() * 5,
34
- y: n * t / 10 + Math.random() * 5,
35
- delay: Math.random() * 3,
36
- amplitude: 2 + Math.random() * 3
37
- });
38
- return e;
39
- }, [u, t]);
40
- return u ? /* @__PURE__ */ s.jsx(
41
- "div",
42
- {
43
- className: o(
44
- "absolute inset-0 flex h-full w-full items-center justify-center overflow-hidden",
45
- "z-[-1]",
46
- l
47
- ),
48
- children: /* @__PURE__ */ s.jsx(
49
- "svg",
50
- {
51
- className: "pointer-events-none absolute z-0 h-full w-full",
52
- width: "100%",
53
- height: "100%",
54
- xmlns: "http://www.w3.org/2000/svg",
55
- children: f.map((e) => /* @__PURE__ */ s.jsx(
56
- w.circle,
57
- {
58
- cx: `${e.x}%`,
59
- cy: `${e.y}%`,
60
- r: h,
61
- fill: i,
62
- initial: { opacity: 0.3 },
63
- animate: {
64
- opacity: [0.3, 0.8, 0.3],
65
- cx: [
66
- `${e.x}%`,
67
- `${e.x + e.amplitude}%`,
68
- `${e.x - e.amplitude}%`,
69
- `${e.x}%`
70
- ],
71
- cy: [
72
- `${e.y}%`,
73
- `${e.y - e.amplitude}%`,
74
- `${e.y + e.amplitude}%`,
75
- `${e.y}%`
76
- ]
77
- },
78
- transition: {
79
- duration: 8 / d,
80
- repeat: 1 / 0,
81
- ease: "easeInOut",
82
- delay: e.delay
83
- }
84
- },
85
- e.id
86
- ))
87
- }
88
- )
89
- }
90
- ) : /* @__PURE__ */ s.jsx(
91
- "div",
92
- {
93
- className: o(
94
- "absolute inset-0 flex h-full w-full items-center justify-center",
95
- "z-[-1]",
96
- l
97
- ),
98
- children: /* @__PURE__ */ s.jsxs(
99
- "svg",
100
- {
101
- className: "pointer-events-none absolute z-0 h-full w-full",
102
- width: "100%",
103
- height: "100%",
104
- xmlns: "http://www.w3.org/2000/svg",
105
- children: [
106
- /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx(
107
- "pattern",
108
- {
109
- id: m,
110
- x: "0",
111
- y: "0",
112
- width: a.width,
113
- height: a.height,
114
- patternUnits: "userSpaceOnUse",
115
- children: /* @__PURE__ */ s.jsx(
116
- "circle",
117
- {
118
- cx: a.cx,
119
- cy: a.cy,
120
- r: a.r,
121
- fill: i
122
- }
123
- )
124
- }
125
- ) }),
126
- /* @__PURE__ */ s.jsx("rect", { width: "100%", height: "100%", fill: `url(#${m})` })
127
- ]
128
- }
129
- )
130
- }
131
- );
132
- },
133
- // Custom comparison function for better memoization
134
- (l, i) => l.className === i.className && l.dotColor === i.dotColor && l.dotSize === i.dotSize && l.spacing === i.spacing && l.isAnimated === i.isAnimated && l.speed === i.speed
135
- );
136
- j.displayName = "BackgroundDots";
137
- export {
138
- j as BackgroundDots
139
- };
@@ -1,41 +0,0 @@
1
- "use client";
2
- import { j as e, m as r } from "./index-BvyenzyF.js";
3
- import s from "react";
4
- import { cn as o } from "@levo-so/react";
5
- const l = s.memo(
6
- ({
7
- className: t,
8
- fromColor: a = "#ff0000",
9
- toColor: i = "#00ff00",
10
- direction: n = "45deg"
11
- }) => /* @__PURE__ */ e.jsx(
12
- "div",
13
- {
14
- className: o(
15
- "absolute inset-0 flex h-full w-full items-center justify-center",
16
- "z-[-1]",
17
- t
18
- ),
19
- children: /* @__PURE__ */ e.jsx(
20
- r.div,
21
- {
22
- className: "absolute inset-0 h-full w-full",
23
- style: {
24
- background: `linear-gradient(${n}, ${a}, ${i})`
25
- },
26
- initial: { opacity: 0.8 },
27
- animate: { opacity: [0.8, 0.9, 0.8] },
28
- transition: {
29
- duration: 4,
30
- repeat: 1 / 0,
31
- ease: "easeInOut"
32
- }
33
- }
34
- )
35
- }
36
- )
37
- );
38
- l.displayName = "BackgroundGradient";
39
- export {
40
- l as BackgroundGradient
41
- };
@@ -1,161 +0,0 @@
1
- "use client";
2
- import { j as t, m as o } from "./index-BvyenzyF.js";
3
- import i from "react";
4
- import { cn as f } from "@levo-so/react";
5
- const j = i.memo(
6
- ({
7
- className: l,
8
- lineColor: e = "#333333",
9
- lineWidth: r = 1,
10
- spacing: s = 50,
11
- // Interactive mode props
12
- isInteractive: w = !1,
13
- hoverColor: n = "#93c5fd",
14
- rows: d = 150,
15
- cols: c = 100
16
- }) => {
17
- const x = i.useMemo(() => new Array(d).fill(1), [d]), y = i.useMemo(() => new Array(c).fill(1), [c]), a = i.useMemo(
18
- () => ({
19
- rowStyle: {
20
- height: `${s}px`,
21
- width: `${s * 2}px`,
22
- borderLeft: `${r}px solid ${e}`
23
- },
24
- colStyle: {
25
- height: `${s}px`,
26
- width: `${s * 2}px`,
27
- borderTop: `${r}px solid ${e}`,
28
- borderRight: `${r}px solid ${e}`
29
- },
30
- iconStyle: {
31
- top: `${-s / 3.8}px`,
32
- left: `${-s / 2.4}px`,
33
- color: e
34
- }
35
- }),
36
- [s, r, e]
37
- ), h = i.useMemo(
38
- () => ({
39
- hover: {
40
- backgroundColor: n,
41
- transition: { duration: 0 }
42
- },
43
- animate: {
44
- transition: { duration: 2 }
45
- }
46
- }),
47
- [n]
48
- );
49
- return w ? /* @__PURE__ */ t.jsx(
50
- "div",
51
- {
52
- className: f(
53
- "absolute inset-0 flex h-full w-full items-center justify-center overflow-hidden",
54
- "z-[-1]",
55
- l
56
- ),
57
- children: /* @__PURE__ */ t.jsx(
58
- "div",
59
- {
60
- style: {
61
- transform: "translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)"
62
- },
63
- className: "absolute -top-1/4 left-1/4 z-0 flex h-full w-full -translate-x-1/2 -translate-y-1/2 p-4",
64
- children: x.map(($, u) => /* @__PURE__ */ t.jsx(
65
- o.div,
66
- {
67
- className: "relative",
68
- style: a.rowStyle,
69
- children: y.map((v, m) => /* @__PURE__ */ t.jsx(
70
- o.div,
71
- {
72
- whileHover: h.hover,
73
- animate: h.animate,
74
- className: "relative",
75
- style: a.colStyle,
76
- children: m % 2 === 0 && u % 2 === 0 ? /* @__PURE__ */ t.jsx(
77
- "svg",
78
- {
79
- xmlns: "http://www.w3.org/2000/svg",
80
- fill: "none",
81
- viewBox: "0 0 24 24",
82
- strokeWidth: "1.5",
83
- stroke: "currentColor",
84
- className: "pointer-events-none absolute h-6 w-10 stroke-[1px]",
85
- style: a.iconStyle,
86
- children: /* @__PURE__ */ t.jsx(
87
- "path",
88
- {
89
- strokeLinecap: "round",
90
- strokeLinejoin: "round",
91
- d: "M12 6v12m6-6H6"
92
- }
93
- )
94
- }
95
- ) : null
96
- },
97
- `col-${m}`
98
- ))
99
- },
100
- `row-${u}`
101
- ))
102
- }
103
- )
104
- }
105
- ) : /* @__PURE__ */ t.jsx(
106
- "div",
107
- {
108
- className: f(
109
- "absolute inset-0 flex h-full w-full items-center justify-center",
110
- "z-[-1]",
111
- l
112
- ),
113
- children: /* @__PURE__ */ t.jsxs(
114
- "svg",
115
- {
116
- className: "pointer-events-none absolute z-0 h-full w-full",
117
- width: "100%",
118
- height: "100%",
119
- xmlns: "http://www.w3.org/2000/svg",
120
- children: [
121
- /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx(
122
- "pattern",
123
- {
124
- id: "grid-pattern",
125
- x: "0",
126
- y: "0",
127
- width: s,
128
- height: s,
129
- patternUnits: "userSpaceOnUse",
130
- children: /* @__PURE__ */ t.jsx(
131
- o.path,
132
- {
133
- d: `M ${s} 0 L 0 0 0 ${s}`,
134
- fill: "none",
135
- stroke: e,
136
- strokeWidth: r,
137
- initial: { opacity: 0.2 },
138
- animate: { opacity: [0.2, 0.5, 0.2] },
139
- transition: {
140
- duration: 3,
141
- repeat: 1 / 0,
142
- ease: "easeInOut"
143
- }
144
- }
145
- )
146
- }
147
- ) }),
148
- /* @__PURE__ */ t.jsx("rect", { width: "100%", height: "100%", fill: "url(#grid-pattern)" })
149
- ]
150
- }
151
- )
152
- }
153
- );
154
- },
155
- // Custom comparison function for better memoization
156
- (l, e) => l.className === e.className && l.lineColor === e.lineColor && l.lineWidth === e.lineWidth && l.spacing === e.spacing && l.isInteractive === e.isInteractive && l.hoverColor === e.hoverColor && l.rows === e.rows && l.cols === e.cols
157
- );
158
- j.displayName = "BackgroundGrid";
159
- export {
160
- j as BackgroundGrid
161
- };
@@ -1,126 +0,0 @@
1
- "use client";
2
- import { j as t, m as l } from "./index-BvyenzyF.js";
3
- import x from "react";
4
- import { cn as u } from "@levo-so/react";
5
- const y = x.memo(
6
- ({
7
- className: h,
8
- primaryColor: a = "#3b82f6",
9
- secondaryColor: i = "#8b5cf6",
10
- amplitude: p = 50,
11
- frequency: c = 0.02,
12
- speed: r = 1
13
- }) => {
14
- const d = Array.from({ length: 3 }, (e, s) => s), o = (e) => {
15
- const s = [], f = e * 60;
16
- for (let n = 0; n <= 1e3; n += 10) {
17
- const m = 200 + Math.sin(n * c + f) * p;
18
- s.push(`${n},${m}`);
19
- }
20
- return `M 0,200 Q ${s.join(" ")} 1000,200 L 1000,400 L 0,400 Z`;
21
- };
22
- return /* @__PURE__ */ t.jsx(
23
- "div",
24
- {
25
- className: u(
26
- "absolute inset-0 flex h-full w-full items-center justify-center overflow-hidden",
27
- "z-[-1]",
28
- h
29
- ),
30
- children: /* @__PURE__ */ t.jsxs(
31
- "svg",
32
- {
33
- className: "pointer-events-none absolute z-0 h-full w-full",
34
- width: "100%",
35
- height: "100%",
36
- viewBox: "0 0 1000 400",
37
- preserveAspectRatio: "xMidYMid slice",
38
- xmlns: "http://www.w3.org/2000/svg",
39
- children: [
40
- /* @__PURE__ */ t.jsxs("defs", { children: [
41
- /* @__PURE__ */ t.jsxs("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
42
- /* @__PURE__ */ t.jsx("stop", { offset: "0%", stopColor: a, stopOpacity: "0.3" }),
43
- /* @__PURE__ */ t.jsx("stop", { offset: "100%", stopColor: i, stopOpacity: "0.1" })
44
- ] }),
45
- /* @__PURE__ */ t.jsxs("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
46
- /* @__PURE__ */ t.jsx("stop", { offset: "0%", stopColor: i, stopOpacity: "0.2" }),
47
- /* @__PURE__ */ t.jsx("stop", { offset: "100%", stopColor: a, stopOpacity: "0.05" })
48
- ] }),
49
- /* @__PURE__ */ t.jsxs("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
50
- /* @__PURE__ */ t.jsx("stop", { offset: "0%", stopColor: a, stopOpacity: "0.1" }),
51
- /* @__PURE__ */ t.jsx("stop", { offset: "100%", stopColor: i, stopOpacity: "0.3" })
52
- ] })
53
- ] }),
54
- d.map((e) => /* @__PURE__ */ t.jsx(
55
- l.path,
56
- {
57
- d: o(e),
58
- fill: `url(#waveGradient${e + 1})`,
59
- initial: { x: -100 },
60
- animate: {
61
- x: [-100, 100],
62
- d: [
63
- o(e),
64
- o(e + 0.5),
65
- o(e)
66
- ]
67
- },
68
- transition: {
69
- x: {
70
- duration: 20 / r,
71
- repeat: 1 / 0,
72
- ease: "linear"
73
- },
74
- d: {
75
- duration: 8 / r,
76
- repeat: 1 / 0,
77
- ease: "easeInOut"
78
- }
79
- },
80
- style: {
81
- filter: `blur(${e * 0.5}px)`
82
- }
83
- },
84
- `wave-${e}`
85
- )),
86
- Array.from({ length: 15 }, (e, s) => /* @__PURE__ */ t.jsx(
87
- l.circle,
88
- {
89
- cx: Math.random() * 1e3,
90
- cy: Math.random() * 400,
91
- r: Math.random() * 3 + 1,
92
- fill: s % 2 === 0 ? a : i,
93
- initial: { opacity: 0.3 },
94
- animate: {
95
- opacity: [0.3, 0.8, 0.3],
96
- cy: [
97
- Math.random() * 400,
98
- Math.random() * 400,
99
- Math.random() * 400
100
- ],
101
- cx: [
102
- Math.random() * 1e3,
103
- Math.random() * 1e3,
104
- Math.random() * 1e3
105
- ]
106
- },
107
- transition: {
108
- duration: Math.random() * 10 + 5,
109
- repeat: 1 / 0,
110
- ease: "easeInOut",
111
- delay: Math.random() * 5
112
- }
113
- },
114
- `particle-${s}`
115
- ))
116
- ]
117
- }
118
- )
119
- }
120
- );
121
- }
122
- );
123
- y.displayName = "BackgroundWaves";
124
- export {
125
- y as BackgroundWaves
126
- };
@@ -1,5 +0,0 @@
1
- import { ILevoClient } from '@levo-so/core';
2
- declare let blocksLevoClient: ILevoClient | null;
3
- declare const setLevoClient: (client: ILevoClient) => void;
4
- export { blocksLevoClient, setLevoClient };
5
- //# sourceMappingURL=blocksLevoClient.d.ts.map