@m4l/styles 6.1.0 → 6.1.1
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 +1 -1
- package/package.json +1 -1
- package/theme/{index-BZonCMpk.js → index-Y2nvv8zQ.js} +61 -61
- package/theme/sizes/types.d.ts +27 -27
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
|
|
2
|
-
import { O as p, g as m } from "./theme/index-
|
|
2
|
+
import { O as p, g as m } from "./theme/index-Y2nvv8zQ.js";
|
|
3
3
|
import { c as O, s as x } from "./theme/shadows-Cek_1mpN.js";
|
|
4
4
|
import { t as g } from "./theme/typography-BsOO459U.js";
|
|
5
5
|
import { f as S } from "./theme/overrides/index-DLjfQaz-.js";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createTheme as
|
|
2
|
-
import { t as
|
|
3
|
-
import { s as
|
|
4
|
-
import { C as
|
|
5
|
-
import { g as
|
|
1
|
+
import { createTheme as h, alpha as O } from "@mui/material/styles";
|
|
2
|
+
import { t as p } from "./typography-BsOO459U.js";
|
|
3
|
+
import { s as R, c as _ } from "./shadows-Cek_1mpN.js";
|
|
4
|
+
import { C as i, D as l, B as s, P as m, a as e, S as d, G as n, b as c, c as x, d as b, e as f } from "./palette-voCQl3kP.js";
|
|
5
|
+
import { g as S } from "../utils/getColorPresets-DgmrCj5l.js";
|
|
6
6
|
const o = {
|
|
7
7
|
light: {
|
|
8
8
|
scrollBar: "#5663763D",
|
|
@@ -12,17 +12,17 @@ const o = {
|
|
|
12
12
|
scrollBar: "#5663765D",
|
|
13
13
|
gridHover: "#282E2E"
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
const t =
|
|
15
|
+
}, L = (a) => {
|
|
16
|
+
const t = b?.[a], u = f?.[a];
|
|
17
17
|
return {
|
|
18
18
|
light: {
|
|
19
19
|
mode: "light",
|
|
20
|
-
common:
|
|
20
|
+
common: i,
|
|
21
21
|
primary: {
|
|
22
22
|
...t
|
|
23
23
|
},
|
|
24
24
|
default: {
|
|
25
|
-
...
|
|
25
|
+
...l,
|
|
26
26
|
focusVisible: t.focusVisible,
|
|
27
27
|
contrastText: s.onyx[20]
|
|
28
28
|
},
|
|
@@ -36,17 +36,17 @@ const o = {
|
|
|
36
36
|
default: s.marbleLight[10],
|
|
37
37
|
neutral: s.marbleLight[30],
|
|
38
38
|
surface: s.marbleLight[50],
|
|
39
|
-
hover:
|
|
39
|
+
hover: l.hover,
|
|
40
40
|
//por compatibilidad de mui
|
|
41
41
|
paper: ""
|
|
42
42
|
},
|
|
43
43
|
border: {
|
|
44
|
-
main:
|
|
44
|
+
main: m[a]?.borderMainLight,
|
|
45
45
|
default: e.oxford[40],
|
|
46
46
|
secondary: e.oxford[30],
|
|
47
47
|
dens: e.oxford[60],
|
|
48
48
|
disabled: e.oxford[10],
|
|
49
|
-
error:
|
|
49
|
+
error: d.error.main
|
|
50
50
|
},
|
|
51
51
|
general: {
|
|
52
52
|
scrollBar: o.light.scrollBar,
|
|
@@ -57,17 +57,17 @@ const o = {
|
|
|
57
57
|
default: e.oxford[10],
|
|
58
58
|
transition: e.oxford[20]
|
|
59
59
|
},
|
|
60
|
-
...
|
|
60
|
+
...d
|
|
61
61
|
},
|
|
62
62
|
dark: {
|
|
63
63
|
mode: "dark",
|
|
64
|
-
common:
|
|
64
|
+
common: i,
|
|
65
65
|
primary: {
|
|
66
66
|
...t
|
|
67
67
|
},
|
|
68
68
|
default: {
|
|
69
69
|
...c,
|
|
70
|
-
focusVisible:
|
|
70
|
+
focusVisible: u?.focusVisible,
|
|
71
71
|
contrastText: s.marbleLight[30]
|
|
72
72
|
},
|
|
73
73
|
text: {
|
|
@@ -85,12 +85,12 @@ const o = {
|
|
|
85
85
|
paper: ""
|
|
86
86
|
},
|
|
87
87
|
border: {
|
|
88
|
-
main:
|
|
88
|
+
main: m[a]?.borderMainDark,
|
|
89
89
|
default: e.mint[50],
|
|
90
90
|
secondary: e.mint[40],
|
|
91
91
|
dens: e.mint[60],
|
|
92
92
|
disabled: e.mint[20],
|
|
93
|
-
error:
|
|
93
|
+
error: x.error.main
|
|
94
94
|
},
|
|
95
95
|
general: {
|
|
96
96
|
scrollBar: o.light.scrollBar,
|
|
@@ -101,38 +101,38 @@ const o = {
|
|
|
101
101
|
default: e.mint[20],
|
|
102
102
|
transition: e.mint[40]
|
|
103
103
|
},
|
|
104
|
-
...
|
|
104
|
+
...x
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
},
|
|
108
|
-
r0:
|
|
109
|
-
"r0.5":
|
|
110
|
-
r1:
|
|
111
|
-
"r1.5":
|
|
112
|
-
r2:
|
|
113
|
-
r3:
|
|
114
|
-
r4:
|
|
107
|
+
}, E = {
|
|
108
|
+
r0: "0px",
|
|
109
|
+
"r0.5": "2px",
|
|
110
|
+
r1: "4px",
|
|
111
|
+
"r1.5": "6px",
|
|
112
|
+
r2: "8px",
|
|
113
|
+
r3: "12px",
|
|
114
|
+
r4: "16px"
|
|
115
115
|
}, r = {
|
|
116
|
-
sp0:
|
|
117
|
-
"sp0.5":
|
|
118
|
-
sp1:
|
|
119
|
-
sp2:
|
|
120
|
-
sp3:
|
|
121
|
-
"sp3.5":
|
|
122
|
-
sp4:
|
|
123
|
-
sp5:
|
|
124
|
-
sp6:
|
|
125
|
-
sp7:
|
|
126
|
-
sp8:
|
|
127
|
-
sp9:
|
|
128
|
-
sp10:
|
|
129
|
-
"sp10.5":
|
|
130
|
-
sp11:
|
|
131
|
-
sp12:
|
|
132
|
-
sp13:
|
|
133
|
-
sp14:
|
|
134
|
-
"sp14.5":
|
|
135
|
-
},
|
|
116
|
+
sp0: "0px",
|
|
117
|
+
"sp0.5": "2px",
|
|
118
|
+
sp1: "4px",
|
|
119
|
+
sp2: "8px",
|
|
120
|
+
sp3: "12px",
|
|
121
|
+
"sp3.5": "14px",
|
|
122
|
+
sp4: "16px",
|
|
123
|
+
sp5: "20px",
|
|
124
|
+
sp6: "24px",
|
|
125
|
+
sp7: "28px",
|
|
126
|
+
sp8: "32px",
|
|
127
|
+
sp9: "36px",
|
|
128
|
+
sp10: "40px",
|
|
129
|
+
"sp10.5": "42px",
|
|
130
|
+
sp11: "44px",
|
|
131
|
+
sp12: "48px",
|
|
132
|
+
sp13: "52px",
|
|
133
|
+
sp14: "56px",
|
|
134
|
+
"sp14.5": "58px"
|
|
135
|
+
}, y = {
|
|
136
136
|
base: {
|
|
137
137
|
small: r["sp3.5"],
|
|
138
138
|
medium: r.sp4,
|
|
@@ -148,7 +148,7 @@ const o = {
|
|
|
148
148
|
medium: r.sp8,
|
|
149
149
|
large: r.sp9
|
|
150
150
|
}
|
|
151
|
-
},
|
|
151
|
+
}, C = {
|
|
152
152
|
base: {
|
|
153
153
|
small: r.sp5,
|
|
154
154
|
medium: r.sp6,
|
|
@@ -164,33 +164,33 @@ const o = {
|
|
|
164
164
|
medium: r.sp10,
|
|
165
165
|
large: r.sp11
|
|
166
166
|
}
|
|
167
|
-
},
|
|
167
|
+
}, T = {
|
|
168
168
|
desktop: {
|
|
169
|
-
...
|
|
169
|
+
...y
|
|
170
170
|
},
|
|
171
171
|
mobile: {
|
|
172
|
-
...
|
|
172
|
+
...C
|
|
173
173
|
},
|
|
174
174
|
borderRadius: {
|
|
175
|
-
...
|
|
175
|
+
...E
|
|
176
176
|
}
|
|
177
|
-
}, A =
|
|
178
|
-
...
|
|
179
|
-
...
|
|
180
|
-
...
|
|
177
|
+
}, A = h(), g = L("patronus"), G = {
|
|
178
|
+
...p,
|
|
179
|
+
...R.light,
|
|
180
|
+
...g,
|
|
181
181
|
customShadows: {
|
|
182
|
-
primary: `0 8px 16px 0 ${
|
|
183
|
-
...
|
|
182
|
+
primary: `0 8px 16px 0 ${O(S("patronus").main, 0.2)}`,
|
|
183
|
+
..._("light")
|
|
184
184
|
},
|
|
185
185
|
stretch: !0,
|
|
186
186
|
palette: {
|
|
187
187
|
...A.palette,
|
|
188
|
-
...
|
|
188
|
+
...g.light
|
|
189
189
|
},
|
|
190
|
-
typography:
|
|
191
|
-
size:
|
|
190
|
+
typography: p,
|
|
191
|
+
size: T
|
|
192
192
|
};
|
|
193
193
|
export {
|
|
194
194
|
G as O,
|
|
195
|
-
|
|
195
|
+
L as g
|
|
196
196
|
};
|
package/theme/sizes/types.d.ts
CHANGED
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
* componentes de la aplicación web.
|
|
4
4
|
*/
|
|
5
5
|
export interface BaseBorderRadius {
|
|
6
|
-
'r0':
|
|
7
|
-
'r0.5':
|
|
8
|
-
'r1':
|
|
9
|
-
'r1.5':
|
|
10
|
-
'r2':
|
|
11
|
-
'r3':
|
|
12
|
-
'r4':
|
|
6
|
+
'r0': string;
|
|
7
|
+
'r0.5': string;
|
|
8
|
+
'r1': string;
|
|
9
|
+
'r1.5': string;
|
|
10
|
+
'r2': string;
|
|
11
|
+
'r3': string;
|
|
12
|
+
'r4': string;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Conjunto de valores predeterminados utilizados para definir el tamaño y espaciados en los componentes de la aplicación web.
|
|
16
16
|
*/
|
|
17
17
|
export interface BaseSpacings {
|
|
18
|
-
'sp0':
|
|
19
|
-
'sp0.5':
|
|
20
|
-
'sp1':
|
|
21
|
-
'sp2':
|
|
22
|
-
'sp3':
|
|
23
|
-
'sp3.5':
|
|
24
|
-
'sp4':
|
|
25
|
-
'sp5':
|
|
26
|
-
'sp6':
|
|
27
|
-
'sp7':
|
|
28
|
-
'sp8':
|
|
29
|
-
'sp9':
|
|
30
|
-
'sp10':
|
|
31
|
-
'sp10.5':
|
|
32
|
-
'sp11':
|
|
33
|
-
'sp12':
|
|
34
|
-
'sp13':
|
|
35
|
-
'sp14':
|
|
36
|
-
'sp14.5':
|
|
18
|
+
'sp0': string;
|
|
19
|
+
'sp0.5': string;
|
|
20
|
+
'sp1': string;
|
|
21
|
+
'sp2': string;
|
|
22
|
+
'sp3': string;
|
|
23
|
+
'sp3.5': string;
|
|
24
|
+
'sp4': string;
|
|
25
|
+
'sp5': string;
|
|
26
|
+
'sp6': string;
|
|
27
|
+
'sp7': string;
|
|
28
|
+
'sp8': string;
|
|
29
|
+
'sp9': string;
|
|
30
|
+
'sp10': string;
|
|
31
|
+
'sp10.5': string;
|
|
32
|
+
'sp11': string;
|
|
33
|
+
'sp12': string;
|
|
34
|
+
'sp13': string;
|
|
35
|
+
'sp14': string;
|
|
36
|
+
'sp14.5': string;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* type usado para tipar las props sizes de los componentes o sus derivaciones
|
|
@@ -43,7 +43,7 @@ export declare type Sizes = 'small' | 'medium' | 'large';
|
|
|
43
43
|
* Representa al conjunto de valores de tamaño que tienen en cuenta la variación de tamaño en la aplicación web.
|
|
44
44
|
* Puede ser small, medium y large.
|
|
45
45
|
*/
|
|
46
|
-
export declare type SizesValues = Record<Sizes,
|
|
46
|
+
export declare type SizesValues = Record<Sizes, string>;
|
|
47
47
|
/**
|
|
48
48
|
* Representa a los conjuntos de valores que utilizan los desarroladores para definir diferentes categorías de componentes en tamaños y espacios.
|
|
49
49
|
* base: Es la clasificación de altura para componentes de tipo general, los cuales no son de categoría de acción ni de categoría contenedora.
|