@m4l/styles 0.0.13 → 0.0.15
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/config.5405b46b.js +16 -0
- package/index.js +39 -3684
- package/package.json +4 -3
- package/theme/defaultThemeOptions.364b28b6.js +30 -0
- package/theme/index.cd1bedc8.js +7 -0
- package/theme/overrides/M4LExtendedComponents/M4LAreasAdmin.d.ts +306 -2
- package/theme/overrides/M4LExtendedComponents/M4LAreasViewer.d.ts +148 -1
- package/theme/overrides/M4LExtendedComponents/{DynamicFilter.d.ts → M4LDynamicFilter.d.ts} +45 -38
- package/theme/overrides/M4LExtendedComponents/M4LIconButton.d.ts +12 -0
- package/theme/overrides/M4LExtendedComponents/M4LPopover.d.ts +1 -18
- package/theme/overrides/M4LExtendedComponents/M4LSideBar.d.ts +274 -4
- package/theme/overrides/M4LExtendedComponents/index.9ef37d1d.js +1712 -0
- package/theme/overrides/M4LRHFComponents/index.5f690e33.js +350 -0
- package/theme/overrides/MUIComponents/index.56660771.js +1354 -0
- package/theme/overrides/index.19dec027.js +70 -0
- package/theme/palette.4b477f9b.js +354 -0
- package/theme/shadows.b2f38616.js +69 -0
- package/theme/typography.1db0276b.js +124 -0
- package/utils/getColorPresets.f3113d85.js +70 -0
- package/utils/getColorState.456150fd.js +136 -0
- package/utils/getFontValue.88831637.js +37 -0
- package/utils/index.d.ts +1 -0
- package/utils/useResponsive.2c45e8e0.js +16 -0
- package/utils/useResponsive.d.ts +7 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { alpha as a } from "@mui/system";
|
|
2
|
+
import "../theme/defaultThemeOptions.364b28b6.js";
|
|
3
|
+
import "../theme/shadows.b2f38616.js";
|
|
4
|
+
import { P as e, S as r } from "../theme/palette.4b477f9b.js";
|
|
5
|
+
import "../theme/typography.1db0276b.js";
|
|
6
|
+
import "@mui/material";
|
|
7
|
+
import "@mui/material/styles";
|
|
8
|
+
const g = (u, l) => {
|
|
9
|
+
let t = {};
|
|
10
|
+
switch (u) {
|
|
11
|
+
case "patronus":
|
|
12
|
+
t = {
|
|
13
|
+
light: {
|
|
14
|
+
active12: a(e?.patronusBlue[50], 0.12),
|
|
15
|
+
active: e?.patronusBlue[50],
|
|
16
|
+
focus: e?.patronusBlue[70],
|
|
17
|
+
hover: e?.patronusBlue[60],
|
|
18
|
+
default: a(e?.coolGrey[70], 0.04),
|
|
19
|
+
...r
|
|
20
|
+
},
|
|
21
|
+
dark: {
|
|
22
|
+
active12: a(e?.patronusBlue[50], 0.12),
|
|
23
|
+
active: e?.patronusBlue[50],
|
|
24
|
+
focus: e?.patronusBlue[30],
|
|
25
|
+
hover: e?.patronusBlue[40],
|
|
26
|
+
default: a(e?.marbleLight[10], 0.04),
|
|
27
|
+
...r
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
break;
|
|
31
|
+
case "turqui":
|
|
32
|
+
t = {
|
|
33
|
+
light: {
|
|
34
|
+
active12: a(e?.turquiBlue[50], 0.12),
|
|
35
|
+
active: e?.turquiBlue[50],
|
|
36
|
+
focus: e?.turquiBlue[70],
|
|
37
|
+
hover: e?.turquiBlue[60],
|
|
38
|
+
default: a(e?.coolGrey[70], 0.12),
|
|
39
|
+
...r
|
|
40
|
+
},
|
|
41
|
+
dark: {
|
|
42
|
+
active12: a(e?.turquiBlue[50], 0.12),
|
|
43
|
+
active: e?.turquiBlue[50],
|
|
44
|
+
focus: e?.turquiBlue[30],
|
|
45
|
+
hover: e?.turquiBlue[40],
|
|
46
|
+
default: a(e?.marbleLight[10], 0.12),
|
|
47
|
+
...r
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
break;
|
|
51
|
+
case "grass":
|
|
52
|
+
t = {
|
|
53
|
+
light: {
|
|
54
|
+
active12: a(e?.grassGreen[50], 0.12),
|
|
55
|
+
active: e?.grassGreen[50],
|
|
56
|
+
focus: e?.grassGreen[70],
|
|
57
|
+
hover: e?.grassGreen[60],
|
|
58
|
+
default: a(e?.coolGrey[70], 0.12),
|
|
59
|
+
...r
|
|
60
|
+
},
|
|
61
|
+
dark: {
|
|
62
|
+
active12: a(e?.grassGreen[50], 0.12),
|
|
63
|
+
active: e?.grassGreen[50],
|
|
64
|
+
focus: e?.grassGreen[30],
|
|
65
|
+
hover: e?.grassGreen[40],
|
|
66
|
+
default: a(e?.marbleLight[10], 0.12),
|
|
67
|
+
...r
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
break;
|
|
71
|
+
case "candy":
|
|
72
|
+
t = {
|
|
73
|
+
light: {
|
|
74
|
+
active12: a(e?.candyRed[50], 0.12),
|
|
75
|
+
active: e?.candyRed[50],
|
|
76
|
+
focus: e?.candyRed[70],
|
|
77
|
+
hover: e?.candyRed[60],
|
|
78
|
+
default: a(e?.coolGrey[70], 0.12),
|
|
79
|
+
...r
|
|
80
|
+
},
|
|
81
|
+
dark: {
|
|
82
|
+
active12: a(e?.candyRed[50], 0.12),
|
|
83
|
+
active: e?.candyRed[50],
|
|
84
|
+
focus: e?.candyRed[30],
|
|
85
|
+
hover: e?.candyRed[40],
|
|
86
|
+
default: a(e?.marbleLight[10], 0.12),
|
|
87
|
+
...r
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
break;
|
|
91
|
+
case "blaze":
|
|
92
|
+
t = {
|
|
93
|
+
light: {
|
|
94
|
+
active12: a(e?.blazeOrange[50], 0.12),
|
|
95
|
+
active: e?.blazeOrange[50],
|
|
96
|
+
focus: e?.blazeOrange[70],
|
|
97
|
+
hover: e?.blazeOrange[60],
|
|
98
|
+
default: a(e?.coolGrey[70], 0.12),
|
|
99
|
+
...r
|
|
100
|
+
},
|
|
101
|
+
dark: {
|
|
102
|
+
active12: a(e?.blazeOrange[50], 0.12),
|
|
103
|
+
active: e?.blazeOrange[50],
|
|
104
|
+
focus: e?.blazeOrange[30],
|
|
105
|
+
hover: e?.blazeOrange[40],
|
|
106
|
+
default: a(e?.marbleLight[10], 0.12),
|
|
107
|
+
...r
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
t = {
|
|
113
|
+
light: {
|
|
114
|
+
active12: a(e?.turquiBlue[50], 0.12),
|
|
115
|
+
active: e?.turquiBlue[50],
|
|
116
|
+
focus: e?.turquiBlue[70],
|
|
117
|
+
hover: e?.turquiBlue[60],
|
|
118
|
+
default: a(e?.coolGrey[70], 0.12),
|
|
119
|
+
...r
|
|
120
|
+
},
|
|
121
|
+
dark: {
|
|
122
|
+
active12: a(e?.turquiBlue[50], 0.12),
|
|
123
|
+
active: e?.turquiBlue[50],
|
|
124
|
+
focus: e?.turquiBlue[30],
|
|
125
|
+
hover: e?.turquiBlue[40],
|
|
126
|
+
default: a(e?.marbleLight[10], 0.12),
|
|
127
|
+
...r
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
return l === "light" ? { ...t.light } : { ...t.dark };
|
|
133
|
+
};
|
|
134
|
+
export {
|
|
135
|
+
g
|
|
136
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useTheme as h } from "@mui/material/styles";
|
|
2
|
+
import { u as m } from "./useResponsive.2c45e8e0.js";
|
|
3
|
+
function f(e) {
|
|
4
|
+
return Math.round(parseFloat(e) * 16);
|
|
5
|
+
}
|
|
6
|
+
function d(e) {
|
|
7
|
+
return `${e / 16}rem`;
|
|
8
|
+
}
|
|
9
|
+
function l({ sm: e, md: t, lg: o }) {
|
|
10
|
+
return {
|
|
11
|
+
"@media (min-width:0px)": {
|
|
12
|
+
fontSize: `${e}px`
|
|
13
|
+
},
|
|
14
|
+
"@media (min-width:900px)": {
|
|
15
|
+
fontSize: `${t}px`
|
|
16
|
+
},
|
|
17
|
+
"@media (min-width:1200px)": {
|
|
18
|
+
fontSize: `${o}px`
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function g() {
|
|
23
|
+
return [...h().breakpoints.keys].reverse().reduce((o, n) => {
|
|
24
|
+
const s = m("up", n);
|
|
25
|
+
return !o && s ? n : o;
|
|
26
|
+
}, null) || "xs";
|
|
27
|
+
}
|
|
28
|
+
function S(e) {
|
|
29
|
+
const t = h(), o = g(), n = t.breakpoints.up(o === "xl" ? "lg" : o), i = (e === "h1" || e === "h2" || e === "h3" || e === "h4" || e === "h5" || e === "h6") && t.typography[e][n] ? t.typography[e][n] : t.typography[e], p = f(i.fontSize), r = Number(t.typography[e].lineHeight) * p, { fontWeight: u, letterSpacing: c } = t.typography[e];
|
|
30
|
+
return { fontSize: p, lineHeight: r, fontWeight: u, letterSpacing: c };
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
f as a,
|
|
34
|
+
S as g,
|
|
35
|
+
d as p,
|
|
36
|
+
l as r
|
|
37
|
+
};
|
package/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useTheme as u } from "@mui/material/styles";
|
|
2
|
+
import o from "@mui/material/useMediaQuery";
|
|
3
|
+
function b(e, t, i, r) {
|
|
4
|
+
const n = u(), s = o(n.breakpoints.up(t)), p = o(n.breakpoints.down(t)), a = o(n.breakpoints.between(i, r)), m = o(n.breakpoints.only(t));
|
|
5
|
+
if (e === "up")
|
|
6
|
+
return s;
|
|
7
|
+
if (e === "down")
|
|
8
|
+
return p;
|
|
9
|
+
if (e === "between")
|
|
10
|
+
return a;
|
|
11
|
+
if (e === "only")
|
|
12
|
+
return m;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
b as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
declare type Query = 'up' | 'down' | 'between' | 'only';
|
|
3
|
+
declare type Key = Breakpoint | number;
|
|
4
|
+
declare type Start = Breakpoint | number;
|
|
5
|
+
declare type End = Breakpoint | number;
|
|
6
|
+
export declare function useResponsive(query: Query, key?: Key, start?: Start, end?: End): boolean | undefined;
|
|
7
|
+
export {};
|