@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.
Files changed (67) hide show
  1. package/dist/{Beams-sX-ed8H5.js → Beams-B2rZmhLI.js} +40 -27
  2. package/dist/Dots-OyX1E9Ts.js +164 -0
  3. package/dist/Gradient-DOFsccBS.js +50 -0
  4. package/dist/Grid-DRZu52wi.js +191 -0
  5. package/dist/Waves-DzqlDCGx.js +183 -0
  6. package/dist/bridge/constants.d.ts +12 -0
  7. package/dist/bridge/index.d.ts +1 -0
  8. package/dist/bridge/utils.d.ts +1 -0
  9. package/dist/components/ActionWrapper.d.ts +1 -1
  10. package/dist/components/LoginForm/ErrorDisplay.d.ts +8 -0
  11. package/dist/components/LoginForm/GoogleOAuth.d.ts +10 -0
  12. package/dist/components/LoginForm/index.d.ts +7 -0
  13. package/dist/components/LoginModal/index.d.ts +7 -0
  14. package/dist/components/accessCard/EntryCard/index.d.ts +11 -0
  15. package/dist/components/accessCard/LoginCard/index.d.ts +7 -0
  16. package/dist/components/accessCard/MessageCard/index.d.ts +8 -0
  17. package/dist/components/accessCard/MessageFooter/index.d.ts +3 -0
  18. package/dist/components/accessCard/card/index.d.ts +10 -0
  19. package/dist/components/backgroundPresets/Gradient.d.ts +1 -1
  20. package/dist/components/backgroundPresets/presetSystem.d.ts +1 -1
  21. package/dist/components/shared/EmailInput/index.d.ts +10 -0
  22. package/dist/components/shared/OTPInput/index.d.ts +11 -0
  23. package/dist/components/ui/StatefulButton/index.d.ts +15 -0
  24. package/dist/contentEngine/themeUtils.d.ts +1 -1
  25. package/dist/context/ModalManager.d.ts +21 -0
  26. package/dist/core/AccessManager/index.d.ts +7 -0
  27. package/dist/elements/Container.d.ts +1 -0
  28. package/dist/elements/UserMenu.d.ts +8 -0
  29. package/dist/elements/accordion/index.d.ts +1 -1
  30. package/dist/elements/dialog/index.d.ts +16 -0
  31. package/dist/elements/index.d.ts +1 -0
  32. package/dist/elements/popover/index.d.ts +1 -1
  33. package/dist/hooks/useLogin.d.ts +29 -0
  34. package/dist/{index-DXb2tXBX.js → index-2NFcpkxw.js} +3545 -2706
  35. package/dist/index-BcbNOVub.js +30 -0
  36. package/dist/index-Ce2VNBY0.js +49 -0
  37. package/dist/index-QRx1kG5G.js +38 -0
  38. package/dist/index-RdFZytGV.js +54 -0
  39. package/dist/index-vDaUilga.js +23 -0
  40. package/dist/index.css +1 -1
  41. package/dist/index.js +82 -78
  42. package/dist/index2.css +1 -0
  43. package/dist/index3.css +1 -0
  44. package/dist/index4.css +1 -0
  45. package/dist/index5.css +1 -0
  46. package/dist/index6.css +1 -0
  47. package/dist/interfaces/block.d.ts +1 -1
  48. package/dist/interfaces/contentSchema.d.ts +11 -9
  49. package/dist/interfaces/levoBlock.d.ts +3 -2
  50. package/dist/interfaces/site.d.ts +6 -5
  51. package/dist/pixel/constants/borderRadius.d.ts +30 -0
  52. package/dist/pixel/constants/colorOptions.d.ts +30 -25
  53. package/dist/pixel/constants/fontSizeOptions.d.ts +5 -0
  54. package/dist/pixel/index.d.ts +1 -1
  55. package/dist/pixel/optionsMap.d.ts +5 -1
  56. package/dist/pixel/parserUtil.d.ts +15 -0
  57. package/dist/pixel/propertyMap.d.ts +1 -1
  58. package/dist/providers/AuthProvider.d.ts +8 -10
  59. package/dist/utils/index.d.ts +1 -1
  60. package/dist/utils/levoClient.d.ts +5 -0
  61. package/dist/utils/withBlockPropsUtils.d.ts +3 -2
  62. package/package.json +4 -4
  63. package/dist/Dots-CIprNvGi.js +0 -140
  64. package/dist/Gradient-DIn_uQLE.js +0 -42
  65. package/dist/Grid-DXjfqDT3.js +0 -162
  66. package/dist/Waves-CCDZf3yc.js +0 -127
  67. package/dist/utils/blocksLevoClient.d.ts +0 -5
@@ -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
- };
@@ -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