@m4l/styles 7.1.14 → 7.1.18
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/styles",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.18",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "m4l team",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"*"
|
|
35
35
|
],
|
|
36
36
|
"source": "./index.js",
|
|
37
|
-
"main": "./index.js",
|
|
38
37
|
"module": "./index.js",
|
|
39
38
|
"types": "./index.d.ts",
|
|
40
39
|
"type": "module",
|
|
@@ -43,5 +42,10 @@
|
|
|
43
42
|
"node": ">=12.0.0"
|
|
44
43
|
},
|
|
45
44
|
"packageManager": "yarn@4.5.0",
|
|
46
|
-
"private": false
|
|
45
|
+
"private": false,
|
|
46
|
+
"exports": {
|
|
47
|
+
".": {
|
|
48
|
+
"import": "./index.js"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
47
51
|
}
|
package/theme/typography.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare const typography: {
|
|
|
22
22
|
readonly fontWeightRegular: 400;
|
|
23
23
|
readonly fontWeightMedium: 600;
|
|
24
24
|
readonly fontWeightBold: 700;
|
|
25
|
+
readonly fontSize: 14;
|
|
26
|
+
readonly fontWeightLight: 300;
|
|
27
|
+
readonly htmlFontSize: 16;
|
|
28
|
+
readonly pxToRem: (size: number) => string;
|
|
25
29
|
readonly h1: {
|
|
26
30
|
readonly '@media (min-width:0px)': {
|
|
27
31
|
fontSize: string;
|
|
@@ -238,8 +242,4 @@ export declare const typography: {
|
|
|
238
242
|
readonly fontWeight: 600;
|
|
239
243
|
readonly lineHeight: "16px";
|
|
240
244
|
};
|
|
241
|
-
readonly fontSize: number;
|
|
242
|
-
readonly fontWeightLight: React.CSSProperties["fontWeight"];
|
|
243
|
-
readonly htmlFontSize: number;
|
|
244
|
-
readonly pxToRem: (px: number) => string;
|
|
245
245
|
};
|
package/theme/typography.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { createTheme as i } from "@mui/material";
|
|
2
1
|
import { a as e, p as t } from "../utils/getFontValue.js";
|
|
3
|
-
const n = "Inter, Segoe UI, Poppins, sans-serif",
|
|
4
|
-
...
|
|
2
|
+
const n = "Inter, Segoe UI, Poppins, sans-serif", o = {
|
|
3
|
+
// ...baseTheme.typography,
|
|
5
4
|
fontFamily: n,
|
|
6
5
|
fontWeightRegular: 400,
|
|
7
6
|
fontWeightMedium: 600,
|
|
8
7
|
fontWeightBold: 700,
|
|
8
|
+
fontSize: 14,
|
|
9
|
+
fontWeightLight: 300,
|
|
10
|
+
htmlFontSize: 16,
|
|
11
|
+
pxToRem: (i) => `${i / 16}rem`,
|
|
9
12
|
/* Definindo en Patronus */
|
|
10
13
|
h1: {
|
|
11
14
|
fontWeight: 600,
|
|
@@ -130,5 +133,5 @@ const n = "Inter, Segoe UI, Poppins, sans-serif", g = i(), l = {
|
|
|
130
133
|
}
|
|
131
134
|
};
|
|
132
135
|
export {
|
|
133
|
-
|
|
136
|
+
o as t
|
|
134
137
|
};
|
package/types/augmentations.d.ts
CHANGED
|
@@ -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";
|
|
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
|
}
|