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