@m4l/graphics 7.2.6 → 7.2.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/graphics/src/components/GlobalStyles/index.tsx"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/graphics/src/components/GlobalStyles/index.tsx"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,wBAAgB,YAAY,qDA8H3B"}
|
|
@@ -1,20 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTheme as
|
|
1
|
+
import { jsx as o, Fragment as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme as e } from "@mui/material/styles";
|
|
3
3
|
import { GlobalStyles as i } from "@mui/material";
|
|
4
4
|
import { globalRemSize as r } from "@m4l/styles";
|
|
5
|
-
import { getDateRangePickerPopupGlobalStyles as
|
|
6
|
-
function
|
|
7
|
-
const t =
|
|
8
|
-
return /* @__PURE__ */
|
|
5
|
+
import { getDateRangePickerPopupGlobalStyles as n } from "./getDateRangePickerPopupGlobalStyles.js";
|
|
6
|
+
function d() {
|
|
7
|
+
const t = e();
|
|
8
|
+
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
|
|
9
9
|
i,
|
|
10
10
|
{
|
|
11
11
|
styles: {
|
|
12
|
-
...
|
|
12
|
+
...n(t),
|
|
13
|
+
// box-sizing is not inherited; apply to all elements so layout matches previous CssBaseline-like behavior
|
|
14
|
+
"*, *::before, *::after": {
|
|
15
|
+
boxSizing: "border-box"
|
|
16
|
+
},
|
|
13
17
|
body: {
|
|
14
18
|
fontFamily: 'Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif, Open Sans',
|
|
19
|
+
fontSize: t.typography.body1.fontSize,
|
|
20
|
+
lineHeight: t.typography.body1.lineHeight,
|
|
21
|
+
color: t.vars.palette.text.primary,
|
|
15
22
|
textRendering: "geometricPrecision",
|
|
16
23
|
width: "100%",
|
|
17
24
|
height: "100vh",
|
|
25
|
+
backgroundColor: t.vars.palette.background.default,
|
|
26
|
+
// Autofill: transparent background so it blends with wrapper (Chrome/Safari/Firefox)
|
|
27
|
+
"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus, & input:-webkit-autofill:active": {
|
|
28
|
+
WebkitTextFillColor: `${t.vars.palette.text.primary} !important`,
|
|
29
|
+
color: `${t.vars.palette.text.primary} !important`,
|
|
30
|
+
WebkitBoxShadow: "0 0 0 1000px transparent inset !important",
|
|
31
|
+
boxShadow: "0 0 0 1000px transparent inset !important",
|
|
32
|
+
transition: "background-color 5000s ease-in-out 0s",
|
|
33
|
+
borderRadius: t.vars.size.borderRadius["r1-5"],
|
|
34
|
+
animation: "autofillTextRepaint 0.0001s forwards"
|
|
35
|
+
},
|
|
36
|
+
// Firefox: transparent so wrapper background shows through
|
|
37
|
+
"& input:-moz-autofill, & input:-moz-autofill-preview": {
|
|
38
|
+
filter: "none",
|
|
39
|
+
boxShadow: "0 0 0 1000px transparent inset !important",
|
|
40
|
+
WebkitBoxShadow: "0 0 0 1000px transparent inset !important",
|
|
41
|
+
color: `${t.vars.palette.text.primary} !important`,
|
|
42
|
+
transition: "background-color 5000s ease-in-out 0s"
|
|
43
|
+
},
|
|
44
|
+
// Standard :autofill – transparent
|
|
45
|
+
"& input:autofill, & input:autofill:hover, & input:autofill:focus, & input:autofill:active": {
|
|
46
|
+
WebkitTextFillColor: `${t.vars.palette.text.primary} !important`,
|
|
47
|
+
color: `${t.vars.palette.text.primary} !important`,
|
|
48
|
+
boxShadow: "0 0 0 1000px transparent inset !important",
|
|
49
|
+
WebkitBoxShadow: "0 0 0 1000px transparent inset !important",
|
|
50
|
+
transition: "background-color 5000s ease-in-out 0s"
|
|
51
|
+
},
|
|
18
52
|
".rs-drawer .rs-drawer-dialog": {
|
|
19
53
|
backgroundColor: "transparent!important"
|
|
20
54
|
},
|
|
@@ -36,9 +70,6 @@ function b() {
|
|
|
36
70
|
backgroundColor: `${t.vars.palette.default.focusOpacity}!important`,
|
|
37
71
|
borderRadius: `${t.vars.size.borderRadius["r0-5"]}!important`
|
|
38
72
|
},
|
|
39
|
-
"input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active": {
|
|
40
|
-
color: t.vars.palette.text.primary
|
|
41
|
-
},
|
|
42
73
|
"& #root": {
|
|
43
74
|
width: "100%",
|
|
44
75
|
height: "100%"
|
|
@@ -86,5 +117,5 @@ function b() {
|
|
|
86
117
|
) });
|
|
87
118
|
}
|
|
88
119
|
export {
|
|
89
|
-
|
|
120
|
+
d as GlobalStyles
|
|
90
121
|
};
|