@levo-so/studio 0.1.55 → 0.1.57
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-YjQTPRTy.js → Beams-CjOdmyD4.js} +1 -1
- package/dist/{Dots-C4ga5kYR.js → Dots-BlGBjcwD.js} +1 -1
- package/dist/{Gradient-wfHCh2R4.js → Gradient-YhY9Pvdr.js} +1 -1
- package/dist/{Grid-DXr817Cv.js → Grid-BO_h2CxQ.js} +28 -35
- package/dist/{Waves-Bg8QP8CA.js → Waves-SaFLO-Gq.js} +1 -1
- package/dist/elements/Form.d.ts +2 -0
- package/dist/{index-Tx13uZvb.js → index-BFUEWnWU.js} +1 -1
- package/dist/{index-YP_96cR8.js → index-BP4Q9Ed6.js} +1 -1
- package/dist/{index-Bh281v8p.js → index-C5YVd5mP.js} +2 -2
- package/dist/{index-CRL5tc96.js → index-ChfbB6-A.js} +2886 -2514
- package/dist/{index-BhD2HBEg.js → index-DurprJto.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/levoBlock.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import { m as
|
|
5
|
-
const
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { m as w } from "./index-ChfbB6-A.js";
|
|
5
|
+
const x = n.memo(
|
|
6
6
|
({
|
|
7
7
|
className: e,
|
|
8
8
|
lineColor: t = "#333333",
|
|
9
|
-
lineWidth:
|
|
9
|
+
lineWidth: r = 1,
|
|
10
10
|
spacing: i = 50,
|
|
11
11
|
// Interactive mode props
|
|
12
12
|
isInteractive: u = !1,
|
|
13
|
-
hoverColor:
|
|
14
|
-
rows:
|
|
15
|
-
cols:
|
|
13
|
+
hoverColor: d = "#93c5fd",
|
|
14
|
+
rows: s = 150,
|
|
15
|
+
cols: a = 100
|
|
16
16
|
}) => {
|
|
17
|
-
const y =
|
|
17
|
+
const y = n.useMemo(() => new Array(s).fill(1), [s]), f = n.useMemo(() => new Array(a).fill(1), [a]), l = n.useMemo(
|
|
18
18
|
() => ({
|
|
19
19
|
rowStyle: {
|
|
20
20
|
height: `${i}px`,
|
|
21
21
|
width: `${i * 2}px`,
|
|
22
|
-
borderLeft: `${
|
|
22
|
+
borderLeft: `${r}px solid ${t}`
|
|
23
23
|
},
|
|
24
24
|
colStyle: {
|
|
25
25
|
height: `${i}px`,
|
|
26
26
|
width: `${i * 2}px`,
|
|
27
|
-
borderTop: `${
|
|
28
|
-
borderRight: `${
|
|
27
|
+
borderTop: `${r}px solid ${t}`,
|
|
28
|
+
borderRight: `${r}px solid ${t}`
|
|
29
29
|
},
|
|
30
30
|
iconStyle: {
|
|
31
31
|
top: `${-i / 3.8}px`,
|
|
@@ -33,18 +33,18 @@ const p = r.memo(
|
|
|
33
33
|
color: t
|
|
34
34
|
}
|
|
35
35
|
}),
|
|
36
|
-
[i,
|
|
37
|
-
),
|
|
36
|
+
[i, r, t]
|
|
37
|
+
), h = n.useMemo(
|
|
38
38
|
() => ({
|
|
39
39
|
hover: {
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: d,
|
|
41
41
|
transition: { duration: 0 }
|
|
42
42
|
},
|
|
43
43
|
animate: {
|
|
44
44
|
transition: { duration: 2 }
|
|
45
45
|
}
|
|
46
46
|
}),
|
|
47
|
-
[
|
|
47
|
+
[d]
|
|
48
48
|
);
|
|
49
49
|
return u ? /* @__PURE__ */ o(
|
|
50
50
|
"div",
|
|
@@ -75,17 +75,17 @@ const p = r.memo(
|
|
|
75
75
|
width: "100%",
|
|
76
76
|
padding: "1rem"
|
|
77
77
|
},
|
|
78
|
-
children: y.map((
|
|
79
|
-
|
|
78
|
+
children: y.map(($, c) => /* @__PURE__ */ o(
|
|
79
|
+
w.div,
|
|
80
80
|
{
|
|
81
81
|
style: { ...l.rowStyle, position: "relative" },
|
|
82
|
-
children: f.map((
|
|
83
|
-
|
|
82
|
+
children: f.map((v, m) => /* @__PURE__ */ o(
|
|
83
|
+
w.div,
|
|
84
84
|
{
|
|
85
|
-
whileHover:
|
|
86
|
-
animate:
|
|
85
|
+
whileHover: h.hover,
|
|
86
|
+
animate: h.animate,
|
|
87
87
|
style: { ...l.colStyle, position: "relative" },
|
|
88
|
-
children:
|
|
88
|
+
children: m % 2 === 0 && c % 2 === 0 ? /* @__PURE__ */ o(
|
|
89
89
|
"svg",
|
|
90
90
|
{
|
|
91
91
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -112,10 +112,10 @@ const p = r.memo(
|
|
|
112
112
|
}
|
|
113
113
|
) : null
|
|
114
114
|
},
|
|
115
|
-
`col-${
|
|
115
|
+
`col-${m}`
|
|
116
116
|
))
|
|
117
117
|
},
|
|
118
|
-
`row-${
|
|
118
|
+
`row-${c}`
|
|
119
119
|
))
|
|
120
120
|
}
|
|
121
121
|
)
|
|
@@ -158,19 +158,12 @@ const p = r.memo(
|
|
|
158
158
|
height: i,
|
|
159
159
|
patternUnits: "userSpaceOnUse",
|
|
160
160
|
children: /* @__PURE__ */ o(
|
|
161
|
-
|
|
161
|
+
"path",
|
|
162
162
|
{
|
|
163
163
|
d: `M ${i} 0 L 0 0 0 ${i}`,
|
|
164
164
|
fill: "none",
|
|
165
165
|
stroke: t,
|
|
166
|
-
strokeWidth:
|
|
167
|
-
initial: { opacity: 0.2 },
|
|
168
|
-
animate: { opacity: [0.2, 0.5, 0.2] },
|
|
169
|
-
transition: {
|
|
170
|
-
duration: 3,
|
|
171
|
-
repeat: 1 / 0,
|
|
172
|
-
ease: "easeInOut"
|
|
173
|
-
}
|
|
166
|
+
strokeWidth: r
|
|
174
167
|
}
|
|
175
168
|
)
|
|
176
169
|
}
|
|
@@ -185,7 +178,7 @@ const p = r.memo(
|
|
|
185
178
|
// Custom comparison function for better memoization
|
|
186
179
|
(e, t) => e.className === t.className && e.lineColor === t.lineColor && e.lineWidth === t.lineWidth && e.spacing === t.spacing && e.isInteractive === t.isInteractive && e.hoverColor === t.hoverColor && e.rows === t.rows && e.cols === t.cols
|
|
187
180
|
);
|
|
188
|
-
|
|
181
|
+
x.displayName = "BackgroundGrid";
|
|
189
182
|
export {
|
|
190
|
-
|
|
183
|
+
x as BackgroundGrid
|
|
191
184
|
};
|
package/dist/elements/Form.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ILevoFormContext } from '@levo-so/react-collection';
|
|
1
2
|
import { BaseElementProps } from '../components/withBlockProps';
|
|
2
3
|
export declare const Form: import('../components/withBlockProps').WithBlockPropsComponent<BaseElementProps & {
|
|
3
4
|
className?: string;
|
|
5
|
+
theme?: ILevoFormContext["theme"];
|
|
4
6
|
}>;
|
|
5
7
|
export default Form;
|
|
6
8
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { A as o } from "./index-DHHPZcEh.js";
|
|
4
|
-
import { M as r } from "./index-
|
|
4
|
+
import { M as r } from "./index-DurprJto.js";
|
|
5
5
|
const c = "_header_1vjty_1", l = "_iconContainer_1vjty_6", d = "_icon_1vjty_6", m = "_title_1vjty_18", _ = "_subtitle_1vjty_26", h = "_messageContainer_1vjty_33", v = "_message_1vjty_33", s = {
|
|
6
6
|
header: c,
|
|
7
7
|
iconContainer: l,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { L as i } from "./index-
|
|
3
|
+
import { L as i } from "./index-ChfbB6-A.js";
|
|
4
4
|
import { A as n } from "./index-DHHPZcEh.js";
|
|
5
5
|
const a = "_header_s7k8g_1", c = "_title_s7k8g_7", l = "_subtitle_s7k8g_14", d = "_formWrapper_s7k8g_20", e = {
|
|
6
6
|
header: a,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { CollectionFormBuilder as c } from "@levo-so/react-collection";
|
|
4
4
|
import { A as n } from "./index-DHHPZcEh.js";
|
|
5
|
-
import { M as o } from "./index-
|
|
6
|
-
import { u as h } from "./index-
|
|
5
|
+
import { M as o } from "./index-DurprJto.js";
|
|
6
|
+
import { u as h } from "./index-ChfbB6-A.js";
|
|
7
7
|
const u = "_header_emo7t_1", f = "_title_emo7t_8", _ = "_subtitle_emo7t_15", C = "_formContainer_emo7t_21", i = {
|
|
8
8
|
header: u,
|
|
9
9
|
title: f,
|