@solostylist/ui-kit 1.0.34 → 1.0.35
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.
- package/dist/theme/components/avatar.d.ts +5 -0
- package/dist/theme/components/avatar.js +6 -3
- package/dist/theme/components/components.d.ts +28 -0
- package/dist/theme/components/components.js +9 -3
- package/dist/theme/components/rating.d.ts +7 -0
- package/dist/theme/components/rating.js +8 -0
- package/dist/theme/components/slider.d.ts +7 -0
- package/dist/theme/components/slider.js +8 -0
- package/dist/theme/components/svg-icon.d.ts +9 -0
- package/dist/theme/components/svg-icon.js +10 -0
- package/dist/theme/customizations/inputs.js +54 -34
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { j as r } from "../../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { IconUser as o } from "@tabler/icons-react";
|
|
3
|
-
const
|
|
4
|
-
defaultProps: { children: /* @__PURE__ */ r.jsx(o, {}) }
|
|
3
|
+
const t = {
|
|
4
|
+
defaultProps: { children: /* @__PURE__ */ r.jsx(o, {}) },
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
rounded: { borderRadius: 12 }
|
|
7
|
+
}
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
t as MuiAvatar
|
|
8
11
|
};
|
|
@@ -3,5 +3,33 @@ export declare const components: {
|
|
|
3
3
|
defaultProps: {
|
|
4
4
|
children: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
};
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
rounded: {
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
MuiRating: {
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
sizeSmall: {
|
|
15
|
+
fontSize: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
MuiSlider: {
|
|
20
|
+
styleOverrides: {
|
|
21
|
+
valueLabel: {
|
|
22
|
+
borderRadius: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
MuiSvgIcon: {
|
|
27
|
+
styleOverrides: {
|
|
28
|
+
root: {
|
|
29
|
+
'& .secondary': {
|
|
30
|
+
opacity: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
6
34
|
};
|
|
7
35
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { MuiAvatar as o } from "./avatar.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { MuiRating as r } from "./rating.js";
|
|
3
|
+
import { MuiSlider as i } from "./slider.js";
|
|
4
|
+
import { MuiSvgIcon as m } from "./svg-icon.js";
|
|
5
|
+
const u = {
|
|
6
|
+
MuiAvatar: o,
|
|
7
|
+
MuiRating: r,
|
|
8
|
+
MuiSlider: i,
|
|
9
|
+
MuiSvgIcon: m
|
|
4
10
|
};
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
u as components
|
|
7
13
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "../../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { c as l } from "../../createSvgIcon-GD-thYZm.js";
|
|
3
3
|
import { brand as e, gray as o } from "../theme-primitives.js";
|
|
4
|
-
import { o as
|
|
5
|
-
import { g as
|
|
4
|
+
import { o as n } from "../../outlinedInputClasses-Y-zQ9ZHZ.js";
|
|
5
|
+
import { g as i } from "../../generateUtilityClasses-CvAVhM6T.js";
|
|
6
6
|
import { s } from "../../svgIconClasses-SRBiyaM8.js";
|
|
7
|
-
import { a } from "../../createTheme-CyFSna1a.js";
|
|
8
|
-
const
|
|
7
|
+
import { a as t } from "../../createTheme-CyFSna1a.js";
|
|
8
|
+
const c = l(/* @__PURE__ */ a.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"),
|
|
10
|
+
}), "CheckBoxOutlineBlankRounded"), p = l(/* @__PURE__ */ a.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"), u = l(/* @__PURE__ */
|
|
12
|
+
}), "CheckRounded"), u = l(/* @__PURE__ */ a.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"), b =
|
|
14
|
+
}), "RemoveRounded"), b = i("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = i("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
|
|
15
15
|
MuiButtonBase: {
|
|
16
16
|
defaultProps: {
|
|
17
17
|
disableTouchRipple: !0,
|
|
@@ -22,7 +22,7 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
22
22
|
boxSizing: "border-box",
|
|
23
23
|
transition: "all 100ms ease-in",
|
|
24
24
|
"&:focus-visible": {
|
|
25
|
-
outline: `3px solid ${
|
|
25
|
+
outline: `3px solid ${t(r.palette.primary.main, 0.5)}`,
|
|
26
26
|
outlineOffset: "2px"
|
|
27
27
|
}
|
|
28
28
|
})
|
|
@@ -72,6 +72,11 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
72
72
|
"&:active": {
|
|
73
73
|
backgroundColor: o[800]
|
|
74
74
|
},
|
|
75
|
+
"&.MuiButton-loading": {
|
|
76
|
+
"& .MuiButton-loadingIndicator": {
|
|
77
|
+
color: "white"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
75
80
|
...r.applyStyles("dark", {
|
|
76
81
|
color: "black",
|
|
77
82
|
backgroundColor: o[50],
|
|
@@ -85,6 +90,11 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
85
90
|
},
|
|
86
91
|
"&:active": {
|
|
87
92
|
backgroundColor: o[400]
|
|
93
|
+
},
|
|
94
|
+
"&.MuiButton-loading": {
|
|
95
|
+
"& .MuiButton-loadingIndicator": {
|
|
96
|
+
color: "black"
|
|
97
|
+
}
|
|
88
98
|
}
|
|
89
99
|
})
|
|
90
100
|
}
|
|
@@ -97,8 +107,8 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
97
107
|
style: {
|
|
98
108
|
color: "white",
|
|
99
109
|
backgroundColor: e[300],
|
|
100
|
-
backgroundImage: `linear-gradient(to bottom, ${
|
|
101
|
-
boxShadow: `inset 0 2px 0 ${
|
|
110
|
+
backgroundImage: `linear-gradient(to bottom, ${t(e[400], 0.8)}, ${e[500]})`,
|
|
111
|
+
boxShadow: `inset 0 2px 0 ${t(e[200], 0.2)}, inset 0 -2px 0 ${t(e[700], 0.4)}`,
|
|
102
112
|
border: `1px solid ${e[500]}`,
|
|
103
113
|
"&:hover": {
|
|
104
114
|
backgroundColor: e[700],
|
|
@@ -107,6 +117,11 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
107
117
|
"&:active": {
|
|
108
118
|
backgroundColor: e[700],
|
|
109
119
|
backgroundImage: "none"
|
|
120
|
+
},
|
|
121
|
+
"&.MuiButton-loading": {
|
|
122
|
+
"& .MuiButton-loadingIndicator": {
|
|
123
|
+
color: "white"
|
|
124
|
+
}
|
|
110
125
|
}
|
|
111
126
|
}
|
|
112
127
|
},
|
|
@@ -118,7 +133,7 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
118
133
|
color: (r.vars || r).palette.text.primary,
|
|
119
134
|
border: "1px solid",
|
|
120
135
|
borderColor: o[200],
|
|
121
|
-
backgroundColor:
|
|
136
|
+
backgroundColor: t(o[50], 0.3),
|
|
122
137
|
"&:hover": {
|
|
123
138
|
backgroundColor: o[100],
|
|
124
139
|
borderColor: o[300]
|
|
@@ -126,6 +141,11 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
126
141
|
"&:active": {
|
|
127
142
|
backgroundColor: o[200]
|
|
128
143
|
},
|
|
144
|
+
"&.MuiButton-loading": {
|
|
145
|
+
"& .MuiButton-loadingIndicator": {
|
|
146
|
+
color: (r.vars || r).palette.text.primary
|
|
147
|
+
}
|
|
148
|
+
},
|
|
129
149
|
...r.applyStyles("dark", {
|
|
130
150
|
backgroundColor: o[800],
|
|
131
151
|
borderColor: o[700],
|
|
@@ -154,19 +174,19 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
154
174
|
borderColor: e[400]
|
|
155
175
|
},
|
|
156
176
|
"&:active": {
|
|
157
|
-
backgroundColor:
|
|
177
|
+
backgroundColor: t(e[200], 0.7)
|
|
158
178
|
},
|
|
159
179
|
...r.applyStyles("dark", {
|
|
160
180
|
color: e[50],
|
|
161
181
|
border: "1px solid",
|
|
162
182
|
borderColor: e[900],
|
|
163
|
-
backgroundColor:
|
|
183
|
+
backgroundColor: t(e[900], 0.3),
|
|
164
184
|
"&:hover": {
|
|
165
185
|
borderColor: e[700],
|
|
166
|
-
backgroundColor:
|
|
186
|
+
backgroundColor: t(e[900], 0.6)
|
|
167
187
|
},
|
|
168
188
|
"&:active": {
|
|
169
|
-
backgroundColor:
|
|
189
|
+
backgroundColor: t(e[900], 0.5)
|
|
170
190
|
}
|
|
171
191
|
})
|
|
172
192
|
}
|
|
@@ -189,7 +209,7 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
189
209
|
backgroundColor: o[700]
|
|
190
210
|
},
|
|
191
211
|
"&:active": {
|
|
192
|
-
backgroundColor:
|
|
212
|
+
backgroundColor: t(o[700], 0.7)
|
|
193
213
|
}
|
|
194
214
|
})
|
|
195
215
|
}
|
|
@@ -202,18 +222,18 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
202
222
|
style: {
|
|
203
223
|
color: e[700],
|
|
204
224
|
"&:hover": {
|
|
205
|
-
backgroundColor:
|
|
225
|
+
backgroundColor: t(e[100], 0.5)
|
|
206
226
|
},
|
|
207
227
|
"&:active": {
|
|
208
|
-
backgroundColor:
|
|
228
|
+
backgroundColor: t(e[200], 0.7)
|
|
209
229
|
},
|
|
210
230
|
...r.applyStyles("dark", {
|
|
211
231
|
color: e[100],
|
|
212
232
|
"&:hover": {
|
|
213
|
-
backgroundColor:
|
|
233
|
+
backgroundColor: t(e[900], 0.5)
|
|
214
234
|
},
|
|
215
235
|
"&:active": {
|
|
216
|
-
backgroundColor:
|
|
236
|
+
backgroundColor: t(e[900], 0.3)
|
|
217
237
|
}
|
|
218
238
|
})
|
|
219
239
|
}
|
|
@@ -281,7 +301,7 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
281
301
|
styleOverrides: {
|
|
282
302
|
root: ({ theme: r }) => ({
|
|
283
303
|
borderRadius: "10px",
|
|
284
|
-
boxShadow: `0 4px 16px ${
|
|
304
|
+
boxShadow: `0 4px 16px ${t(o[400], 0.2)}`,
|
|
285
305
|
[`& .${d.selected}`]: {
|
|
286
306
|
color: e[500]
|
|
287
307
|
},
|
|
@@ -289,7 +309,7 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
289
309
|
[`& .${d.selected}`]: {
|
|
290
310
|
color: "#fff"
|
|
291
311
|
},
|
|
292
|
-
boxShadow: `0 4px 16px ${
|
|
312
|
+
boxShadow: `0 4px 16px ${t(e[700], 0.5)}`
|
|
293
313
|
})
|
|
294
314
|
})
|
|
295
315
|
}
|
|
@@ -314,9 +334,9 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
314
334
|
MuiCheckbox: {
|
|
315
335
|
defaultProps: {
|
|
316
336
|
disableRipple: !0,
|
|
317
|
-
icon: /* @__PURE__ */
|
|
318
|
-
checkedIcon: /* @__PURE__ */
|
|
319
|
-
indeterminateIcon: /* @__PURE__ */
|
|
337
|
+
icon: /* @__PURE__ */ a.jsx(c, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
338
|
+
checkedIcon: /* @__PURE__ */ a.jsx(p, { sx: { height: 14, width: 14 } }),
|
|
339
|
+
indeterminateIcon: /* @__PURE__ */ a.jsx(u, { sx: { height: 14, width: 14 } })
|
|
320
340
|
},
|
|
321
341
|
styleOverrides: {
|
|
322
342
|
root: ({ theme: r }) => ({
|
|
@@ -325,15 +345,15 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
325
345
|
width: 16,
|
|
326
346
|
borderRadius: 5,
|
|
327
347
|
border: "1px solid ",
|
|
328
|
-
borderColor:
|
|
348
|
+
borderColor: t(o[300], 0.8),
|
|
329
349
|
boxShadow: "0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",
|
|
330
|
-
backgroundColor:
|
|
350
|
+
backgroundColor: t(o[100], 0.4),
|
|
331
351
|
transition: "border-color, background-color, 120ms ease-in",
|
|
332
352
|
"&:hover": {
|
|
333
353
|
borderColor: e[300]
|
|
334
354
|
},
|
|
335
355
|
"&.Mui-focusVisible": {
|
|
336
|
-
outline: `3px solid ${
|
|
356
|
+
outline: `3px solid ${t(e[500], 0.5)}`,
|
|
337
357
|
outlineOffset: "2px",
|
|
338
358
|
borderColor: e[400]
|
|
339
359
|
},
|
|
@@ -347,15 +367,15 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
347
367
|
}
|
|
348
368
|
},
|
|
349
369
|
...r.applyStyles("dark", {
|
|
350
|
-
borderColor:
|
|
370
|
+
borderColor: t(o[700], 0.8),
|
|
351
371
|
boxShadow: "0 0 0 1.5px hsl(210, 0%, 0%) inset",
|
|
352
|
-
backgroundColor:
|
|
372
|
+
backgroundColor: t(o[900], 0.8),
|
|
353
373
|
"&:hover": {
|
|
354
374
|
borderColor: e[300]
|
|
355
375
|
},
|
|
356
376
|
"&.Mui-focusVisible": {
|
|
357
377
|
borderColor: e[400],
|
|
358
|
-
outline: `3px solid ${
|
|
378
|
+
outline: `3px solid ${t(e[500], 0.5)}`,
|
|
359
379
|
outlineOffset: "2px"
|
|
360
380
|
}
|
|
361
381
|
})
|
|
@@ -399,8 +419,8 @@ const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
399
419
|
"&:hover": {
|
|
400
420
|
borderColor: o[400]
|
|
401
421
|
},
|
|
402
|
-
[`&.${
|
|
403
|
-
outline: `3px solid ${
|
|
422
|
+
[`&.${n.focused}`]: {
|
|
423
|
+
outline: `3px solid ${t(e[500], 0.5)}`,
|
|
404
424
|
borderColor: e[400]
|
|
405
425
|
},
|
|
406
426
|
...r.applyStyles("dark", {
|