@m4l/graphics 7.2.1 → 7.2.2-BE20260202-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/components/GlobalStyles/getDateRangePickerPopupGlobalStyles.d.ts +299 -0
- package/components/GlobalStyles/getDateRangePickerPopupGlobalStyles.js +347 -0
- package/components/GlobalStyles/index.js +89 -64
- package/components/GlobalStyles/rsuiteStyles.min.js +4 -0
- package/package.json +1 -1
- package/utils/getContrastTextColor/getContrastTextColor.js +10 -6
|
@@ -1,74 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { GlobalStyles as
|
|
4
|
-
import { globalRemSize as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { jsxs as o, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTheme as i } from "@mui/material/styles";
|
|
3
|
+
import { GlobalStyles as s } from "@mui/material";
|
|
4
|
+
import { globalRemSize as r } from "@m4l/styles";
|
|
5
|
+
import { Global as l, css as n } from "@emotion/react";
|
|
6
|
+
import { r as p } from "./rsuiteStyles.min.js";
|
|
7
|
+
import { g as m } from "./getDateRangePickerPopupGlobalStyles.js";
|
|
8
|
+
function w() {
|
|
9
|
+
const t = i();
|
|
10
|
+
return /* @__PURE__ */ o(a, { children: [
|
|
11
|
+
/* @__PURE__ */ e(
|
|
12
|
+
l,
|
|
13
|
+
{
|
|
14
|
+
styles: n`
|
|
15
|
+
${p}
|
|
16
|
+
`
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
|
+
s,
|
|
21
|
+
{
|
|
22
|
+
styles: {
|
|
23
|
+
...m(t),
|
|
24
|
+
body: {
|
|
25
|
+
fontFamily: 'Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif, Open Sans',
|
|
26
|
+
textRendering: "geometricPrecision",
|
|
27
|
+
width: "100%",
|
|
28
|
+
height: "100vh",
|
|
29
|
+
".rs-drawer .rs-drawer-dialog": {
|
|
30
|
+
backgroundColor: "transparent!important"
|
|
31
|
+
},
|
|
32
|
+
"#rootIsolation": {
|
|
33
|
+
width: "100vw",
|
|
34
|
+
height: "100vh"
|
|
35
|
+
},
|
|
36
|
+
"*::-webkit-scrollbar": {
|
|
37
|
+
width: `${t.vars.size.baseSpacings.sp1}!important`,
|
|
38
|
+
height: `${t.vars.size.baseSpacings.sp1}!important`
|
|
39
|
+
},
|
|
40
|
+
"*::-webkit-scrollbar-track": {
|
|
41
|
+
backgroundColor: "transparent"
|
|
42
|
+
},
|
|
43
|
+
"*::-webkit-scrollbar-thumb": {
|
|
44
|
+
backgroundColor: `${t.vars.palette.default.focusOpacity}!important`,
|
|
45
|
+
borderRadius: `${t.vars.size.borderRadius["r0-5"]}!important`
|
|
46
|
+
},
|
|
47
|
+
"input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active": {
|
|
48
|
+
color: t.vars.palette.text.primary
|
|
49
|
+
},
|
|
50
|
+
"& #root": {
|
|
51
|
+
width: "100%",
|
|
52
|
+
height: "100%"
|
|
53
|
+
}
|
|
26
54
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
55
|
+
"#nprogress": {
|
|
56
|
+
pointerEvents: "none",
|
|
57
|
+
"& .bar": {
|
|
58
|
+
top: 0,
|
|
59
|
+
left: 0,
|
|
60
|
+
height: 2,
|
|
61
|
+
width: "100%",
|
|
62
|
+
position: "fixed",
|
|
63
|
+
zIndex: t.zIndex.snackbar,
|
|
64
|
+
backgroundColor: t.vars.palette.primary.main,
|
|
65
|
+
boxShadow: `0 0 2px ${t.vars.palette.primary.main}`
|
|
66
|
+
},
|
|
67
|
+
"& .peg": {
|
|
68
|
+
right: 0,
|
|
69
|
+
opacity: 1,
|
|
70
|
+
width: 100,
|
|
71
|
+
height: "100%",
|
|
72
|
+
display: "block",
|
|
73
|
+
position: "absolute",
|
|
74
|
+
transform: "rotate(3deg) translate(0px, -4px)",
|
|
75
|
+
boxShadow: `0 0 10px ${t.vars.palette.primary.main}, 0 0 5px ${t.vars.palette.primary.main}`
|
|
76
|
+
}
|
|
30
77
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
78
|
+
"& html": {
|
|
79
|
+
fontSize: r.desktop,
|
|
80
|
+
[t.breakpoints.down("sm")]: {
|
|
81
|
+
fontSize: r.mobile
|
|
82
|
+
}
|
|
33
83
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"#nprogress": {
|
|
40
|
-
pointerEvents: "none",
|
|
41
|
-
"& .bar": {
|
|
42
|
-
top: 0,
|
|
43
|
-
left: 0,
|
|
44
|
-
height: 2,
|
|
45
|
-
width: "100%",
|
|
46
|
-
position: "fixed",
|
|
47
|
-
zIndex: t.zIndex.snackbar,
|
|
48
|
-
backgroundColor: t.vars.palette.primary.main,
|
|
49
|
-
boxShadow: `0 0 2px ${t.vars.palette.primary.main}`
|
|
84
|
+
// Global styles for native tags html
|
|
85
|
+
img: {
|
|
86
|
+
width: "100%"
|
|
50
87
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
width: 100,
|
|
55
|
-
height: "100%",
|
|
56
|
-
display: "block",
|
|
57
|
-
position: "absolute",
|
|
58
|
-
transform: "rotate(3deg) translate(0px, -4px)",
|
|
59
|
-
boxShadow: `0 0 10px ${t.vars.palette.primary.main}, 0 0 5px ${t.vars.palette.primary.main}`
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"& html": {
|
|
63
|
-
fontSize: o.desktop,
|
|
64
|
-
[t.breakpoints.down("sm")]: {
|
|
65
|
-
fontSize: o.mobile
|
|
88
|
+
// Global styles for native tags h1, h2, h3, h4, h5, h6
|
|
89
|
+
"h1, h2, h3, h4, h5, h6, p": {
|
|
90
|
+
margin: "unset"
|
|
66
91
|
}
|
|
67
92
|
}
|
|
68
93
|
}
|
|
69
|
-
|
|
70
|
-
|
|
94
|
+
)
|
|
95
|
+
] });
|
|
71
96
|
}
|
|
72
97
|
export {
|
|
73
|
-
|
|
98
|
+
w as G
|
|
74
99
|
};
|