@m4l/graphics 7.2.1 → 7.2.2
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
1
|
+
import { jsx as e, Fragment as o } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme as r } from "@mui/material/styles";
|
|
3
3
|
import { GlobalStyles as a } from "@mui/material";
|
|
4
|
-
import { globalRemSize as
|
|
5
|
-
function
|
|
4
|
+
import { globalRemSize as i } from "@m4l/styles";
|
|
5
|
+
function h() {
|
|
6
6
|
const t = r();
|
|
7
|
-
return /* @__PURE__ */ e(
|
|
7
|
+
return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
8
8
|
a,
|
|
9
9
|
{
|
|
10
10
|
styles: {
|
|
@@ -60,15 +60,23 @@ function b() {
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"& html": {
|
|
63
|
-
fontSize:
|
|
63
|
+
fontSize: i.desktop,
|
|
64
64
|
[t.breakpoints.down("sm")]: {
|
|
65
|
-
fontSize:
|
|
65
|
+
fontSize: i.mobile
|
|
66
66
|
}
|
|
67
|
+
},
|
|
68
|
+
// Global styles for native tags html
|
|
69
|
+
img: {
|
|
70
|
+
width: "100%"
|
|
71
|
+
},
|
|
72
|
+
// Global styles for native tags h1, h2, h3, h4, h5, h6
|
|
73
|
+
"h1, h2, h3, h4, h5, h6, p": {
|
|
74
|
+
margin: "unset"
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
) });
|
|
71
79
|
}
|
|
72
80
|
export {
|
|
73
|
-
|
|
81
|
+
h as G
|
|
74
82
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
function u(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const e = /* @__PURE__ */ new Map();
|
|
2
|
+
function u(r, n = !0) {
|
|
3
|
+
try {
|
|
4
|
+
if (n && e.has(r))
|
|
5
|
+
return e.get(r);
|
|
6
|
+
const t = r.replace("#", ""), s = t.length === 3 ? t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : t, c = parseInt(s.substr(0, 2), 16) * 299, a = parseInt(s.substr(2, 2), 16) * 587, f = parseInt(s.substr(4, 2), 16) * 114, o = c + a + f > 128e3 ? "#000000" : "#ffffff";
|
|
7
|
+
return n && e.set(r, o), o;
|
|
8
|
+
} catch {
|
|
9
|
+
return "#000000";
|
|
10
|
+
}
|
|
7
11
|
}
|
|
8
12
|
export {
|
|
9
13
|
u as g
|