@levo-so/studio 0.1.101 → 0.1.102

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 (46) hide show
  1. package/Beams-DkcjMVZl.js +102 -0
  2. package/{BillingStep-Brc1Mzo3.js → BillingStep-BTRobf00.js} +1 -1
  3. package/{Button-XTKnNIl9.js → Button-DTrN8kki.js} +32 -18
  4. package/{Input-Btdc1Dee.js → CollectionField-7uXvhxYK.js} +57 -76
  5. package/CollectionInput-lHOvWWav.js +147 -0
  6. package/{DateTimeWidget-B5lBr0_R.js → DateTimeWidget-BHCP5osb.js} +9 -9
  7. package/Dots-BrEPvoj3.js +100 -0
  8. package/{EntryCard-DTcx6wfA.js → EntryCard-CqZlbw1Z.js} +6 -6
  9. package/Grid-B4XWU9eL.js +99 -0
  10. package/{LoginCard-CnHmCKUF.js → LoginCard-DWLnYJJU.js} +3 -3
  11. package/{LoginForm-Ck-xFaDg.js → LoginForm-CEUbBeE3.js} +23 -22
  12. package/{LoginModal-BdYM8INu.js → LoginModal-AWNLO49X.js} +3 -3
  13. package/{MessageCard-ChDBqLVG.js → MessageCard-C5ULcfuw.js} +2 -2
  14. package/{MessageFooter-AzAtJWMo.js → MessageFooter-CATwNJJU.js} +1 -1
  15. package/{ModalManager-SggxCIno.js → ModalManager-DQXhkmyC.js} +1 -1
  16. package/{PendingApprovalCard-C6ORDqrY.js → PendingApprovalCard-BowwZMBu.js} +3 -3
  17. package/{PhoneWidget-BRIAve47.js → PhoneWidget-C6uZmrk8.js} +3 -3
  18. package/{Popover-BdKCElnb.js → Popover-Du4iigVw.js} +1 -1
  19. package/RichTextWidget-iYdVRBGB.js +112 -0
  20. package/Toolbar-BHi_B-nE.js +737 -0
  21. package/{Tooltip-BOq5vSOW.js → Tooltip-K_gFzjOa.js} +1 -1
  22. package/{VerifyButton-Bl2QqMpB.js → VerifyButton-D21AOIX3.js} +2 -2
  23. package/authentication-fXmNYss1.js +36 -0
  24. package/{bookingCard-D3ZSjq-P.js → bookingCard--NlgtcJs.js} +3 -3
  25. package/collection.d.ts +83 -0
  26. package/collection.js +9 -8
  27. package/{dist-DuTd566a.js → dist-x5VFEnQl.js} +1132 -1059
  28. package/index.d.ts +43 -7
  29. package/index.js +1517 -1441
  30. package/inlineRteTheme-Cn_Vqgsm.js +23 -0
  31. package/{nodeAlignment-BZbdafVA.js → nodeAlignment-DoVbjk29.js} +39 -60
  32. package/package.json +2 -2
  33. package/studio.css +1 -1
  34. package/useLogin-D2VCOHYI.js +127 -0
  35. package/{utils-kDaDLLGt.js → utils-Bh9uGjo1.js} +1 -1
  36. package/{widgets-CWDiqXm9.js → widgets-CG5Z_dk7.js} +48 -48
  37. package/Beams-B0O3uyYF.js +0 -118
  38. package/CollectionInput-cmJ0RXzG.js +0 -132
  39. package/Dots-DjezbpLp.js +0 -137
  40. package/Grid-C9aUfXM-.js +0 -145
  41. package/RichTextWidget-CjEoGecM.js +0 -1136
  42. /package/{Gradient-B1K9Yi04.js → Gradient-B4Er9hym.js} +0 -0
  43. /package/{StripePaymentModal-BHIBBvRj.js → StripePaymentModal-DC-ySB_o.js} +0 -0
  44. /package/{Waves-BkaAfGqA.js → Waves-kW-EBDdJ.js} +0 -0
  45. /package/{card-BQr9258p.js → card-BwNr7kQS.js} +0 -0
  46. /package/{dialog-Dw6n_36P.js → dialog-CCWrvmHd.js} +0 -0
