@m4l/styles 0.0.13 → 0.0.15
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/config.5405b46b.js +16 -0
- package/index.js +39 -3684
- package/package.json +4 -3
- package/theme/defaultThemeOptions.364b28b6.js +30 -0
- package/theme/index.cd1bedc8.js +7 -0
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +306 -2
- package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +148 -1
- package/theme/overrides/M4LExtendedComponents/{DynamicFilter.d.ts → M4LDynamicFilter.d.ts} +45 -38
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +12 -0
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -18
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +274 -4
- package/theme/overrides/M4LExtendedComponents/index.9ef37d1d.js +1712 -0
- package/theme/overrides/M4LRHFComponents/index.5f690e33.js +350 -0
- package/theme/overrides/MUIComponents/index.56660771.js +1354 -0
- package/theme/overrides/index.19dec027.js +70 -0
- package/theme/palette.4b477f9b.js +354 -0
- package/theme/shadows.b2f38616.js +69 -0
- package/theme/typography.1db0276b.js +124 -0
- package/utils/getColorPresets.f3113d85.js +70 -0
- package/utils/getColorState.456150fd.js +136 -0
- package/utils/getFontValue.88831637.js +37 -0
- package/utils/index.d.ts +1 -0
- package/utils/useResponsive.2c45e8e0.js +16 -0
- package/utils/useResponsive.d.ts +7 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { alpha as o } from "@mui/system";
|
|
2
|
+
import { alpha as e } from "@mui/material/styles";
|
|
3
|
+
const r = (t) => ({
|
|
4
|
+
M4LRHFTextFieldPassword: {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
"&.M4LRHFTextFieldPassword-root": {
|
|
7
|
+
width: "100%"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}), l = (t) => ({
|
|
12
|
+
M4LRHFTextField: {
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
"&.M4LRHFTextField-root": {
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
17
|
+
width: "100%",
|
|
18
|
+
gap: "4px",
|
|
19
|
+
"& .M4LRHFTextField-label": {
|
|
20
|
+
color: t.palette.text.secondary,
|
|
21
|
+
transition: "all .5s ease"
|
|
22
|
+
},
|
|
23
|
+
"& .MuiInputBase-root": {
|
|
24
|
+
padding: "0px",
|
|
25
|
+
"& .MuiInputBase-input": {
|
|
26
|
+
color: t.palette.text.secondary,
|
|
27
|
+
padding: "0px",
|
|
28
|
+
backgroundColor: "transparent",
|
|
29
|
+
...t.typography.body
|
|
30
|
+
},
|
|
31
|
+
"& .MuiInputAdornment-root": {
|
|
32
|
+
margin: "0px",
|
|
33
|
+
padding: "0px"
|
|
34
|
+
},
|
|
35
|
+
"& .M4LIcon-icon": {
|
|
36
|
+
backgroundColor: t.palette.text.secondary,
|
|
37
|
+
transition: "all .3s ease"
|
|
38
|
+
},
|
|
39
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
40
|
+
border: "1px solid",
|
|
41
|
+
padding: "4px",
|
|
42
|
+
borderColor: t.palette.divider,
|
|
43
|
+
borderRadius: "4px",
|
|
44
|
+
inset: "0px",
|
|
45
|
+
transition: "all .3s ease",
|
|
46
|
+
"& legend": {
|
|
47
|
+
display: "none"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"&:hover": {
|
|
52
|
+
"& .M4LRHFTextField-label": {
|
|
53
|
+
color: t.palette.state?.hover
|
|
54
|
+
},
|
|
55
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
56
|
+
borderColor: t.palette.state?.hover,
|
|
57
|
+
boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
|
|
58
|
+
},
|
|
59
|
+
"& .MuiInputBase-input": {
|
|
60
|
+
color: t.palette.text.primary
|
|
61
|
+
},
|
|
62
|
+
"& .M4LIcon-icon": {
|
|
63
|
+
backgroundColor: t.palette.state?.hover
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"&.M4LRHFTextField-isFocus": {
|
|
67
|
+
"& .M4LRHFTextField-label": {
|
|
68
|
+
color: t.palette.state?.active
|
|
69
|
+
},
|
|
70
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
71
|
+
transition: "all .1s ease",
|
|
72
|
+
border: "2px solid",
|
|
73
|
+
borderColor: t.palette.state?.active,
|
|
74
|
+
boxShadow: `0px 1px 8px ${o(t.palette.primary.main, 0.32)}`
|
|
75
|
+
},
|
|
76
|
+
"& .MuiInputBase-input": {
|
|
77
|
+
color: t.palette.text.primary
|
|
78
|
+
},
|
|
79
|
+
"& .M4LIcon-icon": {
|
|
80
|
+
backgroundColor: t.palette.state?.active
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"&.M4LRHFTextField-variantError": {
|
|
84
|
+
"& .M4LRHFTextField-label": {
|
|
85
|
+
color: t.palette.state?.error.normal
|
|
86
|
+
},
|
|
87
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
88
|
+
border: "1px solid",
|
|
89
|
+
borderColor: t.palette.state?.error.normal
|
|
90
|
+
},
|
|
91
|
+
"& .MuiInputBase-input": {
|
|
92
|
+
color: t.palette.text.primary
|
|
93
|
+
},
|
|
94
|
+
"& .M4LIcon-icon": {
|
|
95
|
+
backgroundColor: t.palette.state?.error.normal
|
|
96
|
+
},
|
|
97
|
+
"&:hover": {
|
|
98
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
99
|
+
boxShadow: t.customShadows?.error
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"&.M4LRHFTextField-isFocus": {
|
|
103
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
104
|
+
boxShadow: t.customShadows?.error
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"&.M4LRHFTextField-isDisabled": {
|
|
109
|
+
"& .M4LRHFTextField-label": {
|
|
110
|
+
color: t.palette.text.disabled
|
|
111
|
+
},
|
|
112
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
113
|
+
border: "1px solid",
|
|
114
|
+
borderColor: t.palette.text.disabled,
|
|
115
|
+
backgroundColor: t.palette.state?.default,
|
|
116
|
+
boxShadow: "none"
|
|
117
|
+
},
|
|
118
|
+
"& .MuiInputBase-input": {
|
|
119
|
+
color: t.palette.text.disabled
|
|
120
|
+
},
|
|
121
|
+
"& .M4LIcon-icon": {
|
|
122
|
+
backgroundColor: t.palette.text.disabled
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"&.M4LRHFTextField-sizeSmall": {
|
|
126
|
+
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
|
|
127
|
+
height: "24px",
|
|
128
|
+
padding: "0px 8px"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"&.M4LRHFTextField-sizeMedium": {
|
|
132
|
+
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
|
|
133
|
+
height: "28px",
|
|
134
|
+
padding: "0px 8px"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}), n = (t) => ({
|
|
141
|
+
M4LRHFCheckbox: {
|
|
142
|
+
styleOverrides: {
|
|
143
|
+
"&.M4LRHFCheckbox-root": {
|
|
144
|
+
display: "flex",
|
|
145
|
+
flexDirection: "column",
|
|
146
|
+
gap: t.spacing(0.5),
|
|
147
|
+
".M4LRHFCheckbox-checkTypography": {
|
|
148
|
+
display: "flex",
|
|
149
|
+
gap: t.spacing(2),
|
|
150
|
+
[t.breakpoints.down("sm")]: {
|
|
151
|
+
gap: t.spacing(1),
|
|
152
|
+
...t.typography.paragraph
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"& .MuiTypography-root": {
|
|
156
|
+
color: t.palette.text.primary,
|
|
157
|
+
...t.typography.body
|
|
158
|
+
},
|
|
159
|
+
".M4LRHFCheckbox-small .MuiButtonBase-root": {
|
|
160
|
+
width: "20px",
|
|
161
|
+
height: "20px"
|
|
162
|
+
},
|
|
163
|
+
".MuiCheckbox-root .MuiSvgIcon-fontSizeSmall": {
|
|
164
|
+
width: "16px",
|
|
165
|
+
height: "16px"
|
|
166
|
+
},
|
|
167
|
+
".M4LRHFCheckbox-medium .MuiButtonBase-root": {
|
|
168
|
+
width: "24px",
|
|
169
|
+
height: "24px"
|
|
170
|
+
},
|
|
171
|
+
".MuiCheckbox-root .MuiSvgIcon-fontSizeMedium": {
|
|
172
|
+
width: "20px",
|
|
173
|
+
height: "20px"
|
|
174
|
+
},
|
|
175
|
+
".MuiButtonBase-root": {
|
|
176
|
+
borderRadius: "4px"
|
|
177
|
+
},
|
|
178
|
+
".MuiButtonBase-root:hover": {
|
|
179
|
+
backgroundColor: t.palette.state?.active12
|
|
180
|
+
},
|
|
181
|
+
".Mui-focusVisible": {
|
|
182
|
+
border: "1px solid",
|
|
183
|
+
borderColor: t.palette.state?.focus
|
|
184
|
+
},
|
|
185
|
+
".MuiButtonBase-root:hover .MuiSvgIcon-root": {
|
|
186
|
+
fill: t.palette.state?.hover
|
|
187
|
+
},
|
|
188
|
+
".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
|
|
189
|
+
...t.typography.body
|
|
190
|
+
},
|
|
191
|
+
".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
|
|
192
|
+
fill: t.palette.state?.default
|
|
193
|
+
},
|
|
194
|
+
".M4LRHFCheckbox-stateDisabled .MuiTypography-root": {
|
|
195
|
+
color: t.palette.text.disabled
|
|
196
|
+
},
|
|
197
|
+
".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
|
|
198
|
+
outline: "#fff00"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}), p = (t) => ({
|
|
204
|
+
M4LRHFAutocomplete: {
|
|
205
|
+
styleOverrides: {
|
|
206
|
+
"&.M4LRHFAutocomplete-root": {
|
|
207
|
+
display: "flex",
|
|
208
|
+
flexDirection: "column",
|
|
209
|
+
width: "100%",
|
|
210
|
+
gap: "4px",
|
|
211
|
+
"& .M4LRHFAutocomplete-label": {
|
|
212
|
+
color: t.palette.text.secondary,
|
|
213
|
+
transition: "all .3s ease"
|
|
214
|
+
},
|
|
215
|
+
"& .MuiAutocomplete-endAdornment": {
|
|
216
|
+
top: "unset"
|
|
217
|
+
},
|
|
218
|
+
"& .MuiInputBase-root": {
|
|
219
|
+
padding: "0px",
|
|
220
|
+
"& .MuiInputBase-input": {
|
|
221
|
+
color: t.palette.text.secondary,
|
|
222
|
+
padding: "4px",
|
|
223
|
+
backgroundColor: "transparent",
|
|
224
|
+
...t.typography.body
|
|
225
|
+
},
|
|
226
|
+
"& .MuiInputAdornment-root": {
|
|
227
|
+
margin: "0px",
|
|
228
|
+
padding: "0px"
|
|
229
|
+
},
|
|
230
|
+
"& .M4LIcon-icon": {
|
|
231
|
+
backgroundColor: t.palette.text.secondary,
|
|
232
|
+
transition: "all .3s ease"
|
|
233
|
+
},
|
|
234
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
235
|
+
border: "1px solid",
|
|
236
|
+
borderColor: t.palette.divider,
|
|
237
|
+
borderRadius: "4px",
|
|
238
|
+
inset: "0px",
|
|
239
|
+
transition: "all .3s ease",
|
|
240
|
+
"& legend": {
|
|
241
|
+
display: "none"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"&:hover": {
|
|
246
|
+
"& .M4LRHFAutocomplete-label": {
|
|
247
|
+
color: t.palette.state?.hover
|
|
248
|
+
},
|
|
249
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
250
|
+
borderColor: t.palette.state?.hover,
|
|
251
|
+
boxShadow: `0px 1px 8px ${e(t.palette.primary.main, 0.32)}`
|
|
252
|
+
},
|
|
253
|
+
"& .MuiInputBase-input": {
|
|
254
|
+
color: t.palette.text.primary
|
|
255
|
+
},
|
|
256
|
+
"& .M4LIcon-icon": {
|
|
257
|
+
backgroundColor: t.palette.state?.hover
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"&.M4LRHFAutocomplete-isFocus": {
|
|
261
|
+
"& .M4LRHFAutocomplete-label": {
|
|
262
|
+
color: t.palette.state?.active
|
|
263
|
+
},
|
|
264
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
265
|
+
transition: "all .1s ease",
|
|
266
|
+
border: "2px solid",
|
|
267
|
+
borderColor: t.palette.state?.active,
|
|
268
|
+
boxShadow: `0px 1px 8px ${e(t.palette.primary.main, 0.32)}`
|
|
269
|
+
},
|
|
270
|
+
"& .MuiInputBase-input": {
|
|
271
|
+
color: t.palette.text.primary
|
|
272
|
+
},
|
|
273
|
+
"& .M4LIcon-icon": {
|
|
274
|
+
backgroundColor: t.palette.state?.active
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"&.M4LRHFAutocomplete-variantError": {
|
|
278
|
+
"& .M4LRHFAutocomplete-label": {
|
|
279
|
+
color: t.palette.state?.error.normal
|
|
280
|
+
},
|
|
281
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
282
|
+
border: "1px solid",
|
|
283
|
+
borderColor: t.palette.state?.error.normal
|
|
284
|
+
},
|
|
285
|
+
"& .MuiInputBase-input": {
|
|
286
|
+
color: t.palette.text.primary
|
|
287
|
+
},
|
|
288
|
+
"& .M4LIcon-icon": {
|
|
289
|
+
backgroundColor: t.palette.state?.error.normal
|
|
290
|
+
},
|
|
291
|
+
"&:hover": {
|
|
292
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
293
|
+
boxShadow: t.customShadows?.error
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"&.M4LRHFAutocomplete-isFocus": {
|
|
297
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
298
|
+
boxShadow: t.customShadows?.error
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"&.M4LRHFAutocomplete-isDisabled": {
|
|
303
|
+
"& .M4LRHFAutocomplete-label": {
|
|
304
|
+
color: t.palette.text.disabled
|
|
305
|
+
},
|
|
306
|
+
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
307
|
+
border: "1px solid",
|
|
308
|
+
borderColor: t.palette.text.disabled,
|
|
309
|
+
backgroundColor: t.palette.state?.default,
|
|
310
|
+
boxShadow: "none"
|
|
311
|
+
},
|
|
312
|
+
"& .MuiInputBase-input": {
|
|
313
|
+
color: t.palette.text.disabled
|
|
314
|
+
},
|
|
315
|
+
"& .M4LIcon-icon": {
|
|
316
|
+
backgroundColor: t.palette.text.disabled
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
320
|
+
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
|
|
321
|
+
height: "24px",
|
|
322
|
+
padding: "0px 8px"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
326
|
+
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFAutocomplete-skeleton": {
|
|
327
|
+
height: "28px",
|
|
328
|
+
padding: "0px 8px"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}), u = (t) => ({
|
|
335
|
+
M4LRHFAutocompleteAsync: {
|
|
336
|
+
styleOverrides: {
|
|
337
|
+
"&.M4LRHFAutocompleteAsync-root": {
|
|
338
|
+
width: "100%",
|
|
339
|
+
padding: "4px"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
export {
|
|
345
|
+
l as M,
|
|
346
|
+
r as a,
|
|
347
|
+
p as b,
|
|
348
|
+
u as c,
|
|
349
|
+
n as d
|
|
350
|
+
};
|