@m4l/styles 7.1.7 → 7.1.8
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 +1 -1
- package/theme/palette/baseChipsPalette.js +210 -78
- package/theme/palette/baseColors.js +228 -258
- package/theme/palette/baseOpacityColors.js +10 -0
- package/theme/palette/defaultColors.d.ts +2 -2
- package/theme/palette/defaultColors.js +82 -40
- package/theme/palette/presetColors.js +502 -242
- package/theme/palette/semanticColors.js +323 -159
- package/types/augmentations.d.ts +15 -19
- package/types/types.d.ts +38 -18
- package/utils/getPaletteByPreset.d.ts +80 -30
- package/utils/getPaletteByPreset.js +93 -81
package/types/types.d.ts
CHANGED
|
@@ -16,14 +16,13 @@ export type SemanticColorOptionsType = 'info' | 'success' | 'warning' | 'error';
|
|
|
16
16
|
*/
|
|
17
17
|
export type ComponentPalletColor = 'primary' | 'default' | SemanticColorOptionsType;
|
|
18
18
|
export type BasePalettes = 'patronusBlue' | 'crayonBlue' | 'middleYellow' | 'acidGreen' | 'grassGreen' | 'desertBeige' | 'turquiBlue' | 'blazeOrange' | 'flameRed' | 'coolGrey' | 'brown' | 'marbleLight' | 'onyx' | 'mint' | 'oxford';
|
|
19
|
-
export type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'blaze' | 'cool' | 'marble' | 'mint' | 'oxford' | 'middle' | 'acid' | 'flame' | 'crayon';
|
|
19
|
+
export type BaseOpacityPalettes = 'patronus' | 'turqui' | 'grass' | 'brown' | 'beige' | 'blaze' | 'cool' | 'marble' | 'mint' | 'onyx' | 'oxford' | 'middle' | 'acid' | 'flame' | 'crayon';
|
|
20
20
|
export interface Colors {
|
|
21
21
|
/**
|
|
22
22
|
* ToneOpacity se usa para colorear el fondo de los celdas en el compksonente grid.
|
|
23
23
|
* Requiere un todo de 100 en alpha pero basado en el color de opacidad con fondo ligth o dark.
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
toneOpacity20: string;
|
|
25
|
+
5: string;
|
|
27
26
|
10: string;
|
|
28
27
|
20: string;
|
|
29
28
|
30: string;
|
|
@@ -33,7 +32,7 @@ export interface Colors {
|
|
|
33
32
|
70: string;
|
|
34
33
|
80: string;
|
|
35
34
|
90: string;
|
|
36
|
-
|
|
35
|
+
95: string;
|
|
37
36
|
}
|
|
38
37
|
export interface OpacityColors {
|
|
39
38
|
10: string;
|
|
@@ -43,28 +42,48 @@ export interface OpacityColors {
|
|
|
43
42
|
50: string;
|
|
44
43
|
60: string;
|
|
45
44
|
70: string;
|
|
45
|
+
80?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface PresetColor {
|
|
48
48
|
main: string;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
enabledLight: string;
|
|
50
|
+
enabledDark: string;
|
|
51
|
+
enabledOpacityLight: string;
|
|
52
|
+
enabledOpacityDark: string;
|
|
53
53
|
/**
|
|
54
54
|
* Permite definir fondos de componentes en estados hover dependiendo del modo de la aplicación web.
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
hoverLight: string;
|
|
57
|
+
hoverDark: string;
|
|
58
|
+
hoverOpacityLight: string;
|
|
59
|
+
hoverOpacityDark: string;
|
|
58
60
|
/**
|
|
59
61
|
* Permite definir fondos de componentes en estados focus dependiendo del modo de la aplicación web.
|
|
60
62
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
focusLight: string;
|
|
64
|
+
focusDark: string;
|
|
65
|
+
focusOpacityLight: string;
|
|
66
|
+
focusOpacityDark: string;
|
|
67
|
+
/**
|
|
68
|
+
* Permite definir fondos de componentes en estados seleccionados dependiendo del modo de la aplicación web.
|
|
69
|
+
*/
|
|
70
|
+
selectedLight: string;
|
|
71
|
+
selectedDark: string;
|
|
72
|
+
selectedOpacityLight: string;
|
|
73
|
+
selectedOpacityDark: string;
|
|
63
74
|
/**
|
|
64
75
|
* Permite definir fondos de componentes en estados active dependiendo del modo de la aplicación web.
|
|
65
76
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
77
|
+
activeLight: string;
|
|
78
|
+
activeDark: string;
|
|
79
|
+
activeOpacityLight: string;
|
|
80
|
+
activeOpacityDark: string;
|
|
81
|
+
opacityLight: string;
|
|
82
|
+
opacityDark: string;
|
|
83
|
+
contrastText: string;
|
|
84
|
+
light: string;
|
|
85
|
+
lighter: string;
|
|
86
|
+
toneOpacityLight: string;
|
|
68
87
|
dark: string;
|
|
69
88
|
darker: string;
|
|
70
89
|
toneOpacityDark: string;
|
|
@@ -85,7 +104,7 @@ export type ThemePresetColors = Record<ThemeUserColor, PresetColor>;
|
|
|
85
104
|
/**
|
|
86
105
|
* Son los colores semanticos en formato PresetColor
|
|
87
106
|
*/
|
|
88
|
-
export type SemanticPresetColors = Record<SemanticColorOptionsType, Omit<PresetColor, 'borderMainDark' | 'borderMainLight'>>;
|
|
107
|
+
export type SemanticPresetColors = Record<SemanticColorOptionsType, Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'selectedLight' | 'selectedDark' | 'selectedOpacityLight' | 'selectedOpacityDark'>>;
|
|
89
108
|
/**
|
|
90
109
|
* Son los colores de las ocpiones del tema, en formato PalletColor
|
|
91
110
|
*/
|
|
@@ -93,11 +112,11 @@ export type ThemePaletteColors = Record<ThemeUserColor, PaletteColor>;
|
|
|
93
112
|
/**
|
|
94
113
|
* Son las opcines de paleta de colores semánticos en formato PaletteColor
|
|
95
114
|
*/
|
|
96
|
-
export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible' | 'selected'>>;
|
|
115
|
+
export type SemanticsPaletteColors = Record<SemanticColorOptionsType, Omit<PaletteColor, 'focusVisible' | 'selected' | 'selectedOpacity'>>;
|
|
97
116
|
/**
|
|
98
117
|
* Es la configuración de color que se usa fabricar la paleta "default", se encuentra en formato PaletteColor.
|
|
99
118
|
*/
|
|
100
|
-
export type DefaultPresetColor = Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'main' | 'contrastText'> & {
|
|
119
|
+
export type DefaultPresetColor = Omit<PresetColor, 'borderMainDark' | 'borderMainLight' | 'main' | 'contrastText' | 'selectedLight' | 'selectedDark' | 'selectedOpacityLight' | 'selectedOpacityDark'> & {
|
|
101
120
|
mainLight: string;
|
|
102
121
|
mainDark: string;
|
|
103
122
|
};
|
|
@@ -111,6 +130,7 @@ export type ColorState = 'warning' | 'delete' | 'info' | 'success';
|
|
|
111
130
|
*/
|
|
112
131
|
export interface ChipColor {
|
|
113
132
|
contrastText: string;
|
|
133
|
+
semanticText: string;
|
|
114
134
|
backgroundColor: string;
|
|
115
135
|
backgroundHover: string;
|
|
116
136
|
backgroundActive: string;
|
|
@@ -118,7 +138,7 @@ export interface ChipColor {
|
|
|
118
138
|
/**
|
|
119
139
|
* Lista de opciones de colores para pintar los chips
|
|
120
140
|
*/
|
|
121
|
-
export type ChipColorOptions = 'default' | 'warning' | 'warningOpacity' | 'error' | 'errorOpacity' | 'success' | 'successOpacity' | 'info' | 'infoOpacity';
|
|
141
|
+
export type ChipColorOptions = 'default' | 'defaultOpacity' | 'warning' | 'warningOpacity' | 'error' | 'errorOpacity' | 'success' | 'successOpacity' | 'info' | 'infoOpacity';
|
|
122
142
|
/**
|
|
123
143
|
* Representa la definición de la lista de colores para usarse en los chips. Son los colores con los que se van a pintar el componente chip.
|
|
124
144
|
*/
|
|
@@ -15,28 +15,36 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
15
15
|
readonly main: string;
|
|
16
16
|
readonly dark: string;
|
|
17
17
|
readonly contrastText: string;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
18
|
+
readonly enabled: string;
|
|
19
|
+
readonly enabledOpacity: string;
|
|
20
20
|
readonly hover: string;
|
|
21
21
|
readonly hoverOpacity: string;
|
|
22
|
-
readonly
|
|
22
|
+
readonly focus: string;
|
|
23
23
|
readonly focusOpacity: string;
|
|
24
|
+
readonly focusVisible: string;
|
|
25
|
+
readonly selected: string;
|
|
26
|
+
readonly selectedOpacity: string;
|
|
27
|
+
readonly active: string;
|
|
28
|
+
readonly activeOpacity: string;
|
|
24
29
|
readonly opacity: string;
|
|
25
30
|
readonly toneOpacity: string;
|
|
26
|
-
readonly selected: string;
|
|
27
31
|
};
|
|
28
32
|
readonly default: {
|
|
29
33
|
readonly selected: string;
|
|
34
|
+
readonly selectedOpacity: string;
|
|
30
35
|
readonly focusVisible: string;
|
|
31
36
|
readonly contrastText: string;
|
|
32
37
|
readonly light: string;
|
|
33
38
|
readonly dark: string;
|
|
34
39
|
readonly main: string;
|
|
35
|
-
readonly
|
|
40
|
+
readonly enabled: string;
|
|
41
|
+
readonly enabledOpacity: string;
|
|
36
42
|
readonly hover: string;
|
|
37
43
|
readonly hoverOpacity: string;
|
|
38
|
-
readonly
|
|
44
|
+
readonly focus: string;
|
|
39
45
|
readonly focusOpacity: string;
|
|
46
|
+
readonly active: string;
|
|
47
|
+
readonly activeOpacity: string;
|
|
40
48
|
readonly opacity: string;
|
|
41
49
|
readonly toneOpacity: string;
|
|
42
50
|
};
|
|
@@ -51,7 +59,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
51
59
|
readonly neutral: string;
|
|
52
60
|
readonly surface: string;
|
|
53
61
|
readonly hover: string;
|
|
54
|
-
readonly
|
|
62
|
+
readonly backdrop: string;
|
|
63
|
+
readonly paper: "#000";
|
|
55
64
|
};
|
|
56
65
|
readonly chips: import('../types').BaseChipColors;
|
|
57
66
|
readonly border: {
|
|
@@ -73,61 +82,77 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
73
82
|
};
|
|
74
83
|
readonly info: {
|
|
75
84
|
readonly selected: string;
|
|
85
|
+
readonly selectedOpacity: string;
|
|
76
86
|
readonly focusVisible: string;
|
|
77
87
|
readonly light: string;
|
|
78
88
|
readonly dark: string;
|
|
79
89
|
readonly main: string;
|
|
80
90
|
readonly contrastText: string;
|
|
81
|
-
readonly
|
|
91
|
+
readonly enabled: string;
|
|
92
|
+
readonly enabledOpacity: string;
|
|
82
93
|
readonly hover: string;
|
|
83
94
|
readonly hoverOpacity: string;
|
|
84
|
-
readonly
|
|
95
|
+
readonly focus: string;
|
|
85
96
|
readonly focusOpacity: string;
|
|
97
|
+
readonly active: string;
|
|
98
|
+
readonly activeOpacity: string;
|
|
86
99
|
readonly opacity: string;
|
|
87
100
|
readonly toneOpacity: string;
|
|
88
101
|
};
|
|
89
102
|
readonly success: {
|
|
90
103
|
readonly selected: string;
|
|
104
|
+
readonly selectedOpacity: string;
|
|
91
105
|
readonly focusVisible: string;
|
|
92
106
|
readonly light: string;
|
|
93
107
|
readonly dark: string;
|
|
94
108
|
readonly main: string;
|
|
95
109
|
readonly contrastText: string;
|
|
96
|
-
readonly
|
|
110
|
+
readonly enabled: string;
|
|
111
|
+
readonly enabledOpacity: string;
|
|
97
112
|
readonly hover: string;
|
|
98
113
|
readonly hoverOpacity: string;
|
|
99
|
-
readonly
|
|
114
|
+
readonly focus: string;
|
|
100
115
|
readonly focusOpacity: string;
|
|
116
|
+
readonly active: string;
|
|
117
|
+
readonly activeOpacity: string;
|
|
101
118
|
readonly opacity: string;
|
|
102
119
|
readonly toneOpacity: string;
|
|
103
120
|
};
|
|
104
121
|
readonly warning: {
|
|
105
122
|
readonly selected: string;
|
|
123
|
+
readonly selectedOpacity: string;
|
|
106
124
|
readonly focusVisible: string;
|
|
107
125
|
readonly light: string;
|
|
108
126
|
readonly dark: string;
|
|
109
127
|
readonly main: string;
|
|
110
128
|
readonly contrastText: string;
|
|
111
|
-
readonly
|
|
129
|
+
readonly enabled: string;
|
|
130
|
+
readonly enabledOpacity: string;
|
|
112
131
|
readonly hover: string;
|
|
113
132
|
readonly hoverOpacity: string;
|
|
114
|
-
readonly
|
|
133
|
+
readonly focus: string;
|
|
115
134
|
readonly focusOpacity: string;
|
|
135
|
+
readonly active: string;
|
|
136
|
+
readonly activeOpacity: string;
|
|
116
137
|
readonly opacity: string;
|
|
117
138
|
readonly toneOpacity: string;
|
|
118
139
|
};
|
|
119
140
|
readonly error: {
|
|
120
141
|
readonly selected: string;
|
|
142
|
+
readonly selectedOpacity: string;
|
|
121
143
|
readonly focusVisible: string;
|
|
122
144
|
readonly light: string;
|
|
123
145
|
readonly dark: string;
|
|
124
146
|
readonly main: string;
|
|
125
147
|
readonly contrastText: string;
|
|
126
|
-
readonly
|
|
148
|
+
readonly enabled: string;
|
|
149
|
+
readonly enabledOpacity: string;
|
|
127
150
|
readonly hover: string;
|
|
128
151
|
readonly hoverOpacity: string;
|
|
129
|
-
readonly
|
|
152
|
+
readonly focus: string;
|
|
130
153
|
readonly focusOpacity: string;
|
|
154
|
+
readonly active: string;
|
|
155
|
+
readonly activeOpacity: string;
|
|
131
156
|
readonly opacity: string;
|
|
132
157
|
readonly toneOpacity: string;
|
|
133
158
|
};
|
|
@@ -140,28 +165,36 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
140
165
|
readonly main: string;
|
|
141
166
|
readonly dark: string;
|
|
142
167
|
readonly contrastText: string;
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
168
|
+
readonly enabled: string;
|
|
169
|
+
readonly enabledOpacity: string;
|
|
145
170
|
readonly hover: string;
|
|
146
171
|
readonly hoverOpacity: string;
|
|
147
|
-
readonly
|
|
172
|
+
readonly focus: string;
|
|
148
173
|
readonly focusOpacity: string;
|
|
174
|
+
readonly focusVisible: string;
|
|
175
|
+
readonly selected: string;
|
|
176
|
+
readonly selectedOpacity: string;
|
|
177
|
+
readonly active: string;
|
|
178
|
+
readonly activeOpacity: string;
|
|
149
179
|
readonly opacity: string;
|
|
150
180
|
readonly toneOpacity: string;
|
|
151
|
-
readonly selected: string;
|
|
152
181
|
};
|
|
153
182
|
readonly default: {
|
|
154
183
|
readonly selected: string;
|
|
184
|
+
readonly selectedOpacity: string;
|
|
155
185
|
readonly focusVisible: string;
|
|
156
186
|
readonly contrastText: string;
|
|
157
187
|
readonly light: string;
|
|
158
188
|
readonly dark: string;
|
|
159
189
|
readonly main: string;
|
|
160
|
-
readonly
|
|
190
|
+
readonly enabled: string;
|
|
191
|
+
readonly enabledOpacity: string;
|
|
161
192
|
readonly hover: string;
|
|
162
193
|
readonly hoverOpacity: string;
|
|
163
|
-
readonly
|
|
194
|
+
readonly focus: string;
|
|
164
195
|
readonly focusOpacity: string;
|
|
196
|
+
readonly active: string;
|
|
197
|
+
readonly activeOpacity: string;
|
|
165
198
|
readonly opacity: string;
|
|
166
199
|
readonly toneOpacity: string;
|
|
167
200
|
};
|
|
@@ -176,7 +209,8 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
176
209
|
readonly neutral: string;
|
|
177
210
|
readonly surface: string;
|
|
178
211
|
readonly hover: string;
|
|
179
|
-
readonly
|
|
212
|
+
readonly backdrop: string;
|
|
213
|
+
readonly paper: "#000";
|
|
180
214
|
};
|
|
181
215
|
readonly chips: import('../types').BaseChipColors;
|
|
182
216
|
readonly border: {
|
|
@@ -198,61 +232,77 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
198
232
|
};
|
|
199
233
|
readonly info: {
|
|
200
234
|
readonly selected: string;
|
|
235
|
+
readonly selectedOpacity: string;
|
|
201
236
|
readonly focusVisible: string;
|
|
202
237
|
readonly light: string;
|
|
203
238
|
readonly dark: string;
|
|
204
239
|
readonly main: string;
|
|
205
240
|
readonly contrastText: string;
|
|
206
|
-
readonly
|
|
241
|
+
readonly enabled: string;
|
|
242
|
+
readonly enabledOpacity: string;
|
|
207
243
|
readonly hover: string;
|
|
208
244
|
readonly hoverOpacity: string;
|
|
209
|
-
readonly
|
|
245
|
+
readonly focus: string;
|
|
210
246
|
readonly focusOpacity: string;
|
|
247
|
+
readonly active: string;
|
|
248
|
+
readonly activeOpacity: string;
|
|
211
249
|
readonly opacity: string;
|
|
212
250
|
readonly toneOpacity: string;
|
|
213
251
|
};
|
|
214
252
|
readonly success: {
|
|
215
253
|
readonly selected: string;
|
|
254
|
+
readonly selectedOpacity: string;
|
|
216
255
|
readonly focusVisible: string;
|
|
217
256
|
readonly light: string;
|
|
218
257
|
readonly dark: string;
|
|
219
258
|
readonly main: string;
|
|
220
259
|
readonly contrastText: string;
|
|
221
|
-
readonly
|
|
260
|
+
readonly enabled: string;
|
|
261
|
+
readonly enabledOpacity: string;
|
|
222
262
|
readonly hover: string;
|
|
223
263
|
readonly hoverOpacity: string;
|
|
224
|
-
readonly
|
|
264
|
+
readonly focus: string;
|
|
225
265
|
readonly focusOpacity: string;
|
|
266
|
+
readonly active: string;
|
|
267
|
+
readonly activeOpacity: string;
|
|
226
268
|
readonly opacity: string;
|
|
227
269
|
readonly toneOpacity: string;
|
|
228
270
|
};
|
|
229
271
|
readonly warning: {
|
|
230
272
|
readonly selected: string;
|
|
273
|
+
readonly selectedOpacity: string;
|
|
231
274
|
readonly focusVisible: string;
|
|
232
275
|
readonly light: string;
|
|
233
276
|
readonly dark: string;
|
|
234
277
|
readonly main: string;
|
|
235
278
|
readonly contrastText: string;
|
|
236
|
-
readonly
|
|
279
|
+
readonly enabled: string;
|
|
280
|
+
readonly enabledOpacity: string;
|
|
237
281
|
readonly hover: string;
|
|
238
282
|
readonly hoverOpacity: string;
|
|
239
|
-
readonly
|
|
283
|
+
readonly focus: string;
|
|
240
284
|
readonly focusOpacity: string;
|
|
285
|
+
readonly active: string;
|
|
286
|
+
readonly activeOpacity: string;
|
|
241
287
|
readonly opacity: string;
|
|
242
288
|
readonly toneOpacity: string;
|
|
243
289
|
};
|
|
244
290
|
readonly error: {
|
|
245
291
|
readonly selected: string;
|
|
292
|
+
readonly selectedOpacity: string;
|
|
246
293
|
readonly focusVisible: string;
|
|
247
294
|
readonly light: string;
|
|
248
295
|
readonly dark: string;
|
|
249
296
|
readonly main: string;
|
|
250
297
|
readonly contrastText: string;
|
|
251
|
-
readonly
|
|
298
|
+
readonly enabled: string;
|
|
299
|
+
readonly enabledOpacity: string;
|
|
252
300
|
readonly hover: string;
|
|
253
301
|
readonly hoverOpacity: string;
|
|
254
|
-
readonly
|
|
302
|
+
readonly focus: string;
|
|
255
303
|
readonly focusOpacity: string;
|
|
304
|
+
readonly active: string;
|
|
305
|
+
readonly activeOpacity: string;
|
|
256
306
|
readonly opacity: string;
|
|
257
307
|
readonly toneOpacity: string;
|
|
258
308
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import { B as
|
|
1
|
+
import { P as a, a as y, b as p } from "../theme/palette/presetColors.js";
|
|
2
|
+
import { B as s } from "../theme/palette/baseColors.js";
|
|
3
3
|
import { C as d } from "../theme/palette/commonColors.js";
|
|
4
4
|
import { G as n } from "../theme/palette/greyPalette.js";
|
|
5
|
-
import { S as
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as f, a as
|
|
8
|
-
import { B as
|
|
9
|
-
const
|
|
5
|
+
import { S as o, a as t } from "../theme/palette/semanticColors.js";
|
|
6
|
+
import { B as i } from "../theme/palette/baseOpacityColors.js";
|
|
7
|
+
import { B as f, a as O } from "../theme/palette/defaultColors.js";
|
|
8
|
+
import { B as m, a as u } from "../theme/palette/baseChipsPalette.js";
|
|
9
|
+
const l = {
|
|
10
10
|
light: {
|
|
11
11
|
scrollBar: "#5663763D",
|
|
12
12
|
gridHover: "#FCFCFC"
|
|
@@ -15,72 +15,78 @@ const a = {
|
|
|
15
15
|
scrollBar: "#5663765D",
|
|
16
16
|
gridHover: "#282E2E"
|
|
17
17
|
}
|
|
18
|
-
}, V = (
|
|
19
|
-
const
|
|
18
|
+
}, V = (c) => {
|
|
19
|
+
const e = y?.[c], r = p?.[c];
|
|
20
20
|
return {
|
|
21
21
|
light: {
|
|
22
22
|
mode: "light",
|
|
23
23
|
common: d,
|
|
24
24
|
primary: {
|
|
25
|
-
...
|
|
25
|
+
...e
|
|
26
26
|
},
|
|
27
27
|
default: {
|
|
28
28
|
...f,
|
|
29
|
-
selected:
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
selected: e.selected,
|
|
30
|
+
selectedOpacity: e.selectedOpacity,
|
|
31
|
+
focusVisible: e.focusVisible,
|
|
32
|
+
contrastText: s.onyx[20]
|
|
32
33
|
},
|
|
33
|
-
divider:
|
|
34
|
+
divider: s.coolGrey[20],
|
|
34
35
|
text: {
|
|
35
|
-
primary:
|
|
36
|
-
secondary:
|
|
37
|
-
disabled:
|
|
36
|
+
primary: s.onyx[20],
|
|
37
|
+
secondary: s.coolGrey[50],
|
|
38
|
+
disabled: s.oxford[30]
|
|
38
39
|
},
|
|
39
40
|
background: {
|
|
40
|
-
default:
|
|
41
|
-
neutral:
|
|
42
|
-
surface:
|
|
41
|
+
default: s.marbleLight[10],
|
|
42
|
+
neutral: s.marbleLight[30],
|
|
43
|
+
surface: s.marbleLight[50],
|
|
43
44
|
hover: f.hover,
|
|
45
|
+
backdrop: i.onyx[80] || "#000",
|
|
44
46
|
//por compatibilidad de mui
|
|
45
|
-
paper: "#
|
|
47
|
+
paper: "#000"
|
|
46
48
|
},
|
|
47
|
-
chips:
|
|
49
|
+
chips: m,
|
|
48
50
|
border: {
|
|
49
|
-
main: c
|
|
50
|
-
default:
|
|
51
|
-
secondary:
|
|
52
|
-
dens:
|
|
53
|
-
disabled:
|
|
54
|
-
error:
|
|
51
|
+
main: a[c]?.borderMainLight,
|
|
52
|
+
default: i.oxford[40],
|
|
53
|
+
secondary: i.oxford[30],
|
|
54
|
+
dens: i.oxford[60],
|
|
55
|
+
disabled: i.oxford[10],
|
|
56
|
+
error: o.error.main
|
|
55
57
|
},
|
|
56
58
|
general: {
|
|
57
|
-
scrollBar:
|
|
58
|
-
gridHover:
|
|
59
|
+
scrollBar: l.light.scrollBar,
|
|
60
|
+
gridHover: l.light.gridHover
|
|
59
61
|
},
|
|
60
62
|
grey: n,
|
|
61
63
|
skeleton: {
|
|
62
|
-
default:
|
|
63
|
-
transition:
|
|
64
|
+
default: i.oxford[10],
|
|
65
|
+
transition: i.oxford[20]
|
|
64
66
|
},
|
|
65
67
|
info: {
|
|
66
|
-
...
|
|
67
|
-
selected:
|
|
68
|
-
|
|
68
|
+
...o.info,
|
|
69
|
+
selected: e.selected,
|
|
70
|
+
selectedOpacity: e.selectedOpacity,
|
|
71
|
+
focusVisible: e.focusVisible
|
|
69
72
|
},
|
|
70
73
|
success: {
|
|
71
|
-
...
|
|
72
|
-
selected:
|
|
73
|
-
|
|
74
|
+
...o.success,
|
|
75
|
+
selected: e.selected,
|
|
76
|
+
selectedOpacity: e.selectedOpacity,
|
|
77
|
+
focusVisible: e.focusVisible
|
|
74
78
|
},
|
|
75
79
|
warning: {
|
|
76
|
-
...
|
|
77
|
-
selected:
|
|
78
|
-
|
|
80
|
+
...o.warning,
|
|
81
|
+
selected: e.selected,
|
|
82
|
+
selectedOpacity: e.selectedOpacity,
|
|
83
|
+
focusVisible: e.focusVisible
|
|
79
84
|
},
|
|
80
85
|
error: {
|
|
81
|
-
...
|
|
82
|
-
selected:
|
|
83
|
-
|
|
86
|
+
...o.error,
|
|
87
|
+
selected: e.selected,
|
|
88
|
+
selectedOpacity: e.selectedOpacity,
|
|
89
|
+
focusVisible: e.focusVisible
|
|
84
90
|
}
|
|
85
91
|
},
|
|
86
92
|
dark: {
|
|
@@ -88,67 +94,73 @@ const a = {
|
|
|
88
94
|
common: d,
|
|
89
95
|
// no definido en figma
|
|
90
96
|
primary: {
|
|
91
|
-
...
|
|
97
|
+
...r
|
|
92
98
|
},
|
|
93
99
|
default: {
|
|
94
|
-
...
|
|
95
|
-
selected:
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
...O,
|
|
101
|
+
selected: r?.selected,
|
|
102
|
+
selectedOpacity: r?.selectedOpacity,
|
|
103
|
+
focusVisible: r?.focusVisible,
|
|
104
|
+
contrastText: s.marbleLight[30]
|
|
98
105
|
},
|
|
99
106
|
text: {
|
|
100
|
-
primary:
|
|
101
|
-
secondary:
|
|
102
|
-
disabled:
|
|
107
|
+
primary: s.marbleLight[30],
|
|
108
|
+
secondary: s.coolGrey[20],
|
|
109
|
+
disabled: s.coolGrey[50]
|
|
103
110
|
},
|
|
104
|
-
divider:
|
|
111
|
+
divider: s.coolGrey[80],
|
|
105
112
|
background: {
|
|
106
|
-
default:
|
|
107
|
-
neutral:
|
|
108
|
-
surface:
|
|
109
|
-
hover:
|
|
113
|
+
default: s.onyx[40],
|
|
114
|
+
neutral: s.onyx[50],
|
|
115
|
+
surface: s.onyx[60],
|
|
116
|
+
hover: O.hover,
|
|
117
|
+
backdrop: i.onyx[80] || "#000",
|
|
110
118
|
//por compatibilidad de mui
|
|
111
|
-
paper: "#
|
|
119
|
+
paper: "#000"
|
|
112
120
|
},
|
|
113
|
-
chips:
|
|
121
|
+
chips: u,
|
|
114
122
|
border: {
|
|
115
|
-
main: c
|
|
116
|
-
default:
|
|
117
|
-
secondary:
|
|
118
|
-
dens:
|
|
119
|
-
disabled:
|
|
120
|
-
error:
|
|
123
|
+
main: a[c]?.borderMainDark,
|
|
124
|
+
default: i.mint[50],
|
|
125
|
+
secondary: i.mint[40],
|
|
126
|
+
dens: i.mint[60],
|
|
127
|
+
disabled: i.mint[20],
|
|
128
|
+
error: t.error.main
|
|
121
129
|
},
|
|
122
130
|
general: {
|
|
123
131
|
// no definido en figma
|
|
124
|
-
scrollBar:
|
|
125
|
-
gridHover:
|
|
132
|
+
scrollBar: l.light.scrollBar,
|
|
133
|
+
gridHover: l.light.gridHover
|
|
126
134
|
},
|
|
127
135
|
grey: n,
|
|
128
136
|
// no definido en figma
|
|
129
137
|
skeleton: {
|
|
130
|
-
default:
|
|
131
|
-
transition:
|
|
138
|
+
default: i.mint[20],
|
|
139
|
+
transition: i.mint[40]
|
|
132
140
|
},
|
|
133
141
|
info: {
|
|
134
|
-
...
|
|
135
|
-
selected:
|
|
136
|
-
|
|
142
|
+
...t.info,
|
|
143
|
+
selected: r?.selected,
|
|
144
|
+
selectedOpacity: r?.selectedOpacity,
|
|
145
|
+
focusVisible: r.focusVisible
|
|
137
146
|
},
|
|
138
147
|
success: {
|
|
139
|
-
...
|
|
140
|
-
selected:
|
|
141
|
-
|
|
148
|
+
...t.success,
|
|
149
|
+
selected: r?.selected,
|
|
150
|
+
selectedOpacity: r?.selectedOpacity,
|
|
151
|
+
focusVisible: r.focusVisible
|
|
142
152
|
},
|
|
143
153
|
warning: {
|
|
144
|
-
...
|
|
145
|
-
selected:
|
|
146
|
-
|
|
154
|
+
...t.warning,
|
|
155
|
+
selected: r?.selected,
|
|
156
|
+
selectedOpacity: r?.selectedOpacity,
|
|
157
|
+
focusVisible: r.focusVisible
|
|
147
158
|
},
|
|
148
159
|
error: {
|
|
149
|
-
...
|
|
150
|
-
selected:
|
|
151
|
-
|
|
160
|
+
...t.error,
|
|
161
|
+
selected: r?.selected,
|
|
162
|
+
selectedOpacity: r?.selectedOpacity,
|
|
163
|
+
focusVisible: r.focusVisible
|
|
152
164
|
}
|
|
153
165
|
}
|
|
154
166
|
};
|