@solostylist/ui-kit 1.0.61 → 1.0.62
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gradient-text{background-image:var(--s-palette-gradient-primary);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { useRef as u, useEffect as A } from "react";
|
|
3
3
|
import { Box as c, Button as $ } from "@mui/material";
|
|
4
|
-
import { useMotionValue as
|
|
5
|
-
const w = 120, m = {
|
|
4
|
+
import { useMotionValue as z, useAnimationFrame as E, useTransform as b, useMotionTemplate as F, motion as B } from "framer-motion";
|
|
5
|
+
import '../assets/s-glow-button.css';const w = 120, m = {
|
|
6
6
|
background: "#0f172acc",
|
|
7
7
|
glowColor: "#38bdf8"
|
|
8
8
|
}, y = {
|
|
@@ -24,8 +24,8 @@ function v({
|
|
|
24
24
|
ry: f,
|
|
25
25
|
phase: l = 0
|
|
26
26
|
}) {
|
|
27
|
-
const t = u(null), e =
|
|
28
|
-
|
|
27
|
+
const t = u(null), e = z(0);
|
|
28
|
+
E((o) => {
|
|
29
29
|
var i;
|
|
30
30
|
const r = (i = t.current) == null ? void 0 : i.getTotalLength();
|
|
31
31
|
if (r) {
|
|
@@ -39,7 +39,7 @@ function v({
|
|
|
39
39
|
}), x = b(e, (o) => {
|
|
40
40
|
var r, i;
|
|
41
41
|
return (i = (r = t.current) == null ? void 0 : r.getPointAtLength(o)) == null ? void 0 : i.y;
|
|
42
|
-
}), g =
|
|
42
|
+
}), g = F`translateX(${d}px) translateY(${x}px) translateX(-50%) translateY(-50%)`;
|
|
43
43
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
44
44
|
/* @__PURE__ */ n.jsx(
|
|
45
45
|
"svg",
|
|
@@ -191,7 +191,7 @@ const X = ({ borderRadius: s = 2, children: p, duration: a = 5e3, ...f }) => {
|
|
|
191
191
|
backgroundColor: "var(--s-palette-background-paper)"
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
-
children: /* @__PURE__ */ n.jsx(c, { className: "gradient-text", children: p })
|
|
194
|
+
children: /* @__PURE__ */ n.jsx(c, { className: "gradient-text", fontSize: 16, children: p })
|
|
195
195
|
}
|
|
196
196
|
)
|
|
197
197
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as r, a as s } from "../createTheme-CozHbEju.js";
|
|
2
|
-
const
|
|
2
|
+
const t = r(), h = {
|
|
3
3
|
50: "hsl(210, 100%, 95%)",
|
|
4
4
|
100: "hsl(210, 100%, 92%)",
|
|
5
5
|
200: "hsl(210, 100%, 80%)",
|
|
@@ -42,7 +42,7 @@ const h = r(), t = {
|
|
|
42
42
|
700: "hsl(120, 75%, 16%)",
|
|
43
43
|
800: "hsl(120, 84%, 10%)",
|
|
44
44
|
900: "hsl(120, 87%, 6%)"
|
|
45
|
-
},
|
|
45
|
+
}, a = {
|
|
46
46
|
50: "hsl(45, 100%, 97%)",
|
|
47
47
|
100: "hsl(45, 92%, 90%)",
|
|
48
48
|
200: "hsl(45, 94%, 80%)",
|
|
@@ -53,7 +53,7 @@ const h = r(), t = {
|
|
|
53
53
|
700: "hsl(45, 94%, 20%)",
|
|
54
54
|
800: "hsl(45, 95%, 16%)",
|
|
55
55
|
900: "hsl(45, 93%, 12%)"
|
|
56
|
-
},
|
|
56
|
+
}, l = {
|
|
57
57
|
50: "hsl(0, 100%, 97%)",
|
|
58
58
|
100: "hsl(0, 92%, 90%)",
|
|
59
59
|
200: "hsl(0, 94%, 80%)",
|
|
@@ -64,31 +64,34 @@ const h = r(), t = {
|
|
|
64
64
|
700: "hsl(0, 94%, 18%)",
|
|
65
65
|
800: "hsl(0, 95%, 12%)",
|
|
66
66
|
900: "hsl(0, 93%, 6%)"
|
|
67
|
-
},
|
|
67
|
+
}, p = {
|
|
68
68
|
dark: {
|
|
69
69
|
palette: {
|
|
70
|
+
gradient: {
|
|
71
|
+
primary: "linear-gradient(90deg, #1469be 0%, #43ecff 100%);"
|
|
72
|
+
},
|
|
70
73
|
primary: {
|
|
71
|
-
contrastText:
|
|
72
|
-
light:
|
|
73
|
-
main:
|
|
74
|
-
dark:
|
|
74
|
+
contrastText: h[50],
|
|
75
|
+
light: h[300],
|
|
76
|
+
main: h[400],
|
|
77
|
+
dark: h[700]
|
|
75
78
|
},
|
|
76
79
|
info: {
|
|
77
|
-
contrastText:
|
|
78
|
-
light:
|
|
79
|
-
main:
|
|
80
|
-
dark:
|
|
80
|
+
contrastText: h[300],
|
|
81
|
+
light: h[500],
|
|
82
|
+
main: h[700],
|
|
83
|
+
dark: h[900]
|
|
81
84
|
},
|
|
82
85
|
warning: {
|
|
83
|
-
light: l[400],
|
|
84
|
-
main: l[500],
|
|
85
|
-
dark: l[700]
|
|
86
|
-
},
|
|
87
|
-
error: {
|
|
88
86
|
light: a[400],
|
|
89
87
|
main: a[500],
|
|
90
88
|
dark: a[700]
|
|
91
89
|
},
|
|
90
|
+
error: {
|
|
91
|
+
light: l[400],
|
|
92
|
+
main: l[500],
|
|
93
|
+
dark: l[700]
|
|
94
|
+
},
|
|
92
95
|
success: {
|
|
93
96
|
light: o[400],
|
|
94
97
|
main: o[500],
|
|
@@ -116,61 +119,61 @@ const h = r(), t = {
|
|
|
116
119
|
}, g = {
|
|
117
120
|
fontFamily: "Outfit, sans-serif",
|
|
118
121
|
h1: {
|
|
119
|
-
fontSize:
|
|
122
|
+
fontSize: t.typography.pxToRem(48),
|
|
120
123
|
fontWeight: 600,
|
|
121
124
|
lineHeight: 1.2,
|
|
122
125
|
letterSpacing: -0.5
|
|
123
126
|
},
|
|
124
127
|
h2: {
|
|
125
|
-
fontSize:
|
|
128
|
+
fontSize: t.typography.pxToRem(36),
|
|
126
129
|
fontWeight: 600,
|
|
127
130
|
lineHeight: 1.2
|
|
128
131
|
},
|
|
129
132
|
h3: {
|
|
130
|
-
fontSize:
|
|
133
|
+
fontSize: t.typography.pxToRem(30),
|
|
131
134
|
lineHeight: 1.2
|
|
132
135
|
},
|
|
133
136
|
h4: {
|
|
134
|
-
fontSize:
|
|
137
|
+
fontSize: t.typography.pxToRem(24),
|
|
135
138
|
fontWeight: 600,
|
|
136
139
|
lineHeight: 1.5
|
|
137
140
|
},
|
|
138
141
|
h5: {
|
|
139
|
-
fontSize:
|
|
142
|
+
fontSize: t.typography.pxToRem(20),
|
|
140
143
|
fontWeight: 600
|
|
141
144
|
},
|
|
142
145
|
h6: {
|
|
143
|
-
fontSize:
|
|
146
|
+
fontSize: t.typography.pxToRem(18),
|
|
144
147
|
fontWeight: 600
|
|
145
148
|
},
|
|
146
149
|
subtitle1: {
|
|
147
|
-
fontSize:
|
|
150
|
+
fontSize: t.typography.pxToRem(18)
|
|
148
151
|
},
|
|
149
152
|
subtitle2: {
|
|
150
|
-
fontSize:
|
|
153
|
+
fontSize: t.typography.pxToRem(14),
|
|
151
154
|
fontWeight: 500
|
|
152
155
|
},
|
|
153
156
|
body1: {
|
|
154
|
-
fontSize:
|
|
157
|
+
fontSize: t.typography.pxToRem(14)
|
|
155
158
|
},
|
|
156
159
|
body2: {
|
|
157
|
-
fontSize:
|
|
160
|
+
fontSize: t.typography.pxToRem(14),
|
|
158
161
|
fontWeight: 400
|
|
159
162
|
},
|
|
160
163
|
caption: {
|
|
161
|
-
fontSize:
|
|
164
|
+
fontSize: t.typography.pxToRem(12),
|
|
162
165
|
fontWeight: 400
|
|
163
166
|
}
|
|
164
167
|
}, y = {
|
|
165
168
|
borderRadius: 8
|
|
166
|
-
}, n = ["none", "var(--s-palette-baseShadow)", ...
|
|
169
|
+
}, n = ["none", "var(--s-palette-baseShadow)", ...t.shadows.slice(2)], f = n;
|
|
167
170
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
h as brand,
|
|
172
|
+
p as colorSchemes,
|
|
170
173
|
e as gray,
|
|
171
174
|
o as green,
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
a as orange,
|
|
176
|
+
l as red,
|
|
174
177
|
f as shadows,
|
|
175
178
|
y as shape,
|
|
176
179
|
g as typography
|