@m4l/graphics 0.1.37 → 0.1.38

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,9 +1,10 @@
1
1
  import { useTheme as e } from "@mui/material/styles";
2
- import { GlobalStyles as r } from "@mui/material";
3
- import { jsx as o } from "react/jsx-runtime";
4
- function n() {
2
+ import { GlobalStyles as a } from "@mui/material";
3
+ import { globalRemSize as o } from "@m4l/styles";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ function s() {
5
6
  const t = e();
6
- return /* @__PURE__ */ o(r, {
7
+ return console.log("test spacing formula ", t.spacing(1)), /* @__PURE__ */ i(a, {
7
8
  styles: {
8
9
  "#nprogress": {
9
10
  pointerEvents: "none",
@@ -27,10 +28,16 @@ function n() {
27
28
  transform: "rotate(3deg) translate(0px, -4px)",
28
29
  boxShadow: `0 0 10px ${t.palette.primary.main}, 0 0 5px ${t.palette.primary.main}`
29
30
  }
31
+ },
32
+ "& html": {
33
+ fontSize: o.desktop,
34
+ [t.breakpoints.down("sm")]: {
35
+ fontSize: o.mobile
36
+ }
30
37
  }
31
38
  }
32
39
  });
33
40
  }
34
41
  export {
35
- n as P
42
+ s as G
36
43
  };
@@ -0,0 +1 @@
1
+ export declare function GlobalStyles(): JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import "@mui/material/styles";
2
2
  import "@mui/material";
3
+ import "@m4l/styles";
3
4
  import "react/jsx-runtime";
@@ -1 +1 @@
1
- export { ProgressBarStyle } from './ProgressBarStyle';
1
+ export { GlobalStyles } from './GlobalStyles';
package/index.js CHANGED
@@ -1,15 +1,16 @@
1
- import { P as x } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
2
- import { F as l, a as d } from "./contexts/FormatterContext/index.92336f4c.js";
3
- import { L as P, a as c, g } from "./contexts/LocalesContext/index.3fcfbe02.js";
4
- import { H as C, a as L } from "./contexts/HostThemeContext/index.a6a62c70.js";
5
- import { u as H } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
- import { u as T } from "./hooks/useFormatter/index.57ac8cca.js";
7
- import { b as w, u as S, a as b } from "./hooks/index.a4ef9776.js";
1
+ import { G as n } from "./components/GlobalStyle/index.30beab6e.js";
2
+ import { F as d, a as F } from "./contexts/FormatterContext/index.92336f4c.js";
3
+ import { L as v, a as C, g as L } from "./contexts/LocalesContext/index.3fcfbe02.js";
4
+ import { H as h, a as H } from "./contexts/HostThemeContext/index.a6a62c70.js";
5
+ import { u as R } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
+ import { u as b } from "./hooks/useFormatter/index.57ac8cca.js";
7
+ import { b as w, u as G, a as S } from "./hooks/index.a4ef9776.js";
8
8
  import { u as z } from "./hooks/useLocales/index.8154a401.js";
9
- import { u as B, a as D } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
- import { C as I, g as M } from "./utils/index.6909c662.js";
9
+ import { u as D, a as E } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
+ import { C as M, g as N } from "./utils/index.6909c662.js";
11
11
  import "@mui/material/styles";
12
12
  import "@mui/material";
13
+ import "@m4l/styles";
13
14
  import "react/jsx-runtime";
14
15
  import "react";
15
16
  import "@m4l/core";
@@ -18,22 +19,22 @@ import "@mui/x-date-pickers";
18
19
  import "date-fns/locale/en-US";
19
20
  import "@mui/material/useMediaQuery";
20
21
  export {
21
- I as Capitalize,
22
- l as FormatterContext,
23
- d as FormatterProvider,
24
- C as HostThemeContext,
25
- L as HostThemeProvider,
26
- P as LocalesContext,
27
- c as LocalesProvider,
28
- x as ProgressBarStyle,
29
- M as getAnchorElPositionWindow,
30
- g as getLocaleFromNetwork,
31
- H as useFirstRender,
32
- T as useFormatter,
22
+ M as Capitalize,
23
+ d as FormatterContext,
24
+ F as FormatterProvider,
25
+ n as GlobalStyles,
26
+ h as HostThemeContext,
27
+ H as HostThemeProvider,
28
+ v as LocalesContext,
29
+ C as LocalesProvider,
30
+ N as getAnchorElPositionWindow,
31
+ L as getLocaleFromNetwork,
32
+ R as useFirstRender,
33
+ b as useFormatter,
33
34
  w as useHostTheme,
34
- S as useIsMountedRef,
35
+ G as useIsMountedRef,
35
36
  z as useLocales,
36
- b as useOffSetTop,
37
- B as useResponsive,
38
- D as useResponsiveDesktop
37
+ S as useOffSetTop,
38
+ D as useResponsive,
39
+ E as useResponsiveDesktop
39
40
  };
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "license": "UNLICENSED",
5
- "author": "M4L Team*",
5
+ "author": "M4L Team",
6
6
  "dependencies": {
7
7
  "@m4l/core": "*",
8
- "@m4l/styles": "*",
9
8
  "@mui/x-date-pickers": "6.2.0",
10
9
  "date-fns": "^2.29.2"
11
10
  },
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ProgressBarStyle(): JSX.Element;