@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 i } from "react/jsx-runtime";
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 o } from "@m4l/styles";
5
- function b() {
4
+ import { globalRemSize as i } from "@m4l/styles";
5
+ function h() {
6
6
  const t = r();
7
- return /* @__PURE__ */ e(i, { children: /* @__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: o.desktop,
63
+ fontSize: i.desktop,
64
64
  [t.breakpoints.down("sm")]: {
65
- fontSize: o.mobile
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
- b as G
81
+ h as G
74
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team*",
6
6
  "type": "module",
@@ -1,9 +1,13 @@
1
- const r = /* @__PURE__ */ new Map();
2
- function u(s, e = !0) {
3
- if (e && r.has(s))
4
- return r.get(s);
5
- const t = s.replace("#", ""), n = t.length === 3 ? t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : t, c = parseInt(n.substr(0, 2), 16) * 299, f = parseInt(n.substr(2, 2), 16) * 587, a = parseInt(n.substr(4, 2), 16) * 114, o = c + f + a > 128e3 ? "#000000" : "#ffffff";
6
- return e && r.set(s, o), o;
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