@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.
Files changed (70) hide show
  1. package/index.js +30 -49
  2. package/package.json +1 -1
  3. package/theme/defaultThemeOptions-BlJvKCE6.js +24 -0
  4. package/theme/index-l0sNRNKZ.js +1 -0
  5. package/theme/index.d.ts +0 -3
  6. package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +1 -1
  7. package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +17 -17
  8. package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +7 -12
  9. package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.d.ts +1 -1
  10. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +33 -33
  11. package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +2 -2
  12. package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +7 -7
  13. package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +1 -1
  14. package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.d.ts +1 -1
  15. package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.d.ts +1 -1
  16. package/theme/overrides/M4LExtendedComponents/M4LGridLayout.d.ts +1 -1
  17. package/theme/overrides/M4LExtendedComponents/M4LHamburgerMenuCommercial.d.ts +1 -1
  18. package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +4 -4
  19. package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +1 -1
  20. package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +6 -6
  21. package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +41 -41
  22. package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -1
  23. package/theme/overrides/M4LExtendedComponents/M4LScrollBar.d.ts +1 -1
  24. package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +7 -7
  25. package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +1 -1
  26. package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +2 -2
  27. package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -1
  28. package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +15 -15
  29. package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -1
  30. package/theme/overrides/M4LExtendedComponents/{index.79301515.js → index-Cf72RC_D.js} +785 -477
  31. package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -1
  32. package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +1 -1
  33. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +1 -1
  34. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +2 -2
  35. package/theme/overrides/M4LRHFComponents/{index.38639c1b.js → index-BRZVeOM5.js} +229 -151
  36. package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
  37. package/theme/overrides/MUIComponents/Button.d.ts +1 -1
  38. package/theme/overrides/MUIComponents/ButtonGroup.d.ts +1 -1
  39. package/theme/overrides/MUIComponents/Pagination.d.ts +1 -1
  40. package/theme/overrides/MUIComponents/Paper.d.ts +1 -1
  41. package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
  42. package/theme/overrides/MUIComponents/{index.5c43e3b5.js → index-XoLdmZP6.js} +121 -70
  43. package/theme/overrides/{index.78952902.js → index-DrDgOdnk.js} +9 -3
  44. package/theme/palette/baseColors.d.ts +2 -0
  45. package/theme/palette/baseOpacityColors.d.ts +2 -0
  46. package/theme/palette/commonColors.d.ts +2 -0
  47. package/theme/palette/greyPalette.d.ts +2 -0
  48. package/theme/palette/index.d.ts +6 -0
  49. package/theme/palette/palette.d.ts +6 -0
  50. package/theme/palette/presetColors.d.ts +5 -0
  51. package/theme/palette/stateColors.d.ts +2 -0
  52. package/theme/palette-DM0gXxA2.js +584 -0
  53. package/theme/{shadows.e0c009ff.js → shadows-GTYqExFA.js} +19 -18
  54. package/theme/{typography.947dc33f.js → typography-BsOO459U.js} +34 -31
  55. package/types/augmentations.d.ts +144 -137
  56. package/types/types.d.ts +48 -25
  57. package/utils/getColorPresets-CXZaM9oS.js +14 -0
  58. package/utils/getColorPresets.d.ts +4 -9
  59. package/utils/{getFontValue.88831637.js → getFontValue-BEO-XID9.js} +8 -5
  60. package/utils/index.d.ts +0 -1
  61. package/vite-env.d.ts +3 -3
  62. package/theme/defaultThemeOptions.d580f3ec.js +0 -34
  63. package/theme/index.16e25179.js +0 -7
  64. package/theme/palette.287635f2.js +0 -438
  65. package/theme/palette.d.ts +0 -231
  66. package/utils/getColorPresets.a96a4046.js +0 -76
  67. package/utils/getColorState.18b61422.js +0 -256
  68. package/utils/getColorState.d.ts +0 -26
  69. /package/{config.5405b46b.js → config-CoeBxEZB.js} +0 -0
  70. /package/utils/{useResponsive.2c45e8e0.js → useResponsive-DaeQVwlH.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { alpha as o } from "@mui/system";
1
+ import { alpha as t } from "@mui/system";
2
2
  import { alpha as e } from "@mui/material/styles";
3
- const a = (t) => ({
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 = (t) => ({
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: t.vars.palette.text.secondary,
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: t.vars.palette.text.secondary,
48
+ color: o.vars.palette.text.secondary,
47
49
  padding: "4px 8px",
48
50
  backgroundColor: "transparent",
49
51
  height: "100%",
50
- ...t.colorSchemes.finalTheme.typography.body
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: t.vars.palette.text.secondary,
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: t.vars.palette.state.borderPrimary,
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: t.vars.palette.state?.hover
77
+ color: o.vars.palette.primary?.hover
75
78
  },
76
79
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
77
- borderColor: t.vars.palette.state?.hover,
78
- boxShadow: `0px 1px 8px ${o(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`,
79
- background: t.vars.palette.state?.active12
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: t.vars.palette.text.primary
88
+ color: o.vars.palette.text.primary
83
89
  },
84
90
  "& .M4LIcon-icon": {
85
- backgroundColor: t.vars.palette.state?.hover
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: t.vars.palette.state?.active
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: t.vars.palette.state?.active,
96
- boxShadow: `0px 1px 8px ${o(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`,
97
- background: t.vars.palette.state?.active12
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: t.vars.palette.text.primary
110
+ color: o.vars.palette.text.primary
101
111
  },
102
112
  "& .M4LIcon-icon": {
103
- backgroundColor: t.vars.palette.state?.active
113
+ backgroundColor: o.vars.palette.primary?.active
104
114
  }
105
115
  },
116
+ /* State error */
106
117
  "&.M4LRHFTextField-variantError": {
107
118
  "& .M4LRHFTextField-label": {
108
- color: t.vars.palette.state?.error.normal
119
+ color: o.vars.palette.error.main
109
120
  },
110
121
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
111
122
  border: "1px solid",
112
- borderColor: t.vars.palette.state?.error.normal,
113
- background: t.vars.palette.error.opacity
123
+ borderColor: o.vars.palette.error.main,
124
+ background: o.vars.palette.error.activeOpacity
114
125
  },
115
126
  "& .MuiInputBase-input": {
116
- color: t.vars.palette.text.primary
127
+ color: o.vars.palette.text.primary
117
128
  },
118
129
  "& .M4LIcon-icon": {
119
- backgroundColor: t.vars.palette.state?.error.normal
130
+ backgroundColor: o.vars.palette.error.main
120
131
  },
121
132
  "&:hover": {
122
133
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
123
- boxShadow: t.customShadows?.error
134
+ boxShadow: o.customShadows?.error
124
135
  }
125
136
  },
126
137
  "&.M4LRHFTextField-isFocus": {
127
138
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
128
- boxShadow: t.customShadows?.error
139
+ boxShadow: o.customShadows?.error
129
140
  }
130
141
  }
