@m4l/styles 7.1.34 → 7.1.35
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/styles",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.35",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "m4l team",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"react-dom": "^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"resolutions": {
|
|
18
|
-
"eslint": "
|
|
18
|
+
"eslint": "9.28.0",
|
|
19
19
|
"react": "^18.0.0",
|
|
20
20
|
"@types/react": "^18.0.0",
|
|
21
21
|
"@types/react-dom": "^18.0.0",
|
|
22
22
|
"react-dom": "^18.0.0",
|
|
23
|
-
"vite": "
|
|
23
|
+
"vite": "6.3.5"
|
|
24
24
|
},
|
|
25
25
|
"overrides": {
|
|
26
|
-
"eslint": "
|
|
26
|
+
"eslint": "9.28.0",
|
|
27
27
|
"react": "^18.0.0",
|
|
28
28
|
"@types/react": "^18.0.0",
|
|
29
29
|
"@types/react-dom": "^18.0.0",
|
|
30
30
|
"react-dom": "^18.0.0",
|
|
31
|
-
"vite": "
|
|
31
|
+
"vite": "6.3.5"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"*"
|
package/types/augmentations.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ declare module '@mui/material/styles' {
|
|
|
75
75
|
gridHover: string;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
interface TypeText {
|
|
80
|
+
primary: string;
|
|
81
|
+
secondary: string;
|
|
82
|
+
disabled: string;
|
|
83
|
+
contrastText: string;
|
|
84
|
+
}
|
|
78
85
|
interface ColorSchemeOverrides {
|
|
79
86
|
finalTheme?: true;
|
|
80
87
|
}
|
|
@@ -111,6 +118,7 @@ declare module '@mui/material/styles' {
|
|
|
111
118
|
backdrop: string;
|
|
112
119
|
base: string;
|
|
113
120
|
blur: string;
|
|
121
|
+
contrastDefault: string;
|
|
114
122
|
}
|
|
115
123
|
interface TypographyVariants {
|
|
116
124
|
subtitle: Record<string, any>;
|
|
@@ -55,6 +55,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
55
55
|
readonly primary: string;
|
|
56
56
|
readonly secondary: string;
|
|
57
57
|
readonly disabled: string;
|
|
58
|
+
readonly contrastText: string;
|
|
58
59
|
};
|
|
59
60
|
readonly background: {
|
|
60
61
|
readonly default: string;
|
|
@@ -64,6 +65,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
64
65
|
readonly backdrop: string;
|
|
65
66
|
readonly base: string;
|
|
66
67
|
readonly blur: string;
|
|
68
|
+
readonly contrastDefault: string;
|
|
67
69
|
readonly paper: "#fff";
|
|
68
70
|
};
|
|
69
71
|
readonly chips: {
|
|
@@ -260,6 +262,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
260
262
|
readonly primary: string;
|
|
261
263
|
readonly secondary: string;
|
|
262
264
|
readonly disabled: string;
|
|
265
|
+
readonly contrastText: string;
|
|
263
266
|
};
|
|
264
267
|
readonly divider: string;
|
|
265
268
|
readonly background: {
|
|
@@ -270,6 +273,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
270
273
|
readonly backdrop: string;
|
|
271
274
|
readonly base: string;
|
|
272
275
|
readonly blur: string;
|
|
276
|
+
readonly contrastDefault: string;
|
|
273
277
|
readonly paper: "#000";
|
|
274
278
|
};
|
|
275
279
|
readonly chips: {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { a as g, b as f, P as
|
|
1
|
+
import { a as g, b as f, P as l } from "../theme/palette/presetColors.js";
|
|
2
2
|
import { B as o } from "../theme/palette/baseColors.js";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as s } from "../theme/palette/commonColors.js";
|
|
4
4
|
import { G as d } from "../theme/palette/greyPalette.js";
|
|
5
5
|
import { S as i, a as c } from "../theme/palette/semanticColors.js";
|
|
6
6
|
import { B as a } from "../theme/palette/baseOpacityColors.js";
|
|
7
7
|
import { B as b, a as u } from "../theme/palette/defaultColors.js";
|
|
8
8
|
import { a as y, B as m } from "../theme/palette/baseChipsPalette.js";
|
|
9
|
-
const
|
|
9
|
+
const t = {
|
|
10
10
|
light: {
|
|
11
11
|
scrollBar: "#5663763D",
|
|
12
12
|
gridHover: "#FCFCFC"
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, h = (n) => {
|
|
15
15
|
const r = g?.[n], e = f?.[n];
|
|
16
16
|
return {
|
|
17
17
|
light: {
|
|
18
18
|
mode: "light",
|
|
19
|
-
common:
|
|
19
|
+
common: s,
|
|
20
20
|
primary: {
|
|
21
21
|
...r
|
|
22
22
|
},
|
|
@@ -29,7 +29,8 @@ const l = {
|
|
|
29
29
|
text: {
|
|
30
30
|
primary: o.onyx[20],
|
|
31
31
|
secondary: o.coolGrey[50],
|
|
32
|
-
disabled: o.coolGrey[30]
|
|
32
|
+
disabled: o.coolGrey[30],
|
|
33
|
+
contrastText: o.marbleLight[10]
|
|
33
34
|
},
|
|
34
35
|
background: {
|
|
35
36
|
default: o.marbleLight[10],
|
|
@@ -39,6 +40,7 @@ const l = {
|
|
|
39
40
|
backdrop: a.oxford[30],
|
|
40
41
|
base: o.marbleLight[20],
|
|
41
42
|
blur: a.marble[60],
|
|
43
|
+
contrastDefault: o.onyx[20],
|
|
42
44
|
//por compatibilidad de mui
|
|
43
45
|
paper: "#fff"
|
|
44
46
|
},
|
|
@@ -87,7 +89,7 @@ const l = {
|
|
|
87
89
|
...m
|
|
88
90
|
},
|
|
89
91
|
border: {
|
|
90
|
-
main:
|
|
92
|
+
main: l[n]?.borderMainLight,
|
|
91
93
|
dens: a.oxford[40],
|
|
92
94
|
default: o.oxford[30],
|
|
93
95
|
secondary: a.oxford[20],
|
|
@@ -95,8 +97,8 @@ const l = {
|
|
|
95
97
|
error: c.error.main
|
|
96
98
|
},
|
|
97
99
|
general: {
|
|
98
|
-
scrollBar:
|
|
99
|
-
gridHover:
|
|
100
|
+
scrollBar: t.light.scrollBar,
|
|
101
|
+
gridHover: t.light.gridHover
|
|
100
102
|
},
|
|
101
103
|
grey: d,
|
|
102
104
|
skeleton: {
|
|
@@ -122,7 +124,7 @@ const l = {
|
|
|
122
124
|
},
|
|
123
125
|
dark: {
|
|
124
126
|
mode: "dark",
|
|
125
|
-
common:
|
|
127
|
+
common: s,
|
|
126
128
|
// no definido en figma
|
|
127
129
|
primary: {
|
|
128
130
|
...e
|
|
@@ -135,7 +137,8 @@ const l = {
|
|
|
135
137
|
text: {
|
|
136
138
|
primary: o.coolGrey[20],
|
|
137
139
|
secondary: o.coolGrey[40],
|
|
138
|
-
disabled: o.coolGrey[60]
|
|
140
|
+
disabled: o.coolGrey[60],
|
|
141
|
+
contrastText: o.onyx[60]
|
|
139
142
|
},
|
|
140
143
|
divider: o.coolGrey[80],
|
|
141
144
|
background: {
|
|
@@ -146,6 +149,7 @@ const l = {
|
|
|
146
149
|
backdrop: a.onyx[30],
|
|
147
150
|
base: o.onyx[70],
|
|
148
151
|
blur: a.onyx[60],
|
|
152
|
+
contrastDefault: o.marbleLight[70],
|
|
149
153
|
//por compatibilidad de mui
|
|
150
154
|
paper: "#000"
|
|
151
155
|
},
|
|
@@ -194,7 +198,7 @@ const l = {
|
|
|
194
198
|
...y
|
|
195
199
|
},
|
|
196
200
|
border: {
|
|
197
|
-
main:
|
|
201
|
+
main: l[n]?.borderMainDark,
|
|
198
202
|
dens: o.coolGrey[70],
|
|
199
203
|
default: o.onyx[30],
|
|
200
204
|
secondary: o.onyx[50],
|
|
@@ -203,8 +207,8 @@ const l = {
|
|
|
203
207
|
},
|
|
204
208
|
general: {
|
|
205
209
|
// no definido en figma
|
|
206
|
-
scrollBar:
|
|
207
|
-
gridHover:
|
|
210
|
+
scrollBar: t.light.scrollBar,
|
|
211
|
+
gridHover: t.light.gridHover
|
|
208
212
|
},
|
|
209
213
|
grey: d,
|
|
210
214
|
// no definido en figma
|
|
@@ -232,5 +236,5 @@ const l = {
|
|
|
232
236
|
};
|
|
233
237
|
};
|
|
234
238
|
export {
|
|
235
|
-
|
|
239
|
+
h as g
|
|
236
240
|
};
|