@m4l/graphics 0.1.30 → 0.1.31

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/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { P as l } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
2
- import { F as d, a as F } from "./contexts/FormatterContext/index.92336f4c.js";
3
- import { L as g, a as v, g as C } from "./contexts/LocalesContext/index.5b555637.js";
4
- import { H as L, a as R } from "./contexts/HostThemeContext/index.9fe9854f.js";
5
- import { u as H } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
- import { u as S } from "./hooks/useFormatter/index.57ac8cca.js";
7
- import { b as y, u as z, a as w } from "./hooks/index.64cf4fc4.js";
8
- import { u as D } from "./hooks/useLocales/index.f676279e.js";
9
- import { u as M, a as N } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
- import { C as V, b as j, c as q, a as A, d as E, g as G, i as J, o as K, p as Q, f as U, r as W, e as X, h as Y } from "./utils/index.22212127.js";
1
+ import { P } from "./components/ProgressBarStyle/index.fb6fd9ed.js";
2
+ import { F as n, a as d } from "./contexts/FormatterContext/index.92336f4c.js";
3
+ import { L as c, a as g, g as v } from "./contexts/LocalesContext/index.5b555637.js";
4
+ import { H as T, a as L } from "./contexts/HostThemeContext/index.9fe9854f.js";
5
+ import { u as h } from "./hooks/useFirstRender/index.1e9b02fb.js";
6
+ import { u as b } from "./hooks/useFormatter/index.57ac8cca.js";
7
+ import { b as k, u as y, a as z } from "./hooks/index.64cf4fc4.js";
8
+ import { u as B } from "./hooks/useLocales/index.f676279e.js";
9
+ import { u as I, a as M } from "./hooks/useResponsive/index.fc5e1b4f.js";
10
+ import { C as O, b as V, c as j, a as q, d as A, g as E, i as G, o as J, p as K, f as Q, r as U, e as W, h as X } from "./utils/index.42a6be21.js";
11
11
  import "@mui/material/styles";
12
12
  import "@mui/material";
13
13
  import "react/jsx-runtime";
@@ -17,36 +17,35 @@ import "@mui/x-date-pickers/AdapterDateFns";
17
17
  import "@mui/x-date-pickers";
18
18
  import "date-fns/locale/en-US";
19
19
  import "@mui/material/useMediaQuery";
