@m4l/styles 7.1.6 → 7.1.7
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
|
@@ -7,8 +7,8 @@ export declare const PRESET_DEFAULT: DefaultPresetColor;
|
|
|
7
7
|
/**
|
|
8
8
|
* Opción de paleta default en modo light, se usa para colorear componentes con la variante semántica de tipo default
|
|
9
9
|
*/
|
|
10
|
-
export declare const BASE_DEFAULT_COLOR_LIGHT: Omit<PaletteColor, 'focusVisible' | 'contrastText'>;
|
|
10
|
+
export declare const BASE_DEFAULT_COLOR_LIGHT: Omit<PaletteColor, 'focusVisible' | 'selected' | 'contrastText'>;
|
|
11
11
|
/**
|
|
12
12
|
* Opción de paleta default en modo dark, se usa para colorear componentes con la variante semántica de tipo default
|
|
13
13
|
*/
|
|
14
|
-
export declare const BASE_DEFAULT_COLOR_DARK: Omit<PaletteColor, 'focusVisible' | 'contrastText'>;
|
|
14
|
+
export declare const BASE_DEFAULT_COLOR_DARK: Omit<PaletteColor, 'focusVisible' | 'selected' | 'contrastText'>;
|
|
@@ -123,6 +123,7 @@ const t = {
|
|
|
123
123
|
hoverOpacity: t.patronus.opacityHoverLight,
|
|
124
124
|
focusOpacity: t.patronus.opacityFocusLight,
|
|
125
125
|
activeOpacity: t.patronus.opacityActiveLight,
|
|
126
|
+
selected: t.patronus.opacityHoverLight,
|
|
126
127
|
//Por compatibilidad con MUI
|
|
127
128
|
light: t.patronus.light,
|
|
128
129
|
dark: t.patronus.dark
|
|
@@ -138,6 +139,7 @@ const t = {
|
|
|
138
139
|
hoverOpacity: t.blaze.opacityHoverLight,
|
|
139
140
|
focusOpacity: t.blaze.opacityFocusLight,
|
|
140
141
|
activeOpacity: t.blaze.opacityActiveLight,
|
|
142
|
+
selected: t.blaze.opacityHoverLight,
|
|
141
143
|
//Por compatibilidad con MUI
|
|
142
144
|
light: t.blaze.light,
|
|
143
145
|
dark: t.blaze.dark
|
|
@@ -153,6 +155,7 @@ const t = {
|
|
|
153
155
|
hoverOpacity: t.brown.opacityHoverLight,
|
|
154
156
|
focusOpacity: t.brown.opacityFocusLight,
|
|
155
157
|
activeOpacity: t.brown.opacityActiveLight,
|
|
158
|
+
selected: t.brown.opacityHoverLight,
|
|
156
159
|
//Por compatibilidad con MUI
|
|
157
160
|
light: t.brown.light,
|
|
158
161
|
dark: t.brown.dark
|
|
@@ -168,6 +171,7 @@ const t = {
|
|
|
168
171
|
hoverOpacity: t.grass.opacityHoverLight,
|
|
169
172
|
focusOpacity: t.grass.opacityFocusLight,
|
|
170
173
|
activeOpacity: t.grass.opacityActiveLight,
|
|
174
|
+
selected: t.grass.opacityHoverLight,
|
|
171
175
|
//Por compatibilidad con MUI
|
|
172
176
|
light: t.grass.light,
|
|
173
177
|
dark: t.grass.dark
|
|
@@ -183,6 +187,7 @@ const t = {
|
|
|
183
187
|
hoverOpacity: t.turqui.opacityHoverLight,
|
|
184
188
|
focusOpacity: t.turqui.opacityFocusLight,
|
|
185
189
|
activeOpacity: t.turqui.opacityActiveLight,
|
|
190
|
+
selected: t.turqui.opacityHoverLight,
|
|
186
191
|
//Por compatibilidad con MUI
|
|
187
192
|
light: t.turqui.light,
|
|
188
193
|
dark: t.turqui.dark
|
|
@@ -201,6 +206,7 @@ const t = {
|
|
|
201
206
|
hoverOpacity: t.patronus.opacityHoverDark,
|
|
202
207
|
focusOpacity: t.patronus.opacityFocusDark,
|
|
203
208
|
activeOpacity: t.patronus.opacityActiveDark,
|
|
209
|
+
selected: t.patronus.opacityHoverDark,
|
|
204
210
|
//Por compatibilidad con MUI
|
|
205
211
|
light: t.patronus.light,
|
|
206
212
|
dark: t.patronus.dark
|
|
@@ -218,6 +224,7 @@ const t = {
|
|
|
218
224
|
hoverOpacity: t.blaze.opacityHoverDark,
|
|
219
225
|
focusOpacity: t.blaze.opacityFocusDark,
|
|
220
226
|
activeOpacity: t.blaze.opacityActiveDark,
|
|
227
|
+
selected: t.blaze.opacityHoverDark,
|
|
221
228
|
//Por compatibilidad con MUI
|
|
222
229
|
light: t.blaze.light,
|
|
223
230
|
dark: t.blaze.dark
|
|
@@ -235,6 +242,7 @@ const t = {
|
|
|
235
242
|
hoverOpacity: t.brown.opacityHoverDark,
|
|
236
243
|
focusOpacity: t.brown.opacityFocusDark,
|
|
237
244
|
activeOpacity: t.brown.opacityActiveDark,
|
|
245
|
+
selected: t.brown.opacityHoverDark,
|
|
238
246
|
//Por compatibilidad con MUI
|
|
239
247
|
light: t.brown.light,
|
|
240
248
|
dark: t.brown.dark
|
|
@@ -252,6 +260,7 @@ const t = {
|
|
|
252
260
|
hoverOpacity: t.grass.opacityHoverDark,
|
|
253
261
|
focusOpacity: t.grass.opacityFocusDark,
|
|
254
262
|
activeOpacity: t.grass.opacityActiveDark,
|
|
263
|
+
selected: t.grass.opacityHoverDark,
|
|
255
264
|
//Por compatibilidad con MUI
|
|
256
265
|
light: t.grass.light,
|
|
257
266
|
dark: t.grass.dark
|
|
@@ -269,6 +278,7 @@ const t = {
|
|
|
269
278
|
hoverOpacity: t.turqui.opacityHoverDark,
|
|
270
279
|
focusOpacity: t.turqui.opacityFocusDark,
|
|
271
280
|
activeOpacity: t.turqui.opacityActiveDark,
|
|
281
|
+
selected: t.turqui.opacityHoverDark,
|
|
272
282
|
//Por compatibilidad con MUI
|
|
273
283
|
light: t.turqui.light,
|
|
274
284
|
dark: t.turqui.dark
|
package/types/augmentations.d.ts
CHANGED
package/types/types.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export type ThemePaletteColors = Record<ThemeUserColor, PaletteColor>;
|
|
|
93
93
|
/**
|
|
94
94
|
* Son las opcines de paleta de colores semánticos en formato PaletteColor
|
|
95
95
|
*/
|
|
96
|
-
export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible'>>;
|
|
96
|
+
export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible' | 'selected'>>;
|
|
97
97
|
/**
|
|
98
98
|
* Es la configuración de color que se usa fabricar la paleta "default", se encuentra en formato PaletteColor.
|
|
99
99
|
*/
|
|
@@ -23,8 +23,10 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
23
23
|
readonly focusOpacity: string;
|
|
24
24
|
readonly opacity: string;
|
|
25
25
|
readonly toneOpacity: string;
|
|
26
|
+
readonly selected: string;
|
|
26
27
|
};
|
|
27
28
|
readonly default: {
|
|
29
|
+
readonly selected: string;
|
|
28
30
|
readonly focusVisible: string;
|
|
29
31
|
readonly contrastText: string;
|
|
30
32
|
readonly light: string;
|
|
@@ -70,6 +72,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
70
72
|
readonly transition: string;
|
|
71
73
|
};
|
|
72
74
|
readonly info: {
|
|
75
|
+
readonly selected: string;
|
|
73
76
|
readonly focusVisible: string;
|
|
74
77
|
readonly light: string;
|
|
75
78
|
readonly dark: string;
|
|
@@ -84,6 +87,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
84
87
|
readonly toneOpacity: string;
|
|
85
88
|
};
|
|
86
89
|
readonly success: {
|
|
90
|
+
readonly selected: string;
|
|
87
91
|
readonly focusVisible: string;
|
|
88
92
|
readonly light: string;
|
|
89
93
|
readonly dark: string;
|
|
@@ -98,6 +102,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
98
102
|
readonly toneOpacity: string;
|
|
99
103
|
};
|
|
100
104
|
readonly warning: {
|
|
105
|
+
readonly selected: string;
|
|
101
106
|
readonly focusVisible: string;
|
|
102
107
|
readonly light: string;
|
|
103
108
|
readonly dark: string;
|
|
@@ -112,6 +117,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
112
117
|
readonly toneOpacity: string;
|
|
113
118
|
};
|
|
114
119
|
readonly error: {
|
|
120
|
+
readonly selected: string;
|
|
115
121
|
readonly focusVisible: string;
|
|
116
122
|
readonly light: string;
|
|
117
123
|
readonly dark: string;
|
|
@@ -142,8 +148,10 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
142
148
|
readonly focusOpacity: string;
|
|
143
149
|
readonly opacity: string;
|
|
144
150
|
readonly toneOpacity: string;
|
|
151
|
+
readonly selected: string;
|
|
145
152
|
};
|
|
146
153
|
readonly default: {
|
|
154
|
+
readonly selected: string;
|
|
147
155
|
readonly focusVisible: string;
|
|
148
156
|
readonly contrastText: string;
|
|
149
157
|
readonly light: string;
|
|
@@ -189,6 +197,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
189
197
|
readonly transition: string;
|
|
190
198
|
};
|
|
191
199
|
readonly info: {
|
|
200
|
+
readonly selected: string;
|
|
192
201
|
readonly focusVisible: string;
|
|
193
202
|
readonly light: string;
|
|
194
203
|
readonly dark: string;
|
|
@@ -203,6 +212,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
203
212
|
readonly toneOpacity: string;
|
|
204
213
|
};
|
|
205
214
|
readonly success: {
|
|
215
|
+
readonly selected: string;
|
|
206
216
|
readonly focusVisible: string;
|
|
207
217
|
readonly light: string;
|
|
208
218
|
readonly dark: string;
|
|
@@ -217,6 +227,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
217
227
|
readonly toneOpacity: string;
|
|
218
228
|
};
|
|
219
229
|
readonly warning: {
|
|
230
|
+
readonly selected: string;
|
|
220
231
|
readonly focusVisible: string;
|
|
221
232
|
readonly light: string;
|
|
222
233
|
readonly dark: string;
|
|
@@ -231,6 +242,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
231
242
|
readonly toneOpacity: string;
|
|
232
243
|
};
|
|
233
244
|
readonly error: {
|
|
245
|
+
readonly selected: string;
|
|
234
246
|
readonly focusVisible: string;
|
|
235
247
|
readonly light: string;
|
|
236
248
|
readonly dark: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { P as c, a as u, b } from "../theme/palette/presetColors.js";
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
4
|
-
import { G as
|
|
5
|
-
import { S as
|
|
6
|
-
import { B as
|
|
2
|
+
import { B as e } from "../theme/palette/baseColors.js";
|
|
3
|
+
import { C as d } from "../theme/palette/commonColors.js";
|
|
4
|
+
import { G as n } from "../theme/palette/greyPalette.js";
|
|
5
|
+
import { S as i, a as l } from "../theme/palette/semanticColors.js";
|
|
6
|
+
import { B as r } from "../theme/palette/baseOpacityColors.js";
|
|
7
7
|
import { B as f, a as m } from "../theme/palette/defaultColors.js";
|
|
8
8
|
import { B as g, a as O } from "../theme/palette/baseChipsPalette.js";
|
|
9
|
-
const
|
|
9
|
+
const a = {
|
|
10
10
|
light: {
|
|
11
11
|
scrollBar: "#5663763D",
|
|
12
12
|
gridHover: "#FCFCFC"
|
|
@@ -15,130 +15,140 @@ const t = {
|
|
|
15
15
|
scrollBar: "#5663765D",
|
|
16
16
|
gridHover: "#282E2E"
|
|
17
17
|
}
|
|
18
|
-
}, V = (
|
|
19
|
-
const
|
|
18
|
+
}, V = (t) => {
|
|
19
|
+
const o = u?.[t], s = b?.[t];
|
|
20
20
|
return {
|
|
21
21
|
light: {
|
|
22
22
|
mode: "light",
|
|
23
|
-
common:
|
|
23
|
+
common: d,
|
|
24
24
|
primary: {
|
|
25
|
-
...
|
|
25
|
+
...o
|
|
26
26
|
},
|
|
27
27
|
default: {
|
|
28
28
|
...f,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
selected: o.selected,
|
|
30
|
+
focusVisible: o.focusVisible,
|
|
31
|
+
contrastText: e.onyx[20]
|
|
31
32
|
},
|
|
32
|
-
divider:
|
|
33
|
+
divider: e.coolGrey[20],
|
|
33
34
|
text: {
|
|
34
|
-
primary:
|
|
35
|
-
secondary:
|
|
36
|
-
disabled:
|
|
35
|
+
primary: e.onyx[20],
|
|
36
|
+
secondary: e.coolGrey[50],
|
|
37
|
+
disabled: e.oxford[30]
|
|
37
38
|
},
|
|
38
39
|
background: {
|
|
39
|
-
default:
|
|
40
|
-
neutral:
|
|
41
|
-
surface:
|
|
40
|
+
default: e.marbleLight[10],
|
|
41
|
+
neutral: e.marbleLight[30],
|
|
42
|
+
surface: e.marbleLight[50],
|
|
42
43
|
hover: f.hover,
|
|
43
44
|
//por compatibilidad de mui
|
|
44
45
|
paper: "#00000000"
|
|
45
46
|
},
|
|
46
47
|
chips: g,
|
|
47
48
|
border: {
|
|
48
|
-
main: c[
|
|
49
|
-
default:
|
|
50
|
-
secondary:
|
|
51
|
-
dens:
|
|
52
|
-
disabled:
|
|
53
|
-
error:
|
|
49
|
+
main: c[t]?.borderMainLight,
|
|
50
|
+
default: r.oxford[40],
|
|
51
|
+
secondary: r.oxford[30],
|
|
52
|
+
dens: r.oxford[60],
|
|
53
|
+
disabled: r.oxford[10],
|
|
54
|
+
error: i.error.main
|
|
54
55
|
},
|
|
55
56
|
general: {
|
|
56
|
-
scrollBar:
|
|
57
|
-
gridHover:
|
|
57
|
+
scrollBar: a.light.scrollBar,
|
|
58
|
+
gridHover: a.light.gridHover
|
|
58
59
|
},
|
|
59
|
-
grey:
|
|
60
|
+
grey: n,
|
|
60
61
|
skeleton: {
|
|
61
|
-
default:
|
|
62
|
-
transition:
|
|
62
|
+
default: r.oxford[10],
|
|
63
|
+
transition: r.oxford[20]
|
|
63
64
|
},
|
|
64
65
|
info: {
|
|
65
|
-
...
|
|
66
|
-
|
|
66
|
+
...i.info,
|
|
67
|
+
selected: o.selected,
|
|
68
|
+
focusVisible: o.focusVisible
|
|
67
69
|
},
|
|
68
70
|
success: {
|
|
69
|
-
...
|
|
70
|
-
|
|
71
|
+
...i.success,
|
|
72
|
+
selected: o.selected,
|
|
73
|
+
focusVisible: o.focusVisible
|
|
71
74
|
},
|
|
72
75
|
warning: {
|
|
73
|
-
...
|
|
74
|
-
|
|
76
|
+
...i.warning,
|
|
77
|
+
selected: o.selected,
|
|
78
|
+
focusVisible: o.focusVisible
|
|
75
79
|
},
|
|
76
80
|
error: {
|
|
77
|
-
...
|
|
78
|
-
|
|
81
|
+
...i.error,
|
|
82
|
+
selected: o.selected,
|
|
83
|
+
focusVisible: o.focusVisible
|
|
79
84
|
}
|
|
80
85
|
},
|
|
81
86
|
dark: {
|
|
82
87
|
mode: "dark",
|
|
83
|
-
common:
|
|
88
|
+
common: d,
|
|
84
89
|
// no definido en figma
|
|
85
90
|
primary: {
|
|
86
|
-
...
|
|
91
|
+
...s
|
|
87
92
|
},
|
|
88
93
|
default: {
|
|
89
94
|
...m,
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
selected: s?.selected,
|
|
96
|
+
focusVisible: s?.focusVisible,
|
|
97
|
+
contrastText: e.marbleLight[30]
|
|
92
98
|
},
|
|
93
99
|
text: {
|
|
94
|
-
primary:
|
|
95
|
-
secondary:
|
|
96
|
-
disabled:
|
|
100
|
+
primary: e.marbleLight[30],
|
|
101
|
+
secondary: e.coolGrey[20],
|
|
102
|
+
disabled: e.coolGrey[50]
|
|
97
103
|
},
|
|
98
|
-
divider:
|
|
104
|
+
divider: e.coolGrey[80],
|
|
99
105
|
background: {
|
|
100
|
-
default:
|
|
101
|
-
neutral:
|
|
102
|
-
surface:
|
|
106
|
+
default: e.onyx[40],
|
|
107
|
+
neutral: e.onyx[50],
|
|
108
|
+
surface: e.onyx[60],
|
|
103
109
|
hover: m.hover,
|
|
104
110
|
//por compatibilidad de mui
|
|
105
111
|
paper: "#00000000"
|
|
106
112
|
},
|
|
107
113
|
chips: O,
|
|
108
114
|
border: {
|
|
109
|
-
main: c[
|
|
110
|
-
default:
|
|
111
|
-
secondary:
|
|
112
|
-
dens:
|
|
113
|
-
disabled:
|
|
114
|
-
error:
|
|
115
|
+
main: c[t]?.borderMainDark,
|
|
116
|
+
default: r.mint[50],
|
|
117
|
+
secondary: r.mint[40],
|
|
118
|
+
dens: r.mint[60],
|
|
119
|
+
disabled: r.mint[20],
|
|
120
|
+
error: l.error.main
|
|
115
121
|
},
|
|
116
122
|
general: {
|
|
117
123
|
// no definido en figma
|
|
118
|
-
scrollBar:
|
|
119
|
-
gridHover:
|
|
124
|
+
scrollBar: a.light.scrollBar,
|
|
125
|
+
gridHover: a.light.gridHover
|
|
120
126
|
},
|
|
121
|
-
grey:
|
|
127
|
+
grey: n,
|
|
122
128
|
// no definido en figma
|
|
123
129
|
skeleton: {
|
|
124
|
-
default:
|
|
125
|
-
transition:
|
|
130
|
+
default: r.mint[20],
|
|
131
|
+
transition: r.mint[40]
|
|
126
132
|
},
|
|
127
133
|
info: {
|
|
128
|
-
...
|
|
129
|
-
|
|
134
|
+
...l.info,
|
|
135
|
+
selected: s?.selected,
|
|
136
|
+
focusVisible: s.focusVisible
|
|
130
137
|
},
|
|
131
138
|
success: {
|
|
132
|
-
...
|
|
133
|
-
|
|
139
|
+
...l.success,
|
|
140
|
+
selected: s?.selected,
|
|
141
|
+
focusVisible: s.focusVisible
|
|
134
142
|
},
|
|
135
143
|
warning: {
|
|
136
|
-
...
|
|
137
|
-
|
|
144
|
+
...l.warning,
|
|
145
|
+
selected: s?.selected,
|
|
146
|
+
focusVisible: s.focusVisible
|
|
138
147
|
},
|
|
139
148
|
error: {
|
|
140
|
-
...
|
|
141
|
-
|
|
149
|
+
...l.error,
|
|
150
|
+
selected: s?.selected,
|
|
151
|
+
focusVisible: s.focusVisible
|
|
142
152
|
}
|
|
143
153
|
}
|
|
144
154
|
};
|