@m4l/styles 6.2.1 → 6.3.0
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
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-DjzBD6sn.js";
|
|
3
3
|
import { c as O, s as x } from "./theme/shadows-BTb924yW.js";
|
|
4
4
|
import { t as g } from "./theme/typography-BSiavZtl.js";
|
|
5
5
|
import { f as S } from "./theme/overrides/index-Bc-JdivL.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 x, alpha as b } from "@mui/material/styles";
|
|
2
|
+
import { T as O, t as n } from "./typography-BSiavZtl.js";
|
|
3
|
+
import { s as h, c as R } from "./shadows-BTb924yW.js";
|
|
4
|
+
import { C as c, D as d, B as r, P as m, a as e, S as a, G as u, b as f, c as t, d as S, e as _ } from "./palette-C5yYre7Z.js";
|
|
5
|
+
import { g as E } from "../utils/getColorPresets-CJ_S_BFb.js";
|
|
6
6
|
const p = {
|
|
7
7
|
light: {
|
|
8
8
|
scrollBar: "#5663763D",
|
|
@@ -12,17 +12,17 @@ const p = {
|
|
|
12
12
|
scrollBar: "#5663765D",
|
|
13
13
|
gridHover: "#282E2E"
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
const o =
|
|
15
|
+
}, y = (l) => {
|
|
16
|
+
const o = S?.[l], i = _?.[l];
|
|
17
17
|
return {
|
|
18
18
|
light: {
|
|
19
19
|
mode: "light",
|
|
20
|
-
common:
|
|
20
|
+
common: c,
|
|
21
21
|
primary: {
|
|
22
22
|
...o
|
|
23
23
|
},
|
|
24
24
|
default: {
|
|
25
|
-
...
|
|
25
|
+
...d,
|
|
26
26
|
focusVisible: o.focusVisible,
|
|
27
27
|
contrastText: r.onyx[20]
|
|
28
28
|
},
|
|
@@ -36,12 +36,12 @@ const p = {
|
|
|
36
36
|
default: r.marbleLight[10],
|
|
37
37
|
neutral: r.marbleLight[30],
|
|
38
38
|
surface: r.marbleLight[50],
|
|
39
|
-
hover:
|
|
39
|
+
hover: d.hover,
|
|
40
40
|
//por compatibilidad de mui
|
|
41
41
|
paper: ""
|
|
42
42
|
},
|
|
43
43
|
border: {
|
|
44
|
-
main:
|
|
44
|
+
main: m[l]?.borderMainLight,
|
|
45
45
|
default: e.oxford[40],
|
|
46
46
|
secondary: e.oxford[30],
|
|
47
47
|
dens: e.oxford[60],
|
|
@@ -76,7 +76,7 @@ const p = {
|
|
|
76
76
|
},
|
|
77
77
|
dark: {
|
|
78
78
|
mode: "dark",
|
|
79
|
-
common:
|
|
79
|
+
common: c,
|
|
80
80
|
primary: {
|
|
81
81
|
...i
|
|
82
82
|
},
|
|
@@ -100,7 +100,7 @@ const p = {
|
|
|
100
100
|
paper: ""
|
|
101
101
|
},
|
|
102
102
|
border: {
|
|
103
|
-
main:
|
|
103
|
+
main: m[l]?.borderMainDark,
|
|
104
104
|
default: e.mint[50],
|
|
105
105
|
secondary: e.mint[40],
|
|
106
106
|
dens: e.mint[60],
|
|
@@ -134,7 +134,10 @@ const p = {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
},
|
|
137
|
+
}, L = {
|
|
138
|
+
actionInput: "1.3px solid",
|
|
139
|
+
container: "1px solid"
|
|
140
|
+
}, T = {
|
|
138
141
|
r0: "0px",
|
|
139
142
|
"r0.5": "2px",
|
|
140
143
|
r1: "4px",
|
|
@@ -178,7 +181,7 @@ const p = {
|
|
|
178
181
|
medium: s.sp8,
|
|
179
182
|
large: s.sp9
|
|
180
183
|
}
|
|
181
|
-
},
|
|
184
|
+
}, V = {
|
|
182
185
|
base: {
|
|
183
186
|
small: s.sp5,
|
|
184
187
|
medium: s.sp6,
|
|
@@ -194,34 +197,37 @@ const p = {
|
|
|
194
197
|
medium: s.sp10,
|
|
195
198
|
large: s.sp11
|
|
196
199
|
}
|
|
197
|
-
},
|
|
200
|
+
}, A = {
|
|
198
201
|
desktop: {
|
|
199
202
|
...C
|
|
200
203
|
},
|
|
201
204
|
mobile: {
|
|
202
|
-
...
|
|
205
|
+
...V
|
|
203
206
|
},
|
|
204
207
|
borderRadius: {
|
|
205
|
-
...
|
|
208
|
+
...T
|
|
206
209
|
},
|
|
207
|
-
typography:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
typography: O,
|
|
211
|
+
borderStroke: {
|
|
212
|
+
...L
|
|
213
|
+
}
|
|
214
|
+
}, P = x(), g = y("patronus"), k = {
|
|
215
|
+
...n,
|
|
216
|
+
...h.light,
|
|
211
217
|
...g,
|
|
212
218
|
customShadows: {
|
|
213
|
-
primary: `0 8px 16px 0 ${
|
|
219
|
+
primary: `0 8px 16px 0 ${b(E("patronus").main, 0.2)}`,
|
|
214
220
|
...R("light")
|
|
215
221
|
},
|
|
216
222
|
stretch: !0,
|
|
217
223
|
palette: {
|
|
218
|
-
...
|
|
224
|
+
...P.palette,
|
|
219
225
|
...g.light
|
|
220
226
|
},
|
|
221
|
-
typography:
|
|
222
|
-
size:
|
|
227
|
+
typography: n,
|
|
228
|
+
size: A
|
|
223
229
|
};
|
|
224
230
|
export {
|
|
225
|
-
|
|
226
|
-
|
|
231
|
+
k as O,
|
|
232
|
+
y as g
|
|
227
233
|
};
|
package/theme/sizes/types.d.ts
CHANGED
|
@@ -59,9 +59,12 @@ export declare type SizesComponentsTypes = 'base' | 'action' | 'container';
|
|
|
59
59
|
*/
|
|
60
60
|
export declare type PointerQrSizes = Record<SizesComponentsTypes, SizesValues>;
|
|
61
61
|
/**
|
|
62
|
-
* Representa las opciones de
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
* Representa las opciones de grosor para los bordes de los componentes de la aplicación web.
|
|
63
|
+
*/
|
|
64
|
+
export interface BaseBorderStroke {
|
|
65
|
+
'actionInput': string;
|
|
66
|
+
'container': string;
|
|
67
|
+
}
|
|
65
68
|
/**
|
|
66
69
|
* Representa la coleccción completa de tamaños y espacios en la aplicación, contiene valores para
|
|
67
70
|
* uso de dispositivo móvil, escritorio, borders y valores base para ser usados por el desarrolador
|
|
@@ -72,4 +75,5 @@ export interface Size {
|
|
|
72
75
|
desktop: PointerQrSizes;
|
|
73
76
|
borderRadius: BaseBorderRadius;
|
|
74
77
|
typography: Typography;
|
|
78
|
+
borderStroke: BaseBorderStroke;
|
|
75
79
|
}
|