@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
|
|
2
|
-
import { F as
|
|
3
|
-
import { L as
|
|
4
|
-
import { H as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { b as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { C as
|
|
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 "
|
|
21
|
-
import "./vendor.158914a7.js";
|
|
20
|
+
import "./vendor.353501da.js";
|
|
22
21
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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 =
|
|
59
|
-
function
|
|
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
|
|
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 [...
|
|
90
|
-
const i =
|
|
91
|
-
return !r && i ?
|
|
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
|
|
95
|
-
const t =
|
|
96
|
-
return { fontSize:
|
|
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
|
|
103
|
+
const L = (e) => e && e[0].toUpperCase() + e.slice(1) || "";
|
|
99
104
|
export {
|
|
100
|
-
|
|
105
|
+
L as C,
|
|
101
106
|
F as a,
|
|
102
107
|
y as b,
|
|
103
|
-
|
|
108
|
+
o as c,
|
|
104
109
|
u as d,
|
|
105
110
|
D as e,
|
|
106
111
|
a as f,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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.
|
|
11
|
+
import "./utils/index.42a6be21.js";
|
|
12
12
|
function r(c, l) {
|
|
13
13
|
return `linear-gradient(to bottom, ${c}, ${l})`;
|
|
14
14
|
}
|