@solostylist/ui-kit 1.0.222 → 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-DMsuLF8N.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-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-DH_7P3Il.js → s-accordion-CXHBadZ_.js} +1 -1
- package/dist/s-autocomplete/s-autocomplete.d.ts +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.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-B0gdPa1c.js → s-chat-input-DKGeMh55.js} +98 -98
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-DVfbqSAQ.js → s-chat-message-ox4Sj6xh.js} +2 -2
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-CHIgPLsL.js → s-code-block-sjt0AQb_.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-DuJPcZFR.js → s-comment-message-DzjXXLZQ.js} +2 -2
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- 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.d.ts +1 -1
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.d.ts +19 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/s-data-table-TrCdKq9r.js +923 -0
- 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/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -2
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -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-image-modal/index.js +1 -1
- package/dist/s-image-modal/s-image-modal.js +1 -1
- package/dist/{s-image-modal-DxwMFMNS.js → s-image-modal-DA3DBNbv.js} +2 -2
- package/dist/s-label/s-label.js +1 -1
- 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 +4 -4
- 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-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-Ca6JUgGr.js → s-review-D4FBfBPF.js} +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-stripe/s-stripe.d.ts +1 -1
- package/dist/s-stripe/s-stripe.js +5 -4
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +30 -31
- package/dist/{s-text-editor-toolbar-BnhPG9xv.js → s-text-editor-toolbar-CCK7yyNS.js} +1 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-BHyjzAU0.js → s-theme-demo-THHj5mFp.js} +3 -3
- 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-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- 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-Du66wRC2.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/avatar.js +1 -1
- 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 +4 -4
- 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-data-table-xIW-BAS9.js +0 -880
- package/dist/s-date-picker-Mynq297P.js +0 -634
- /package/dist/{ArrowUpward-BbQSKheQ.js → ArrowUpward-BMKLosZj.js} +0 -0
- /package/dist/{ChevronRight-DHulYS1l.js → ChevronRight-OLNOfW9P.js} +0 -0
- /package/dist/{Close-oXeOGTZb.js → Close-Bj2HYB9Q.js} +0 -0
- /package/dist/{ContentCopy-Bh_TA5Eo.js → ContentCopy-Br2p19dq.js} +0 -0
- /package/dist/{Download-DMm8oiCF.js → Download-BhSXOhCI.js} +0 -0
- /package/dist/{ExpandMore-DsZNN1Eh.js → ExpandMore-Bu7_1g6Q.js} +0 -0
- /package/dist/{Favorite-DIml4fHR.js → Favorite-BJSuHe0H.js} +0 -0
- /package/dist/{InfoOutlined-CqXSSVWh.js → InfoOutlined-C1AW3f5V.js} +0 -0
- /package/dist/{avatar-BQf6phmU.js → avatar-BuMhUthq.js} +0 -0
- /package/dist/{s-chips-BuAEBW1F.js → s-chips-DelHx6zM.js} +0 -0
- /package/dist/{s-file-dropzone-COPp1HiT.js → s-file-dropzone-oaQoRV92.js} +0 -0
- /package/dist/{s-select-ClL8bygg.js → s-select-b8CHbeCf.js} +0 -0
- /package/dist/{s-text-field-qps0aDNS.js → s-text-field-Ck5QMhYI.js} +0 -0
- /package/dist/{s-theme-switch-D1FpcDj1.js → s-theme-switch-V3Q58mkG.js} +0 -0
- /package/dist/{s-tip-D6M91nev.js → s-tip-Dwu5T2u0.js} +0 -0
|
@@ -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 };
|