@levo-so/studio 0.1.5 → 0.1.6

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as s, n as o, A as t, o as r, s as n, au as i, at as g, a as c, h as l, l as C, t as u, a4 as d, ab as m, B as T, b as S, c as h, d as A, e as P, g as p, f as B, C as E, ag as v, as as f, F as L, H as k, a5 as I, k as R, I as b, i as y, a1 as H, a9 as M, aa as K, L as O, M as V, av as x, aw as _, r as F, P as N, q as D, af as G, S as w, ah as z, a2 as U, a3 as W, T as q, w as J, ac as X, ae as j, a7 as Q, ad as Y, an as Z, am as $, a0 as aa, G as ea, a8 as sa, N as oa, a6 as ta, aq as ra, K as na, J as ia, ay as ga, az as ca, al as la, y as Ca, ap as ua, aj as da, ax as ma, Z as Ta, z as Sa, Y as ha, X as Aa, $ as Pa, V as pa, _ as Ba, ak as Ea, ar as va, ai as fa, U as La, W as ka, aA as Ia, D as Ra, x as ba, u as ya, v as Ha, R as Ma, ao as Ka, O as Oa, Q as Va, E as xa } from "./index-BvyenzyF.js";
1
+ import { o as s, l as o, A as t, n as r, r as n, at as i, as as g, a as c, h as l, k as C, s as u, a3 as d, aa as m, B as T, b as S, c as h, d as P, e as p, g as A, f as B, C as E, af as v, ar as f, F as L, H as k, a4 as I, j as R, I as b, i as y, a0 as H, a8 as M, a9 as K, L as O, M as V, au as x, av as _, q as F, P as N, p as D, ae as G, S as w, ag as z, a1 as U, a2 as W, T as j, v as q, ab as J, ad as X, a6 as Q, ac as Y, am as Z, al as $, $ as aa, E as ea, a7 as sa, K as oa, a5 as ta, ap as ra, J as na, G as ia, ax as ga, ay as ca, ak as la, x as Ca, ao as ua, ai as da, aw as ma, Y as Ta, y as Sa, X as ha, W as Pa, _ as pa, U as Aa, Z as Ba, aj as Ea, aq as va, ah as fa, R as La, V as ka, az as Ia, z as Ra, w as ba, u as ya, t as Ha, Q as Ma, an as Ka, N as Oa, O as Va, D as xa } from "./index-DXb2tXBX.js";
2
2
  export {
3
3
  s as AccordionContent,
4
4
  o as AccordionItem,
@@ -16,9 +16,9 @@ export {
16
16
  T as Box,
17
17
  S as Button,
18
18
  h as Carousel,
19
- A as CarouselContent,
20
- P as CarouselItem,
21
- p as CarouselNext,
19
+ P as CarouselContent,
20
+ p as CarouselItem,
21
+ A as CarouselNext,
22
22
  B as CarouselPrevious,
23
23
  E as Container,
24
24
  v as DATA_ATTRIBUTES,
@@ -44,10 +44,10 @@ export {
44
44
  z as StudioPreview,
45
45
  U as StudioWidgetList,
46
46
  W as StudioWidgetMap,
47
- q as Typography,
48
- J as blocksLevoClient,
49
- X as blocksRegistry,
50
- j as colorOptions,
47
+ j as Typography,
48
+ q as blocksLevoClient,
49
+ J as blocksRegistry,
50
+ X as colorOptions,
51
51
  Q as convertKeysToPascalCase,
52
52
  Y as cssOptionsMap,
53
53
  Z as fetchCollectionSchema,
@@ -70,9 +70,9 @@ export {
70
70
  Ta as hexToOKLCH,
71
71
  Sa as isConfigWithVariants,
72
72
  ha as isValidOKLCH,
73
- Aa as oklchStringToRGBA,
74
- Pa as oklchToRGBA,
75
- pa as oklchToString,
73
+ Pa as oklchStringToRGBA,
74
+ pa as oklchToRGBA,
75
+ Aa as oklchToString,
76
76
  Ba as parseOKLCHString,
77
77
  Ea as parseVariablesFromResolvedSource,
78
78
  va as processTheme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",
@@ -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
- };