131
142
  },
143
+ /* State disabled */
132
144
  "&.M4LRHFTextField-isDisabled": {
133
145
  "& .M4LRHFTextField-label": {
134
- color: t.vars.palette.text.disabled
146
+ color: o.vars.palette.text.disabled
135
147
  },
136
148
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
137
149
  border: "1px solid",
138
- borderColor: t.vars.palette.state.borderSecondary,
139
- backgroundColor: t.vars.palette.state?.default,
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: t.vars.palette.text.disabled
155
+ color: o.vars.palette.text.disabled
144
156
  },
145
157
  "& .M4LIcon-icon": {
146
- backgroundColor: t.vars.palette.text.disabled
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 = (t) => ({
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
- [t.breakpoints.down("sm")]: {
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: t.spacing(2),
190
- [t.breakpoints.down("sm")]: {
191
- gap: t.spacing(1),
192
- ...t.colorSchemes.finalTheme.typography.paragraph
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: t.vars.palette.text.primary,
197
- ...t.colorSchemes.finalTheme.typography.body
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: t.vars.palette.state?.active12
234
+ backgroundColor: o.vars.palette.primary?.activeOpacity
220
235
  },
221
236
  ".Mui-focusVisible": {
222
237
  border: "1px solid",
223
- borderColor: t.vars.palette.state?.focus
238
+ borderColor: o.vars.palette.primary?.focus
224
239
  },
225
240
  ".MuiButtonBase-root:hover .MuiSvgIcon-root": {
226
- fill: t.vars.palette.state?.hover
241
+ fill: o.vars.palette.primary?.hover
227
242
  },
243
+ /* caso general */
228
244
  ".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
229
- ...t.colorSchemes.finalTheme.typography.body
245
+ ...o.colorSchemes.finalTheme.typography.body
230
246
  },
231
247
  ".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
232
- fill: t.vars.palette.state?.default
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 = (t) => ({
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: t.vars.palette.state.borderPrimary,
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: t.vars.palette.text.secondary,
303
+ color: o.vars.palette.text.secondary,
284
304
  backgroundColor: "transparent",
285
305
  height: "100%",
286
306
  padding: "0 16px 0 8px",
287
- ...t.colorSchemes.finalTheme.typography.body
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: t.vars.palette.state.borderPrimary
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: t.vars.palette.divider,
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: t.vars.palette.text.secondary,
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: t.vars.palette.text.secondary
391
+ color: o.vars.palette.text.secondary
347
392
  },
348
393
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
349
- borderColor: t.vars.palette.state?.hover,
394
+ borderColor: o.vars.palette.primary?.hover,
350
395
  boxShadow: `0px 1px 8px ${e(
351
- t.colorSchemes.finalTheme.palette.primary.main,
396
+ o.colorSchemes.finalTheme.palette.primary.main,
352
397
  0.32
353
398
  )}`
354
399
  },
355
400
  "& .MuiInputBase-input": {
356
- color: t.vars.palette.text.primary
401
+ color: o.vars.palette.text.primary
357
402
  },
358
403
  "& .M4LIcon-icon": {
359
- backgroundColor: t.vars.palette.state?.hover
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: t.vars.palette.state?.active
410
+ color: o.vars.palette.primary?.active
365
411
  },
366
412
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
367
413
  transition: "all .1s ease",
368
- background: t.vars.palette.state.active12,
414
+ background: o.vars.palette.primary.activeOpacity,
369
415
  border: "2px solid",
370
- borderColor: t.vars.palette.state?.active,
416
+ borderColor: o.vars.palette.primary?.active,
371
417
  boxShadow: `0px 1px 8px ${e(
372
- t.colorSchemes.finalTheme.palette.primary.main,
418
+ o.colorSchemes.finalTheme.palette.primary.main,
373
419
  0.32
374
420
  )}`
375
421
  },
376
422
  "& .MuiInputBase-input": {
377
- color: t.vars.palette.text.primary
423
+ color: o.vars.palette.text.primary
378
424
  },
379
425
  "& .M4LIcon-icon": {
380
- backgroundColor: t.vars.palette.state?.active
426
+ backgroundColor: o.vars.palette.primary?.active
381
427
  }
382
428
  },
429
+ /* State error */
383
430
  "&.M4LRHFAutocomplete-variantError": {
384
431
  "& .M4LRHFAutocomplete-label": {
385
- color: t.vars.palette.state?.error.normal
432
+ color: o.vars.palette.error.main
386
433
  },
387
434
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
388
435
  border: "1px solid",
389
- borderColor: t.vars.palette.state?.error.normal
436
+ borderColor: o.vars.palette.error.main
390
437
  },
391
438
  "& .MuiInputBase-input": {
392
- color: t.vars.palette.text.primary
439
+ color: o.vars.palette.text.primary
393
440
  },
394
441
  "& .M4LIcon-icon": {
395
- backgroundColor: t.vars.palette.state?.error.normal
442
+ backgroundColor: o.vars.palette.error.main
396
443
  },
397
444
  "&:hover": {
398
445
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
399
- boxShadow: t.customShadows?.error
446
+ boxShadow: o.customShadows?.error
400
447
  }
401
448
  },
