@m4l/styles 7.1.30 → 7.1.31
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/presetColors.js +10 -10
- package/theme/shadows.d.ts +1 -0
- package/theme/sizes/baseSizes.js +4 -0
- package/theme/sizes/pointerQr.js +22 -10
- package/theme/sizes/presetSizes.js +20 -0
- package/theme/sizes/types.d.ts +5 -1
- package/utils/getPaletteByPreset.js +4 -4
- package/utils/getUserThemeOptions.js +19 -18
package/package.json
CHANGED
|
@@ -23,9 +23,9 @@ const a = {
|
|
|
23
23
|
// comprobado,
|
|
24
24
|
focusDark: t.patronusBlue[60],
|
|
25
25
|
// comprobado,
|
|
26
|
-
enabledOpacityLight: e.patronus[
|
|
26
|
+
enabledOpacityLight: e.patronus[10],
|
|
27
27
|
// comprobado
|
|
28
|
-
enabledOpacityDark: e.patronus[
|
|
28
|
+
enabledOpacityDark: e.patronus[10],
|
|
29
29
|
// comprobado,
|
|
30
30
|
hoverOpacityLight: e.patronus[20],
|
|
31
31
|
// comprobado,
|
|
@@ -67,9 +67,9 @@ const a = {
|
|
|
67
67
|
// comprobado,,
|
|
68
68
|
contrastText: t.marbleLight[30],
|
|
69
69
|
// comprobado,
|
|
70
|
-
semanticTextLight: t.patronusBlue[
|
|
70
|
+
semanticTextLight: t.patronusBlue[60],
|
|
71
71
|
// comprobado,
|
|
72
|
-
semanticTextDark: t.patronusBlue[
|
|
72
|
+
semanticTextDark: t.patronusBlue[40],
|
|
73
73
|
// comprobado,
|
|
74
74
|
// Tone colors
|
|
75
75
|
toneOpacityLight: t.patronusBlue[5],
|
|
@@ -147,9 +147,9 @@ const a = {
|
|
|
147
147
|
// comprobado,,
|
|
148
148
|
contrastText: t.marbleLight[30],
|
|
149
149
|
// comprobado,
|
|
150
|
-
semanticTextLight: t.grassGreen[
|
|
150
|
+
semanticTextLight: t.grassGreen[50],
|
|
151
151
|
// comprobado,
|
|
152
|
-
semanticTextDark: t.grassGreen[
|
|
152
|
+
semanticTextDark: t.grassGreen[40],
|
|
153
153
|
// comprobado,
|
|
154
154
|
// Tone colors
|
|
155
155
|
toneOpacityLight: t.grassGreen[5],
|
|
@@ -227,9 +227,9 @@ const a = {
|
|
|
227
227
|
// comprobado,,
|
|
228
228
|
contrastText: t.marbleLight[30],
|
|
229
229
|
// comprobado,
|
|
230
|
-
semanticTextLight: t.turquiBlue[
|
|
230
|
+
semanticTextLight: t.turquiBlue[40],
|
|
231
231
|
// comprobado,
|
|
232
|
-
semanticTextDark: t.turquiBlue[
|
|
232
|
+
semanticTextDark: t.turquiBlue[30],
|
|
233
233
|
// comprobado,
|
|
234
234
|
// Tone colors
|
|
235
235
|
toneOpacityLight: t.turquiBlue[5],
|
|
@@ -307,9 +307,9 @@ const a = {
|
|
|
307
307
|
// comprobado,,
|
|
308
308
|
contrastText: t.marbleLight[30],
|
|
309
309
|
// comprobado,
|
|
310
|
-
semanticTextLight: t.brown[
|
|
310
|
+
semanticTextLight: t.brown[40],
|
|
311
311
|
// comprobado,
|
|
312
|
-
semanticTextDark: t.brown[
|
|
312
|
+
semanticTextDark: t.brown[30],
|
|
313
313
|
// comprobado,
|
|
314
314
|
// Tone colors
|
|
315
315
|
toneOpacityLight: t.brown[5],
|
package/theme/shadows.d.ts
CHANGED
package/theme/sizes/baseSizes.js
CHANGED
package/theme/sizes/pointerQr.js
CHANGED
|
@@ -1,38 +1,50 @@
|
|
|
1
1
|
import { P as a, a as e } from "./presetSizes.js";
|
|
2
|
-
const
|
|
2
|
+
const o = {
|
|
3
3
|
small: {
|
|
4
4
|
base: a.base.small,
|
|
5
5
|
action: a.action.small,
|
|
6
|
-
container: a.container.small
|
|
6
|
+
container: a.container.small,
|
|
7
|
+
box: a.box.small,
|
|
8
|
+
case: a.case.small
|
|
7
9
|
},
|
|
8
10
|
medium: {
|
|
9
11
|
base: a.base.medium,
|
|
10
12
|
action: a.action.medium,
|
|
11
|
-
container: a.container.medium
|
|
13
|
+
container: a.container.medium,
|
|
14
|
+
box: a.box.medium,
|
|
15
|
+
case: a.case.medium
|
|
12
16
|
},
|
|
13
17
|
large: {
|
|
14
18
|
base: a.base.large,
|
|
15
19
|
action: a.action.large,
|
|
16
|
-
container: a.container.large
|
|
20
|
+
container: a.container.large,
|
|
21
|
+
box: a.box.large,
|
|
22
|
+
case: a.case.large
|
|
17
23
|
}
|
|
18
|
-
},
|
|
24
|
+
}, c = {
|
|
19
25
|
small: {
|
|
20
26
|
base: e.base.small,
|
|
21
27
|
action: e.action.small,
|
|
22
|
-
container: e.container.small
|
|
28
|
+
container: e.container.small,
|
|
29
|
+
box: e.box.small,
|
|
30
|
+
case: e.case.small
|
|
23
31
|
},
|
|
24
32
|
medium: {
|
|
25
33
|
base: e.base.medium,
|
|
26
34
|
action: e.action.medium,
|
|
27
|
-
container: e.container.medium
|
|
35
|
+
container: e.container.medium,
|
|
36
|
+
box: e.box.medium,
|
|
37
|
+
case: e.case.medium
|
|
28
38
|
},
|
|
29
39
|
large: {
|
|
30
40
|
base: e.base.large,
|
|
31
41
|
action: e.action.large,
|
|
32
|
-
container: e.container.large
|
|
42
|
+
container: e.container.large,
|
|
43
|
+
box: e.box.large,
|
|
44
|
+
case: e.case.large
|
|
33
45
|
}
|
|
34
46
|
};
|
|
35
47
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
o as P,
|
|
49
|
+
c as a
|
|
38
50
|
};
|
|
@@ -14,6 +14,16 @@ const m = {
|
|
|
14
14
|
small: s.sp9,
|
|
15
15
|
medium: s.sp10,
|
|
16
16
|
large: s.sp11
|
|
17
|
+
},
|
|
18
|
+
box: {
|
|
19
|
+
small: s.sp7,
|
|
20
|
+
medium: s["sp7-5"],
|
|
21
|
+
large: s.sp8
|
|
22
|
+
},
|
|
23
|
+
case: {
|
|
24
|
+
small: s["sp5-5"],
|
|
25
|
+
medium: s.sp4,
|
|
26
|
+
large: s.sp6
|
|
17
27
|
}
|
|
18
28
|
}, p = {
|
|
19
29
|
base: {
|
|
@@ -30,6 +40,16 @@ const m = {
|
|
|
30
40
|
small: s.sp7,
|
|
31
41
|
medium: s.sp8,
|
|
32
42
|
large: s.sp9
|
|
43
|
+
},
|
|
44
|
+
box: {
|
|
45
|
+
small: s["sp6-5"],
|
|
46
|
+
medium: s.sp7,
|
|
47
|
+
large: s.sp8
|
|
48
|
+
},
|
|
49
|
+
case: {
|
|
50
|
+
small: s["sp4-5"],
|
|
51
|
+
medium: s.sp5,
|
|
52
|
+
large: s.sp6
|
|
33
53
|
}
|
|
34
54
|
};
|
|
35
55
|
export {
|
package/theme/sizes/types.d.ts
CHANGED
|
@@ -20,9 +20,13 @@ export interface BaseSpacings {
|
|
|
20
20
|
sp3: string;
|
|
21
21
|
'sp3-5': string;
|
|
22
22
|
sp4: string;
|
|
23
|
+
'sp4-5': string;
|
|
23
24
|
sp5: string;
|
|
25
|
+
'sp5-5': string;
|
|
24
26
|
sp6: string;
|
|
27
|
+
'sp6-5': string;
|
|
25
28
|
sp7: string;
|
|
29
|
+
'sp7-5': string;
|
|
26
30
|
sp8: string;
|
|
27
31
|
sp9: string;
|
|
28
32
|
sp10: string;
|
|
@@ -48,7 +52,7 @@ export type SizesValues = Record<Sizes, Record<SizesComponentsTypes, string>>;
|
|
|
48
52
|
* action: Es la clasificación de altura para componentes de tipo acción, los cuales son MenuItems, HeaderPopover, IconButton, Button, etc.
|
|
49
53
|
* container: Es la clasificación de altura para componentes de tipo contenedor, los cuales son DinamicFilter, DinamicSort, HeaderModule, Tabs, etc.
|
|
50
54
|
*/
|
|
51
|
-
export type SizesComponentsTypes = 'base' | 'action' | 'container';
|
|
55
|
+
export type SizesComponentsTypes = 'base' | 'action' | 'container' | 'box' | 'case';
|
|
52
56
|
/**
|
|
53
57
|
* Representa el conjunto de tamaños separados en categorías de componentes para la aplicación web.
|
|
54
58
|
* Se dividen en los siguientes tipos; base, action y container. Cada opción de categoría define
|
|
@@ -11,7 +11,7 @@ const l = {
|
|
|
11
11
|
scrollBar: "#5663763D",
|
|
12
12
|
gridHover: "#FCFCFC"
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, x = (n) => {
|
|
15
15
|
const r = f?.[n], e = g?.[n];
|
|
16
16
|
return {
|
|
17
17
|
light: {
|
|
@@ -64,7 +64,7 @@ const l = {
|
|
|
64
64
|
// Comprobado
|
|
65
65
|
},
|
|
66
66
|
contained: {
|
|
67
|
-
color:
|
|
67
|
+
color: r.semanticText,
|
|
68
68
|
// Comprobado
|
|
69
69
|
backgroundColor: r.enabledOpacity,
|
|
70
70
|
// Comprobado
|
|
@@ -171,7 +171,7 @@ const l = {
|
|
|
171
171
|
// Comprobado
|
|
172
172
|
},
|
|
173
173
|
contained: {
|
|
174
|
-
color:
|
|
174
|
+
color: e.semanticText,
|
|
175
175
|
// Comprobado
|
|
176
176
|
backgroundColor: e.enabledOpacity,
|
|
177
177
|
// Comprobado
|
|
@@ -232,5 +232,5 @@ const l = {
|
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
x as g
|
|
236
236
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { createTheme as
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as
|
|
4
|
-
import { S as
|
|
1
|
+
import { createTheme as g, alpha as a } from "@mui/material";
|
|
2
|
+
import { t as i } from "../theme/typographyOld.js";
|
|
3
|
+
import { c as o, s } from "../theme/shadows.js";
|
|
4
|
+
import { S as y } from "../theme/sizes/size.js";
|
|
5
5
|
import { g as m } from "./getPaletteByPreset.js";
|
|
6
|
-
import { g as
|
|
7
|
-
function u(
|
|
8
|
-
const
|
|
6
|
+
import { g as t } from "./getColorPresets.js";
|
|
7
|
+
function u(x, p) {
|
|
8
|
+
const r = g();
|
|
9
9
|
return {
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
...
|
|
10
|
+
...r,
|
|
11
|
+
...r.typography,
|
|
12
|
+
...i,
|
|
13
|
+
...s[x],
|
|
14
14
|
customShadows: {
|
|
15
|
-
primary:
|
|
16
|
-
0 2px 27px 2px ${
|
|
17
|
-
0 2px 27px 2px ${
|
|
18
|
-
|
|
15
|
+
primary: x === "light" ? `0 4px 8px -4px ${a(t(p)?.enabledLight, 0.12)},
|
|
16
|
+
0 2px 27px 2px ${a(t(p)?.enabledLight, 0.02)}` : `0 4px 8px -4px ${a(t(p)?.enabledDark, 0.12)},
|
|
17
|
+
0 2px 27px 2px ${a(t(p)?.enabledDark, 0.02)}`,
|
|
18
|
+
primary2: x === "light" ? `0px 2px 3px 0px ${a(t(p)?.hoverOpacityLight, 0.2)}` : `0px 2px 3px 0px ${a(t(p)?.hoverOpacityDark, 0.2)}`,
|
|
19
|
+
...o(x)
|
|
19
20
|
},
|
|
20
21
|
stretch: !0,
|
|
21
|
-
palette: { ...
|
|
22
|
-
typography: { ...
|
|
23
|
-
size:
|
|
22
|
+
palette: { ...r.palette, ...m(p)[x] },
|
|
23
|
+
typography: { ...r.typography, ...i },
|
|
24
|
+
size: y
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
export {
|