@m4l/graphics 2.0.1 → 2.0.2
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/components/GlobalStyle/{index-DHBkshRk.js → index.b7393a44.js} +0 -8
- package/components/index.8083534b.js +4 -0
- package/contexts/FormatterContext/{index-BHG3bJJo.js → index.92336f4c.js} +2 -2
- package/contexts/HostThemeContext/{index-C5Z07fH1.js → index.89c85eb6.js} +1 -1
- package/contexts/LocalesContext/{index--VwMF60R.js → index.53f0b702.js} +1 -1
- package/contexts/{index-BB_hmi4E.js → index.d4e2c292.js} +61 -60
- package/hooks/index.953df5ed.js +57 -0
- package/hooks/useFormatter/index.57ac8cca.js +11 -0
- package/hooks/useIsMobile/{index-Bro0dV28.js → index.54bf37f7.js} +1 -1
- package/hooks/useLocales/index.d5a80aff.js +11 -0
- package/hooks/useResponsive/{index-DOGfC2H7.js → index.49db561d.js} +4 -3
- package/index.js +50 -38
- package/{node_modules-BHhXVwYT.js → node_modules.9690bbee.js} +1592 -1603
- package/package.json +1 -1
- package/components/index-l0sNRNKZ.js +0 -1
- package/hooks/index-c14LV1FI.js +0 -52
- package/hooks/useFormatter/index-DfdAcbzw.js +0 -10
- package/hooks/useLocales/index-mTHn9nqY.js +0 -10
- /package/{commonjs-BCz0-aDl.js → commonjs.e3daa2e5.js} +0 -0
- /package/hooks/useFirstRender/{index-B-Q0TTn0.js → index.1e9b02fb.js} +0 -0
- /package/utils/{index-DZG6QXjf.js → index.6909c662.js} +0 -0
|
@@ -7,7 +7,6 @@ function s() {
|
|
|
7
7
|
return /* @__PURE__ */ a(e, {
|
|
8
8
|
styles: {
|
|
9
9
|
body: {
|
|
10
|
-
/* backgroundColor: `${theme.vars.palette.background.background}!important`, */
|
|
11
10
|
textRendering: "geometricPrecision",
|
|
12
11
|
width: "100%",
|
|
13
12
|
height: "100vh",
|
|
@@ -15,26 +14,19 @@ function s() {
|
|
|
15
14
|
color: t.vars.palette.text.primary
|
|
16
15
|
},
|
|
17
16
|
"*::-webkit-scrollbar": {
|
|
18
|
-
// camino de la barra con radio
|
|
19
17
|
width: "7px",
|
|
20
18
|
height: "7px",
|
|
21
19
|
borderRadius: "3px",
|
|
22
20
|
backgroundColor: "transparent"
|
|
23
21
|
},
|
|
24
22
|
"*::-webkit-scrollbar-track": {
|
|
25
|
-
// Camino de la barrra sin radio
|
|
26
23
|
backgroundColor: "transparent",
|
|
27
24
|
border: "0px solid transparent"
|
|
28
25
|
},
|
|
29
26
|
"*::-webkit-scrollbar-corner": {
|
|
30
27
|
backgroundColor: "transparent"
|
|
31
28
|
},
|
|
32
|
-
// FireFox
|
|
33
|
-
// scrollbarColor: `${theme.vars.palette.primary.main} white`,
|
|
34
|
-
// scrollbarWidth: 'thin',
|
|
35
|
-
// Chrome
|
|
36
29
|
"*::-webkit-scrollbar-thumb": {
|
|
37
|
-
// barra que se mueve
|
|
38
30
|
background: t.vars.palette.state.scrollBar,
|
|
39
31
|
borderRadius: "2px!important"
|
|
40
32
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext as D, useState as C, useCallback as k, useEffect as p } from "react";
|
|
2
2
|
import { useHostTools as v, usePropageteMF as R, EmitEvents as f } from "@m4l/core";
|
|
3
|
-
import { u as h } from "../../hooks/useFirstRender/index
|
|
3
|
+
import { u as h } from "../../hooks/useFirstRender/index.1e9b02fb.js";
|
|
4
4
|
import { jsx as V } from "react/jsx-runtime";
|
|
5
5
|
const x = D(null);
|
|
6
6
|
function I(T) {
|
|
@@ -10,7 +10,7 @@ function I(T) {
|
|
|
10
10
|
currencyFormatter: l,
|
|
11
11
|
numberFormatter: M,
|
|
12
12
|
dateFormatter: t
|
|
13
|
-
} = T, r = l?.decimalDigits || 0, o = l?.code || "USD", a = M?.decimalSymbol || 0.1.toLocaleString().substring(1, 2), s = M?.thousandsSymbol || 1e3.toLocaleString().substring(1, 2), m = t?.dateFormat || "yyyy-MM-dd", n = t?.dateMask || "____-__-__", c = t?.datetimeFormat || "yyyy-MM-dd HH:mm:ss", i = t?.datetimeMask || "____-__-__ __:__:__", _ = t?.timeFormat || "HH:mm:ss", d = t?.timeMask || "__:__:__", u = t?.formatDate || (() => {
|
|
13
|
+
} = T, r = l?.decimalDigits || 0, o = l?.code || "USD", a = M?.decimalSymbol || 0.1 .toLocaleString().substring(1, 2), s = M?.thousandsSymbol || 1e3 .toLocaleString().substring(1, 2), m = t?.dateFormat || "yyyy-MM-dd", n = t?.dateMask || "____-__-__", c = t?.datetimeFormat || "yyyy-MM-dd HH:mm:ss", i = t?.datetimeMask || "____-__-__ __:__:__", _ = t?.timeFormat || "HH:mm:ss", d = t?.timeMask || "__:__:__", u = t?.formatDate || (() => {
|
|
14
14
|
throw new Error("Incorrect use of formatDate");
|
|
15
15
|
}), y = h(), {
|
|
16
16
|
events_emit: g
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext as c, useMemo as a } from "react";
|
|
2
2
|
import { CssBaseline as h } from "@mui/material";
|
|
3
|
-
import { G as d } from "../../components/GlobalStyle/index
|
|
3
|
+
import { G as d } from "../../components/GlobalStyle/index.b7393a44.js";
|
|
4
4
|
import { createTheme as p, experimental_extendTheme as x, Experimental_CssVarsProvider as f, StyledEngineProvider as u } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
6
6
|
const T = c(null);
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import "./FormatterContext/index.92336f4c.js";
|
|
2
|
+
import "./LocalesContext/index.53f0b702.js";
|
|
1
3
|
import { createContext as f, useRef as T, useMemo as k, useLayoutEffect as y, useEffect as b } from "react";
|
|
2
|
-
import { c as v, d as R, i as P, l as E } from "../node_modules
|
|
4
|
+
import { c as v, d as R, i as P, l as E } from "../node_modules.9690bbee.js";
|
|
3
5
|
import { jsx as x } from "react/jsx-runtime";
|
|
6
|
+
import "date-fns/locale/en-US";
|
|
7
|
+
import "./HostThemeContext/index.89c85eb6.js";
|
|
4
8
|
import { useNetwork as M, useLocalStorageWithListener as w } from "@m4l/core";
|
|
5
|
-
import { getColorPresets as
|
|
9
|
+
import { getColorPresets as g, getColorState as d, typography as A, palette as S, SECONDARY as L, COMMON as N, ERROR as D, WARNING as B, INFO as z, SUCCESS as W, shadows as C, createCustomShadows as $, defaultThemeOptions as j, defaultPreset as _, colorPresets as F } from "@m4l/styles";
|
|
6
10
|
import { alpha as I } from "@mui/system";
|
|
7
|
-
import { u as U } from "../hooks/useFirstRender/index
|
|
8
|
-
const
|
|
11
|
+
import { u as U } from "../hooks/useFirstRender/index.1e9b02fb.js";
|
|
12
|
+
const u = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, K = (r) => {
|
|
9
13
|
const t = {
|
|
10
14
|
...r
|
|
11
15
|
};
|
|
@@ -15,8 +19,8 @@ const C = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, K = (r) => {
|
|
|
15
19
|
...t,
|
|
16
20
|
responsiveContainerActions: {
|
|
17
21
|
setBreakpoint: (e) => {
|
|
18
|
-
o((
|
|
19
|
-
|
|
22
|
+
o((a) => {
|
|
23
|
+
a.breakPoint = e, a.isUpSm = e !== "xs" && e !== "sm", a.isXs = e == "xs";
|
|
20
24
|
});
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -24,7 +28,7 @@ const C = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, K = (r) => {
|
|
|
24
28
|
{ name: "Responsive Relative Store" }
|
|
25
29
|
)
|
|
26
30
|
);
|
|
27
|
-
}, X = f(null),
|
|
31
|
+
}, X = f(null), se = (r) => {
|
|
28
32
|
const {
|
|
29
33
|
children: t,
|
|
30
34
|
observedDivRef: o
|
|
@@ -37,36 +41,37 @@ const C = { xs: 600, sm: 900, md: 1200, lg: 1536, xl: 1920 }, K = (r) => {
|
|
|
37
41
|
const e = () => {
|
|
38
42
|
const s = o;
|
|
39
43
|
if (s instanceof HTMLElement && s.clientWidth) {
|
|
40
|
-
const
|
|
41
|
-
for (let
|
|
42
|
-
const
|
|
43
|
-
if (s.clientWidth <=
|
|
44
|
-
n.current?.getState().responsiveContainerActions.setBreakpoint(
|
|
44
|
+
const i = Object.keys(u);
|
|
45
|
+
for (let h = 0; h < i.length; h++) {
|
|
46
|
+
const m = i[h];
|
|
47
|
+
if (s.clientWidth <= u[m]) {
|
|
48
|
+
n.current?.getState().responsiveContainerActions.setBreakpoint(m);
|
|
45
49
|
break;
|
|
46
|
-
}
|
|
50
|
+
} else
|
|
51
|
+
h === i.length - 1 && s.clientWidth >= u[m] && n.current?.getState().responsiveContainerActions.setBreakpoint(m);
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
|
-
},
|
|
54
|
+
}, a = k(() => E.exports.throttle(e, 200, {
|
|
50
55
|
leading: !1,
|
|
51
56
|
trailing: !0
|
|
52
57
|
}), [e]);
|
|
53
58
|
return y(() => {
|
|
54
59
|
const s = () => {
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
if (
|
|
58
|
-
const
|
|
60
|
+
a();
|
|
61
|
+
}, i = o;
|
|
62
|
+
if (i && i instanceof Element) {
|
|
63
|
+
const h = new ResizeObserver((m) => {
|
|
59
64
|
s();
|
|
60
65
|
});
|
|
61
|
-
return
|
|
62
|
-
|
|
66
|
+
return h.observe(i), () => {
|
|
67
|
+
h.disconnect();
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
}, [o]), /* @__PURE__ */ x(X.Provider, {
|
|
66
71
|
value: n.current,
|
|
67
72
|
children: t
|
|
68
73
|
});
|
|
69
|
-
},
|
|
74
|
+
}, p = {
|
|
70
75
|
themeMode: "light",
|
|
71
76
|
themeDirection: "ltr",
|
|
72
77
|
themeColorPresets: "patronus",
|
|
@@ -82,29 +87,30 @@ function O(r, t = "m4l") {
|
|
|
82
87
|
Object.keys(r).forEach((n) => {
|
|
83
88
|
const e = r[n];
|
|
84
89
|
if (typeof e == "string" || typeof e == "number") {
|
|
85
|
-
const
|
|
86
|
-
o.style.setProperty(
|
|
87
|
-
} else
|
|
90
|
+
const a = `--${t}-${n}`;
|
|
91
|
+
o.style.setProperty(a, e.toString());
|
|
92
|
+
} else
|
|
93
|
+
typeof e == "object" && e !== null && O(e, `${t}-${n}`);
|
|
88
94
|
});
|
|
89
95
|
}
|
|
90
96
|
const c = (r) => {
|
|
91
|
-
const t = r.currentThemeSettings ||
|
|
92
|
-
console.log("getColorPresets",
|
|
97
|
+
const t = r.currentThemeSettings || p;
|
|
98
|
+
console.log("getColorPresets", g(t.themeColorPresets)), console.log(
|
|
93
99
|
"getColorState",
|
|
94
100
|
d(t.themeColorPresets, t.themeMode)
|
|
95
101
|
);
|
|
96
102
|
const o = t.themeMode === "light";
|
|
97
103
|
r.themeOptions = {
|
|
98
104
|
...r.themeOptions,
|
|
99
|
-
typography:
|
|
105
|
+
typography: A,
|
|
100
106
|
palette: {
|
|
101
107
|
...r.themeOptions.palette,
|
|
102
108
|
...o ? S.light : S.dark,
|
|
103
|
-
primary:
|
|
109
|
+
primary: g(t.themeColorPresets),
|
|
104
110
|
state: d(t.themeColorPresets, t.themeMode),
|
|
105
|
-
representative: t.themeMode === "light" ?
|
|
111
|
+
representative: t.themeMode === "light" ? g(t.themeColorPresets)?.light : g(t.themeColorPresets)?.darker,
|
|
106
112
|
secondary: {
|
|
107
|
-
...
|
|
113
|
+
...L,
|
|
108
114
|
contrastText: "",
|
|
109
115
|
mainChannel: "",
|
|
110
116
|
lightChannel: "",
|
|
@@ -129,7 +135,7 @@ const c = (r) => {
|
|
|
129
135
|
contrastTextChannel: ""
|
|
130
136
|
},
|
|
131
137
|
warning: {
|
|
132
|
-
...
|
|
138
|
+
...B,
|
|
133
139
|
contrastText: "",
|
|
134
140
|
mainChannel: "",
|
|
135
141
|
lightChannel: "",
|
|
@@ -137,7 +143,7 @@ const c = (r) => {
|
|
|
137
143
|
contrastTextChannel: ""
|
|
138
144
|
},
|
|
139
145
|
info: {
|
|
140
|
-
...
|
|
146
|
+
...z,
|
|
141
147
|
contrastText: "",
|
|
142
148
|
mainChannel: "",
|
|
143
149
|
lightChannel: "",
|
|
@@ -145,7 +151,7 @@ const c = (r) => {
|
|
|
145
151
|
contrastTextChannel: ""
|
|
146
152
|
},
|
|
147
153
|
success: {
|
|
148
|
-
|
|
154
|
+
...W,
|
|
149
155
|
contrastText: "",
|
|
150
156
|
mainChannel: "",
|
|
151
157
|
lightChannel: "",
|
|
@@ -155,17 +161,17 @@ const c = (r) => {
|
|
|
155
161
|
},
|
|
156
162
|
shape: { borderRadius: 8 },
|
|
157
163
|
direction: t.themeDirection,
|
|
158
|
-
shadows: o ?
|
|
164
|
+
shadows: o ? C.light : C.dark,
|
|
159
165
|
customShadows: {
|
|
160
166
|
primary: `0 8px 16px 0 ${I(
|
|
161
|
-
|
|
167
|
+
g(t.themeColorPresets)?.main || "#fff",
|
|
162
168
|
0.2
|
|
163
169
|
)}`,
|
|
164
|
-
|
|
170
|
+
...$(t.themeMode)
|
|
165
171
|
},
|
|
166
172
|
stretch: t.themeStretch
|
|
167
173
|
}, console.log("state.themeOptions", r.themeOptions), O(r.themeOptions);
|
|
168
|
-
},
|
|
174
|
+
}, l = (r) => {
|
|
169
175
|
r.setterThemeSettings && r.setterThemeSettings(r.currentThemeSettings);
|
|
170
176
|
}, q = (r) => v(
|
|
171
177
|
R(
|
|
@@ -177,14 +183,9 @@ const c = (r) => {
|
|
|
177
183
|
c(n);
|
|
178
184
|
});
|
|
179
185
|
},
|
|
180
|
-
// setThemeOptions: newObj => {
|
|
181
|
-
// set(state => {
|
|
182
|
-
// state.themeOptions = { ...state.themeOptions, ...newObj };
|
|
183
|
-
// });
|
|
184
|
-
// },
|
|
185
186
|
setThemeSettings: (n) => {
|
|
186
187
|
t((e) => {
|
|
187
|
-
e.currentThemeSettings = { ...e.currentThemeSettings, ...n },
|
|
188
|
+
e.currentThemeSettings = { ...e.currentThemeSettings, ...n }, l(e), c(e);
|
|
188
189
|
});
|
|
189
190
|
},
|
|
190
191
|
onChangeMode: (n) => {
|
|
@@ -192,7 +193,7 @@ const c = (r) => {
|
|
|
192
193
|
e.currentThemeSettings = {
|
|
193
194
|
...e.currentThemeSettings,
|
|
194
195
|
themeMode: n.target.value
|
|
195
|
-
},
|
|
196
|
+
}, l(e), c(e);
|
|
196
197
|
});
|
|
197
198
|
},
|
|
198
199
|
handleOpen: () => {
|
|
@@ -205,7 +206,7 @@ const c = (r) => {
|
|
|
205
206
|
e.currentThemeSettings = {
|
|
206
207
|
...e.currentThemeSettings,
|
|
207
208
|
themeDirection: n.target.value
|
|
208
|
-
},
|
|
209
|
+
}, l(e), c(e);
|
|
209
210
|
});
|
|
210
211
|
},
|
|
211
212
|
onChangeColor: (n) => {
|
|
@@ -213,7 +214,7 @@ const c = (r) => {
|
|
|
213
214
|
e.currentThemeSettings = {
|
|
214
215
|
...e.currentThemeSettings,
|
|
215
216
|
themeColorPresets: n.target.value
|
|
216
|
-
},
|
|
217
|
+
}, l(e), c(e);
|
|
217
218
|
});
|
|
218
219
|
},
|
|
219
220
|
onChangeLayout: (n) => {
|
|
@@ -221,7 +222,7 @@ const c = (r) => {
|
|
|
221
222
|
e.currentThemeSettings = {
|
|
222
223
|
...e.currentThemeSettings,
|
|
223
224
|
themeLayout: n.target.value
|
|
224
|
-
},
|
|
225
|
+
}, l(e), c(e);
|
|
225
226
|
});
|
|
226
227
|
},
|
|
227
228
|
onToggleStretch: () => {
|
|
@@ -229,14 +230,14 @@ const c = (r) => {
|
|
|
229
230
|
n.currentThemeSettings = {
|
|
230
231
|
...n.currentThemeSettings,
|
|
231
232
|
themeStretch: !n.currentThemeSettings.themeStretch
|
|
232
|
-
},
|
|
233
|
+
}, l(n), c(n);
|
|
233
234
|
});
|
|
234
235
|
},
|
|
235
236
|
onResetSetting: () => {
|
|
236
237
|
t((n) => {
|
|
237
238
|
n.currentThemeSettings = {
|
|
238
|
-
...
|
|
239
|
-
},
|
|
239
|
+
...p
|
|
240
|
+
}, l(n), c(n);
|
|
240
241
|
});
|
|
241
242
|
}
|
|
242
243
|
}
|
|
@@ -244,28 +245,28 @@ const c = (r) => {
|
|
|
244
245
|
{ name: "ExampleStore" }
|
|
245
246
|
)
|
|
246
247
|
), G = f(null);
|
|
247
|
-
function
|
|
248
|
+
function ie({
|
|
248
249
|
children: r,
|
|
249
250
|
themeSettings: t
|
|
250
251
|
}) {
|
|
251
252
|
const {
|
|
252
253
|
networkOperation: o
|
|
253
|
-
} = M(), [n, e] = w("theme_setting",
|
|
254
|
+
} = M(), [n, e] = w("theme_setting", p), a = U([t]), s = T();
|
|
254
255
|
return s.current || (s.current = q({
|
|
255
256
|
networkOperation: o,
|
|
256
257
|
currentThemeSettings: {
|
|
257
258
|
...t ?? n
|
|
258
259
|
},
|
|
259
|
-
themeOptions:
|
|
260
|
+
themeOptions: j,
|
|
260
261
|
currentPreset: _,
|
|
261
|
-
colorOption: F.map((
|
|
262
|
-
name:
|
|
263
|
-
value:
|
|
262
|
+
colorOption: F.map((i) => ({
|
|
263
|
+
name: i.name,
|
|
264
|
+
value: i.main
|
|
264
265
|
})),
|
|
265
266
|
open: !1,
|
|
266
267
|
setterThemeSettings: t ? void 0 : e
|
|
267
268
|
}), s.current.getState().settingsActions.init()), b(() => {
|
|
268
|
-
!
|
|
269
|
+
!a && s.current && t && s.current.getState().settingsActions.setThemeSettings(t);
|
|
269
270
|
}, [t]), /* @__PURE__ */ x(G.Provider, {
|
|
270
271
|
value: s.current,
|
|
271
272
|
children: r
|
|
@@ -274,7 +275,7 @@ function ne({
|
|
|
274
275
|
export {
|
|
275
276
|
X as R,
|
|
276
277
|
G as T,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
se as a,
|
|
279
|
+
ie as b,
|
|
280
|
+
p as d
|
|
280
281
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useRef as r, useEffect as n, useState as f, useContext as u, useLayoutEffect as c } from "react";
|
|
2
|
+
import { H as m } from "../contexts/HostThemeContext/index.89c85eb6.js";
|
|
3
|
+
import { u as a } from "../node_modules.9690bbee.js";
|
|
4
|
+
import { T as p } from "../contexts/index.d4e2c292.js";
|
|
5
|
+
import "../contexts/FormatterContext/index.92336f4c.js";
|
|
6
|
+
import "../contexts/LocalesContext/index.53f0b702.js";
|
|
7
|
+
import "@m4l/styles";
|
|
8
|
+
function b() {
|
|
9
|
+
const e = r(!0);
|
|
10
|
+
return n(
|
|
11
|
+
() => () => {
|
|
12
|
+
e.current = !1;
|
|
13
|
+
},
|
|
14
|
+
[]
|
|
15
|
+
), e;
|
|
16
|
+
}
|
|
17
|
+
function g(e) {
|
|
18
|
+
const [o, t] = f(!1), s = e || 100;
|
|
19
|
+
return n(() => (window.onscroll = () => {
|
|
20
|
+
window.pageYOffset > s ? t(!0) : t(!1);
|
|
21
|
+
}, () => {
|
|
22
|
+
window.onscroll = null;
|
|
23
|
+
}), [s]), o;
|
|
24
|
+
}
|
|
25
|
+
const v = () => {
|
|
26
|
+
const e = u(m);
|
|
27
|
+
if (!e)
|
|
28
|
+
throw new Error("useHostTheme context must be use inside HostThemeProvider");
|
|
29
|
+
return e;
|
|
30
|
+
};
|
|
31
|
+
function H(e) {
|
|
32
|
+
const o = r(null);
|
|
33
|
+
return c(() => {
|
|
34
|
+
const t = o?.current;
|
|
35
|
+
if (!t)
|
|
36
|
+
return;
|
|
37
|
+
const s = new ResizeObserver((i) => {
|
|
38
|
+
e(t, i[0]);
|
|
39
|
+
});
|
|
40
|
+
return s.observe(t), () => {
|
|
41
|
+
s.disconnect();
|
|
42
|
+
};
|
|
43
|
+
}, [e, o.current]), o;
|
|
44
|
+
}
|
|
45
|
+
function O(e, o) {
|
|
46
|
+
const t = u(p);
|
|
47
|
+
if (!t)
|
|
48
|
+
throw new Error("useSettingsStore context must be use inside SettignsContext");
|
|
49
|
+
return a(t, e, o);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
g as a,
|
|
53
|
+
v as b,
|
|
54
|
+
H as c,
|
|
55
|
+
O as d,
|
|
56
|
+
b as u
|
|
57
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext as r } from "react";
|
|
2
|
+
import { F as e } from "../../contexts/FormatterContext/index.92336f4c.js";
|
|
3
|
+
const m = () => {
|
|
4
|
+
const t = r(e);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error("useFormatter context must be use inside FormatterProvider");
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
m as u
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useEffect as o } from "react";
|
|
2
|
-
import { t as s } from "../../node_modules
|
|
2
|
+
import { t as s } from "../../node_modules.9690bbee.js";
|
|
3
3
|
const t = () => typeof navigator > "u" ? !1 : /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), l = () => {
|
|
4
4
|
const [i, r] = n(t());
|
|
5
5
|
return o(() => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext as o } from "react";
|
|
2
|
+
import { L as t } from "../../contexts/LocalesContext/index.53f0b702.js";
|
|
3
|
+
const n = () => {
|
|
4
|
+
const e = o(t);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("useLocales context must be use inside LocalesProvider");
|
|
7
|
+
return e;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as u
|
|
11
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
|
-
import { u as r } from "../../node_modules
|
|
3
|
-
import { R as n } from "../../contexts/index
|
|
2
|
+
import { u as r } from "../../node_modules.9690bbee.js";
|
|
3
|
+
import { R as n } from "../../contexts/index.d4e2c292.js";
|
|
4
4
|
import { useResponsive as i } from "@m4l/styles";
|
|
5
5
|
function f(e, s) {
|
|
6
6
|
const o = t(n);
|
|
7
|
-
if (!o)
|
|
7
|
+
if (!o)
|
|
8
|
+
throw new Error("useAreasStore context must be use inside AreasContext");
|
|
8
9
|
return r(o, e, s);
|
|
9
10
|
}
|
|
10
11
|
function c() {
|
package/index.js
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { R as
|
|
5
|
-
import { H as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { b as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { C as
|
|
1
|
+
import { G as l } from "./components/GlobalStyle/index.b7393a44.js";
|
|
2
|
+
import { F as C, a as T } from "./contexts/FormatterContext/index.92336f4c.js";
|
|
3
|
+
import { L as h, a as R, g as S } from "./contexts/LocalesContext/index.53f0b702.js";
|
|
4
|
+
import { R as F, a as P, T as b, b as L, d as H } from "./contexts/index.d4e2c292.js";
|
|
5
|
+
import { H as w, a as z } from "./contexts/HostThemeContext/index.89c85eb6.js";
|
|
6
|
+
import { u as I } from "./hooks/useFirstRender/index.1e9b02fb.js";
|
|
7
|
+
import { u as O } from "./hooks/useFormatter/index.57ac8cca.js";
|
|
8
|
+
import { b as A, u as D, a as E, c as N, d as W } from "./hooks/index.953df5ed.js";
|
|
9
|
+
import { u as q } from "./hooks/useLocales/index.d5a80aff.js";
|
|
10
|
+
import { u as J, a as K } from "./hooks/useResponsive/index.49db561d.js";
|
|
11
|
+
import { u as U } from "./hooks/useIsMobile/index.54bf37f7.js";
|
|
12
|
+
import { C as X, g as Y } from "./utils/index.6909c662.js";
|
|
13
|
+
import "@mui/material/styles";
|
|
14
|
+
import "@mui/material";
|
|
15
|
+
import "@m4l/styles";
|
|
16
|
+
import "react/jsx-runtime";
|
|
17
|
+
import "react";
|
|
18
|
+
import "@m4l/core";
|
|
19
|
+
import "@mui/x-date-pickers/AdapterDateFns";
|
|
20
|
+
import "@mui/x-date-pickers";
|
|
21
|
+
import "date-fns/locale/en-US";
|
|
22
|
+
import "./node_modules.9690bbee.js";
|
|
23
|
+
import "./commonjs.e3daa2e5.js";
|
|
24
|
+
import "@mui/system";
|
|
13
25
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
X as Capitalize,
|
|
27
|
+
C as FormatterContext,
|
|
28
|
+
T as FormatterProvider,
|
|
29
|
+
l as GlobalStyles,
|
|
30
|
+
w as HostThemeContext,
|
|
31
|
+
z as HostThemeProvider,
|
|
32
|
+
h as LocalesContext,
|
|
33
|
+
R as LocalesProvider,
|
|
34
|
+
F as ResponsiveContainerContext,
|
|
35
|
+
P as ResponsiveContainerProvider,
|
|
36
|
+
b as ThemeSettingsContext,
|
|
37
|
+
L as ThemeSettingsProvider,
|
|
38
|
+
H as defaultThemeSettings,
|
|
39
|
+
Y as getAnchorElPositionWindow,
|
|
40
|
+
S as getLocaleFromNetwork,
|
|
41
|
+
I as useFirstRender,
|
|
42
|
+
O as useFormatter,
|
|
43
|
+
A as useHostTheme,
|
|
44
|
+
U as useIsMobile,
|
|
45
|
+
D as useIsMountedRef,
|
|
46
|
+
q as useLocales,
|
|
47
|
+
E as useOffSetTop,
|
|
48
|
+
N as useResizeObserver,
|
|
49
|
+
J as useResponsiveContainerStore,
|
|
50
|
+
K as useResponsiveDesktop,
|
|
51
|
+
W as useThemeSettingsStore
|
|
40
52
|
};
|