@m4l/graphics 1.0.3 → 1.0.4
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/components/GlobalStyle/{index.5c2f4861.js → index.b4909afd.js} +17 -11
- package/contexts/HostThemeContext/{index.97bd7c68.js → index.04ca22db.js} +1 -1
- package/contexts/{index.14a9154d.js → index.9c442496.js} +1 -1
- package/hooks/{index.a60674c8.js → index.8dcbe868.js} +2 -2
- package/hooks/useResponsive/{index.75bde930.js → index.45c21fff.js} +1 -1
- package/index.js +5 -5
- package/package.json +1 -1
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { useTheme as
|
|
1
|
+
import { useTheme as r } from "@mui/material/styles";
|
|
2
2
|
import { GlobalStyles as e } from "@mui/material";
|
|
3
|
-
import { globalRemSize as
|
|
3
|
+
import { globalRemSize as o } from "@m4l/styles";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
function p() {
|
|
6
|
-
const
|
|
6
|
+
const t = r();
|
|
7
7
|
return /* @__PURE__ */ a(e, {
|
|
8
8
|
styles: {
|
|
9
9
|
body: {
|
|
10
10
|
textRendering: "geometricPrecision",
|
|
11
11
|
width: "100%",
|
|
12
12
|
height: "100vh",
|
|
13
|
+
"input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active": {
|
|
14
|
+
backgroundClip: "text",
|
|
15
|
+
textFillColor: "#ffffff",
|
|
16
|
+
transition: "background-color 5000s ease-in-out 0s",
|
|
17
|
+
boxShadow: "inset 0 0 20px 20px #23232329"
|
|
18
|
+
},
|
|
13
19
|
"*::-webkit-scrollbar": {
|
|
14
20
|
width: "7px",
|
|
15
21
|
height: "7px",
|
|
@@ -24,7 +30,7 @@ function p() {
|
|
|
24
30
|
backgroundColor: "transparent"
|
|
25
31
|
},
|
|
26
32
|
"*::-webkit-scrollbar-thumb": {
|
|
27
|
-
background:
|
|
33
|
+
background: t.vars.palette.state.scrollBar,
|
|
28
34
|
borderRadius: "2px!important"
|
|
29
35
|
},
|
|
30
36
|
"& #root": {
|
|
@@ -40,9 +46,9 @@ function p() {
|
|
|
40
46
|
height: 2,
|
|
41
47
|
width: "100%",
|
|
42
48
|
position: "fixed",
|
|
43
|
-
zIndex:
|
|
44
|
-
backgroundColor:
|
|
45
|
-
boxShadow: `0 0 2px ${
|
|
49
|
+
zIndex: t.zIndex.snackbar,
|
|
50
|
+
backgroundColor: t.vars.palette.primary.main,
|
|
51
|
+
boxShadow: `0 0 2px ${t.vars.palette.primary.main}`
|
|
46
52
|
},
|
|
47
53
|
"& .peg": {
|
|
48
54
|
right: 0,
|
|
@@ -52,13 +58,13 @@ function p() {
|
|
|
52
58
|
display: "block",
|
|
53
59
|
position: "absolute",
|
|
54
60
|
transform: "rotate(3deg) translate(0px, -4px)",
|
|
55
|
-
boxShadow: `0 0 10px ${
|
|
61
|
+
boxShadow: `0 0 10px ${t.vars.palette.primary.main}, 0 0 5px ${t.vars.palette.primary.main}`
|
|
56
62
|
}
|
|
57
63
|
},
|
|
58
64
|
"& html": {
|
|
59
|
-
fontSize:
|
|
60
|
-
[
|
|
61
|
-
fontSize:
|
|
65
|
+
fontSize: o.desktop,
|
|
66
|
+
[t.breakpoints.down("sm")]: {
|
|
67
|
+
fontSize: o.mobile
|
|
62
68
|
}
|
|
63
69
|
}
|
|
64
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext as c, useMemo as a } from "react";
|
|
2
2
|
import { CssBaseline as h } from "@mui/material";
|
|
3
|
-
import { G as d } from "../../components/GlobalStyle/index.
|
|
3
|
+
import { G as d } from "../../components/GlobalStyle/index.b4909afd.js";
|
|
4
4
|
import { createTheme as p, experimental_extendTheme as f, Experimental_CssVarsProvider as x, StyledEngineProvider as T } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
6
6
|
const u = c(null);
|
|
@@ -4,7 +4,7 @@ import { createContext as d, useRef as p, useMemo as v, useLayoutEffect as f } f
|
|
|
4
4
|
import { c as u, d as R, i as g, l as h } from "../node_modules.9eeccca4.js";
|
|
5
5
|
import { jsx as x } from "react/jsx-runtime";
|
|
6
6
|
import "date-fns/locale/en-US";
|
|
7
|
-
import "./HostThemeContext/index.
|
|
7
|
+
import "./HostThemeContext/index.04ca22db.js";
|
|
8
8
|
const m = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, S = (c) => {
|
|
9
9
|
const a = {
|
|
10
10
|
...c
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useRef as r, useEffect as n, useState as f, useContext as i, useLayoutEffect as c } from "react";
|
|
2
|
-
import { H as m } from "../contexts/HostThemeContext/index.
|
|
2
|
+
import { H as m } from "../contexts/HostThemeContext/index.04ca22db.js";
|
|
3
3
|
import "../contexts/FormatterContext/index.92336f4c.js";
|
|
4
4
|
import "../contexts/LocalesContext/index.53f0b702.js";
|
|
5
|
-
import "../contexts/index.
|
|
5
|
+
import "../contexts/index.9c442496.js";
|
|
6
6
|
import "../node_modules.9eeccca4.js";
|
|
7
7
|
import "@m4l/styles";
|
|
8
8
|
function h() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
2
|
import { u as r } from "../../node_modules.9eeccca4.js";
|
|
3
|
-
import { R as n } from "../../contexts/index.
|
|
3
|
+
import { R as n } from "../../contexts/index.9c442496.js";
|
|
4
4
|
import { useResponsive as i } from "@m4l/styles";
|
|
5
5
|
function f(e, s) {
|
|
6
6
|
const o = t(n);
|
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { G as l } from "./components/GlobalStyle/index.
|
|
1
|
+
import { G as l } from "./components/GlobalStyle/index.b4909afd.js";
|
|
2
2
|
import { F as C, a as R } from "./contexts/FormatterContext/index.92336f4c.js";
|
|
3
3
|
import { L as c, a as F, g as L } from "./contexts/LocalesContext/index.53f0b702.js";
|
|
4
|
-
import { R as b, a as g } from "./contexts/index.
|
|
5
|
-
import { H, a as T } from "./contexts/HostThemeContext/index.
|
|
4
|
+
import { R as b, a as g } from "./contexts/index.9c442496.js";
|
|
5
|
+
import { H, a as T } from "./contexts/HostThemeContext/index.04ca22db.js";
|
|
6
6
|
import { u as k } from "./hooks/useFirstRender/index.1e9b02fb.js";
|
|
7
7
|
import { u as z } from "./hooks/useFormatter/index.57ac8cca.js";
|
|
8
|
-
import { b as I, u as M, a as O, c as y } from "./hooks/index.
|
|
8
|
+
import { b as I, u as M, a as O, c as y } from "./hooks/index.8dcbe868.js";
|
|
9
9
|
import { u as D } from "./hooks/useLocales/index.d5a80aff.js";
|
|
10
|
-
import { u as N, a as W } from "./hooks/useResponsive/index.
|
|
10
|
+
import { u as N, a as W } from "./hooks/useResponsive/index.45c21fff.js";
|
|
11
11
|
import { u as q } from "./hooks/useIsMobile/index.3de7c47a.js";
|
|
12
12
|
import { C as J, g as K } from "./utils/index.6909c662.js";
|
|
13
13
|
import "@mui/material/styles";
|