@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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as C, jsxs as a } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as c } from "./index-CRL5tc96.js";
4
+ import { m as c } from "./index-ChfbB6-A.js";
5
5
  const h = r.memo(
6
6
  ({
7
7
  className: o,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as l, jsxs as w } from "react/jsx-runtime";
3
3
  import h from "react";
4
- import { m as x } from "./index-CRL5tc96.js";
4
+ import { m as x } from "./index-ChfbB6-A.js";
5
5
  const g = h.memo(
6
6
  ({
7
7
  className: i,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import o from "react";
4
- import { m as r } from "./index-CRL5tc96.js";
4
+ import { m as r } from "./index-ChfbB6-A.js";
5
5
  const s = o.memo(
6
6
  ({
7
7
  className: e,
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
- import r from "react";
4
- import { m as d } from "./index-CRL5tc96.js";
5
- const p = r.memo(
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: n = 1,
9
+ lineWidth: r = 1,
10
10
  spacing: i = 50,
11
11
  // Interactive mode props
12
12
  isInteractive: u = !1,
13
- hoverColor: s = "#93c5fd",
14
- rows: a = 150,
15
- cols: h = 100
13
+ hoverColor: d = "#93c5fd",
14
+ rows: s = 150,
15
+ cols: a = 100
16
16
  }) => {
17
- const y = r.useMemo(() => new Array(a).fill(1), [a]), f = r.useMemo(() => new Array(h).fill(1), [h]), l = r.useMemo(
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: `${n}px solid ${t}`
22
+ borderLeft: `${r}px solid ${t}`
23
23
  },
24
24
  colStyle: {
25
25
  height: `${i}px`,
26
26
  width: `${i * 2}px`,
27
- borderTop: `${n}px solid ${t}`,
28
- borderRight: `${n}px solid ${t}`
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, n, t]
37
- ), c = r.useMemo(
36
+ [i, r, t]
37
+ ), h = n.useMemo(
38
38
  () => ({
39
39
  hover: {
40
- backgroundColor: s,
40
+ backgroundColor: d,
41
41
  transition: { duration: 0 }
42
42
  },
43
43
  animate: {
44
44
  transition: { duration: 2 }
45
45
  }
46
46
  }),
47
- [s]
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((x, m) => /* @__PURE__ */ o(
79
- d.div,
78
+ children: y.map(($, c) => /* @__PURE__ */ o(
79
+ w.div,
80
80
  {
81
81
  style: { ...l.rowStyle, position: "relative" },
82
- children: f.map(($, w) => /* @__PURE__ */ o(
83
- d.div,
82
+ children: f.map((v, m) => /* @__PURE__ */ o(
83
+ w.div,
84
84
  {
85
- whileHover: c.hover,
86
- animate: c.animate,
85
+ whileHover: h.hover,
86
+ animate: h.animate,
87
87
  style: { ...l.colStyle, position: "relative" },
88
- children: w % 2 === 0 && m % 2 === 0 ? /* @__PURE__ */ o(
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-${w}`
115
+ `col-${m}`
116
116
  ))
117
117
  },
118
- `row-${m}`
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
- d.path,
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: n,
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
- p.displayName = "BackgroundGrid";
181
+ x.displayName = "BackgroundGrid";
189
182
  export {
190
- p as BackgroundGrid
183
+ x as BackgroundGrid
191
184
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
3
3
  import u from "react";
4
- import { m as d } from "./index-CRL5tc96.js";
4
+ import { m as d } from "./index-ChfbB6-A.js";
5
5
  const g = u.memo(
6
6
  ({
7
7
  className: p,
@@ -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-BhD2HBEg.js";
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-CRL5tc96.js";
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-BhD2HBEg.js";
6
- import { u as h } from "./index-CRL5tc96.js";
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,