@solostylist/ui-kit 1.0.223 → 1.0.224
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/{checkbox-PlpiwQNi.js → checkbox-B95Vlykq.js} +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
- package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-DKGeMh55.js} +98 -98
- package/dist/s-countdown/index.d.ts +2 -2
- package/dist/s-countdown/index.js +1 -1
- package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
- package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-BkZIEZoz.js +634 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
- package/dist/s-dialog-confirm/s-dialog-confirm.js +0 -1
- package/dist/s-glow-button/s-glow-button.d.ts +1 -1
- package/dist/s-glow-button/s-glow-button.js +18 -19
- package/dist/s-nav-item/index.d.ts +0 -1
- package/dist/s-nav-item/index.js +1 -2
- package/dist/s-nav-items/index.d.ts +2 -0
- package/dist/s-nav-items/index.js +2 -0
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +3 -3
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
- package/dist/s-text-editor/s-text-editor.js +30 -31
- package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
- package/dist/s-theme-provider/s-theme-provider.js +32 -26
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DGfyNoYW.js} +142 -143
- package/dist/theme/components/accordion-summary.d.ts +385 -385
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.d.ts +1524 -1524
- package/dist/theme/components/alert.js +15 -22
- package/dist/theme/components/app-bar.d.ts +2 -2
- package/dist/theme/components/button.d.ts +2282 -2282
- package/dist/theme/components/button.js +40 -42
- package/dist/theme/components/card.d.ts +767 -767
- package/dist/theme/components/card.js +1 -1
- package/dist/theme/components/checkbox.d.ts +381 -381
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +65 -52
- package/dist/theme/components/components.js +3 -3
- package/dist/theme/components/form-label.d.ts +2 -2
- package/dist/theme/components/icon-button.d.ts +2294 -2294
- package/dist/theme/components/icon-button.js +31 -29
- package/dist/theme/components/linear-progress.d.ts +382 -382
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +1 -1
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/outlined-input.js +1 -1
- package/dist/theme/components/pagination-item.d.ts +385 -385
- package/dist/theme/components/step-icon.d.ts +383 -383
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/step-label.d.ts +384 -384
- package/dist/theme/components/tab.d.ts +384 -384
- package/dist/theme/components/tabs.d.ts +386 -386
- package/dist/theme/components/toggle-button-group.d.ts +383 -383
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +385 -385
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/theme-primitives.d.ts +132 -0
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/theme/utils.d.ts +11 -0
- package/dist/theme/utils.js +4 -0
- package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
- package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
- package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
- package/package.json +1 -1
- package/dist/s-date-picker-Mynq297P.js +0 -634
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { _ as e, a as t, c as n, f as r, g as i, h as a, l as o, m as s, o as c, p as l, u, v as d } from "../../theme-primitives-OrQ-xFJR.js";
|
|
2
1
|
//#region lib/theme/components/button.tsx
|
|
3
|
-
var
|
|
2
|
+
var e = (e, t) => e === "text" || e === "outlined" ? "transparent" : t, t = (e, t, n) => e === "text" || e === "outlined" ? n : t, n = (e, t) => {
|
|
4
3
|
let n = (e.vars ?? e).palette;
|
|
5
4
|
return t === "outlined" ? {
|
|
6
5
|
backgroundColor: "transparent",
|
|
@@ -18,83 +17,82 @@ var f = (e, t) => e === "text" || e === "outlined" ? "transparent" : t, p = (e,
|
|
|
18
17
|
borderColor: "transparent",
|
|
19
18
|
opacity: 1
|
|
20
19
|
};
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
color: p(t.variant, n[100], n[600]),
|
|
28
|
-
borderColor: t.variant === "outlined" ? n[400] : "transparent"
|
|
29
|
-
},
|
|
30
|
-
"&:active": { filter: "brightness(1.1)" },
|
|
31
|
-
"&.Mui-disabled": { ...m(e, t.variant) },
|
|
32
|
-
"&.MuiButton-loading": {
|
|
33
|
-
color: p(t.variant, n[50], n[500]),
|
|
34
|
-
"& .MuiButton-loadingIndicator": { color: p(t.variant, n[50], n[500]) }
|
|
35
|
-
},
|
|
36
|
-
...e.applyStyles("dark", {
|
|
37
|
-
backgroundColor: f(t.variant, r[800]),
|
|
38
|
-
color: p(t.variant, r[100], r[500]),
|
|
39
|
-
borderColor: t.variant === "outlined" ? r[800] : "transparent",
|
|
20
|
+
}, r = (r, i, a) => {
|
|
21
|
+
let o = (r.vars ?? r).palette[a];
|
|
22
|
+
return {
|
|
23
|
+
backgroundColor: e(i.variant, o[800]),
|
|
24
|
+
color: t(i.variant, o[50], o[800]),
|
|
25
|
+
borderColor: i.variant === "outlined" ? o[700] : "transparent",
|
|
40
26
|
"&:hover": {
|
|
41
|
-
backgroundColor:
|
|
42
|
-
color:
|
|
43
|
-
borderColor:
|
|
27
|
+
backgroundColor: e(i.variant, o[900]),
|
|
28
|
+
color: t(i.variant, o[100], o[900]),
|
|
29
|
+
borderColor: i.variant === "outlined" ? o[800] : "transparent"
|
|
44
30
|
},
|
|
45
31
|
"&:active": { filter: "brightness(1.1)" },
|
|
46
|
-
"&.Mui-disabled": { ...
|
|
32
|
+
"&.Mui-disabled": { ...n(r, i.variant) },
|
|
47
33
|
"&.MuiButton-loading": {
|
|
48
|
-
color:
|
|
49
|
-
"& .MuiButton-loadingIndicator": { color:
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
color: t(i.variant, o[50], o[800]),
|
|
35
|
+
"& .MuiButton-loadingIndicator": { color: t(i.variant, o[50], o[800]) }
|
|
36
|
+
},
|
|
37
|
+
...r.applyStyles("dark", {
|
|
38
|
+
color: t(i.variant, o[100], o[300]),
|
|
39
|
+
borderColor: i.variant === "outlined" ? o[400] : "transparent",
|
|
40
|
+
"&:hover": {
|
|
41
|
+
color: t(i.variant, o[50], o[200]),
|
|
42
|
+
borderColor: i.variant === "outlined" ? o[300] : "transparent"
|
|
43
|
+
},
|
|
44
|
+
"&.MuiButton-loading": {
|
|
45
|
+
color: t(i.variant, o[100], o[300]),
|
|
46
|
+
"& .MuiButton-loadingIndicator": { color: t(i.variant, o[100], o[300]) }
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
};
|
|
50
|
+
}, i = {
|
|
53
51
|
defaultProps: { variant: "contained" },
|
|
54
|
-
styleOverrides: { root: ({ theme:
|
|
52
|
+
styleOverrides: { root: ({ theme: e, ownerState: t }) => ({
|
|
55
53
|
boxShadow: "none",
|
|
56
|
-
borderRadius: (
|
|
54
|
+
borderRadius: (e.vars ?? e).shape.borderRadius,
|
|
57
55
|
textTransform: "none",
|
|
58
56
|
transition: "all 0.2s ease-in-out",
|
|
59
57
|
variants: [
|
|
60
58
|
{
|
|
61
59
|
props: { size: "small" },
|
|
62
|
-
style: { height:
|
|
60
|
+
style: { height: e.spacing(4.5) }
|
|
63
61
|
},
|
|
64
62
|
{
|
|
65
63
|
props: { size: "medium" },
|
|
66
|
-
style: { height:
|
|
64
|
+
style: { height: e.spacing(5) }
|
|
67
65
|
},
|
|
68
66
|
{
|
|
69
67
|
props: { size: "large" },
|
|
70
|
-
style: { height:
|
|
68
|
+
style: { height: e.spacing(5.5) }
|
|
71
69
|
},
|
|
72
70
|
{
|
|
73
71
|
props: { color: "primary" },
|
|
74
|
-
style: { ...
|
|
72
|
+
style: { ...r(e, t, "primary") }
|
|
75
73
|
},
|
|
76
74
|
{
|
|
77
75
|
props: { color: "secondary" },
|
|
78
|
-
style: { ...
|
|
76
|
+
style: { ...r(e, t, "secondary") }
|
|
79
77
|
},
|
|
80
78
|
{
|
|
81
79
|
props: { color: "success" },
|
|
82
|
-
style: { ...
|
|
80
|
+
style: { ...r(e, t, "success") }
|
|
83
81
|
},
|
|
84
82
|
{
|
|
85
83
|
props: { color: "error" },
|
|
86
|
-
style: { ...
|
|
84
|
+
style: { ...r(e, t, "error") }
|
|
87
85
|
},
|
|
88
86
|
{
|
|
89
87
|
props: { color: "info" },
|
|
90
|
-
style: { ...
|
|
88
|
+
style: { ...r(e, t, "info") }
|
|
91
89
|
},
|
|
92
90
|
{
|
|
93
91
|
props: { color: "warning" },
|
|
94
|
-
style: { ...
|
|
92
|
+
style: { ...r(e, t, "warning") }
|
|
95
93
|
}
|
|
96
94
|
]
|
|
97
95
|
}) }
|
|
98
96
|
};
|
|
99
97
|
//#endregion
|
|
100
|
-
export {
|
|
98
|
+
export { i as MuiButton };
|