@m4l/graphics 7.2.5 → 7.2.6-beta-feature-dynamicform-crear-componente.1
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 +1 -1
- package/components/GlobalStyles/getDateRangePickerPopupGlobalStyles.js +1 -1
- package/contexts/HostThemeContext/index.js +21 -21
- package/package.json +1 -1
- package/utils/getContrastTextColor/getContrastTextColor.d.ts.map +1 -1
- package/utils/getContrastTextColor/getContrastTextColor.js +10 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { CssBaseline as
|
|
1
|
+
import { jsxs as l, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as p, useMemo as a } from "react";
|
|
3
|
+
import { CssBaseline as f } from "@mui/material";
|
|
4
4
|
import { deepmerge as t } from "@mui/utils";
|
|
5
|
-
import { GlobalStyles as
|
|
6
|
-
import { experimental_extendTheme as x, Experimental_CssVarsProvider as
|
|
7
|
-
import { useIsMobile as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const { children:
|
|
5
|
+
import { GlobalStyles as u } from "../../components/GlobalStyles/index.js";
|
|
6
|
+
import { experimental_extendTheme as x, Experimental_CssVarsProvider as v, StyledEngineProvider as C } from "@mui/material/styles";
|
|
7
|
+
import { useIsMobile as S } from "../../hooks/useIsMobile/index.js";
|
|
8
|
+
const T = p(null);
|
|
9
|
+
function F(c) {
|
|
10
|
+
const { children: d, hostThemeOptions: n, fnComponentsOverrides: i, isMicroFrontEnd: s } = c, m = S(), h = a(() => {
|
|
11
11
|
const e = {
|
|
12
12
|
...n
|
|
13
13
|
}, r = x({
|
|
@@ -18,29 +18,29 @@ function E(l) {
|
|
|
18
18
|
dark: t({}, e)
|
|
19
19
|
},
|
|
20
20
|
generalSettings: {
|
|
21
|
-
isMobile:
|
|
21
|
+
isMobile: m
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return r.components =
|
|
25
|
-
}, [
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ o(
|
|
24
|
+
return r.components = i(r), r;
|
|
25
|
+
}, [m]);
|
|
26
|
+
return /* @__PURE__ */ l(v, { theme: h, children: [
|
|
27
|
+
s ? /* @__PURE__ */ o(u, {}) : null,
|
|
28
28
|
/* @__PURE__ */ o(
|
|
29
|
-
|
|
29
|
+
T.Provider,
|
|
30
30
|
{
|
|
31
31
|
value: {
|
|
32
32
|
hostThemeOptions: n,
|
|
33
|
-
fnComponentsOverrides:
|
|
33
|
+
fnComponentsOverrides: i
|
|
34
34
|
},
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ o(
|
|
37
|
-
|
|
35
|
+
children: /* @__PURE__ */ l(C, { injectFirst: !0, children: [
|
|
36
|
+
s ? /* @__PURE__ */ o(f, { enableColorScheme: !0 }) : null,
|
|
37
|
+
d
|
|
38
38
|
] })
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
T as HostThemeContext,
|
|
45
|
+
F as HostThemeProvider
|
|
46
46
|
};
|
package/package.json
CHANGED
|
@@ -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,
|
|
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
|
|
2
|
-
function
|
|
1
|
+
const c = /* @__PURE__ */ new Map();
|
|
2
|
+
function l(r, n = !0) {
|
|
3
3
|
try {
|
|
4
|
-
if (n
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
16
|
+
l as getContrastTextColor
|
|
14
17
|
};
|