@m4l/styles 2.0.3 → 3.0.0
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/index.js +30 -49
- package/package.json +1 -1
- package/theme/defaultThemeOptions-BlJvKCE6.js +24 -0
- package/theme/index-l0sNRNKZ.js +1 -0
- package/theme/index.d.ts +0 -3
- package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +17 -17
- package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +7 -12
- package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +33 -33
- package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +2 -2
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +7 -7
- package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LGridLayout.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LHamburgerMenuCommercial.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +4 -4
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +6 -6
- package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +41 -41
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LScrollBar.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +7 -7
- package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +2 -2
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +15 -15
- package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/{index.79301515.js → index-Cf72RC_D.js} +785 -477
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +2 -2
- package/theme/overrides/M4LRHFComponents/{index.38639c1b.js → index-BRZVeOM5.js} +229 -151
- package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
- package/theme/overrides/MUIComponents/Button.d.ts +1 -1
- package/theme/overrides/MUIComponents/ButtonGroup.d.ts +1 -1
- package/theme/overrides/MUIComponents/Pagination.d.ts +1 -1
- package/theme/overrides/MUIComponents/Paper.d.ts +1 -1
- package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
- package/theme/overrides/MUIComponents/{index.5c43e3b5.js → index-XoLdmZP6.js} +121 -70
- package/theme/overrides/{index.78952902.js → index-DrDgOdnk.js} +9 -3
- package/theme/palette/baseColors.d.ts +2 -0
- package/theme/palette/baseOpacityColors.d.ts +2 -0
- package/theme/palette/commonColors.d.ts +2 -0
- package/theme/palette/greyPalette.d.ts +2 -0
- package/theme/palette/index.d.ts +6 -0
- package/theme/palette/palette.d.ts +6 -0
- package/theme/palette/presetColors.d.ts +5 -0
- package/theme/palette/stateColors.d.ts +2 -0
- package/theme/palette-DM0gXxA2.js +584 -0
- package/theme/{shadows.e0c009ff.js → shadows-GTYqExFA.js} +19 -18
- package/theme/{typography.947dc33f.js → typography-BsOO459U.js} +34 -31
- package/types/augmentations.d.ts +144 -137
- package/types/types.d.ts +48 -25
- package/utils/getColorPresets-CXZaM9oS.js +14 -0
- package/utils/getColorPresets.d.ts +4 -9
- package/utils/{getFontValue.88831637.js → getFontValue-BEO-XID9.js} +8 -5
- package/utils/index.d.ts +0 -1
- package/vite-env.d.ts +3 -3
- package/theme/defaultThemeOptions.d580f3ec.js +0 -34
- package/theme/index.16e25179.js +0 -7
- package/theme/palette.287635f2.js +0 -438
- package/theme/palette.d.ts +0 -231
- package/utils/getColorPresets.a96a4046.js +0 -76
- package/utils/getColorState.18b61422.js +0 -256
- package/utils/getColorState.d.ts +0 -26
- /package/{config.5405b46b.js → config-CoeBxEZB.js} +0 -0
- /package/utils/{useResponsive.2c45e8e0.js → useResponsive-DaeQVwlH.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { alpha as
|
|
1
|
+
import { alpha as t } from "@mui/system";
|
|
2
2
|
import { alpha as e } from "@mui/material/styles";
|
|
3
|
-
const a = (
|
|
3
|
+
const a = (o) => ({
|
|
4
4
|
M4LRHFTextFieldPassword: {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
"&.M4LRHFTextFieldPassword-root": {
|
|
@@ -8,15 +8,17 @@ const a = (t) => ({
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
}), l = (
|
|
11
|
+
}), l = (o) => ({
|
|
12
12
|
M4LRHFTextField: {
|
|
13
13
|
styleOverrides: {
|
|
14
14
|
"&.M4LRHFTextField-root": {
|
|
15
|
+
/* Root styles */
|
|
15
16
|
display: "flex",
|
|
16
17
|
flexDirection: "column",
|
|
17
18
|
width: "100%",
|
|
18
19
|
gap: "2px",
|
|
19
20
|
outline: "unset",
|
|
21
|
+
/* General properties */
|
|
20
22
|
"&.M4LRHFTextField-variantText": {
|
|
21
23
|
height: "auto",
|
|
22
24
|
"& .MuiFormControl-root": {
|
|
@@ -36,31 +38,31 @@ const a = (t) => ({
|
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
40
|
"& .M4LRHFTextField-label": {
|
|
39
|
-
color:
|
|
41
|
+
color: o.vars.palette.text.secondary,
|
|
40
42
|
transition: "all .5s ease"
|
|
41
43
|
},
|
|
42
44
|
"& .MuiInputBase-root": {
|
|
43
45
|
padding: "0px",
|
|
44
46
|
borderRadius: "4px",
|
|
45
47
|
"& .MuiInputBase-input": {
|
|
46
|
-
color:
|
|
48
|
+
color: o.vars.palette.text.secondary,
|
|
47
49
|
padding: "4px 8px",
|
|
48
50
|
backgroundColor: "transparent",
|
|
49
51
|
height: "100%",
|
|
50
|
-
...
|
|
52
|
+
...o.colorSchemes.finalTheme.typography.body
|
|
51
53
|
},
|
|
52
54
|
"& .MuiInputAdornment-root": {
|
|
53
55
|
margin: "0px",
|
|
54
56
|
padding: "0px 4px 0 0"
|
|
55
57
|
},
|
|
56
58
|
"& .M4LIcon-icon": {
|
|
57
|
-
backgroundColor:
|
|
59
|
+
backgroundColor: o.vars.palette.text.secondary,
|
|
58
60
|
transition: "all .3s ease"
|
|
59
61
|
},
|
|
60
62
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
61
63
|
border: "1.3px solid",
|
|
62
64
|
padding: "4px",
|
|
63
|
-
borderColor:
|
|
65
|
+
borderColor: o.vars.palette.border.primary,
|
|
64
66
|
borderRadius: "4px",
|
|
65
67
|
inset: "0px",
|
|
66
68
|
transition: "all .3s ease",
|
|
@@ -69,83 +71,94 @@ const a = (t) => ({
|
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
},
|
|
74
|
+
/* State hover */
|
|
72
75
|
"&:hover": {
|
|
73
76
|
"& .M4LRHFTextField-label": {
|
|
74
|
-
color:
|
|
77
|
+
color: o.vars.palette.primary?.hover
|
|
75
78
|
},
|
|
76
79
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
77
|
-
borderColor:
|
|
78
|
-
boxShadow: `0px 1px 8px ${
|
|
79
|
-
|
|
80
|
+
borderColor: o.vars.palette.primary?.hover,
|
|
81
|
+
boxShadow: `0px 1px 8px ${t(
|
|
82
|
+
o.colorSchemes.finalTheme.palette.primary.main,
|
|
83
|
+
0.32
|
|
84
|
+
)}`,
|
|
85
|
+
background: o.vars.palette.primary.activeOpacity
|
|
80
86
|
},
|
|
81
87
|
"& .MuiInputBase-input": {
|
|
82
|
-
color:
|
|
88
|
+
color: o.vars.palette.text.primary
|
|
83
89
|
},
|
|
84
90
|
"& .M4LIcon-icon": {
|
|
85
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: o.vars.palette.primary?.hover
|
|
86
92
|
}
|
|
87
93
|
},
|
|
94
|
+
/* State focus and active */
|
|
88
95
|
"&.M4LRHFTextField-isFocus": {
|
|
89
96
|
"& .M4LRHFTextField-label": {
|
|
90
|
-
color:
|
|
97
|
+
color: o.vars.palette.primary?.active
|
|
91
98
|
},
|
|
92
99
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
93
100
|
transition: "all .1s ease",
|
|
94
101
|
border: "2px solid",
|
|
95
|
-
borderColor:
|
|
96
|
-
boxShadow: `0px 1px 8px ${
|
|
97
|
-
|
|
102
|
+
borderColor: o.vars.palette.primary?.active,
|
|
103
|
+
boxShadow: `0px 1px 8px ${t(
|
|
104
|
+
o.colorSchemes.finalTheme.palette.primary.main,
|
|
105
|
+
0.32
|
|
106
|
+
)}`,
|
|
107
|
+
background: o.vars.palette.primary?.activeOpacity
|
|
98
108
|
},
|
|
99
109
|
"& .MuiInputBase-input": {
|
|
100
|
-
color:
|
|
110
|
+
color: o.vars.palette.text.primary
|
|
101
111
|
},
|
|
102
112
|
"& .M4LIcon-icon": {
|
|
103
|
-
backgroundColor:
|
|
113
|
+
backgroundColor: o.vars.palette.primary?.active
|
|
104
114
|
}
|
|
105
115
|
},
|
|
116
|
+
/* State error */
|
|
106
117
|
"&.M4LRHFTextField-variantError": {
|
|
107
118
|
"& .M4LRHFTextField-label": {
|
|
108
|
-
color:
|
|
119
|
+
color: o.vars.palette.error.main
|
|
109
120
|
},
|
|
110
121
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
111
122
|
border: "1px solid",
|
|
112
|
-
borderColor:
|
|
113
|
-
background:
|
|
123
|
+
borderColor: o.vars.palette.error.main,
|
|
124
|
+
background: o.vars.palette.error.activeOpacity
|
|
114
125
|
},
|
|
115
126
|
"& .MuiInputBase-input": {
|
|
116
|
-
color:
|
|
127
|
+
color: o.vars.palette.text.primary
|
|
117
128
|
},
|
|
118
129
|
"& .M4LIcon-icon": {
|
|
119
|
-
backgroundColor:
|
|
130
|
+
backgroundColor: o.vars.palette.error.main
|
|
120
131
|
},
|
|
121
132
|
"&:hover": {
|
|
122
133
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
123
|
-
boxShadow:
|
|
134
|
+
boxShadow: o.customShadows?.error
|
|
124
135
|
}
|
|
125
136
|
},
|
|
126
137
|
"&.M4LRHFTextField-isFocus": {
|
|
127
138
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
128
|
-
boxShadow:
|
|
139
|
+
boxShadow: o.customShadows?.error
|
|
129
140
|
}
|
|
130
141
|
}
|
|
131
142
|
},
|
|
143
|
+
/* State disabled */
|
|
132
144
|
"&.M4LRHFTextField-isDisabled": {
|
|
133
145
|
"& .M4LRHFTextField-label": {
|
|
134
|
-
color:
|
|
146
|
+
color: o.vars.palette.text.disabled
|
|
135
147
|
},
|
|
136
148
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
137
149
|
border: "1px solid",
|
|
138
|
-
borderColor:
|
|
139
|
-
backgroundColor:
|
|
150
|
+
borderColor: o.vars.palette.border.secondary,
|
|
151
|
+
backgroundColor: o.vars.palette.background?.default,
|
|
140
152
|
boxShadow: "none"
|
|
141
153
|
},
|
|
142
154
|
"& .MuiInputBase-input": {
|
|
143
|
-
color:
|
|
155
|
+
color: o.vars.palette.text.disabled
|
|
144
156
|
},
|
|
145
157
|
"& .M4LIcon-icon": {
|
|
146
|
-
backgroundColor:
|
|
158
|
+
backgroundColor: o.vars.palette.text.disabled
|
|
147
159
|
}
|
|
148
160
|
},
|
|
161
|
+
/* Sizes */
|
|
149
162
|
"&.M4LRHFTextField-sizeSmall": {
|
|
150
163
|
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
|
|
151
164
|
height: "24px",
|
|
@@ -165,14 +178,14 @@ const a = (t) => ({
|
|
|
165
178
|
}
|
|
166
179
|
}
|
|
167
180
|
}
|
|
168
|
-
}), n = (
|
|
181
|
+
}), n = (o) => ({
|
|
169
182
|
M4LRHFCheckbox: {
|
|
170
183
|
styleOverrides: {
|
|
171
184
|
"&.M4LRHFCheckbox-root": {
|
|
172
185
|
display: "flex",
|
|
173
186
|
flexDirection: "column",
|
|
174
187
|
width: "100%",
|
|
175
|
-
[
|
|
188
|
+
[o.breakpoints.down("sm")]: {
|
|
176
189
|
"& .M4LRHFCheckbox-checkTypography": {
|
|
177
190
|
"& .M4LCheckBox-root": {
|
|
178
191
|
"& .MuiButtonBase-root": {
|
|
@@ -186,16 +199,17 @@ const a = (t) => ({
|
|
|
186
199
|
},
|
|
187
200
|
".M4LRHFCheckbox-checkTypography": {
|
|
188
201
|
display: "flex",
|
|
189
|
-
gap:
|
|
190
|
-
[
|
|
191
|
-
gap:
|
|
192
|
-
...
|
|
202
|
+
gap: o.spacing(2),
|
|
203
|
+
[o.breakpoints.down("sm")]: {
|
|
204
|
+
gap: o.spacing(1),
|
|
205
|
+
...o.colorSchemes.finalTheme.typography.paragraph
|
|
193
206
|
}
|
|
194
207
|
},
|
|
195
208
|
"& .MuiTypography-root": {
|
|
196
|
-
color:
|
|
197
|
-
...
|
|
209
|
+
color: o.vars.palette.text.primary,
|
|
210
|
+
...o.colorSchemes.finalTheme.typography.body
|
|
198
211
|
},
|
|
212
|
+
/* caso small */
|
|
199
213
|
".M4LRHFCheckbox-small .MuiButtonBase-root": {
|
|
200
214
|
width: "20px",
|
|
201
215
|
height: "20px"
|
|
@@ -204,6 +218,7 @@ const a = (t) => ({
|
|
|
204
218
|
width: "16px",
|
|
205
219
|
height: "16px"
|
|
206
220
|
},
|
|
221
|
+
/* caso medium */
|
|
207
222
|
".M4LRHFCheckbox-medium .MuiButtonBase-root": {
|
|
208
223
|
width: "24px",
|
|
209
224
|
height: "24px"
|
|
@@ -216,28 +231,30 @@ const a = (t) => ({
|
|
|
216
231
|
borderRadius: "4px"
|
|
217
232
|
},
|
|
218
233
|
".MuiButtonBase-root:hover": {
|
|
219
|
-
backgroundColor:
|
|
234
|
+
backgroundColor: o.vars.palette.primary?.activeOpacity
|
|
220
235
|
},
|
|
221
236
|
".Mui-focusVisible": {
|
|
222
237
|
border: "1px solid",
|
|
223
|
-
borderColor:
|
|
238
|
+
borderColor: o.vars.palette.primary?.focus
|
|
224
239
|
},
|
|
225
240
|
".MuiButtonBase-root:hover .MuiSvgIcon-root": {
|
|
226
|
-
fill:
|
|
241
|
+
fill: o.vars.palette.primary?.hover
|
|
227
242
|
},
|
|
243
|
+
/* caso general */
|
|
228
244
|
".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
|
|
229
|
-
...
|
|
245
|
+
...o.colorSchemes.finalTheme.typography.body
|
|
230
246
|
},
|
|
231
247
|
".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
|
|
232
|
-
fill:
|
|
248
|
+
fill: o.vars.palette.background?.default
|
|
233
249
|
},
|
|
250
|
+
/* selector del caso focus por tab */
|
|
234
251
|
".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
|
|
235
252
|
outline: "#FFF00"
|
|
236
253
|
}
|
|
237
254
|
}
|
|
238
255
|
}
|
|
239
256
|
}
|
|
240
|
-
}), p = (
|
|
257
|
+
}), p = (o) => ({
|
|
241
258
|
M4LRHFAutocomplete: {
|
|
242
259
|
styleOverrides: {
|
|
243
260
|
"&.M4LRHFAutocomplete-root": {
|
|
@@ -247,6 +264,7 @@ const a = (t) => ({
|
|
|
247
264
|
width: "100%",
|
|
248
265
|
gap: "2px",
|
|
249
266
|
outline: "unset",
|
|
267
|
+
// Variant
|
|
250
268
|
"&.M4LRHFAutocomplete-multiple": {
|
|
251
269
|
"& .MuiAutocomplete-inputRoot": {
|
|
252
270
|
display: "flex",
|
|
@@ -270,28 +288,52 @@ const a = (t) => ({
|
|
|
270
288
|
}
|
|
271
289
|
}
|
|
272
290
|
},
|
|
291
|
+
/* General properties */
|
|
273
292
|
"& .MuiAutocomplete-root": {
|
|
274
293
|
height: "100%",
|
|
275
294
|
"& .MuiFormControl-root": {
|
|
276
295
|
height: "100%",
|
|
277
296
|
"& .MuiInputBase-root": {
|
|
278
|
-
borderColor:
|
|
297
|
+
borderColor: o.vars.palette.border.primary,
|
|
279
298
|
position: "relative",
|
|
280
299
|
height: "100%",
|
|
281
300
|
"& .MuiInputBase-input": {
|
|
301
|
+
/* Selector del elemento html input */
|
|
282
302
|
boxSizing: "border-box",
|
|
283
|
-
color:
|
|
303
|
+
color: o.vars.palette.text.secondary,
|
|
284
304
|
backgroundColor: "transparent",
|
|
285
305
|
height: "100%",
|
|
286
306
|
padding: "0 16px 0 8px",
|
|
287
|
-
...
|
|
307
|
+
...o.colorSchemes.finalTheme.typography.body
|
|
308
|
+
/* '& .MuiInputAdornment-root': {
|
|
309
|
+
margin: '0px',
|
|
310
|
+
padding: '0px',
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
'& .M4LIcon-icon': {
|
|
314
|
+
backgroundColor: theme.vars.palette.text.secondary,
|
|
315
|
+
transition: 'all .3s ease',
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
319
|
+
border: '1px solid',
|
|
320
|
+
borderColor: theme.vars.palette.border.primary,
|
|
321
|
+
borderRadius: '4px',
|
|
322
|
+
inset: '0px',
|
|
323
|
+
transition: 'all .3s ease',
|
|
324
|
+
|
|
325
|
+
'& legend': {
|
|
326
|
+
display: 'none'
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
} */
|
|
288
330
|
},
|
|
289
331
|
"& .M4LRHFAutocomplete-containerRefreshDown": {
|
|
290
332
|
display: "flex",
|
|
291
333
|
width: "auto",
|
|
292
334
|
"& .M4LRHFAutocomplete-iconLeft": {
|
|
293
335
|
borderLeft: "1px solid",
|
|
294
|
-
borderColor:
|
|
336
|
+
borderColor: o.vars.palette.border.primary
|
|
295
337
|
}
|
|
296
338
|
},
|
|
297
339
|
"& .M4LRHFAutocomplete-iconDown": {},
|
|
@@ -305,6 +347,7 @@ const a = (t) => ({
|
|
|
305
347
|
}
|
|
306
348
|
}
|
|
307
349
|
},
|
|
350
|
+
/* Skeleton general properties*/
|
|
308
351
|
"& .M4LRHFAutocomplete-skeletonRoot": {
|
|
309
352
|
display: "flex",
|
|
310
353
|
flexDirection: "column",
|
|
@@ -316,7 +359,7 @@ const a = (t) => ({
|
|
|
316
359
|
justifyContent: "space-between",
|
|
317
360
|
alignItems: "center",
|
|
318
361
|
border: "1px solid",
|
|
319
|
-
borderColor:
|
|
362
|
+
borderColor: o.vars.palette.divider,
|
|
320
363
|
borderRadius: "4px",
|
|
321
364
|
padding: "0 10px",
|
|
322
365
|
overflow: "hidden",
|
|
@@ -331,7 +374,7 @@ const a = (t) => ({
|
|
|
331
374
|
padding: "0"
|
|
332
375
|
},
|
|
333
376
|
"& .M4LRHFAutocomplete-label": {
|
|
334
|
-
color:
|
|
377
|
+
color: o.vars.palette.text.secondary,
|
|
335
378
|
transition: "all .3s ease"
|
|
336
379
|
},
|
|
337
380
|
"& .MuiAutocomplete-endAdornment": {
|
|
@@ -340,91 +383,96 @@ const a = (t) => ({
|
|
|
340
383
|
"& .MuiAutocomplete-root .MuiInputBase-root": {
|
|
341
384
|
padding: "0p 8px",
|
|
342
385
|
height: "100%"
|
|
386
|
+
//revisar
|
|
343
387
|
},
|
|
388
|
+
/* State hover */
|
|
344
389
|
"&:hover": {
|
|
345
390
|
"& .M4LRHFAutocomplete-label": {
|
|
346
|
-
color:
|
|
391
|
+
color: o.vars.palette.text.secondary
|
|
347
392
|
},
|
|
348
393
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
349
|
-
borderColor:
|
|
394
|
+
borderColor: o.vars.palette.primary?.hover,
|
|
350
395
|
boxShadow: `0px 1px 8px ${e(
|
|
351
|
-
|
|
396
|
+
o.colorSchemes.finalTheme.palette.primary.main,
|
|
352
397
|
0.32
|
|
353
398
|
)}`
|
|
354
399
|
},
|
|
355
400
|
"& .MuiInputBase-input": {
|
|
356
|
-
color:
|
|
401
|
+
color: o.vars.palette.text.primary
|
|
357
402
|
},
|
|
358
403
|
"& .M4LIcon-icon": {
|
|
359
|
-
backgroundColor:
|
|
404
|
+
backgroundColor: o.vars.palette.primary?.hover
|
|
360
405
|
}
|
|
361
406
|
},
|
|
407
|
+
/* State focus and active */
|
|
362
408
|
"&.M4LRHFAutocomplete-isFocus": {
|
|
363
409
|
"& .M4LRHFAutocomplete-label": {
|
|
364
|
-
color:
|
|
410
|
+
color: o.vars.palette.primary?.active
|
|
365
411
|
},
|
|
366
412
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
367
413
|
transition: "all .1s ease",
|
|
368
|
-
background:
|
|
414
|
+
background: o.vars.palette.primary.activeOpacity,
|
|
369
415
|
border: "2px solid",
|
|
370
|
-
borderColor:
|
|
416
|
+
borderColor: o.vars.palette.primary?.active,
|
|
371
417
|
boxShadow: `0px 1px 8px ${e(
|
|
372
|
-
|
|
418
|
+
o.colorSchemes.finalTheme.palette.primary.main,
|
|
373
419
|
0.32
|
|
374
420
|
)}`
|
|
375
421
|
},
|
|
376
422
|
"& .MuiInputBase-input": {
|
|
377
|
-
color:
|
|
423
|
+
color: o.vars.palette.text.primary
|
|
378
424
|
},
|
|
379
425
|
"& .M4LIcon-icon": {
|
|
380
|
-
backgroundColor:
|
|
426
|
+
backgroundColor: o.vars.palette.primary?.active
|
|
381
427
|
}
|
|
382
428
|
},
|
|
429
|
+
/* State error */
|
|
383
430
|
"&.M4LRHFAutocomplete-variantError": {
|
|
384
431
|
"& .M4LRHFAutocomplete-label": {
|
|
385
|
-
color:
|
|
432
|
+
color: o.vars.palette.error.main
|
|
386
433
|
},
|
|
387
434
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
388
435
|
border: "1px solid",
|
|
389
|
-
borderColor:
|
|
436
|
+
borderColor: o.vars.palette.error.main
|
|
390
437
|
},
|
|
391
438
|
"& .MuiInputBase-input": {
|
|
392
|
-
color:
|
|
439
|
+
color: o.vars.palette.text.primary
|
|
393
440
|
},
|
|
394
441
|
"& .M4LIcon-icon": {
|
|
395
|
-
backgroundColor:
|
|
442
|
+
backgroundColor: o.vars.palette.error.main
|
|
396
443
|
},
|
|
397
444
|
"&:hover": {
|
|
398
445
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
399
|
-
boxShadow:
|
|
446
|
+
boxShadow: o.customShadows?.error
|
|
400
447
|
}
|
|
401
448
|
},
|
|
402
449
|
"&.M4LRHFAutocomplete-isFocus": {
|
|
403
450
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
404
|
-
boxShadow:
|
|
451
|
+
boxShadow: o.customShadows?.error
|
|
405
452
|
}
|
|
406
453
|
}
|
|
407
454
|
},
|
|
455
|
+
/* State disabled */
|
|
408
456
|
"&.M4LRHFAutocomplete-isDisabled": {
|
|
409
457
|
"& .M4LRHFAutocomplete-label": {
|
|
410
|
-
color:
|
|
458
|
+
color: o.vars.palette.text.disabled
|
|
411
459
|
},
|
|
412
460
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
413
461
|
border: "1px solid",
|
|
414
|
-
borderColor:
|
|
415
|
-
backgroundColor:
|
|
462
|
+
borderColor: o.vars.palette.border.disabled,
|
|
463
|
+
backgroundColor: o.vars.palette.background?.default,
|
|
416
464
|
boxShadow: "none"
|
|
417
465
|
},
|
|
418
466
|
"& .MuiInputBase-input": {
|
|
419
|
-
color:
|
|
467
|
+
color: o.vars.palette.text.disabled
|
|
420
468
|
},
|
|
421
469
|
"& .M4LIcon-icon": {
|
|
422
|
-
backgroundColor:
|
|
470
|
+
backgroundColor: o.vars.palette.text.disabled
|
|
423
471
|
}
|
|
424
472
|
},
|
|
473
|
+
/* Sizes */
|
|
425
474
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
426
|
-
|
|
427
|
-
& .MuiAutocomplete-root`]: {
|
|
475
|
+
"& .M4LRHFAutocomplete-skeleton,\n & .MuiAutocomplete-root": {
|
|
428
476
|
"& .M4LImage-root": {
|
|
429
477
|
width: "24px",
|
|
430
478
|
height: "24px",
|
|
@@ -435,8 +483,7 @@ const a = (t) => ({
|
|
|
435
483
|
}
|
|
436
484
|
},
|
|
437
485
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
438
|
-
|
|
439
|
-
& .MuiAutocomplete-root`]: {
|
|
486
|
+
"& .M4LRHFAutocomplete-skeleton,\n & .MuiAutocomplete-root": {
|
|
440
487
|
"& .M4LImage-root": {
|
|
441
488
|
width: "28px",
|
|
442
489
|
height: "28px",
|
|
@@ -446,6 +493,7 @@ const a = (t) => ({
|
|
|
446
493
|
minHeight: "36px"
|
|
447
494
|
}
|
|
448
495
|
},
|
|
496
|
+
// variant image defined
|
|
449
497
|
"&.M4LRHFAutocomplete-imageWidthDefined": {
|
|
450
498
|
"& .M4LImage-root": {
|
|
451
499
|
"& .M4LImage-img": {
|
|
@@ -453,13 +501,17 @@ const a = (t) => ({
|
|
|
453
501
|
}
|
|
454
502
|
}
|
|
455
503
|
}
|
|
504
|
+
// with multiple values in chips
|
|
456
505
|
}
|
|
457
506
|
}
|
|
458
507
|
},
|
|
459
508
|
M4LRHFAutocompletePopover: {
|
|
460
509
|
styleOverrides: {
|
|
510
|
+
// Menu popover que se despliega luego de interactuar con el componente.
|
|
511
|
+
// Despliega la lista de opciones diponibles.
|
|
461
512
|
"&.M4LRHFAutocomplete-popper": {
|
|
462
513
|
zIndex: "1300",
|
|
514
|
+
// Primer contendeor del manu, se utiliza para dar espacio interno y distribuir los items.
|
|
463
515
|
"& .MuiAutocomplete-listbox": {
|
|
464
516
|
padding: "8px",
|
|
465
517
|
display: "flex",
|
|
@@ -478,23 +530,28 @@ const a = (t) => ({
|
|
|
478
530
|
}
|
|
479
531
|
}
|
|
480
532
|
},
|
|
533
|
+
// Estilos generales para withImage
|
|
481
534
|
"& .M4LRHFAutocomplete-withImage": {
|
|
482
535
|
display: "flex",
|
|
483
536
|
gap: "8px",
|
|
537
|
+
// Estados por evento de usuario
|
|
484
538
|
"&:hover": {
|
|
485
|
-
color:
|
|
486
|
-
backgroundColor:
|
|
539
|
+
color: o.vars.palette.text.primary,
|
|
540
|
+
backgroundColor: o.vars.palette.primary.activeOpacity
|
|
487
541
|
},
|
|
488
542
|
"& .M4LImage-root": {
|
|
489
543
|
width: "auto",
|
|
490
544
|
height: "100%"
|
|
491
545
|
}
|
|
492
546
|
},
|
|
547
|
+
// Estilos del menu para la versión de tamaño small
|
|
493
548
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
549
|
+
// Item sin imagen
|
|
494
550
|
"& .MuiAutocomplete-listbox": {
|
|
495
551
|
"& .MuiAutocomplete-option": {
|
|
496
552
|
minHeight: "24px"
|
|
497
553
|
},
|
|
554
|
+
// Item con imagen
|
|
498
555
|
"& .M4LRHFAutocomplete-withImage": {
|
|
499
556
|
paddingLeft: "4px",
|
|
500
557
|
height: "24px",
|
|
@@ -510,12 +567,15 @@ const a = (t) => ({
|
|
|
510
567
|
}
|
|
511
568
|
}
|
|
512
569
|
},
|
|
570
|
+
// Estilos del menu para la versión de tamaño medium
|
|
513
571
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
572
|
+
// Item sin imagen
|
|
514
573
|
"& .MuiAutocomplete-listbox": {
|
|
515
574
|
"& .MuiAutocomplete-option": {
|
|
516
575
|
height: "36px"
|
|
517
576
|
}
|
|
518
577
|
},
|
|
578
|
+
// Item con imagen
|
|
519
579
|
"& .M4LRHFAutocomplete-withImage": {
|
|
520
580
|
paddingLeft: "4px",
|
|
521
581
|
height: "36px",
|
|
@@ -530,6 +590,7 @@ const a = (t) => ({
|
|
|
530
590
|
}
|
|
531
591
|
}
|
|
532
592
|
},
|
|
593
|
+
// variación de ancho de imagen definido
|
|
533
594
|
"&.M4LRHFAutocomplete-imageWidthDefined": {
|
|
534
595
|
"& .M4LImage-img": {
|
|
535
596
|
minWidth: "24px",
|
|
@@ -537,10 +598,10 @@ const a = (t) => ({
|
|
|
537
598
|
}
|
|
538
599
|
},
|
|
539
600
|
"& .MuiPaper-root": {
|
|
540
|
-
boxShadow:
|
|
601
|
+
boxShadow: o.customShadows?.z2,
|
|
541
602
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
|
|
542
|
-
color:
|
|
543
|
-
backgroundColor:
|
|
603
|
+
color: o.vars.palette.text.primary,
|
|
604
|
+
backgroundColor: o.vars.palette.primary.activeOpacity
|
|
544
605
|
}
|
|
545
606
|
}
|
|
546
607
|
}
|
|
@@ -550,6 +611,7 @@ const a = (t) => ({
|
|
|
550
611
|
styleOverrides: {
|
|
551
612
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
552
613
|
height: "18px",
|
|
614
|
+
// important debido a que MUI agrega media queries directamente al elemento.
|
|
553
615
|
minHeight: "18px !important",
|
|
554
616
|
"& .MuiChip-deleteIcon": {
|
|
555
617
|
fontSize: "16px"
|
|
@@ -560,6 +622,7 @@ const a = (t) => ({
|
|
|
560
622
|
},
|
|
561
623
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
562
624
|
height: "24px",
|
|
625
|
+
// important debido a que MUI agrega media queries directamente al elemento.
|
|
563
626
|
minHeight: "24px !important",
|
|
564
627
|
"& .MuiChip-deleteIcon": {
|
|
565
628
|
fontSize: "20px"
|
|
@@ -570,7 +633,7 @@ const a = (t) => ({
|
|
|
570
633
|
}
|
|
571
634
|
}
|
|
572
635
|
}
|
|
573
|
-
}),
|
|
636
|
+
}), d = (o) => ({
|
|
574
637
|
M4LRHFAutocompleteAsync: {
|
|
575
638
|
styleOverrides: {
|
|
576
639
|
"&.M4LRHFAutocompleteAsync-root": {
|
|
@@ -579,7 +642,7 @@ const a = (t) => ({
|
|
|
579
642
|
}
|
|
580
643
|
}
|
|
581
644
|
}
|
|
582
|
-
}),
|
|
645
|
+
}), u = (o) => ({
|
|
583
646
|
M4LRHFDateTime: {
|
|
584
647
|
styleOverrides: {
|
|
585
648
|
"&.M4LRHFDateTime-root": {
|
|
@@ -594,7 +657,7 @@ const a = (t) => ({
|
|
|
594
657
|
width: "100%",
|
|
595
658
|
alignItems: "center",
|
|
596
659
|
justifyContent: "space-between",
|
|
597
|
-
border: `1px solid ${
|
|
660
|
+
border: `1px solid ${o.vars.palette.divider}`,
|
|
598
661
|
paddingLeft: "12px",
|
|
599
662
|
borderRadius: "2px",
|
|
600
663
|
"& .MuiSkeleton-circular": {
|
|
@@ -625,6 +688,7 @@ const a = (t) => ({
|
|
|
625
688
|
height: "36px"
|
|
626
689
|
}
|
|
627
690
|
},
|
|
691
|
+
/* General properties */
|
|
628
692
|
"& .MuiFormControl-root": {
|
|
629
693
|
"& .MuiInputBase-root": {
|
|
630
694
|
padding: "0 4px 0 0",
|
|
@@ -635,17 +699,17 @@ const a = (t) => ({
|
|
|
635
699
|
}
|
|
636
700
|
},
|
|
637
701
|
"& .M4LRHFTextField-label": {
|
|
638
|
-
color:
|
|
702
|
+
color: o.vars.palette.text.secondary,
|
|
639
703
|
transition: "all .5s ease"
|
|
640
704
|
},
|
|
641
705
|
"& .MuiInputBase-root.MuiInputBase-formControl": {
|
|
642
706
|
padding: "0px 8px 0 0",
|
|
643
707
|
"& .MuiInputBase-input": {
|
|
644
|
-
color:
|
|
708
|
+
color: o.vars.palette.text.secondary,
|
|
645
709
|
padding: "0px 12px",
|
|
646
710
|
backgroundColor: "transparent",
|
|
647
711
|
height: "100%",
|
|
648
|
-
...
|
|
712
|
+
...o.colorSchemes.finalTheme.typography.body
|
|
649
713
|
},
|
|
650
714
|
"& .MuiInputAdornment-root": {
|
|
651
715
|
margin: "0px",
|
|
@@ -664,13 +728,13 @@ const a = (t) => ({
|
|
|
664
728
|
}
|
|
665
729
|
},
|
|
666
730
|
"& .M4LIcon-icon": {
|
|
667
|
-
backgroundColor:
|
|
731
|
+
backgroundColor: o.vars.palette.text.secondary,
|
|
668
732
|
transition: "all .3s ease"
|
|
669
733
|
},
|
|
670
734
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
671
735
|
border: "1px solid",
|
|
672
736
|
padding: "4px",
|
|
673
|
-
borderColor:
|
|
737
|
+
borderColor: o.vars.palette.divider,
|
|
674
738
|
borderRadius: "4px",
|
|
675
739
|
inset: "0px",
|
|
676
740
|
transition: "all .3s ease",
|
|
@@ -679,82 +743,86 @@ const a = (t) => ({
|
|
|
679
743
|
}
|
|
680
744
|
}
|
|
681
745
|
},
|
|
746
|
+
/* State hover */
|
|
682
747
|
"&:hover": {
|
|
683
748
|
"& .M4LTypography-root": {
|
|
684
|
-
color:
|
|
749
|
+
color: o.vars.palette.primary?.hover
|
|
685
750
|
},
|
|
686
751
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
687
|
-
borderColor:
|
|
752
|
+
borderColor: o.vars.palette.primary?.hover
|
|
688
753
|
},
|
|
689
754
|
"& .MuiInputBase-input": {
|
|
690
|
-
color:
|
|
755
|
+
color: o.vars.palette.text.primary
|
|
691
756
|
},
|
|
692
757
|
"& .M4LIcon-icon": {
|
|
693
|
-
backgroundColor:
|
|
758
|
+
backgroundColor: o.vars.palette.primary?.hover
|
|
694
759
|
}
|
|
695
760
|
},
|
|
761
|
+
/* State focus and active */
|
|
696
762
|
"&.M4LRHFDateTime-isFocus": {
|
|
697
763
|
"& .M4LTypography-root": {
|
|
698
|
-
color:
|
|
764
|
+
color: o.vars.palette.primary.active
|
|
699
765
|
},
|
|
700
766
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
701
767
|
transition: "all .1s ease",
|
|
702
768
|
border: "2px solid",
|
|
703
|
-
borderColor:
|
|
769
|
+
borderColor: o.vars.palette.primary?.active
|
|
704
770
|
},
|
|
705
771
|
"& .MuiInputBase-input": {
|
|
706
|
-
color:
|
|
772
|
+
color: o.vars.palette.text.primary
|
|
707
773
|
},
|
|
708
774
|
"& .M4LIcon-icon": {
|
|
709
|
-
backgroundColor:
|
|
775
|
+
backgroundColor: o.vars.palette.primary?.active
|
|
710
776
|
}
|
|
711
777
|
},
|
|
778
|
+
/* State error */
|
|
712
779
|
"&.M4LRHFTextField-variantError": {
|
|
713
780
|
"& .M4LRHFTextField-label": {
|
|
714
|
-
color:
|
|
781
|
+
color: o.vars.palette.error.main
|
|
715
782
|
},
|
|
716
783
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
717
784
|
border: "1px solid",
|
|
718
|
-
borderColor:
|
|
785
|
+
borderColor: o.vars.palette.error.main
|
|
719
786
|
},
|
|
720
787
|
"& .MuiInputBase-input": {
|
|
721
|
-
color:
|
|
788
|
+
color: o.vars.palette.text.primary
|
|
722
789
|
},
|
|
723
790
|
"& .M4LIcon-icon": {
|
|
724
|
-
backgroundColor:
|
|
791
|
+
backgroundColor: o.vars.palette.error.main
|
|
725
792
|
},
|
|
726
793
|
"&:hover": {
|
|
727
794
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
728
|
-
boxShadow:
|
|
795
|
+
boxShadow: o.customShadows?.error
|
|
729
796
|
}
|
|
730
797
|
},
|
|
731
798
|
"&.M4LRHFTextField-isFocus": {
|
|
732
799
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
733
|
-
boxShadow:
|
|
800
|
+
boxShadow: o.customShadows?.error
|
|
734
801
|
}
|
|
735
802
|
}
|
|
736
803
|
},
|
|
804
|
+
/* State disabled */
|
|
737
805
|
"&.M4LRHFTextField-isDisabled": {
|
|
738
806
|
"& .M4LRHFTextField-label": {
|
|
739
|
-
color:
|
|
807
|
+
color: o.vars.palette.text.disabled
|
|
740
808
|
},
|
|
741
809
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
742
810
|
border: "1px solid",
|
|
743
|
-
borderColor:
|
|
744
|
-
backgroundColor:
|
|
811
|
+
borderColor: o.vars.palette.text.disabled,
|
|
812
|
+
backgroundColor: o.vars.palette.background?.default,
|
|
745
813
|
boxShadow: "none"
|
|
746
814
|
},
|
|
747
815
|
"& .MuiInputBase-input": {
|
|
748
|
-
color:
|
|
816
|
+
color: o.vars.palette.text.disabled
|
|
749
817
|
},
|
|
750
818
|
"& .M4LIcon-icon": {
|
|
751
|
-
backgroundColor:
|
|
819
|
+
backgroundColor: o.vars.palette.text.disabled
|
|
752
820
|
}
|
|
753
821
|
}
|
|
754
822
|
}
|
|
755
823
|
}
|
|
756
824
|
}
|
|
757
|
-
}),
|
|
825
|
+
}), s = (o) => ({
|
|
758
826
|
M4LRHFUploadImage: {
|
|
759
827
|
styleOverrides: {
|
|
760
828
|
"&.M4LRHFUploadImage-root": {
|
|
@@ -764,12 +832,12 @@ const a = (t) => ({
|
|
|
764
832
|
width: "100%",
|
|
765
833
|
height: "100%",
|
|
766
834
|
minHeight: "200px",
|
|
767
|
-
minWidth:
|
|
835
|
+
minWidth: o.spacing(20),
|
|
768
836
|
position: "relative",
|
|
769
837
|
borderRadius: "4px",
|
|
770
838
|
padding: "8px",
|
|
771
|
-
boxShadow:
|
|
772
|
-
background:
|
|
839
|
+
boxShadow: o.customShadows?.z2,
|
|
840
|
+
background: o.vars.palette.background.default,
|
|
773
841
|
"& .M4LRHFUploadImage-dropZoneStyle": {
|
|
774
842
|
zIndex: 0,
|
|
775
843
|
width: "fit-content",
|
|
@@ -783,15 +851,15 @@ const a = (t) => ({
|
|
|
783
851
|
inset: "0",
|
|
784
852
|
alignItems: "center",
|
|
785
853
|
justifyContent: "center",
|
|
786
|
-
background:
|
|
854
|
+
background: o.vars.palette.background.main,
|
|
787
855
|
"& > *": {
|
|
788
856
|
width: "100%",
|
|
789
857
|
height: "100%"
|
|
790
858
|
},
|
|
791
859
|
"&:hover": {
|
|
792
|
-
background:
|
|
860
|
+
background: o.vars.palette.primary.activeOpacity,
|
|
793
861
|
border: "1px solid",
|
|
794
|
-
borderColor:
|
|
862
|
+
borderColor: o.vars.palette.primary.activeOpacity,
|
|
795
863
|
cursor: "pointer",
|
|
796
864
|
"& .placeholder": {
|
|
797
865
|
zIndex: 9
|
|
@@ -813,9 +881,9 @@ const a = (t) => ({
|
|
|
813
881
|
width: "100%",
|
|
814
882
|
height: "100%",
|
|
815
883
|
overflow: "hidden",
|
|
816
|
-
transition:
|
|
817
|
-
easing:
|
|
818
|
-
duration:
|
|
884
|
+
transition: o.transitions.create("opacity", {
|
|
885
|
+
easing: o.transitions.easing.easeInOut,
|
|
886
|
+
duration: o.transitions.duration.shorter
|
|
819
887
|
}),
|
|
820
888
|
"&:hover": {
|
|
821
889
|
opacity: 1
|
|
@@ -830,6 +898,7 @@ const a = (t) => ({
|
|
|
830
898
|
gap: "0",
|
|
831
899
|
position: "relative",
|
|
832
900
|
overflow: "hidden",
|
|
901
|
+
// Icono de carga
|
|
833
902
|
"& .M4LRHFUploadImage-containerBodyImage": {
|
|
834
903
|
display: "flex",
|
|
835
904
|
justifyContent: "center",
|
|
@@ -849,24 +918,24 @@ const a = (t) => ({
|
|
|
849
918
|
display: "flex",
|
|
850
919
|
justifyContent: "center",
|
|
851
920
|
".MuiTypography-subtitle": {
|
|
852
|
-
...
|
|
853
|
-
color:
|
|
921
|
+
...o.colorSchemes.finalTheme.typography.paragraphDens,
|
|
922
|
+
color: o.vars.palette.text.primary
|
|
854
923
|
}
|
|
855
924
|
},
|
|
856
925
|
"& .M4LRHFUploadImage-containerDescription": {
|
|
857
926
|
display: "flex",
|
|
858
927
|
justifyContent: "center",
|
|
859
928
|
".MuiTypography-root": {
|
|
860
|
-
...
|
|
861
|
-
color:
|
|
929
|
+
...o.colorSchemes.finalTheme.typography.paragraph,
|
|
930
|
+
color: o.vars.palette.text.secondary
|
|
862
931
|
}
|
|
863
932
|
},
|
|
864
933
|
"& .M4LRHFUploadImage-containerConditions": {
|
|
865
934
|
display: "flex",
|
|
866
935
|
justifyContent: "center",
|
|
867
936
|
".MuiTypography-root": {
|
|
868
|
-
...
|
|
869
|
-
color:
|
|
937
|
+
...o.colorSchemes.finalTheme.typography.body,
|
|
938
|
+
color: o.vars.palette.text.secondary
|
|
870
939
|
}
|
|
871
940
|
},
|
|
872
941
|
"& .M4LButton-root": {
|
|
@@ -879,17 +948,19 @@ const a = (t) => ({
|
|
|
879
948
|
}
|
|
880
949
|
}
|
|
881
950
|
},
|
|
951
|
+
// Skeleton
|
|
882
952
|
"& .M4LRHFUploadImage-skeleton": {
|
|
883
953
|
maskPosition: "center!important",
|
|
884
954
|
maskRepeat: "no-repeat!important",
|
|
885
955
|
WebkitMaskRepeat: "no-repeat!important",
|
|
886
|
-
border: `1px dashed ${
|
|
956
|
+
border: `1px dashed ${o.vars.palette.divider}`,
|
|
887
957
|
width: "100%",
|
|
888
958
|
height: "100%",
|
|
889
959
|
mask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')",
|
|
890
960
|
WebkitMask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')"
|
|
891
961
|
}
|
|
892
962
|
},
|
|
963
|
+
// Imagen cargada
|
|
893
964
|
"&.M4LRHFUploadImage-hasFile": {
|
|
894
965
|
"& .M4LRHFUploadImage-placeHolder": {
|
|
895
966
|
opacity: "0",
|
|
@@ -902,13 +973,14 @@ const a = (t) => ({
|
|
|
902
973
|
width: "100%",
|
|
903
974
|
height: "100%",
|
|
904
975
|
overflow: "hidden",
|
|
905
|
-
transition:
|
|
906
|
-
easing:
|
|
907
|
-
duration:
|
|
976
|
+
transition: o.transitions.create("opacity", {
|
|
977
|
+
easing: o.transitions.easing.easeInOut,
|
|
978
|
+
duration: o.transitions.duration.shorter
|
|
908
979
|
}),
|
|
909
980
|
"&:hover": {
|
|
910
981
|
opacity: 1
|
|
911
982
|
},
|
|
983
|
+
// Comportamiento Hover imagen cargada
|
|
912
984
|
"& .M4LRHFUploadImage-containerUploadBoddy": {
|
|
913
985
|
"& .M4LRHFUploadImage-containerBodyImage": {
|
|
914
986
|
opacity: "0"
|
|
@@ -934,7 +1006,7 @@ const a = (t) => ({
|
|
|
934
1006
|
}
|
|
935
1007
|
}
|
|
936
1008
|
}
|
|
937
|
-
}),
|
|
1009
|
+
}), c = (o) => ({
|
|
938
1010
|
M4LRHFPeriod: {
|
|
939
1011
|
styleOverrides: {
|
|
940
1012
|
"&.M4LRHFPeriod-root": {
|
|
@@ -942,7 +1014,7 @@ const a = (t) => ({
|
|
|
942
1014
|
}
|
|
943
1015
|
}
|
|
944
1016
|
}
|
|
945
|
-
}),
|
|
1017
|
+
}), M = (o) => ({
|
|
946
1018
|
M4LRHFColorPicker: {
|
|
947
1019
|
styleOverrides: {
|
|
948
1020
|
"&.M4LRHFColorPicker-root": {
|
|
@@ -977,14 +1049,20 @@ const a = (t) => ({
|
|
|
977
1049
|
gap: "4px",
|
|
978
1050
|
padding: "2px",
|
|
979
1051
|
border: "1.5px solid",
|
|
980
|
-
borderColor:
|
|
1052
|
+
borderColor: o.vars.palette.border.primary,
|
|
981
1053
|
borderRadius: "4px",
|
|
982
1054
|
width: "fit-content",
|
|
983
1055
|
"& .M4LRHFColorPicker-boxColor": {
|
|
984
1056
|
cursor: "pointer"
|
|
985
1057
|
},
|
|
1058
|
+
/* '& .M4LIcon-root': {
|
|
1059
|
+
minHeight: '18px',
|
|
1060
|
+
minWidth: '18px',
|
|
1061
|
+
cursor: 'pointer',
|
|
1062
|
+
borderRadius: '4px',
|
|
1063
|
+
}, */
|
|
986
1064
|
"& .M4LIcon-root:hover": {
|
|
987
|
-
background:
|
|
1065
|
+
background: o.vars.palette.background.hover
|
|
988
1066
|
}
|
|
989
1067
|
}
|
|
990
1068
|
}
|
|
@@ -994,12 +1072,12 @@ const a = (t) => ({
|
|
|
994
1072
|
styleOverrides: {
|
|
995
1073
|
"&.M4LRHFColorPicker-popoverRoot": {
|
|
996
1074
|
"& .MuiPaper-root": {
|
|
997
|
-
background:
|
|
1075
|
+
background: o.vars.palette.background.default,
|
|
998
1076
|
padding: "8px",
|
|
999
1077
|
border: "1px solid",
|
|
1000
|
-
borderColor:
|
|
1078
|
+
borderColor: o.vars.palette.border.secondary,
|
|
1001
1079
|
borderRadius: "4px",
|
|
1002
|
-
boxShadow:
|
|
1080
|
+
boxShadow: o.vars.customShadows.z4,
|
|
1003
1081
|
test: "root",
|
|
1004
1082
|
"& .M4LRHFColorPicker-containerPicker": {
|
|
1005
1083
|
background: "transparent",
|
|
@@ -1016,9 +1094,9 @@ const a = (t) => ({
|
|
|
1016
1094
|
flexDirection: "column",
|
|
1017
1095
|
gap: "8px",
|
|
1018
1096
|
border: "1px solid",
|
|
1019
|
-
borderColor:
|
|
1097
|
+
borderColor: o.vars.palette.border.secondary,
|
|
1020
1098
|
borderRadius: "4px",
|
|
1021
|
-
backgroundColor:
|
|
1099
|
+
backgroundColor: o.vars.palette.background.default,
|
|
1022
1100
|
"& :nth-of-type(-n + 1)": {
|
|
1023
1101
|
borderRadius: "4px"
|
|
1024
1102
|
},
|
|
@@ -1029,27 +1107,27 @@ const a = (t) => ({
|
|
|
1029
1107
|
"& > div": {
|
|
1030
1108
|
display: "flex",
|
|
1031
1109
|
flexDirection: "column-reverse",
|
|
1032
|
-
...
|
|
1033
|
-
color:
|
|
1110
|
+
...o.colorSchemes.finalTheme.typography.body,
|
|
1111
|
+
color: o.vars.palette.text.secondary,
|
|
1034
1112
|
gap: "2px",
|
|
1035
1113
|
padding: "0 important",
|
|
1036
1114
|
"& > input": {
|
|
1037
1115
|
display: "flex",
|
|
1038
1116
|
textAlign: "center !important",
|
|
1039
1117
|
border: "1px solid",
|
|
1040
|
-
borderColor:
|
|
1118
|
+
borderColor: o.vars.palette.border.primary,
|
|
1041
1119
|
borderRadius: "2px",
|
|
1042
1120
|
background: "transparent",
|
|
1043
1121
|
minHeight: "24px",
|
|
1044
1122
|
height: "24px !important",
|
|
1045
|
-
...
|
|
1046
|
-
color: `${
|
|
1123
|
+
...o.colorSchemes.finalTheme.typography.body,
|
|
1124
|
+
color: `${o.vars.palette.text.primary} !important`
|
|
1047
1125
|
},
|
|
1048
1126
|
"& > label": {
|
|
1049
1127
|
display: "flex",
|
|
1050
1128
|
textAlign: "left !important",
|
|
1051
|
-
...
|
|
1052
|
-
color: `${
|
|
1129
|
+
...o.colorSchemes.finalTheme.typography.body,
|
|
1130
|
+
color: `${o.vars.palette.text.secondary} !important`,
|
|
1053
1131
|
padding: "0 !important"
|
|
1054
1132
|
}
|
|
1055
1133
|
}
|
|
@@ -1070,10 +1148,10 @@ export {
|
|
|
1070
1148
|
l as M,
|
|
1071
1149
|
a,
|
|
1072
1150
|
p as b,
|
|
1073
|
-
|
|
1074
|
-
d,
|
|
1075
|
-
|
|
1076
|
-
|
|
1151
|
+
d as c,
|
|
1152
|
+
u as d,
|
|
1153
|
+
s as e,
|
|
1154
|
+
c as f,
|
|
1077
1155
|
n as g,
|
|
1078
|
-
|
|
1156
|
+
M as h
|
|
1079
1157
|
};
|