@levo-so/studio 0.1.6 → 0.1.8
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.
- package/dist/{Beams-sX-ed8H5.js → Beams-B2rZmhLI.js} +40 -27
- package/dist/Dots-OyX1E9Ts.js +164 -0
- package/dist/Gradient-DOFsccBS.js +50 -0
- package/dist/Grid-DRZu52wi.js +191 -0
- package/dist/Waves-DzqlDCGx.js +183 -0
- package/dist/bridge/constants.d.ts +12 -0
- package/dist/bridge/index.d.ts +1 -0
- package/dist/bridge/utils.d.ts +1 -0
- package/dist/components/ActionWrapper.d.ts +1 -1
- package/dist/components/LoginForm/ErrorDisplay.d.ts +8 -0
- package/dist/components/LoginForm/GoogleOAuth.d.ts +10 -0
- package/dist/components/LoginForm/index.d.ts +7 -0
- package/dist/components/LoginModal/index.d.ts +7 -0
- package/dist/components/accessCard/EntryCard/index.d.ts +11 -0
- package/dist/components/accessCard/LoginCard/index.d.ts +7 -0
- package/dist/components/accessCard/MessageCard/index.d.ts +8 -0
- package/dist/components/accessCard/MessageFooter/index.d.ts +3 -0
- package/dist/components/accessCard/card/index.d.ts +10 -0
- package/dist/components/backgroundPresets/Gradient.d.ts +1 -1
- package/dist/components/backgroundPresets/presetSystem.d.ts +1 -1
- package/dist/components/shared/EmailInput/index.d.ts +10 -0
- package/dist/components/shared/OTPInput/index.d.ts +11 -0
- package/dist/components/ui/StatefulButton/index.d.ts +15 -0
- package/dist/contentEngine/themeUtils.d.ts +1 -1
- package/dist/context/ModalManager.d.ts +21 -0
- package/dist/core/AccessManager/index.d.ts +7 -0
- package/dist/elements/Container.d.ts +1 -0
- package/dist/elements/UserMenu.d.ts +8 -0
- package/dist/elements/accordion/index.d.ts +1 -1
- package/dist/elements/dialog/index.d.ts +16 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/elements/popover/index.d.ts +1 -1
- package/dist/hooks/useLogin.d.ts +29 -0
- package/dist/{index-DXb2tXBX.js → index-2NFcpkxw.js} +3545 -2706
- package/dist/index-BcbNOVub.js +30 -0
- package/dist/index-Ce2VNBY0.js +49 -0
- package/dist/index-QRx1kG5G.js +38 -0
- package/dist/index-RdFZytGV.js +54 -0
- package/dist/index-vDaUilga.js +23 -0
- package/dist/index.css +1 -1
- package/dist/index.js +82 -78
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/interfaces/block.d.ts +1 -1
- package/dist/interfaces/contentSchema.d.ts +11 -9
- package/dist/interfaces/levoBlock.d.ts +3 -2
- package/dist/interfaces/site.d.ts +6 -5
- package/dist/pixel/constants/borderRadius.d.ts +30 -0
- package/dist/pixel/constants/colorOptions.d.ts +30 -25
- package/dist/pixel/constants/fontSizeOptions.d.ts +5 -0
- package/dist/pixel/index.d.ts +1 -1
- package/dist/pixel/optionsMap.d.ts +5 -1
- package/dist/pixel/parserUtil.d.ts +15 -0
- package/dist/pixel/propertyMap.d.ts +1 -1
- package/dist/providers/AuthProvider.d.ts +8 -10
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/levoClient.d.ts +5 -0
- package/dist/utils/withBlockPropsUtils.d.ts +3 -2
- package/package.json +4 -4
- package/dist/Dots-CIprNvGi.js +0 -140
- package/dist/Gradient-DIn_uQLE.js +0 -42
- package/dist/Grid-DXjfqDT3.js +0 -162
- package/dist/Waves-CCDZf3yc.js +0 -127
- package/dist/utils/blocksLevoClient.d.ts +0 -5
package/dist/Waves-CCDZf3yc.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
import y from "react";
|
|
4
|
-
import { cn as w } from "@levo-so/react";
|
|
5
|
-
import { m as h } from "./index-DXb2tXBX.js";
|
|
6
|
-
const M = y.memo(
|
|
7
|
-
({
|
|
8
|
-
className: p,
|
|
9
|
-
primaryColor: o = "#3b82f6",
|
|
10
|
-
secondaryColor: n = "#8b5cf6",
|
|
11
|
-
amplitude: c = 50,
|
|
12
|
-
frequency: d = 0.02,
|
|
13
|
-
speed: l = 1
|
|
14
|
-
}) => {
|
|
15
|
-
const f = Array.from({ length: 3 }, (t, a) => a), s = (t) => {
|
|
16
|
-
const a = [], m = t * 60;
|
|
17
|
-
for (let r = 0; r <= 1e3; r += 10) {
|
|
18
|
-
const u = 200 + Math.sin(r * d + m) * c;
|
|
19
|
-
a.push(`${r},${u}`);
|
|
20
|
-
}
|
|
21
|
-
return `M 0,200 Q ${a.join(" ")} 1000,200 L 1000,400 L 0,400 Z`;
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ e(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
className: w(
|
|
27
|
-
"absolute inset-0 flex h-full w-full items-center justify-center overflow-hidden",
|
|
28
|
-
"z-[-1]",
|
|
29
|
-
p
|
|
30
|
-
),
|
|
31
|
-
children: /* @__PURE__ */ i(
|
|
32
|
-
"svg",
|
|
33
|
-
{
|
|
34
|
-
className: "pointer-events-none absolute z-0 h-full w-full",
|
|
35
|
-
width: "100%",
|
|
36
|
-
height: "100%",
|
|
37
|
-
viewBox: "0 0 1000 400",
|
|
38
|
-
preserveAspectRatio: "xMidYMid slice",
|
|
39
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ i("defs", { children: [
|
|
42
|
-
/* @__PURE__ */ i("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
43
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
|
|
44
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.1" })
|
|
45
|
-
] }),
|
|
46
|
-
/* @__PURE__ */ i("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
47
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
|
|
48
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ i("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
51
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
|
|
52
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.3" })
|
|
53
|
-
] })
|
|
54
|
-
] }),
|
|
55
|
-
f.map((t) => /* @__PURE__ */ e(
|
|
56
|
-
h.path,
|
|
57
|
-
{
|
|
58
|
-
d: s(t),
|
|
59
|
-
fill: `url(#waveGradient${t + 1})`,
|
|
60
|
-
initial: { x: -100 },
|
|
61
|
-
animate: {
|
|
62
|
-
x: [-100, 100],
|
|
63
|
-
d: [
|
|
64
|
-
s(t),
|
|
65
|
-
s(t + 0.5),
|
|
66
|
-
s(t)
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
transition: {
|
|
70
|
-
x: {
|
|
71
|
-
duration: 20 / l,
|
|
72
|
-
repeat: 1 / 0,
|
|
73
|
-
ease: "linear"
|
|
74
|
-
},
|
|
75
|
-
d: {
|
|
76
|
-
duration: 8 / l,
|
|
77
|
-
repeat: 1 / 0,
|
|
78
|
-
ease: "easeInOut"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
style: {
|
|
82
|
-
filter: `blur(${t * 0.5}px)`
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
`wave-${t}`
|
|
86
|
-
)),
|
|
87
|
-
Array.from({ length: 15 }, (t, a) => /* @__PURE__ */ e(
|
|
88
|
-
h.circle,
|
|
89
|
-
{
|
|
90
|
-
cx: Math.random() * 1e3,
|
|
91
|
-
cy: Math.random() * 400,
|
|
92
|
-
r: Math.random() * 3 + 1,
|
|
93
|
-
fill: a % 2 === 0 ? o : n,
|
|
94
|
-
initial: { opacity: 0.3 },
|
|
95
|
-
animate: {
|
|
96
|
-
opacity: [0.3, 0.8, 0.3],
|
|
97
|
-
cy: [
|
|
98
|
-
Math.random() * 400,
|
|
99
|
-
Math.random() * 400,
|
|
100
|
-
Math.random() * 400
|
|
101
|
-
],
|
|
102
|
-
cx: [
|
|
103
|
-
Math.random() * 1e3,
|
|
104
|
-
Math.random() * 1e3,
|
|
105
|
-
Math.random() * 1e3
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
transition: {
|
|
109
|
-
duration: Math.random() * 10 + 5,
|
|
110
|
-
repeat: 1 / 0,
|
|
111
|
-
ease: "easeInOut",
|
|
112
|
-
delay: Math.random() * 5
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
`particle-${a}`
|
|
116
|
-
))
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
M.displayName = "BackgroundWaves";
|
|
125
|
-
export {
|
|
126
|
-
M as BackgroundWaves
|
|
127
|
-
};
|