@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
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/hooks/index-c14LV1FI.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { useRef as n, useEffect as r, useState as i, useContext as u, useLayoutEffect as c } from "react";
|
|
2
|
-
import { H as m } from "../contexts/HostThemeContext/index-C5Z07fH1.js";
|
|
3
|
-
import { u as a } from "../node_modules-BHhXVwYT.js";
|
|
4
|
-
import { T as l } from "../contexts/index-BB_hmi4E.js";
|
|
5
|
-
function S() {
|
|
6
|
-
const e = n(!0);
|
|
7
|
-
return r(
|
|
8
|
-
() => () => {
|
|
9
|
-
e.current = !1;
|
|
10
|
-
},
|
|
11
|
-
[]
|
|
12
|
-
), e;
|
|
13
|
-
}
|
|
14
|
-
function x(e) {
|
|
15
|
-
const [s, t] = i(!1), o = e || 100;
|
|
16
|
-
return r(() => (window.onscroll = () => {
|
|
17
|
-
window.pageYOffset > o ? t(!0) : t(!1);
|
|
18
|
-
}, () => {
|
|
19
|
-
window.onscroll = null;
|
|
20
|
-
}), [o]), s;
|
|
21
|
-
}
|
|
22
|
-
const h = () => {
|
|
23
|
-
const e = u(m);
|
|
24
|
-
if (!e) throw new Error("useHostTheme context must be use inside HostThemeProvider");
|
|
25
|
-
return e;
|
|
26
|
-
};
|
|
27
|
-
function b(e) {
|
|
28
|
-
const s = n(null);
|
|
29
|
-
return c(() => {
|
|
30
|
-
const t = s?.current;
|
|
31
|
-
if (!t)
|
|
32
|
-
return;
|
|
33
|
-
const o = new ResizeObserver((f) => {
|
|
34
|
-
e(t, f[0]);
|
|
35
|
-
});
|
|
36
|
-
return o.observe(t), () => {
|
|
37
|
-
o.disconnect();
|
|
38
|
-
};
|
|
39
|
-
}, [e, s.current]), s;
|
|
40
|
-
}
|
|
41
|
-
function g(e, s) {
|
|
42
|
-
const t = u(l);
|
|
43
|
-
if (!t) throw new Error("useSettingsStore context must be use inside SettignsContext");
|
|
44
|
-
return a(t, e, s);
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
x as a,
|
|
48
|
-
h as b,
|
|
49
|
-
b as c,
|
|
50
|
-
g as d,
|
|
51
|
-
S as u
|
|
52
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useContext as r } from "react";
|
|
2
|
-
import { F as e } from "../../contexts/FormatterContext/index-BHG3bJJo.js";
|
|
3
|
-
const m = () => {
|
|
4
|
-
const t = r(e);
|
|
5
|
-
if (!t) throw new Error("useFormatter context must be use inside FormatterProvider");
|
|
6
|
-
return t;
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
m as u
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useContext as o } from "react";
|
|
2
|
-
import { L as t } from "../../contexts/LocalesContext/index--VwMF60R.js";
|
|
3
|
-
const n = () => {
|
|
4
|
-
const e = o(t);
|
|
5
|
-
if (!e) throw new Error("useLocales context must be use inside LocalesProvider");
|
|
6
|
-
return e;
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
n as u
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|