@solostylist/ui-kit 1.0.81 → 1.0.82

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 u, brand as v, purple as i, green as n, red as s, blue as d, orange as t } from "../theme-primitives.js";
2
- const a = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o, r, p) => o === "text" || o === "outlined" ? p : r, b = {
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: a(r.variant, v[800]),
44
- color: l(r.variant, v[50], u[300]),
45
- borderColor: r.variant === "outlined" ? u[300] : "transparent",
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: a(r.variant, v[900]),
48
- color: l(r.variant, v[100], (o.vars || o).palette.text.primary),
49
- borderColor: r.variant === "outlined" ? (o.vars || o).palette.text.primary : "transparent"
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: a(r.variant, v[800]),
55
- color: u[700],
56
- borderColor: r.variant === "outlined" ? u[700] : "transparent"
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.applyStyles("dark", {
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.applyStyles("dark", {
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.applyStyles("dark", {
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.applyStyles("dark", {
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.applyStyles("dark", {
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
- b as MuiButton
125
+ g as MuiButton
187
126
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.81",
6
+ "version": "1.0.82",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",