@m4l/styles 7.1.28 → 7.1.29-16062025.beta.1
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 +55 -47
- package/package.json +1 -1
- package/theme/overrides/MUIComponents/ControlLabel.d.ts +1 -1
- package/theme/overrides/MUIComponents/TreeView.d.ts +1 -1
- package/theme/overrides/index.js +79 -83
- package/theme/palette/baseChipsPalette.js +58 -58
- package/theme/palette/baseColors.js +30 -30
- package/theme/palette/baseOpacityColors.js +5 -5
- package/theme/palette/defaultColors.js +33 -20
- package/theme/palette/index.d.ts +4 -0
- package/theme/palette/presetColors.js +154 -93
- package/theme/palette/semanticColors.js +104 -54
- package/theme/shadows.js +52 -60
- package/theme/sizes/size.js +3 -3
- package/theme/typography/baseWeight.js +3 -4
- package/theme/typography/types.d.ts +3 -4
- package/theme/typography/typography.js +3 -3
- package/theme/typography/typographySizes.js +108 -108
- package/types/augmentations.d.ts +2 -0
- package/types/types.d.ts +10 -0
- package/utils/getPaletteByPreset.d.ts +26 -2
- package/utils/getPaletteByPreset.js +99 -103
- package/utils/getUserThemeOptions.js +20 -18
- package/theme/overrides/M4LExtendedComponents/M4LDataGrid.d.ts +0 -358
- package/theme/overrides/M4LExtendedComponents/M4LDataGrid.js +0 -393
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +0 -2441
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.js +0 -1747
|
@@ -1,106 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
1
|
+
import { a as g, P as s, b as f } from "../theme/palette/presetColors.js";
|
|
2
|
+
import { B as o } from "../theme/palette/baseColors.js";
|
|
3
|
+
import { C as t } 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
|
-
import {
|
|
9
|
-
const
|
|
8
|
+
import { a as y, B as m } from "../theme/palette/baseChipsPalette.js";
|
|
9
|
+
const l = {
|
|
10
10
|
light: {
|
|
11
11
|
scrollBar: "#5663763D",
|
|
12
12
|
gridHover: "#FCFCFC"
|
|
13
|
-
},
|
|
14
|
-
dark: {
|
|
15
|
-
scrollBar: "#5663765D",
|
|
16
|
-
gridHover: "#282E2E"
|
|
17
13
|
}
|
|
18
|
-
},
|
|
19
|
-
const
|
|
14
|
+
}, A = (n) => {
|
|
15
|
+
const r = f?.[n], e = g?.[n];
|
|
20
16
|
return {
|
|
21
17
|
light: {
|
|
22
18
|
mode: "light",
|
|
23
|
-
common:
|
|
19
|
+
common: t,
|
|
24
20
|
primary: {
|
|
25
|
-
...
|
|
21
|
+
...r
|
|
26
22
|
},
|
|
27
23
|
default: {
|
|
28
|
-
...
|
|
29
|
-
semanticText:
|
|
30
|
-
focusVisible:
|
|
24
|
+
...u,
|
|
25
|
+
semanticText: o.onyx[20],
|
|
26
|
+
focusVisible: r.focusVisible
|
|
31
27
|
},
|
|
32
|
-
divider:
|
|
28
|
+
divider: o.coolGrey[20],
|
|
33
29
|
text: {
|
|
34
|
-
primary:
|
|
35
|
-
secondary:
|
|
36
|
-
disabled:
|
|
30
|
+
primary: o.onyx[20],
|
|
31
|
+
secondary: o.coolGrey[50],
|
|
32
|
+
disabled: o.coolGrey[30]
|
|
37
33
|
},
|
|
38
34
|
background: {
|
|
39
|
-
default:
|
|
40
|
-
neutral:
|
|
41
|
-
surface:
|
|
42
|
-
hover:
|
|
43
|
-
backdrop: a.
|
|
44
|
-
base:
|
|
35
|
+
default: o.marbleLight[10],
|
|
36
|
+
neutral: o.marbleLight[30],
|
|
37
|
+
surface: o.marbleLight[50],
|
|
38
|
+
hover: u.hover,
|
|
39
|
+
backdrop: a.oxford[30],
|
|
40
|
+
base: o.marbleLight[20],
|
|
45
41
|
blur: a.marble[60],
|
|
46
42
|
//por compatibilidad de mui
|
|
47
|
-
paper: "#
|
|
43
|
+
paper: "#fff"
|
|
48
44
|
},
|
|
49
45
|
chips: {
|
|
50
46
|
primary: {
|
|
51
47
|
outlined: {
|
|
52
|
-
color:
|
|
48
|
+
color: r.enabled,
|
|
53
49
|
// Comprobado
|
|
54
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: r.enabledOpacity,
|
|
55
51
|
// Comprobado
|
|
56
|
-
backgroundHover:
|
|
52
|
+
backgroundHover: r.hoverOpacity,
|
|
57
53
|
// Comprobado
|
|
58
|
-
backgroundActive:
|
|
54
|
+
backgroundActive: r.activeOpacity,
|
|
59
55
|
// Comprobado
|
|
60
56
|
/* Tone */
|
|
61
|
-
colorTone:
|
|
57
|
+
colorTone: r.semanticText,
|
|
62
58
|
// Comprobado
|
|
63
|
-
backgroundColorTone:
|
|
59
|
+
backgroundColorTone: r.enabled,
|
|
64
60
|
// Comprobado
|
|
65
|
-
backgroundHoverTone:
|
|
61
|
+
backgroundHoverTone: r.hover,
|
|
66
62
|
// Comprobado
|
|
67
|
-
backgroundActiveTone:
|
|
63
|
+
backgroundActiveTone: r.activeOpacity
|
|
68
64
|
// Comprobado
|
|
69
65
|
},
|
|
70
66
|
contained: {
|
|
71
|
-
color: o.
|
|
67
|
+
color: o.marbleLight[30],
|
|
72
68
|
// Comprobado
|
|
73
|
-
backgroundColor:
|
|
69
|
+
backgroundColor: r.enabledOpacity,
|
|
74
70
|
// Comprobado
|
|
75
|
-
backgroundHover:
|
|
71
|
+
backgroundHover: r.hoverOpacity,
|
|
76
72
|
// Comprobado
|
|
77
|
-
backgroundActive:
|
|
73
|
+
backgroundActive: r.activeOpacity,
|
|
78
74
|
// Comprobado
|
|
79
75
|
/* Tono */
|
|
80
|
-
colorTone: o.
|
|
76
|
+
colorTone: o.marbleLight[30],
|
|
81
77
|
// Comprobado
|
|
82
|
-
backgroundColorTone:
|
|
78
|
+
backgroundColorTone: r.enabled,
|
|
83
79
|
// Comprobado
|
|
84
|
-
backgroundHoverTone:
|
|
80
|
+
backgroundHoverTone: r.hover,
|
|
85
81
|
// Comprobado
|
|
86
|
-
backgroundActiveTone:
|
|
82
|
+
backgroundActiveTone: r.active
|
|
87
83
|
// Comprobado
|
|
88
84
|
}
|
|
89
85
|
/* opacidad */
|
|
90
86
|
},
|
|
91
|
-
...
|
|
87
|
+
...m
|
|
92
88
|
},
|
|
93
89
|
border: {
|
|
94
90
|
main: s[n]?.borderMainLight,
|
|
95
91
|
dens: a.oxford[40],
|
|
96
|
-
default:
|
|
92
|
+
default: o.oxford[30],
|
|
97
93
|
secondary: a.oxford[20],
|
|
98
94
|
disabled: a.oxford[10],
|
|
99
|
-
error:
|
|
95
|
+
error: c.error.main
|
|
100
96
|
},
|
|
101
97
|
general: {
|
|
102
|
-
scrollBar:
|
|
103
|
-
gridHover:
|
|
98
|
+
scrollBar: l.light.scrollBar,
|
|
99
|
+
gridHover: l.light.gridHover
|
|
104
100
|
},
|
|
105
101
|
grey: d,
|
|
106
102
|
skeleton: {
|
|
@@ -108,47 +104,47 @@ const t = {
|
|
|
108
104
|
transition: a.oxford[20]
|
|
109
105
|
},
|
|
110
106
|
info: {
|
|
111
|
-
...
|
|
112
|
-
focusVisible:
|
|
107
|
+
...c.info,
|
|
108
|
+
focusVisible: r.focusVisible
|
|
113
109
|
},
|
|
114
110
|
success: {
|
|
115
|
-
...
|
|
116
|
-
focusVisible:
|
|
111
|
+
...c.success,
|
|
112
|
+
focusVisible: r.focusVisible
|
|
117
113
|
},
|
|
118
114
|
warning: {
|
|
119
|
-
...
|
|
120
|
-
focusVisible:
|
|
115
|
+
...c.warning,
|
|
116
|
+
focusVisible: r.focusVisible
|
|
121
117
|
},
|
|
122
118
|
error: {
|
|
123
|
-
...
|
|
124
|
-
focusVisible:
|
|
119
|
+
...c.error,
|
|
120
|
+
focusVisible: r.focusVisible
|
|
125
121
|
}
|
|
126
122
|
},
|
|
127
123
|
dark: {
|
|
128
124
|
mode: "dark",
|
|
129
|
-
common:
|
|
125
|
+
common: t,
|
|
130
126
|
// no definido en figma
|
|
131
127
|
primary: {
|
|
132
|
-
...
|
|
128
|
+
...e
|
|
133
129
|
},
|
|
134
130
|
default: {
|
|
135
|
-
...
|
|
136
|
-
semanticText:
|
|
137
|
-
focusVisible:
|
|
131
|
+
...b,
|
|
132
|
+
semanticText: o.coolGrey[20],
|
|
133
|
+
focusVisible: e?.focusVisible
|
|
138
134
|
},
|
|
139
135
|
text: {
|
|
140
|
-
primary:
|
|
141
|
-
secondary:
|
|
142
|
-
disabled:
|
|
136
|
+
primary: o.coolGrey[20],
|
|
137
|
+
secondary: o.coolGrey[40],
|
|
138
|
+
disabled: o.coolGrey[60]
|
|
143
139
|
},
|
|
144
|
-
divider:
|
|
140
|
+
divider: o.coolGrey[80],
|
|
145
141
|
background: {
|
|
146
|
-
default:
|
|
147
|
-
neutral:
|
|
148
|
-
surface:
|
|
149
|
-
hover:
|
|
150
|
-
backdrop: a.onyx[
|
|
151
|
-
base:
|
|
142
|
+
default: o.onyx[60],
|
|
143
|
+
neutral: o.onyx[80],
|
|
144
|
+
surface: o.onyx[90],
|
|
145
|
+
hover: b.hover,
|
|
146
|
+
backdrop: a.onyx[30],
|
|
147
|
+
base: o.onyx[70],
|
|
152
148
|
blur: a.onyx[60],
|
|
153
149
|
//por compatibilidad de mui
|
|
154
150
|
paper: "#000"
|
|
@@ -156,41 +152,41 @@ const t = {
|
|
|
156
152
|
chips: {
|
|
157
153
|
primary: {
|
|
158
154
|
outlined: {
|
|
159
|
-
color:
|
|
155
|
+
color: e.semanticText,
|
|
160
156
|
// Comprobado
|
|
161
|
-
backgroundColor:
|
|
157
|
+
backgroundColor: e.enabledOpacity,
|
|
162
158
|
// Comprobado
|
|
163
|
-
backgroundHover:
|
|
159
|
+
backgroundHover: e.hoverOpacity,
|
|
164
160
|
// Comprobado
|
|
165
|
-
backgroundActive:
|
|
161
|
+
backgroundActive: e.activeOpacity,
|
|
166
162
|
// Comprobado
|
|
167
163
|
/* Tono */
|
|
168
|
-
colorTone:
|
|
164
|
+
colorTone: e.semanticText,
|
|
169
165
|
// Comprobado
|
|
170
|
-
backgroundColorTone:
|
|
166
|
+
backgroundColorTone: e.enabled,
|
|
171
167
|
// Comprobado
|
|
172
|
-
backgroundHoverTone:
|
|
168
|
+
backgroundHoverTone: e.hover,
|
|
173
169
|
// Comprobado
|
|
174
|
-
backgroundActiveTone:
|
|
170
|
+
backgroundActiveTone: e.activeOpacity
|
|
175
171
|
// Comprobado
|
|
176
172
|
},
|
|
177
173
|
contained: {
|
|
178
|
-
color:
|
|
174
|
+
color: o.marbleLight[30],
|
|
179
175
|
// Comprobado
|
|
180
|
-
backgroundColor:
|
|
176
|
+
backgroundColor: e.enabledOpacity,
|
|
181
177
|
// Comprobado
|
|
182
|
-
backgroundHover:
|
|
178
|
+
backgroundHover: e.hoverOpacity,
|
|
183
179
|
// Comprobado
|
|
184
|
-
backgroundActive:
|
|
180
|
+
backgroundActive: e.activeOpacity,
|
|
185
181
|
// Comprobado
|
|
186
182
|
/* Tono */
|
|
187
|
-
colorTone:
|
|
183
|
+
colorTone: o.marbleLight[30],
|
|
188
184
|
// Comprobado
|
|
189
|
-
backgroundColorTone:
|
|
185
|
+
backgroundColorTone: e.enabled,
|
|
190
186
|
// Comprobado
|
|
191
|
-
backgroundHoverTone:
|
|
187
|
+
backgroundHoverTone: e.hover,
|
|
192
188
|
// Comprobado
|
|
193
|
-
backgroundActiveTone:
|
|
189
|
+
backgroundActiveTone: e.active
|
|
194
190
|
// Comprobado
|
|
195
191
|
}
|
|
196
192
|
/* opacidad */
|
|
@@ -199,16 +195,16 @@ const t = {
|
|
|
199
195
|
},
|
|
200
196
|
border: {
|
|
201
197
|
main: s[n]?.borderMainDark,
|
|
202
|
-
dens:
|
|
203
|
-
default:
|
|
204
|
-
secondary:
|
|
205
|
-
disabled: a.
|
|
206
|
-
error:
|
|
198
|
+
dens: o.coolGrey[70],
|
|
199
|
+
default: o.onyx[30],
|
|
200
|
+
secondary: o.onyx[50],
|
|
201
|
+
disabled: a.cool[20],
|
|
202
|
+
error: i.error.main
|
|
207
203
|
},
|
|
208
204
|
general: {
|
|
209
205
|
// no definido en figma
|
|
210
|
-
scrollBar:
|
|
211
|
-
gridHover:
|
|
206
|
+
scrollBar: l.light.scrollBar,
|
|
207
|
+
gridHover: l.light.gridHover
|
|
212
208
|
},
|
|
213
209
|
grey: d,
|
|
214
210
|
// no definido en figma
|
|
@@ -217,24 +213,24 @@ const t = {
|
|
|
217
213
|
transition: a.mint[40]
|
|
218
214
|
},
|
|
219
215
|
info: {
|
|
220
|
-
...
|
|
221
|
-
focusVisible:
|
|
216
|
+
...i.info,
|
|
217
|
+
focusVisible: e.focusVisible
|
|
222
218
|
},
|
|
223
219
|
success: {
|
|
224
|
-
...
|
|
225
|
-
focusVisible:
|
|
220
|
+
...i.success,
|
|
221
|
+
focusVisible: e.focusVisible
|
|
226
222
|
},
|
|
227
223
|
warning: {
|
|
228
|
-
...
|
|
229
|
-
focusVisible:
|
|
224
|
+
...i.warning,
|
|
225
|
+
focusVisible: e.focusVisible
|
|
230
226
|
},
|
|
231
227
|
error: {
|
|
232
|
-
...
|
|
233
|
-
focusVisible:
|
|
228
|
+
...i.error,
|
|
229
|
+
focusVisible: e.focusVisible
|
|
234
230
|
}
|
|
235
231
|
}
|
|
236
232
|
};
|
|
237
233
|
};
|
|
238
234
|
export {
|
|
239
|
-
|
|
235
|
+
A as g
|
|
240
236
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { createTheme as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import { S as
|
|
5
|
-
import { g } from "./
|
|
6
|
-
import { g as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
1
|
+
import { createTheme as e, alpha as r } from "@mui/material";
|
|
2
|
+
import { t as s } from "../theme/typographyOld.js";
|
|
3
|
+
import { c as i, s as g } from "../theme/shadows.js";
|
|
4
|
+
import { S as x } from "../theme/sizes/size.js";
|
|
5
|
+
import { g as m } from "./getPaletteByPreset.js";
|
|
6
|
+
import { g as o } from "./getColorPresets.js";
|
|
7
|
+
function u(t, p) {
|
|
8
|
+
const a = e();
|
|
9
9
|
return {
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
...
|
|
10
|
+
...a,
|
|
11
|
+
...a.typography,
|
|
12
|
+
...s,
|
|
13
|
+
...g[t],
|
|
14
14
|
customShadows: {
|
|
15
|
-
primary: `0 8px
|
|
16
|
-
|
|
15
|
+
primary: t === "light" ? `0 4px 8px -4px ${r(o(p)?.enabledLight, 0.12)},
|
|
16
|
+
0 2px 27px 2px ${r(o(p)?.enabledLight, 0.02)}` : `0 4px 8px -4px ${r(o(p)?.enabledDark, 0.12)},
|
|
17
|
+
0 2px 27px 2px ${r(o(p)?.enabledDark, 0.02)}`,
|
|
18
|
+
...i(t)
|
|
17
19
|
},
|
|
18
20
|
stretch: !0,
|
|
19
|
-
palette: { ...
|
|
20
|
-
typography: { ...
|
|
21
|
-
size:
|
|
21
|
+
palette: { ...a.palette, ...m(p)[t] },
|
|
22
|
+
typography: { ...a.typography, ...s },
|
|
23
|
+
size: x
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
u as g
|
|
26
28
|
};
|