package/Dots-DjezbpLp.js DELETED
@@ -1,137 +0,0 @@
1
- "use client";
2
- import e from "react";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- import * as r from "motion/react-m";
5
- //#region src/components/backgroundPresets/Dots.tsx
6
- var i = e.memo(({ className: i, dotColor: a, dotSize: o, spacing: s, isAnimated: c = !1, speed: l }) => {
7
- let u = a ?? "#00ff00", d = Math.max(Number(o) || 2, .1), f = Math.max(Number(s) || 30, 1), p = Math.max(Number(l) || 1, .01), m = e.useMemo(() => ({
8
- cx: f / 2,
9
- cy: f / 2,
10
- r: d,
11
- width: Math.max(f, 1),
12
- height: Math.max(f, 1)
13
- }), [f, d]), h = e.useMemo(() => `dots-pattern-${Math.random().toString(36).substring(2, 11)}`, []), g = e.useMemo(() => {
14
- if (!c || !f || f <= 0) return [];
15
- let e = [], t = Math.max(f, 2), n = Math.min(Math.ceil(100 / (t / 10)), 50), r = Math.min(Math.ceil(100 / (t / 10)), 50);
16
- for (let i = 0; i < n; i++) for (let n = 0; n < r; n++) {
17
- let r = Math.abs(Math.sin(i * 12.9898 + n * 78.233) * 43758.5453) % 1, a = Math.abs(Math.sin(i * 39.346 + n * 11.135) * 43758.5453) % 1, o = Math.abs(Math.sin(i * 71.123 + n * 23.456) * 43758.5453) % 1, s = Math.abs(Math.sin(i * 15.987 + n * 82.345) * 43758.5453) % 1;
18
- e.push({
19
- id: `${i}-${n}`,
20
- x: Number((n * t / 10 + (r - .5) * 8).toFixed(2)),
21
- y: Number((i * t / 10 + (a - .5) * 8).toFixed(2)),
22
- delay: Number((o * 3).toFixed(2)),
23
- amplitude: Number((2 + s * 3).toFixed(2))
24
- });
25
- }
26
- return e;
27
- }, [c, f]);
28
- return c ? /* @__PURE__ */ t("div", {
29
- className: i,
30
- style: {
31
- position: "absolute",
32
- inset: 0,
33
- display: "flex",
34
- height: "100%",
35
- width: "100%",
36
- alignItems: "center",
37
- justifyContent: "center",
38
- overflow: "hidden",
39
- zIndex: -1
40
- },
41
- children: /* @__PURE__ */ n("svg", {
42
- style: {
43
- pointerEvents: "none",
44
- position: "absolute",
45
- zIndex: 0,
46
- height: "100%",
47
- width: "100%"
48
- },
49
- width: "100%",
50
- height: "100%",
51
- xmlns: "http://www.w3.org/2000/svg",
52
- children: [/* @__PURE__ */ t("title", { children: "Animated Dots" }), g.map((e) => /* @__PURE__ */ t(r.circle, {
53
- r: d,
54
- fill: u,
55
- initial: {
56
- cx: `${e.x}%`,
57
- cy: `${e.y}%`,
58
- opacity: .3
59
- },
60
- animate: {
61
- opacity: [
62
- .3,
63
- .8,
64
- .3
65
- ],
66
- cx: [
67
- `${e.x}%`,
68
- `${e.x + (e.amplitude || 0)}%`,
69
- `${e.x - (e.amplitude || 0)}%`,
70
- `${e.x}%`
71
- ],
72
- cy: [
73
- `${e.y}%`,
74
- `${e.y - (e.amplitude || 0)}%`,
75
- `${e.y + (e.amplitude || 0)}%`,
76
- `${e.y}%`
77
- ]
78
- },
79
- transition: {
80
- duration: Math.max(.1, 8 / p),
81
- repeat: Infinity,
82
- ease: "easeInOut",
83
- delay: e.delay || 0
84
- }
85
- }, e.id))]
86
- })
87
- }) : /* @__PURE__ */ t("div", {
88
- className: i,
89
- style: {
90
- position: "absolute",
91
- inset: 0,
92
- display: "flex",
93
- height: "100%",
94
- width: "100%",
95
- alignItems: "center",
96
- justifyContent: "center",
97
- zIndex: -1
98
- },
99
- children: /* @__PURE__ */ n("svg", {
100
- style: {
101
- pointerEvents: "none",
102
- position: "absolute",
103
- zIndex: 0,
104
- height: "100%",
105
- width: "100%"
106
- },
107
- width: "100%",
108
- height: "100%",
109
- xmlns: "http://www.w3.org/2000/svg",
110
- children: [
111
- /* @__PURE__ */ t("title", { children: "Static Dots" }),
112
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
113
- id: h,
114
- x: "0",
115
- y: "0",
116
- width: m.width,
117
- height: m.height,
118
- patternUnits: "userSpaceOnUse",
119
- children: /* @__PURE__ */ t("circle", {
120
- cx: m.cx,
121
- cy: m.cy,
122
- r: m.r,
123
- fill: u
124
- })
125
- }) }),
126
- /* @__PURE__ */ t("rect", {
127
- width: "100%",
128
- height: "100%",
129
- fill: `url(#${h})`
130
- })
131
- ]
132
- })
133
- });
134
- }, (e, t) => e.className === t.className && e.dotColor === t.dotColor && e.dotSize === t.dotSize && e.spacing === t.spacing && e.isAnimated === t.isAnimated && e.speed === t.speed);
135
- i.displayName = "BackgroundDots";
136
- //#endregion
137
- export { i as BackgroundDots };
package/Grid-C9aUfXM-.js DELETED
@@ -1,145 +0,0 @@
1
- "use client";
2
- import e from "react";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- import * as r from "motion/react-m";
5
- //#region src/components/backgroundPresets/Grid.tsx
6
- var i = e.memo(({ className: i, lineColor: a, lineWidth: o, spacing: s, isInteractive: c = !1, hoverColor: l = "#93c5fd", rows: u, cols: d }) => {
7
- let f = a ?? "#333333", p = Math.max(o ?? 1, .1), m = Math.max(s ?? 50, 1), h = Math.max(u ?? 150, 1), g = Math.max(d ?? 100, 1), _ = e.useMemo(() => Array(h).fill(1), [h]), v = e.useMemo(() => Array(g).fill(1), [g]), y = e.useMemo(() => ({
8
- rowStyle: {
9
- height: `${m}px`,
10
- width: `${m * 2}px`,
11
- borderLeft: `${p}px solid ${f}`
12
- },
13
- colStyle: {
14
- height: `${m}px`,
15
- width: `${m * 2}px`,
16
- borderTop: `${p}px solid ${f}`,
17
- borderRight: `${p}px solid ${f}`
18
- },
19
- iconStyle: {
20
- top: `${-m / 3.8}px`,
21
- left: `${-m / 2.4}px`,
22
- color: f
23
- }
24
- }), [
25
- m,
26
- p,
27
- f
28
- ]), b = e.useMemo(() => ({
29
- hover: {
30
- backgroundColor: l,
31
- transition: { duration: 0 }
32
- },
33
- animate: { transition: { duration: 2 } }
34
- }), [l]);
35
- return c ? /* @__PURE__ */ t("div", {
36
- className: i,
37
- style: {
38
- position: "absolute",
39
- inset: 0,
40
- display: "flex",
41
- height: "100%",
42
- width: "100%",
43
- alignItems: "center",
44
- justifyContent: "center",
45
- overflow: "hidden",
46
- zIndex: -1
47
- },
48
- children: /* @__PURE__ */ t("div", {
49
- style: {
50
- transform: "translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)",
51
- position: "absolute",
52
- top: "-25%",
53
- left: "25%",
54
- zIndex: 0,
55
- display: "flex",
56
- height: "100%",
57
- width: "100%",
58
- padding: "1rem"
59
- },
60
- children: _.map((e, i) => /* @__PURE__ */ t(r.div, {
61
- style: {
62
- ...y.rowStyle,
63
- position: "relative"
64
- },
65
- children: v.map((e, a) => /* @__PURE__ */ t(r.div, {
66
- whileHover: b.hover,
67
- animate: b.animate,
68
- style: {
69
- ...y.colStyle,
70
- position: "relative"
71
- },
72
- children: a % 2 == 0 && i % 2 == 0 ? /* @__PURE__ */ n("svg", {
73
- xmlns: "http://www.w3.org/2000/svg",
74
- fill: "none",
75
- viewBox: "0 0 24 24",
76
- strokeWidth: "1.5",
77
- stroke: "currentColor",
78
- style: {
79
- ...y.iconStyle,
80
- pointerEvents: "none",
81
- position: "absolute",
82
- height: "1.5rem",
83
- width: "2.5rem",
84
- strokeWidth: "1px"
85
- },
86
- children: [/* @__PURE__ */ t("title", { children: "Grid Lines" }), /* @__PURE__ */ t("path", {
87
- strokeLinecap: "round",
88
- strokeLinejoin: "round",
89
- d: "M12 6v12m6-6H6"
90
- })]
91
- }) : null
92
- }, `col-${a}`))
93
- }, `row-${i}`))
94
- })
95
- }) : /* @__PURE__ */ t("div", {
96
- className: i,
97
- style: {
98
- position: "absolute",
99
- inset: 0,
100
- display: "flex",
101
- height: "100%",
102
- width: "100%",
103
- alignItems: "center",
104
- justifyContent: "center",
105
- zIndex: -1
106
- },
107
- children: /* @__PURE__ */ n("svg", {
108
- style: {
109
- pointerEvents: "none",
110
- position: "absolute",
111
- zIndex: 0,
112
- height: "100%",
113
- width: "100%"
114
- },
115
- width: "100%",
116
- height: "100%",
117
- xmlns: "http://www.w3.org/2000/svg",
118
- children: [
119
- /* @__PURE__ */ t("title", { children: "Grid Lines" }),
120
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("pattern", {
121
- id: "grid-pattern",
122
- x: "0",
123
- y: "0",
124
- width: m,
125
- height: m,
126
- patternUnits: "userSpaceOnUse",
127
- children: /* @__PURE__ */ t("path", {
128
- d: `M ${m} 0 L 0 0 0 ${m}`,
129
- fill: "none",
130
- stroke: f,
131
- strokeWidth: p
132
- })
133
- }) }),
134
- /* @__PURE__ */ t("rect", {
135
- width: "100%",
136
- height: "100%",
137
- fill: "url(#grid-pattern)"
138
- })
139
- ]
140
- })
141
- });
142
- }, (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);
143
- i.displayName = "BackgroundGrid";
144
- //#endregion
145
- export { i as BackgroundGrid };