@m4l/styles 2.0.4 → 3.1.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 (67) hide show
  1. package/{config-CoeBxEZB.js → config-B8bZIPuH.js} +2 -1
  2. package/config.d.ts +5 -0
  3. package/index.d.ts +1 -1
  4. package/index.js +30 -41
  5. package/package.json +1 -1
  6. package/theme/defaultThemeOptions-BlJvKCE6.js +24 -0
  7. package/theme/index.d.ts +0 -3
  8. package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +1 -1
  9. package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +17 -17
  10. package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +7 -12
  11. package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.d.ts +1 -1
  12. package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +33 -33
  13. package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +2 -2
  14. package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +7 -7
  15. package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +1 -1
  16. package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.d.ts +1 -1
  17. package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.d.ts +1 -1
  18. package/theme/overrides/M4LExtendedComponents/M4LGridLayout.d.ts +1 -1
  19. package/theme/overrides/M4LExtendedComponents/M4LHamburgerMenuCommercial.d.ts +1 -1
  20. package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +4 -4
  21. package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +1 -1
  22. package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +6 -6
  23. package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +41 -41
  24. package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -1
  25. package/theme/overrides/M4LExtendedComponents/M4LScrollBar.d.ts +1 -1
  26. package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +7 -7
  27. package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +1 -1
  28. package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +2 -2
  29. package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -1
  30. package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +15 -15
  31. package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -1
  32. package/theme/overrides/M4LExtendedComponents/{index-CyXBfJc_.js → index-Cf72RC_D.js} +478 -523
  33. package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -1
  34. package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +1 -1
  35. package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +1 -1
  36. package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +2 -2
  37. package/theme/overrides/M4LRHFComponents/{index-D-E6fugB.js → index-BRZVeOM5.js} +161 -155
  38. package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
  39. package/theme/overrides/MUIComponents/Button.d.ts +1 -1
  40. package/theme/overrides/MUIComponents/ButtonGroup.d.ts +1 -1
  41. package/theme/overrides/MUIComponents/Pagination.d.ts +1 -1
  42. package/theme/overrides/MUIComponents/Paper.d.ts +1 -1
  43. package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
  44. package/theme/overrides/MUIComponents/{index-oLVtA5nq.js → index-XoLdmZP6.js} +74 -71
  45. package/theme/overrides/{index-DeiTY8li.js → index-DrDgOdnk.js} +3 -3
  46. package/theme/palette/baseColors.d.ts +2 -0
  47. package/theme/palette/baseOpacityColors.d.ts +2 -0
  48. package/theme/palette/commonColors.d.ts +2 -0
  49. package/theme/palette/greyPalette.d.ts +2 -0
  50. package/theme/palette/index.d.ts +6 -0
  51. package/theme/palette/palette.d.ts +6 -0
  52. package/theme/palette/presetColors.d.ts +5 -0
  53. package/theme/palette/stateColors.d.ts +2 -0
  54. package/theme/palette-DM0gXxA2.js +584 -0
  55. package/theme/{shadows-C9Ji2xrX.js → shadows-GTYqExFA.js} +18 -20
  56. package/types/augmentations.d.ts +144 -137
  57. package/types/types.d.ts +52 -25
  58. package/utils/getColorPresets-CXZaM9oS.js +14 -0
  59. package/utils/getColorPresets.d.ts +4 -9
  60. package/utils/index.d.ts +0 -1
  61. package/vite-env.d.ts +3 -3
  62. package/theme/defaultThemeOptions-CNJ2UmWH.js +0 -31
  63. package/theme/palette-CR1CkF2l.js +0 -439
  64. package/theme/palette.d.ts +0 -231
  65. package/utils/getColorPresets-B12zVrZ8.js +0 -85
  66. package/utils/getColorState-CGc0yrt5.js +0 -263
  67. package/utils/getColorState.d.ts +0 -26
@@ -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,7 +8,7 @@ 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": {
@@ -38,31 +38,31 @@ const a = (t) => ({
38
38
  }
39
39
  },
40
40
  "& .M4LRHFTextField-label": {
41
- color: t.vars.palette.text.secondary,
41
+ color: o.vars.palette.text.secondary,
42
42
  transition: "all .5s ease"
43
43
  },
