@m4l/graphics 7.1.1 → 7.1.2-beta.1
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,7 +1,7 @@
|
|
|
1
1
|
import { createStore as S } from "zustand";
|
|
2
2
|
import { devtools as c } from "zustand/middleware";
|
|
3
3
|
import { immer as p } from "zustand/middleware/immer";
|
|
4
|
-
import { getPaletteByPreset as a,
|
|
4
|
+
import { getPaletteByPreset as a, typographyOld as d, shadows as h, getColorPresets as u, createCustomShadows as f } from "@m4l/styles";
|
|
5
5
|
import { alpha as U } from "@mui/system";
|
|
6
6
|
import { d as s } from "./constants.js";
|
|
7
7
|
function g(r, o = "m4l") {
|
|
@@ -18,7 +18,7 @@ const n = (r) => {
|
|
|
18
18
|
const o = r.themeUserSettings || s, m = o.themeMode === "light", t = a(o.themeColor), e = m ? t.light : t.dark;
|
|
19
19
|
r.themeOptions = {
|
|
20
20
|
...r.themeOptions,
|
|
21
|
-
...
|
|
21
|
+
...d,
|
|
22
22
|
palette: {
|
|
23
23
|
...r.themeOptions?.palette ?? {},
|
|
24
24
|
...e
|
|
@@ -28,10 +28,10 @@ const n = (r) => {
|
|
|
28
28
|
shadows: m ? h.light : h.dark,
|
|
29
29
|
customShadows: {
|
|
30
30
|
primary: `0 8px 16px 0 ${U(
|
|
31
|
-
|
|
31
|
+
u(o.themeColor)?.main || "#fff",
|
|
32
32
|
0.2
|
|
33
33
|
)}`,
|
|
34
|
-
...
|
|
34
|
+
...f(o.themeMode)
|
|
35
35
|
},
|
|
36
36
|
stretch: o.themeStretch
|
|
37
37
|
}, g(r.themeOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/graphics",
|
|
3
|
-
"version": "7.1.1",
|
|
3
|
+
"version": "7.1.2-beta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "M4L Team*",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@m4l/core": "^2.0.0",
|
|
20
|
-
"@m4l/styles": "
|
|
20
|
+
"@m4l/styles": "7.1.29-beta.1",
|
|
21
21
|
"@mui/material": "5.16.7",
|
|
22
22
|
"@mui/x-date-pickers": "6.20.2",
|
|
23
23
|
"@types/react": "^18.0.0",
|