@okam/stack-ui 1.44.0 → 1.44.3
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/CHANGELOG.md +82 -4
- package/components/Popover/interface.d.ts +3 -3
- package/components/TagGroup/interface.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index149.js +1 -1
- package/index149.mjs +4 -4
- package/index155.js +1 -1
- package/index155.mjs +4 -4
- package/index157.js +1 -1
- package/index157.mjs +4 -4
- package/index158.js +1 -1
- package/index158.mjs +2 -2
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +1 -1
- package/index161.js +1 -2
- package/index161.mjs +39 -12
- package/index162.js +1 -1
- package/index162.mjs +12 -38
- package/index163.js +2 -1
- package/index163.mjs +26 -11
- package/index164.js +2 -1
- package/index164.mjs +38 -13
- package/index165.js +1 -1
- package/index165.mjs +21 -38
- package/index166.js +1 -2
- package/index166.mjs +44 -24
- package/index167.js +1 -1
- package/index167.mjs +25 -22
- package/index168.js +1 -1
- package/index168.mjs +40 -45
- package/index169.js +2 -1
- package/index169.mjs +57 -25
- package/index170.js +1 -1
- package/index170.mjs +39 -41
- package/index171.js +1 -2
- package/index171.mjs +30 -57
- package/index172.js +2 -1
- package/index172.mjs +8 -38
- package/index173.js +2 -1
- package/index173.mjs +9 -30
- package/index174.js +1 -2
- package/index174.mjs +32 -9
- package/index175.js +1 -2
- package/index175.mjs +14 -9
- package/index176.js +1 -1
- package/index176.mjs +16 -31
- package/index177.js +1 -1
- package/index177.mjs +11 -15
- package/index178.js +2 -1
- package/index178.mjs +47 -16
- package/index179.js +1 -2
- package/index179.mjs +36 -46
- package/index180.js +1 -1
- package/index180.mjs +31 -36
- package/index181.js +1 -1
- package/index181.mjs +20 -31
- package/index182.js +1 -1
- package/index182.mjs +32 -18
- package/index183.js +1 -1
- package/index183.mjs +14 -36
- package/index185.js +1 -1
- package/index185.mjs +3 -3
- package/index186.js +1 -1
- package/index186.mjs +23 -23
- package/index188.js +1 -1
- package/index188.mjs +5 -2025
- package/index189.js +2 -1
- package/index189.mjs +48 -58
- package/index190.js +1 -1
- package/index190.mjs +2010 -174
- package/index191.js +1 -1
- package/index191.mjs +59 -5
- package/index192.js +1 -2
- package/index192.mjs +186 -47
- package/index193.js +1 -1
- package/index193.mjs +203 -11
- package/index194.js +1 -1
- package/index194.mjs +51 -190
- package/index195.js +1 -1
- package/index195.mjs +130 -51
- package/index196.js +1 -1
- package/index196.mjs +111 -130
- package/index197.js +1 -1
- package/index197.mjs +205 -105
- package/index198.js +1 -1
- package/index198.mjs +169 -203
- package/index199.js +1 -1
- package/index199.mjs +61 -182
- package/index2.mjs +35 -35
- package/index200.js +1 -1
- package/index200.mjs +270 -60
- package/index201.js +1 -1
- package/index201.mjs +89 -270
- package/index202.js +1 -1
- package/index202.mjs +182 -92
- package/index203.js +1 -1
- package/index203.mjs +78 -182
- package/index204.js +1 -1
- package/index204.mjs +49 -75
- package/index205.js +1 -1
- package/index205.mjs +117 -49
- package/index206.js +1 -1
- package/index206.mjs +108 -118
- package/index207.js +1 -1
- package/index207.mjs +112 -106
- package/index208.js +1 -1
- package/index208.mjs +63 -113
- package/index209.js +1 -1
- package/index209.mjs +108 -70
- package/index210.js +1 -1
- package/index210.mjs +50 -108
- package/index211.js +1 -1
- package/index211.mjs +75 -34
- package/index212.js +1 -1
- package/index212.mjs +48 -71
- package/index213.js +1 -1
- package/index213.mjs +43 -57
- package/index214.js +1 -1
- package/index214.mjs +86 -43
- package/index215.js +5 -1
- package/index215.mjs +62 -81
- package/index216.js +1 -5
- package/index216.mjs +11 -80
- package/index217.js +1 -1
- package/index217.mjs +119 -125
- package/index218.js +1 -1
- package/index218.mjs +129 -185
- package/index219.js +1 -1
- package/index219.mjs +72 -121
- package/index220.js +1 -1
- package/index220.mjs +12 -132
- package/index221.js +1 -1
- package/index221.mjs +89 -69
- package/index222.js +1 -1
- package/index222.mjs +104 -12
- package/index223.js +1 -1
- package/index223.mjs +4 -95
- package/index224.js +1 -1
- package/index224.mjs +3 -106
- package/index225.js +1 -1
- package/index225.mjs +125 -4
- package/index226.js +1 -1
- package/index226.mjs +29 -3
- package/index227.js +1 -1
- package/index227.mjs +39 -113
- package/index228.js +1 -1
- package/index228.mjs +34 -19
- package/index229.js +1 -1
- package/index229.mjs +26 -40
- package/index230.js +1 -1
- package/index230.mjs +98 -29
- package/index231.js +1 -1
- package/index231.mjs +68 -28
- package/index232.js +1 -1
- package/index232.mjs +78 -90
- package/index233.js +1 -1
- package/index233.mjs +98 -78
- package/index234.js +1 -1
- package/index234.mjs +125 -96
- package/index235.js +1 -1
- package/index235.mjs +191 -98
- package/index236.js +1 -1
- package/index236.mjs +4 -126
- package/index237.js +1 -1
- package/index237.mjs +20 -67
- package/index238.js +1 -7
- package/index238.mjs +39 -431
- package/index239.js +1 -1
- package/index239.mjs +4 -57
- package/index240.js +1 -1
- package/index240.mjs +24 -3
- package/index241.js +1 -1
- package/index241.mjs +12 -25
- package/index242.js +1 -1
- package/index242.mjs +4 -47
- package/index243.js +1 -1
- package/index243.mjs +14 -5
- package/index244.js +1 -1
- package/index244.mjs +40 -22
- package/index245.js +1 -1
- package/index245.mjs +57 -11
- package/index246.js +1 -1
- package/index246.mjs +43 -4
- package/index247.js +1 -1
- package/index247.mjs +31 -13
- package/index248.js +1 -1
- package/index248.mjs +31 -42
- package/index249.js +1 -1
- package/index249.mjs +13 -57
- package/index250.js +1 -1
- package/index250.mjs +10 -43
- package/index251.js +1 -1
- package/index251.mjs +28 -31
- package/index252.js +1 -1
- package/index252.mjs +14 -30
- package/index253.js +1 -1
- package/index253.mjs +9 -14
- package/index254.js +1 -1
- package/index254.mjs +6 -10
- package/index255.js +1 -1
- package/index255.mjs +5 -29
- package/index256.js +1 -1
- package/index256.mjs +7 -15
- package/index257.js +1 -1
- package/index257.mjs +29 -9
- package/index258.js +1 -1
- package/index258.mjs +17 -6
- package/index259.js +1 -1
- package/index259.mjs +44 -5
- package/index260.js +1 -1
- package/index260.mjs +8 -7
- package/index261.js +1 -1
- package/index261.mjs +13 -26
- package/index262.js +1 -1
- package/index262.mjs +3 -18
- package/index263.js +1 -1
- package/index263.mjs +18 -43
- package/index264.js +1 -1
- package/index264.mjs +33 -7
- package/index265.js +1 -1
- package/index265.mjs +22 -16
- package/index266.js +1 -1
- package/index266.mjs +10 -3
- package/index267.js +1 -1
- package/index267.mjs +2 -18
- package/index268.js +1 -1
- package/index268.mjs +36 -34
- package/index269.js +1 -1
- package/index269.mjs +5 -22
- package/index270.js +1 -1
- package/index270.mjs +28 -53
- package/index271.js +1 -1
- package/index271.mjs +6 -27
- package/index272.js +1 -1
- package/index272.mjs +9 -144
- package/index273.js +1 -1
- package/index273.mjs +127 -207
- package/index274.js +1 -1
- package/index274.mjs +43 -22
- package/index275.js +1 -1
- package/index275.mjs +226 -44
- package/index276.js +1 -1
- package/index276.mjs +121 -42
- package/index277.js +1 -6
- package/index277.mjs +64 -105
- package/index278.js +7 -1
- package/index278.mjs +440 -72
- package/index279.js +1 -1
- package/index279.mjs +56 -72
- package/index28.js +1 -1
- package/index28.mjs +38 -94
- package/index280.js +1 -1
- package/index280.mjs +54 -7
- package/index281.js +1 -1
- package/index281.mjs +27 -11
- package/index282.js +1 -1
- package/index282.mjs +31 -9
- package/index283.js +1 -1
- package/index283.mjs +136 -125
- package/index284.js +1 -1
- package/index284.mjs +209 -39
- package/index285.js +1 -1
- package/index285.mjs +19 -228
- package/index286.js +1 -1
- package/index286.mjs +46 -28
- package/index287.js +1 -1
- package/index287.mjs +45 -8
- package/index288.js +6 -1
- package/index288.mjs +113 -3
- package/index289.js +1 -1
- package/index289.mjs +72 -37
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index290.js +1 -1
- package/index290.mjs +74 -5
- package/index291.js +1 -1
- package/index291.mjs +7 -29
- package/index292.js +1 -1
- package/index292.mjs +11 -6
- package/index30.js +1 -1
- package/index30.mjs +1 -1
- package/index329.js +1 -1
- package/index329.mjs +17 -59
- package/index33.js +1 -1
- package/index33.mjs +2 -2
- package/index330.js +1 -1
- package/index330.mjs +30 -7
- package/index331.js +1 -1
- package/index331.mjs +63 -27
- package/index332.js +1 -1
- package/index332.mjs +15 -87
- package/index333.js +1 -1
- package/index333.mjs +48 -7
- package/index334.js +1 -1
- package/index334.mjs +7 -26
- package/index335.js +1 -1
- package/index335.mjs +26 -32
- package/index336.js +1 -1
- package/index336.mjs +87 -6
- package/index337.js +1 -1
- package/index337.mjs +9 -6
- package/index338.js +1 -1
- package/index338.mjs +23 -48
- package/index339.js +1 -1
- package/index339.mjs +32 -28
- package/index34.js +1 -1
- package/index34.mjs +3 -3
- package/index340.js +1 -1
- package/index340.mjs +6 -15
- package/index341.js +1 -1
- package/index341.mjs +6 -21
- package/index342.js +1 -1
- package/index342.mjs +28 -28
- package/index345.js +1 -1
- package/index345.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index36.js +1 -1
- package/index36.mjs +2 -2
- package/index38.js +1 -1
- package/index38.mjs +3 -3
- package/index39.js +1 -1
- package/index39.mjs +3 -3
- package/index40.js +1 -1
- package/index40.mjs +3 -3
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index44.js +1 -1
- package/index44.mjs +2 -2
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index48.js +1 -1
- package/index48.mjs +2 -2
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index56.js +1 -1
- package/index56.mjs +2 -2
- package/index57.js +1 -1
- package/index57.mjs +1 -1
- package/index59.js +1 -1
- package/index59.mjs +2 -2
- package/logger.d.ts +2 -2
- package/package.json +2 -2
package/index251.mjs
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return "propertyName" in e;
|
|
6
|
-
}
|
|
7
|
-
let d = (e) => {
|
|
8
|
-
if (!t(e) || !e.target) return;
|
|
9
|
-
let n = r.get(e.target);
|
|
10
|
-
n || (n = /* @__PURE__ */ new Set(), r.set(e.target, n), e.target.addEventListener("transitioncancel", i, {
|
|
11
|
-
once: !0
|
|
12
|
-
})), n.add(e.propertyName);
|
|
13
|
-
}, i = (e) => {
|
|
14
|
-
if (!t(e) || !e.target) return;
|
|
15
|
-
let n = r.get(e.target);
|
|
16
|
-
if (n && (n.delete(e.propertyName), n.size === 0 && (e.target.removeEventListener("transitioncancel", i), r.delete(e.target)), r.size === 0)) {
|
|
17
|
-
for (let s of a) s();
|
|
18
|
-
a.clear();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
document.body.addEventListener("transitionrun", d), document.body.addEventListener("transitionend", i);
|
|
1
|
+
import { useEffectEvent as a } from "./index252.mjs";
|
|
2
|
+
import { useEffect as d } from "react";
|
|
3
|
+
function v() {
|
|
4
|
+
return typeof window.ResizeObserver < "u";
|
|
22
5
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
6
|
+
function c(i) {
|
|
7
|
+
const { ref: e, box: s, onResize: o } = i;
|
|
8
|
+
let n = a(o);
|
|
9
|
+
d(() => {
|
|
10
|
+
let r = e == null ? void 0 : e.current;
|
|
11
|
+
if (r)
|
|
12
|
+
if (v()) {
|
|
13
|
+
const t = new window.ResizeObserver((f) => {
|
|
14
|
+
f.length && n();
|
|
15
|
+
});
|
|
16
|
+
return t.observe(r, {
|
|
17
|
+
box: s
|
|
18
|
+
}), () => {
|
|
19
|
+
r && t.unobserve(r);
|
|
20
|
+
};
|
|
21
|
+
} else
|
|
22
|
+
return window.addEventListener("resize", n, !1), () => {
|
|
23
|
+
window.removeEventListener("resize", n, !1);
|
|
24
|
+
};
|
|
25
|
+
}, [
|
|
26
|
+
e,
|
|
27
|
+
s
|
|
28
|
+
]);
|
|
32
29
|
}
|
|
33
30
|
export {
|
|
34
|
-
|
|
31
|
+
c as useResizeObserver
|
|
35
32
|
};
|
package/index252.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index236.js"),c=require("react");var t;const f=(t=c.useInsertionEffect)!==null&&t!==void 0?t:n.useLayoutEffect;function o(r){const u=c.useRef(null);return f(()=>{u.current=r},[r]),c.useCallback((...a)=>{const e=u.current;return e==null?void 0:e(...a)},[])}exports.useEffectEvent=o;
|
package/index252.mjs
CHANGED
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
eventTarget: e,
|
|
10
|
-
fn: n,
|
|
11
|
-
options: t
|
|
12
|
-
}), e.addEventListener(l, n, t);
|
|
13
|
-
}, []), a = f((e, l, r, t) => {
|
|
14
|
-
var n;
|
|
15
|
-
let d = ((n = o.current.get(r)) === null || n === void 0 ? void 0 : n.fn) || r;
|
|
16
|
-
e.removeEventListener(l, d, t), o.current.delete(r);
|
|
17
|
-
}, []), s = f(() => {
|
|
18
|
-
o.current.forEach((e, l) => {
|
|
19
|
-
a(e.eventTarget, e.type, l, e.options);
|
|
20
|
-
});
|
|
1
|
+
import { useLayoutEffect as f } from "./index236.mjs";
|
|
2
|
+
import o, { useRef as u, useCallback as n } from "react";
|
|
3
|
+
var a;
|
|
4
|
+
const s = (a = o.useInsertionEffect) !== null && a !== void 0 ? a : f;
|
|
5
|
+
function d(c) {
|
|
6
|
+
const t = u(null);
|
|
7
|
+
return s(() => {
|
|
8
|
+
t.current = c;
|
|
21
9
|
}, [
|
|
22
|
-
|
|
23
|
-
])
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
])
|
|
27
|
-
addGlobalListener: u,
|
|
28
|
-
removeGlobalListener: a,
|
|
29
|
-
removeAllGlobalListeners: s
|
|
30
|
-
};
|
|
10
|
+
c
|
|
11
|
+
]), n((...r) => {
|
|
12
|
+
const e = t.current;
|
|
13
|
+
return e == null ? void 0 : e(...r);
|
|
14
|
+
}, []);
|
|
31
15
|
}
|
|
32
16
|
export {
|
|
33
|
-
|
|
17
|
+
d as useEffectEvent
|
|
34
18
|
};
|
package/index253.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index236.js");function f(e,r){u.useLayoutEffect(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}exports.useSyncRef=f;
|
package/index253.mjs
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
].join(" ") : e && (e = e.trim().split(/\s+/).join(" ")), !l && !e && a && (l = a), {
|
|
10
|
-
id: i,
|
|
11
|
-
"aria-label": l,
|
|
12
|
-
"aria-labelledby": e
|
|
13
|
-
};
|
|
1
|
+
import { useLayoutEffect as f } from "./index236.mjs";
|
|
2
|
+
function u(r, e) {
|
|
3
|
+
f(() => {
|
|
4
|
+
if (r && r.ref && e)
|
|
5
|
+
return r.ref.current = e.current, () => {
|
|
6
|
+
r.ref && (r.ref.current = null);
|
|
7
|
+
};
|
|
8
|
+
});
|
|
14
9
|
}
|
|
15
10
|
export {
|
|
16
|
-
|
|
11
|
+
u as useSyncRef
|
|
17
12
|
};
|
package/index254.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index255.js");function r(n,l){let e=n;for(t.isScrollable(e,l)&&(e=e.parentElement);e&&!t.isScrollable(e,l);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}exports.getScrollParent=r;
|
package/index254.mjs
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t.current = !1;
|
|
7
|
-
}), []), f(() => {
|
|
8
|
-
t.current ? t.current = !1 : (!e.current || r.some((a, o) => !Object.is(a, e[o]))) && c(), e.current = r;
|
|
9
|
-
}, r);
|
|
1
|
+
import { isScrollable as l } from "./index255.mjs";
|
|
2
|
+
function r(n, t) {
|
|
3
|
+
let e = n;
|
|
4
|
+
for (l(e, t) && (e = e.parentElement); e && !l(e, t); ) e = e.parentElement;
|
|
5
|
+
return e || document.scrollingElement || document.documentElement;
|
|
10
6
|
}
|
|
11
7
|
export {
|
|
12
|
-
|
|
8
|
+
r as getScrollParent
|
|
13
9
|
};
|
package/index255.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,r){if(!e)return!1;let l=window.getComputedStyle(e),t=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return t&&r&&(t=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),t}exports.isScrollable=i;
|
package/index255.mjs
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
}
|
|
6
|
-
function c(i) {
|
|
7
|
-
const { ref: e, box: s, onResize: o } = i;
|
|
8
|
-
let n = a(o);
|
|
9
|
-
d(() => {
|
|
10
|
-
let r = e == null ? void 0 : e.current;
|
|
11
|
-
if (r)
|
|
12
|
-
if (v()) {
|
|
13
|
-
const t = new window.ResizeObserver((f) => {
|
|
14
|
-
f.length && n();
|
|
15
|
-
});
|
|
16
|
-
return t.observe(r, {
|
|
17
|
-
box: s
|
|
18
|
-
}), () => {
|
|
19
|
-
r && t.unobserve(r);
|
|
20
|
-
};
|
|
21
|
-
} else
|
|
22
|
-
return window.addEventListener("resize", n, !1), () => {
|
|
23
|
-
window.removeEventListener("resize", n, !1);
|
|
24
|
-
};
|
|
25
|
-
}, [
|
|
26
|
-
e,
|
|
27
|
-
s
|
|
28
|
-
]);
|
|
1
|
+
function c(l, r) {
|
|
2
|
+
if (!l) return !1;
|
|
3
|
+
let t = window.getComputedStyle(l), e = /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
4
|
+
return e && r && (e = l.scrollHeight !== l.clientHeight || l.scrollWidth !== l.clientWidth), e;
|
|
29
5
|
}
|
|
30
6
|
export {
|
|
31
|
-
c as
|
|
7
|
+
c as isScrollable
|
|
32
8
|
};
|
package/index256.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index255.js");function r(e,c){const t=[];for(;e&&e!==document.documentElement;)l.isScrollable(e,c)&&t.push(e),e=e.parentElement;return t}exports.getScrollParents=r;
|
package/index256.mjs
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return s(() => {
|
|
8
|
-
t.current = c;
|
|
9
|
-
}, [
|
|
10
|
-
c
|
|
11
|
-
]), n((...r) => {
|
|
12
|
-
const e = t.current;
|
|
13
|
-
return e == null ? void 0 : e(...r);
|
|
14
|
-
}, []);
|
|
1
|
+
import { isScrollable as r } from "./index255.mjs";
|
|
2
|
+
function s(e, t) {
|
|
3
|
+
const c = [];
|
|
4
|
+
for (; e && e !== document.documentElement; )
|
|
5
|
+
r(e, t) && c.push(e), e = e.parentElement;
|
|
6
|
+
return c;
|
|
15
7
|
}
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
s as getScrollParents
|
|
18
10
|
};
|
package/index257.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index236.js"),f=require("react");let l=0;const r=new Map;function i(t){let[u,a]=f.useState();return o.useLayoutEffect(()=>{if(!t)return;let e=r.get(t);if(e)a(e.element.id);else{let d=`react-aria-description-${l++}`;a(d);let n=document.createElement("div");n.id=d,n.style.display="none",n.textContent=t,document.body.appendChild(n),e={refCount:0,element:n},r.set(t,e)}return e.refCount++,()=>{e&&--e.refCount===0&&(e.element.remove(),r.delete(t))}},[t]),{"aria-describedby":t?u:void 0}}exports.useDescription=i;
|
package/index257.mjs
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import { useLayoutEffect as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useLayoutEffect as o } from "./index236.mjs";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
let u = 0;
|
|
4
|
+
const d = /* @__PURE__ */ new Map();
|
|
5
|
+
function s(t) {
|
|
6
|
+
let [f, n] = l();
|
|
7
|
+
return o(() => {
|
|
8
|
+
if (!t) return;
|
|
9
|
+
let e = d.get(t);
|
|
10
|
+
if (e)
|
|
11
|
+
n(e.element.id);
|
|
12
|
+
else {
|
|
13
|
+
let r = `react-aria-description-${u++}`;
|
|
14
|
+
n(r);
|
|
15
|
+
let a = document.createElement("div");
|
|
16
|
+
a.id = r, a.style.display = "none", a.textContent = t, document.body.appendChild(a), e = {
|
|
17
|
+
refCount: 0,
|
|
18
|
+
element: a
|
|
19
|
+
}, d.set(t, e);
|
|
20
|
+
}
|
|
21
|
+
return e.refCount++, () => {
|
|
22
|
+
e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
|
|
23
|
+
};
|
|
24
|
+
}, [
|
|
25
|
+
t
|
|
26
|
+
]), {
|
|
27
|
+
"aria-describedby": t ? f : void 0
|
|
28
|
+
};
|
|
9
29
|
}
|
|
10
30
|
export {
|
|
11
|
-
|
|
31
|
+
s as useDescription
|
|
12
32
|
};
|
package/index258.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index252.js"),s=require("react");function i(e,t,n,r){let u=l.useEffectEvent(n),c=n==null;s.useEffect(()=>{if(c||!e.current)return;let f=e.current;return f.addEventListener(t,u,r),()=>{f.removeEventListener(t,u,r)}},[e,t,r,c])}exports.useEvent=i;
|
package/index258.mjs
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { useEffectEvent as u } from "./index252.mjs";
|
|
2
|
+
import { useEffect as l } from "react";
|
|
3
|
+
function i(e, t, f, r) {
|
|
4
|
+
let a = u(f), n = f == null;
|
|
5
|
+
l(() => {
|
|
6
|
+
if (n || !e.current) return;
|
|
7
|
+
let c = e.current;
|
|
8
|
+
return c.addEventListener(t, a, r), () => {
|
|
9
|
+
c.removeEventListener(t, a, r);
|
|
10
|
+
};
|
|
11
|
+
}, [
|
|
12
|
+
e,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
n
|
|
16
|
+
]);
|
|
6
17
|
}
|
|
7
18
|
export {
|
|
8
|
-
|
|
19
|
+
i as useEvent
|
|
9
20
|
};
|
package/index259.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./index256.js");function L(o,e){let d=T(o,e,"left"),t=T(o,e,"top"),l=e.offsetWidth,s=e.offsetHeight,f=o.scrollLeft,r=o.scrollTop,{borderTopWidth:i,borderLeftWidth:n,scrollPaddingTop:c,scrollPaddingRight:a,scrollPaddingBottom:$,scrollPaddingLeft:I}=getComputedStyle(o),S=f+parseInt(n,10),u=r+parseInt(i,10),b=S+o.clientWidth,p=u+o.clientHeight,P=parseInt(c,10)||0,v=parseInt($,10)||0,h=parseInt(a,10)||0,g=parseInt(I,10)||0;d<=f+g?f=d-parseInt(n,10)-g:d+l>b-h&&(f+=d+l-b+h),t<=u+P?r=t-parseInt(i,10)-P:t+s>p-v&&(r+=t+s-p+v),o.scrollLeft=f,o.scrollTop=r}function T(o,e,d){const t=d==="left"?"offsetLeft":"offsetTop";let l=0;for(;e.offsetParent&&(l+=e[t],e.offsetParent!==o);){if(e.offsetParent.contains(o)){l-=o[t];break}e=e.offsetParent}return l}function k(o,e){if(o&&document.contains(o)){let f=document.scrollingElement||document.documentElement,r=window.getComputedStyle(f).overflow==="hidden";if(r){let i=W.getScrollParents(o);r||i.push(f);for(let n of i)L(n,o)}else{var d;let{left:i,top:n}=o.getBoundingClientRect();o==null||(d=o.scrollIntoView)===null||d===void 0||d.call(o,{block:"nearest"});let{left:c,top:a}=o.getBoundingClientRect();if(Math.abs(i-c)>1||Math.abs(n-a)>1){var t,l,s;e==null||(l=e.containingElement)===null||l===void 0||(t=l.scrollIntoView)===null||t===void 0||t.call(l,{block:"center",inline:"center"}),(s=o.scrollIntoView)===null||s===void 0||s.call(o,{block:"nearest"})}}}}exports.scrollIntoView=L;exports.scrollIntoViewport=k;
|
package/index259.mjs
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let t =
|
|
4
|
-
|
|
1
|
+
import { getScrollParents as I } from "./index256.mjs";
|
|
2
|
+
function W(o, e) {
|
|
3
|
+
let l = L(o, e, "left"), d = L(o, e, "top"), t = e.offsetWidth, s = e.offsetHeight, f = o.scrollLeft, r = o.scrollTop, { borderTopWidth: i, borderLeftWidth: c, scrollPaddingTop: n, scrollPaddingRight: a, scrollPaddingBottom: T, scrollPaddingLeft: g } = getComputedStyle(o), x = f + parseInt(c, 10), u = r + parseInt(i, 10), p = x + o.clientWidth, b = u + o.clientHeight, P = parseInt(n, 10) || 0, v = parseInt(T, 10) || 0, h = parseInt(a, 10) || 0, $ = parseInt(g, 10) || 0;
|
|
4
|
+
l <= f + $ ? f = l - parseInt(c, 10) - $ : l + t > p - h && (f += l + t - p + h), d <= u + P ? r = d - parseInt(i, 10) - P : d + s > b - v && (r += d + s - b + v), o.scrollLeft = f, o.scrollTop = r;
|
|
5
|
+
}
|
|
6
|
+
function L(o, e, l) {
|
|
7
|
+
const d = l === "left" ? "offsetLeft" : "offsetTop";
|
|
8
|
+
let t = 0;
|
|
9
|
+
for (; e.offsetParent && (t += e[d], e.offsetParent !== o); ) {
|
|
10
|
+
if (e.offsetParent.contains(o)) {
|
|
11
|
+
t -= o[d];
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
e = e.offsetParent;
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
function B(o, e) {
|
|
19
|
+
if (o && document.contains(o)) {
|
|
20
|
+
let f = document.scrollingElement || document.documentElement, r = window.getComputedStyle(f).overflow === "hidden";
|
|
21
|
+
if (r) {
|
|
22
|
+
let i = I(o);
|
|
23
|
+
r || i.push(f);
|
|
24
|
+
for (let c of i) W(c, o);
|
|
25
|
+
} else {
|
|
26
|
+
var l;
|
|
27
|
+
let { left: i, top: c } = o.getBoundingClientRect();
|
|
28
|
+
o == null || (l = o.scrollIntoView) === null || l === void 0 || l.call(o, {
|
|
29
|
+
block: "nearest"
|
|
30
|
+
});
|
|
31
|
+
let { left: n, top: a } = o.getBoundingClientRect();
|
|
32
|
+
if (Math.abs(i - n) > 1 || Math.abs(c - a) > 1) {
|
|
33
|
+
var d, t, s;
|
|
34
|
+
e == null || (t = e.containingElement) === null || t === void 0 || (d = t.scrollIntoView) === null || d === void 0 || d.call(t, {
|
|
35
|
+
block: "center",
|
|
36
|
+
inline: "center"
|
|
37
|
+
}), (s = o.scrollIntoView) === null || s === void 0 || s.call(o, {
|
|
38
|
+
block: "nearest"
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
5
43
|
}
|
|
6
44
|
export {
|
|
7
|
-
|
|
45
|
+
W as scrollIntoView,
|
|
46
|
+
B as scrollIntoViewport
|
|
8
47
|
};
|
package/index260.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index246.js");function t(i){return i.pointerType===""&&i.isTrusted?!0:r.isAndroid()&&i.pointerType?i.type==="click"&&i.buttons===1:i.detail===0&&!i.pointerType}function o(i){return!r.isAndroid()&&i.width===0&&i.height===0||i.width===1&&i.height===1&&i.pressure===0&&i.detail===0&&i.pointerType==="mouse"}exports.isVirtualClick=t;exports.isVirtualPointerEvent=o;
|
package/index260.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return
|
|
1
|
+
import { isAndroid as i } from "./index246.mjs";
|
|
2
|
+
function o(r) {
|
|
3
|
+
return r.pointerType === "" && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
|
|
4
|
+
}
|
|
5
|
+
function p(r) {
|
|
6
|
+
return !i() && r.width === 0 && r.height === 0 || r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse";
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
o as isVirtualClick,
|
|
10
|
+
p as isVirtualPointerEvent
|
|
10
11
|
};
|
package/index261.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index252.js"),u=require("react");function v(t,d,n){let o=i.useEffectEvent(()=>{n&&n(d)});u.useEffect(()=>{var r;let e=t==null||(r=t.current)===null||r===void 0?void 0:r.form;return e==null||e.addEventListener("reset",o),()=>{e==null||e.removeEventListener("reset",o)}},[t])}exports.useFormReset=v;
|
package/index261.mjs
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let e =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
else {
|
|
13
|
-
let r = `react-aria-description-${u++}`;
|
|
14
|
-
n(r);
|
|
15
|
-
let a = document.createElement("div");
|
|
16
|
-
a.id = r, a.style.display = "none", a.textContent = t, document.body.appendChild(a), e = {
|
|
17
|
-
refCount: 0,
|
|
18
|
-
element: a
|
|
19
|
-
}, d.set(t, e);
|
|
20
|
-
}
|
|
21
|
-
return e.refCount++, () => {
|
|
22
|
-
e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
|
|
1
|
+
import { useEffectEvent as n } from "./index252.mjs";
|
|
2
|
+
import { useEffect as v } from "react";
|
|
3
|
+
function l(t, i, o) {
|
|
4
|
+
let d = n(() => {
|
|
5
|
+
o && o(i);
|
|
6
|
+
});
|
|
7
|
+
v(() => {
|
|
8
|
+
var r;
|
|
9
|
+
let e = t == null || (r = t.current) === null || r === void 0 ? void 0 : r.form;
|
|
10
|
+
return e == null || e.addEventListener("reset", d), () => {
|
|
11
|
+
e == null || e.removeEventListener("reset", d);
|
|
23
12
|
};
|
|
24
13
|
}, [
|
|
25
14
|
t
|
|
26
|
-
])
|
|
27
|
-
"aria-describedby": t ? f : void 0
|
|
28
|
-
};
|
|
15
|
+
]);
|
|
29
16
|
}
|
|
30
17
|
export {
|
|
31
|
-
|
|
18
|
+
l as useFormReset
|
|
32
19
|
};
|
package/index262.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c="react-aria-clear-focus",e="react-aria-focus";exports.CLEAR_FOCUS_EVENT=c;exports.FOCUS_EVENT=e;
|
package/index262.mjs
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { useEffect as l } from "react";
|
|
3
|
-
function i(e, t, f, r) {
|
|
4
|
-
let a = u(f), n = f == null;
|
|
5
|
-
l(() => {
|
|
6
|
-
if (n || !e.current) return;
|
|
7
|
-
let c = e.current;
|
|
8
|
-
return c.addEventListener(t, a, r), () => {
|
|
9
|
-
c.removeEventListener(t, a, r);
|
|
10
|
-
};
|
|
11
|
-
}, [
|
|
12
|
-
e,
|
|
13
|
-
t,
|
|
14
|
-
r,
|
|
15
|
-
n
|
|
16
|
-
]);
|
|
17
|
-
}
|
|
1
|
+
const a = "react-aria-clear-focus", c = "react-aria-focus";
|
|
18
2
|
export {
|
|
19
|
-
|
|
3
|
+
a as CLEAR_FOCUS_EVENT,
|
|
4
|
+
c as FOCUS_EVENT
|
|
20
5
|
};
|
package/index263.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index246.js");function t(e){return n.isMac()?e.metaKey:e.ctrlKey}const a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o(e){return e instanceof HTMLInputElement&&!a.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.isCtrlKeyPressed=t;exports.willOpenKeyboard=o;
|
package/index263.mjs
CHANGED
|
@@ -1,47 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
l <= f + $ ? f = l - parseInt(c, 10) - $ : l + t > p - h && (f += l + t - p + h), d <= u + P ? r = d - parseInt(i, 10) - P : d + s > b - v && (r += d + s - b + v), o.scrollLeft = f, o.scrollTop = r;
|
|
1
|
+
import { isMac as n } from "./index246.mjs";
|
|
2
|
+
function o(e) {
|
|
3
|
+
return n() ? e.metaKey : e.ctrlKey;
|
|
5
4
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (o && document.contains(o)) {
|
|
20
|
-
let f = document.scrollingElement || document.documentElement, r = window.getComputedStyle(f).overflow === "hidden";
|
|
21
|
-
if (r) {
|
|
22
|
-
let i = I(o);
|
|
23
|
-
r || i.push(f);
|
|
24
|
-
for (let c of i) W(c, o);
|
|
25
|
-
} else {
|
|
26
|
-
var l;
|
|
27
|
-
let { left: i, top: c } = o.getBoundingClientRect();
|
|
28
|
-
o == null || (l = o.scrollIntoView) === null || l === void 0 || l.call(o, {
|
|
29
|
-
block: "nearest"
|
|
30
|
-
});
|
|
31
|
-
let { left: n, top: a } = o.getBoundingClientRect();
|
|
32
|
-
if (Math.abs(i - n) > 1 || Math.abs(c - a) > 1) {
|
|
33
|
-
var d, t, s;
|
|
34
|
-
e == null || (t = e.containingElement) === null || t === void 0 || (d = t.scrollIntoView) === null || d === void 0 || d.call(t, {
|
|
35
|
-
block: "center",
|
|
36
|
-
inline: "center"
|
|
37
|
-
}), (s = o.scrollIntoView) === null || s === void 0 || s.call(o, {
|
|
38
|
-
block: "nearest"
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
5
|
+
const a = /* @__PURE__ */ new Set([
|
|
6
|
+
"checkbox",
|
|
7
|
+
"radio",
|
|
8
|
+
"range",
|
|
9
|
+
"color",
|
|
10
|
+
"file",
|
|
11
|
+
"image",
|
|
12
|
+
"button",
|
|
13
|
+
"submit",
|
|
14
|
+
"reset"
|
|
15
|
+
]);
|
|
16
|
+
function r(e) {
|
|
17
|
+
return e instanceof HTMLInputElement && !a.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
43
18
|
}
|
|
44
19
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
o as isCtrlKeyPressed,
|
|
21
|
+
r as willOpenKeyboard
|
|
47
22
|
};
|
package/index264.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index265.js"),t=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],o=t.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a=t.join(':not([hidden]):not([tabindex="-1"]),');function d(e){return e.matches(o)&&n.isElementVisible(e)&&!i(e)}function s(e){return e.matches(a)&&n.isElementVisible(e)&&!i(e)}function i(e){let b=e;for(;b!=null;){if(b instanceof b.ownerDocument.defaultView.HTMLElement&&b.inert)return!0;b=b.parentElement}return!1}exports.isFocusable=d;exports.isTabbable=s;
|