44
44
  "& .MuiInputBase-root": {
45
45
  padding: "0px",
46
46
  borderRadius: "4px",
47
47
  "& .MuiInputBase-input": {
48
- color: t.vars.palette.text.secondary,
48
+ color: o.vars.palette.text.secondary,
49
49
  padding: "4px 8px",
50
50
  backgroundColor: "transparent",
51
51
  height: "100%",
52
- ...t.colorSchemes.finalTheme.typography.body
52
+ ...o.colorSchemes.finalTheme.typography.body
53
53
  },
54
54
  "& .MuiInputAdornment-root": {
55
55
  margin: "0px",
56
56
  padding: "0px 4px 0 0"
57
57
  },
58
58
  "& .M4LIcon-icon": {
59
- backgroundColor: t.vars.palette.text.secondary,
59
+ backgroundColor: o.vars.palette.text.secondary,
60
60
  transition: "all .3s ease"
61
61
  },
62
62
  "& .MuiOutlinedInput-notchedOutline": {
63
63
  border: "1.3px solid",
64
64
  padding: "4px",
65
- borderColor: t.vars.palette.state.borderPrimary,
65
+ borderColor: o.vars.palette.border.primary,
66
66
  borderRadius: "4px",
67
67
  inset: "0px",
68
68
  transition: "all .3s ease",
@@ -74,82 +74,88 @@ const a = (t) => ({
74
74
  /* State hover */
75
75
  "&:hover": {
76
76
  "& .M4LRHFTextField-label": {
77
- color: t.vars.palette.state?.hover
77
+ color: o.vars.palette.primary?.hover
78
78
  },
79
79
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
80
- borderColor: t.vars.palette.state?.hover,
81
- boxShadow: `0px 1px 8px ${o(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`,
82
- 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
83
86
  },
84
87
  "& .MuiInputBase-input": {
85
- color: t.vars.palette.text.primary
88
+ color: o.vars.palette.text.primary
86
89
  },
87
90
  "& .M4LIcon-icon": {
88
- backgroundColor: t.vars.palette.state?.hover
91
+ backgroundColor: o.vars.palette.primary?.hover
89
92
  }
90
93
  },
91
94
  /* State focus and active */
92
95
  "&.M4LRHFTextField-isFocus": {
93
96
  "& .M4LRHFTextField-label": {
94
- color: t.vars.palette.state?.active
97
+ color: o.vars.palette.primary?.active
95
98
  },
96
99
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
97
100
  transition: "all .1s ease",
98
101
  border: "2px solid",
99
- borderColor: t.vars.palette.state?.active,
100
- boxShadow: `0px 1px 8px ${o(t.colorSchemes.finalTheme.palette.primary.main, 0.32)}`,
101
- 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
102
108
  },
103
109
  "& .MuiInputBase-input": {
104
- color: t.vars.palette.text.primary
110
+ color: o.vars.palette.text.primary
105
111
  },
106
112
  "& .M4LIcon-icon": {
107
- backgroundColor: t.vars.palette.state?.active
113
+ backgroundColor: o.vars.palette.primary?.active
108
114
  }
109
115
  },
110
116
  /* State error */
111
117
  "&.M4LRHFTextField-variantError": {
112
118
  "& .M4LRHFTextField-label": {
113
- color: t.vars.palette.state?.error.normal
119
+ color: o.vars.palette.error.main
114
120
  },
115
121
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
116
122
  border: "1px solid",
117
- borderColor: t.vars.palette.state?.error.normal,
118
- background: t.vars.palette.error.opacity
123
+ borderColor: o.vars.palette.error.main,
124
+ background: o.vars.palette.error.activeOpacity
119
125
  },
120
126
  "& .MuiInputBase-input": {
121
- color: t.vars.palette.text.primary
127
+ color: o.vars.palette.text.primary
122
128
  },
123
129
  "& .M4LIcon-icon": {
124
- backgroundColor: t.vars.palette.state?.error.normal
130
+ backgroundColor: o.vars.palette.error.main
125
131
  },
126
132
  "&:hover": {
127
133
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
128
- boxShadow: t.customShadows?.error
134
+ boxShadow: o.customShadows?.error
129
135
  }
130
136
  },
131
137
  "&.M4LRHFTextField-isFocus": {
132
138
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
133
- boxShadow: t.customShadows?.error
139
+ boxShadow: o.customShadows?.error
134
140
  }
135
141
  }
136
142
  },
137
143
  /* State disabled */
138
144
  "&.M4LRHFTextField-isDisabled": {
139
145
  "& .M4LRHFTextField-label": {
140
- color: t.vars.palette.text.disabled
146
+ color: o.vars.palette.text.disabled
141
147
  },
142
148
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
143
149
  border: "1px solid",
144
- borderColor: t.vars.palette.state.borderSecondary,
145
- backgroundColor: t.vars.palette.state?.default,
150
+ borderColor: o.vars.palette.border.secondary,
151
+ backgroundColor: o.vars.palette.background?.default,
146
152
  boxShadow: "none"
147
153
  },
148
154
  "& .MuiInputBase-input": {
149
- color: t.vars.palette.text.disabled
155
+ color: o.vars.palette.text.disabled
150
156
  },
151
157
  "& .M4LIcon-icon": {
152
- backgroundColor: t.vars.palette.text.disabled
158
+ backgroundColor: o.vars.palette.text.disabled
153
159
  }
