@m4l/styles 7.1.12 → 7.1.14-beta.3
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 +3 -2
- package/theme/palette/defaultColors.js +51 -45
- package/theme/palette/presetColors.js +30 -0
- package/theme/palette/semanticColors.js +31 -7
- package/theme/typography.d.ts +0 -4
- package/theme/typography.js +4 -5
- package/types/augmentations.d.ts +2 -0
- package/types/types.d.ts +2 -0
- package/utils/getPaletteByPreset.d.ts +12 -0
- package/utils/getUserThemeOptions.js +14 -13
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/styles",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.14-beta.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "m4l team",
|
|
6
6
|
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
7
|
+
"access": "public",
|
|
8
|
+
"tag": "beta"
|
|
8
9
|
},
|
|
9
10
|
"lint-staged": {
|
|
10
11
|
"*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as a } from "./baseOpacityColors.js";
|
|
2
2
|
import { B as i } from "./baseColors.js";
|
|
3
|
-
const
|
|
3
|
+
const t = {
|
|
4
4
|
enabledLight: i.oxford[20],
|
|
5
5
|
// Comprobado
|
|
6
6
|
enabledDark: i.onyx[30],
|
|
@@ -17,37 +17,41 @@ const a = {
|
|
|
17
17
|
// Comprobado
|
|
18
18
|
focusDark: i.oxford[50],
|
|
19
19
|
// Comprobado
|
|
20
|
-
enabledOpacityLight:
|
|
20
|
+
enabledOpacityLight: a.oxford[20],
|
|
21
21
|
// Comprobado
|
|
22
|
-
enabledOpacityDark:
|
|
22
|
+
enabledOpacityDark: a.mint[20],
|
|
23
23
|
// Comprobado
|
|
24
|
-
hoverOpacityLight:
|
|
24
|
+
hoverOpacityLight: a.oxford[10],
|
|
25
25
|
// Comprobado
|
|
26
|
-
hoverOpacityDark:
|
|
26
|
+
hoverOpacityDark: a.mint[10],
|
|
27
27
|
// Comprobado
|
|
28
|
-
activeOpacityLight:
|
|
28
|
+
activeOpacityLight: a.oxford[30],
|
|
29
29
|
// Comprobado
|
|
30
|
-
activeOpacityDark:
|
|
30
|
+
activeOpacityDark: a.mint[30],
|
|
31
31
|
// Comprobado
|
|
32
|
-
focusOpacityLight:
|
|
32
|
+
focusOpacityLight: a.oxford[40],
|
|
33
33
|
// Comprobado
|
|
34
|
-
focusOpacityDark:
|
|
34
|
+
focusOpacityDark: a.mint[40],
|
|
35
35
|
// Comprobado
|
|
36
|
-
opacityLight:
|
|
36
|
+
opacityLight: a.oxford[10],
|
|
37
37
|
// Comprobado
|
|
38
|
-
opacityDark:
|
|
38
|
+
opacityDark: a.mint[10],
|
|
39
|
+
// Comprobado
|
|
40
|
+
semanticTextLight: i.oxford[30],
|
|
41
|
+
// Comprobado
|
|
42
|
+
semanticTextDark: i.oxford[10],
|
|
39
43
|
// Comprobado
|
|
40
44
|
mainLight: i.oxford[10],
|
|
41
45
|
// Comprobado
|
|
42
|
-
mainDark:
|
|
46
|
+
mainDark: a.mint[20],
|
|
43
47
|
// Comprobado
|
|
44
|
-
lighter:
|
|
48
|
+
lighter: a.oxford[40],
|
|
45
49
|
// Comprobado
|
|
46
|
-
light:
|
|
50
|
+
light: a.oxford[20],
|
|
47
51
|
// Comprobado
|
|
48
|
-
dark:
|
|
52
|
+
dark: a.mint[30],
|
|
49
53
|
// Comprobado,
|
|
50
|
-
darker:
|
|
54
|
+
darker: a.mint[50],
|
|
51
55
|
// Comprobado,
|
|
52
56
|
// Tone colors
|
|
53
57
|
toneOpacityLight: i.oxford[5],
|
|
@@ -55,37 +59,39 @@ const a = {
|
|
|
55
59
|
toneOpacityDark: i.oxford[95]
|
|
56
60
|
// Comprobado
|
|
57
61
|
}, c = {
|
|
58
|
-
enabled:
|
|
59
|
-
enabledOpacity:
|
|
60
|
-
hover:
|
|
61
|
-
hoverOpacity:
|
|
62
|
-
focus:
|
|
63
|
-
focusOpacity:
|
|
64
|
-
active:
|
|
65
|
-
activeOpacity:
|
|
66
|
-
opacity:
|
|
67
|
-
toneOpacity:
|
|
62
|
+
enabled: t.enabledLight,
|
|
63
|
+
enabledOpacity: t.enabledOpacityLight,
|
|
64
|
+
hover: t.hoverLight,
|
|
65
|
+
hoverOpacity: t.hoverOpacityLight,
|
|
66
|
+
focus: t.focusLight,
|
|
67
|
+
focusOpacity: t.focusOpacityLight,
|
|
68
|
+
active: t.activeLight,
|
|
69
|
+
activeOpacity: t.activeOpacityLight,
|
|
70
|
+
opacity: t.light,
|
|
71
|
+
toneOpacity: t.toneOpacityLight,
|
|
72
|
+
semanticText: t.semanticTextLight,
|
|
68
73
|
//Por compatibilidad con MUI
|
|
69
|
-
main:
|
|
70
|
-
light:
|
|
71
|
-
dark:
|
|
72
|
-
},
|
|
73
|
-
enabled:
|
|
74
|
-
enabledOpacity:
|
|
75
|
-
hover:
|
|
76
|
-
hoverOpacity:
|
|
77
|
-
focus:
|
|
78
|
-
focusOpacity:
|
|
79
|
-
active:
|
|
80
|
-
activeOpacity:
|
|
81
|
-
opacity:
|
|
82
|
-
toneOpacity:
|
|
74
|
+
main: t.mainLight,
|
|
75
|
+
light: t.light,
|
|
76
|
+
dark: t.dark
|
|
77
|
+
}, r = {
|
|
78
|
+
enabled: t.enabledDark,
|
|
79
|
+
enabledOpacity: t.enabledOpacityDark,
|
|
80
|
+
hover: t.hoverDark,
|
|
81
|
+
hoverOpacity: t.hoverOpacityDark,
|
|
82
|
+
focus: t.focusDark,
|
|
83
|
+
focusOpacity: t.focusOpacityDark,
|
|
84
|
+
active: t.activeDark,
|
|
85
|
+
activeOpacity: t.activeOpacityDark,
|
|
86
|
+
opacity: t.dark,
|
|
87
|
+
toneOpacity: t.toneOpacityDark,
|
|
88
|
+
semanticText: t.semanticTextDark,
|
|
83
89
|
//Por compatibilidad con MUI
|
|
84
|
-
main:
|
|
85
|
-
light:
|
|
86
|
-
dark:
|
|
90
|
+
main: t.mainDark,
|
|
91
|
+
light: t.light,
|
|
92
|
+
dark: t.dark
|
|
87
93
|
};
|
|
88
94
|
export {
|
|
89
95
|
c as B,
|
|
90
|
-
|
|
96
|
+
r as a
|
|
91
97
|
};
|
|
@@ -58,6 +58,10 @@ const a = {
|
|
|
58
58
|
// comprobado,,
|
|
59
59
|
contrastText: t.marbleLight[30],
|
|
60
60
|
// comprobado,
|
|
61
|
+
semanticTextLight: t.patronusBlue[50],
|
|
62
|
+
// comprobado,
|
|
63
|
+
semanticTextDark: t.patronusBlue[50],
|
|
64
|
+
// comprobado,
|
|
61
65
|
// Tone colors
|
|
62
66
|
toneOpacityLight: t.patronusBlue[5],
|
|
63
67
|
// comprobado,
|
|
@@ -126,6 +130,10 @@ const a = {
|
|
|
126
130
|
// comprobado,,
|
|
127
131
|
contrastText: t.marbleLight[30],
|
|
128
132
|
// comprobado,
|
|
133
|
+
semanticTextLight: t.turquiBlue[50],
|
|
134
|
+
// comprobado,
|
|
135
|
+
semanticTextDark: t.turquiBlue[50],
|
|
136
|
+
// comprobado,
|
|
129
137
|
// Tone colors
|
|
130
138
|
toneOpacityLight: t.turquiBlue[5],
|
|
131
139
|
// comprobado,
|
|
@@ -194,6 +202,10 @@ const a = {
|
|
|
194
202
|
// comprobado,,
|
|
195
203
|
contrastText: t.marbleLight[30],
|
|
196
204
|
// comprobado,
|
|
205
|
+
semanticTextLight: t.brown[50],
|
|
206
|
+
// comprobado,
|
|
207
|
+
semanticTextDark: t.brown[50],
|
|
208
|
+
// comprobado,
|
|
197
209
|
// Tone colors
|
|
198
210
|
toneOpacityLight: t.brown[5],
|
|
199
211
|
// comprobado,
|
|
@@ -262,6 +274,10 @@ const a = {
|
|
|
262
274
|
// comprobado,,
|
|
263
275
|
contrastText: t.marbleLight[30],
|
|
264
276
|
// comprobado,
|
|
277
|
+
semanticTextLight: t.blazeOrange[50],
|
|
278
|
+
// comprobado,
|
|
279
|
+
semanticTextDark: t.blazeOrange[50],
|
|
280
|
+
// comprobado,
|
|
265
281
|
// Tone colors
|
|
266
282
|
toneOpacityLight: t.blazeOrange[5],
|
|
267
283
|
// comprobado,
|
|
@@ -330,6 +346,10 @@ const a = {
|
|
|
330
346
|
// comprobado,,
|
|
331
347
|
contrastText: t.marbleLight[30],
|
|
332
348
|
// comprobado,
|
|
349
|
+
semanticTextLight: t.grassGreen[50],
|
|
350
|
+
// comprobado,
|
|
351
|
+
semanticTextDark: t.grassGreen[50],
|
|
352
|
+
// comprobado,
|
|
333
353
|
// Tone colors
|
|
334
354
|
toneOpacityLight: t.grassGreen[5],
|
|
335
355
|
// comprobado,
|
|
@@ -357,6 +377,7 @@ const a = {
|
|
|
357
377
|
opacity: a.patronus.opacityLight,
|
|
358
378
|
toneOpacity: a.patronus.toneOpacityLight,
|
|
359
379
|
contrastText: a.patronus.contrastText,
|
|
380
|
+
semanticText: a.patronus.semanticTextLight,
|
|
360
381
|
//Por compatibilidad con MUI
|
|
361
382
|
main: a.patronus.main,
|
|
362
383
|
light: a.patronus.light,
|
|
@@ -377,6 +398,7 @@ const a = {
|
|
|
377
398
|
opacity: a.blaze.opacityLight,
|
|
378
399
|
toneOpacity: a.blaze.toneOpacityLight,
|
|
379
400
|
contrastText: a.blaze.contrastText,
|
|
401
|
+
semanticText: a.blaze.semanticTextLight,
|
|
380
402
|
//Por compatibilidad con MUI
|
|
381
403
|
main: a.blaze.main,
|
|
382
404
|
light: a.blaze.light,
|
|
@@ -397,6 +419,7 @@ const a = {
|
|
|
397
419
|
opacity: a.brown.opacityLight,
|
|
398
420
|
toneOpacity: a.brown.toneOpacityLight,
|
|
399
421
|
contrastText: a.brown.contrastText,
|
|
422
|
+
semanticText: a.brown.semanticTextLight,
|
|
400
423
|
//Por compatibilidad con MUI
|
|
401
424
|
main: a.brown.main,
|
|
402
425
|
light: a.brown.light,
|
|
@@ -417,6 +440,7 @@ const a = {
|
|
|
417
440
|
opacity: a.grass.opacityLight,
|
|
418
441
|
toneOpacity: a.grass.toneOpacityLight,
|
|
419
442
|
contrastText: a.grass.contrastText,
|
|
443
|
+
semanticText: a.grass.semanticTextLight,
|
|
420
444
|
//Por compatibilidad con MUI
|
|
421
445
|
main: a.grass.main,
|
|
422
446
|
light: a.grass.light,
|
|
@@ -437,6 +461,7 @@ const a = {
|
|
|
437
461
|
opacity: a.turqui.opacityLight,
|
|
438
462
|
toneOpacity: a.turqui.toneOpacityLight,
|
|
439
463
|
contrastText: a.turqui.contrastText,
|
|
464
|
+
semanticText: a.turqui.semanticTextLight,
|
|
440
465
|
//Por compatibilidad con MUI
|
|
441
466
|
main: a.turqui.main,
|
|
442
467
|
light: a.turqui.light,
|
|
@@ -458,6 +483,7 @@ const a = {
|
|
|
458
483
|
opacity: a.patronus.opacityDark,
|
|
459
484
|
toneOpacity: a.patronus.toneOpacityDark,
|
|
460
485
|
contrastText: a.patronus.contrastText,
|
|
486
|
+
semanticText: a.patronus.semanticTextDark,
|
|
461
487
|
//Por compatibilidad con MUI
|
|
462
488
|
main: a.patronus.main,
|
|
463
489
|
light: a.patronus.light,
|
|
@@ -478,6 +504,7 @@ const a = {
|
|
|
478
504
|
opacity: a.blaze.opacityDark,
|
|
479
505
|
toneOpacity: a.blaze.toneOpacityDark,
|
|
480
506
|
contrastText: a.blaze.contrastText,
|
|
507
|
+
semanticText: a.blaze.semanticTextDark,
|
|
481
508
|
//Por compatibilidad con MUI
|
|
482
509
|
main: a.blaze.main,
|
|
483
510
|
light: a.blaze.light,
|
|
@@ -498,6 +525,7 @@ const a = {
|
|
|
498
525
|
opacity: a.brown.opacityDark,
|
|
499
526
|
toneOpacity: a.brown.toneOpacityDark,
|
|
500
527
|
contrastText: a.brown.contrastText,
|
|
528
|
+
semanticText: a.brown.semanticTextDark,
|
|
501
529
|
//Por compatibilidad con MUI
|
|
502
530
|
main: a.brown.main,
|
|
503
531
|
light: a.brown.light,
|
|
@@ -518,6 +546,7 @@ const a = {
|
|
|
518
546
|
opacity: a.grass.opacityDark,
|
|
519
547
|
toneOpacity: a.grass.toneOpacityDark,
|
|
520
548
|
contrastText: a.grass.contrastText,
|
|
549
|
+
semanticText: a.grass.semanticTextDark,
|
|
521
550
|
//Por compatibilidad con MUI
|
|
522
551
|
main: a.grass.main,
|
|
523
552
|
light: a.grass.light,
|
|
@@ -538,6 +567,7 @@ const a = {
|
|
|
538
567
|
opacity: a.turqui.opacityDark,
|
|
539
568
|
toneOpacity: a.turqui.toneOpacityDark,
|
|
540
569
|
contrastText: a.turqui.contrastText,
|
|
570
|
+
semanticText: a.turqui.semanticTextDark,
|
|
541
571
|
//Por compatibilidad con MUI
|
|
542
572
|
main: a.turqui.main,
|
|
543
573
|
light: a.turqui.light,
|
|
@@ -43,13 +43,17 @@ const a = {
|
|
|
43
43
|
lighter: e.crayonBlue[70],
|
|
44
44
|
// comprobado,,
|
|
45
45
|
light: e.crayonBlue[40],
|
|
46
|
-
// comprobado
|
|
46
|
+
// comprobado,
|
|
47
47
|
dark: e.crayonBlue[30],
|
|
48
|
-
// comprobado
|
|
48
|
+
// comprobado,
|
|
49
49
|
darker: e.crayonBlue[10],
|
|
50
50
|
// comprobado,,
|
|
51
51
|
contrastText: e.marbleLight[30],
|
|
52
52
|
// comprobado,
|
|
53
|
+
semanticTextLight: e.crayonBlue[90],
|
|
54
|
+
// comprobado,
|
|
55
|
+
semanticTextDark: e.crayonBlue[20],
|
|
56
|
+
// comprobado,
|
|
53
57
|
// Tone colors
|
|
54
58
|
toneOpacityLight: e.crayonBlue[5],
|
|
55
59
|
// comprobado,
|
|
@@ -104,6 +108,10 @@ const a = {
|
|
|
104
108
|
// comprobado,,
|
|
105
109
|
contrastText: e.onyx[20],
|
|
106
110
|
// comprobado,
|
|
111
|
+
semanticTextLight: e.middleYellow[90],
|
|
112
|
+
// comprobado,
|
|
113
|
+
semanticTextDark: e.middleYellow[30],
|
|
114
|
+
// comprobado,
|
|
107
115
|
// Tone colors
|
|
108
116
|
toneOpacityLight: e.middleYellow[5],
|
|
109
117
|
// comprobado,
|
|
@@ -158,6 +166,10 @@ const a = {
|
|
|
158
166
|
// comprobado,,
|
|
159
167
|
contrastText: e.marbleLight[30],
|
|
160
168
|
// comprobado,
|
|
169
|
+
semanticTextLight: e.flameRed[80],
|
|
170
|
+
// comprobado,
|
|
171
|
+
semanticTextDark: e.flameRed[20],
|
|
172
|
+
// comprobado,
|
|
161
173
|
// Tone colors
|
|
162
174
|
toneOpacityLight: e.flameRed[5],
|
|
163
175
|
// comprobado,
|
|
@@ -203,15 +215,19 @@ const a = {
|
|
|
203
215
|
main: e.acidGreen[50],
|
|
204
216
|
// comprobado,,
|
|
205
217
|
lighter: e.acidGreen[70],
|
|
206
|
-
// comprobado
|
|
218
|
+
// comprobado,
|
|
207
219
|
light: e.acidGreen[40],
|
|
208
220
|
// comprobado,,
|
|
209
221
|
dark: e.acidGreen[30],
|
|
210
|
-
// comprobado
|
|
222
|
+
// comprobado,
|
|
211
223
|
darker: e.acidGreen[10],
|
|
212
|
-
// comprobado
|
|
224
|
+
// comprobado,
|
|
213
225
|
contrastText: e.marbleLight[30],
|
|
214
226
|
// comprobado,
|
|
227
|
+
semanticTextLight: e.acidGreen[80],
|
|
228
|
+
// comprobado,
|
|
229
|
+
semanticTextDark: e.acidGreen[20],
|
|
230
|
+
// comprobado,
|
|
215
231
|
// Tone colors
|
|
216
232
|
toneOpacityLight: e.acidGreen[5],
|
|
217
233
|
// comprobado,
|
|
@@ -230,6 +246,7 @@ const a = {
|
|
|
230
246
|
opacity: a.info.opacityLight,
|
|
231
247
|
toneOpacity: a.info.toneOpacityLight,
|
|
232
248
|
contrastText: a.info.contrastText,
|
|
249
|
+
semanticText: a.info.semanticTextLight,
|
|
233
250
|
//Por compatibilidad con MUI
|
|
234
251
|
main: a.info.main,
|
|
235
252
|
light: a.info.light,
|
|
@@ -247,6 +264,7 @@ const a = {
|
|
|
247
264
|
opacity: a.success.opacityLight,
|
|
248
265
|
toneOpacity: a.success.toneOpacityLight,
|
|
249
266
|
contrastText: a.success.contrastText,
|
|
267
|
+
semanticText: a.success.semanticTextLight,
|
|
250
268
|
main: a.success.main,
|
|
251
269
|
//Por compatibilidad con MUI
|
|
252
270
|
light: a.success.light,
|
|
@@ -264,6 +282,7 @@ const a = {
|
|
|
264
282
|
opacity: a.warning.opacityLight,
|
|
265
283
|
toneOpacity: a.warning.toneOpacityLight,
|
|
266
284
|
contrastText: a.warning.contrastText,
|
|
285
|
+
semanticText: a.warning.semanticTextLight,
|
|
267
286
|
main: a.warning.main,
|
|
268
287
|
//Por compatibilidad con MUI
|
|
269
288
|
light: a.warning.light,
|
|
@@ -281,12 +300,13 @@ const a = {
|
|
|
281
300
|
opacity: a.error.opacityLight,
|
|
282
301
|
toneOpacity: a.error.toneOpacityLight,
|
|
283
302
|
contrastText: a.error.contrastText,
|
|
303
|
+
semanticText: a.error.semanticTextLight,
|
|
284
304
|
main: a.error.main,
|
|
285
305
|
//Por compatibilidad con MUI
|
|
286
306
|
light: a.error.light,
|
|
287
307
|
dark: a.error.dark
|
|
288
308
|
}
|
|
289
|
-
},
|
|
309
|
+
}, n = {
|
|
290
310
|
info: {
|
|
291
311
|
enabled: a.info.enabledDark,
|
|
292
312
|
enabledOpacity: a.info.enabledOpacityDark,
|
|
@@ -299,6 +319,7 @@ const a = {
|
|
|
299
319
|
opacity: a.info.opacityDark,
|
|
300
320
|
toneOpacity: a.info.toneOpacityDark,
|
|
301
321
|
contrastText: a.info.contrastText,
|
|
322
|
+
semanticText: a.info.semanticTextDark,
|
|
302
323
|
main: a.info.main,
|
|
303
324
|
//Por compatibilidad con MUI
|
|
304
325
|
light: a.info.light,
|
|
@@ -316,6 +337,7 @@ const a = {
|
|
|
316
337
|
opacity: a.success.opacityDark,
|
|
317
338
|
toneOpacity: a.success.toneOpacityDark,
|
|
318
339
|
contrastText: a.success.contrastText,
|
|
340
|
+
semanticText: a.success.semanticTextDark,
|
|
319
341
|
main: a.success.main,
|
|
320
342
|
//Por compatibilidad con MUI
|
|
321
343
|
light: a.success.light,
|
|
@@ -333,6 +355,7 @@ const a = {
|
|
|
333
355
|
opacity: a.warning.opacityDark,
|
|
334
356
|
toneOpacity: a.warning.toneOpacityDark,
|
|
335
357
|
contrastText: a.warning.contrastText,
|
|
358
|
+
semanticText: a.warning.semanticTextDark,
|
|
336
359
|
main: a.warning.main,
|
|
337
360
|
//Por compatibilidad con MUI
|
|
338
361
|
light: a.warning.light,
|
|
@@ -350,6 +373,7 @@ const a = {
|
|
|
350
373
|
opacity: a.error.opacityDark,
|
|
351
374
|
toneOpacity: a.error.toneOpacityDark,
|
|
352
375
|
contrastText: a.error.contrastText,
|
|
376
|
+
semanticText: a.error.semanticTextDark,
|
|
353
377
|
main: a.error.main,
|
|
354
378
|
//Por compatibilidad con MUI
|
|
355
379
|
light: a.error.light,
|
|
@@ -358,5 +382,5 @@ const a = {
|
|
|
358
382
|
};
|
|
359
383
|
export {
|
|
360
384
|
r as S,
|
|
361
|
-
|
|
385
|
+
n as a
|
|
362
386
|
};
|
package/theme/typography.d.ts
CHANGED
|
@@ -238,8 +238,4 @@ export declare const typography: {
|
|
|
238
238
|
readonly fontWeight: 600;
|
|
239
239
|
readonly lineHeight: "16px";
|
|
240
240
|
};
|
|
241
|
-
readonly fontSize: number;
|
|
242
|
-
readonly fontWeightLight: React.CSSProperties["fontWeight"];
|
|
243
|
-
readonly htmlFontSize: number;
|
|
244
|
-
readonly pxToRem: (px: number) => string;
|
|
245
241
|
};
|
package/theme/typography.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { createTheme as i } from "@mui/material";
|
|
2
1
|
import { a as e, p as t } from "../utils/getFontValue.js";
|
|
3
|
-
const
|
|
4
|
-
...
|
|
5
|
-
fontFamily:
|
|
2
|
+
const i = "Inter, Segoe UI, Poppins, sans-serif", g = {
|
|
3
|
+
// ...baseTheme.typography,
|
|
4
|
+
fontFamily: i,
|
|
6
5
|
fontWeightRegular: 400,
|
|
7
6
|
fontWeightMedium: 600,
|
|
8
7
|
fontWeightBold: 700,
|
|
@@ -130,5 +129,5 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
|
|
|
130
129
|
}
|
|
131
130
|
};
|
|
132
131
|
export {
|
|
133
|
-
|
|
132
|
+
g as t
|
|
134
133
|
};
|
package/types/augmentations.d.ts
CHANGED
package/types/types.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
28
28
|
readonly activeOpacity: string;
|
|
29
29
|
readonly opacity: string;
|
|
30
30
|
readonly toneOpacity: string;
|
|
31
|
+
readonly semanticText: string;
|
|
31
32
|
};
|
|
32
33
|
readonly default: {
|
|
33
34
|
readonly selected: string;
|
|
@@ -47,6 +48,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
47
48
|
readonly activeOpacity: string;
|
|
48
49
|
readonly opacity: string;
|
|
49
50
|
readonly toneOpacity: string;
|
|
51
|
+
readonly semanticText: string;
|
|
50
52
|
};
|
|
51
53
|
readonly divider: string;
|
|
52
54
|
readonly text: {
|
|
@@ -98,6 +100,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
98
100
|
readonly activeOpacity: string;
|
|
99
101
|
readonly opacity: string;
|
|
100
102
|
readonly toneOpacity: string;
|
|
103
|
+
readonly semanticText: string;
|
|
101
104
|
};
|
|
102
105
|
readonly success: {
|
|
103
106
|
readonly selected: string;
|
|
@@ -117,6 +120,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
117
120
|
readonly activeOpacity: string;
|
|
118
121
|
readonly opacity: string;
|
|
119
122
|
readonly toneOpacity: string;
|
|
123
|
+
readonly semanticText: string;
|
|
120
124
|
};
|
|
121
125
|
readonly warning: {
|
|
122
126
|
readonly selected: string;
|
|
@@ -136,6 +140,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
136
140
|
readonly activeOpacity: string;
|
|
137
141
|
readonly opacity: string;
|
|
138
142
|
readonly toneOpacity: string;
|
|
143
|
+
readonly semanticText: string;
|
|
139
144
|
};
|
|
140
145
|
readonly error: {
|
|
141
146
|
readonly selected: string;
|
|
@@ -155,6 +160,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
155
160
|
readonly activeOpacity: string;
|
|
156
161
|
readonly opacity: string;
|
|
157
162
|
readonly toneOpacity: string;
|
|
163
|
+
readonly semanticText: string;
|
|
158
164
|
};
|
|
159
165
|
};
|
|
160
166
|
readonly dark: {
|
|
@@ -178,6 +184,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
178
184
|
readonly activeOpacity: string;
|
|
179
185
|
readonly opacity: string;
|
|
180
186
|
readonly toneOpacity: string;
|
|
187
|
+
readonly semanticText: string;
|
|
181
188
|
};
|
|
182
189
|
readonly default: {
|
|
183
190
|
readonly selected: string;
|
|
@@ -197,6 +204,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
197
204
|
readonly activeOpacity: string;
|
|
198
205
|
readonly opacity: string;
|
|
199
206
|
readonly toneOpacity: string;
|
|
207
|
+
readonly semanticText: string;
|
|
200
208
|
};
|
|
201
209
|
readonly text: {
|
|
202
210
|
readonly primary: string;
|
|
@@ -248,6 +256,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
248
256
|
readonly activeOpacity: string;
|
|
249
257
|
readonly opacity: string;
|
|
250
258
|
readonly toneOpacity: string;
|
|
259
|
+
readonly semanticText: string;
|
|
251
260
|
};
|
|
252
261
|
readonly success: {
|
|
253
262
|
readonly selected: string;
|
|
@@ -267,6 +276,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
267
276
|
readonly activeOpacity: string;
|
|
268
277
|
readonly opacity: string;
|
|
269
278
|
readonly toneOpacity: string;
|
|
279
|
+
readonly semanticText: string;
|
|
270
280
|
};
|
|
271
281
|
readonly warning: {
|
|
272
282
|
readonly selected: string;
|
|
@@ -286,6 +296,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
286
296
|
readonly activeOpacity: string;
|
|
287
297
|
readonly opacity: string;
|
|
288
298
|
readonly toneOpacity: string;
|
|
299
|
+
readonly semanticText: string;
|
|
289
300
|
};
|
|
290
301
|
readonly error: {
|
|
291
302
|
readonly selected: string;
|
|
@@ -305,6 +316,7 @@ export declare const getPaletteByPreset: (themeUserColor: ThemeUserColor) => {
|
|
|
305
316
|
readonly activeOpacity: string;
|
|
306
317
|
readonly opacity: string;
|
|
307
318
|
readonly toneOpacity: string;
|
|
319
|
+
readonly semanticText: string;
|
|
308
320
|
};
|
|
309
321
|
};
|
|
310
322
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { createTheme as
|
|
2
|
-
import { t as
|
|
3
|
-
import { s as
|
|
1
|
+
import { createTheme as p, alpha as s } from "@mui/material/styles";
|
|
2
|
+
import { t as o } from "../theme/typography.js";
|
|
3
|
+
import { s as e, c as m } from "../theme/shadows.js";
|
|
4
4
|
import { S as i } from "../theme/sizes/size.js";
|
|
5
|
-
import { g
|
|
6
|
-
import { g as
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { g } from "./getColorPresets.js";
|
|
6
|
+
import { g as y } from "./getPaletteByPreset.js";
|
|
7
|
+
function S(r, a) {
|
|
8
|
+
const t = p();
|
|
9
9
|
return {
|
|
10
|
+
...t,
|
|
11
|
+
...t.typography,
|
|
10
12
|
...o,
|
|
11
|
-
...
|
|
12
|
-
...m[t],
|
|
13
|
+
...e[r],
|
|
13
14
|
customShadows: {
|
|
14
|
-
primary: `0 8px 16px 0 ${
|
|
15
|
-
...
|
|
15
|
+
primary: `0 8px 16px 0 ${s(g(a).main, 0.2)}`,
|
|
16
|
+
...m(r)
|
|
16
17
|
},
|
|
17
18
|
stretch: !0,
|
|
18
|
-
palette: { ...
|
|
19
|
-
typography:
|
|
19
|
+
palette: { ...t.palette, ...y(a)[r] },
|
|
20
|
+
typography: { ...t.typography, ...o },
|
|
20
21
|
size: i
|
|
21
22
|
};
|
|
22
23
|
}
|