@solostylist/ui-kit 1.0.190 → 1.0.191
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.
|
@@ -1074,6 +1074,7 @@ export declare const MuiButton: {
|
|
|
1074
1074
|
opacity: number;
|
|
1075
1075
|
};
|
|
1076
1076
|
'&.MuiButton-loading': {
|
|
1077
|
+
color: string;
|
|
1077
1078
|
'& .MuiButton-loadingIndicator': {
|
|
1078
1079
|
color: string;
|
|
1079
1080
|
};
|
|
@@ -2112,6 +2113,7 @@ export declare const MuiButton: {
|
|
|
2112
2113
|
opacity: number;
|
|
2113
2114
|
};
|
|
2114
2115
|
'&.MuiButton-loading': {
|
|
2116
|
+
color: string;
|
|
2115
2117
|
'& .MuiButton-loadingIndicator': {
|
|
2116
2118
|
color: string;
|
|
2117
2119
|
};
|
|
@@ -3150,6 +3152,7 @@ export declare const MuiButton: {
|
|
|
3150
3152
|
opacity: number;
|
|
3151
3153
|
};
|
|
3152
3154
|
'&.MuiButton-loading': {
|
|
3155
|
+
color: string;
|
|
3153
3156
|
'& .MuiButton-loadingIndicator': {
|
|
3154
3157
|
color: string;
|
|
3155
3158
|
};
|
|
@@ -4188,6 +4191,7 @@ export declare const MuiButton: {
|
|
|
4188
4191
|
opacity: number;
|
|
4189
4192
|
};
|
|
4190
4193
|
'&.MuiButton-loading': {
|
|
4194
|
+
color: string;
|
|
4191
4195
|
'& .MuiButton-loadingIndicator': {
|
|
4192
4196
|
color: string;
|
|
4193
4197
|
};
|
|
@@ -5226,6 +5230,7 @@ export declare const MuiButton: {
|
|
|
5226
5230
|
opacity: number;
|
|
5227
5231
|
};
|
|
5228
5232
|
'&.MuiButton-loading': {
|
|
5233
|
+
color: string;
|
|
5229
5234
|
'& .MuiButton-loadingIndicator': {
|
|
5230
5235
|
color: string;
|
|
5231
5236
|
};
|
|
@@ -6264,6 +6269,7 @@ export declare const MuiButton: {
|
|
|
6264
6269
|
opacity: number;
|
|
6265
6270
|
};
|
|
6266
6271
|
'&.MuiButton-loading': {
|
|
6272
|
+
color: string;
|
|
6267
6273
|
'& .MuiButton-loadingIndicator': {
|
|
6268
6274
|
color: string;
|
|
6269
6275
|
};
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import { brand as u, lightBrand as
|
|
2
|
-
const
|
|
3
|
-
backgroundColor:
|
|
4
|
-
color:
|
|
5
|
-
borderColor: r.variant === "outlined" ?
|
|
1
|
+
import { brand as u, lightBrand as c, purple as p, lightPurple as e, green as l, lightGreen as d, red as v, lightRed as b, blue as y, lightBlue as g, orange as f, lightOrange as B } from "../theme-primitives.js";
|
|
2
|
+
const o = (i, r) => i === "text" || i === "outlined" ? "transparent" : r, s = (i, r, n) => i === "text" || i === "outlined" ? n : r, t = (i, r, n, a) => ({
|
|
3
|
+
backgroundColor: o(r.variant, n[700]),
|
|
4
|
+
color: s(r.variant, n[50], n[500]),
|
|
5
|
+
borderColor: r.variant === "outlined" ? n[300] : "transparent",
|
|
6
6
|
"&:hover": {
|
|
7
|
-
backgroundColor:
|
|
8
|
-
color:
|
|
9
|
-
borderColor: r.variant === "outlined" ?
|
|
7
|
+
backgroundColor: o(r.variant, n[800]),
|
|
8
|
+
color: s(r.variant, n[100], n[600]),
|
|
9
|
+
borderColor: r.variant === "outlined" ? n[400] : "transparent"
|
|
10
10
|
},
|
|
11
11
|
"&:active": { filter: "brightness(1.1)" },
|
|
12
12
|
"&.Mui-disabled": {
|
|
13
|
-
backgroundColor:
|
|
14
|
-
color:
|
|
15
|
-
borderColor: r.variant === "outlined" ?
|
|
13
|
+
backgroundColor: o(r.variant, n[700]),
|
|
14
|
+
color: n[50],
|
|
15
|
+
borderColor: r.variant === "outlined" ? n[900] : "transparent",
|
|
16
16
|
opacity: 0.5
|
|
17
17
|
},
|
|
18
18
|
"&.MuiButton-loading": {
|
|
19
|
+
color: s(r.variant, n[50], n[500]),
|
|
19
20
|
"& .MuiButton-loadingIndicator": {
|
|
20
|
-
color:
|
|
21
|
+
color: s(r.variant, n[50], n[500])
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
|
-
...
|
|
24
|
-
backgroundColor:
|
|
25
|
-
color:
|
|
26
|
-
borderColor: r.variant === "outlined" ?
|
|
24
|
+
...i.applyStyles("dark", {
|
|
25
|
+
backgroundColor: o(r.variant, a[800]),
|
|
26
|
+
color: s(r.variant, a[100], a[500]),
|
|
27
|
+
borderColor: r.variant === "outlined" ? a[800] : "transparent",
|
|
27
28
|
"&:hover": {
|
|
28
|
-
backgroundColor:
|
|
29
|
-
color:
|
|
30
|
-
borderColor: r.variant === "outlined" ?
|
|
29
|
+
backgroundColor: o(r.variant, a[900]),
|
|
30
|
+
color: s(r.variant, a[50], a[600]),
|
|
31
|
+
borderColor: r.variant === "outlined" ? a[900] : "transparent"
|
|
31
32
|
},
|
|
32
33
|
"&:active": { filter: "brightness(1.1)" },
|
|
33
34
|
"&.Mui-disabled": {
|
|
34
|
-
backgroundColor:
|
|
35
|
-
color:
|
|
36
|
-
borderColor: r.variant === "outlined" ?
|
|
35
|
+
backgroundColor: o(r.variant, a[800]),
|
|
36
|
+
color: a[100],
|
|
37
|
+
borderColor: r.variant === "outlined" ? a[900] : "transparent",
|
|
37
38
|
opacity: 0.5
|
|
38
39
|
},
|
|
39
40
|
"&.MuiButton-loading": {
|
|
41
|
+
color: s(r.variant, a[100], a[500]),
|
|
40
42
|
"& .MuiButton-loadingIndicator": {
|
|
41
|
-
color:
|
|
43
|
+
color: s(r.variant, a[100], a[500])
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
})
|
|
@@ -47,9 +49,9 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
47
49
|
variant: "contained"
|
|
48
50
|
},
|
|
49
51
|
styleOverrides: {
|
|
50
|
-
root: ({ theme:
|
|
52
|
+
root: ({ theme: i, ownerState: r }) => ({
|
|
51
53
|
boxShadow: "none",
|
|
52
|
-
borderRadius: (
|
|
54
|
+
borderRadius: (i.vars || i).shape.borderRadius,
|
|
53
55
|
textTransform: "none",
|
|
54
56
|
transition: "all 0.2s ease-in-out",
|
|
55
57
|
variants: [
|
|
@@ -85,7 +87,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
85
87
|
color: "primary"
|
|
86
88
|
},
|
|
87
89
|
style: {
|
|
88
|
-
...
|
|
90
|
+
...t(i, r, c, u)
|
|
89
91
|
}
|
|
90
92
|
},
|
|
91
93
|
{
|
|
@@ -93,7 +95,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
93
95
|
color: "secondary"
|
|
94
96
|
},
|
|
95
97
|
style: {
|
|
96
|
-
...
|
|
98
|
+
...t(i, r, e, p)
|
|
97
99
|
}
|
|
98
100
|
},
|
|
99
101
|
{
|
|
@@ -101,7 +103,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
101
103
|
color: "success"
|
|
102
104
|
},
|
|
103
105
|
style: {
|
|
104
|
-
...
|
|
106
|
+
...t(i, r, d, l)
|
|
105
107
|
}
|
|
106
108
|
},
|
|
107
109
|
{
|
|
@@ -109,7 +111,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
109
111
|
color: "error"
|
|
110
112
|
},
|
|
111
113
|
style: {
|
|
112
|
-
...
|
|
114
|
+
...t(i, r, b, v)
|
|
113
115
|
}
|
|
114
116
|
},
|
|
115
117
|
{
|
|
@@ -117,7 +119,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
117
119
|
color: "info"
|
|
118
120
|
},
|
|
119
121
|
style: {
|
|
120
|
-
...
|
|
122
|
+
...t(i, r, g, y)
|
|
121
123
|
}
|
|
122
124
|
},
|
|
123
125
|
{
|
|
@@ -125,7 +127,7 @@ const a = (n, r) => n === "text" || n === "outlined" ? "transparent" : r, t = (n
|
|
|
125
127
|
color: "warning"
|
|
126
128
|
},
|
|
127
129
|
style: {
|
|
128
|
-
...
|
|
130
|
+
...t(i, r, B, f)
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
]
|