@zesty-io/material 0.5.2 → 0.5.4
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/icons/Database.js +1 -1
- package/es/theme/index.d.ts +2 -2
- package/es/theme/index.js +116 -78
- package/package.json +1 -1
package/es/icons/Database.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SvgIcon } from "@mui/material";
|
|
3
|
-
export const Database = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "
|
|
3
|
+
export const Database = (props) => (_jsx(SvgIcon, { ...props, children: _jsx("path", { d: "M12 11C9.31667 11 7.14583 10.5917 5.4875 9.775C3.82917 8.95833 3 8.03333 3 7C3 5.95 3.82917 5.02083 5.4875 4.2125C7.14583 3.40417 9.31667 3 12 3C14.6833 3 16.8542 3.40417 18.5125 4.2125C20.1708 5.02083 21 5.95 21 7C21 8.03333 20.1708 8.95833 18.5125 9.775C16.8542 10.5917 14.6833 11 12 11ZM12 16C9.56667 16 7.45833 15.6333 5.675 14.9C3.89167 14.1667 3 13.2833 3 12.25V9.75C3 10.4 3.3125 10.9625 3.9375 11.4375C4.5625 11.9125 5.3375 12.3042 6.2625 12.6125C7.1875 12.9208 8.17083 13.1458 9.2125 13.2875C10.2542 13.4292 11.1833 13.5 12 13.5C12.8333 13.5 13.7667 13.4292 14.8 13.2875C15.8333 13.1458 16.8125 12.925 17.7375 12.625C18.6625 12.325 19.4375 11.9375 20.0625 11.4625C20.6875 10.9875 21 10.4167 21 9.75V12.25C21 13.2833 20.1083 14.1667 18.325 14.9C16.5417 15.6333 14.4333 16 12 16ZM12 21C9.56667 21 7.45833 20.6333 5.675 19.9C3.89167 19.1667 3 18.2833 3 17.25V14.75C3 15.4 3.3125 15.9625 3.9375 16.4375C4.5625 16.9125 5.3375 17.3042 6.2625 17.6125C7.1875 17.9208 8.17083 18.1458 9.2125 18.2875C10.2542 18.4292 11.1833 18.5 12 18.5C12.8333 18.5 13.7667 18.4292 14.8 18.2875C15.8333 18.1458 16.8125 17.925 17.7375 17.625C18.6625 17.325 19.4375 16.9375 20.0625 16.4625C20.6875 15.9875 21 15.4167 21 14.75V17.25C21 18.2833 20.1083 19.1667 18.325 19.9C16.5417 20.6333 14.4333 21 12 21Z", fill: "currentcolor" }) }));
|
package/es/theme/index.d.ts
CHANGED
package/es/theme/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import palette from
|
|
2
|
-
import typography from
|
|
3
|
-
import { alpha, createTheme
|
|
1
|
+
import palette from "./palette";
|
|
2
|
+
import typography from "./typography";
|
|
3
|
+
import { alpha, createTheme } from "@mui/material/styles";
|
|
4
4
|
let theme = createTheme({
|
|
5
5
|
palette,
|
|
6
6
|
typography,
|
|
@@ -43,7 +43,7 @@ theme = createTheme(theme, {
|
|
|
43
43
|
MuiButton: {
|
|
44
44
|
variants: [
|
|
45
45
|
{
|
|
46
|
-
props: { size:
|
|
46
|
+
props: { size: "xsmall" },
|
|
47
47
|
style: {
|
|
48
48
|
padding: "2px 10px",
|
|
49
49
|
},
|
|
@@ -51,10 +51,10 @@ theme = createTheme(theme, {
|
|
|
51
51
|
],
|
|
52
52
|
styleOverrides: {
|
|
53
53
|
root: {
|
|
54
|
-
textTransform:
|
|
54
|
+
textTransform: "none",
|
|
55
55
|
},
|
|
56
56
|
sizeSmall: {
|
|
57
|
-
fontSize:
|
|
57
|
+
fontSize: "14px",
|
|
58
58
|
},
|
|
59
59
|
outlinedInherit: {
|
|
60
60
|
color: theme.palette.text.secondary,
|
|
@@ -66,7 +66,7 @@ theme = createTheme(theme, {
|
|
|
66
66
|
},
|
|
67
67
|
textInherit: {
|
|
68
68
|
color: theme.palette.text.secondary,
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
},
|
|
71
71
|
defaultProps: {
|
|
72
72
|
disableElevation: true,
|
|
@@ -80,26 +80,26 @@ theme = createTheme(theme, {
|
|
|
80
80
|
groupedContained: {
|
|
81
81
|
color: theme.palette.primary.main,
|
|
82
82
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),
|
|
83
|
-
|
|
83
|
+
"&:hover": {
|
|
84
84
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
85
85
|
},
|
|
86
|
-
}
|
|
86
|
+
},
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
MuiOutlinedInput: {
|
|
90
90
|
styleOverrides: {
|
|
91
91
|
root: {
|
|
92
92
|
padding: "0px 8px",
|
|
93
|
-
borderRadius:
|
|
93
|
+
borderRadius: "8px",
|
|
94
94
|
},
|
|
95
95
|
input: {
|
|
96
96
|
padding: "10px 0px",
|
|
97
|
-
|
|
97
|
+
":read-only": {
|
|
98
98
|
color: theme.palette.text.secondary,
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
101
|
sizeSmall: {
|
|
102
|
-
|
|
102
|
+
input: {
|
|
103
103
|
padding: "8px 0px",
|
|
104
104
|
},
|
|
105
105
|
},
|
|
@@ -107,82 +107,82 @@ theme = createTheme(theme, {
|
|
|
107
107
|
// Important to override all pseudo classes
|
|
108
108
|
borderColor: `${theme.palette.border} !important`,
|
|
109
109
|
},
|
|
110
|
-
}
|
|
110
|
+
},
|
|
111
111
|
},
|
|
112
112
|
MuiInputBase: {
|
|
113
113
|
styleOverrides: {
|
|
114
114
|
input: {
|
|
115
115
|
...theme.typography.body2,
|
|
116
|
-
|
|
117
|
-
color: theme.palette.text.disabled
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
116
|
+
"::placeholder": {
|
|
117
|
+
color: theme.palette.text.disabled,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
121
|
},
|
|
122
122
|
MuiInputLabel: {
|
|
123
123
|
styleOverrides: {
|
|
124
124
|
root: {
|
|
125
125
|
...theme.typography.body2,
|
|
126
126
|
color: theme.palette.text.primary,
|
|
127
|
-
marginBottom:
|
|
127
|
+
marginBottom: "4px",
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
131
|
MuiInputAdornment: {
|
|
132
132
|
styleOverrides: {
|
|
133
133
|
root: {
|
|
134
|
-
|
|
135
|
-
margin:
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
134
|
+
"& > .MuiSvgIcon-root": {
|
|
135
|
+
margin: "4px",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
139
|
},
|
|
140
140
|
MuiIconButton: {
|
|
141
141
|
styleOverrides: {
|
|
142
142
|
sizeSmall: {
|
|
143
|
-
padding:
|
|
144
|
-
}
|
|
145
|
-
}
|
|
143
|
+
padding: "4px",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
146
|
},
|
|
147
147
|
MuiDialog: {
|
|
148
148
|
styleOverrides: {
|
|
149
149
|
paperWidthXs: {
|
|
150
|
-
width:
|
|
151
|
-
maxWidth:
|
|
152
|
-
}
|
|
153
|
-
}
|
|
150
|
+
width: "480px",
|
|
151
|
+
maxWidth: "480px",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
154
|
},
|
|
155
155
|
MuiDialogTitle: {
|
|
156
156
|
styleOverrides: {
|
|
157
157
|
root: {
|
|
158
158
|
...theme.typography.h5,
|
|
159
159
|
fontWeight: 600,
|
|
160
|
-
padding:
|
|
161
|
-
}
|
|
162
|
-
}
|
|
160
|
+
padding: "20px",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
163
|
},
|
|
164
164
|
MuiDialogContent: {
|
|
165
165
|
styleOverrides: {
|
|
166
166
|
root: {
|
|
167
|
-
padding:
|
|
167
|
+
padding: "20px",
|
|
168
168
|
paddingTop: 0,
|
|
169
|
-
}
|
|
170
|
-
}
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
171
|
},
|
|
172
172
|
MuiDialogContentText: {
|
|
173
173
|
styleOverrides: {
|
|
174
174
|
root: {
|
|
175
175
|
...theme.typography.body2,
|
|
176
|
-
}
|
|
177
|
-
}
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
178
|
},
|
|
179
179
|
MuiDialogActions: {
|
|
180
180
|
styleOverrides: {
|
|
181
181
|
root: {
|
|
182
|
-
padding:
|
|
182
|
+
padding: "20px",
|
|
183
183
|
paddingTop: 0,
|
|
184
|
-
}
|
|
185
|
-
}
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
186
|
},
|
|
187
187
|
MuiBackdrop: {
|
|
188
188
|
styleOverrides: {
|
|
@@ -190,106 +190,144 @@ theme = createTheme(theme, {
|
|
|
190
190
|
backgroundColor: alpha(theme.palette.grey[900], 0.5),
|
|
191
191
|
},
|
|
192
192
|
invisible: {
|
|
193
|
-
backgroundColor:
|
|
194
|
-
}
|
|
193
|
+
backgroundColor: "transparent",
|
|
194
|
+
},
|
|
195
195
|
},
|
|
196
196
|
},
|
|
197
197
|
MuiMenu: {
|
|
198
198
|
styleOverrides: {
|
|
199
199
|
list: {
|
|
200
|
-
minWidth:
|
|
201
|
-
}
|
|
200
|
+
minWidth: "240px",
|
|
201
|
+
},
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
204
|
MuiAccordion: {
|
|
205
205
|
styleOverrides: {
|
|
206
206
|
root: {
|
|
207
|
-
|
|
207
|
+
"&:before": {
|
|
208
208
|
backgroundColor: theme.palette.border,
|
|
209
209
|
},
|
|
210
|
-
}
|
|
210
|
+
},
|
|
211
211
|
},
|
|
212
212
|
},
|
|
213
213
|
MuiSlider: {
|
|
214
214
|
styleOverrides: {
|
|
215
215
|
rail: {
|
|
216
216
|
backgroundColor: theme.palette.grey[400],
|
|
217
|
-
}
|
|
218
|
-
}
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
219
|
},
|
|
220
220
|
MuiChip: {
|
|
221
221
|
styleOverrides: {
|
|
222
222
|
root: {
|
|
223
|
-
borderRadius:
|
|
223
|
+
borderRadius: "4px",
|
|
224
224
|
},
|
|
225
225
|
colorDefault: {
|
|
226
226
|
backgroundColor: theme.palette.grey[100],
|
|
227
|
-
|
|
227
|
+
":hover": {
|
|
228
228
|
backgroundColor: theme.palette.grey[200],
|
|
229
229
|
},
|
|
230
|
-
|
|
230
|
+
":focus": {
|
|
231
231
|
backgroundColor: theme.palette.grey[300],
|
|
232
|
-
}
|
|
232
|
+
},
|
|
233
233
|
},
|
|
234
|
-
}
|
|
234
|
+
},
|
|
235
235
|
},
|
|
236
236
|
MuiAlert: {
|
|
237
237
|
styleOverrides: {
|
|
238
238
|
icon: {
|
|
239
|
-
alignSelf:
|
|
239
|
+
alignSelf: "center",
|
|
240
240
|
},
|
|
241
241
|
standardWarning: {
|
|
242
|
-
|
|
242
|
+
" .MuiAlert-icon": {
|
|
243
243
|
color: theme.palette.common.black,
|
|
244
|
-
}
|
|
244
|
+
},
|
|
245
245
|
},
|
|
246
|
-
}
|
|
246
|
+
},
|
|
247
247
|
},
|
|
248
248
|
MuiDataGrid: {
|
|
249
249
|
styleOverrides: {
|
|
250
250
|
root: {
|
|
251
251
|
borderColor: theme.palette.border,
|
|
252
|
-
borderRadius:
|
|
252
|
+
borderRadius: "8px",
|
|
253
253
|
},
|
|
254
254
|
cell: {
|
|
255
255
|
borderColor: theme.palette.border,
|
|
256
256
|
},
|
|
257
257
|
columnHeaders: {
|
|
258
258
|
borderColor: theme.palette.border,
|
|
259
|
-
}
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
MuiFab: {
|
|
263
|
+
styleOverrides: {
|
|
264
|
+
root: {
|
|
265
|
+
boxShadow: "none",
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
MuiSpeedDial: {
|
|
270
|
+
styleOverrides: {
|
|
271
|
+
actions: {
|
|
272
|
+
paddingTop: "38px !important",
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
MuiSpeedDialAction: {
|
|
277
|
+
styleOverrides: {
|
|
278
|
+
fab: {
|
|
279
|
+
marginTop: "6px",
|
|
280
|
+
marginBottom: "6px",
|
|
281
|
+
},
|
|
282
|
+
staticTooltipLabel: {
|
|
283
|
+
...theme.typography.body2,
|
|
284
|
+
fontWeight: 500,
|
|
285
|
+
color: theme.palette.common.white,
|
|
286
|
+
backgroundColor: "transparent",
|
|
287
|
+
whiteSpace: "nowrap",
|
|
288
|
+
boxShadow: "none",
|
|
289
|
+
paddingRight: 0,
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
MuiListItemButton: {
|
|
294
|
+
styleOverrides: {
|
|
295
|
+
divider: {
|
|
296
|
+
borderColor: theme.palette.border,
|
|
297
|
+
},
|
|
260
298
|
},
|
|
261
299
|
},
|
|
262
300
|
MuiTreeItem: {
|
|
263
301
|
styleOverrides: {
|
|
264
302
|
content: {
|
|
265
|
-
paddingTop:
|
|
266
|
-
paddingBottom:
|
|
303
|
+
paddingTop: "6px",
|
|
304
|
+
paddingBottom: "6px",
|
|
267
305
|
paddingLeft: 0,
|
|
268
|
-
paddingRight:
|
|
306
|
+
paddingRight: "12px",
|
|
269
307
|
borderRadius: 4,
|
|
270
308
|
width: "unset",
|
|
271
|
-
|
|
309
|
+
"&.Mui-selected": {
|
|
272
310
|
background: alpha(theme.palette.primary.main, 0.04),
|
|
273
|
-
|
|
311
|
+
" .MuiTreeItem-label .MuiSvgIcon-root": {
|
|
274
312
|
color: theme.palette.primary.main,
|
|
275
313
|
},
|
|
276
|
-
|
|
314
|
+
" .MuiTypography-root": {
|
|
277
315
|
color: theme.palette.primary.dark,
|
|
278
|
-
}
|
|
279
|
-
}
|
|
316
|
+
},
|
|
317
|
+
},
|
|
280
318
|
},
|
|
281
319
|
label: {
|
|
282
|
-
paddingLeft:
|
|
320
|
+
paddingLeft: "0",
|
|
283
321
|
},
|
|
284
322
|
iconContainer: {
|
|
285
|
-
marginRight:
|
|
286
|
-
width:
|
|
287
|
-
|
|
288
|
-
fontSize:
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
323
|
+
marginRight: "0",
|
|
324
|
+
width: "24px",
|
|
325
|
+
svg: {
|
|
326
|
+
fontSize: "24px",
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
},
|
|
293
331
|
},
|
|
294
332
|
});
|
|
295
333
|
export default theme;
|