@solostylist/ui-kit 1.0.81 → 1.0.83
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,5 +1,25 @@
|
|
|
1
|
-
import { gray as
|
|
2
|
-
const
|
|
1
|
+
import { gray as d, brand as a, purple as p, green as u, red as t, blue as v, orange as b } from "../theme-primitives.js";
|
|
2
|
+
const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o, r, i) => o === "text" || o === "outlined" ? i : r, n = (o, r, i) => o.applyStyles("dark", {
|
|
3
|
+
backgroundColor: s(r.variant, i[800]),
|
|
4
|
+
color: l(r.variant, i[50], i[500]),
|
|
5
|
+
borderColor: r.variant === "outlined" ? i[900] : "transparent",
|
|
6
|
+
"&:hover": {
|
|
7
|
+
backgroundColor: s(r.variant, i[900]),
|
|
8
|
+
color: l(r.variant, i[100], i[400]),
|
|
9
|
+
borderColor: r.variant === "outlined" ? i[800] : "transparent"
|
|
10
|
+
},
|
|
11
|
+
"&:active": { filter: "brightness(1.1)" },
|
|
12
|
+
"&.Mui-disabled": {
|
|
13
|
+
backgroundColor: s(r.variant, i[800]),
|
|
14
|
+
color: i[900],
|
|
15
|
+
borderColor: r.variant === "outlined" ? i[900] : "transparent"
|
|
16
|
+
}
|
|
17
|
+
// '&.MuiButton-loading': {
|
|
18
|
+
// '& .MuiButton-loadingIndicator': {
|
|
19
|
+
// color: colorPalette[900],
|
|
20
|
+
// },
|
|
21
|
+
// },
|
|
22
|
+
}), g = {
|
|
3
23
|
styleOverrides: {
|
|
4
24
|
root: ({ theme: o, ownerState: r }) => ({
|
|
5
25
|
boxShadow: "none",
|
|
@@ -40,26 +60,20 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
40
60
|
},
|
|
41
61
|
style: {
|
|
42
62
|
...o.applyStyles("dark", {
|
|
43
|
-
backgroundColor:
|
|
44
|
-
color: l(r.variant,
|
|
45
|
-
borderColor: r.variant === "outlined" ?
|
|
63
|
+
backgroundColor: s(r.variant, a[800]),
|
|
64
|
+
color: l(r.variant, a[50], d[200]),
|
|
65
|
+
borderColor: r.variant === "outlined" ? (o.vars || o).palette.divider : "transparent",
|
|
46
66
|
"&:hover": {
|
|
47
|
-
backgroundColor:
|
|
48
|
-
color: l(r.variant,
|
|
49
|
-
borderColor: r.variant === "outlined" ?
|
|
50
|
-
// For text and outlined, when hovered
|
|
67
|
+
backgroundColor: s(r.variant, a[900]),
|
|
68
|
+
color: l(r.variant, a[100], (o.vars || o).palette.text.primary),
|
|
69
|
+
borderColor: r.variant === "outlined" ? d[700] : "transparent"
|
|
51
70
|
},
|
|
52
71
|
"&:active": { filter: "brightness(1.1)" },
|
|
53
72
|
"&.Mui-disabled": {
|
|
54
|
-
backgroundColor:
|
|
55
|
-
color:
|
|
56
|
-
borderColor: r.variant === "outlined" ?
|
|
73
|
+
backgroundColor: s(r.variant, a[800]),
|
|
74
|
+
color: d[700],
|
|
75
|
+
borderColor: r.variant === "outlined" ? (o.vars || o).palette.divider : "transparent"
|
|
57
76
|
}
|
|
58
|
-
// '&.MuiButton-loading': {
|
|
59
|
-
// '& .MuiButton-loadingIndicator': {
|
|
60
|
-
// color: brand[900],
|
|
61
|
-
// },
|
|
62
|
-
// },
|
|
63
77
|
})
|
|
64
78
|
}
|
|
65
79
|
},
|
|
@@ -68,22 +82,7 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
68
82
|
color: "secondary"
|
|
69
83
|
},
|
|
70
84
|
style: {
|
|
71
|
-
...o
|
|
72
|
-
backgroundColor: a(r.variant, i[800]),
|
|
73
|
-
color: l(r.variant, i[50], i[500]),
|
|
74
|
-
borderColor: r.variant === "outlined" ? i[500] : "transparent",
|
|
75
|
-
"&:hover": {
|
|
76
|
-
backgroundColor: a(r.variant, i[900]),
|
|
77
|
-
color: l(r.variant, i[100], i[400]),
|
|
78
|
-
borderColor: r.variant === "outlined" ? i[400] : "transparent"
|
|
79
|
-
},
|
|
80
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
81
|
-
"&.Mui-disabled": {
|
|
82
|
-
backgroundColor: a(r.variant, i[800]),
|
|
83
|
-
color: i[900],
|
|
84
|
-
borderColor: r.variant === "outlined" ? i[900] : "transparent"
|
|
85
|
-
}
|
|
86
|
-
})
|
|
85
|
+
...n(o, r, p)
|
|
87
86
|
}
|
|
88
87
|
},
|
|
89
88
|
{
|
|
@@ -91,22 +90,7 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
91
90
|
color: "success"
|
|
92
91
|
},
|
|
93
92
|
style: {
|
|
94
|
-
...o
|
|
95
|
-
backgroundColor: a(r.variant, n[800]),
|
|
96
|
-
color: l(r.variant, n[50], n[500]),
|
|
97
|
-
borderColor: r.variant === "outlined" ? n[500] : "transparent",
|
|
98
|
-
"&:hover": {
|
|
99
|
-
backgroundColor: a(r.variant, n[900]),
|
|
100
|
-
color: l(r.variant, n[100], n[400]),
|
|
101
|
-
borderColor: r.variant === "outlined" ? n[400] : "transparent"
|
|
102
|
-
},
|
|
103
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
104
|
-
"&.Mui-disabled": {
|
|
105
|
-
backgroundColor: a(r.variant, n[800]),
|
|
106
|
-
color: n[900],
|
|
107
|
-
borderColor: r.variant === "outlined" ? n[900] : "transparent"
|
|
108
|
-
}
|
|
109
|
-
})
|
|
93
|
+
...n(o, r, u)
|
|
110
94
|
}
|
|
111
95
|
},
|
|
112
96
|
{
|
|
@@ -114,22 +98,7 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
114
98
|
color: "error"
|
|
115
99
|
},
|
|
116
100
|
style: {
|
|
117
|
-
...o
|
|
118
|
-
backgroundColor: a(r.variant, s[800]),
|
|
119
|
-
color: l(r.variant, s[50], s[500]),
|
|
120
|
-
borderColor: r.variant === "outlined" ? s[500] : "transparent",
|
|
121
|
-
"&:hover": {
|
|
122
|
-
backgroundColor: a(r.variant, s[900]),
|
|
123
|
-
color: l(r.variant, s[100], s[400]),
|
|
124
|
-
borderColor: r.variant === "outlined" ? s[400] : "transparent"
|
|
125
|
-
},
|
|
126
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
127
|
-
"&.Mui-disabled": {
|
|
128
|
-
backgroundColor: a(r.variant, s[800]),
|
|
129
|
-
color: s[900],
|
|
130
|
-
borderColor: r.variant === "outlined" ? s[900] : "transparent"
|
|
131
|
-
}
|
|
132
|
-
})
|
|
101
|
+
...n(o, r, t)
|
|
133
102
|
}
|
|
134
103
|
},
|
|
135
104
|
{
|
|
@@ -137,22 +106,7 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
137
106
|
color: "info"
|
|
138
107
|
},
|
|
139
108
|
style: {
|
|
140
|
-
...o
|
|
141
|
-
backgroundColor: a(r.variant, d[800]),
|
|
142
|
-
color: l(r.variant, d[50], d[500]),
|
|
143
|
-
borderColor: r.variant === "outlined" ? d[500] : "transparent",
|
|
144
|
-
"&:hover": {
|
|
145
|
-
backgroundColor: a(r.variant, d[900]),
|
|
146
|
-
color: l(r.variant, d[100], d[400]),
|
|
147
|
-
borderColor: r.variant === "outlined" ? d[400] : "transparent"
|
|
148
|
-
},
|
|
149
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
150
|
-
"&.Mui-disabled": {
|
|
151
|
-
backgroundColor: a(r.variant, d[800]),
|
|
152
|
-
color: d[900],
|
|
153
|
-
borderColor: r.variant === "outlined" ? d[900] : "transparent"
|
|
154
|
-
}
|
|
155
|
-
})
|
|
109
|
+
...n(o, r, v)
|
|
156
110
|
}
|
|
157
111
|
},
|
|
158
112
|
{
|
|
@@ -160,22 +114,7 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
160
114
|
color: "warning"
|
|
161
115
|
},
|
|
162
116
|
style: {
|
|
163
|
-
...o
|
|
164
|
-
backgroundColor: a(r.variant, t[800]),
|
|
165
|
-
color: l(r.variant, t[50], t[500]),
|
|
166
|
-
borderColor: r.variant === "outlined" ? t[500] : "transparent",
|
|
167
|
-
"&:hover": {
|
|
168
|
-
backgroundColor: a(r.variant, t[900]),
|
|
169
|
-
color: l(r.variant, t[100], t[400]),
|
|
170
|
-
borderColor: r.variant === "outlined" ? t[400] : "transparent"
|
|
171
|
-
},
|
|
172
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
173
|
-
"&.Mui-disabled": {
|
|
174
|
-
backgroundColor: a(r.variant, t[800]),
|
|
175
|
-
color: t[900],
|
|
176
|
-
borderColor: r.variant === "outlined" ? t[900] : "transparent"
|
|
177
|
-
}
|
|
178
|
-
})
|
|
117
|
+
...n(o, r, b)
|
|
179
118
|
}
|
|
180
119
|
}
|
|
181
120
|
]
|
|
@@ -183,5 +122,5 @@ const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
183
122
|
}
|
|
184
123
|
};
|
|
185
124
|
export {
|
|
186
|
-
|
|
125
|
+
g as MuiButton
|
|
187
126
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as l } from "../../createSvgIcon-9XY7lJan.js";
|
|
3
3
|
import { brand as r, gray as e } from "../theme-primitives.js";
|
|
4
4
|
import { o as p } from "../../outlinedInputClasses-Cor6Mcxo.js";
|
|
5
|
-
import { g as
|
|
5
|
+
import { g as n } from "../../generateUtilityClasses-D-O3RBPF.js";
|
|
6
6
|
import { s } from "../../svgIconClasses-BYFQaEQ7.js";
|
|
7
7
|
import { a as t } from "../../colorManipulator-CPZHCebU.js";
|
|
8
|
-
const u = l(/* @__PURE__ */
|
|
8
|
+
const u = l(/* @__PURE__ */ i.jsx("path", {
|
|
9
9
|
d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
10
|
-
}), "CheckBoxOutlineBlankRounded"), c = l(/* @__PURE__ */
|
|
10
|
+
}), "CheckBoxOutlineBlankRounded"), c = l(/* @__PURE__ */ i.jsx("path", {
|
|
11
11
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
12
|
-
}), "CheckRounded"), b = l(/* @__PURE__ */
|
|
12
|
+
}), "CheckRounded"), b = l(/* @__PURE__ */ i.jsx("path", {
|
|
13
13
|
d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"
|
|
14
|
-
}), "RemoveRounded"), g =
|
|
14
|
+
}), "RemoveRounded"), g = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), C = {
|
|
15
15
|
MuiButtonBase: {
|
|
16
16
|
defaultProps: {
|
|
17
17
|
disableTouchRipple: !0,
|
|
@@ -63,6 +63,8 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
63
63
|
size: "small"
|
|
64
64
|
},
|
|
65
65
|
style: {
|
|
66
|
+
width: "2.25rem",
|
|
67
|
+
height: "2.25rem",
|
|
66
68
|
[`& .${s.root}`]: { fontSize: "1rem" }
|
|
67
69
|
}
|
|
68
70
|
},
|
|
@@ -71,6 +73,8 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
71
73
|
size: "medium"
|
|
72
74
|
},
|
|
73
75
|
style: {
|
|
76
|
+
width: "2.5rem",
|
|
77
|
+
height: "2.5rem",
|
|
74
78
|
[`& .${s.root}`]: { fontSize: "1.25rem" }
|
|
75
79
|
}
|
|
76
80
|
},
|
|
@@ -79,6 +83,8 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
79
83
|
size: "large"
|
|
80
84
|
},
|
|
81
85
|
style: {
|
|
86
|
+
width: "2.75rem",
|
|
87
|
+
height: "2.75rem",
|
|
82
88
|
[`& .${s.root}`]: { fontSize: "1.5rem" }
|
|
83
89
|
}
|
|
84
90
|
}
|
|
@@ -91,11 +97,11 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
91
97
|
root: ({ theme: o }) => ({
|
|
92
98
|
borderRadius: "10px",
|
|
93
99
|
boxShadow: `0 4px 16px ${t(e[400], 0.2)}`,
|
|
94
|
-
[`& .${
|
|
100
|
+
[`& .${d.selected}`]: {
|
|
95
101
|
color: r[500]
|
|
96
102
|
},
|
|
97
103
|
...o.applyStyles("dark", {
|
|
98
|
-
[`& .${
|
|
104
|
+
[`& .${d.selected}`]: {
|
|
99
105
|
color: "#fff"
|
|
100
106
|
},
|
|
101
107
|
boxShadow: `0 4px 16px ${t(r[700], 0.5)}`
|
|
@@ -123,9 +129,9 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
123
129
|
MuiCheckbox: {
|
|
124
130
|
defaultProps: {
|
|
125
131
|
disableRipple: !0,
|
|
126
|
-
icon: /* @__PURE__ */
|
|
127
|
-
checkedIcon: /* @__PURE__ */
|
|
128
|
-
indeterminateIcon: /* @__PURE__ */
|
|
132
|
+
icon: /* @__PURE__ */ i.jsx(u, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
133
|
+
checkedIcon: /* @__PURE__ */ i.jsx(c, { sx: { height: 14, width: 14 } }),
|
|
134
|
+
indeterminateIcon: /* @__PURE__ */ i.jsx(b, { sx: { height: 14, width: 14 } })
|
|
129
135
|
},
|
|
130
136
|
styleOverrides: {
|
|
131
137
|
root: ({ theme: o }) => ({
|
|
@@ -213,7 +219,7 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
213
219
|
},
|
|
214
220
|
MuiOutlinedInput: {
|
|
215
221
|
styleOverrides: {
|
|
216
|
-
input: ({ ownerState: o, theme:
|
|
222
|
+
input: ({ ownerState: o, theme: a }) => ({
|
|
217
223
|
padding: 0,
|
|
218
224
|
...o.type === "number" && {
|
|
219
225
|
// Remove spinner buttons (cross-browser)
|
|
@@ -225,10 +231,10 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
225
231
|
// Firefox
|
|
226
232
|
},
|
|
227
233
|
"&:-webkit-autofill": {
|
|
228
|
-
boxShadow: `${(
|
|
234
|
+
boxShadow: `${(a.vars || a).palette.background.default} 0px 0px 0px 100px inset !important`
|
|
229
235
|
},
|
|
230
236
|
"&:-moz-autofill": {
|
|
231
|
-
boxShadow: `${(
|
|
237
|
+
boxShadow: `${(a.vars || a).palette.background.default} 0px 0px 0px 100px inset !important`
|
|
232
238
|
}
|
|
233
239
|
}),
|
|
234
240
|
root: ({ theme: o }) => ({
|
|
@@ -294,5 +300,5 @@ const u = l(/* @__PURE__ */ a.jsx("path", {
|
|
|
294
300
|
}
|
|
295
301
|
};
|
|
296
302
|
export {
|
|
297
|
-
|
|
303
|
+
C as inputsCustomizations
|
|
298
304
|
};
|