@okam/stack-ui 1.44.1 → 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 +56 -0
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index149.js +1 -1
- package/index149.mjs +3 -3
- package/index155.js +1 -1
- package/index155.mjs +1 -1
- 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 -1
- package/index161.mjs +2 -2
- package/index165.js +1 -1
- package/index165.mjs +2 -2
- package/index166.js +1 -1
- package/index166.mjs +4 -4
- package/index167.js +1 -1
- package/index167.mjs +3 -3
- package/index168.js +1 -1
- package/index168.mjs +9 -9
- package/index169.js +1 -1
- package/index169.mjs +2 -2
- package/index174.js +1 -1
- package/index174.mjs +2 -2
- package/index179.js +1 -1
- package/index179.mjs +4 -4
- package/index180.js +1 -1
- package/index180.mjs +1 -1
- package/index181.js +1 -1
- package/index181.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +3 -3
- package/index185.js +1 -1
- package/index185.mjs +3 -3
- package/index186.js +1 -1
- package/index186.mjs +23 -23
- package/index187.js +1 -1
- package/index187.mjs +12 -12
- package/index188.js +1 -1
- package/index188.mjs +5 -2024
- 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 +56 -200
- package/index192.js +1 -1
- package/index192.mjs +186 -62
- package/index193.js +1 -1
- package/index193.mjs +189 -129
- package/index194.js +1 -1
- package/index194.mjs +55 -115
- package/index195.js +1 -1
- package/index195.mjs +127 -208
- package/index196.js +1 -1
- package/index196.mjs +107 -173
- package/index197.js +1 -1
- package/index197.mjs +215 -60
- package/index198.js +1 -1
- package/index198.mjs +178 -267
- package/index199.js +1 -1
- package/index199.mjs +63 -92
- package/index200.js +1 -1
- package/index200.mjs +254 -163
- package/index201.js +1 -1
- package/index201.mjs +91 -77
- package/index202.js +1 -1
- package/index202.mjs +183 -53
- package/index203.js +1 -1
- package/index203.mjs +72 -114
- package/index204.js +1 -1
- package/index204.mjs +51 -109
- package/index205.js +1 -1
- package/index205.mjs +112 -108
- package/index206.js +1 -1
- package/index206.mjs +109 -65
- package/index207.js +1 -1
- package/index207.mjs +117 -105
- package/index208.js +1 -1
- package/index208.mjs +68 -48
- package/index209.js +1 -1
- package/index209.mjs +108 -91
- package/index210.js +1 -1
- package/index210.mjs +36 -54
- package/index211.js +1 -1
- package/index211.mjs +78 -41
- package/index212.js +1 -1
- package/index212.mjs +52 -81
- package/index213.js +1 -5
- package/index213.mjs +42 -66
- package/index214.js +1 -1
- package/index214.mjs +100 -12
- package/index215.js +5 -1
- package/index215.mjs +80 -5
- package/index216.js +1 -2
- package/index216.mjs +11 -49
- package/index217.js +1 -1
- package/index217.mjs +124 -9
- package/index218.js +1 -1
- package/index218.mjs +132 -56
- package/index219.js +1 -1
- package/index219.mjs +73 -131
- package/index220.js +1 -1
- package/index220.mjs +14 -14
- package/index221.js +1 -1
- package/index221.mjs +85 -33
- package/index222.js +1 -1
- package/index222.mjs +104 -229
- package/index223.js +1 -1
- package/index223.mjs +4 -125
- package/index224.js +1 -1
- package/index224.mjs +3 -72
- package/index225.js +1 -7
- package/index225.mjs +117 -431
- package/index226.js +1 -1
- package/index226.mjs +29 -58
- package/index227.js +1 -1
- package/index227.mjs +51 -54
- package/index228.js +1 -1
- package/index228.mjs +45 -4
- package/index229.js +1 -1
- package/index229.mjs +36 -24
- package/index230.js +1 -1
- package/index230.mjs +106 -40
- package/index231.js +1 -1
- package/index231.mjs +77 -5
- package/index232.js +1 -1
- package/index232.mjs +100 -23
- package/index233.js +1 -1
- package/index233.mjs +98 -13
- package/index234.js +1 -1
- package/index234.mjs +130 -4
- package/index235.js +1 -1
- package/index235.mjs +190 -14
- package/index236.js +1 -1
- package/index236.mjs +4 -43
- package/index237.js +1 -1
- package/index237.mjs +25 -43
- package/index238.js +1 -1
- package/index238.mjs +44 -29
- package/index239.js +1 -1
- package/index239.mjs +4 -30
- package/index240.js +1 -1
- package/index240.mjs +24 -10
- package/index241.js +1 -1
- package/index241.mjs +11 -28
- package/index242.js +1 -1
- package/index242.mjs +4 -15
- package/index243.js +1 -1
- package/index243.mjs +14 -9
- package/index244.js +1 -1
- package/index244.mjs +42 -6
- package/index245.js +1 -1
- package/index245.mjs +58 -5
- package/index246.js +1 -1
- package/index246.mjs +43 -7
- package/index247.js +1 -1
- package/index247.mjs +30 -27
- package/index248.js +1 -1
- package/index248.mjs +29 -15
- package/index249.js +1 -1
- package/index249.mjs +14 -44
- package/index250.js +1 -1
- package/index250.mjs +10 -8
- package/index251.js +1 -1
- package/index251.mjs +27 -14
- package/index252.js +1 -1
- package/index252.mjs +16 -3
- package/index253.js +1 -1
- package/index253.mjs +9 -19
- package/index254.js +1 -1
- package/index254.mjs +6 -34
- package/index255.js +1 -1
- package/index255.mjs +5 -22
- package/index256.js +1 -1
- package/index256.mjs +7 -27
- package/index257.js +1 -1
- package/index257.mjs +27 -128
- package/index258.js +1 -1
- package/index258.mjs +17 -190
- package/index259.js +1 -1
- package/index259.mjs +43 -8
- package/index260.js +1 -1
- package/index260.mjs +8 -3
- package/index261.js +1 -1
- package/index261.mjs +15 -35
- package/index262.js +1 -1
- package/index262.mjs +3 -6
- package/index263.js +1 -1
- package/index263.mjs +19 -29
- package/index264.js +1 -1
- package/index264.mjs +34 -6
- package/index265.js +1 -1
- package/index265.mjs +20 -122
- package/index266.js +1 -1
- package/index266.mjs +8 -133
- package/index267.js +1 -1
- package/index267.mjs +3 -75
- package/index268.js +1 -1
- package/index268.mjs +36 -14
- package/index269.js +1 -1
- package/index269.mjs +5 -95
- package/index270.js +1 -1
- package/index270.mjs +28 -105
- package/index271.js +1 -1
- package/index271.mjs +6 -4
- package/index272.js +1 -1
- package/index272.mjs +9 -3
- package/index273.js +1 -1
- package/index273.mjs +130 -122
- package/index274.js +1 -1
- package/index274.mjs +37 -23
- package/index275.js +1 -1
- package/index275.mjs +231 -51
- package/index276.js +1 -1
- package/index276.mjs +122 -41
- package/index277.js +1 -1
- package/index277.mjs +70 -35
- package/index278.js +7 -1
- package/index278.mjs +429 -103
- package/index279.js +1 -1
- package/index279.mjs +58 -77
- package/index280.js +1 -1
- package/index280.mjs +52 -99
- package/index281.js +1 -1
- package/index281.mjs +27 -97
- package/index282.js +1 -1
- package/index282.mjs +28 -141
- package/index283.js +1 -1
- package/index283.mjs +140 -209
- package/index284.js +1 -1
- package/index284.mjs +213 -22
- package/index285.js +1 -1
- package/index285.mjs +20 -47
- package/index286.js +1 -1
- package/index286.mjs +45 -42
- package/index287.js +1 -6
- package/index287.mjs +41 -108
- package/index288.js +6 -1
- package/index288.mjs +114 -72
- package/index289.js +1 -1
- package/index289.mjs +72 -75
- package/index290.js +1 -1
- package/index290.mjs +74 -7
- package/index291.js +1 -1
- package/index291.mjs +7 -11
- package/index292.js +1 -1
- package/index292.mjs +10 -30
- package/index293.js +1 -1
- package/index293.mjs +4 -3
- package/index294.js +1 -1
- package/index294.mjs +3 -4
- package/index329.js +1 -1
- package/index329.mjs +1 -1
- package/index331.js +1 -1
- package/index331.mjs +4 -4
- package/index332.js +1 -1
- package/index332.mjs +4 -4
- package/index333.js +1 -1
- package/index333.mjs +5 -5
- package/index335.js +1 -1
- package/index335.mjs +2 -2
- package/index336.js +1 -1
- package/index336.mjs +4 -4
- package/index339.js +1 -1
- package/index339.mjs +3 -3
- package/index342.js +1 -1
- package/index342.mjs +1 -1
- package/index345.js +1 -1
- package/index345.mjs +1 -1
- package/logger.d.ts +2 -2
- package/package.json +2 -2
package/index249.mjs
CHANGED
|
@@ -1,47 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
}
|
|
1
|
+
import { useId as b } from "./index185.mjs";
|
|
2
|
+
function t(r, a) {
|
|
3
|
+
let { id: i, "aria-label": l, "aria-labelledby": e } = r;
|
|
4
|
+
return i = b(i), e && l ? e = [
|
|
5
|
+
.../* @__PURE__ */ new Set([
|
|
6
|
+
i,
|
|
7
|
+
...e.trim().split(/\s+/)
|
|
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
|
+
};
|
|
43
14
|
}
|
|
44
15
|
export {
|
|
45
|
-
|
|
46
|
-
B as scrollIntoViewport
|
|
16
|
+
t as useLabels
|
|
47
17
|
};
|
package/index250.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index236.js"),f=require("react");function a(c,t){const e=f.useRef(!0),u=f.useRef(null);r.useLayoutEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),r.useLayoutEffect(()=>{e.current?e.current=!1:(!u.current||t.some((s,o)=>!Object.is(s,u[o])))&&c(),u.current=t},t)}exports.useUpdateLayoutEffect=a;
|
package/index250.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useLayoutEffect as f } from "./index236.mjs";
|
|
2
|
+
import { useRef as u } from "react";
|
|
3
|
+
function i(c, r) {
|
|
4
|
+
const t = u(!0), e = u(null);
|
|
5
|
+
f(() => (t.current = !0, () => {
|
|
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);
|
|
7
10
|
}
|
|
8
11
|
export {
|
|
9
|
-
|
|
10
|
-
p as isVirtualPointerEvent
|
|
12
|
+
i as useUpdateLayoutEffect
|
|
11
13
|
};
|
package/index251.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("./index252.js"),d=require("react");function v(){return typeof window.ResizeObserver<"u"}function b(i){const{ref:e,box:t,onResize:o}=i;let n=u.useEffectEvent(o);d.useEffect(()=>{let r=e==null?void 0:e.current;if(r)if(v()){const s=new window.ResizeObserver(f=>{f.length&&n()});return s.observe(r,{box:t}),()=>{r&&s.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[e,t])}exports.useResizeObserver=b;
|
package/index251.mjs
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import { useEffectEvent as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useEffectEvent as a } from "./index252.mjs";
|
|
2
|
+
import { useEffect as d } from "react";
|
|
3
|
+
function v() {
|
|
4
|
+
return typeof window.ResizeObserver < "u";
|
|
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
|
+
};
|
|
13
25
|
}, [
|
|
14
|
-
|
|
26
|
+
e,
|
|
27
|
+
s
|
|
15
28
|
]);
|
|
16
29
|
}
|
|
17
30
|
export {
|
|
18
|
-
|
|
31
|
+
c as useResizeObserver
|
|
19
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,5 +1,18 @@
|
|
|
1
|
-
|
|
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;
|
|
9
|
+
}, [
|
|
10
|
+
c
|
|
11
|
+
]), n((...r) => {
|
|
12
|
+
const e = t.current;
|
|
13
|
+
return e == null ? void 0 : e(...r);
|
|
14
|
+
}, []);
|
|
15
|
+
}
|
|
2
16
|
export {
|
|
3
|
-
|
|
4
|
-
c as FOCUS_EVENT
|
|
17
|
+
d as useEffectEvent
|
|
5
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,22 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
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
|
+
});
|
|
18
9
|
}
|
|
19
10
|
export {
|
|
20
|
-
|
|
21
|
-
r as willOpenKeyboard
|
|
11
|
+
u as useSyncRef
|
|
22
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,37 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"button:not([disabled])",
|
|
7
|
-
"a[href]",
|
|
8
|
-
"area[href]",
|
|
9
|
-
"summary",
|
|
10
|
-
"iframe",
|
|
11
|
-
"object",
|
|
12
|
-
"embed",
|
|
13
|
-
"audio[controls]",
|
|
14
|
-
"video[controls]",
|
|
15
|
-
'[contenteditable]:not([contenteditable^="false"])',
|
|
16
|
-
"permission"
|
|
17
|
-
], o = t.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
18
|
-
t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
19
|
-
const i = t.join(':not([hidden]):not([tabindex="-1"]),');
|
|
20
|
-
function r(b) {
|
|
21
|
-
return b.matches(o) && n(b) && !a(b);
|
|
22
|
-
}
|
|
23
|
-
function s(b) {
|
|
24
|
-
return b.matches(i) && n(b) && !a(b);
|
|
25
|
-
}
|
|
26
|
-
function a(b) {
|
|
27
|
-
let e = b;
|
|
28
|
-
for (; e != null; ) {
|
|
29
|
-
if (e instanceof e.ownerDocument.defaultView.HTMLElement && e.inert) return !0;
|
|
30
|
-
e = e.parentElement;
|
|
31
|
-
}
|
|
32
|
-
return !1;
|
|
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;
|
|
33
6
|
}
|
|
34
7
|
export {
|
|
35
|
-
r as
|
|
36
|
-
s as isTabbable
|
|
8
|
+
r as getScrollParent
|
|
37
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,25 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
|
|
6
|
-
let { display: o, visibility: e } = i.style, a = o !== "none" && e !== "hidden" && e !== "collapse";
|
|
7
|
-
if (a) {
|
|
8
|
-
const { getComputedStyle: r } = i.ownerDocument.defaultView;
|
|
9
|
-
let { display: n, visibility: s } = r(i);
|
|
10
|
-
a = n !== "none" && s !== "hidden" && s !== "collapse";
|
|
11
|
-
}
|
|
12
|
-
return a;
|
|
13
|
-
}
|
|
14
|
-
function u(i, t) {
|
|
15
|
-
return !i.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
16
|
-
!i.hasAttribute("data-react-aria-prevent-focus") && (i.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? i.hasAttribute("open") : !0);
|
|
17
|
-
}
|
|
18
|
-
function f(i, t) {
|
|
19
|
-
return c ? i.checkVisibility({
|
|
20
|
-
visibilityProperty: !0
|
|
21
|
-
}) && !i.closest("[data-react-aria-prevent-focus]") : i.nodeName !== "#comment" && p(i) && u(i, t) && (!i.parentElement || f(i.parentElement, i));
|
|
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;
|
|
22
5
|
}
|
|
23
6
|
export {
|
|
24
|
-
|
|
7
|
+
c as isScrollable
|
|
25
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,30 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
V(() => {
|
|
8
|
-
let e = f.current;
|
|
9
|
-
e !== t && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${e ? "controlled" : "uncontrolled"} to ${t ? "controlled" : "uncontrolled"}.`), f.current = t;
|
|
10
|
-
}, [
|
|
11
|
-
t
|
|
12
|
-
]);
|
|
13
|
-
let a = t ? r : u;
|
|
14
|
-
y(() => {
|
|
15
|
-
c.current = a;
|
|
16
|
-
});
|
|
17
|
-
let [, p] = m(() => ({}), {}), E = _((e, ...b) => {
|
|
18
|
-
let n = typeof e == "function" ? e(c.current) : e;
|
|
19
|
-
Object.is(c.current, n) || (c.current = n, $(n), p(), o == null || o(n, ...b));
|
|
20
|
-
}, [
|
|
21
|
-
o
|
|
22
|
-
]);
|
|
23
|
-
return [
|
|
24
|
-
a,
|
|
25
|
-
E
|
|
26
|
-
];
|
|
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;
|
|
27
7
|
}
|
|
28
8
|
export {
|
|
29
|
-
|
|
9
|
+
s as getScrollParents
|
|
30
10
|
};
|
package/index257.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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,133 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
querySelector() {
|
|
21
|
-
return null;
|
|
22
|
-
},
|
|
23
|
-
querySelectorAll() {
|
|
24
|
-
return [];
|
|
25
|
-
},
|
|
26
|
-
getElementById() {
|
|
27
|
-
return null;
|
|
28
|
-
},
|
|
29
|
-
createEvent() {
|
|
30
|
-
return {
|
|
31
|
-
initEvent() {
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
createElement() {
|
|
36
|
-
return {
|
|
37
|
-
children: [],
|
|
38
|
-
childNodes: [],
|
|
39
|
-
style: {},
|
|
40
|
-
setAttribute() {
|
|
41
|
-
},
|
|
42
|
-
getElementsByTagName() {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
createElementNS() {
|
|
48
|
-
return {};
|
|
49
|
-
},
|
|
50
|
-
importNode() {
|
|
51
|
-
return null;
|
|
52
|
-
},
|
|
53
|
-
location: {
|
|
54
|
-
hash: "",
|
|
55
|
-
host: "",
|
|
56
|
-
hostname: "",
|
|
57
|
-
href: "",
|
|
58
|
-
origin: "",
|
|
59
|
-
pathname: "",
|
|
60
|
-
protocol: "",
|
|
61
|
-
search: ""
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
function c() {
|
|
65
|
-
const e = typeof document < "u" ? document : {};
|
|
66
|
-
return o(e, u), e;
|
|
67
|
-
}
|
|
68
|
-
const i = {
|
|
69
|
-
document: u,
|
|
70
|
-
navigator: {
|
|
71
|
-
userAgent: ""
|
|
72
|
-
},
|
|
73
|
-
location: {
|
|
74
|
-
hash: "",
|
|
75
|
-
host: "",
|
|
76
|
-
hostname: "",
|
|
77
|
-
href: "",
|
|
78
|
-
origin: "",
|
|
79
|
-
pathname: "",
|
|
80
|
-
protocol: "",
|
|
81
|
-
search: ""
|
|
82
|
-
},
|
|
83
|
-
history: {
|
|
84
|
-
replaceState() {
|
|
85
|
-
},
|
|
86
|
-
pushState() {
|
|
87
|
-
},
|
|
88
|
-
go() {
|
|
89
|
-
},
|
|
90
|
-
back() {
|
|
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);
|
|
91
20
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return this;
|
|
95
|
-
},
|
|
96
|
-
addEventListener() {
|
|
97
|
-
},
|
|
98
|
-
removeEventListener() {
|
|
99
|
-
},
|
|
100
|
-
getComputedStyle() {
|
|
101
|
-
return {
|
|
102
|
-
getPropertyValue() {
|
|
103
|
-
return "";
|
|
104
|
-
}
|
|
21
|
+
return e.refCount++, () => {
|
|
22
|
+
e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
|
|
105
23
|
};
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
screen: {},
|
|
112
|
-
setTimeout() {
|
|
113
|
-
},
|
|
114
|
-
clearTimeout() {
|
|
115
|
-
},
|
|
116
|
-
matchMedia() {
|
|
117
|
-
return {};
|
|
118
|
-
},
|
|
119
|
-
requestAnimationFrame(e) {
|
|
120
|
-
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
121
|
-
},
|
|
122
|
-
cancelAnimationFrame(e) {
|
|
123
|
-
typeof setTimeout > "u" || clearTimeout(e);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
function s() {
|
|
127
|
-
const e = typeof window < "u" ? window : {};
|
|
128
|
-
return o(e, i), e;
|
|
24
|
+
}, [
|
|
25
|
+
t
|
|
26
|
+
]), {
|
|
27
|
+
"aria-describedby": t ? f : void 0
|
|
28
|
+
};
|
|
129
29
|
}
|
|
130
30
|
export {
|
|
131
|
-
s as
|
|
132
|
-
c as g
|
|
31
|
+
s as useDescription
|
|
133
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;
|