@m4l/graphics 7.2.2-BE20260202-2 → 7.2.2-BE20260205-4

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,11 +1,30 @@
1
1
  import { Theme } from '@mui/material/styles';
2
+ /**
3
+ * Tipo extendido del Theme de MUI que incluye las propiedades personalizadas del tema de M4L
4
+ */
5
+ export type ExtendedTheme = Theme & {
6
+ vars: {
7
+ size: {
8
+ [key: string]: {
9
+ [key: string]: {
10
+ [key: string]: string | number;
11
+ };
12
+ };
13
+ };
14
+ palette: Record<string, any>;
15
+ customShadows: Record<string, any>;
16
+ };
17
+ generalSettings: {
18
+ isMobile: boolean;
19
+ };
20
+ };
2
21
  /**
3
22
  * Genera los estilos globales para el popup del DateRangePicker de rsuite.
4
23
  * Estos estilos se aplican globalmente a todos los popups de DateRangePicker.
5
24
  * @param theme - Tema de MUI
6
25
  * @returns Objeto con los estilos del popup
7
26
  */
8
- export declare function getDateRangePickerPopupGlobalStyles(theme: Theme): {
27
+ export declare function getDateRangePickerPopupGlobalStyles(theme: ExtendedTheme): {
9
28
  '.rs-picker-popup': {
10
29
  backgroundColor: string;
11
30
  borderRadius: string;
@@ -1,99 +1,87 @@
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";
1
+ import { jsx as e, Fragment as o } from "react/jsx-runtime";
2
+ import { useTheme as a } from "@mui/material/styles";
3
+ import { GlobalStyles as i } from "@mui/material";
4
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
- }
5
+ import { g as s } from "./getDateRangePickerPopupGlobalStyles.js";
6
+ function b() {
7
+ const t = a();
8
+ return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
9
+ i,
10
+ {
11
+ styles: {
12
+ ...s(t),
13
+ body: {
14
+ fontFamily: 'Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif, Open Sans',
15
+ textRendering: "geometricPrecision",
16
+ width: "100%",
17
+ height: "100vh",
18
+ ".rs-drawer .rs-drawer-dialog": {
19
+ backgroundColor: "transparent!important"
20
+ },
21
+ "#rootIsolation": {
22
+ width: "100vw",
23
+ height: "100vh"
54
24
  },
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
- }
25
+ "*::-webkit-scrollbar": {
26
+ width: `${t.vars.size.baseSpacings.sp1}!important`,
27
+ height: `${t.vars.size.baseSpacings.sp1}!important`
77
28
  },
78
- "& html": {
79
- fontSize: r.desktop,
80
- [t.breakpoints.down("sm")]: {
81
- fontSize: r.mobile
82
- }
29
+ "*::-webkit-scrollbar-track": {
30
+ backgroundColor: "transparent"
83
31
  },
84
- // Global styles for native tags html
85
- img: {
86
- width: "100%"
32
+ "*::-webkit-scrollbar-thumb": {
33
+ backgroundColor: `${t.vars.palette.default.focusOpacity}!important`,
34
+ borderRadius: `${t.vars.size.borderRadius["r0-5"]}!important`
87
35
  },
88
- // Global styles for native tags h1, h2, h3, h4, h5, h6
89
- "h1, h2, h3, h4, h5, h6, p": {
90
- margin: "unset"
36
+ "input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active": {
37
+ color: t.vars.palette.text.primary
38
+ },
39
+ "& #root": {
40
+ width: "100%",
41
+ height: "100%"
42
+ }
43
+ },
44
+ "#nprogress": {
45
+ pointerEvents: "none",
46
+ "& .bar": {
47
+ top: 0,
48
+ left: 0,
49
+ height: 2,
50
+ width: "100%",
51
+ position: "fixed",
52
+ zIndex: t.zIndex.snackbar,
53
+ backgroundColor: t.vars.palette.primary.main,
54
+ boxShadow: `0 0 2px ${t.vars.palette.primary.main}`
55
+ },
56
+ "& .peg": {
57
+ right: 0,
58
+ opacity: 1,
59
+ width: 100,
60
+ height: "100%",
61
+ display: "block",
62
+ position: "absolute",
63
+ transform: "rotate(3deg) translate(0px, -4px)",
64
+ boxShadow: `0 0 10px ${t.vars.palette.primary.main}, 0 0 5px ${t.vars.palette.primary.main}`
65
+ }
66
+ },
67
+ "& html": {
68
+ fontSize: r.desktop,
69
+ [t.breakpoints.down("sm")]: {
70
+ fontSize: r.mobile
91
71
  }
72
+ },
73
+ // Global styles for native tags html
74
+ img: {
75
+ width: "100%"
76
+ },
77
+ // Global styles for native tags h1, h2, h3, h4, h5, h6
78
+ "h1, h2, h3, h4, h5, h6, p": {
79
+ margin: "unset"
92
80
  }
93
81
  }
94
- )
95
- ] });
82
+ }
83
+ ) });
96
84
  }
97
85
  export {
98
- w as G
86
+ b as G
99
87
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "7.2.2-BE20260202-2+PR665-dateRangePicker",
3
+ "version": "7.2.2-BE20260205-4+PR665-dateRangePicker",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team*",
6
6
  "type": "module",