@m4l/styles 3.2.2 → 6.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 +33 -41
- package/package.json +1 -1
- package/theme/defaultThemeOptions-DVY68pts.js +125 -0
- package/theme/defaultThemeOptions.d.ts +2 -1
- package/theme/index.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/{index.dbc24a3d.js → index-BO_x8lkT.js} +595 -274
- package/theme/overrides/M4LRHFComponents/{index.7d702163.js → index-Dv4h8DSV.js} +109 -37
- package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
- package/theme/overrides/MUIComponents/Input.d.ts +1 -1
- package/theme/overrides/MUIComponents/Progress.d.ts +1 -1
- package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
- package/theme/overrides/MUIComponents/{index.2b5bc914.js → index-DrBJTI1s.js} +108 -61
- package/theme/overrides/{index.cc540e59.js → index-BOMUIneQ.js} +20 -14
- package/theme/palette/baseOpacityColors.d.ts +3 -0
- package/theme/palette/defaultColors.d.ts +14 -0
- package/theme/palette/index.d.ts +0 -1
- package/theme/palette/presetColors.d.ts +18 -4
- package/theme/palette/semanticColors.d.ts +16 -0
- package/theme/palette-voCQl3kP.js +792 -0
- package/theme/{shadows.67c0a60a.js → shadows-Cek_1mpN.js} +2 -1
- package/theme/{typography.616cfe0c.js → typography-BsOO459U.js} +11 -1
- package/types/augmentations.d.ts +160 -155
- package/types/types.d.ts +72 -31
- package/utils/{getColorPresets.38329841.js → getColorPresets-DgmrCj5l.js} +1 -1
- package/utils/getColorPresets.d.ts +4 -4
- package/utils/getColorState.d.ts +2 -2
- package/utils/{getFontValue.88831637.js → getFontValue-BEO-XID9.js} +8 -5
- package/utils/getPaletteByPreset.d.ts +127 -0
- package/utils/index.d.ts +1 -0
- package/vite-env.d.ts +3 -3
- package/theme/defaultThemeOptions.b39953a8.js +0 -24
- package/theme/palette/palette.d.ts +0 -6
- package/theme/palette/stateColors.d.ts +0 -2
- package/theme/palette.fc293d0e.js +0 -575
- /package/{config.3bb6415c.js → config-B8bZIPuH.js} +0 -0
- /package/theme/{index.34d0fdea.js → index-l0sNRNKZ.js} +0 -0
- /package/utils/{getColorState.b8092fb6.js → getColorState-D1JKXD4T.js} +0 -0
- /package/utils/{useResponsive.2c45e8e0.js → useResponsive-DaeQVwlH.js} +0 -0
|
@@ -12,11 +12,13 @@ const a = (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": {
|
|
@@ -60,7 +62,7 @@ const a = (o) => ({
|
|
|
60
62
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
61
63
|
border: "1.3px solid",
|
|
62
64
|
padding: "4px",
|
|
63
|
-
borderColor: o.vars.palette
|
|
65
|
+
borderColor: o.vars.palette?.border.default,
|
|
64
66
|
borderRadius: "4px",
|
|
65
67
|
inset: "0px",
|
|
66
68
|
transition: "all .3s ease",
|
|
@@ -69,6 +71,7 @@ const a = (o) => ({
|
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
},
|
|
74
|
+
/* State hover */
|
|
72
75
|
"&:hover": {
|
|
73
76
|
"& .M4LRHFTextField-label": {
|
|
74
77
|
color: o.vars.palette.primary?.hover
|
|
@@ -79,7 +82,7 @@ const a = (o) => ({
|
|
|
79
82
|
o.colorSchemes.finalTheme.palette.primary.main,
|
|
80
83
|
0.32
|
|
81
84
|
)}`,
|
|
82
|
-
background: o.vars.palette.primary.
|
|
85
|
+
background: o.vars.palette.primary.opacity
|
|
83
86
|
},
|
|
84
87
|
"& .MuiInputBase-input": {
|
|
85
88
|
color: o.vars.palette.text.primary
|
|
@@ -88,27 +91,29 @@ const a = (o) => ({
|
|
|
88
91
|
backgroundColor: o.vars.palette.primary?.hover
|
|
89
92
|
}
|
|
90
93
|
},
|
|
94
|
+
/* State focus and active */
|
|
91
95
|
"&.M4LRHFTextField-isFocus": {
|
|
92
96
|
"& .M4LRHFTextField-label": {
|
|
93
|
-
color: o.vars.palette.primary
|
|
97
|
+
color: o.vars.palette.primary.focusActive
|
|
94
98
|
},
|
|
95
99
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
96
100
|
transition: "all .1s ease",
|
|
97
101
|
border: "2px solid",
|
|
98
|
-
borderColor: o.vars.palette.primary
|
|
102
|
+
borderColor: o.vars.palette.primary.focusActive,
|
|
99
103
|
boxShadow: `0px 1px 8px ${t(
|
|
100
104
|
o.colorSchemes.finalTheme.palette.primary.main,
|
|
101
105
|
0.32
|
|
102
106
|
)}`,
|
|
103
|
-
background: o.vars.palette.primary
|
|
107
|
+
background: o.vars.palette.primary.opacity
|
|
104
108
|
},
|
|
105
109
|
"& .MuiInputBase-input": {
|
|
106
110
|
color: o.vars.palette.text.primary
|
|
107
111
|
},
|
|
108
112
|
"& .M4LIcon-icon": {
|
|
109
|
-
backgroundColor: o.vars.palette.primary
|
|
113
|
+
backgroundColor: o.vars.palette.primary.focusActive
|
|
110
114
|
}
|
|
111
115
|
},
|
|
116
|
+
/* State error */
|
|
112
117
|
"&.M4LRHFTextField-variantError": {
|
|
113
118
|
"& .M4LRHFTextField-label": {
|
|
114
119
|
color: o.vars.palette.error.main
|
|
@@ -116,7 +121,7 @@ const a = (o) => ({
|
|
|
116
121
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
117
122
|
border: "1px solid",
|
|
118
123
|
borderColor: o.vars.palette.error.main,
|
|
119
|
-
background: o.vars.palette.error.
|
|
124
|
+
background: o.vars.palette.error.opacity
|
|
120
125
|
},
|
|
121
126
|
"& .MuiInputBase-input": {
|
|
122
127
|
color: o.vars.palette.text.primary
|
|
@@ -135,13 +140,14 @@ const a = (o) => ({
|
|
|
135
140
|
}
|
|
136
141
|
}
|
|
137
142
|
},
|
|
143
|
+
/* State disabled */
|
|
138
144
|
"&.M4LRHFTextField-isDisabled": {
|
|
139
145
|
"& .M4LRHFTextField-label": {
|
|
140
146
|
color: o.vars.palette.text.disabled
|
|
141
147
|
},
|
|
142
148
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
143
149
|
border: "1px solid",
|
|
144
|
-
borderColor: o.vars.palette
|
|
150
|
+
borderColor: o.vars.palette?.border.secondary,
|
|
145
151
|
backgroundColor: o.vars.palette.background?.default,
|
|
146
152
|
boxShadow: "none"
|
|
147
153
|
},
|
|
@@ -152,6 +158,7 @@ const a = (o) => ({
|
|
|
152
158
|
backgroundColor: o.vars.palette.text.disabled
|
|
153
159
|
}
|
|
154
160
|
},
|
|
161
|
+
/* Sizes */
|
|
155
162
|
"&.M4LRHFTextField-sizeSmall": {
|
|
156
163
|
"& .MuiInputBase-input, & .MuiOutlinedInput-notchedOutline, & .M4LRHFTextField-skeleton": {
|
|
157
164
|
height: "24px",
|
|
@@ -202,6 +209,7 @@ const a = (o) => ({
|
|
|
202
209
|
color: o.vars.palette.text.primary,
|
|
203
210
|
...o.colorSchemes.finalTheme.typography.body
|
|
204
211
|
},
|
|
212
|
+
/* caso small */
|
|
205
213
|
".M4LRHFCheckbox-small .MuiButtonBase-root": {
|
|
206
214
|
width: "20px",
|
|
207
215
|
height: "20px"
|
|
@@ -210,6 +218,7 @@ const a = (o) => ({
|
|
|
210
218
|
width: "16px",
|
|
211
219
|
height: "16px"
|
|
212
220
|
},
|
|
221
|
+
/* caso medium */
|
|
213
222
|
".M4LRHFCheckbox-medium .MuiButtonBase-root": {
|
|
214
223
|
width: "24px",
|
|
215
224
|
height: "24px"
|
|
@@ -222,21 +231,23 @@ const a = (o) => ({
|
|
|
222
231
|
borderRadius: "4px"
|
|
223
232
|
},
|
|
224
233
|
".MuiButtonBase-root:hover": {
|
|
225
|
-
backgroundColor: o.vars.palette.primary
|
|
234
|
+
backgroundColor: o.vars.palette.primary.opacity
|
|
226
235
|
},
|
|
227
236
|
".Mui-focusVisible": {
|
|
228
237
|
border: "1px solid",
|
|
229
|
-
borderColor: o.vars.palette.primary
|
|
238
|
+
borderColor: o.vars.palette.primary.focusActive
|
|
230
239
|
},
|
|
231
240
|
".MuiButtonBase-root:hover .MuiSvgIcon-root": {
|
|
232
241
|
fill: o.vars.palette.primary?.hover
|
|
233
242
|
},
|
|
243
|
+
/* caso general */
|
|
234
244
|
".M4LRHFCheckbox-checkTypography .MuiTypography-root": {
|
|
235
245
|
...o.colorSchemes.finalTheme.typography.body
|
|
236
246
|
},
|
|
237
247
|
".M4LRHFCheckbox-stateDisabled .MuiSvgIcon-root": {
|
|
238
248
|
fill: o.vars.palette.background?.default
|
|
239
249
|
},
|
|
250
|
+
/* selector del caso focus por tab */
|
|
240
251
|
".MuiButtonBase-root .Mui-focusVisible:focus-visible": {
|
|
241
252
|
outline: "#FFF00"
|
|
242
253
|
}
|
|
@@ -253,6 +264,7 @@ const a = (o) => ({
|
|
|
253
264
|
width: "100%",
|
|
254
265
|
gap: "2px",
|
|
255
266
|
outline: "unset",
|
|
267
|
+
// Variant
|
|
256
268
|
"&.M4LRHFAutocomplete-multiple": {
|
|
257
269
|
"& .MuiAutocomplete-inputRoot": {
|
|
258
270
|
display: "flex",
|
|
@@ -276,28 +288,52 @@ const a = (o) => ({
|
|
|
276
288
|
}
|
|
277
289
|
}
|
|
278
290
|
},
|
|
291
|
+
/* General properties */
|
|
279
292
|
"& .MuiAutocomplete-root": {
|
|
280
293
|
height: "100%",
|
|
281
294
|
"& .MuiFormControl-root": {
|
|
282
295
|
height: "100%",
|
|
283
296
|
"& .MuiInputBase-root": {
|
|
284
|
-
borderColor: o.vars.palette
|
|
297
|
+
borderColor: o.vars.palette?.border.default,
|
|
285
298
|
position: "relative",
|
|
286
299
|
height: "100%",
|
|
287
300
|
"& .MuiInputBase-input": {
|
|
301
|
+
/* Selector del elemento html input */
|
|
288
302
|
boxSizing: "border-box",
|
|
289
303
|
color: o.vars.palette.text.secondary,
|
|
290
304
|
backgroundColor: "transparent",
|
|
291
305
|
height: "100%",
|
|
292
306
|
padding: "0 16px 0 8px",
|
|
293
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.default,
|
|
321
|
+
borderRadius: '4px',
|
|
322
|
+
inset: '0px',
|
|
323
|
+
transition: 'all .3s ease',
|
|
324
|
+
|
|
325
|
+
'& legend': {
|
|
326
|
+
display: 'none'
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
} */
|
|
294
330
|
},
|
|
295
331
|
"& .M4LRHFAutocomplete-containerRefreshDown": {
|
|
296
332
|
display: "flex",
|
|
297
333
|
width: "auto",
|
|
298
334
|
"& .M4LRHFAutocomplete-iconLeft": {
|
|
299
335
|
borderLeft: "1px solid",
|
|
300
|
-
borderColor: o.vars.palette
|
|
336
|
+
borderColor: o.vars.palette?.border.default
|
|
301
337
|
}
|
|
302
338
|
},
|
|
303
339
|
"& .M4LRHFAutocomplete-iconDown": {},
|
|
@@ -311,6 +347,7 @@ const a = (o) => ({
|
|
|
311
347
|
}
|
|
312
348
|
}
|
|
313
349
|
},
|
|
350
|
+
/* Skeleton general properties*/
|
|
314
351
|
"& .M4LRHFAutocomplete-skeletonRoot": {
|
|
315
352
|
display: "flex",
|
|
316
353
|
flexDirection: "column",
|
|
@@ -346,7 +383,9 @@ const a = (o) => ({
|
|
|
346
383
|
"& .MuiAutocomplete-root .MuiInputBase-root": {
|
|
347
384
|
padding: "0p 8px",
|
|
348
385
|
height: "100%"
|
|
386
|
+
//revisar
|
|
349
387
|
},
|
|
388
|
+
/* State hover */
|
|
350
389
|
"&:hover": {
|
|
351
390
|
"& .M4LRHFAutocomplete-label": {
|
|
352
391
|
color: o.vars.palette.text.secondary
|
|
@@ -365,15 +404,16 @@ const a = (o) => ({
|
|
|
365
404
|
backgroundColor: o.vars.palette.primary?.hover
|
|
366
405
|
}
|
|
367
406
|
},
|
|
407
|
+
/* State focus and active */
|
|
368
408
|
"&.M4LRHFAutocomplete-isFocus": {
|
|
369
409
|
"& .M4LRHFAutocomplete-label": {
|
|
370
|
-
color: o.vars.palette.primary
|
|
410
|
+
color: o.vars.palette.primary.focusActive
|
|
371
411
|
},
|
|
372
412
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
373
413
|
transition: "all .1s ease",
|
|
374
|
-
background: o.vars.palette.primary.
|
|
414
|
+
background: o.vars.palette.primary.opacity,
|
|
375
415
|
border: "2px solid",
|
|
376
|
-
borderColor: o.vars.palette.primary
|
|
416
|
+
borderColor: o.vars.palette.primary.focusActive,
|
|
377
417
|
boxShadow: `0px 1px 8px ${e(
|
|
378
418
|
o.colorSchemes.finalTheme.palette.primary.main,
|
|
379
419
|
0.32
|
|
@@ -383,9 +423,10 @@ const a = (o) => ({
|
|
|
383
423
|
color: o.vars.palette.text.primary
|
|
384
424
|
},
|
|
385
425
|
"& .M4LIcon-icon": {
|
|
386
|
-
backgroundColor: o.vars.palette.primary
|
|
426
|
+
backgroundColor: o.vars.palette.primary.focusActive
|
|
387
427
|
}
|
|
388
428
|
},
|
|
429
|
+
/* State error */
|
|
389
430
|
"&.M4LRHFAutocomplete-variantError": {
|
|
390
431
|
"& .M4LRHFAutocomplete-label": {
|
|
391
432
|
color: o.vars.palette.error.main
|
|
@@ -411,13 +452,14 @@ const a = (o) => ({
|
|
|
411
452
|
}
|
|
412
453
|
}
|
|
413
454
|
},
|
|
455
|
+
/* State disabled */
|
|
414
456
|
"&.M4LRHFAutocomplete-isDisabled": {
|
|
415
457
|
"& .M4LRHFAutocomplete-label": {
|
|
416
458
|
color: o.vars.palette.text.disabled
|
|
417
459
|
},
|
|
418
460
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
419
461
|
border: "1px solid",
|
|
420
|
-
borderColor: o.vars.palette
|
|
462
|
+
borderColor: o.vars.palette?.border.disabled,
|
|
421
463
|
backgroundColor: o.vars.palette.background?.default,
|
|
422
464
|
boxShadow: "none"
|
|
423
465
|
},
|
|
@@ -428,9 +470,9 @@ const a = (o) => ({
|
|
|
428
470
|
backgroundColor: o.vars.palette.text.disabled
|
|
429
471
|
}
|
|
430
472
|
},
|
|
473
|
+
/* Sizes */
|
|
431
474
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
432
|
-
|
|
433
|
-
& .MuiAutocomplete-root`]: {
|
|
475
|
+
"& .M4LRHFAutocomplete-skeleton,\n & .MuiAutocomplete-root": {
|
|
434
476
|
"& .M4LImage-root": {
|
|
435
477
|
width: "24px",
|
|
436
478
|
height: "24px",
|
|
@@ -441,8 +483,7 @@ const a = (o) => ({
|
|
|
441
483
|
}
|
|
442
484
|
},
|
|
443
485
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
444
|
-
|
|
445
|
-
& .MuiAutocomplete-root`]: {
|
|
486
|
+
"& .M4LRHFAutocomplete-skeleton,\n & .MuiAutocomplete-root": {
|
|
446
487
|
"& .M4LImage-root": {
|
|
447
488
|
width: "28px",
|
|
448
489
|
height: "28px",
|
|
@@ -452,6 +493,7 @@ const a = (o) => ({
|
|
|
452
493
|
minHeight: "36px"
|
|
453
494
|
}
|
|
454
495
|
},
|
|
496
|
+
// variant image defined
|
|
455
497
|
"&.M4LRHFAutocomplete-imageWidthDefined": {
|
|
456
498
|
"& .M4LImage-root": {
|
|
457
499
|
"& .M4LImage-img": {
|
|
@@ -459,13 +501,17 @@ const a = (o) => ({
|
|
|
459
501
|
}
|
|
460
502
|
}
|
|
461
503
|
}
|
|
504
|
+
// with multiple values in chips
|
|
462
505
|
}
|
|
463
506
|
}
|
|
464
507
|
},
|
|
465
508
|
M4LRHFAutocompletePopover: {
|
|
466
509
|
styleOverrides: {
|
|
510
|
+
// Menu popover que se despliega luego de interactuar con el componente.
|
|
511
|
+
// Despliega la lista de opciones diponibles.
|
|
467
512
|
"&.M4LRHFAutocomplete-popper": {
|
|
468
513
|
zIndex: "1300",
|
|
514
|
+
// Primer contendeor del manu, se utiliza para dar espacio interno y distribuir los items.
|
|
469
515
|
"& .MuiAutocomplete-listbox": {
|
|
470
516
|
padding: "8px",
|
|
471
517
|
display: "flex",
|
|
@@ -484,23 +530,28 @@ const a = (o) => ({
|
|
|
484
530
|
}
|
|
485
531
|
}
|
|
486
532
|
},
|
|
533
|
+
// Estilos generales para withImage
|
|
487
534
|
"& .M4LRHFAutocomplete-withImage": {
|
|
488
535
|
display: "flex",
|
|
489
536
|
gap: "8px",
|
|
537
|
+
// Estados por evento de usuario
|
|
490
538
|
"&:hover": {
|
|
491
539
|
color: o.vars.palette.text.primary,
|
|
492
|
-
backgroundColor: o.vars.palette.primary.
|
|
540
|
+
backgroundColor: o.vars.palette.primary.opacity
|
|
493
541
|
},
|
|
494
542
|
"& .M4LImage-root": {
|
|
495
543
|
width: "auto",
|
|
496
544
|
height: "100%"
|
|
497
545
|
}
|
|
498
546
|
},
|
|
547
|
+
// Estilos del menu para la versión de tamaño small
|
|
499
548
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
549
|
+
// Item sin imagen
|
|
500
550
|
"& .MuiAutocomplete-listbox": {
|
|
501
551
|
"& .MuiAutocomplete-option": {
|
|
502
552
|
minHeight: "24px"
|
|
503
553
|
},
|
|
554
|
+
// Item con imagen
|
|
504
555
|
"& .M4LRHFAutocomplete-withImage": {
|
|
505
556
|
paddingLeft: "4px",
|
|
506
557
|
height: "24px",
|
|
@@ -516,12 +567,15 @@ const a = (o) => ({
|
|
|
516
567
|
}
|
|
517
568
|
}
|
|
518
569
|
},
|
|
570
|
+
// Estilos del menu para la versión de tamaño medium
|
|
519
571
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
572
|
+
// Item sin imagen
|
|
520
573
|
"& .MuiAutocomplete-listbox": {
|
|
521
574
|
"& .MuiAutocomplete-option": {
|
|
522
575
|
height: "36px"
|
|
523
576
|
}
|
|
524
577
|
},
|
|
578
|
+
// Item con imagen
|
|
525
579
|
"& .M4LRHFAutocomplete-withImage": {
|
|
526
580
|
paddingLeft: "4px",
|
|
527
581
|
height: "36px",
|
|
@@ -536,6 +590,7 @@ const a = (o) => ({
|
|
|
536
590
|
}
|
|
537
591
|
}
|
|
538
592
|
},
|
|
593
|
+
// variación de ancho de imagen definido
|
|
539
594
|
"&.M4LRHFAutocomplete-imageWidthDefined": {
|
|
540
595
|
"& .M4LImage-img": {
|
|
541
596
|
minWidth: "24px",
|
|
@@ -546,7 +601,7 @@ const a = (o) => ({
|
|
|
546
601
|
boxShadow: o.customShadows?.z2,
|
|
547
602
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
|
|
548
603
|
color: o.vars.palette.text.primary,
|
|
549
|
-
backgroundColor: o.vars.palette.primary.
|
|
604
|
+
backgroundColor: o.vars.palette.primary.opacity
|
|
550
605
|
}
|
|
551
606
|
}
|
|
552
607
|
}
|
|
@@ -556,6 +611,7 @@ const a = (o) => ({
|
|
|
556
611
|
styleOverrides: {
|
|
557
612
|
"&.M4LRHFAutocomplete-sizeSmall": {
|
|
558
613
|
height: "18px",
|
|
614
|
+
// important debido a que MUI agrega media queries directamente al elemento.
|
|
559
615
|
minHeight: "18px !important",
|
|
560
616
|
"& .MuiChip-deleteIcon": {
|
|
561
617
|
fontSize: "16px"
|
|
@@ -566,6 +622,7 @@ const a = (o) => ({
|
|
|
566
622
|
},
|
|
567
623
|
"&.M4LRHFAutocomplete-sizeMedium": {
|
|
568
624
|
height: "24px",
|
|
625
|
+
// important debido a que MUI agrega media queries directamente al elemento.
|
|
569
626
|
minHeight: "24px !important",
|
|
570
627
|
"& .MuiChip-deleteIcon": {
|
|
571
628
|
fontSize: "20px"
|
|
@@ -576,7 +633,7 @@ const a = (o) => ({
|
|
|
576
633
|
}
|
|
577
634
|
}
|
|
578
635
|
}
|
|
579
|
-
}),
|
|
636
|
+
}), u = (o) => ({
|
|
580
637
|
M4LRHFAutocompleteAsync: {
|
|
581
638
|
styleOverrides: {
|
|
582
639
|
"&.M4LRHFAutocompleteAsync-root": {
|
|
@@ -585,7 +642,7 @@ const a = (o) => ({
|
|
|
585
642
|
}
|
|
586
643
|
}
|
|
587
644
|
}
|
|
588
|
-
}),
|
|
645
|
+
}), d = (o) => ({
|
|
589
646
|
M4LRHFDateTime: {
|
|
590
647
|
styleOverrides: {
|
|
591
648
|
"&.M4LRHFDateTime-root": {
|
|
@@ -631,6 +688,7 @@ const a = (o) => ({
|
|
|
631
688
|
height: "36px"
|
|
632
689
|
}
|
|
633
690
|
},
|
|
691
|
+
/* General properties */
|
|
634
692
|
"& .MuiFormControl-root": {
|
|
635
693
|
"& .MuiInputBase-root": {
|
|
636
694
|
padding: "0 4px 0 0",
|
|
@@ -685,6 +743,7 @@ const a = (o) => ({
|
|
|
685
743
|
}
|
|
686
744
|
}
|
|
687
745
|
},
|
|
746
|
+
/* State hover */
|
|
688
747
|
"&:hover": {
|
|
689
748
|
"& .M4LTypography-root": {
|
|
690
749
|
color: o.vars.palette.primary?.hover
|
|
@@ -699,22 +758,24 @@ const a = (o) => ({
|
|
|
699
758
|
backgroundColor: o.vars.palette.primary?.hover
|
|
700
759
|
}
|
|
701
760
|
},
|
|
761
|
+
/* State focus and active */
|
|
702
762
|
"&.M4LRHFDateTime-isFocus": {
|
|
703
763
|
"& .M4LTypography-root": {
|
|
704
|
-
color: o.vars.palette.primary.
|
|
764
|
+
color: o.vars.palette.primary.focusActive
|
|
705
765
|
},
|
|
706
766
|
"& .MuiInputBase-root .MuiOutlinedInput-notchedOutline": {
|
|
707
767
|
transition: "all .1s ease",
|
|
708
768
|
border: "2px solid",
|
|
709
|
-
borderColor: o.vars.palette.primary
|
|
769
|
+
borderColor: o.vars.palette.primary.focusActive
|
|
710
770
|
},
|
|
711
771
|
"& .MuiInputBase-input": {
|
|
712
772
|
color: o.vars.palette.text.primary
|
|
713
773
|
},
|
|
714
774
|
"& .M4LIcon-icon": {
|
|
715
|
-
backgroundColor: o.vars.palette.primary
|
|
775
|
+
backgroundColor: o.vars.palette.primary.focusActive
|
|
716
776
|
}
|
|
717
777
|
},
|
|
778
|
+
/* State error */
|
|
718
779
|
"&.M4LRHFTextField-variantError": {
|
|
719
780
|
"& .M4LRHFTextField-label": {
|
|
720
781
|
color: o.vars.palette.error.main
|
|
@@ -740,6 +801,7 @@ const a = (o) => ({
|
|
|
740
801
|
}
|
|
741
802
|
}
|
|
742
803
|
},
|
|
804
|
+
/* State disabled */
|
|
743
805
|
"&.M4LRHFTextField-isDisabled": {
|
|
744
806
|
"& .M4LRHFTextField-label": {
|
|
745
807
|
color: o.vars.palette.text.disabled
|
|
@@ -789,15 +851,15 @@ const a = (o) => ({
|
|
|
789
851
|
inset: "0",
|
|
790
852
|
alignItems: "center",
|
|
791
853
|
justifyContent: "center",
|
|
792
|
-
background: o.vars.palette.background.
|
|
854
|
+
background: o.vars.palette.background.surface,
|
|
793
855
|
"& > *": {
|
|
794
856
|
width: "100%",
|
|
795
857
|
height: "100%"
|
|
796
858
|
},
|
|
797
859
|
"&:hover": {
|
|
798
|
-
background: o.vars.palette.primary.
|
|
860
|
+
background: o.vars.palette.primary.opacity,
|
|
799
861
|
border: "1px solid",
|
|
800
|
-
borderColor: o.vars.palette.primary.
|
|
862
|
+
borderColor: o.vars.palette.primary.opacity,
|
|
801
863
|
cursor: "pointer",
|
|
802
864
|
"& .placeholder": {
|
|
803
865
|
zIndex: 9
|
|
@@ -836,6 +898,7 @@ const a = (o) => ({
|
|
|
836
898
|
gap: "0",
|
|
837
899
|
position: "relative",
|
|
838
900
|
overflow: "hidden",
|
|
901
|
+
// Icono de carga
|
|
839
902
|
"& .M4LRHFUploadImage-containerBodyImage": {
|
|
840
903
|
display: "flex",
|
|
841
904
|
justifyContent: "center",
|
|
@@ -885,6 +948,7 @@ const a = (o) => ({
|
|
|
885
948
|
}
|
|
886
949
|
}
|
|
887
950
|
},
|
|
951
|
+
// Skeleton
|
|
888
952
|
"& .M4LRHFUploadImage-skeleton": {
|
|
889
953
|
maskPosition: "center!important",
|
|
890
954
|
maskRepeat: "no-repeat!important",
|
|
@@ -896,6 +960,7 @@ const a = (o) => ({
|
|
|
896
960
|
WebkitMask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')"
|
|
897
961
|
}
|
|
898
962
|
},
|
|
963
|
+
// Imagen cargada
|
|
899
964
|
"&.M4LRHFUploadImage-hasFile": {
|
|
900
965
|
"& .M4LRHFUploadImage-placeHolder": {
|
|
901
966
|
opacity: "0",
|
|
@@ -915,6 +980,7 @@ const a = (o) => ({
|
|
|
915
980
|
"&:hover": {
|
|
916
981
|
opacity: 1
|
|
917
982
|
},
|
|
983
|
+
// Comportamiento Hover imagen cargada
|
|
918
984
|
"& .M4LRHFUploadImage-containerUploadBoddy": {
|
|
919
985
|
"& .M4LRHFUploadImage-containerBodyImage": {
|
|
920
986
|
opacity: "0"
|
|
@@ -983,12 +1049,18 @@ const a = (o) => ({
|
|
|
983
1049
|
gap: "4px",
|
|
984
1050
|
padding: "2px",
|
|
985
1051
|
border: "1.5px solid",
|
|
986
|
-
borderColor: o.vars.palette
|
|
1052
|
+
borderColor: o.vars.palette?.border.default,
|
|
987
1053
|
borderRadius: "4px",
|
|
988
1054
|
width: "fit-content",
|
|
989
1055
|
"& .M4LRHFColorPicker-boxColor": {
|
|
990
1056
|
cursor: "pointer"
|
|
991
1057
|
},
|
|
1058
|
+
/* '& .M4LIcon-root': {
|
|
1059
|
+
minHeight: '18px',
|
|
1060
|
+
minWidth: '18px',
|
|
1061
|
+
cursor: 'pointer',
|
|
1062
|
+
borderRadius: '4px',
|
|
1063
|
+
}, */
|
|
992
1064
|
"& .M4LIcon-root:hover": {
|
|
993
1065
|
background: o.vars.palette.background.hover
|
|
994
1066
|
}
|
|
@@ -1003,7 +1075,7 @@ const a = (o) => ({
|
|
|
1003
1075
|
background: o.vars.palette.background.default,
|
|
1004
1076
|
padding: "8px",
|
|
1005
1077
|
border: "1px solid",
|
|
1006
|
-
borderColor: o.vars.palette
|
|
1078
|
+
borderColor: o.vars.palette?.border.secondary,
|
|
1007
1079
|
borderRadius: "4px",
|
|
1008
1080
|
boxShadow: o.vars.customShadows.z4,
|
|
1009
1081
|
test: "root",
|
|
@@ -1022,7 +1094,7 @@ const a = (o) => ({
|
|
|
1022
1094
|
flexDirection: "column",
|
|
1023
1095
|
gap: "8px",
|
|
1024
1096
|
border: "1px solid",
|
|
1025
|
-
borderColor: o.vars.palette
|
|
1097
|
+
borderColor: o.vars.palette?.border.secondary,
|
|
1026
1098
|
borderRadius: "4px",
|
|
1027
1099
|
backgroundColor: o.vars.palette.background.default,
|
|
1028
1100
|
"& :nth-of-type(-n + 1)": {
|
|
@@ -1043,7 +1115,7 @@ const a = (o) => ({
|
|
|
1043
1115
|
display: "flex",
|
|
1044
1116
|
textAlign: "center !important",
|
|
1045
1117
|
border: "1px solid",
|
|
1046
|
-
borderColor: o.vars.palette
|
|
1118
|
+
borderColor: o.vars.palette?.border.default,
|
|
1047
1119
|
borderRadius: "2px",
|
|
1048
1120
|
background: "transparent",
|
|
1049
1121
|
minHeight: "24px",
|
|
@@ -1076,8 +1148,8 @@ export {
|
|
|
1076
1148
|
l as M,
|
|
1077
1149
|
a,
|
|
1078
1150
|
p as b,
|
|
1079
|
-
|
|
1080
|
-
|
|
1151
|
+
u as c,
|
|
1152
|
+
d,
|
|
1081
1153
|
s as e,
|
|
1082
1154
|
c as f,
|
|
1083
1155
|
n as g,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
export default function
|
|
2
|
+
export default function c(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
3
3
|
MuiFormControl: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
root: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentPalletColor } from '../../../types';
|
|
3
3
|
export default function ToggleButton(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
4
4
|
MuiToggleButton: {
|
|
5
5
|
variants: ({
|
|
6
6
|
props: {
|
|
7
|
-
color:
|
|
7
|
+
color: ComponentPalletColor;
|
|
8
8
|
};
|
|
9
9
|
style: {
|
|
10
10
|
'&:hover': {
|