@m4l/styles 3.1.0 → 3.1.2
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 +2 -2
- package/package.json +1 -1
- package/theme/{defaultThemeOptions-BlJvKCE6.js → defaultThemeOptions-BayzDRnS.js} +9 -6
- package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +1 -0
- package/theme/overrides/M4LExtendedComponents/{index-Cf72RC_D.js → index-DTDh4xcv.js} +6 -1
- package/theme/overrides/{index-DrDgOdnk.js → index-SeuIH5J7.js} +1 -1
- package/types/augmentations.d.ts +150 -144
- package/vite-env.d.ts +3 -3
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-
|
|
2
|
+
import { d as p } from "./theme/defaultThemeOptions-BayzDRnS.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-
|
|
5
|
+
import { f as E } from "./theme/overrides/index-SeuIH5J7.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
|
@@ -2,19 +2,22 @@ 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
|
|
6
|
-
const
|
|
7
|
-
...
|
|
5
|
+
import { g as i, D as e } from "../utils/getColorPresets-CXZaM9oS.js";
|
|
6
|
+
const t = a(), f = {
|
|
7
|
+
...t,
|
|
8
8
|
typography: o,
|
|
9
|
+
generalSettings: {
|
|
10
|
+
isMobile: !1
|
|
11
|
+
},
|
|
9
12
|
palette: {
|
|
10
|
-
...
|
|
11
|
-
...p(
|
|
13
|
+
...t.palette,
|
|
14
|
+
...p(e).light,
|
|
12
15
|
mode: "light"
|
|
13
16
|
},
|
|
14
17
|
shape: { borderRadius: 8 },
|
|
15
18
|
shadows: r.dark,
|
|
16
19
|
customShadows: {
|
|
17
|
-
primary: `0 8px 16px 0 ${s(
|
|
20
|
+
primary: `0 8px 16px 0 ${s(i(e).main, 0.2)}`,
|
|
18
21
|
...m("dark")
|
|
19
22
|
},
|
|
20
23
|
stretch: !0
|
|
@@ -2987,7 +2987,12 @@ const i = (o) => ({
|
|
|
2987
2987
|
flexDirection: "column",
|
|
2988
2988
|
width: "100%",
|
|
2989
2989
|
height: "100%",
|
|
2990
|
-
overflow: "hidden"
|
|
2990
|
+
overflow: "hidden",
|
|
2991
|
+
...o.colorSchemes.finalTheme.generalSettings.isMobile ? {
|
|
2992
|
+
backgroundColor: "red!important"
|
|
2993
|
+
} : {
|
|
2994
|
+
backgroundColor: "blue!important"
|
|
2995
|
+
}
|
|
2991
2996
|
},
|
|
2992
2997
|
"& .M4LAreasViewer-windowHeader": {
|
|
2993
2998
|
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-
|
|
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";
|
|
4
4
|
function ta(a) {
|
|
5
5
|
return Object.assign(
|
|
6
6
|
s(a),
|
package/types/augmentations.d.ts
CHANGED
|
@@ -1,144 +1,150 @@
|
|
|
1
|
-
import { Breakpoints } from '@mui/material';
|
|
2
|
-
import { CssVarsTheme } from '@mui/material/styles';
|
|
3
|
-
|
|
4
|
-
import type { CustomShadowOptions } from '../theme';
|
|
5
|
-
|
|
6
|
-
declare module '@mui/material' {
|
|
7
|
-
interface Color {
|
|
8
|
-
0: string;
|
|
9
|
-
500_8: string;
|
|
10
|
-
500_12: string;
|
|
11
|
-
500_16: string;
|
|
12
|
-
500_24: string;
|
|
13
|
-
500_32: string;
|
|
14
|
-
500_48: string;
|
|
15
|
-
500_56: string;
|
|
16
|
-
500_80: string;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare module '@mui/material/styles' {
|
|
21
|
-
interface PaletteColor {
|
|
22
|
-
lighter?: string;
|
|
23
|
-
darker?: string;
|
|
24
|
-
active: string;
|
|
25
|
-
activeOpacity: string;
|
|
26
|
-
hover: string;
|
|
27
|
-
focus: string;
|
|
28
|
-
selected: string;
|
|
29
|
-
toneOpacity: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface SimplePaletteColorOptions {
|
|
33
|
-
lighter?: string;
|
|
34
|
-
darker?: string;
|
|
35
|
-
active: string;
|
|
36
|
-
activeOpacity: string;
|
|
37
|
-
hover: string;
|
|
38
|
-
focus: string;
|
|
39
|
-
selected: string;
|
|
40
|
-
toneOpacity: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface Palette {
|
|
44
|
-
mode: 'light' | 'dark';
|
|
45
|
-
secondary: never;
|
|
46
|
-
skeleton: { default: string; transition: string };
|
|
47
|
-
border: {
|
|
48
|
-
active: string;
|
|
49
|
-
selected: string;
|
|
50
|
-
default: string;
|
|
51
|
-
primary: string;
|
|
52
|
-
secondary: string;
|
|
53
|
-
disabled: string;
|
|
54
|
-
dense: string;
|
|
55
|
-
line: string;
|
|
56
|
-
};
|
|
57
|
-
general: {
|
|
58
|
-
scrollBar: string;
|
|
59
|
-
gridHover: string;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface PaletteOptions {
|
|
64
|
-
mode: 'light' | 'dark';
|
|
65
|
-
secondary: never;
|
|
66
|
-
skeleton: { default: string; transition: string };
|
|
67
|
-
border: {
|
|
68
|
-
active: string;
|
|
69
|
-
selected: string;
|
|
70
|
-
default: string;
|
|
71
|
-
primary: string;
|
|
72
|
-
secondary: string;
|
|
73
|
-
disabled: string;
|
|
74
|
-
dense: string;
|
|
75
|
-
line: string;
|
|
76
|
-
};
|
|
77
|
-
general: {
|
|
78
|
-
scrollBar: string;
|
|
79
|
-
gridHover: string;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface ColorSchemeOverrides {
|
|
84
|
-
finalTheme?: true;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface Theme extends CssVarsTheme {
|
|
88
|
-
stretch: boolean;
|
|
89
|
-
customShadows: CustomShadowOptions;
|
|
90
|
-
breakpoints: Breakpoints;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
1
|
+
import { Breakpoints } from '@mui/material';
|
|
2
|
+
import { CssVarsTheme } from '@mui/material/styles';
|
|
3
|
+
|
|
4
|
+
import type { CustomShadowOptions } from '../theme';
|
|
5
|
+
|
|
6
|
+
declare module '@mui/material' {
|
|
7
|
+
interface Color {
|
|
8
|
+
0: string;
|
|
9
|
+
500_8: string;
|
|
10
|
+
500_12: string;
|
|
11
|
+
500_16: string;
|
|
12
|
+
500_24: string;
|
|
13
|
+
500_32: string;
|
|
14
|
+
500_48: string;
|
|
15
|
+
500_56: string;
|
|
16
|
+
500_80: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare module '@mui/material/styles' {
|
|
21
|
+
interface PaletteColor {
|
|
22
|
+
lighter?: string;
|
|
23
|
+
darker?: string;
|
|
24
|
+
active: string;
|
|
25
|
+
activeOpacity: string;
|
|
26
|
+
hover: string;
|
|
27
|
+
focus: string;
|
|
28
|
+
selected: string;
|
|
29
|
+
toneOpacity: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface SimplePaletteColorOptions {
|
|
33
|
+
lighter?: string;
|
|
34
|
+
darker?: string;
|
|
35
|
+
active: string;
|
|
36
|
+
activeOpacity: string;
|
|
37
|
+
hover: string;
|
|
38
|
+
focus: string;
|
|
39
|
+
selected: string;
|
|
40
|
+
toneOpacity: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface Palette {
|
|
44
|
+
mode: 'light' | 'dark';
|
|
45
|
+
secondary: never;
|
|
46
|
+
skeleton: { default: string; transition: string };
|
|
47
|
+
border: {
|
|
48
|
+
active: string;
|
|
49
|
+
selected: string;
|
|
50
|
+
default: string;
|
|
51
|
+
primary: string;
|
|
52
|
+
secondary: string;
|
|
53
|
+
disabled: string;
|
|
54
|
+
dense: string;
|
|
55
|
+
line: string;
|
|
56
|
+
};
|
|
57
|
+
general: {
|
|
58
|
+
scrollBar: string;
|
|
59
|
+
gridHover: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface PaletteOptions {
|
|
64
|
+
mode: 'light' | 'dark';
|
|
65
|
+
secondary: never;
|
|
66
|
+
skeleton: { default: string; transition: string };
|
|
67
|
+
border: {
|
|
68
|
+
active: string;
|
|
69
|
+
selected: string;
|
|
70
|
+
default: string;
|
|
71
|
+
primary: string;
|
|
72
|
+
secondary: string;
|
|
73
|
+
disabled: string;
|
|
74
|
+
dense: string;
|
|
75
|
+
line: string;
|
|
76
|
+
};
|
|
77
|
+
general: {
|
|
78
|
+
scrollBar: string;
|
|
79
|
+
gridHover: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface ColorSchemeOverrides {
|
|
84
|
+
finalTheme?: true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface Theme extends CssVarsTheme {
|
|
88
|
+
stretch: boolean;
|
|
89
|
+
customShadows: CustomShadowOptions;
|
|
90
|
+
breakpoints: Breakpoints;
|
|
91
|
+
generalSettings: {
|
|
92
|
+
isMobile: boolean;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface ThemeVars {
|
|
97
|
+
customShadows: CustomShadowOptions;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface ColorSystem {
|
|
101
|
+
typography: TypographyVariants;
|
|
102
|
+
generalSettings: {
|
|
103
|
+
isMobile: boolean;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface TypeBackground {
|
|
108
|
+
default: string;
|
|
109
|
+
hover: string;
|
|
110
|
+
surface: string;
|
|
111
|
+
subtle: string;
|
|
112
|
+
main: string;
|
|
113
|
+
bold: string;
|
|
114
|
+
backdrop: string;
|
|
115
|
+
reverse: string;
|
|
116
|
+
header: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface TypographyVariants {
|
|
120
|
+
subtitle: Record<string, any>;
|
|
121
|
+
subtitleDens: Record<string, any>;
|
|
122
|
+
paragraph: Record<string, any>;
|
|
123
|
+
paragraphDens: Record<string, any>;
|
|
124
|
+
body: Record<string, any>;
|
|
125
|
+
bodyDens: Record<string, any>;
|
|
126
|
+
action: Record<string, any>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface TypographyVariantsOptions {
|
|
130
|
+
subtitle: React.CSSProperties;
|
|
131
|
+
subtitleDens: React.CSSProperties;
|
|
132
|
+
paragraph: React.CSSProperties;
|
|
133
|
+
paragraphDens: React.CSSProperties;
|
|
134
|
+
body: React.CSSProperties;
|
|
135
|
+
bodyDens: React.CSSProperties;
|
|
136
|
+
action: React.CSSProperties;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare module '@mui/material/Typography' {
|
|
141
|
+
interface TypographyPropsVariantOverrides {
|
|
142
|
+
subtitle: true;
|
|
143
|
+
subtitleDens: true;
|
|
144
|
+
paragraph: true;
|
|
145
|
+
paragraphDens: true;
|
|
146
|
+
body: true;
|
|
147
|
+
bodyDens: true;
|
|
148
|
+
action: true;
|
|
149
|
+
}
|
|
150
|
+
}
|
package/vite-env.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vitest/importMeta" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vitest" />
|
|
3
|
+
/// <reference types="vitest/importMeta" />
|