@m4l/styles 3.1.3 → 3.1.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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { D as o, g as a, m as r } from "./config-B8bZIPuH.js";
2
- import { d as p } from "./theme/defaultThemeOptions-BayzDRnS.js";
2
+ import { d as p } from "./theme/defaultThemeOptions-BlJvKCE6.js";
3
3
  import { c as f, s as O } from "./theme/shadows-GTYqExFA.js";
4
4
  import { t as n } from "./theme/typography-BsOO459U.js";
5
5
  import { f as E } from "./theme/overrides/index-DrDgOdnk.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "license": "UNLICENSED",
5
5
  "author": "m4l team",
6
6
  "dependencies": {
@@ -2,22 +2,19 @@ import { createTheme as a, alpha as s } from "@mui/material/styles";
2
2
  import { t as o } from "./typography-BsOO459U.js";
3
3
  import { s as r, c as m } from "./shadows-GTYqExFA.js";
4
4
  import { g as p } from "./palette-DM0gXxA2.js";
5
- import { g as i, D as e } from "../utils/getColorPresets-CXZaM9oS.js";
6
- const t = a(), f = {
7
- ...t,
5
+ import { g as h, D as t } from "../utils/getColorPresets-CXZaM9oS.js";
6
+ const e = a(), f = {
7
+ ...e,
8
8
  typography: o,
9
- generalSettings: {
10
- isMobile: !1
11
- },
12
9
  palette: {
13
- ...t.palette,
14
- ...p(e).light,
10
+ ...e.palette,
11
+ ...p(t).light,
15
12
  mode: "light"
16
13
  },
17
14
  shape: { borderRadius: 8 },
18
15
  shadows: r.dark,
19
16
  customShadows: {
20
- primary: `0 8px 16px 0 ${s(i(e).main, 0.2)}`,
17
+ primary: `0 8px 16px 0 ${s(h(t).main, 0.2)}`,
21
18
  ...m("dark")
22
19
  },
23
20
  stretch: !0
@@ -1,5 +1,4 @@
1
1
  import { Breakpoints } from '@mui/material';
2
- import { CssVarsTheme } from '@mui/material/styles';
3
2
 
4
3
  import type { CustomShadowOptions } from '../theme';
5
4
 
@@ -84,10 +83,19 @@ declare module '@mui/material/styles' {
84
83
  finalTheme?: true;
85
84
  }
86
85
 
86
+ interface CssVarsTheme {
87
+ generalSettings: {
88
+ isMobile: boolean;
89
+ };
90
+ }
91
+
87
92
  interface Theme extends CssVarsTheme {
88
93
  stretch: boolean;
89
94
  customShadows: CustomShadowOptions;
90
95
  breakpoints: Breakpoints;
96
+ }
97
+
98
+ interface CssVarsThemeOptions {
91
99
  generalSettings: {
92
100
  isMobile: boolean;
93
101
  };
@@ -99,9 +107,6 @@ declare module '@mui/material/styles' {
99
107
 
100
108
  interface ColorSystem {
101
109
  typography: TypographyVariants;
102
- generalSettings: {
103
- isMobile: boolean;
104
- };
105
110
  }
106
111
 
107
112
  interface TypeBackground {