@m4l/styles 2.0.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +30 -49
- package/package.json +1 -1
- package/theme/defaultThemeOptions-BlJvKCE6.js +24 -0
- package/theme/index-l0sNRNKZ.js +1 -0
- package/theme/index.d.ts +0 -3
- package/theme/overrides/M4LExtendedComponents/M4LAccordion.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LAccountPopover.d.ts +17 -17
- package/theme/overrides/M4LExtendedComponents/M4LAppBar.d.ts +7 -12
- package/theme/overrides/M4LExtendedComponents/M4LAppBarCommercial.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +33 -33
- package/theme/overrides/M4LExtendedComponents/M4LBadge.d.ts +2 -2
- package/theme/overrides/M4LExtendedComponents/M4LButton.d.ts +7 -7
- package/theme/overrides/M4LExtendedComponents/M4LCommonActions.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LErrorLabel.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LFieldLabel.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LGridLayout.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LHamburgerMenuCommercial.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +4 -4
- package/theme/overrides/M4LExtendedComponents/M4LImageButton.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LPaperForm.d.ts +6 -6
- package/theme/overrides/M4LExtendedComponents/M4LPeriod.d.ts +41 -41
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LScrollBar.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LTab.d.ts +7 -7
- package/theme/overrides/M4LExtendedComponents/M4LTabs.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LTooltip.d.ts +2 -2
- package/theme/overrides/M4LExtendedComponents/M4LanguagePopover.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/M4LoadingButton.d.ts +15 -15
- package/theme/overrides/M4LExtendedComponents/M4LoadingError.d.ts +1 -1
- package/theme/overrides/M4LExtendedComponents/{index.79301515.js → index-Cf72RC_D.js} +785 -477
- package/theme/overrides/M4LRHFComponents/M4LRHFCheckbox.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFColorPicker.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFDateTime.d.ts +1 -1
- package/theme/overrides/M4LRHFComponents/M4LRHFTextField.d.ts +2 -2
- package/theme/overrides/M4LRHFComponents/{index.38639c1b.js → index-BRZVeOM5.js} +229 -151
- package/theme/overrides/MUIComponents/Avatar.d.ts +1 -1
- package/theme/overrides/MUIComponents/Button.d.ts +1 -1
- package/theme/overrides/MUIComponents/ButtonGroup.d.ts +1 -1
- package/theme/overrides/MUIComponents/Pagination.d.ts +1 -1
- package/theme/overrides/MUIComponents/Paper.d.ts +1 -1
- package/theme/overrides/MUIComponents/ToggleButton.d.ts +2 -2
- package/theme/overrides/MUIComponents/{index.5c43e3b5.js → index-XoLdmZP6.js} +121 -70
- package/theme/overrides/{index.78952902.js → index-DrDgOdnk.js} +9 -3
- package/theme/palette/baseColors.d.ts +2 -0
- package/theme/palette/baseOpacityColors.d.ts +2 -0
- package/theme/palette/commonColors.d.ts +2 -0
- package/theme/palette/greyPalette.d.ts +2 -0
- package/theme/palette/index.d.ts +6 -0
- package/theme/palette/palette.d.ts +6 -0
- package/theme/palette/presetColors.d.ts +5 -0
- package/theme/palette/stateColors.d.ts +2 -0
- package/theme/palette-DM0gXxA2.js +584 -0
- package/theme/{shadows.e0c009ff.js → shadows-GTYqExFA.js} +19 -18
- package/theme/{typography.947dc33f.js → typography-BsOO459U.js} +34 -31
- package/types/augmentations.d.ts +144 -137
- package/types/types.d.ts +48 -25
- package/utils/getColorPresets-CXZaM9oS.js +14 -0
- package/utils/getColorPresets.d.ts +4 -9
- package/utils/{getFontValue.88831637.js → getFontValue-BEO-XID9.js} +8 -5
- package/utils/index.d.ts +0 -1
- package/vite-env.d.ts +3 -3
- package/theme/defaultThemeOptions.d580f3ec.js +0 -34
- package/theme/index.16e25179.js +0 -7
- package/theme/palette.287635f2.js +0 -438
- package/theme/palette.d.ts +0 -231
- package/utils/getColorPresets.a96a4046.js +0 -76
- package/utils/getColorState.18b61422.js +0 -256
- package/utils/getColorState.d.ts +0 -26
- /package/{config.5405b46b.js → config-CoeBxEZB.js} +0 -0
- /package/utils/{useResponsive.2c45e8e0.js → useResponsive-DaeQVwlH.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
export default function Avatar(theme: Omit<Theme,
|
|
2
|
+
export default function Avatar(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
3
3
|
MuiAvatar: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
borderTop: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
export default function Button(theme: Omit<Theme,
|
|
2
|
+
export default function Button(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
3
3
|
MuiButton: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
root: {
|
|
@@ -4,7 +4,7 @@ export default function ButtonGroup(theme: Omit<Theme, "palette" | "applyStyles"
|
|
|
4
4
|
variants: ({
|
|
5
5
|
props: {
|
|
6
6
|
variant: string;
|
|
7
|
-
color: "
|
|
7
|
+
color: "info" | "success" | "warning" | "error" | "primary" | "secondary";
|
|
8
8
|
};
|
|
9
9
|
style: {
|
|
10
10
|
boxShadow: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
export default function Pagination(theme: Omit<Theme,
|
|
2
|
+
export default function Pagination(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
3
3
|
MuiPaginationItem: {
|
|
4
4
|
styleOverrides: {
|
|
5
5
|
root: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
export default function Paper(theme: Omit<Theme,
|
|
2
|
+
export default function Paper(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
3
3
|
MuiPaper: {
|
|
4
4
|
defaultProps: {
|
|
5
5
|
elevation: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme, CssVarsTheme } from '@mui/material/styles';
|
|
2
|
-
import { ColorSchema } from '
|
|
3
|
-
export default function ToggleButton(theme: Omit<Theme,
|
|
2
|
+
import { ColorSchema } from '../../../types';
|
|
3
|
+
export default function ToggleButton(theme: Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme): {
|
|
4
4
|
MuiToggleButton: {
|
|
5
5
|
variants: ({
|
|
6
6
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { alpha as
|
|
1
|
+
import { alpha as t } 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]
|
|
@@ -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.line}`,
|
|
76
79
|
"&:hover": {
|
|
77
80
|
backgroundColor: r.vars.palette.action.hover,
|
|
78
81
|
borderRadius: "4px"
|
|
@@ -89,9 +92,12 @@ function l(r) {
|
|
|
89
92
|
}
|
|
90
93
|
};
|
|
91
94
|
}
|
|
92
|
-
function
|
|
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,11 +115,14 @@ function u(r) {
|
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
}
|
|
118
|
+
// colorDefault: {
|
|
119
|
+
// color: theme.vars.palette.text.primary,
|
|
120
|
+
// }
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
};
|
|
115
124
|
}
|
|
116
|
-
function
|
|
125
|
+
function u(r) {
|
|
117
126
|
return {
|
|
118
127
|
MuiFab: {
|
|
119
128
|
defaultProps: {
|
|
@@ -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.main,
|
|
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.main} 0%, ${r.vars.palette.background.main} 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 M(r) {
|
|
336
346
|
return {
|
|
337
347
|
MuiBadge: {
|
|
338
348
|
styleOverrides: {
|
|
@@ -341,12 +351,13 @@ function f(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 f(r) {
|
|
350
361
|
return {
|
|
351
362
|
MuiPaper: {
|
|
352
363
|
defaultProps: {
|
|
@@ -355,7 +366,7 @@ function M(r) {
|
|
|
355
366
|
variants: [
|
|
356
367
|
{
|
|
357
368
|
props: { variant: "outlined" },
|
|
358
|
-
style: { borderColor: r.vars.palette.
|
|
369
|
+
style: { borderColor: r.vars.palette.border.line }
|
|
359
370
|
}
|
|
360
371
|
],
|
|
361
372
|
styleOverrides: {
|
|
@@ -363,6 +374,7 @@ function M(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",
|
|
@@ -370,21 +382,22 @@ function M(r) {
|
|
|
370
382
|
...r.colorSchemes.finalTheme.typography.action
|
|
371
383
|
},
|
|
372
384
|
"& .MuiStack-root .MuiMenuItem-root:hover": {
|
|
373
|
-
color: r.vars.palette.
|
|
385
|
+
color: r.vars.palette.primary?.hover,
|
|
374
386
|
transition: "all .5s",
|
|
375
|
-
backgroundColor: r.vars.palette.
|
|
387
|
+
backgroundColor: r.vars.palette.primary?.activeOpacity
|
|
376
388
|
},
|
|
377
389
|
"& .MuiStack-root .MuiMenuItem-root.Mui-selected": {
|
|
378
|
-
color: r.vars.palette.
|
|
390
|
+
color: r.vars.palette.primary?.active,
|
|
379
391
|
transition: "all .5s",
|
|
380
|
-
backgroundColor: r.vars.palette.
|
|
392
|
+
backgroundColor: r.vars.palette.primary?.activeOpacity
|
|
381
393
|
},
|
|
382
394
|
"& .MuiStack-root .MuiMenuItem-root:focus": {
|
|
383
|
-
color: r.vars.palette.
|
|
395
|
+
color: r.vars.palette.primary?.focus,
|
|
384
396
|
transition: "all .5s",
|
|
385
397
|
backgroundColor: r.vars.palette.background.default,
|
|
386
|
-
boxShadow: `0 0 0 1px ${r.vars.palette.
|
|
398
|
+
boxShadow: `0 0 0 1px ${r.vars.palette.primary?.focus}`
|
|
387
399
|
},
|
|
400
|
+
/* Autocomplete Listbox */
|
|
388
401
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option": {
|
|
389
402
|
color: r.vars.palette.text.primary,
|
|
390
403
|
transition: "all .5s",
|
|
@@ -392,20 +405,20 @@ function M(r) {
|
|
|
392
405
|
...r.colorSchemes.finalTheme.typography.action
|
|
393
406
|
},
|
|
394
407
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:hover": {
|
|
395
|
-
color: r.vars.palette.
|
|
408
|
+
color: r.vars.palette.primary?.hover,
|
|
396
409
|
transition: "all .5s",
|
|
397
|
-
backgroundColor: r.vars.palette.
|
|
410
|
+
backgroundColor: r.vars.palette.primary?.activeOpacity
|
|
398
411
|
},
|
|
399
412
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option.Mui-selected": {
|
|
400
|
-
color: r.vars.palette.
|
|
413
|
+
color: r.vars.palette.primary?.active,
|
|
401
414
|
transition: "all .5s",
|
|
402
|
-
backgroundColor: r.vars.palette.
|
|
415
|
+
backgroundColor: r.vars.palette.primary?.activeOpacity
|
|
403
416
|
},
|
|
404
417
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option:active": {
|
|
405
|
-
color: r.vars.palette.
|
|
418
|
+
color: r.vars.palette.primary?.focus,
|
|
406
419
|
transition: "all .5s",
|
|
407
420
|
backgroundColor: r.vars.palette.background.default,
|
|
408
|
-
boxShadow: `0 0 0 1px ${r.vars.palette.
|
|
421
|
+
boxShadow: `0 0 0 1px ${r.vars.palette.primary?.focus}`
|
|
409
422
|
}
|
|
410
423
|
}
|
|
411
424
|
}
|
|
@@ -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.line
|
|
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.line,
|
|
463
477
|
"&:hover": {
|
|
464
|
-
backgroundColor: r.vars.palette.
|
|
478
|
+
backgroundColor: r.vars.palette.border.line
|
|
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.line
|
|
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.line,
|
|
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 m(r) {
|
|
542
557
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
543
558
|
return {
|
|
544
559
|
MuiDrawer: {
|
|
@@ -547,22 +562,27 @@ function S(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.main,
|
|
551
566
|
display: "flex",
|
|
552
567
|
flexDirection: "row"
|
|
553
568
|
}
|
|
569
|
+
/* "& .MuiPaper-root": {
|
|
570
|
+
borderRadius: "4px",
|
|
571
|
+
backgroundColor: theme.vars.palette.primary.activeOpacity,
|
|
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 ${t(
|
|
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 ${t(
|
|
566
586
|
r.colorSchemes.finalTheme.palette.grey[900],
|
|
567
587
|
o ? 0.16 : 0.48
|
|
568
588
|
)}`
|
|
@@ -573,7 +593,7 @@ function S(r) {
|
|
|
573
593
|
}
|
|
574
594
|
};
|
|
575
595
|
}
|
|
576
|
-
function
|
|
596
|
+
function S(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 O(r) {
|
|
650
670
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
651
671
|
return {
|
|
652
672
|
MuiTooltip: {
|
|
@@ -661,7 +681,7 @@ function T(r) {
|
|
|
661
681
|
}
|
|
662
682
|
};
|
|
663
683
|
}
|
|
664
|
-
function
|
|
684
|
+
function T(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.main,
|
|
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.main
|
|
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), i = 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%, ${i} 100%)`,
|
|
824
|
+
`-webkit-linear-gradient(75deg, ${o} 0%, ${i} 100%)`,
|
|
825
|
+
`linear-gradient(75deg, ${o} 0%, ${i} 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 P(r) {
|
|
816
836
|
const o = r.colorSchemes.finalTheme.palette.mode === "light";
|
|
817
837
|
return {
|
|
818
838
|
MuiLinearProgress: {
|
|
@@ -834,7 +854,7 @@ function D(r) {
|
|
|
834
854
|
}
|
|
835
855
|
};
|
|
836
856
|
}
|
|
837
|
-
function
|
|
857
|
+
function z(r) {
|
|
838
858
|
return {
|
|
839
859
|
MuiTimelineDot: {
|
|
840
860
|
styleOverrides: {
|
|
@@ -852,13 +872,21 @@ function P(r) {
|
|
|
852
872
|
}
|
|
853
873
|
};
|
|
854
874
|
}
|
|
855
|
-
function
|
|
875
|
+
function A(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,12 +894,29 @@ function z(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
|
}
|
|
872
917
|
};
|
|
873
918
|
}
|
|
874
|
-
function
|
|
919
|
+
function $(r) {
|
|
875
920
|
return {
|
|
876
921
|
MuiAccordion: {
|
|
877
922
|
styleOverrides: {
|
|
@@ -938,6 +983,8 @@ function A(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
|
}
|
|
@@ -946,11 +993,12 @@ function A(r) {
|
|
|
946
993
|
}
|
|
947
994
|
};
|
|
948
995
|
}
|
|
949
|
-
function
|
|
996
|
+
function D(r) {
|
|
950
997
|
return {
|
|
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.line}`
|
|
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 = (i) => ({
|
|
1064
|
+
props: { variant: "contained", color: i },
|
|
1017
1065
|
style: { boxShadow: r.customShadows?.primary }
|
|
1018
1066
|
});
|
|
1019
1067
|
return {
|
|
@@ -1131,12 +1179,15 @@ function _(r) {
|
|
|
1131
1179
|
}
|
|
1132
1180
|
};
|
|
1133
1181
|
}
|
|
1134
|
-
const
|
|
1182
|
+
const e = (r, o) => ({
|
|
1135
1183
|
props: { color: o },
|
|
1136
1184
|
style: {
|
|
1137
1185
|
"&:hover": {
|
|
1138
1186
|
borderColor: a(r.colorSchemes.finalTheme.palette[o].main, 0.48),
|
|
1139
|
-
backgroundColor: a(
|
|
1187
|
+
backgroundColor: a(
|
|
1188
|
+
r.colorSchemes.finalTheme.palette[o].main,
|
|
1189
|
+
r.vars.palette.action.hoverOpacity
|
|
1190
|
+
)
|
|
1140
1191
|
},
|
|
1141
1192
|
"&.Mui-selected": {
|
|
1142
1193
|
borderColor: a(r.colorSchemes.finalTheme.palette[o].main, 0.48)
|
|
@@ -1155,12 +1206,12 @@ function j(r) {
|
|
|
1155
1206
|
}
|
|
1156
1207
|
}
|
|
1157
1208
|
},
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1209
|
+
e(r, "primary"),
|
|
1210
|
+
e(r, "secondary"),
|
|
1211
|
+
e(r, "info"),
|
|
1212
|
+
e(r, "success"),
|
|
1213
|
+
e(r, "warning"),
|
|
1214
|
+
e(r, "error")
|
|
1164
1215
|
]
|
|
1165
1216
|
},
|
|
1166
1217
|
MuiToggleButtonGroup: {
|
|
@@ -1168,7 +1219,7 @@ function j(r) {
|
|
|
1168
1219
|
root: {
|
|
1169
1220
|
borderRadius: r.shape.borderRadius,
|
|
1170
1221
|
backgroundColor: r.vars.palette.background.paper,
|
|
1171
|
-
border: `solid 1px ${r.vars.palette.
|
|
1222
|
+
border: `solid 1px ${r.vars.palette.border.line}`,
|
|
1172
1223
|
"& .MuiToggleButton-root": {
|
|
1173
1224
|
margin: 4,
|
|
1174
1225
|
borderColor: "transparent !important",
|
|
@@ -1235,34 +1286,34 @@ const q = (r) => ({
|
|
|
1235
1286
|
});
|
|
1236
1287
|
export {
|
|
1237
1288
|
d as A,
|
|
1238
|
-
|
|
1289
|
+
M as B,
|
|
1239
1290
|
c as C,
|
|
1240
|
-
|
|
1241
|
-
|
|
1291
|
+
m as D,
|
|
1292
|
+
u as F,
|
|
1242
1293
|
h as I,
|
|
1243
1294
|
b as L,
|
|
1244
1295
|
g as M,
|
|
1245
|
-
|
|
1296
|
+
f as P,
|
|
1246
1297
|
k as R,
|
|
1247
1298
|
C as S,
|
|
1248
1299
|
y as T,
|
|
1249
1300
|
x as a,
|
|
1250
1301
|
v as b,
|
|
1251
1302
|
l as c,
|
|
1252
|
-
|
|
1253
|
-
|
|
1303
|
+
p as d,
|
|
1304
|
+
S as e,
|
|
1254
1305
|
R as f,
|
|
1255
|
-
|
|
1256
|
-
|
|
1306
|
+
O as g,
|
|
1307
|
+
T as h,
|
|
1257
1308
|
w as i,
|
|
1258
|
-
|
|
1309
|
+
A as j,
|
|
1259
1310
|
B as k,
|
|
1260
1311
|
I as l,
|
|
1261
|
-
|
|
1312
|
+
z as m,
|
|
1262
1313
|
L as n,
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1314
|
+
P as o,
|
|
1315
|
+
$ as p,
|
|
1316
|
+
D as q,
|
|
1266
1317
|
G as r,
|
|
1267
1318
|
F as s,
|
|
1268
1319
|
H as t,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as l, T as c, P as d, S as u, c 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 y, k as I, l as R, m as v, n as H, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index.
|
|
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 ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, 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.
|
|
1
|
+
import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as l, T as c, P as d, S as u, c 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 y, k as I, l as R, m as v, n as H, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index-XoLdmZP6.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-BRZVeOM5.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 ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, 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-Cf72RC_D.js";
|
|
4
4
|
function ta(a) {
|
|
5
5
|
return 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),
|
|
@@ -28,6 +32,7 @@ function ta(a) {
|
|
|
28
32
|
I(a),
|
|
29
33
|
R(a),
|
|
30
34
|
v(a),
|
|
35
|
+
// TreeView(theme),
|
|
31
36
|
H(a),
|
|
32
37
|
k(a),
|
|
33
38
|
D(a),
|
|
@@ -41,6 +46,7 @@ function ta(a) {
|
|
|
41
46
|
N(a),
|
|
42
47
|
O(a),
|
|
43
48
|
_(a),
|
|
49
|
+
/* Owner components */
|
|
44
50
|
q(),
|
|
45
51
|
z(a),
|
|
46
52
|
U(),
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BASE_COLORS } from './baseColors';
|
|
2
|
+
export { BASE_OPACITY_COLORS } from './baseOpacityColors';
|
|
3
|
+
export { COMMON_COLORS } from './commonColors';
|
|
4
|
+
export { GREY_PALETTE } from './greyPalette';
|
|
5
|
+
export { presetsOptions } from './presetColors';
|
|
6
|
+
export * from './palette';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PresetActionsPalettes, PresetPalettes, PresetsOptions } from '../../types';
|
|
2
|
+
export declare const PRESET_COLORS: PresetPalettes;
|
|
3
|
+
export declare const PRESET_ACTION_COLORS_LIGHT: PresetActionsPalettes;
|
|
4
|
+
export declare const PRESET_ACTION_COLORS_DARK: PresetActionsPalettes;
|
|
5
|
+
export declare const presetsOptions: PresetsOptions;
|