20
- import "@m4l/graphics";
21
- import "./vendor.158914a7.js";
20
+ import "./vendor.353501da.js";
22
21
  export {
23
- V as Capitalize,
24
- d as FormatterContext,
25
- F as FormatterProvider,
26
- L as HostThemeContext,
27
- R as HostThemeProvider,
28
- g as LocalesContext,
29
- v as LocalesProvider,
30
- l as ProgressBarStyle,
31
- j as bluePreset,
32
- q as colorPresets,
33
- A as cyanPreset,
34
- E as defaultPreset,
35
- G as getColorPresets,
36
- J as getFontValue,
37
- C as getLocaleFromNetwork,
38
- K as orangePreset,
39
- Q as purplePreset,
40
- U as pxToRem,
41
- W as redPreset,
42
- X as remToPx,
43
- Y as responsiveFontSizes,
44
- H as useFirstRender,
45
- S as useFormatter,
46
- y as useHostTheme,
47
- z as useIsMountedRef,
48
- D as useLocales,
49
- w as useOffSetTop,
50
- M as useResponsive,
51
- N as useResponsiveDesktop
22
+ O as Capitalize,
23
+ n as FormatterContext,
24
+ d as FormatterProvider,
25
+ T as HostThemeContext,
26
+ L as HostThemeProvider,
27
+ c as LocalesContext,
28
+ g as LocalesProvider,
29
+ P as ProgressBarStyle,
30
+ V as bluePreset,
31
+ j as colorPresets,
32
+ q as cyanPreset,
33
+ A as defaultPreset,
34
+ E as getColorPresets,
35
+ G as getFontValue,
36
+ v as getLocaleFromNetwork,
37
+ J as orangePreset,
38
+ K as purplePreset,
39
+ Q as pxToRem,
40
+ U as redPreset,
41
+ W as remToPx,
42
+ X as responsiveFontSizes,
43
+ h as useFirstRender,
44
+ b as useFormatter,
45
+ k as useHostTheme,
46
+ y as useIsMountedRef,
47
+ B as useLocales,
48
+ z as useOffSetTop,
49
+ I as useResponsive,
50
+ M as useResponsiveDesktop
52
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/graphics",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "dependencies": {
@@ -1,7 +1,12 @@
1
- import { useResponsive as m } from "@m4l/graphics";
2
- import { useTheme as h } from "@mui/material/styles";
3
- import { p as s } from "../vendor.158914a7.js";
4
- const n = [
1
+ import { useTheme as c } from "@mui/material/styles";
2
+ import "react";
3
+ import "../contexts/FormatterContext/index.92336f4c.js";
4
+ import "../contexts/LocalesContext/index.5b555637.js";
5
+ import "../contexts/HostThemeContext/index.9fe9854f.js";
6
+ import { u as d } from "../hooks/useResponsive/index.fc5e1b4f.js";
7
+ import { p as s } from "../vendor.353501da.js";
8
+ import "@mui/material/useMediaQuery";
9
+ const o = [
5
10
  {
6
11
  name: "default",
7
12
  ...s.light.primary,
@@ -55,8 +60,8 @@ const n = [
55
60
  darker: "#7A0930",
56
61
  contrastText: "#fff"
57
62
  }
58
- ], u = n[0], f = n[1], F = n[2], y = n[3], k = n[4], x = n[5];
59
- function P(e) {
63
+ ], u = o[0], f = o[1], F = o[2], y = o[3], k = o[4], x = o[5];
64
+ function H(e) {
60
65
  return {
61
66
  purple: f,
62
67
  cyan: F,
@@ -72,7 +77,7 @@ function D(e) {
72
77
  function a(e) {
73
78
  return `${e / 16}rem`;
74
79
  }
75
- function b({ sm: e, md: t, lg: r }) {
80
+ function R({ sm: e, md: t, lg: r }) {
76
81
  return {
77
82
  "@media (min-width:600px)": {
78
83
  fontSize: a(e)
@@ -86,27 +91,27 @@ function b({ sm: e, md: t, lg: r }) {
86
91
  };
87
92
  }
88
93
  function S() {
89
- return [...h().breakpoints.keys].reverse().reduce((r, o) => {
90
- const i = m("up", o);
91
- return !r && i ? o : r;
94
+ return [...c().breakpoints.keys].reverse().reduce((r, n) => {
95
+ const i = d("up", n);
96
+ return !r && i ? n : r;
92
97
  }, null) || "xs";
93
98
  }
94
- function T(e) {
95
- const t = h(), r = S(), o = t.breakpoints.up(r === "xl" ? "lg" : r), p = (e === "h1" || e === "h2" || e === "h3" || e === "h4" || e === "h5" || e === "h6") && t.typography[e][o] ? t.typography[e][o] : t.typography[e], c = D(p.fontSize), l = Number(t.typography[e].lineHeight) * c, { fontWeight: g, letterSpacing: d } = t.typography[e];
96
- return { fontSize: c, lineHeight: l, fontWeight: g, letterSpacing: d };
99
+ function w(e) {
100
+ const t = c(), r = S(), n = t.breakpoints.up(r === "xl" ? "lg" : r), h = (e === "h1" || e === "h2" || e === "h3" || e === "h4" || e === "h5" || e === "h6") && t.typography[e][n] ? t.typography[e][n] : t.typography[e], p = D(h.fontSize), l = Number(t.typography[e].lineHeight) * p, { fontWeight: m, letterSpacing: g } = t.typography[e];
101
+ return { fontSize: p, lineHeight: l, fontWeight: m, letterSpacing: g };
97
102
  }
98
- const z = (e) => e && e[0].toUpperCase() + e.slice(1) || "";
103
+ const L = (e) => e && e[0].toUpperCase() + e.slice(1) || "";
99
104
  export {
100
- z as C,
105
+ L as C,
101
106
  F as a,
102
107
  y as b,
103
- n as c,
108
+ o as c,
104
109
  u as d,
105
110
  D as e,
106
111
  a as f,
107
- P as g,
108
- b as h,
109
- T as i,
112
+ H as g,
113
+ R as h,
114
+ w as i,
110
115
  k as o,
111
116
  f as p,
112
117
  x as r
@@ -8,7 +8,7 @@ import "./hooks/useFormatter/index.57ac8cca.js";
8
8
  import "./hooks/index.64cf4fc4.js";
9
9
  import "./hooks/useLocales/index.f676279e.js";
10
10
  import "./hooks/useResponsive/index.fc5e1b4f.js";
11
- import "./utils/index.22212127.js";
11
+ import "./utils/index.42a6be21.js";
12
12
  function r(c, l) {
13
13
  return `linear-gradient(to bottom, ${c}, ${l})`;
14
14
  }