@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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { alpha as
|
|
1
|
+
import { alpha as i } from "@mui/material";
|
|
2
2
|
import { alpha as a } from "@mui/material/styles";
|
|
3
3
|
function d(r) {
|
|
4
4
|
return {
|
|
5
5
|
MuiAvatar: {
|
|
6
6
|
styleOverrides: {
|
|
7
7
|
borderTop: "1.5px",
|
|
8
|
-
borderColor: r.vars.palette
|
|
8
|
+
borderColor: r.vars.palette?.border.default,
|
|
9
9
|
colorDefault: {
|
|
10
10
|
color: r.vars.palette.text.secondary,
|
|
11
11
|
backgroundColor: r.vars.palette.grey[400]
|
|
@@ -20,7 +20,7 @@ function d(r) {
|
|
|
20
20
|
"&:first-of-type": {
|
|
21
21
|
fontSize: 14,
|
|
22
22
|
color: r.vars.palette.primary.main,
|
|
23
|
-
backgroundColor: r.vars.palette.primary.
|
|
23
|
+
backgroundColor: r.vars.palette.primary.light
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -43,6 +43,7 @@ function l(r) {
|
|
|
43
43
|
sizeLarge: {
|
|
44
44
|
height: 48
|
|
45
45
|
},
|
|
46
|
+
// contained
|
|
46
47
|
containedInherit: {
|
|
47
48
|
color: r.vars.palette.grey[800],
|
|
48
49
|
boxShadow: r.customShadows?.z1,
|
|
@@ -54,6 +55,7 @@ function l(r) {
|
|
|
54
55
|
},
|
|
55
56
|
containedPrimary: {
|
|
56
57
|
boxShadow: r.customShadows?.z4
|
|
58
|
+
// color: theme.vars.palette.primary.contrastText,
|
|
57
59
|
},
|
|
58
60
|
containedSecondary: {
|
|
59
61
|
boxShadow: r.customShadows?.secondary
|
|
@@ -70,9 +72,10 @@ function l(r) {
|
|
|
70
72
|
containedError: {
|
|
71
73
|
boxShadow: r.customShadows?.error
|
|
72
74
|
},
|
|
75
|
+
// outlined
|
|
73
76
|
outlinedInherit: {
|
|
74
77
|
borderRadius: "4px",
|
|
75
|
-
border: `1px solid ${r.vars.palette
|
|
78
|
+
border: `1px solid ${r.vars.palette?.border.default}`,
|
|
76
79
|
"&:hover": {
|
|
77
80
|
backgroundColor: r.vars.palette.action.hover,
|
|
78
81
|
borderRadius: "4px"
|
|
@@ -92,6 +95,9 @@ function l(r) {
|
|
|
92
95
|
function p(r) {
|
|
93
96
|
return {
|
|
94
97
|
MuiIconButton: {
|
|
98
|
+
// defaultProps: {
|
|
99
|
+
// color: theme.vars.palette.text.primary,
|
|
100
|
+
// },
|
|
95
101
|
styleOverrides: {
|
|
96
102
|
root: {
|
|
97
103
|
"&.MuiIconButton-sizeSmall": {
|
|
@@ -109,6 +115,9 @@ function p(r) {
|
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
}
|
|
118
|
+
// colorDefault: {
|
|
119
|
+
// color: theme.vars.palette.text.primary,
|
|
120
|
+
// }
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
};
|
|
@@ -157,6 +166,7 @@ function c(r) {
|
|
|
157
166
|
boxShadow: r.customShadows?.card,
|
|
158
167
|
borderRadius: Number(r.shape.borderRadius) * 2,
|
|
159
168
|
zIndex: 0
|
|
169
|
+
// Fix Safari overflow: hidden with border radius
|
|
160
170
|
}
|
|
161
171
|
}
|
|
162
172
|
},
|
|
@@ -267,7 +277,7 @@ function y(r) {
|
|
|
267
277
|
},
|
|
268
278
|
head: {
|
|
269
279
|
color: r.vars.palette.text.secondary,
|
|
270
|
-
backgroundColor: r.vars.palette.background.
|
|
280
|
+
backgroundColor: r.vars.palette.background.surface,
|
|
271
281
|
"&:first-of-type": {
|
|
272
282
|
paddingLeft: r.spacing(3),
|
|
273
283
|
borderTopLeftRadius: r.shape.borderRadius,
|
|
@@ -283,7 +293,7 @@ function y(r) {
|
|
|
283
293
|
},
|
|
284
294
|
stickyHeader: {
|
|
285
295
|
backgroundColor: r.vars.palette.background.paper,
|
|
286
|
-
backgroundImage: `linear-gradient(to bottom, ${r.vars.palette.background.
|
|
296
|
+
backgroundImage: `linear-gradient(to bottom, ${r.vars.palette.background.surface} 0%, ${r.vars.palette.background.surface} 100%)`
|
|
287
297
|
},
|
|
288
298
|
body: {
|
|
289
299
|
"&:first-of-type": {
|
|
@@ -332,7 +342,7 @@ function y(r) {
|
|
|
332
342
|
}
|
|
333
343
|
};
|
|
334
344
|
}
|
|
335
|
-
function
|
|
345
|
+
function f(r) {
|
|
336
346
|
return {
|
|
337
347
|
MuiBadge: {
|
|
338
348
|
styleOverrides: {
|
|
@@ -341,12 +351,13 @@ function M(r) {
|
|
|
341
351
|
width: "16px",
|
|
342
352
|
height: "16px",
|
|
343
353
|
borderRadius: "50%"
|
|
354
|
+
//background: "red",
|
|
344
355
|
}
|
|
345
356
|
}
|
|
346
357
|
}
|
|
347
358
|
};
|
|
348
359
|
}
|
|
349
|
-
function
|
|
360
|
+
function M(r) {
|
|
350
361
|
return {
|
|
351
362
|
MuiPaper: {
|
|
352
363
|
defaultProps: {
|
|
@@ -355,7 +366,7 @@ function f(r) {
|
|
|
355
366
|
variants: [
|
|
356
367
|
{
|
|
357
368
|
props: { variant: "outlined" },
|
|
358
|
-
style: { borderColor: r.vars.palette
|
|
369
|
+
style: { borderColor: r.vars.palette?.border.default }
|
|
359
370
|
}
|
|
360
371
|
],
|
|
361
372
|
styleOverrides: {
|
|
@@ -363,6 +374,7 @@ function f(r) {
|
|
|
363
374
|
backgroundImage: "none",
|
|
364
375
|
backgroundColor: r.vars.palette.background.default,
|
|
365
376
|
borderRadius: "2px",
|
|
377
|
+
/* Stack */
|
|
366
378
|
"& .MuiStack-root .MuiMenuItem-root": {
|
|
367
379
|
color: r.vars.palette.text.primary,
|
|
368
380
|
transition: "all .5s",
|
|
@@ -372,19 +384,20 @@ function f(r) {
|
|
|
372
384
|
"& .MuiStack-root .MuiMenuItem-root:hover": {
|
|
373
385
|
color: r.vars.palette.primary?.hover,
|
|
374
386
|
transition: "all .5s",
|
|
375
|
-
backgroundColor: r.vars.palette.primary
|
|
387
|
+
backgroundColor: r.vars.palette.primary.opacity
|
|
376
388
|
},
|
|
377
389
|
"& .MuiStack-root .MuiMenuItem-root.Mui-selected": {
|
|
378
|
-
color: r.vars.palette.primary
|
|
390
|
+
color: r.vars.palette.primary.focusActive,
|
|
379
391
|
transition: "all .5s",
|
|
380
|
-
backgroundColor: r.vars.palette.primary
|
|
392
|
+
backgroundColor: r.vars.palette.primary.opacity
|
|
381
393
|
},
|
|
382
394
|
"& .MuiStack-root .MuiMenuItem-root:focus": {
|
|
383
|
-
color: r.vars.palette.primary
|
|
395
|
+
color: r.vars.palette.primary.focusActive,
|
|
384
396
|
transition: "all .5s",
|
|
385
397
|
backgroundColor: r.vars.palette.background.default,
|
|
386
|
-
boxShadow: `0 0 0 1px ${r.vars.palette.primary
|
|
398
|
+
boxShadow: `0 0 0 1px ${r.vars.palette.primary.focusActive}`
|
|
387
399
|
},
|
|
400
|
+
/* Autocomplete Listbox */
|
|
388
401
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option": {
|
|
389
402
|
color: r.vars.palette.text.primary,
|
|
390
403
|
transition: "all .5s",
|
|
@@ -394,18 +407,18 @@ function f(r) {
|
|
|
394
407
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
|
|
395
408
|
color: r.vars.palette.primary?.hover,
|
|
396
409
|
transition: "all .5s",
|
|
397
|
-
backgroundColor: r.vars.palette.primary
|
|
410
|
+
backgroundColor: r.vars.palette.primary.opacity
|
|
398
411
|
},
|
|
399
412
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option.Mui-selected": {
|
|
400
|
-
color: r.vars.palette.primary
|
|
413
|
+
color: r.vars.palette.primary.focusActive,
|
|
401
414
|
transition: "all .5s",
|
|
402
|
-
backgroundColor: r.vars.palette.primary
|
|
415
|
+
backgroundColor: r.vars.palette.primary.opacity
|
|
403
416
|
},
|
|
404
417
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:active": {
|
|
405
|
-
color: r.vars.palette.primary
|
|
418
|
+
color: r.vars.palette.primary.focusActive,
|
|
406
419
|
transition: "all .5s",
|
|
407
420
|
backgroundColor: r.vars.palette.background.default,
|
|
408
|
-
boxShadow: `0 0 0 1px ${r.vars.palette.primary
|
|
421
|
+
boxShadow: `0 0 0 1px ${r.vars.palette.primary.focusActive}`
|
|
409
422
|
}
|
|
410
423
|
}
|
|
411
424
|
}
|
|
@@ -429,7 +442,7 @@ function h(r) {
|
|
|
429
442
|
styleOverrides: {
|
|
430
443
|
root: {
|
|
431
444
|
height: "auto",
|
|
432
|
-
backgroundColor: r.vars.palette.background
|
|
445
|
+
backgroundColor: r.vars.palette.background?.default,
|
|
433
446
|
...r.colorSchemes.finalTheme.typography.body2,
|
|
434
447
|
borderRadius: "2px",
|
|
435
448
|
padding: "4px",
|
|
@@ -447,11 +460,12 @@ function h(r) {
|
|
|
447
460
|
}
|
|
448
461
|
}
|
|
449
462
|
},
|
|
463
|
+
/* Style input outline */
|
|
450
464
|
MuiInput: {
|
|
451
465
|
styleOverrides: {
|
|
452
466
|
underline: {
|
|
453
467
|
"&:before": {
|
|
454
|
-
borderBottomColor: r.vars.palette
|
|
468
|
+
borderBottomColor: r.vars.palette?.border?.default
|
|
455
469
|
}
|
|
456
470
|
}
|
|
457
471
|
}
|
|
@@ -459,9 +473,9 @@ function h(r) {
|
|
|
459
473
|
MuiFilledInput: {
|
|
460
474
|
styleOverrides: {
|
|
461
475
|
root: {
|
|
462
|
-
backgroundColor: r.vars.palette
|
|
476
|
+
backgroundColor: r.vars.palette?.border?.default,
|
|
463
477
|
"&:hover": {
|
|
464
|
-
backgroundColor: r.vars.palette
|
|
478
|
+
backgroundColor: r.vars.palette?.border?.default
|
|
465
479
|
},
|
|
466
480
|
"&.Mui-focused": {
|
|
467
481
|
backgroundColor: r.vars.palette.action.focus
|
|
@@ -472,11 +486,12 @@ function h(r) {
|
|
|
472
486
|
},
|
|
473
487
|
underline: {
|
|
474
488
|
"&:before": {
|
|
475
|
-
borderBottomColor: r.vars.palette
|
|
489
|
+
borderBottomColor: r.vars.palette?.border?.default
|
|
476
490
|
}
|
|
477
491
|
}
|
|
478
492
|
}
|
|
479
493
|
},
|
|
494
|
+
/* Estilos variante outlined */
|
|
480
495
|
MuiOutlinedInput: {
|
|
481
496
|
styleOverrides: {
|
|
482
497
|
root: {
|
|
@@ -486,7 +501,7 @@ function h(r) {
|
|
|
486
501
|
padding: r.spacing(1.5, 1.5)
|
|
487
502
|
},
|
|
488
503
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
489
|
-
borderColor: r.vars.palette
|
|
504
|
+
borderColor: r.vars.palette?.border?.default,
|
|
490
505
|
fontSize: "0.875rem",
|
|
491
506
|
height: "auto",
|
|
492
507
|
minHeight: "24px",
|
|
@@ -538,7 +553,7 @@ function k(r) {
|
|
|
538
553
|
}
|
|
539
554
|
};
|
|
540
555
|
}
|
|
541
|
-
function
|
|
556
|
+
function S(r) {
|
|
542
557
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
543
558
|
return {
|
|
544
559
|
MuiDrawer: {
|
|
@@ -547,22 +562,27 @@ function m(r) {
|
|
|
547
562
|
"&.M4LSideBar-drawer": {
|
|
548
563
|
test: "root",
|
|
549
564
|
"& .MuiPaper-root": {
|
|
550
|
-
background: r.vars.palette.background.
|
|
565
|
+
background: r.vars.palette.background.surface,
|
|
551
566
|
display: "flex",
|
|
552
567
|
flexDirection: "row"
|
|
553
568
|
}
|
|
569
|
+
/* "& .MuiPaper-root": {
|
|
570
|
+
borderRadius: "4px",
|
|
571
|
+
backgroundColor: theme.vars.palette.primary.primaryOpacity,
|
|
572
|
+
padding: "8px",
|
|
573
|
+
}, */
|
|
554
574
|
}
|
|
555
575
|
},
|
|
556
576
|
modal: {
|
|
557
577
|
'&[role="presentation"]': {
|
|
558
578
|
"& .MuiDrawer-paperAnchorLeft": {
|
|
559
|
-
boxShadow: `8px 24px 24px 12px ${
|
|
579
|
+
boxShadow: `8px 24px 24px 12px ${i(
|
|
560
580
|
r.colorSchemes.finalTheme.palette.grey[900],
|
|
561
581
|
o ? 0.16 : 0.48
|
|
562
582
|
)}`
|
|
563
583
|
},
|
|
564
584
|
"& .MuiDrawer-paperAnchorRight": {
|
|
565
|
-
boxShadow: `-8px 24px 24px 12px ${
|
|
585
|
+
boxShadow: `-8px 24px 24px 12px ${i(
|
|
566
586
|
r.colorSchemes.finalTheme.palette.grey[900],
|
|
567
587
|
o ? 0.16 : 0.48
|
|
568
588
|
)}`
|
|
@@ -573,7 +593,7 @@ function m(r) {
|
|
|
573
593
|
}
|
|
574
594
|
};
|
|
575
595
|
}
|
|
576
|
-
function
|
|
596
|
+
function m(r) {
|
|
577
597
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
578
598
|
return {
|
|
579
599
|
MuiSlider: {
|
|
@@ -646,7 +666,7 @@ function w(r) {
|
|
|
646
666
|
}
|
|
647
667
|
};
|
|
648
668
|
}
|
|
649
|
-
function
|
|
669
|
+
function T(r) {
|
|
650
670
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
651
671
|
return {
|
|
652
672
|
MuiTooltip: {
|
|
@@ -661,7 +681,7 @@ function O(r) {
|
|
|
661
681
|
}
|
|
662
682
|
};
|
|
663
683
|
}
|
|
664
|
-
function
|
|
684
|
+
function O(r) {
|
|
665
685
|
return {
|
|
666
686
|
MuiPopover: {
|
|
667
687
|
styleOverrides: {
|
|
@@ -693,7 +713,7 @@ function B(r) {
|
|
|
693
713
|
},
|
|
694
714
|
"& .MuiDataGrid-toolbarContainer": {
|
|
695
715
|
padding: r.spacing(2),
|
|
696
|
-
backgroundColor: r.vars.palette.background.
|
|
716
|
+
backgroundColor: r.vars.palette.background.surface,
|
|
697
717
|
"& .MuiButton-root": {
|
|
698
718
|
marginRight: r.spacing(1.5),
|
|
699
719
|
color: r.vars.palette.text.primary,
|
|
@@ -743,7 +763,7 @@ function B(r) {
|
|
|
743
763
|
...r.colorSchemes.finalTheme.typography.body,
|
|
744
764
|
padding: r.spacing(0.75, 1),
|
|
745
765
|
borderRadius: r.shape.borderRadius,
|
|
746
|
-
backgroundColor: r.vars.palette.background.
|
|
766
|
+
backgroundColor: r.vars.palette.background.surface
|
|
747
767
|
},
|
|
748
768
|
"& .MuiSvgIcon-root": {
|
|
749
769
|
right: 4
|
|
@@ -793,16 +813,16 @@ function I(r) {
|
|
|
793
813
|
};
|
|
794
814
|
}
|
|
795
815
|
function L(r) {
|
|
796
|
-
const o = a(r.colorSchemes.finalTheme.palette.grey[900], 0.48),
|
|
816
|
+
const o = a(r.colorSchemes.finalTheme.palette.grey[900], 0.48), t = a(r.colorSchemes.finalTheme.palette.grey[900], 1);
|
|
797
817
|
return {
|
|
798
818
|
MuiBackdrop: {
|
|
799
819
|
styleOverrides: {
|
|
800
820
|
root: {
|
|
801
821
|
background: [
|
|
802
822
|
"rgb(22,28,36)",
|
|
803
|
-
`-moz-linear-gradient(75deg, ${o} 0%, ${
|
|
804
|
-
`-webkit-linear-gradient(75deg, ${o} 0%, ${
|
|
805
|
-
`linear-gradient(75deg, ${o} 0%, ${
|
|
823
|
+
`-moz-linear-gradient(75deg, ${o} 0%, ${t} 100%)`,
|
|
824
|
+
`-webkit-linear-gradient(75deg, ${o} 0%, ${t} 100%)`,
|
|
825
|
+
`linear-gradient(75deg, ${o} 0%, ${t} 100%)`
|
|
806
826
|
],
|
|
807
827
|
"&.MuiBackdrop-invisible": {
|
|
808
828
|
background: "transparent"
|
|
@@ -812,7 +832,7 @@ function L(r) {
|
|
|
812
832
|
}
|
|
813
833
|
};
|
|
814
834
|
}
|
|
815
|
-
function
|
|
835
|
+
function A(r) {
|
|
816
836
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
817
837
|
return {
|
|
818
838
|
MuiLinearProgress: {
|
|
@@ -825,7 +845,7 @@ function P(r) {
|
|
|
825
845
|
borderRadius: 4
|
|
826
846
|
},
|
|
827
847
|
colorPrimary: {
|
|
828
|
-
backgroundColor: r.vars.palette.primary[o ? "
|
|
848
|
+
backgroundColor: r.vars.palette.primary[o ? "light" : "dark"]
|
|
829
849
|
},
|
|
830
850
|
buffer: {
|
|
831
851
|
backgroundColor: "transparent"
|
|
@@ -834,7 +854,7 @@ function P(r) {
|
|
|
834
854
|
}
|
|
835
855
|
};
|
|
836
856
|
}
|
|
837
|
-
function
|
|
857
|
+
function P(r) {
|
|
838
858
|
return {
|
|
839
859
|
MuiTimelineDot: {
|
|
840
860
|
styleOverrides: {
|
|
@@ -852,13 +872,21 @@ function z(r) {
|
|
|
852
872
|
}
|
|
853
873
|
};
|
|
854
874
|
}
|
|
855
|
-
function
|
|
875
|
+
function z(r) {
|
|
856
876
|
return {
|
|
857
877
|
MuiCheckbox: {
|
|
878
|
+
// defaultProps: {
|
|
879
|
+
// icon: <CheckboxIcon />,
|
|
880
|
+
// checkedIcon: <CheckboxCheckedIcon />,
|
|
881
|
+
// indeterminateIcon: <CheckboxIndeterminateIcon />,
|
|
882
|
+
// },
|
|
858
883
|
styleOverrides: {
|
|
859
884
|
root: {
|
|
860
885
|
padding: r.spacing(1),
|
|
861
886
|
oleee: "sss",
|
|
887
|
+
// '& .MuiCheckbox-root': {
|
|
888
|
+
// color: theme.vars.palette.divider,
|
|
889
|
+
// },
|
|
862
890
|
color: r.vars.palette.action.active,
|
|
863
891
|
"& .Mui-checked": {
|
|
864
892
|
color: r.vars.palette.primary.main
|
|
@@ -866,6 +894,23 @@ function A(r) {
|
|
|
866
894
|
"&.Mui-checked.Mui-disabled, &.Mui-disabled": {
|
|
867
895
|
color: r.vars.palette.action.disabled
|
|
868
896
|
}
|
|
897
|
+
// '& .MuiSvgIcon-root': {
|
|
898
|
+
// color: theme.vars.palette.text.secondary,
|
|
899
|
+
// },
|
|
900
|
+
// '& .MuiSvgIcon-fontSizeMedium': {
|
|
901
|
+
// width: 24,
|
|
902
|
+
// height: 24,
|
|
903
|
+
// },
|
|
904
|
+
// '& .MuiSvgIcon-fontSizeSmall': {
|
|
905
|
+
// width: 18,
|
|
906
|
+
// height: 18,
|
|
907
|
+
// },
|
|
908
|
+
// svg: {
|
|
909
|
+
// fontSize: 24,
|
|
910
|
+
// '&[font-size=small]': {
|
|
911
|
+
// fontSize: 18,
|
|
912
|
+
// },
|
|
913
|
+
// },
|
|
869
914
|
}
|
|
870
915
|
}
|
|
871
916
|
}
|
|
@@ -907,7 +952,7 @@ function $(r) {
|
|
|
907
952
|
borderRadius: r.spacing(0.5),
|
|
908
953
|
height: r.spacing(4.5),
|
|
909
954
|
minHeight: r.spacing(4.5),
|
|
910
|
-
backgroundColor: r.vars.palette.
|
|
955
|
+
backgroundColor: r.vars.palette.primary.opacity,
|
|
911
956
|
paddingLeft: r.spacing(2),
|
|
912
957
|
paddingRight: r.spacing(2),
|
|
913
958
|
marginBottom: "0px",
|
|
@@ -938,6 +983,8 @@ function $(r) {
|
|
|
938
983
|
content: {
|
|
939
984
|
...r.colorSchemes.finalTheme.typography.subtitle2,
|
|
940
985
|
margin: "0px",
|
|
986
|
+
// '& .MuiTypography-root': {
|
|
987
|
+
// },
|
|
941
988
|
"&.Mui-expanded": {
|
|
942
989
|
margin: "0px"
|
|
943
990
|
}
|
|
@@ -951,6 +998,7 @@ function D(r) {
|
|
|
951
998
|
MuiTypography: {
|
|
952
999
|
defaultProps: {
|
|
953
1000
|
variantMapping: {
|
|
1001
|
+
// Map the new variant to render a <h1> by default
|
|
954
1002
|
subtitleDens: "span"
|
|
955
1003
|
}
|
|
956
1004
|
},
|
|
@@ -987,7 +1035,7 @@ function G(r) {
|
|
|
987
1035
|
}
|
|
988
1036
|
},
|
|
989
1037
|
outlined: {
|
|
990
|
-
border: `1px solid ${r.vars.palette
|
|
1038
|
+
border: `1px solid ${r.vars.palette?.border.default}`
|
|
991
1039
|
},
|
|
992
1040
|
outlinedPrimary: {
|
|
993
1041
|
"&.Mui-selected": {
|
|
@@ -1012,8 +1060,8 @@ function H(r) {
|
|
|
1012
1060
|
};
|
|
1013
1061
|
}
|
|
1014
1062
|
function F(r) {
|
|
1015
|
-
const o = (
|
|
1016
|
-
props: { variant: "contained", color:
|
|
1063
|
+
const o = (t) => ({
|
|
1064
|
+
props: { variant: "contained", color: t },
|
|
1017
1065
|
style: { boxShadow: r.customShadows?.primary }
|
|
1018
1066
|
});
|
|
1019
1067
|
return {
|
|
@@ -1159,7 +1207,6 @@ function j(r) {
|
|
|
1159
1207
|
}
|
|
1160
1208
|
},
|
|
1161
1209
|
e(r, "primary"),
|
|
1162
|
-
e(r, "secondary"),
|
|
1163
1210
|
e(r, "info"),
|
|
1164
1211
|
e(r, "success"),
|
|
1165
1212
|
e(r, "warning"),
|
|
@@ -1171,7 +1218,7 @@ function j(r) {
|
|
|
1171
1218
|
root: {
|
|
1172
1219
|
borderRadius: r.shape.borderRadius,
|
|
1173
1220
|
backgroundColor: r.vars.palette.background.paper,
|
|
1174
|
-
border: `solid 1px ${r.vars.palette
|
|
1221
|
+
border: `solid 1px ${r.vars.palette?.border.default}`,
|
|
1175
1222
|
"& .MuiToggleButton-root": {
|
|
1176
1223
|
margin: 4,
|
|
1177
1224
|
borderColor: "transparent !important",
|
|
@@ -1238,32 +1285,32 @@ const q = (r) => ({
|
|
|
1238
1285
|
});
|
|
1239
1286
|
export {
|
|
1240
1287
|
d as A,
|
|
1241
|
-
|
|
1288
|
+
f as B,
|
|
1242
1289
|
c as C,
|
|
1243
|
-
|
|
1290
|
+
S as D,
|
|
1244
1291
|
u as F,
|
|
1245
|
-
|
|
1292
|
+
x as I,
|
|
1246
1293
|
b as L,
|
|
1247
1294
|
g as M,
|
|
1248
|
-
|
|
1295
|
+
M as P,
|
|
1249
1296
|
k as R,
|
|
1250
1297
|
C as S,
|
|
1251
1298
|
y as T,
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1299
|
+
v as a,
|
|
1300
|
+
l as b,
|
|
1301
|
+
h as c,
|
|
1255
1302
|
p as d,
|
|
1256
|
-
|
|
1303
|
+
m as e,
|
|
1257
1304
|
R as f,
|
|
1258
|
-
|
|
1259
|
-
|
|
1305
|
+
T as g,
|
|
1306
|
+
O as h,
|
|
1260
1307
|
w as i,
|
|
1261
|
-
|
|
1308
|
+
z as j,
|
|
1262
1309
|
B as k,
|
|
1263
1310
|
I as l,
|
|
1264
|
-
|
|
1311
|
+
P as m,
|
|
1265
1312
|
L as n,
|
|
1266
|
-
|
|
1313
|
+
A as o,
|
|
1267
1314
|
$ as p,
|
|
1268
1315
|
D as q,
|
|
1269
1316
|
G as r,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { F as s, C as o, M as r, L,
|
|
2
|
-
import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index.
|
|
3
|
-
import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as
|
|
1
|
+
import { F as s, C as o, M as r, L, c as M, I as n, R as i, B as p, a as l, T as c, P as d, S as u, b as g, d as B, A as F, e as P, D as A, f as T, g as b, h as C, i as S, j as v, k as y, l as R, m as H, n as I, o as k, p as f, q as D, r as x, s as w, t as G, u as O, v as V, w as j, x as E, y as N, z as q } from "./MUIComponents/index-DrBJTI1s.js";
|
|
2
|
+
import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index-Dv4h8DSV.js";
|
|
3
|
+
import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as va, C as ya, D as Ra, E as Ha, F as Ia, G as ka, H as fa, I as Da, J as xa, K as wa, L as Ga, N as Oa, O as Va, P as ja, Q as Ea, R as Na, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index-BO_x8lkT.js";
|
|
4
4
|
function ta(a) {
|
|
5
|
-
return Object.assign(
|
|
5
|
+
return console.log("fnComponentsOverrides theme", a), Object.assign(
|
|
6
6
|
s(a),
|
|
7
|
+
// Chip(theme),
|
|
7
8
|
o(a),
|
|
8
9
|
r(a),
|
|
9
10
|
L(a),
|
|
@@ -14,9 +15,12 @@ function ta(a) {
|
|
|
14
15
|
l(a),
|
|
15
16
|
c(a),
|
|
16
17
|
d(a),
|
|
18
|
+
// Alert(theme),
|
|
17
19
|
u(a),
|
|
20
|
+
// Select(theme),
|
|
18
21
|
g(a),
|
|
19
22
|
B(a),
|
|
23
|
+
// Rating(theme),
|
|
20
24
|
F(a),
|
|
21
25
|
P(a),
|
|
22
26
|
A(a),
|
|
@@ -24,23 +28,25 @@ function ta(a) {
|
|
|
24
28
|
b(a),
|
|
25
29
|
C(),
|
|
26
30
|
S(),
|
|
31
|
+
v(a),
|
|
27
32
|
y(a),
|
|
28
|
-
I(a),
|
|
29
33
|
R(a),
|
|
30
|
-
v(a),
|
|
31
34
|
H(a),
|
|
35
|
+
// TreeView(theme),
|
|
36
|
+
I(a),
|
|
32
37
|
k(a),
|
|
33
|
-
D(a),
|
|
34
38
|
f(a),
|
|
39
|
+
D(a),
|
|
35
40
|
x(a),
|
|
36
41
|
w(a),
|
|
37
42
|
G(a),
|
|
38
|
-
|
|
43
|
+
O(),
|
|
44
|
+
V(a),
|
|
39
45
|
j(a),
|
|
40
46
|
E(a),
|
|
41
47
|
N(a),
|
|
42
|
-
O(a),
|
|
43
48
|
_(a),
|
|
49
|
+
/* Owner components */
|
|
44
50
|
q(),
|
|
45
51
|
z(a),
|
|
46
52
|
U(),
|
|
@@ -77,22 +83,22 @@ function ta(a) {
|
|
|
77
83
|
ba(a),
|
|
78
84
|
Ca(a),
|
|
79
85
|
Sa(a),
|
|
86
|
+
va(a),
|
|
80
87
|
ya(a),
|
|
81
|
-
Ia(a),
|
|
82
88
|
Ra(a),
|
|
83
|
-
va(a),
|
|
84
89
|
Ha(a),
|
|
90
|
+
Ia(a),
|
|
85
91
|
ka(a),
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
fa(),
|
|
93
|
+
Da(a),
|
|
88
94
|
xa(),
|
|
89
95
|
wa(a),
|
|
90
96
|
Ga(),
|
|
97
|
+
Oa(a),
|
|
91
98
|
Va(a),
|
|
92
99
|
ja(a),
|
|
93
100
|
Ea(a),
|
|
94
101
|
Na(a),
|
|
95
|
-
Oa(a),
|
|
96
102
|
qa(),
|
|
97
103
|
Z(a),
|
|
98
104
|
za(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaletteColor } from "@mui/material/styles";
|
|
2
|
+
import { DefaultPresetColor } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Opción de paleta default, se usa para construir la opcion de variable semántica default
|
|
5
|
+
*/
|
|
6
|
+
export declare const PRESET_DEFAULT: DefaultPresetColor;
|
|
7
|
+
/**
|
|
8
|
+
* Opción de paleta default en modo light, se usa para colorear componentes con la variante semántica de tipo default
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_COLOR_LIGHT: Omit<PaletteColor, 'focusVisible' | 'contrastText'>;
|
|
11
|
+
/**
|
|
12
|
+
* Opción de paleta default en modo dark, se usa para colorear componentes con la variante semántica de tipo default
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_COLOR_DARK: Omit<PaletteColor, 'focusVisible' | 'contrastText'>;
|
package/theme/palette/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ThemePaletteColors, ThemePaletteColors as OursColorPalette, ThemePresetColors, PresetsOptions } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Conjunto de paletas de colores usados para construir el tema seleccionado por el usario en la aplación.
|
|
4
|
+
* Sus opciones pueden ser patronus, turqui, grass, brown y blaze.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PRESET_COLORS: ThemePresetColors;
|
|
7
|
+
/**
|
|
8
|
+
* Colección de temas de color en modo light, se usan para aportar el color en los componentes de la apliación web.
|
|
9
|
+
* Se tiene en cuanta cuando la variable semántica aplicada al componente es de tipo primary.
|
|
10
|
+
* Sus opciones pueden ser patronus, turqui, grass, brown y blaze.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PRIMARY_COLORS_LIGHT: ThemePaletteColors;
|
|
13
|
+
/**
|
|
14
|
+
* Colección de temas de color en modo dark, se usan para aportar el color en los componentes de la apliación web.
|
|
15
|
+
* Se tiene en cuanta cuando la variable semántica aplicada al componente es de tipo primary.
|
|
16
|
+
* Sus opciones pueden ser patronus, turqui, grass, brown y blaze.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PRIMARY_COLORS_DARK: OursColorPalette;
|
|
5
19
|
export declare const presetsOptions: PresetsOptions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SemanticPresetColors, SemanticsPaletteColors } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Paleta semántica predefinida, se usa para construir las opciones de variable semántica.
|
|
4
|
+
* Puden ser de tipo success, error, warning, info
|
|
5
|
+
*/
|
|
6
|
+
export declare const PRESET_SEMANTICS_COLORS: SemanticPresetColors;
|
|
7
|
+
/**
|
|
8
|
+
* Opciones de paleta semántica en modo light, se usan para aportar el color en los componentes de la apliación web.
|
|
9
|
+
* Se tiene en cuanta cuando la variable semántica aplicada al componente es de tipo warning, error, success o info.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SEMANTIC_COLORS_LIGHT: SemanticsPaletteColors;
|
|
12
|
+
/**
|
|
13
|
+
* Opciones de paleta semántica en modo dark, se usan para aportar el color en los componentes de la apliación web.
|
|
14
|
+
* Se tiene en cuanta cuando la variable semántica aplicada al componente es de tipo warning, error, success o info.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SEMANTIC_COLORS_DARK: SemanticsPaletteColors;
|