@m4l/graphics 0.1.36 → 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';
@@ -1,6 +1,6 @@
1
1
  import { createContext as H, useState as E, useMemo as v, useCallback as M, useEffect as c } from "react";
2
2
  import { CssBaseline as C } from "@mui/material";
3
- import { createTheme as O, StyledEngineProvider as N, ThemeProvider as S } from "@m4l/styles";
3
+ import { createTheme as O, StyledEngineProvider as N, ThemeProvider as S } from "@mui/material/styles";
4
4
  import { useHostTools as x, EmitEvents as o } from "@m4l/core";
5
5
  import { jsx as n, jsxs as F } from "react/jsx-runtime";
6
6
  const I = H(null);
@@ -1,4 +1,4 @@
1
- import type { ThemeOptions, Theme } from '@m4l/styles';
1
+ import type { ThemeOptions, Theme } from '@mui/material/styles';
2
2
  import type { ReactNode } from 'react';
3
3
  export declare type EventFunListener = (...args: any[]) => void;
4
4
  export interface HostThemeType {
@@ -1,4 +1,4 @@
1
1
  import "./FormatterContext/index.92336f4c.js";
2
2
  import "./LocalesContext/index.3fcfbe02.js";
3
3
  import "date-fns/locale/en-US";
4
- import "./HostThemeContext/index.1876eb9a.js";
4
+ import "./HostThemeContext/index.a6a62c70.js";
@@ -1,5 +1,5 @@
1
1
  import { useRef as n, useEffect as s, useState as u, useContext as f } from "react";
2
- import { H as i } from "../contexts/HostThemeContext/index.1876eb9a.js";
2
+ import { H as i } from "../contexts/HostThemeContext/index.a6a62c70.js";
3
3
  import "../contexts/FormatterContext/index.92336f4c.js";
4
4
  import "../contexts/LocalesContext/index.3fcfbe02.js";
5
5
  import "@mui/material/styles";
package/index.js CHANGED
@@ -1,40 +1,40 @@
1
- import { P as n } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
1
+ import { G as n } from "./components/GlobalStyle/index.30beab6e.js";
2
2
  import { F as d, a as F } from "./contexts/FormatterContext/index.92336f4c.js";
3
- import { L as c, a as g, g as v } from "./contexts/LocalesContext/index.3fcfbe02.js";
4
- import { H as L, a as h } from "./contexts/HostThemeContext/index.1876eb9a.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
5
  import { u as R } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
- import { u as k } from "./hooks/useFormatter/index.57ac8cca.js";
7
- import { b as S, u as b, a as y } from "./hooks/index.2fe4bbf1.js";
8
- import { u as A } from "./hooks/useLocales/index.8154a401.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
+ import { u as z } from "./hooks/useLocales/index.8154a401.js";
9
9
  import { u as D, a as E } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
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";
16
17
  import "@mui/x-date-pickers/AdapterDateFns";
17
18
  import "@mui/x-date-pickers";
18
19
  import "date-fns/locale/en-US";
19
- import "@m4l/styles";
20
20
  import "@mui/material/useMediaQuery";
21
21
  export {
22
22
  M as Capitalize,
23
23
  d as FormatterContext,
24
24
  F as FormatterProvider,
25
- L as HostThemeContext,
26
- h as HostThemeProvider,
27
- c as LocalesContext,
28
- g as LocalesProvider,
29
- n as ProgressBarStyle,
25
+ n as GlobalStyles,
26
+ h as HostThemeContext,
27
+ H as HostThemeProvider,
28
+ v as LocalesContext,
29
+ C as LocalesProvider,
30
30
  N as getAnchorElPositionWindow,
31
- v as getLocaleFromNetwork,
31
+ L as getLocaleFromNetwork,
32
32
  R as useFirstRender,
33
- k as useFormatter,
34
- S as useHostTheme,
35
- b as useIsMountedRef,
36
- A as useLocales,
37
- y as useOffSetTop,
33
+ b as useFormatter,
34
+ w as useHostTheme,
35
+ G as useIsMountedRef,
36
+ z as useLocales,
37
+ S as useOffSetTop,
38
38
  D as useResponsive,
39
39
  E as useResponsiveDesktop
40
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "dependencies": {
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ProgressBarStyle(): JSX.Element;