@m4l/graphics 1.0.10 → 2.0.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/contexts/HostThemeContext/{index.02e36f38.js → index.89c85eb6.js} +16 -16
- package/contexts/{index.955e2da6.js → index.43eb2431.js} +1 -1
- package/hooks/{index.91cf59db.js → index.a56c80bc.js} +3 -3
- package/hooks/useIsMobile/{index.028b5710.js → index.a6493a85.js} +1 -1
- package/hooks/useResponsive/{index.d09000d7.js → index.24a3087b.js} +2 -2
- package/index.js +6 -6
- package/package.json +2 -2
- /package/{node_modules.7cdb697c.js → node_modules.f4ae204b.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createContext as c, useMemo as
|
|
2
|
-
import { CssBaseline as
|
|
1
|
+
import { createContext as c, useMemo as a } from "react";
|
|
2
|
+
import { CssBaseline as h } from "@mui/material";
|
|
3
3
|
import { G as d } from "../../components/GlobalStyle/index.b7393a44.js";
|
|
4
|
-
import { createTheme as p, experimental_extendTheme as x, Experimental_CssVarsProvider as f, StyledEngineProvider as
|
|
4
|
+
import { createTheme as p, experimental_extendTheme as x, Experimental_CssVarsProvider as f, StyledEngineProvider as u } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
6
|
-
const
|
|
6
|
+
const T = c(null);
|
|
7
7
|
function H(m) {
|
|
8
8
|
const {
|
|
9
9
|
children: i,
|
|
10
|
-
hostThemeOptions:
|
|
11
|
-
fnComponentsOverrides:
|
|
12
|
-
} = m,
|
|
10
|
+
hostThemeOptions: o,
|
|
11
|
+
fnComponentsOverrides: n
|
|
12
|
+
} = m, l = a(() => {
|
|
13
13
|
const e = p({
|
|
14
|
-
...
|
|
14
|
+
...o
|
|
15
15
|
}), r = x({
|
|
16
16
|
cssVarPrefix: "m4l",
|
|
17
17
|
colorSchemes: {
|
|
@@ -20,18 +20,18 @@ function H(m) {
|
|
|
20
20
|
dark: e
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
return r.components =
|
|
23
|
+
return r.components = n(r), r;
|
|
24
24
|
}, []);
|
|
25
25
|
return /* @__PURE__ */ s(f, {
|
|
26
|
-
theme:
|
|
27
|
-
children: [/* @__PURE__ */ t(d, {}), /* @__PURE__ */ t(
|
|
26
|
+
theme: l,
|
|
27
|
+
children: [/* @__PURE__ */ t(d, {}), /* @__PURE__ */ t(T.Provider, {
|
|
28
28
|
value: {
|
|
29
|
-
hostThemeOptions:
|
|
30
|
-
fnComponentsOverrides:
|
|
29
|
+
hostThemeOptions: o,
|
|
30
|
+
fnComponentsOverrides: n
|
|
31
31
|
},
|
|
32
|
-
children: /* @__PURE__ */ s(
|
|
32
|
+
children: /* @__PURE__ */ s(u, {
|
|
33
33
|
injectFirst: !0,
|
|
34
|
-
children: [/* @__PURE__ */ t(
|
|
34
|
+
children: [/* @__PURE__ */ t(h, {
|
|
35
35
|
enableColorScheme: !0
|
|
36
36
|
}), i]
|
|
37
37
|
})
|
|
@@ -39,6 +39,6 @@ function H(m) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
T as H,
|
|
43
43
|
H as a
|
|
44
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext as f, useRef as T, useMemo as k, useLayoutEffect as y, useEffect as b } from "react";
|
|
2
|
-
import { c as v, d as R, i as P, l as E } from "../node_modules.
|
|
2
|
+
import { c as v, d as R, i as P, l as E } from "../node_modules.f4ae204b.js";
|
|
3
3
|
import { jsx as x } from "react/jsx-runtime";
|
|
4
4
|
import { useNetwork as M, useLocalStorageWithListener as w } from "@m4l/core";
|
|
5
5
|
import { getColorPresets as m, getColorState as d, typography as L, palette as S, SECONDARY as A, COMMON as N, ERROR as D, WARNING as z, INFO as B, SUCCESS as $, shadows as p, createCustomShadows as j, defaultThemeOptions as W, defaultPreset as _, colorPresets as F } from "@m4l/styles";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef as n, useEffect as r, useState as i, useContext as u, useLayoutEffect as c } from "react";
|
|
2
|
-
import { H as m } from "../contexts/HostThemeContext/index.
|
|
3
|
-
import { u as a } from "../node_modules.
|
|
4
|
-
import { T as l } from "../contexts/index.
|
|
2
|
+
import { H as m } from "../contexts/HostThemeContext/index.89c85eb6.js";
|
|
3
|
+
import { u as a } from "../node_modules.f4ae204b.js";
|
|
4
|
+
import { T as l } from "../contexts/index.43eb2431.js";
|
|
5
5
|
function S() {
|
|
6
6
|
const e = n(!0);
|
|
7
7
|
return r(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useEffect as o } from "react";
|
|
2
|
-
import { t as s } from "../../node_modules.
|
|
2
|
+
import { t as s } from "../../node_modules.f4ae204b.js";
|
|
3
3
|
const t = () => typeof navigator > "u" ? !1 : /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), l = () => {
|
|
4
4
|
const [i, r] = n(t());
|
|
5
5
|
return o(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
|
-
import { u as r } from "../../node_modules.
|
|
3
|
-
import { R as n } from "../../contexts/index.
|
|
2
|
+
import { u as r } from "../../node_modules.f4ae204b.js";
|
|
3
|
+
import { R as n } from "../../contexts/index.43eb2431.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,14 +1,14 @@
|
|
|
1
1
|
import { G as l } from "./components/GlobalStyle/index.b7393a44.js";
|
|
2
2
|
import { L as C, a as T, g } from "./contexts/LocalesContext/index.53f0b702.js";
|
|
3
3
|
import { F as R, a as S } from "./contexts/FormatterContext/index.92336f4c.js";
|
|
4
|
-
import { R as F, a as P, T as b, b as L, d as H } from "./contexts/index.
|
|
5
|
-
import { H as w, a as z } from "./contexts/HostThemeContext/index.
|
|
4
|
+
import { R as F, a as P, T as b, b as L, d as H } from "./contexts/index.43eb2431.js";
|
|
5
|
+
import { H as w, a as z } from "./contexts/HostThemeContext/index.89c85eb6.js";
|
|
6
6
|
import { u as I } from "./hooks/useFirstRender/index.1e9b02fb.js";
|
|
7
7
|
import { u as O } from "./hooks/useFormatter/index.57ac8cca.js";
|
|
8
|
-
import { b as A, u as D, a as E, c as N, d as W } from "./hooks/index.
|
|
8
|
+
import { b as A, u as D, a as E, c as N, d as W } from "./hooks/index.a56c80bc.js";
|
|
9
9
|
import { u as q } from "./hooks/useLocales/index.d5a80aff.js";
|
|
10
|
-
import { u as J, a as K } from "./hooks/useResponsive/index.
|
|
11
|
-
import { u as U } from "./hooks/useIsMobile/index.
|
|
10
|
+
import { u as J, a as K } from "./hooks/useResponsive/index.24a3087b.js";
|
|
11
|
+
import { u as U } from "./hooks/useIsMobile/index.a6493a85.js";
|
|
12
12
|
import { C as X, g as Y } from "./utils/index.6909c662.js";
|
|
13
13
|
import "@mui/material/styles";
|
|
14
14
|
import "@mui/material";
|
|
@@ -19,7 +19,7 @@ import "@mui/x-date-pickers/AdapterDateFns";
|
|
|
19
19
|
import "@mui/x-date-pickers";
|
|
20
20
|
import "@m4l/core";
|
|
21
21
|
import "date-fns/locale/en-US";
|
|
22
|
-
import "./node_modules.
|
|
22
|
+
import "./node_modules.f4ae204b.js";
|
|
23
23
|
import "./commonjs.e3daa2e5.js";
|
|
24
24
|
import "@mui/system";
|
|
25
25
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/graphics",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "M4L Team*",
|
|
6
6
|
"dependencies": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
15
15
|
"react": "^17.0.0 || ^18.0.0",
|
|
16
|
-
"react-toastify": "
|
|
16
|
+
"react-toastify": "10.0.5",
|
|
17
17
|
"lodash.clonedeep": "^4.5.0",
|
|
18
18
|
"lodash.debounce": "^4.0.8",
|
|
19
19
|
"lodash.throttle": "^4.1.1"
|
|
File without changes
|