@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.
@@ -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,13 +1,13 @@
1
- import { jsxs as m, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { createContext as d, useMemo as p } from "react";
3
- import { CssBaseline as a } from "@mui/material";
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 f } from "../../components/GlobalStyles/index.js";
6
- import { experimental_extendTheme as x, Experimental_CssVarsProvider as u, StyledEngineProvider as v } from "@mui/material/styles";
7
- import { useIsMobile as C } from "../../hooks/useIsMobile/index.js";
8
- const S = d(null);
9
- function E(l) {
10
- const { children: c, hostThemeOptions: n, fnComponentsOverrides: s } = l, i = C(), h = p(() => {
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: i
21
+ isMobile: m
22
22
  }
23
23
  });
24
- return r.components = s(r), r;
25
- }, [i]);
26
- return /* @__PURE__ */ m(u, { theme: h, children: [
27
- /* @__PURE__ */ o(f, {}),
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
- S.Provider,
29
+ T.Provider,
30
30
  {
31
31
  value: {
32
32
  hostThemeOptions: n,
33
- fnComponentsOverrides: s
33
+ fnComponentsOverrides: i
34
34
  },
35
- children: /* @__PURE__ */ m(v, { injectFirst: !0, children: [
36
- /* @__PURE__ */ o(a, { enableColorScheme: !0 }),
37
- c
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
- S as HostThemeContext,
45
- E as HostThemeProvider
44
+ T as HostThemeContext,
45
+ F as HostThemeProvider
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "7.2.5",
3
+ "version": "7.2.6-beta-feature-dynamicform-crear-componente.1",
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
  };