154
160
  },
155
161
  /* Sizes */
@@ -172,14 +178,14 @@ const a = (t) => ({
172
178
  }
173
179
  }
174
180
  }
175
- }), n = (t) => ({
181
+ }), n = (o) => ({
176
182
  M4LRHFCheckbox: {
177
183
  styleOverrides: {
178
184
  "&.M4LRHFCheckbox-root": {
179
185
  display: "flex",
180
186
  flexDirection: "column",
181
187
  width: "100%",
182
- [t.breakpoints.down("sm")]: {
188
+ [o.breakpoints.down("sm")]: {
183
189
  "& .M4LRHFCheckbox-checkTypography": {
184
190
  "& .M4LCheckBox-root": {
185
191
  "& .MuiButtonBase-root": {
@@ -193,15 +199,15 @@ const a = (t) => ({
193
199
  },
194
200
  ".M4LRHFCheckbox-checkTypography": {
195
201
  display: "flex",
196
- gap: t.spacing(2),
197
- [t.breakpoints.down("sm")]: {
198
- gap: t.spacing(1),
199
- ...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
200
206
  }
201
207
  },
202
208
  "& .MuiTypography-root": {
203
- color: t.vars.palette.text.primary,
204
- ...t.colorSchemes.finalTheme.typography.body
209
+ color: o.vars.palette.text.primary,
210
+ ...o.colorSchemes.finalTheme.typography.body
205
211
  },
206
212
  /* caso small */
207
213
  ".M4LRHFCheckbox-small .MuiButtonBase-root": {
@@ -225,21 +231,21 @@ const a = (t) => ({
225
231
  borderRadius: "4px"
226
232
  },
227
233
  ".MuiButtonBase-root:hover": {
228
- backgroundColor: t.vars.palette.state?.active12
234
+ backgroundColor: o.vars.palette.primary?.activeOpacity
229
235
  },
230
236
  ".Mui-focusVisible": {
231
237
  border: "1px solid",
232
- borderColor: t.vars.palette.state?.focus
238
+ borderColor: o.vars.palette.primary?.focus
233
239
  },
234
240
  ".MuiButtonBase-root:hover .MuiSvgIcon-root": {
235
- fill: t.vars.palette.state?.hover
241
+ fill: o.vars.palette.primary?.hover
236
242
  },
237
243
  /* caso general */
238
244
  ".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
239
- ...t.colorSchemes.finalTheme.typography.body
245
+ ...o.colorSchemes.finalTheme.typography.body
240
246
  },
241
247
  ".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
242
- fill: t.vars.palette.state?.default
248
+ fill: o.vars.palette.background?.default
243
249
  },
244
250
  /* selector del caso focus por tab */
245
251
  ".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
@@ -248,7 +254,7 @@ const a = (t) => ({
248
254
  }
249
255
  }
250
256
  }
251
- }), p = (t) => ({
257
+ }), p = (o) => ({
252
258
  M4LRHFAutocomplete: {
253
259
  styleOverrides: {
254
260
  "&.M4LRHFAutocomplete-root": {
@@ -288,17 +294,17 @@ const a = (t) => ({
288
294
  "& .MuiFormControl-root": {
289
295
  height: "100%",
290
296
  "& .MuiInputBase-root": {
291
- borderColor: t.vars.palette.state.borderPrimary,
297
+ borderColor: o.vars.palette.border.primary,
292
298
  position: "relative",
293
299
  height: "100%",
294
300
  "& .MuiInputBase-input": {
295
301
  /* Selector del elemento html input */
296
302
  boxSizing: "border-box",
297
- color: t.vars.palette.text.secondary,
303
+ color: o.vars.palette.text.secondary,
298
304
  backgroundColor: "transparent",
299
305
  height: "100%",
300
306
  padding: "0 16px 0 8px",
301
- ...t.colorSchemes.finalTheme.typography.body
307
+ ...o.colorSchemes.finalTheme.typography.body
302
308
  /* '& .MuiInputAdornment-root': {
303
309
  margin: '0px',
304
310
  padding: '0px',
@@ -311,7 +317,7 @@ const a = (t) => ({
311
317
 
312
318
  '& .MuiOutlinedInput-notchedOutline': {
313
319
  border: '1px solid',
314
- borderColor: theme.vars.palette.state.borderPrimary,
320
+ borderColor: theme.vars.palette.border.primary,
315
321
  borderRadius: '4px',
316
322
  inset: '0px',
317
323
  transition: 'all .3s ease',
@@ -327,7 +333,7 @@ const a = (t) => ({
327
333
  width: "auto",
328
334
  "& .M4LRHFAutocomplete-iconLeft": {
329
335
  borderLeft: "1px solid",
330
- borderColor: t.vars.palette.state.borderPrimary
336
+ borderColor: o.vars.palette.border.primary
331
337
  }
332
338
  },
333
339
  "& .M4LRHFAutocomplete-iconDown": {},
@@ -353,7 +359,7 @@ const a = (t) => ({
353
359
  justifyContent: "space-between",
354
360
  alignItems: "center",
355
361
  border: "1px solid",
356
- borderColor: t.vars.palette.divider,
362
+ borderColor: o.vars.palette.divider,
357
363
  borderRadius: "4px",
358
364
  padding: "0 10px",
359
365
  overflow: "hidden",
@@ -368,7 +374,7 @@ const a = (t) => ({
368
374
  padding: "0"
369
375
  },
370
376
  "& .M4LRHFAutocomplete-label": {
371
- color: t.vars.palette.text.secondary,
377
+ color: o.vars.palette.text.secondary,
372
378
  transition: "all .3s ease"
373
379
  },
374
380
  "& .MuiAutocomplete-endAdornment": {
@@ -382,86 +388,86 @@ const a = (t) => ({
382
388
  /* State hover */
383
389
  "&:hover": {
384
390
  "& .M4LRHFAutocomplete-label": {
385
- color: t.vars.palette.text.secondary
391
+ color: o.vars.palette.text.secondary
386
392
  },
387
393
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
388
- borderColor: t.vars.palette.state?.hover,
394
+ borderColor: o.vars.palette.primary?.hover,
389
395
  boxShadow: `0px 1px 8px ${e(
390
- t.colorSchemes.finalTheme.palette.primary.main,
396
+ o.colorSchemes.finalTheme.palette.primary.main,
391
397
  0.32
392
398
  )}`
393
399
  },
394
400
  "& .MuiInputBase-input": {
395
- color: t.vars.palette.text.primary
401
+ color: o.vars.palette.text.primary
396
402
  },
397
403
  "& .M4LIcon-icon": {
398
- backgroundColor: t.vars.palette.state?.hover
404
+ backgroundColor: o.vars.palette.primary?.hover
399
405
  }
400
406
  },
401
407
  /* State focus and active */
402
408
  "&.M4LRHFAutocomplete-isFocus": {
403
409
  "& .M4LRHFAutocomplete-label": {
404
- color: t.vars.palette.state?.active
410
+ color: o.vars.palette.primary?.active
405
411
  },
406
412
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
407
413
  transition: "all .1s ease",
408
- background: t.vars.palette.state.active12,
414
+ background: o.vars.palette.primary.activeOpacity,
409
415
  border: "2px solid",
410
- borderColor: t.vars.palette.state?.active,
416
+ borderColor: o.vars.palette.primary?.active,
411
417
  boxShadow: `0px 1px 8px ${e(
412
- t.colorSchemes.finalTheme.palette.primary.main,
418
+ o.colorSchemes.finalTheme.palette.primary.main,
413
419
  0.32
414
420
  )}`
415
421
  },
416
422
  "& .MuiInputBase-input": {
417
- color: t.vars.palette.text.primary
423
+ color: o.vars.palette.text.primary
418
424
  },
419
425
  "& .M4LIcon-icon": {
420
- backgroundColor: t.vars.palette.state?.active
426
+ backgroundColor: o.vars.palette.primary?.active
421
427
  }
422
428
  },
423
429
  /* State error */
424
430
  "&.M4LRHFAutocomplete-variantError": {
425
431
  "& .M4LRHFAutocomplete-label": {
426
- color: t.vars.palette.state?.error.normal
432
+ color: o.vars.palette.error.main
427
433
  },
428
434
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
429
435
  border: "1px solid",
430
- borderColor: t.vars.palette.state?.error.normal
436
+ borderColor: o.vars.palette.error.main
431
437
  },
432
438
  "& .MuiInputBase-input": {
433
- color: t.vars.palette.text.primary
439
+ color: o.vars.palette.text.primary
434
440
  },
435
441
  "& .M4LIcon-icon": {
436
- backgroundColor: t.vars.palette.state?.error.normal
442
+ backgroundColor: o.vars.palette.error.main
437
443
  },
438
444
  "&:hover": {
439
445
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
440
- boxShadow: t.customShadows?.error
446
+ boxShadow: o.customShadows?.error
441
447
  }
442
448
  },
443
449
  "&.M4LRHFAutocomplete-isFocus": {
444
450
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
445
- boxShadow: t.customShadows?.error
451
+ boxShadow: o.customShadows?.error
446
452
  }
447
453
  }
448
454
  },
449
455
  /* State disabled */
450
456
  "&.M4LRHFAutocomplete-isDisabled": {
451
457
  "& .M4LRHFAutocomplete-label": {
452
- color: t.vars.palette.text.disabled
458
+ color: o.vars.palette.text.disabled
453
459
  },
454
460
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
455
461
  border: "1px solid",
456
- borderColor: t.vars.palette.state.borderDisable,
457
- backgroundColor: t.vars.palette.state?.default,
462
+ borderColor: o.vars.palette.border.disabled,
463
+ backgroundColor: o.vars.palette.background?.default,
458
464
  boxShadow: "none"
459
465
  },
460
466
  "& .MuiInputBase-input": {
461
- color: t.vars.palette.text.disabled
467
+ color: o.vars.palette.text.disabled
462
468
  },
463
469
  "& .M4LIcon-icon": {
464
- backgroundColor: t.vars.palette.text.disabled
470
+ backgroundColor: o.vars.palette.text.disabled
465
471
  }
466
472
  },
467
473
  /* Sizes */
@@ -530,8 +536,8 @@ const a = (t) => ({
530
536
  gap: "8px",
531
537
  // Estados por evento de usuario
532
538
  "&:hover": {
533
- color: t.vars.palette.text.primary,
534
- backgroundColor: t.vars.palette.state.active12
539
+ color: o.vars.palette.text.primary,
540
+ backgroundColor: o.vars.palette.primary.activeOpacity
535
541
  },
536
542
  "& .M4LImage-root": {
537
543
  width: "auto",
@@ -592,10 +598,10 @@ const a = (t) => ({
592
598
  }
593
599
  },
594
600
  "& .MuiPaper-root": {
595
- boxShadow: t.customShadows?.z2,
601
+ boxShadow: o.customShadows?.z2,
596
602
  "& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
597
- color: t.vars.palette.text.primary,
598
- backgroundColor: t.vars.palette.state.active12
603
+ color: o.vars.palette.text.primary,
604
+ backgroundColor: o.vars.palette.primary.activeOpacity
599
605
  }
600
606
  }
601
607
  }
@@ -627,7 +633,7 @@ const a = (t) => ({
627
633
  }
628
634
  }
629
635
  }
630
- }), s = (t) => ({
636
+ }), d = (o) => ({
631
637
  M4LRHFAutocompleteAsync: {
632
638
  styleOverrides: {
633
639
  "&.M4LRHFAutocompleteAsync-root": {
@@ -636,7 +642,7 @@ const a = (t) => ({
636
642
  }
637
643
  }
638
644
  }
639
- }), d = (t) => ({
645
+ }), u = (o) => ({
640
646
  M4LRHFDateTime: {
641
647
  styleOverrides: {
642
648
  "&.M4LRHFDateTime-root": {
@@ -651,7 +657,7 @@ const a = (t) => ({
651
657
  width: "100%",
652
658
  alignItems: "center",
653
659
  justifyContent: "space-between",
654
- border: `1px solid ${t.vars.palette.divider}`,
660
+ border: `1px solid ${o.vars.palette.divider}`,
655
661
  paddingLeft: "12px",
656
662
  borderRadius: "2px",
657
663
  "& .MuiSkeleton-circular": {
@@ -693,17 +699,17 @@ const a = (t) => ({
693
699
  }
694
700
  },
695
701
  "& .M4LRHFTextField-label": {
696
- color: t.vars.palette.text.secondary,
702
+ color: o.vars.palette.text.secondary,
697
703
  transition: "all .5s ease"
698
704
  },
699
705
  "& .MuiInputBase-root.MuiInputBase-formControl": {
700
706
  padding: "0px 8px 0 0",
701
707
  "& .MuiInputBase-input": {
702
- color: t.vars.palette.text.secondary,
708
+ color: o.vars.palette.text.secondary,
703
709
  padding: "0px 12px",
704
710
  backgroundColor: "transparent",
705
711
  height: "100%",
706
- ...t.colorSchemes.finalTheme.typography.body
712
+ ...o.colorSchemes.finalTheme.typography.body
707
713
  },
708
714
  "& .MuiInputAdornment-root": {
709
715
  margin: "0px",
@@ -722,13 +728,13 @@ const a = (t) => ({
722
728
  }
723
729
  },
724
730
  "& .M4LIcon-icon": {
725
- backgroundColor: t.vars.palette.text.secondary,
731
+ backgroundColor: o.vars.palette.text.secondary,
726
732
  transition: "all .3s ease"
727
733
  },
728
734
  "& .MuiOutlinedInput-notchedOutline": {
729
735
  border: "1px solid",
730
736
  padding: "4px",
731
- borderColor: t.vars.palette.divider,
737
+ borderColor: o.vars.palette.divider,
732
738
  borderRadius: "4px",
733
739
  inset: "0px",
734
740
  transition: "all .3s ease",
@@ -740,83 +746,83 @@ const a = (t) => ({
740
746
  /* State hover */
741
747
  "&:hover": {
742
748
  "& .M4LTypography-root": {
743
- color: t.vars.palette.state?.hover
749
+ color: o.vars.palette.primary?.hover
744
750
  },
745
751
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
746
- borderColor: t.vars.palette.state?.hover
752
+ borderColor: o.vars.palette.primary?.hover
747
753
  },
748
754
  "& .MuiInputBase-input": {
749
- color: t.vars.palette.text.primary
755
+ color: o.vars.palette.text.primary
750
756
  },
751
757
  "& .M4LIcon-icon": {
752
- backgroundColor: t.vars.palette.state?.hover
758
+ backgroundColor: o.vars.palette.primary?.hover
753
759
  }
754
760
  },
755
761
  /* State focus and active */
756
762
  "&.M4LRHFDateTime-isFocus": {
757
763
  "& .M4LTypography-root": {
758
- color: t.vars.palette.state.active
764
+ color: o.vars.palette.primary.active
759
765
  },
760
766
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
761
767
  transition: "all .1s ease",
762
768
  border: "2px solid",
763
- borderColor: t.vars.palette.state?.active
769
+ borderColor: o.vars.palette.primary?.active
764
770
  },
765
771
  "& .MuiInputBase-input": {
766
- color: t.vars.palette.text.primary
772
+ color: o.vars.palette.text.primary
767
773
  },
768
774
  "& .M4LIcon-icon": {
769
- backgroundColor: t.vars.palette.state?.active
775
+ backgroundColor: o.vars.palette.primary?.active
770
776
  }
771
777
  },
772
778
  /* State error */
773
779
  "&.M4LRHFTextField-variantError": {
774
780
  "& .M4LRHFTextField-label": {
775
- color: t.vars.palette.state?.error.normal
781
+ color: o.vars.palette.error.main
776
782
  },
777
783
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
778
784
  border: "1px solid",
779
- borderColor: t.vars.palette.state?.error.normal
785
+ borderColor: o.vars.palette.error.main
780
786
  },
781
787
  "& .MuiInputBase-input": {
782
- color: t.vars.palette.text.primary
788
+ color: o.vars.palette.text.primary
783
789
  },
784
790
  "& .M4LIcon-icon": {
785
- backgroundColor: t.vars.palette.state?.error.normal
791
+ backgroundColor: o.vars.palette.error.main
786
792
  },
787
793
  "&:hover": {
788
794
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
789
- boxShadow: t.customShadows?.error
795
+ boxShadow: o.customShadows?.error
790
796
  }
791
797
  },
792
798
  "&.M4LRHFTextField-isFocus": {
793
799
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
794
- boxShadow: t.customShadows?.error
800
+ boxShadow: o.customShadows?.error
795
801
  }
796
802
  }
797
803
  },
798
804
  /* State disabled */
799
805
  "&.M4LRHFTextField-isDisabled": {
800
806
  "& .M4LRHFTextField-label": {
801
- color: t.vars.palette.text.disabled
807
+ color: o.vars.palette.text.disabled
802
808
  },
803
809
  "& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
804
810
  border: "1px solid",
805
- borderColor: t.vars.palette.text.disabled,
806
- backgroundColor: t.vars.palette.state?.default,
811
+ borderColor: o.vars.palette.text.disabled,
812
+ backgroundColor: o.vars.palette.background?.default,
807
813
  boxShadow: "none"
808
814
  },
809
815
  "& .MuiInputBase-input": {
810
- color: t.vars.palette.text.disabled
816
+ color: o.vars.palette.text.disabled
811
817
  },
812
818
  "& .M4LIcon-icon": {
813
- backgroundColor: t.vars.palette.text.disabled
819
+ backgroundColor: o.vars.palette.text.disabled
814
820
  }
815
821
  }
816
822
  }
817
823
  }
818
824
  }
819
- }), u = (t) => ({
825
+ }), s = (o) => ({
820
826
  M4LRHFUploadImage: {
821
827
  styleOverrides: {
822
828
  "&.M4LRHFUploadImage-root": {
@@ -826,12 +832,12 @@ const a = (t) => ({
826
832
  width: "100%",
827
833
  height: "100%",
828
834
  minHeight: "200px",
829
- minWidth: t.spacing(20),
835
+ minWidth: o.spacing(20),
830
836
  position: "relative",
831
837
  borderRadius: "4px",
832
838
  padding: "8px",
833
- boxShadow: t.customShadows?.z2,
834
- background: t.vars.palette.background.default,
839
+ boxShadow: o.customShadows?.z2,
840
+ background: o.vars.palette.background.default,
835
841
  "& .M4LRHFUploadImage-dropZoneStyle": {
836
842
  zIndex: 0,
837
843
  width: "fit-content",
@@ -845,15 +851,15 @@ const a = (t) => ({
845
851
  inset: "0",
846
852
  alignItems: "center",
847
853
  justifyContent: "center",
848
- background: t.vars.palette.background.neutral,
854
+ background: o.vars.palette.background.main,
849
855
  "& > *": {
850
856
  width: "100%",
851
857
  height: "100%"
852
858
  },
853
859
  "&:hover": {
854
- background: t.vars.palette.state.active12,
860
+ background: o.vars.palette.primary.activeOpacity,
855
861
  border: "1px solid",
856
- borderColor: t.vars.palette.state.active12,
862
+ borderColor: o.vars.palette.primary.activeOpacity,
857
863
  cursor: "pointer",
858
864
  "& .placeholder": {
859
865
  zIndex: 9
@@ -875,9 +881,9 @@ const a = (t) => ({
875
881
  width: "100%",
876
882
  height: "100%",
877
883
  overflow: "hidden",
878
- transition: t.transitions.create("opacity", {
879
- easing: t.transitions.easing.easeInOut,
880
- duration: t.transitions.duration.shorter
884
+ transition: o.transitions.create("opacity", {
885
+ easing: o.transitions.easing.easeInOut,
886
+ duration: o.transitions.duration.shorter
881
887
  }),
882
888
  "&:hover": {
883
889
  opacity: 1
@@ -912,24 +918,24 @@ const a = (t) => ({
912
918
  display: "flex",
913
919
  justifyContent: "center",
914
920
  ".MuiTypography-subtitle": {
915
- ...t.colorSchemes.finalTheme.typography.paragraphDens,
916
- color: t.vars.palette.text.primary
921
+ ...o.colorSchemes.finalTheme.typography.paragraphDens,
922
+ color: o.vars.palette.text.primary
917
923
  }
918
924
  },
919
925
  "& .M4LRHFUploadImage-containerDescription": {
920
926
  display: "flex",
921
927
  justifyContent: "center",
922
928
  ".MuiTypography-root": {
923
- ...t.colorSchemes.finalTheme.typography.paragraph,
924
- color: t.vars.palette.text.secondary
929
+ ...o.colorSchemes.finalTheme.typography.paragraph,
930
+ color: o.vars.palette.text.secondary
925
931
  }
926
932
  },
927
933
  "& .M4LRHFUploadImage-containerConditions": {
928
934
  display: "flex",
929
935
  justifyContent: "center",
930
936
  ".MuiTypography-root": {
931
- ...t.colorSchemes.finalTheme.typography.body,
932
- color: t.vars.palette.text.secondary
937
+ ...o.colorSchemes.finalTheme.typography.body,
938
+ color: o.vars.palette.text.secondary
933
939
  }
934
940
  },
935
941
  "& .M4LButton-root": {
@@ -942,12 +948,12 @@ const a = (t) => ({
942
948
  }
943
949
  }
944
950
  },
945
- // Skeleton
951
+ // Skeleton
946
952
  "& .M4LRHFUploadImage-skeleton": {
947
953
  maskPosition: "center!important",
948
954
  maskRepeat: "no-repeat!important",
949
955
  WebkitMaskRepeat: "no-repeat!important",
950
- border: `1px dashed ${t.vars.palette.divider}`,
956
+ border: `1px dashed ${o.vars.palette.divider}`,
951
957
  width: "100%",
952
958
  height: "100%",
953
959
  mask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')",
@@ -967,14 +973,14 @@ const a = (t) => ({
967
973
  width: "100%",
968
974
  height: "100%",
969
975
  overflow: "hidden",
970
- transition: t.transitions.create("opacity", {
971
- easing: t.transitions.easing.easeInOut,
972
- duration: t.transitions.duration.shorter
976
+ transition: o.transitions.create("opacity", {
977
+ easing: o.transitions.easing.easeInOut,
978
+ duration: o.transitions.duration.shorter
973
979
  }),
974
980
  "&:hover": {
975
981
  opacity: 1
976
982
  },
977
- // Comportamiento Hover imagen cargada
983
+ // Comportamiento Hover imagen cargada
978
984
  "& .M4LRHFUploadImage-containerUploadBoddy": {
979
985
  "& .M4LRHFUploadImage-containerBodyImage": {
980
986
  opacity: "0"
@@ -1000,7 +1006,7 @@ const a = (t) => ({
1000
1006
  }
1001
1007
  }
1002
1008
  }
1003
- }), M = (t) => ({
1009
+ }), c = (o) => ({
1004
1010
  M4LRHFPeriod: {
1005
1011
  styleOverrides: {
1006
1012
  "&.M4LRHFPeriod-root": {
@@ -1008,7 +1014,7 @@ const a = (t) => ({
1008
1014
  }
1009
1015
  }
1010
1016
  }
1011
- }), c = (t) => ({
1017
+ }), M = (o) => ({
1012
1018
  M4LRHFColorPicker: {
1013
1019
  styleOverrides: {
1014
1020
  "&.M4LRHFColorPicker-root": {
@@ -1043,20 +1049,20 @@ const a = (t) => ({
1043
1049
  gap: "4px",
1044
1050
  padding: "2px",
1045
1051
  border: "1.5px solid",
1046
- borderColor: t.vars.palette.state.borderPrimary,
1052
+ borderColor: o.vars.palette.border.primary,
1047
1053
  borderRadius: "4px",
1048
1054
  width: "fit-content",
1049
1055
  "& .M4LRHFColorPicker-boxColor": {
1050
1056
  cursor: "pointer"
1051
1057
  },
1052
1058
  /* '& .M4LIcon-root': {
1053
- minHeight: '18px',
1054
- minWidth: '18px',
1055
- cursor: 'pointer',
1056
- borderRadius: '4px',
1057
- }, */
1059
+ minHeight: '18px',
1060
+ minWidth: '18px',
1061
+ cursor: 'pointer',
1062
+ borderRadius: '4px',
1063
+ }, */
1058
1064
  "& .M4LIcon-root:hover": {
1059
- background: t.vars.palette.state.hoverDefault
1065
+ background: o.vars.palette.background.hover
1060
1066
  }
1061
1067
  }
1062
1068
  }
@@ -1066,12 +1072,12 @@ const a = (t) => ({
1066
1072
  styleOverrides: {
1067
1073
  "&.M4LRHFColorPicker-popoverRoot": {
1068
1074
  "& .MuiPaper-root": {
1069
- background: t.vars.palette.background.default,
1075
+ background: o.vars.palette.background.default,
1070
1076
  padding: "8px",
1071
1077
  border: "1px solid",
1072
- borderColor: t.vars.palette.state.borderSecondary,
1078
+ borderColor: o.vars.palette.border.secondary,
1073
1079
  borderRadius: "4px",
1074
- boxShadow: t.vars.customShadows.z4,
1080
+ boxShadow: o.vars.customShadows.z4,
1075
1081
  test: "root",
1076
1082
  "& .M4LRHFColorPicker-containerPicker": {
1077
1083
  background: "transparent",
@@ -1088,9 +1094,9 @@ const a = (t) => ({
1088
1094
  flexDirection: "column",
1089
1095
  gap: "8px",
1090
1096
  border: "1px solid",
1091
- borderColor: t.vars.palette.state.borderSecondary,
1097
+ borderColor: o.vars.palette.border.secondary,
1092
1098
  borderRadius: "4px",
1093
- backgroundColor: t.vars.palette.background.default,
1099
+ backgroundColor: o.vars.palette.background.default,
1094
1100
  "& :nth-of-type(-n + 1)": {
1095
1101
  borderRadius: "4px"
1096
1102
  },
@@ -1101,27 +1107,27 @@ const a = (t) => ({
1101
1107
  "& > div": {
1102
1108
  display: "flex",
1103
1109
  flexDirection: "column-reverse",
1104
- ...t.colorSchemes.finalTheme.typography.body,
1105
- color: t.vars.palette.text.secondary,
1110
+ ...o.colorSchemes.finalTheme.typography.body,
1111
+ color: o.vars.palette.text.secondary,
1106
1112
  gap: "2px",
1107
1113
  padding: "0 important",
1108
1114
  "& > input": {
1109
1115
  display: "flex",
1110
1116
  textAlign: "center !important",
1111
1117
  border: "1px solid",
1112
- borderColor: t.vars.palette.state.borderPrimary,
1118
+ borderColor: o.vars.palette.border.primary,
1113
1119
  borderRadius: "2px",
1114
1120
  background: "transparent",
1115
1121
  minHeight: "24px",
1116
1122
  height: "24px !important",
1117
- ...t.colorSchemes.finalTheme.typography.body,
1118
- color: `${t.vars.palette.text.primary} !important`
1123
+ ...o.colorSchemes.finalTheme.typography.body,
1124
+ color: `${o.vars.palette.text.primary} !important`
1119
1125
  },
1120
1126
  "& > label": {
1121
1127
  display: "flex",
1122
1128
  textAlign: "left !important",
1123
- ...t.colorSchemes.finalTheme.typography.body,
1124
- color: `${t.vars.palette.text.secondary} !important`,
1129
+ ...o.colorSchemes.finalTheme.typography.body,
1130
+ color: `${o.vars.palette.text.secondary} !important`,
1125
1131
  padding: "0 !important"
1126
1132
  }
1127
1133
  }
@@ -1142,10 +1148,10 @@ export {
1142
1148
  l as M,
1143
1149
  a,
1144
1150
  p as b,
1145
- s as c,
1146
- d,
1147
- u as e,
1148
- M as f,
1151
+ d as c,
1152
+ u as d,
1153
+ s as e,
1154
+ c as f,
1149
1155
  n as g,
1150
- c as h
1156
+ M as h
1151
1157
  };