mada-design-system 0.5.5 → 0.5.6
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.cjs100.js +1 -1
- package/index.cjs101.js +1 -1
- package/index.cjs102.js +1 -4
- package/index.cjs103.js +1 -1
- package/index.cjs105.js +1 -1
- package/index.cjs106.js +1 -1
- package/index.cjs107.js +4 -1
- package/index.cjs108.js +1 -1
- package/index.cjs109.js +1 -1
- package/index.cjs110.js +1 -1
- package/index.cjs112.js +1 -1
- package/index.cjs114.js +1 -1
- package/index.cjs115.js +1 -1
- package/index.cjs116.js +1 -1
- package/index.cjs117.js +1 -1
- package/index.cjs118.js +1 -1
- package/index.cjs119.js +1 -1
- package/index.cjs120.js +1 -1
- package/index.cjs121.js +1 -1
- package/index.cjs123.js +1 -1
- package/index.cjs124.js +1 -1
- package/index.cjs125.js +1 -1
- package/index.cjs126.js +1 -1
- package/index.cjs127.js +1 -1
- package/index.cjs128.js +1 -1
- package/index.cjs130.js +1 -1
- package/index.cjs131.js +1 -1
- package/index.cjs132.js +1 -1
- package/index.cjs133.js +1 -1
- package/index.cjs134.js +1 -1
- package/index.cjs135.js +1 -1
- package/index.cjs136.js +1 -1
- package/index.cjs137.js +1 -1
- package/index.cjs138.js +1 -1
- package/index.cjs139.js +1 -1
- package/index.cjs141.js +1 -1
- package/index.cjs142.js +1 -1
- package/index.cjs143.js +1 -1
- package/index.cjs144.js +1 -1
- package/index.cjs145.js +1 -1
- package/index.cjs146.js +1 -1
- package/index.cjs147.js +1 -1
- package/index.cjs148.js +1 -1
- package/index.cjs149.js +1 -1
- package/index.cjs156.js +1 -1
- package/index.cjs157.js +1 -1
- package/index.cjs158.js +1 -1
- package/index.cjs159.js +1 -1
- package/index.cjs160.js +1 -1
- package/index.cjs161.js +1 -1
- package/index.cjs162.js +1 -1
- package/index.cjs163.js +1 -1
- package/index.cjs166.js +1 -1
- package/index.cjs167.js +1 -1
- package/index.cjs168.js +1 -1
- package/index.cjs169.js +1 -1
- package/index.cjs170.js +1 -1
- package/index.cjs171.js +1 -1
- package/index.cjs172.js +1 -1
- package/index.cjs173.js +1 -1
- package/index.cjs174.js +1 -1
- package/index.cjs176.js +1 -1
- package/index.cjs177.js +1 -1
- package/index.cjs178.js +1 -1
- package/index.cjs179.js +1 -1
- package/index.cjs180.js +1 -1
- package/index.cjs181.js +1 -1
- package/index.cjs182.js +1 -4
- package/index.cjs183.js +1 -1
- package/index.cjs184.js +1 -1
- package/index.cjs185.js +4 -1
- package/index.cjs186.js +1 -1
- package/index.cjs187.js +1 -1
- package/index.cjs188.js +1 -1
- package/index.cjs189.js +1 -1
- package/index.cjs190.js +1 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs193.js +1 -1
- package/index.cjs194.js +1 -1
- package/index.cjs195.js +1 -1
- package/index.cjs196.js +1 -1
- package/index.cjs197.js +1 -1
- package/index.cjs198.js +1 -1
- package/index.cjs199.js +1 -1
- package/index.cjs200.js +1 -1
- package/index.cjs201.js +1 -1
- package/index.cjs202.js +1 -1
- package/index.cjs203.js +1 -1
- package/index.cjs204.js +1 -1
- package/index.cjs205.js +1 -1
- package/index.cjs206.js +1 -1
- package/index.cjs207.js +1 -1
- package/index.cjs208.js +1 -1
- package/index.cjs209.js +1 -1
- package/index.cjs210.js +1 -1
- package/index.cjs211.js +1 -1
- package/index.cjs212.js +1 -1
- package/index.cjs213.js +1 -1
- package/index.cjs214.js +1 -1
- package/index.cjs215.js +1 -1
- package/index.cjs216.js +1 -1
- package/index.cjs217.js +1 -1
- package/index.cjs222.js +1 -1
- package/index.cjs225.js +1 -1
- package/index.cjs226.js +1 -1
- package/index.cjs23.js +1 -1
- package/index.cjs237.js +1 -1
- package/index.cjs238.js +1 -1
- package/index.cjs239.js +1 -1
- package/index.cjs240.js +1 -1
- package/index.cjs241.js +1 -1
- package/index.cjs252.js +1 -1
- package/index.cjs253.js +1 -1
- package/index.cjs255.js +1 -1
- package/index.cjs265.js +1 -1
- package/index.cjs266.js +1 -1
- package/index.cjs267.js +1 -1
- package/index.cjs268.js +1 -1
- package/index.cjs270.js +1 -1
- package/index.cjs274.js +1 -1
- package/index.cjs275.js +1 -1
- package/index.cjs277.js +1 -1
- package/index.cjs278.js +1 -1
- package/index.cjs28.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs295.js +1 -1
- package/index.cjs299.js +1 -1
- package/index.cjs30.js +1 -1
- package/index.cjs302.js +1 -1
- package/index.cjs305.js +1 -1
- package/index.cjs306.js +1 -1
- package/index.cjs307.js +1 -1
- package/index.cjs308.js +1 -1
- package/index.cjs309.js +1 -1
- package/index.cjs31.js +1 -1
- package/index.cjs310.js +1 -1
- package/index.cjs311.js +1 -1
- package/index.cjs321.js +1 -1
- package/index.cjs324.js +1 -1
- package/index.cjs325.js +1 -1
- package/index.cjs326.js +1 -1
- package/index.cjs327.js +1 -1
- package/index.cjs328.js +1 -1
- package/index.cjs329.js +1 -1
- package/index.cjs330.js +1 -1
- package/index.cjs331.js +1 -1
- package/index.cjs332.js +1 -1
- package/index.cjs333.js +1 -1
- package/index.cjs334.js +1 -1
- package/index.cjs335.js +1 -1
- package/index.cjs336.js +1 -1
- package/index.cjs341.js +1 -1
- package/index.cjs376.js +1 -1
- package/index.cjs379.js +1 -1
- package/index.cjs382.js +1 -1
- package/index.cjs383.js +1 -1
- package/index.cjs386.js +1 -1
- package/index.cjs387.js +1 -1
- package/index.cjs388.js +1 -1
- package/index.cjs389.js +1 -1
- package/index.cjs390.js +1 -1
- package/index.cjs391.js +1 -1
- package/index.cjs392.js +1 -1
- package/index.cjs393.js +1 -1
- package/index.cjs394.js +1 -1
- package/index.cjs4.js +1 -1
- package/index.cjs40.js +1 -1
- package/index.cjs404.js +74 -1
- package/index.cjs405.js +1 -74
- package/index.cjs406.js +1 -1
- package/index.cjs407.js +1 -1
- package/index.cjs408.js +1 -1
- package/index.cjs41.js +1 -1
- package/index.cjs410.js +1 -1
- package/index.cjs411.js +1 -1
- package/index.cjs413.js +1 -1
- package/index.cjs42.js +1 -1
- package/index.cjs428.js +1 -1
- package/index.cjs66.js +1 -1
- package/index.cjs81.js +1 -1
- package/index.cjs82.js +1 -1
- package/index.cjs85.js +1 -1
- package/index.cjs86.js +1 -1
- package/index.cjs87.js +1 -1
- package/index.cjs88.js +1 -1
- package/index.cjs89.js +1 -1
- package/index.cjs92.js +1 -1
- package/index.cjs96.js +1 -1
- package/index.es100.js +443 -2310
- package/index.es101.js +21 -20
- package/index.es102.js +130 -2560
- package/index.es103.js +6 -2152
- package/index.es105.js +2338 -11
- package/index.es106.js +20 -470
- package/index.es107.js +2566 -19
- package/index.es108.js +2149 -136
- package/index.es109.js +11 -6
- package/index.es110.js +1 -1
- package/index.es112.js +1 -1
- package/index.es114.js +1 -1
- package/index.es115.js +2 -2
- package/index.es116.js +1 -1
- package/index.es117.js +1 -1
- package/index.es118.js +1 -1
- package/index.es119.js +1 -1
- package/index.es120.js +1 -1
- package/index.es121.js +2 -2
- package/index.es123.js +1 -1
- package/index.es124.js +1 -1
- package/index.es125.js +1 -1
- package/index.es126.js +1 -1
- package/index.es127.js +1 -1
- package/index.es128.js +1 -1
- package/index.es130.js +1 -1
- package/index.es131.js +1 -1
- package/index.es132.js +1 -1
- package/index.es133.js +1 -1
- package/index.es134.js +1 -1
- package/index.es135.js +1 -1
- package/index.es136.js +1 -1
- package/index.es137.js +1 -1
- package/index.es138.js +1 -1
- package/index.es139.js +1 -1
- package/index.es141.js +1 -1
- package/index.es142.js +1 -1
- package/index.es143.js +1 -1
- package/index.es144.js +1 -1
- package/index.es145.js +1 -1
- package/index.es146.js +1 -1
- package/index.es147.js +1 -1
- package/index.es148.js +1 -1
- package/index.es149.js +1 -1
- package/index.es156.js +1 -1
- package/index.es157.js +1 -1
- package/index.es158.js +1 -1
- package/index.es159.js +1 -1
- package/index.es160.js +1 -1
- package/index.es161.js +1 -1
- package/index.es162.js +1 -1
- package/index.es163.js +1 -1
- package/index.es166.js +1 -1
- package/index.es167.js +1 -1
- package/index.es168.js +1 -1
- package/index.es169.js +1 -1
- package/index.es170.js +1 -1
- package/index.es171.js +2 -2
- package/index.es172.js +1 -1
- package/index.es173.js +1 -1
- package/index.es174.js +1 -1
- package/index.es176.js +1 -1
- package/index.es177.js +1 -1
- package/index.es178.js +1 -1
- package/index.es179.js +1 -1
- package/index.es180.js +14 -6
- package/index.es181.js +8 -2
- package/index.es182.js +49 -2260
- package/index.es183.js +5 -49
- package/index.es184.js +2 -14
- package/index.es185.js +2261 -8
- package/index.es186.js +4 -3
- package/index.es187.js +57 -12
- package/index.es188.js +56 -24
- package/index.es189.js +231 -9
- package/index.es190.js +53 -38
- package/index.es191.js +3 -1999
- package/index.es192.js +2 -7
- package/index.es193.js +3 -74
- package/index.es194.js +10 -22
- package/index.es195.js +24 -3
- package/index.es196.js +11 -2
- package/index.es197.js +39 -2
- package/index.es198.js +1999 -57
- package/index.es199.js +6 -56
- package/index.es200.js +71 -97
- package/index.es201.js +22 -23
- package/index.es202.js +2 -39
- package/index.es203.js +8 -2
- package/index.es204.js +2 -8
- package/index.es205.js +31 -2
- package/index.es206.js +11 -479
- package/index.es207.js +477 -28
- package/index.es208.js +98 -12
- package/index.es209.js +26 -2
- package/index.es210.js +37 -43
- package/index.es211.js +2 -52
- package/index.es212.js +42 -36
- package/index.es213.js +46 -227
- package/index.es214.js +15 -51
- package/index.es215.js +32 -15
- package/index.es216.js +1223 -34
- package/index.es217.js +31 -1216
- package/index.es222.js +1 -1
- package/index.es225.js +1 -1
- package/index.es226.js +1 -1
- package/index.es23.js +1 -1
- package/index.es237.js +1 -1
- package/index.es238.js +4 -4
- package/index.es239.js +1 -1
- package/index.es240.js +3 -3
- package/index.es241.js +1 -1
- package/index.es252.js +1 -1
- package/index.es253.js +3 -3
- package/index.es255.js +1 -1
- package/index.es265.js +1 -1
- package/index.es266.js +4 -4
- package/index.es267.js +2 -2
- package/index.es268.js +2 -2
- package/index.es270.js +1 -1
- package/index.es274.js +4 -4
- package/index.es275.js +1 -1
- package/index.es277.js +1 -1
- package/index.es278.js +1 -1
- package/index.es28.js +1 -1
- package/index.es29.js +9 -9
- package/index.es295.js +1 -1
- package/index.es299.js +2 -2
- package/index.es30.js +2 -2
- package/index.es302.js +1 -1
- package/index.es305.js +116 -8
- package/index.es306.js +7 -351
- package/index.es307.js +8 -3
- package/index.es308.js +8 -206
- package/index.es309.js +339 -104
- package/index.es31.js +1 -1
- package/index.es310.js +3 -7
- package/index.es311.js +206 -8
- package/index.es321.js +2 -2
- package/index.es324.js +6 -2
- package/index.es325.js +24 -2
- package/index.es326.js +20 -5
- package/index.es327.js +30 -22
- package/index.es328.js +6 -21
- package/index.es329.js +6 -31
- package/index.es330.js +3 -6
- package/index.es331.js +67 -3
- package/index.es332.js +18 -6
- package/index.es333.js +15 -18
- package/index.es334.js +3 -66
- package/index.es335.js +2 -16
- package/index.es336.js +2 -4
- package/index.es341.js +1 -1
- package/index.es376.js +1 -1
- package/index.es379.js +1 -1
- package/index.es382.js +1 -1
- package/index.es383.js +1 -1
- package/index.es386.js +2 -9
- package/index.es387.js +66 -3
- package/index.es388.js +65 -45
- package/index.es389.js +10 -24
- package/index.es390.js +3 -10
- package/index.es391.js +8 -3
- package/index.es392.js +4 -2
- package/index.es393.js +44 -65
- package/index.es394.js +23 -64
- package/index.es4.js +1 -1
- package/index.es40.js +1 -1
- package/index.es404.js +251 -2
- package/index.es405.js +8 -251
- package/index.es406.js +3 -8
- package/index.es407.js +2 -3
- package/index.es408.js +2 -2
- package/index.es41.js +1 -1
- package/index.es410.js +1 -1
- package/index.es411.js +2 -7
- package/index.es412.js +2 -2
- package/index.es413.js +7 -2
- package/index.es42.js +1 -1
- package/index.es428.js +1 -1
- package/index.es66.js +2 -2
- package/index.es81.js +1 -1
- package/index.es82.js +1 -1
- package/index.es85.js +4 -4
- package/index.es86.js +1 -1
- package/index.es87.js +1 -1
- package/index.es88.js +2 -2
- package/index.es89.js +1 -1
- package/index.es92.js +1 -1
- package/index.es96.js +1 -1
- package/package.json +1 -1
package/index.es186.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var e = { exports: {} };
|
|
2
|
+
export {
|
|
3
|
+
e as __module
|
|
4
|
+
};
|
package/index.es187.js
CHANGED
|
@@ -1,15 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { __exports as d } from "./index.es202.js";
|
|
2
|
+
import q from "react";
|
|
3
|
+
import { __require as w } from "./index.es203.js";
|
|
4
|
+
var V;
|
|
5
|
+
function k() {
|
|
6
|
+
if (V)
|
|
7
|
+
return d;
|
|
8
|
+
V = 1;
|
|
9
|
+
var a = q, j = w();
|
|
10
|
+
function z(r, u) {
|
|
11
|
+
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
12
|
+
}
|
|
13
|
+
var M = typeof Object.is == "function" ? Object.is : z, W = j.useSyncExternalStore, h = a.useRef, y = a.useEffect, D = a.useMemo, O = a.useDebugValue;
|
|
14
|
+
return d.useSyncExternalStoreWithSelector = function(r, u, m, v, t) {
|
|
15
|
+
var i = h(null);
|
|
16
|
+
if (i.current === null) {
|
|
17
|
+
var o = { hasValue: !1, value: null };
|
|
18
|
+
i.current = o;
|
|
19
|
+
} else
|
|
20
|
+
o = i.current;
|
|
21
|
+
i = D(
|
|
22
|
+
function() {
|
|
23
|
+
function _(e) {
|
|
24
|
+
if (!s) {
|
|
25
|
+
if (s = !0, l = e, e = v(e), t !== void 0 && o.hasValue) {
|
|
26
|
+
var f = o.value;
|
|
27
|
+
if (t(f, e))
|
|
28
|
+
return n = f;
|
|
29
|
+
}
|
|
30
|
+
return n = e;
|
|
31
|
+
}
|
|
32
|
+
if (f = n, M(l, e))
|
|
33
|
+
return f;
|
|
34
|
+
var R = v(e);
|
|
35
|
+
return t !== void 0 && t(f, R) ? (l = e, f) : (l = e, n = R);
|
|
36
|
+
}
|
|
37
|
+
var s = !1, l, n, b = m === void 0 ? null : m;
|
|
38
|
+
return [
|
|
39
|
+
function() {
|
|
40
|
+
return _(u());
|
|
41
|
+
},
|
|
42
|
+
b === null ? void 0 : function() {
|
|
43
|
+
return _(b());
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
},
|
|
47
|
+
[u, m, v, t]
|
|
48
|
+
);
|
|
49
|
+
var c = W(r, i[0], i[1]);
|
|
50
|
+
return y(
|
|
51
|
+
function() {
|
|
52
|
+
o.hasValue = !0, o.value = c;
|
|
53
|
+
},
|
|
54
|
+
[c]
|
|
55
|
+
), O(c), c;
|
|
56
|
+
}, d;
|
|
12
57
|
}
|
|
13
58
|
export {
|
|
14
|
-
|
|
59
|
+
k as __require
|
|
15
60
|
};
|
package/index.es188.js
CHANGED
|
@@ -1,27 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { __exports as d } from "./index.es204.js";
|
|
2
|
+
import M from "react";
|
|
3
|
+
import { __require as b } from "./index.es203.js";
|
|
4
|
+
var s;
|
|
5
|
+
function H() {
|
|
6
|
+
return s ? d : (s = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7
|
+
function A(r, u) {
|
|
8
|
+
return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
|
|
9
|
+
}
|
|
10
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
11
|
+
var n = M, R = b(), T = typeof Object.is == "function" ? Object.is : A, V = R.useSyncExternalStore, D = n.useRef, S = n.useEffect, p = n.useMemo, G = n.useDebugValue;
|
|
12
|
+
d.useSyncExternalStoreWithSelector = function(r, u, a, c, i) {
|
|
13
|
+
var _ = D(null);
|
|
14
|
+
if (_.current === null) {
|
|
15
|
+
var t = { hasValue: !1, value: null };
|
|
16
|
+
_.current = t;
|
|
17
|
+
} else
|
|
18
|
+
t = _.current;
|
|
19
|
+
_ = p(
|
|
20
|
+
function() {
|
|
21
|
+
function m(e) {
|
|
22
|
+
if (!v) {
|
|
23
|
+
if (v = !0, O = e, e = c(e), i !== void 0 && t.hasValue) {
|
|
24
|
+
var o = t.value;
|
|
25
|
+
if (i(o, e))
|
|
26
|
+
return l = o;
|
|
27
|
+
}
|
|
28
|
+
return l = e;
|
|
29
|
+
}
|
|
30
|
+
if (o = l, T(O, e))
|
|
31
|
+
return o;
|
|
32
|
+
var E = c(e);
|
|
33
|
+
return i !== void 0 && i(o, E) ? (O = e, o) : (O = e, l = E);
|
|
34
|
+
}
|
|
35
|
+
var v = !1, O, l, L = a === void 0 ? null : a;
|
|
36
|
+
return [
|
|
37
|
+
function() {
|
|
38
|
+
return m(u());
|
|
39
|
+
},
|
|
40
|
+
L === null ? void 0 : function() {
|
|
41
|
+
return m(L());
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
},
|
|
45
|
+
[u, a, c, i]
|
|
46
|
+
);
|
|
47
|
+
var f = V(r, _[0], _[1]);
|
|
48
|
+
return S(
|
|
49
|
+
function() {
|
|
50
|
+
t.hasValue = !0, t.value = f;
|
|
51
|
+
},
|
|
52
|
+
[f]
|
|
53
|
+
), G(f), f;
|
|
54
|
+
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
55
|
+
}(), d);
|
|
24
56
|
}
|
|
25
57
|
export {
|
|
26
|
-
|
|
58
|
+
H as __require
|
|
27
59
|
};
|
package/index.es189.js
CHANGED
|
@@ -1,13 +1,235 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useMemo as l, useLayoutEffect as R, useEffect as g, useRef as o, useCallback as i } from "react";
|
|
2
|
+
function Y() {
|
|
3
|
+
for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
|
|
4
|
+
t[e] = arguments[e];
|
|
5
|
+
return l(
|
|
6
|
+
() => (u) => {
|
|
7
|
+
t.forEach((r) => r(u));
|
|
8
|
+
},
|
|
9
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
10
|
+
t
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
const D = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
14
|
+
function a(n) {
|
|
15
|
+
const t = Object.prototype.toString.call(n);
|
|
16
|
+
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
17
|
+
t === "[object global]";
|
|
18
|
+
}
|
|
19
|
+
function b(n) {
|
|
20
|
+
return "nodeType" in n;
|
|
21
|
+
}
|
|
22
|
+
function c(n) {
|
|
23
|
+
var t, e;
|
|
24
|
+
return n ? a(n) ? n : b(n) && (t = (e = n.ownerDocument) == null ? void 0 : e.defaultView) != null ? t : window : window;
|
|
25
|
+
}
|
|
26
|
+
function j(n) {
|
|
27
|
+
const {
|
|
28
|
+
Document: t
|
|
29
|
+
} = c(n);
|
|
30
|
+
return n instanceof t;
|
|
31
|
+
}
|
|
32
|
+
function C(n) {
|
|
33
|
+
return a(n) ? !1 : n instanceof c(n).HTMLElement;
|
|
34
|
+
}
|
|
35
|
+
function L(n) {
|
|
36
|
+
return n instanceof c(n).SVGElement;
|
|
37
|
+
}
|
|
38
|
+
function x(n) {
|
|
39
|
+
return n ? a(n) ? n.document : b(n) ? j(n) ? n : C(n) || L(n) ? n.ownerDocument : document : document : document;
|
|
40
|
+
}
|
|
41
|
+
const E = D ? R : g;
|
|
42
|
+
function M(n) {
|
|
43
|
+
const t = o(n);
|
|
44
|
+
return E(() => {
|
|
45
|
+
t.current = n;
|
|
46
|
+
}), i(function() {
|
|
47
|
+
for (var e = arguments.length, u = new Array(e), r = 0; r < e; r++)
|
|
48
|
+
u[r] = arguments[r];
|
|
49
|
+
return t.current == null ? void 0 : t.current(...u);
|
|
50
|
+
}, []);
|
|
51
|
+
}
|
|
52
|
+
function A() {
|
|
53
|
+
const n = o(null), t = i((u, r) => {
|
|
54
|
+
n.current = setInterval(u, r);
|
|
55
|
+
}, []), e = i(() => {
|
|
56
|
+
n.current !== null && (clearInterval(n.current), n.current = null);
|
|
57
|
+
}, []);
|
|
58
|
+
return [t, e];
|
|
59
|
+
}
|
|
60
|
+
function I(n, t) {
|
|
61
|
+
t === void 0 && (t = [n]);
|
|
62
|
+
const e = o(n);
|
|
63
|
+
return E(() => {
|
|
64
|
+
e.current !== n && (e.current = n);
|
|
65
|
+
}, t), e;
|
|
66
|
+
}
|
|
67
|
+
function v(n, t) {
|
|
68
|
+
const e = o();
|
|
69
|
+
return l(
|
|
70
|
+
() => {
|
|
71
|
+
const u = n(e.current);
|
|
72
|
+
return e.current = u, u;
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
75
|
+
[...t]
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
function N(n) {
|
|
79
|
+
const t = M(n), e = o(null), u = i(
|
|
80
|
+
(r) => {
|
|
81
|
+
r !== e.current && (t == null || t(r, e.current)), e.current = r;
|
|
82
|
+
},
|
|
83
|
+
//eslint-disable-next-line
|
|
84
|
+
[]
|
|
85
|
+
);
|
|
86
|
+
return [e, u];
|
|
87
|
+
}
|
|
88
|
+
function F(n) {
|
|
89
|
+
const t = o();
|
|
90
|
+
return g(() => {
|
|
91
|
+
t.current = n;
|
|
92
|
+
}, [n]), t.current;
|
|
93
|
+
}
|
|
94
|
+
let f = {};
|
|
95
|
+
function H(n, t) {
|
|
96
|
+
return l(() => {
|
|
97
|
+
if (t)
|
|
98
|
+
return t;
|
|
99
|
+
const e = f[n] == null ? 0 : f[n] + 1;
|
|
100
|
+
return f[n] = e, n + "-" + e;
|
|
101
|
+
}, [n, t]);
|
|
102
|
+
}
|
|
103
|
+
function S(n) {
|
|
104
|
+
return function(t) {
|
|
105
|
+
for (var e = arguments.length, u = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
106
|
+
u[r - 1] = arguments[r];
|
|
107
|
+
return u.reduce((s, T) => {
|
|
108
|
+
const y = Object.entries(T);
|
|
109
|
+
for (const [d, p] of y) {
|
|
110
|
+
const m = s[d];
|
|
111
|
+
m != null && (s[d] = m + n * p);
|
|
112
|
+
}
|
|
113
|
+
return s;
|
|
114
|
+
}, {
|
|
115
|
+
...t
|
|
116
|
+
});
|
|
9
117
|
};
|
|
10
118
|
}
|
|
119
|
+
const W = /* @__PURE__ */ S(1), q = /* @__PURE__ */ S(-1);
|
|
120
|
+
function O(n) {
|
|
121
|
+
return "clientX" in n && "clientY" in n;
|
|
122
|
+
}
|
|
123
|
+
function z(n) {
|
|
124
|
+
if (!n)
|
|
125
|
+
return !1;
|
|
126
|
+
const {
|
|
127
|
+
KeyboardEvent: t
|
|
128
|
+
} = c(n.target);
|
|
129
|
+
return t && n instanceof t;
|
|
130
|
+
}
|
|
131
|
+
function V(n) {
|
|
132
|
+
if (!n)
|
|
133
|
+
return !1;
|
|
134
|
+
const {
|
|
135
|
+
TouchEvent: t
|
|
136
|
+
} = c(n.target);
|
|
137
|
+
return t && n instanceof t;
|
|
138
|
+
}
|
|
139
|
+
function G(n) {
|
|
140
|
+
if (V(n)) {
|
|
141
|
+
if (n.touches && n.touches.length) {
|
|
142
|
+
const {
|
|
143
|
+
clientX: t,
|
|
144
|
+
clientY: e
|
|
145
|
+
} = n.touches[0];
|
|
146
|
+
return {
|
|
147
|
+
x: t,
|
|
148
|
+
y: e
|
|
149
|
+
};
|
|
150
|
+
} else if (n.changedTouches && n.changedTouches.length) {
|
|
151
|
+
const {
|
|
152
|
+
clientX: t,
|
|
153
|
+
clientY: e
|
|
154
|
+
} = n.changedTouches[0];
|
|
155
|
+
return {
|
|
156
|
+
x: t,
|
|
157
|
+
y: e
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return O(n) ? {
|
|
162
|
+
x: n.clientX,
|
|
163
|
+
y: n.clientY
|
|
164
|
+
} : null;
|
|
165
|
+
}
|
|
166
|
+
const w = /* @__PURE__ */ Object.freeze({
|
|
167
|
+
Translate: {
|
|
168
|
+
toString(n) {
|
|
169
|
+
if (!n)
|
|
170
|
+
return;
|
|
171
|
+
const {
|
|
172
|
+
x: t,
|
|
173
|
+
y: e
|
|
174
|
+
} = n;
|
|
175
|
+
return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
Scale: {
|
|
179
|
+
toString(n) {
|
|
180
|
+
if (!n)
|
|
181
|
+
return;
|
|
182
|
+
const {
|
|
183
|
+
scaleX: t,
|
|
184
|
+
scaleY: e
|
|
185
|
+
} = n;
|
|
186
|
+
return "scaleX(" + t + ") scaleY(" + e + ")";
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
Transform: {
|
|
190
|
+
toString(n) {
|
|
191
|
+
if (n)
|
|
192
|
+
return [w.Translate.toString(n), w.Scale.toString(n)].join(" ");
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
Transition: {
|
|
196
|
+
toString(n) {
|
|
197
|
+
let {
|
|
198
|
+
property: t,
|
|
199
|
+
duration: e,
|
|
200
|
+
easing: u
|
|
201
|
+
} = n;
|
|
202
|
+
return t + " " + e + "ms " + u;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}), h = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
206
|
+
function K(n) {
|
|
207
|
+
return n.matches(h) ? n : n.querySelector(h);
|
|
208
|
+
}
|
|
11
209
|
export {
|
|
12
|
-
|
|
210
|
+
w as CSS,
|
|
211
|
+
W as add,
|
|
212
|
+
D as canUseDOM,
|
|
213
|
+
K as findFirstFocusableNode,
|
|
214
|
+
G as getEventCoordinates,
|
|
215
|
+
x as getOwnerDocument,
|
|
216
|
+
c as getWindow,
|
|
217
|
+
O as hasViewportRelativeCoordinates,
|
|
218
|
+
j as isDocument,
|
|
219
|
+
C as isHTMLElement,
|
|
220
|
+
z as isKeyboardEvent,
|
|
221
|
+
b as isNode,
|
|
222
|
+
L as isSVGElement,
|
|
223
|
+
V as isTouchEvent,
|
|
224
|
+
a as isWindow,
|
|
225
|
+
q as subtract,
|
|
226
|
+
Y as useCombinedRefs,
|
|
227
|
+
M as useEvent,
|
|
228
|
+
A as useInterval,
|
|
229
|
+
E as useIsomorphicLayoutEffect,
|
|
230
|
+
I as useLatestValue,
|
|
231
|
+
v as useLazyMemo,
|
|
232
|
+
N as useNodeRef,
|
|
233
|
+
F as usePrevious,
|
|
234
|
+
H as useUniqueId
|
|
13
235
|
};
|
package/index.es190.js
CHANGED
|
@@ -1,41 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import a, { useState as r, useCallback as c } from "react";
|
|
2
|
+
const d = {
|
|
3
|
+
display: "none"
|
|
4
|
+
};
|
|
5
|
+
function u(e) {
|
|
6
|
+
let {
|
|
7
|
+
id: n,
|
|
8
|
+
value: t
|
|
9
|
+
} = e;
|
|
10
|
+
return a.createElement("div", {
|
|
11
|
+
id: n,
|
|
12
|
+
style: d
|
|
13
|
+
}, t);
|
|
14
|
+
}
|
|
15
|
+
function s(e) {
|
|
16
|
+
let {
|
|
17
|
+
id: n,
|
|
18
|
+
announcement: t,
|
|
19
|
+
ariaLiveType: i = "assertive"
|
|
20
|
+
} = e;
|
|
21
|
+
const o = {
|
|
22
|
+
position: "fixed",
|
|
23
|
+
top: 0,
|
|
24
|
+
left: 0,
|
|
25
|
+
width: 1,
|
|
26
|
+
height: 1,
|
|
27
|
+
margin: -1,
|
|
28
|
+
border: 0,
|
|
29
|
+
padding: 0,
|
|
30
|
+
overflow: "hidden",
|
|
31
|
+
clip: "rect(0 0 0 0)",
|
|
32
|
+
clipPath: "inset(100%)",
|
|
33
|
+
whiteSpace: "nowrap"
|
|
34
|
+
};
|
|
35
|
+
return a.createElement("div", {
|
|
36
|
+
id: n,
|
|
37
|
+
style: o,
|
|
38
|
+
role: "status",
|
|
39
|
+
"aria-live": i,
|
|
40
|
+
"aria-atomic": !0
|
|
41
|
+
}, t);
|
|
42
|
+
}
|
|
43
|
+
function p() {
|
|
44
|
+
const [e, n] = r("");
|
|
45
|
+
return {
|
|
46
|
+
announce: c((i) => {
|
|
47
|
+
i != null && n(i);
|
|
48
|
+
}, []),
|
|
49
|
+
announcement: e
|
|
50
|
+
};
|
|
38
51
|
}
|
|
39
52
|
export {
|
|
40
|
-
|
|
53
|
+
u as HiddenText,
|
|
54
|
+
s as LiveRegion,
|
|
55
|
+
p as useAnnouncement
|
|
41
56
|
};
|