402
449
  "&.M4LRHFAutocomplete-isFocus": {
403
450
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
404
- boxShadow: t.customShadows?.error
451
+ boxShadow: o.customShadows?.error
405
452
  }
406
453
  }
407
454
  },
455
+ /* State disabled */
408
456
  "&.M4LRHFAutocomplete-isDisabled": {
409
457
  "& .M4LRHFAutocomplete-label": {
410
- color: t.vars.palette.text.disabled
458
+ color: o.vars.palette.text.disabled
411
459
  },
412
460
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
413
461
  border: "1px solid",
414
- borderColor: t.vars.palette.state.borderDisable,
415
- backgroundColor: t.vars.palette.state?.default,
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: t.vars.palette.text.disabled
467
+ color: o.vars.palette.text.disabled
420
468
  },
421
469
  "& .M4LIcon-icon": {
422
- backgroundColor: t.vars.palette.text.disabled
470
+ backgroundColor: o.vars.palette.text.disabled
423
471
  }
424
472
  },
473
+ /* Sizes */
425
474
  "&.M4LRHFAutocomplete-sizeSmall": {
426
- [`& .M4LRHFAutocomplete-skeleton,
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
- [`& .M4LRHFAutocomplete-skeleton,
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: t.vars.palette.text.primary,
486
- backgroundColor: t.vars.palette.state.active12
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: t.customShadows?.z2,
601
+ boxShadow: o.customShadows?.z2,
541
602
  "& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
542
- color: t.vars.palette.text.primary,
543
- backgroundColor: t.vars.palette.state.active12
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
- }), s = (t) => ({
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
- }), d = (t) => ({
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 ${t.vars.palette.divider}`,
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: t.vars.palette.text.secondary,
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: t.vars.palette.text.secondary,
708
+ color: o.vars.palette.text.secondary,
645
709
  padding: "0px 12px",
646
710
  backgroundColor: "transparent",
647
711
  height: "100%",
648
- ...t.colorSchemes.finalTheme.typography.body
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: t.vars.palette.text.secondary,
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: t.vars.palette.divider,
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: t.vars.palette.state?.hover
749
+ color: o.vars.palette.primary?.hover
685
750
  },
686
751
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
687
- borderColor: t.vars.palette.state?.hover
752
+ borderColor: o.vars.palette.primary?.hover
688
753
  },
689
754
  "& .MuiInputBase-input": {
690
- color: t.vars.palette.text.primary
755
+ color: o.vars.palette.text.primary
691
756
  },
692
757
  "& .M4LIcon-icon": {
693
- backgroundColor: t.vars.palette.state?.hover
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: t.vars.palette.state.active
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: t.vars.palette.state?.active
769
+ borderColor: o.vars.palette.primary?.active
704
770
  },
705
771
  "& .MuiInputBase-input": {
706
- color: t.vars.palette.text.primary
772
+ color: o.vars.palette.text.primary
707
773
  },
708
774
  "& .M4LIcon-icon": {
709
- backgroundColor: t.vars.palette.state?.active
775
+ backgroundColor: o.vars.palette.primary?.active
710
776
  }
711
777
  },
778
+ /* State error */
712
779
  "&.M4LRHFTextField-variantError": {
713
780
  "& .M4LRHFTextField-label": {
714
- color: t.vars.palette.state?.error.normal
781
+ color: o.vars.palette.error.main
715
782
  },
716
783
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
717
784
  border: "1px solid",
718
- borderColor: t.vars.palette.state?.error.normal
785
+ borderColor: o.vars.palette.error.main
719
786
  },
720
787
  "& .MuiInputBase-input": {
721
- color: t.vars.palette.text.primary
788
+ color: o.vars.palette.text.primary
722
789
  },
723
790
  "& .M4LIcon-icon": {
724
- backgroundColor: t.vars.palette.state?.error.normal
791
+ backgroundColor: o.vars.palette.error.main
725
792
  },
726
793
  "&:hover": {
727
794
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
728
- boxShadow: t.customShadows?.error
795
+ boxShadow: o.customShadows?.error
729
796
  }
730
797
  },
731
798
  "&.M4LRHFTextField-isFocus": {
732
799
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
733
- boxShadow: t.customShadows?.error
800
+ boxShadow: o.customShadows?.error
734
801
  }
735
802
  }
736
803
  },
804
+ /* State disabled */
737
805
  "&.M4LRHFTextField-isDisabled": {
738
806
  "& .M4LRHFTextField-label": {
739
- color: t.vars.palette.text.disabled
807
+ color: o.vars.palette.text.disabled
740
808
  },
741
809
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
742
810
  border: "1px solid",
743
- borderColor: t.vars.palette.text.disabled,
744
- backgroundColor: t.vars.palette.state?.default,
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: t.vars.palette.text.disabled
816
+ color: o.vars.palette.text.disabled
749
817
  },
750
818
  "& .M4LIcon-icon": {
751
- backgroundColor: t.vars.palette.text.disabled
819
+ backgroundColor: o.vars.palette.text.disabled
752
820
  }
753
821
  }
754
822
  }
755
823
  }
756
824
  }
757
- }), u = (t) => ({
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: t.spacing(20),
835
+ minWidth: o.spacing(20),
768
836
  position: "relative",
769
837
  borderRadius: "4px",
770
838
  padding: "8px",
771
- boxShadow: t.customShadows?.z2,
772
- background: t.vars.palette.background.default,
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: t.vars.palette.background.neutral,
854
+ background: o.vars.palette.background.main,
787
855
  "& > *": {
788
856
  width: "100%",
789
857
  height: "100%"
790
858
  },
791
859
  "&:hover": {
792
- background: t.vars.palette.state.active12,
860
+ background: o.vars.palette.primary.activeOpacity,
793
861
  border: "1px solid",
794
- borderColor: t.vars.palette.state.active12,
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: t.transitions.create("opacity", {
817
- easing: t.transitions.easing.easeInOut,
818
- duration: t.transitions.duration.shorter
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
- ...t.colorSchemes.finalTheme.typography.paragraphDens,
853
- color: t.vars.palette.text.primary
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
- ...t.colorSchemes.finalTheme.typography.paragraph,
861
- color: t.vars.palette.text.secondary
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
- ...t.colorSchemes.finalTheme.typography.body,
869
- color: t.vars.palette.text.secondary
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 ${t.vars.palette.divider}`,
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: t.transitions.create("opacity", {
906
- easing: t.transitions.easing.easeInOut,
907
- duration: t.transitions.duration.shorter
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
- }), M = (t) => ({
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
- }), c = (t) => ({
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: t.vars.palette.state.borderPrimary,
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: t.vars.palette.state.hoverDefault
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: t.vars.palette.background.default,
1075
+ background: o.vars.palette.background.default,
998
1076
  padding: "8px",
999
1077
  border: "1px solid",
1000
- borderColor: t.vars.palette.state.borderSecondary,
1078
+ borderColor: o.vars.palette.border.secondary,
1001
1079
  borderRadius: "4px",
1002
- boxShadow: t.vars.customShadows.z4,
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: t.vars.palette.state.borderSecondary,
1097
+ borderColor: o.vars.palette.border.secondary,
1020
1098
  borderRadius: "4px",
1021
- backgroundColor: t.vars.palette.background.default,
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
- ...t.colorSchemes.finalTheme.typography.body,
1033
- color: t.vars.palette.text.secondary,
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: t.vars.palette.state.borderPrimary,
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
- ...t.colorSchemes.finalTheme.typography.body,
1046
- color: `${t.vars.palette.text.primary} !important`
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
- ...t.colorSchemes.finalTheme.typography.body,
1052
- color: `${t.vars.palette.text.secondary} !important`,
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
- s as c,
1074
- d,
1075
- u as e,
1076
- M as f,
1151
+ d as c,
1152
+ u as d,
1153
+ s as e,
1154
+ c as f,
1077
1155
  n as g,
1078
- c as h
1156
+ M as h
1079
1157
  };