@zesty-io/material 0.4.0 → 0.5.1
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/es/theme/index.js +32 -1
- package/package.json +1 -1
package/es/theme/index.js
CHANGED
|
@@ -41,6 +41,14 @@ theme = createTheme(theme, {
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
MuiButton: {
|
|
44
|
+
variants: [
|
|
45
|
+
{
|
|
46
|
+
props: { size: 'xsmall' },
|
|
47
|
+
style: {
|
|
48
|
+
padding: "2px 10px",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
44
52
|
styleOverrides: {
|
|
45
53
|
root: {
|
|
46
54
|
textTransform: 'none',
|
|
@@ -64,6 +72,20 @@ theme = createTheme(theme, {
|
|
|
64
72
|
disableElevation: true,
|
|
65
73
|
},
|
|
66
74
|
},
|
|
75
|
+
MuiButtonGroup: {
|
|
76
|
+
defaultProps: {
|
|
77
|
+
disableElevation: true,
|
|
78
|
+
},
|
|
79
|
+
styleOverrides: {
|
|
80
|
+
groupedContained: {
|
|
81
|
+
color: theme.palette.primary.main,
|
|
82
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
83
|
+
'&:hover': {
|
|
84
|
+
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
},
|
|
67
89
|
MuiOutlinedInput: {
|
|
68
90
|
styleOverrides: {
|
|
69
91
|
root: {
|
|
@@ -199,7 +221,16 @@ theme = createTheme(theme, {
|
|
|
199
221
|
styleOverrides: {
|
|
200
222
|
root: {
|
|
201
223
|
borderRadius: '4px',
|
|
202
|
-
}
|
|
224
|
+
},
|
|
225
|
+
colorDefault: {
|
|
226
|
+
backgroundColor: theme.palette.grey[100],
|
|
227
|
+
':hover': {
|
|
228
|
+
backgroundColor: theme.palette.grey[200],
|
|
229
|
+
},
|
|
230
|
+
':focus': {
|
|
231
|
+
backgroundColor: theme.palette.grey[300],
|
|
232
|
+
}
|
|
233
|
+
},
|
|
203
234
|
}
|
|
204
235
|
},
|
|
205
236
|
MuiAlert: {
|