@m4l/styles 3.1.2 → 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,8 +1,8 @@
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
- import { f as E } from "./theme/overrides/index-SeuIH5J7.js";
5
+ import { f as E } from "./theme/overrides/index-DrDgOdnk.js";
6
6
  import { B as g, a as i, C as l, G as T, g as u, p as P } from "./theme/palette-DM0gXxA2.js";
7
7
  import { u as d } from "./utils/useResponsive-DaeQVwlH.js";
8
8
  import { D as A, d as L, g as B } from "./utils/getColorPresets-CXZaM9oS.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/styles",
3
- "version": "3.1.2",
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
@@ -60,7 +60,6 @@ export declare const M4LAreasViewer: (theme: Omit<Theme, 'palette' | 'applyStyle
60
60
  borderColor: string;
61
61
  };
62
62
  '& .M4LAreasViewer-windowRootContainer': {
63
- backgroundColor: string;
64
63
  display: string;
65
64
  flexDirection: string;
66
65
  width: string;
@@ -2987,12 +2987,7 @@ const i = (o) => ({
2987
2987
  flexDirection: "column",
2988
2988
  width: "100%",
2989
2989
  height: "100%",
2990
- overflow: "hidden",
2991
- ...o.colorSchemes.finalTheme.generalSettings.isMobile ? {
2992
- backgroundColor: "red!important"
2993
- } : {
2994
- backgroundColor: "blue!important"
2995
- }
2990
+ overflow: "hidden"
2996
2991
  },
2997
2992
  "& .M4LAreasViewer-windowHeader": {
2998
2993
  display: "flex",
@@ -1,6 +1,6 @@
1
1
  import { F as s, C as o, M as r, L, I as M, a as n, R as i, B as p, b as l, T as c, P as d, S as u, c as g, d as B, A as F, e as P, D as A, f as T, g as b, h as C, i as S, j as y, k as I, l as R, m as v, n as H, o as k, p as D, q as f, r as x, s as w, t as G, u as V, v as j, w as E, x as N, y as O, z as q } from "./MUIComponents/index-XoLdmZP6.js";
2
2
  import { M as z, a as U, b as J, c as K, d as Q, e as W, f as X, g as Y, h as Z } from "./M4LRHFComponents/index-BRZVeOM5.js";
3
- import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index-DTDh4xcv.js";
3
+ import { M as _, a as $, b as t, c as m, d as e, e as h, f as aa, g as sa, h as oa, i as ra, j as La, k as Ma, l as na, m as ia, n as pa, o as la, p as ca, q as da, r as ua, s as ga, t as Ba, u as Fa, v as Pa, w as Aa, x as Ta, y as ba, z as Ca, A as Sa, B as ya, C as Ia, D as Ra, E as va, F as Ha, G as ka, H as Da, I as fa, J as xa, K as wa, L as Ga, N as Va, O as ja, P as Ea, Q as Na, R as Oa, S as qa, T as za, U as Ua, V as Ja, W as Ka, X as Qa, Y as Wa, Z as Xa, _ as Ya } from "./M4LExtendedComponents/index-Cf72RC_D.js";
4
4
  function ta(a) {
5
5
  return Object.assign(
6
6
  s(a),
@@ -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 {