@m4l/graphics 7.2.6-beta-hotfix-686-m4l-components-sidebar-initial-width.0 → 7.2.6

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.
@@ -67,7 +67,7 @@ export declare function getDateRangePickerPopupGlobalStyles(theme: ExtendedTheme
67
67
  color: string;
68
68
  };
69
69
  };
70
- '& .rs-calendar:first-child': {
70
+ '& .rs-calendar:first-of-type': {
71
71
  borderColor: string;
72
72
  };
73
73
  '& .rs-calendar-body': {
@@ -54,7 +54,7 @@ function b(r) {
54
54
  }
55
55
  },
56
56
  // calendar start
57
- "& .rs-calendar:first-child": {
57
+ "& .rs-calendar:first-of-type": {
58
58
  borderColor: r.vars.palette.border.disabled
59
59
  },
60
60
  // calendar body
@@ -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,qDA8H3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/graphics/src/components/GlobalStyles/index.tsx"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,wBAAgB,YAAY,qDAgG3B"}
@@ -1,54 +1,20 @@
1
- import { jsx as o, Fragment as a } from "@emotion/react/jsx-runtime";
2
- import { useTheme as e } from "@mui/material/styles";
1
+ import { jsx as e, Fragment as o } from "@emotion/react/jsx-runtime";
2
+ import { useTheme as a } 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 n } from "./getDateRangePickerPopupGlobalStyles.js";
6
- function d() {
7
- const t = e();
8
- return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
5
+ import { getDateRangePickerPopupGlobalStyles as s } from "./getDateRangePickerPopupGlobalStyles.js";
6
+ function b() {
7
+ const t = a();
8
+ return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
9
9
  i,
10
10
  {
11
11
  styles: {
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
- },
12
+ ...s(t),
17
13
  body: {
18
14
  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,
22
15
  textRendering: "geometricPrecision",
23
16
  width: "100%",
24
17
  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
- },
52
18
  ".rs-drawer .rs-drawer-dialog": {
53
19
  backgroundColor: "transparent!important"
54
20
  },
@@ -70,6 +36,9 @@ function d() {
70
36
  backgroundColor: `${t.vars.palette.default.focusOpacity}!important`,
71
37
  borderRadius: `${t.vars.size.borderRadius["r0-5"]}!important`
72
38
  },
39
+ "input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active": {
40
+ color: t.vars.palette.text.primary
41
+ },
73
42
  "& #root": {
74
43
  width: "100%",
75
44
  height: "100%"
@@ -117,5 +86,5 @@ function d() {
117
86
  ) });
118
87
  }
119
88
  export {
120
- d as GlobalStyles
89
+ b as GlobalStyles
121
90
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "7.2.6-beta-hotfix-686-m4l-components-sidebar-initial-width.0",
3
+ "version": "7.2.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1 +1 @@
1
- {"version":3,"file":"getContrastTextColor.d.ts","sourceRoot":"","sources":["../../../../../../packages/graphics/src/utils/getContrastTextColor/getContrastTextColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQ9C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,UAAO,GAAG,SAAS,CA2B3E"}
1
+ {"version":3,"file":"getContrastTextColor.d.ts","sourceRoot":"","sources":["../../../../../../packages/graphics/src/utils/getContrastTextColor/getContrastTextColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQ9C;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,UAAO,GAAG,SAAS,CA6B3E"}
@@ -1,14 +1,17 @@
1
- const e = /* @__PURE__ */ new Map();
2
- function a(r, n = !0) {
1
+ const c = /* @__PURE__ */ new Map();
2
+ function l(r, n = !0) {
3
3
  try {
4
- if (n && e.has(r))
5
- return e.get(r);
6
- const t = r.replace("#", ""), s = t.length === 3 ? t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : t, c = parseInt(s.substr(0, 2), 16) * 299, f = parseInt(s.substr(2, 2), 16) * 587, u = parseInt(s.substr(4, 2), 16) * 114, o = c + f + u > 128e3 ? "#000000" : "#ffffff";
7
- return n && e.set(r, o), o;
4
+ if (n) {
5
+ const o = c.get(r);
6
+ if (o !== void 0)
7
+ return o;
8
+ }
9
+ const t = r.replace("#", ""), e = t.length === 3 ? t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : t, f = parseInt(e.substr(0, 2), 16) * 299, u = parseInt(e.substr(2, 2), 16) * 587, a = parseInt(e.substr(4, 2), 16) * 114, s = f + u + a > 128e3 ? "#000000" : "#ffffff";
10
+ return n && c.set(r, s), s;
8
11
  } catch {
9
12
  return "#000000";
10
13
  }
11
14
  }
12
15
  export {
13
- a as getContrastTextColor
16
+ l as getContrastTextColor
14
17
  };