@m4l/styles 7.1.40 → 7.1.42-beta.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/config.d.ts +1 -0
- package/config.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -0
- package/index.js +6547 -63
- package/lib/PaletteSwatch.d.ts +5 -0
- package/lib/PaletteSwatch.d.ts.map +1 -0
- package/overrides/M4LRHFormProvider.d.ts +21 -0
- package/overrides/M4LRHFormProvider.d.ts.map +1 -0
- package/overrides/index.d.ts +2 -1
- package/overrides/index.d.ts.map +1 -0
- package/package.json +18 -39
- package/theme/breakpoints.d.ts +1 -0
- package/theme/breakpoints.d.ts.map +1 -0
- package/theme/index.d.ts +1 -0
- package/theme/index.d.ts.map +1 -0
- package/theme/palette/baseChipsPalette.d.ts +1 -0
- package/theme/palette/baseChipsPalette.d.ts.map +1 -0
- package/theme/palette/baseColors.d.ts +1 -0
- package/theme/palette/baseColors.d.ts.map +1 -0
- package/theme/palette/baseOpacityColors.d.ts +1 -0
- package/theme/palette/baseOpacityColors.d.ts.map +1 -0
- package/theme/palette/commonColors.d.ts +1 -0
- package/theme/palette/commonColors.d.ts.map +1 -0
- package/theme/palette/defaultColors.d.ts +1 -0
- package/theme/palette/defaultColors.d.ts.map +1 -0
- package/theme/palette/greyPalette.d.ts +1 -0
- package/theme/palette/greyPalette.d.ts.map +1 -0
- package/theme/palette/index.d.ts +1 -0
- package/theme/palette/index.d.ts.map +1 -0
- package/theme/palette/presetColors.d.ts +1 -0
- package/theme/palette/presetColors.d.ts.map +1 -0
- package/theme/palette/semanticColors.d.ts +1 -0
- package/theme/palette/semanticColors.d.ts.map +1 -0
- package/theme/shadows.d.ts +1 -0
- package/theme/shadows.d.ts.map +1 -0
- package/theme/sizes/BaseDensity.d.ts +1 -0
- package/theme/sizes/BaseDensity.d.ts.map +1 -0
- package/theme/sizes/baseBorder.d.ts +1 -0
- package/theme/sizes/baseBorder.d.ts.map +1 -0
- package/theme/sizes/baseBorderRadius.d.ts +1 -0
- package/theme/sizes/baseBorderRadius.d.ts.map +1 -0
- package/theme/sizes/baseSizes.d.ts +1 -0
- package/theme/sizes/baseSizes.d.ts.map +1 -0
- package/theme/sizes/index.d.ts +1 -0
- package/theme/sizes/index.d.ts.map +1 -0
- package/theme/sizes/pointerQr.d.ts +1 -0
- package/theme/sizes/pointerQr.d.ts.map +1 -0
- package/theme/sizes/presetSizes.d.ts +1 -0
- package/theme/sizes/presetSizes.d.ts.map +1 -0
- package/theme/sizes/size.d.ts +1 -0
- package/theme/sizes/size.d.ts.map +1 -0
- package/theme/sizes/types.d.ts +1 -0
- package/theme/sizes/types.d.ts.map +1 -0
- package/theme/typography/baseFontSize.d.ts +1 -0
- package/theme/typography/baseFontSize.d.ts.map +1 -0
- package/theme/typography/baseLetterSpacing.d.ts +1 -0
- package/theme/typography/baseLetterSpacing.d.ts.map +1 -0
- package/theme/typography/baseLineHeight.d.ts +1 -0
- package/theme/typography/baseLineHeight.d.ts.map +1 -0
- package/theme/typography/baseWeight.d.ts +1 -0
- package/theme/typography/baseWeight.d.ts.map +1 -0
- package/theme/typography/index.d.ts +1 -0
- package/theme/typography/index.d.ts.map +1 -0
- package/theme/typography/types.d.ts +1 -0
- package/theme/typography/types.d.ts.map +1 -0
- package/theme/typography/typography.d.ts +1 -0
- package/theme/typography/typography.d.ts.map +1 -0
- package/theme/typography/typographySizes.d.ts +1 -0
- package/theme/typography/typographySizes.d.ts.map +1 -0
- package/theme/typographyOld.d.ts +1 -0
- package/theme/typographyOld.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/types.d.ts +1 -0
- package/types/types.d.ts.map +1 -0
- package/utils/getColorPresets.d.ts +1 -0
- package/utils/getColorPresets.d.ts.map +1 -0
- package/utils/getColorState.d.ts +1 -0
- package/utils/getColorState.d.ts.map +1 -0
- package/utils/getFontValue.d.ts +1 -0
- package/utils/getFontValue.d.ts.map +1 -0
- package/utils/getPaletteByPreset.d.ts +27 -26
- package/utils/getPaletteByPreset.d.ts.map +1 -0
- package/utils/getUserThemeOptions.d.ts +1 -0
- package/utils/getUserThemeOptions.d.ts.map +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/useResponsive.d.ts +2 -1
- package/utils/useResponsive.d.ts.map +1 -0
- package/config.js +0 -17
- package/overrides/index.js +0 -6
- package/theme/index.js +0 -1
- package/theme/palette/baseChipsPalette.js +0 -1099
- package/theme/palette/baseColors.js +0 -533
- package/theme/palette/baseOpacityColors.js +0 -229
- package/theme/palette/commonColors.js +0 -7
- package/theme/palette/defaultColors.js +0 -117
- package/theme/palette/greyPalette.js +0 -29
- package/theme/palette/index.js +0 -1
- package/theme/palette/presetColors.js +0 -646
- package/theme/palette/semanticColors.js +0 -484
- package/theme/shadows.js +0 -81
- package/theme/sizes/BaseDensity.js +0 -9
- package/theme/sizes/baseBorder.js +0 -7
- package/theme/sizes/baseBorderRadius.js +0 -12
- package/theme/sizes/baseSizes.js +0 -30
- package/theme/sizes/index.js +0 -1
- package/theme/sizes/pointerQr.js +0 -61
- package/theme/sizes/presetSizes.js +0 -58
- package/theme/sizes/size.js +0 -30
- package/theme/sizes/types.js +0 -1
- package/theme/typography/baseFontSize.js +0 -56
- package/theme/typography/baseLetterSpacing.js +0 -7
- package/theme/typography/baseLineHeight.js +0 -12
- package/theme/typography/baseWeight.js +0 -8
- package/theme/typography/index.js +0 -1
- package/theme/typography/types.js +0 -1
- package/theme/typography/typography.js +0 -14
- package/theme/typography/typographySizes.js +0 -307
- package/theme/typographyOld.js +0 -137
- package/types/augmentations.d.js +0 -1
- package/types/augmentations.d.ts +0 -158
- package/types/index.js +0 -1
- package/types/types.js +0 -1
- package/utils/getColorPresets.js +0 -14
- package/utils/getColorState.js +0 -4
- package/utils/getFontValue.js +0 -24
- package/utils/getPaletteByPreset.js +0 -240
- package/utils/getUserThemeOptions.js +0 -29
- package/utils/index.js +0 -1
- package/utils/useResponsive.js +0 -16
- package/vite-env.d.ts +0 -3
package/types/augmentations.d.ts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import type { CustomShadowOptions } from '../theme';
|
|
2
|
-
import type { Size } from '../theme/sizes/types';
|
|
3
|
-
import type { BaseChipColors } from './types';
|
|
4
|
-
declare module '@mui/material' {
|
|
5
|
-
interface Color {
|
|
6
|
-
0: string;
|
|
7
|
-
500_8: string;
|
|
8
|
-
500_12: string;
|
|
9
|
-
500_16: string;
|
|
10
|
-
500_24: string;
|
|
11
|
-
500_32: string;
|
|
12
|
-
500_48: string;
|
|
13
|
-
500_56: string;
|
|
14
|
-
500_80: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
declare module '@mui/material/styles' {
|
|
18
|
-
interface PaletteColor {
|
|
19
|
-
enabled: string;
|
|
20
|
-
enabledOpacity: string;
|
|
21
|
-
hover: string;
|
|
22
|
-
hoverOpacity: string;
|
|
23
|
-
focus: string;
|
|
24
|
-
focusOpacity: string;
|
|
25
|
-
focusVisible: string;
|
|
26
|
-
selected: string;
|
|
27
|
-
selectedOpacity: string;
|
|
28
|
-
active: string;
|
|
29
|
-
activeOpacity: string;
|
|
30
|
-
opacity: string;
|
|
31
|
-
toneOpacity: string;
|
|
32
|
-
semanticText: string;
|
|
33
|
-
opacityGradient1: string;
|
|
34
|
-
opacityGradient2: string;
|
|
35
|
-
}
|
|
36
|
-
interface Palette {
|
|
37
|
-
mode: 'light' | 'dark';
|
|
38
|
-
secondary: never;
|
|
39
|
-
skeleton: { default: string; transition: string };
|
|
40
|
-
default: PaletteColor;
|
|
41
|
-
border: {
|
|
42
|
-
main: string;
|
|
43
|
-
default: string;
|
|
44
|
-
secondary: string;
|
|
45
|
-
dens: string;
|
|
46
|
-
disabled: string;
|
|
47
|
-
error: string;
|
|
48
|
-
};
|
|
49
|
-
chips: BaseChipColors;
|
|
50
|
-
general: {
|
|
51
|
-
scrollBar: string;
|
|
52
|
-
gridHover: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Interfaz de colores de material-ui, define las opciones de personalización de la paleta de colores que se
|
|
57
|
-
* pueden usar al crear un tema con la función `createTheme`.
|
|
58
|
-
*/
|
|
59
|
-
interface PaletteOptions {
|
|
60
|
-
mode: 'light' | 'dark';
|
|
61
|
-
secondary: never;
|
|
62
|
-
skeleton: { default: string; transition: string };
|
|
63
|
-
border: {
|
|
64
|
-
main: string;
|
|
65
|
-
default: string;
|
|
66
|
-
secondary: string;
|
|
67
|
-
dens: string;
|
|
68
|
-
disabled: string;
|
|
69
|
-
error: string;
|
|
70
|
-
};
|
|
71
|
-
chips: BaseChipColors;
|
|
72
|
-
default: PaletteColor;
|
|
73
|
-
general: {
|
|
74
|
-
scrollBar: string;
|
|
75
|
-
gridHover: string;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface TypeText {
|
|
80
|
-
primary: string;
|
|
81
|
-
secondary: string;
|
|
82
|
-
disabled: string;
|
|
83
|
-
contrastText: string;
|
|
84
|
-
}
|
|
85
|
-
interface ColorSchemeOverrides {
|
|
86
|
-
finalTheme?: true;
|
|
87
|
-
}
|
|
88
|
-
interface CssVarsTheme {
|
|
89
|
-
generalSettings: {
|
|
90
|
-
isMobile: boolean;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
interface Theme extends CssVarsTheme {
|
|
94
|
-
stretch: boolean;
|
|
95
|
-
customShadows: CustomShadowOptions;
|
|
96
|
-
size: Size;
|
|
97
|
-
}
|
|
98
|
-
interface CssVarsThemeOptions {
|
|
99
|
-
generalSettings: {
|
|
100
|
-
isMobile: boolean;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
interface ThemeVars {
|
|
104
|
-
customShadows: CustomShadowOptions;
|
|
105
|
-
/**
|
|
106
|
-
* Colección de tamaños y espaciados base en el sistema de diseño
|
|
107
|
-
*/
|
|
108
|
-
size: Size;
|
|
109
|
-
}
|
|
110
|
-
interface ColorSystem {
|
|
111
|
-
typography: TypographyVariants;
|
|
112
|
-
}
|
|
113
|
-
interface TypeBackground {
|
|
114
|
-
default: string;
|
|
115
|
-
neutral: string;
|
|
116
|
-
surface: string;
|
|
117
|
-
hover: string;
|
|
118
|
-
backdrop: string;
|
|
119
|
-
base: string;
|
|
120
|
-
blur: string;
|
|
121
|
-
contrastDefault: string;
|
|
122
|
-
}
|
|
123
|
-
interface TypographyVariants {
|
|
124
|
-
subtitle: Record<string, any>;
|
|
125
|
-
subtitleDens: Record<string, any>;
|
|
126
|
-
paragraph: Record<string, any>;
|
|
127
|
-
paragraphDens: Record<string, any>;
|
|
128
|
-
body: Record<string, any>;
|
|
129
|
-
bodyDens: Record<string, any>;
|
|
130
|
-
action: Record<string, any>;
|
|
131
|
-
caption: Record<string, any>;
|
|
132
|
-
captionDens: Record<string, any>;
|
|
133
|
-
}
|
|
134
|
-
interface TypographyVariantsOptions {
|
|
135
|
-
subtitle: React.CSSProperties;
|
|
136
|
-
subtitleDens: React.CSSProperties;
|
|
137
|
-
paragraph: React.CSSProperties;
|
|
138
|
-
paragraphDens: React.CSSProperties;
|
|
139
|
-
body: React.CSSProperties;
|
|
140
|
-
bodyDens: React.CSSProperties;
|
|
141
|
-
action: React.CSSProperties;
|
|
142
|
-
caption: React.CSSProperties;
|
|
143
|
-
captionDens: React.CSSProperties;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
declare module '@mui/material/Typography' {
|
|
147
|
-
interface TypographyPropsVariantOverrides {
|
|
148
|
-
subtitle: true;
|
|
149
|
-
subtitleDens: true;
|
|
150
|
-
paragraph: true;
|
|
151
|
-
paragraphDens: true;
|
|
152
|
-
body: true;
|
|
153
|
-
bodyDens: true;
|
|
154
|
-
action: true;
|
|
155
|
-
caption: true;
|
|
156
|
-
captionDens: true;
|
|
157
|
-
}
|
|
158
|
-
}
|
package/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/types/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/utils/getColorPresets.js
DELETED
package/utils/getColorState.js
DELETED
package/utils/getFontValue.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function t(n) {
|
|
2
|
-
return Math.round(parseFloat(n) * 16);
|
|
3
|
-
}
|
|
4
|
-
function o(n) {
|
|
5
|
-
return `${n / 16}rem`;
|
|
6
|
-
}
|
|
7
|
-
function r({ sm: n, md: e, lg: i }) {
|
|
8
|
-
return {
|
|
9
|
-
"@media (min-width:0px)": {
|
|
10
|
-
fontSize: `${n}px`
|
|
11
|
-
},
|
|
12
|
-
"@media (min-width:900px)": {
|
|
13
|
-
fontSize: `${e}px`
|
|
14
|
-
},
|
|
15
|
-
"@media (min-width:1200px)": {
|
|
16
|
-
fontSize: `${i}px`
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
r as a,
|
|
22
|
-
o as p,
|
|
23
|
-
t as r
|
|
24
|
-
};
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { a as g, b as f, P as l } from "../theme/palette/presetColors.js";
|
|
2
|
-
import { B as o } from "../theme/palette/baseColors.js";
|
|
3
|
-
import { C as s } from "../theme/palette/commonColors.js";
|
|
4
|
-
import { G as d } from "../theme/palette/greyPalette.js";
|
|
5
|
-
import { S as i, a as c } from "../theme/palette/semanticColors.js";
|
|
6
|
-
import { B as a } from "../theme/palette/baseOpacityColors.js";
|
|
7
|
-
import { B as b, a as u } from "../theme/palette/defaultColors.js";
|
|
8
|
-
import { a as y, B as m } from "../theme/palette/baseChipsPalette.js";
|
|
9
|
-
const t = {
|
|
10
|
-
light: {
|
|
11
|
-
scrollBar: "#5663763D",
|
|
12
|
-
gridHover: "#FCFCFC"
|
|
13
|
-
}
|
|
14
|
-
}, h = (n) => {
|
|
15
|
-
const r = g?.[n], e = f?.[n];
|
|
16
|
-
return {
|
|
17
|
-
light: {
|
|
18
|
-
mode: "light",
|
|
19
|
-
common: s,
|
|
20
|
-
primary: {
|
|
21
|
-
...r
|
|
22
|
-
},
|
|
23
|
-
default: {
|
|
24
|
-
...u,
|
|
25
|
-
semanticText: o.onyx[20],
|
|
26
|
-
focusVisible: r.focusVisible
|
|
27
|
-
},
|
|
28
|
-
divider: o.coolGrey[20],
|
|
29
|
-
text: {
|
|
30
|
-
primary: o.onyx[20],
|
|
31
|
-
secondary: o.coolGrey[50],
|
|
32
|
-
disabled: o.coolGrey[30],
|
|
33
|
-
contrastText: o.marbleLight[10]
|
|
34
|
-
},
|
|
35
|
-
background: {
|
|
36
|
-
default: o.marbleLight[10],
|
|
37
|
-
neutral: o.marbleLight[30],
|
|
38
|
-
surface: o.marbleLight[50],
|
|
39
|
-
hover: u.hover,
|
|
40
|
-
backdrop: a.oxford[30],
|
|
41
|
-
base: o.marbleLight[20],
|
|
42
|
-
blur: a.marble[60],
|
|
43
|
-
contrastDefault: o.onyx[20],
|
|
44
|
-
//por compatibilidad de mui
|
|
45
|
-
paper: "#fff"
|
|
46
|
-
},
|
|
47
|
-
chips: {
|
|
48
|
-
primary: {
|
|
49
|
-
outlined: {
|
|
50
|
-
color: r.enabled,
|
|
51
|
-
// Comprobado
|
|
52
|
-
backgroundColor: r.enabledOpacity,
|
|
53
|
-
// Comprobado
|
|
54
|
-
backgroundHover: r.hoverOpacity,
|
|
55
|
-
// Comprobado
|
|
56
|
-
backgroundActive: r.activeOpacity,
|
|
57
|
-
// Comprobado
|
|
58
|
-
/* Tone */
|
|
59
|
-
colorTone: r.semanticText,
|
|
60
|
-
// Comprobado
|
|
61
|
-
backgroundColorTone: r.enabled,
|
|
62
|
-
// Comprobado
|
|
63
|
-
backgroundHoverTone: r.hover,
|
|
64
|
-
// Comprobado
|
|
65
|
-
backgroundActiveTone: r.activeOpacity
|
|
66
|
-
// Comprobado
|
|
67
|
-
},
|
|
68
|
-
contained: {
|
|
69
|
-
color: r.semanticText,
|
|
70
|
-
// Comprobado
|
|
71
|
-
backgroundColor: r.enabledOpacity,
|
|
72
|
-
// Comprobado
|
|
73
|
-
backgroundHover: r.hoverOpacity,
|
|
74
|
-
// Comprobado
|
|
75
|
-
backgroundActive: r.activeOpacity,
|
|
76
|
-
// Comprobado
|
|
77
|
-
/* Tono */
|
|
78
|
-
colorTone: o.marbleLight[30],
|
|
79
|
-
// Comprobado
|
|
80
|
-
backgroundColorTone: r.enabled,
|
|
81
|
-
// Comprobado
|
|
82
|
-
backgroundHoverTone: r.hover,
|
|
83
|
-
// Comprobado
|
|
84
|
-
backgroundActiveTone: r.active
|
|
85
|
-
// Comprobado
|
|
86
|
-
}
|
|
87
|
-
/* opacidad */
|
|
88
|
-
},
|
|
89
|
-
...m
|
|
90
|
-
},
|
|
91
|
-
border: {
|
|
92
|
-
main: l[n]?.borderMainLight,
|
|
93
|
-
dens: a.oxford[40],
|
|
94
|
-
default: o.oxford[30],
|
|
95
|
-
secondary: a.oxford[20],
|
|
96
|
-
disabled: a.oxford[10],
|
|
97
|
-
error: c.error.main
|
|
98
|
-
},
|
|
99
|
-
general: {
|
|
100
|
-
scrollBar: t.light.scrollBar,
|
|
101
|
-
gridHover: t.light.gridHover
|
|
102
|
-
},
|
|
103
|
-
grey: d,
|
|
104
|
-
skeleton: {
|
|
105
|
-
default: a.oxford[10],
|
|
106
|
-
transition: a.oxford[20]
|
|
107
|
-
},
|
|
108
|
-
info: {
|
|
109
|
-
...c.info,
|
|
110
|
-
focusVisible: r.focusVisible
|
|
111
|
-
},
|
|
112
|
-
success: {
|
|
113
|
-
...c.success,
|
|
114
|
-
focusVisible: r.focusVisible
|
|
115
|
-
},
|
|
116
|
-
warning: {
|
|
117
|
-
...c.warning,
|
|
118
|
-
focusVisible: r.focusVisible
|
|
119
|
-
},
|
|
120
|
-
error: {
|
|
121
|
-
...c.error,
|
|
122
|
-
focusVisible: r.focusVisible
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
dark: {
|
|
126
|
-
mode: "dark",
|
|
127
|
-
common: s,
|
|
128
|
-
// no definido en figma
|
|
129
|
-
primary: {
|
|
130
|
-
...e
|
|
131
|
-
},
|
|
132
|
-
default: {
|
|
133
|
-
...b,
|
|
134
|
-
semanticText: o.coolGrey[20],
|
|
135
|
-
focusVisible: e?.focusVisible
|
|
136
|
-
},
|
|
137
|
-
text: {
|
|
138
|
-
primary: o.coolGrey[20],
|
|
139
|
-
secondary: o.coolGrey[40],
|
|
140
|
-
disabled: o.coolGrey[60],
|
|
141
|
-
contrastText: o.onyx[60]
|
|
142
|
-
},
|
|
143
|
-
divider: o.coolGrey[80],
|
|
144
|
-
background: {
|
|
145
|
-
default: o.onyx[60],
|
|
146
|
-
neutral: o.onyx[80],
|
|
147
|
-
surface: o.onyx[90],
|
|
148
|
-
hover: b.hover,
|
|
149
|
-
backdrop: a.onyx[30],
|
|
150
|
-
base: o.onyx[70],
|
|
151
|
-
blur: a.onyx[60],
|
|
152
|
-
contrastDefault: o.marbleLight[70],
|
|
153
|
-
//por compatibilidad de mui
|
|
154
|
-
paper: "#000"
|
|
155
|
-
},
|
|
156
|
-
chips: {
|
|
157
|
-
primary: {
|
|
158
|
-
outlined: {
|
|
159
|
-
color: e.semanticText,
|
|
160
|
-
// Comprobado
|
|
161
|
-
backgroundColor: e.enabledOpacity,
|
|
162
|
-
// Comprobado
|
|
163
|
-
backgroundHover: e.hoverOpacity,
|
|
164
|
-
// Comprobado
|
|
165
|
-
backgroundActive: e.activeOpacity,
|
|
166
|
-
// Comprobado
|
|
167
|
-
/* Tono */
|
|
168
|
-
colorTone: e.semanticText,
|
|
169
|
-
// Comprobado
|
|
170
|
-
backgroundColorTone: e.enabled,
|
|
171
|
-
// Comprobado
|
|
172
|
-
backgroundHoverTone: e.hover,
|
|
173
|
-
// Comprobado
|
|
174
|
-
backgroundActiveTone: e.activeOpacity
|
|
175
|
-
// Comprobado
|
|
176
|
-
},
|
|
177
|
-
contained: {
|
|
178
|
-
color: e.semanticText,
|
|
179
|
-
// Comprobado
|
|
180
|
-
backgroundColor: e.enabledOpacity,
|
|
181
|
-
// Comprobado
|
|
182
|
-
backgroundHover: e.hoverOpacity,
|
|
183
|
-
// Comprobado
|
|
184
|
-
backgroundActive: e.activeOpacity,
|
|
185
|
-
// Comprobado
|
|
186
|
-
/* Tono */
|
|
187
|
-
colorTone: o.marbleLight[30],
|
|
188
|
-
// Comprobado
|
|
189
|
-
backgroundColorTone: e.enabled,
|
|
190
|
-
// Comprobado
|
|
191
|
-
backgroundHoverTone: e.hover,
|
|
192
|
-
// Comprobado
|
|
193
|
-
backgroundActiveTone: e.active
|
|
194
|
-
// Comprobado
|
|
195
|
-
}
|
|
196
|
-
/* opacidad */
|
|
197
|
-
},
|
|
198
|
-
...y
|
|
199
|
-
},
|
|
200
|
-
border: {
|
|
201
|
-
main: l[n]?.borderMainDark,
|
|
202
|
-
dens: o.coolGrey[70],
|
|
203
|
-
default: o.onyx[30],
|
|
204
|
-
secondary: o.onyx[50],
|
|
205
|
-
disabled: a.cool[20],
|
|
206
|
-
error: i.error.main
|
|
207
|
-
},
|
|
208
|
-
general: {
|
|
209
|
-
// no definido en figma
|
|
210
|
-
scrollBar: t.light.scrollBar,
|
|
211
|
-
gridHover: t.light.gridHover
|
|
212
|
-
},
|
|
213
|
-
grey: d,
|
|
214
|
-
// no definido en figma
|
|
215
|
-
skeleton: {
|
|
216
|
-
default: a.mint[20],
|
|
217
|
-
transition: a.mint[40]
|
|
218
|
-
},
|
|
219
|
-
info: {
|
|
220
|
-
...i.info,
|
|
221
|
-
focusVisible: e.focusVisible
|
|
222
|
-
},
|
|
223
|
-
success: {
|
|
224
|
-
...i.success,
|
|
225
|
-
focusVisible: e.focusVisible
|
|
226
|
-
},
|
|
227
|
-
warning: {
|
|
228
|
-
...i.warning,
|
|
229
|
-
focusVisible: e.focusVisible
|
|
230
|
-
},
|
|
231
|
-
error: {
|
|
232
|
-
...i.error,
|
|
233
|
-
focusVisible: e.focusVisible
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
export {
|
|
239
|
-
h as g
|
|
240
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createTheme as g, alpha as a } from "@mui/material";
|
|
2
|
-
import { t as i } from "../theme/typographyOld.js";
|
|
3
|
-
import { c as o, s } from "../theme/shadows.js";
|
|
4
|
-
import { S as y } from "../theme/sizes/size.js";
|
|
5
|
-
import { g as m } from "./getPaletteByPreset.js";
|
|
6
|
-
import { g as t } from "./getColorPresets.js";
|
|
7
|
-
function u(x, p) {
|
|
8
|
-
const r = g();
|
|
9
|
-
return {
|
|
10
|
-
...r,
|
|
11
|
-
...r.typography,
|
|
12
|
-
...i,
|
|
13
|
-
...s[x],
|
|
14
|
-
customShadows: {
|
|
15
|
-
primary: x === "light" ? `0 4px 8px -4px ${a(t(p)?.enabledLight, 0.12)},
|
|
16
|
-
0 2px 27px 2px ${a(t(p)?.enabledLight, 0.02)}` : `0 4px 8px -4px ${a(t(p)?.enabledDark, 0.12)},
|
|
17
|
-
0 2px 27px 2px ${a(t(p)?.enabledDark, 0.02)}`,
|
|
18
|
-
primary2: x === "light" ? `0px 2px 3px 0px ${a(t(p)?.hoverOpacityLight, 0.2)}` : `0px 2px 3px 0px ${a(t(p)?.hoverOpacityDark, 0.2)}`,
|
|
19
|
-
...o(x)
|
|
20
|
-
},
|
|
21
|
-
stretch: !0,
|
|
22
|
-
palette: { ...r.palette, ...m(p)[x] },
|
|
23
|
-
typography: { ...r.typography, ...i },
|
|
24
|
-
size: y
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
u as g
|
|
29
|
-
};
|
package/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/utils/useResponsive.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useTheme as u } from "@mui/material/styles";
|
|
2
|
-
import o from "@mui/material/useMediaQuery";
|
|
3
|
-
function b(e, t, i, r) {
|
|
4
|
-
const n = u(), s = o(n.breakpoints.up(t)), p = o(n.breakpoints.down(t)), a = o(n.breakpoints.between(i, r)), m = o(n.breakpoints.only(t));
|
|
5
|
-
if (e === "up")
|
|
6
|
-
return s;
|
|
7
|
-
if (e === "down")
|
|
8
|
-
return p;
|
|
9
|
-
if (e === "between")
|
|
10
|
-
return a;
|
|
11
|
-
if (e === "only")
|
|
12
|
-
return m;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
b as u
|
|
16
|
-
};
|
package/vite-env.d.ts
DELETED