@okam/stack-ui 1.35.4 → 1.35.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/index107.js +1 -1
- package/index107.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +3 -3
- package/index109.js +1 -1
- package/index109.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +1 -1
- package/index116.js +1 -1
- package/index116.mjs +3 -3
- package/index117.js +1 -1
- package/index117.mjs +3 -3
- package/index118.js +1 -1
- package/index118.mjs +1 -1
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index120.js +1 -1
- package/index120.mjs +239 -37
- package/index122.js +2 -1
- package/index122.mjs +39 -9
- package/index123.js +1 -2
- package/index123.mjs +10 -38
- package/index124.js +1 -1
- package/index124.mjs +37 -21
- package/index125.js +1 -1
- package/index125.mjs +8 -42
- package/index126.js +1 -1
- package/index126.mjs +22 -25
- package/index127.js +1 -1
- package/index127.mjs +42 -40
- package/index128.js +1 -2
- package/index128.mjs +25 -57
- package/index129.js +1 -1
- package/index129.mjs +41 -39
- package/index130.js +2 -1
- package/index130.mjs +57 -30
- package/index131.js +1 -1
- package/index131.mjs +38 -19
- package/index132.js +1 -1
- package/index132.mjs +30 -8
- package/index133.js +1 -1
- package/index133.mjs +20 -30
- package/index134.js +1 -1
- package/index134.mjs +8 -14
- package/index135.js +1 -1
- package/index135.mjs +29 -16
- package/index136.js +1 -1
- package/index136.mjs +15 -21
- package/index137.js +1 -1
- package/index137.mjs +17 -11
- package/index138.js +1 -2
- package/index138.mjs +17 -44
- package/index139.js +1 -1
- package/index139.mjs +47 -21
- package/index140.js +2 -1
- package/index140.mjs +19 -18
- package/index141.js +1 -1
- package/index141.mjs +21 -6
- package/index142.js +1 -1
- package/index142.mjs +6 -57
- package/index144.js +1 -1
- package/index144.mjs +12 -46
- package/index145.js +1 -1
- package/index145.mjs +54 -238
- package/index146.js +1 -2
- package/index146.mjs +46 -13
- package/index147.js +2 -1
- package/index147.mjs +12 -29
- package/index148.js +1 -1
- package/index148.mjs +30 -12
- package/index149.js +1 -1
- package/index149.mjs +5 -21
- package/index150.js +2 -1
- package/index150.mjs +49 -5
- package/index151.js +1 -2
- package/index151.mjs +20 -48
- package/index153.js +1 -1
- package/index153.mjs +68 -22
- package/index154.js +1 -1
- package/index154.mjs +370 -62
- package/index155.js +1 -1
- package/index155.mjs +44 -379
- package/index156.js +1 -1
- package/index156.mjs +4 -47
- package/index157.js +1 -1
- package/index157.mjs +25 -4
- package/index158.js +1 -1
- package/index158.mjs +46 -23
- package/index159.js +1 -1
- package/index159.mjs +4 -46
- package/index160.js +1 -1
- package/index160.mjs +24 -5
- package/index161.js +1 -1
- package/index161.mjs +11 -23
- package/index162.js +1 -1
- package/index162.mjs +4 -12
- package/index163.js +1 -1
- package/index163.mjs +14 -4
- package/index164.js +1 -1
- package/index164.mjs +21 -14
- package/index165.js +1 -1
- package/index165.mjs +42 -21
- package/index166.js +1 -1
- package/index166.mjs +23 -41
- package/index167.js +1 -1
- package/index167.mjs +42 -24
- package/index168.js +1 -1
- package/index168.mjs +27 -41
- package/index169.js +1 -1
- package/index169.mjs +30 -27
- package/index170.js +1 -1
- package/index170.mjs +13 -30
- package/index171.js +1 -1
- package/index171.mjs +28 -14
- package/index172.js +1 -1
- package/index172.mjs +9 -28
- package/index173.js +1 -1
- package/index173.mjs +6 -9
- package/index174.js +1 -1
- package/index174.mjs +5 -6
- package/index175.js +1 -1
- package/index175.mjs +13 -5
- package/index176.js +1 -1
- package/index176.mjs +8 -13
- package/index177.js +1 -1
- package/index177.mjs +17 -8
- package/index178.js +1 -1
- package/index178.mjs +19 -17
- package/index179.js +1 -1
- package/index179.mjs +54 -19
- package/index18.js +1 -1
- package/index18.mjs +97 -25
- package/index180.js +1 -1
- package/index180.mjs +23 -50
- package/index181.js +1 -1
- package/index181.mjs +138 -122
- package/index182.js +1 -1
- package/index182.mjs +192 -129
- package/index183.js +1 -1
- package/index183.mjs +22 -44
- package/index184.js +1 -1
- package/index184.mjs +49 -14
- package/index185.js +1 -1
- package/index185.mjs +46 -93
- package/index186.js +1 -1
- package/index186.mjs +89 -98
- package/index187.js +1 -1
- package/index187.mjs +72 -5
- package/index188.js +1 -1
- package/index188.mjs +68 -3
- package/index189.js +1 -1
- package/index189.mjs +7 -125
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index190.js +1 -1
- package/index190.mjs +11 -29
- package/index191.js +1 -1
- package/index191.mjs +113 -40
- package/index192.js +1 -1
- package/index192.mjs +131 -41
- package/index193.js +1 -1
- package/index193.mjs +43 -36
- package/index194.js +1 -1
- package/index194.mjs +11 -110
- package/index195.js +1 -1
- package/index195.mjs +77 -59
- package/index196.js +1 -1
- package/index196.mjs +99 -94
- package/index197.js +1 -1
- package/index197.mjs +5 -98
- package/index198.js +1 -1
- package/index198.mjs +3 -140
- package/index199.js +1 -1
- package/index199.mjs +119 -191
- package/index200.js +1 -1
- package/index200.mjs +29 -22
- package/index201.js +1 -1
- package/index201.mjs +51 -49
- package/index202.js +1 -1
- package/index202.mjs +43 -47
- package/index203.js +1 -1
- package/index203.mjs +35 -95
- package/index204.js +1 -1
- package/index204.mjs +114 -72
- package/index205.js +1 -1
- package/index205.mjs +76 -67
- package/index206.js +1 -1
- package/index206.mjs +101 -7
- package/index207.js +1 -1
- package/index207.mjs +98 -12
- package/index23.js +1 -1
- package/index23.mjs +2 -2
- package/index235.js +1 -1
- package/index235.mjs +5 -5
- package/index236.js +1 -1
- package/index236.mjs +1 -1
- package/index237.js +1 -1
- package/index237.mjs +4 -4
- package/index238.js +1 -1
- package/index238.mjs +1 -1
- package/index239.js +1 -1
- package/index239.mjs +1 -1
- package/index24.js +1 -1
- package/index24.mjs +3 -3
- package/index240.js +1 -1
- package/index240.mjs +4 -4
- package/index241.js +1 -1
- package/index241.mjs +4 -4
- package/index242.js +1 -1
- package/index242.mjs +1 -1
- package/index243.js +1 -1
- package/index243.mjs +4 -4
- package/index244.js +1 -1
- package/index244.mjs +4 -4
- package/index245.js +1 -1
- package/index245.mjs +1 -1
- package/index246.js +1 -1
- package/index246.mjs +4 -4
- package/index247.js +1 -1
- package/index247.mjs +4 -4
- package/index248.js +1 -1
- package/index248.mjs +1 -1
- package/index249.js +1 -1
- package/index249.mjs +1 -1
- package/index25.js +1 -1
- package/index25.mjs +1 -1
- package/index250.js +1 -1
- package/index250.mjs +4 -4
- package/index251.js +1 -1
- package/index251.mjs +4 -4
- package/index252.js +1 -1
- package/index252.mjs +1 -1
- package/index253.js +1 -1
- package/index253.mjs +4 -4
- package/index254.js +1 -1
- package/index254.mjs +4 -4
- package/index255.js +1 -1
- package/index255.mjs +4 -4
- package/index256.js +1 -1
- package/index256.mjs +1 -1
- package/index257.js +1 -1
- package/index257.mjs +4 -4
- package/index258.js +1 -1
- package/index258.mjs +4 -4
- package/index259.js +1 -1
- package/index259.mjs +4 -4
- package/index26.js +1 -1
- package/index26.mjs +2 -2
- package/index260.js +1 -1
- package/index260.mjs +4 -4
- package/index261.js +1 -1
- package/index261.mjs +4 -4
- package/index262.js +1 -1
- package/index262.mjs +1 -1
- package/index263.js +1 -1
- package/index263.mjs +1 -1
- package/index264.js +1 -1
- package/index264.mjs +1 -1
- package/index265.js +1 -1
- package/index265.mjs +4 -4
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -4
- package/index268.js +1 -1
- package/index268.mjs +4 -4
- package/index269.js +1 -1
- package/index269.mjs +5 -5
- package/index278.js +1 -1
- package/index278.mjs +3 -3
- package/index28.js +1 -1
- package/index28.mjs +3 -3
- package/index280.js +1 -1
- package/index280.mjs +2 -2
- package/index281.js +1 -1
- package/index281.mjs +5 -5
- package/index284.js +1 -1
- package/index284.mjs +3 -3
- package/index287.js +1 -1
- package/index287.mjs +1 -1
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index29.js +1 -1
- package/index29.mjs +3 -3
- package/index30.js +1 -1
- package/index30.mjs +3 -3
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +2 -2
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index37.js +1 -1
- package/index37.mjs +1 -1
- package/index38.js +1 -1
- package/index38.mjs +2 -2
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index72.js +1 -1
- package/index72.mjs +1 -1
- package/index74.js +1 -1
- package/index74.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +1 -1
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index77.js +1 -1
- package/index77.mjs +1 -1
- package/index84.js +1 -1
- package/index84.mjs +2 -2
- package/package.json +1 -1
package/index170.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("./index145.js");function d(a,t){let{id:i,"aria-label":l,"aria-labelledby":e}=a;return i=r.useId(i),e&&l?e=[...new Set([i,...e.trim().split(/\s+/)])].join(" "):e&&(e=e.trim().split(/\s+/).join(" ")),!l&&!e&&t&&(l=t),{id:i,"aria-label":l,"aria-labelledby":e}}exports.useLabels=d;
|
package/index170.mjs
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
});
|
|
21
|
-
}, [
|
|
22
|
-
a
|
|
23
|
-
]);
|
|
24
|
-
return b(() => s, [
|
|
25
|
-
s
|
|
26
|
-
]), {
|
|
27
|
-
addGlobalListener: u,
|
|
28
|
-
removeGlobalListener: a,
|
|
29
|
-
removeAllGlobalListeners: s
|
|
1
|
+
import { useId as b } from "./index145.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
|
|
30
13
|
};
|
|
31
14
|
}
|
|
32
15
|
export {
|
|
33
|
-
|
|
16
|
+
t as useLabels
|
|
34
17
|
};
|
package/index171.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 d=require("react");function u(){return typeof window.ResizeObserver<"u"}function b(i){const{ref:e,box:s,onResize:r}=i;d.useEffect(()=>{let n=e==null?void 0:e.current;if(n)if(u()){const t=new window.ResizeObserver(o=>{o.length&&r()});return t.observe(n,{box:s}),()=>{n&&t.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,s])}exports.useResizeObserver=b;
|
package/index171.mjs
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { useEffect as d } from "react";
|
|
2
|
+
function f() {
|
|
3
|
+
return typeof window.ResizeObserver < "u";
|
|
4
|
+
}
|
|
5
|
+
function u(o) {
|
|
6
|
+
const { ref: e, box: s, onResize: r } = o;
|
|
7
|
+
d(() => {
|
|
8
|
+
let n = e == null ? void 0 : e.current;
|
|
9
|
+
if (n)
|
|
10
|
+
if (f()) {
|
|
11
|
+
const i = new window.ResizeObserver((t) => {
|
|
12
|
+
t.length && r();
|
|
13
|
+
});
|
|
14
|
+
return i.observe(n, {
|
|
15
|
+
box: s
|
|
16
|
+
}), () => {
|
|
17
|
+
n && i.unobserve(n);
|
|
18
|
+
};
|
|
19
|
+
} else
|
|
20
|
+
return window.addEventListener("resize", r, !1), () => {
|
|
21
|
+
window.removeEventListener("resize", r, !1);
|
|
22
|
+
};
|
|
23
|
+
}, [
|
|
24
|
+
r,
|
|
25
|
+
e,
|
|
26
|
+
s
|
|
27
|
+
]);
|
|
14
28
|
}
|
|
15
29
|
export {
|
|
16
|
-
|
|
30
|
+
u as useResizeObserver
|
|
17
31
|
};
|
package/index172.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("./index156.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/index172.mjs
CHANGED
|
@@ -1,31 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (n)
|
|
10
|
-
if (f()) {
|
|
11
|
-
const i = new window.ResizeObserver((t) => {
|
|
12
|
-
t.length && r();
|
|
13
|
-
});
|
|
14
|
-
return i.observe(n, {
|
|
15
|
-
box: s
|
|
16
|
-
}), () => {
|
|
17
|
-
n && i.unobserve(n);
|
|
18
|
-
};
|
|
19
|
-
} else
|
|
20
|
-
return window.addEventListener("resize", r, !1), () => {
|
|
21
|
-
window.removeEventListener("resize", r, !1);
|
|
22
|
-
};
|
|
23
|
-
}, [
|
|
24
|
-
r,
|
|
25
|
-
e,
|
|
26
|
-
s
|
|
27
|
-
]);
|
|
1
|
+
import { useLayoutEffect as f } from "./index156.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
|
+
});
|
|
28
9
|
}
|
|
29
10
|
export {
|
|
30
|
-
u as
|
|
11
|
+
u as useSyncRef
|
|
31
12
|
};
|
package/index173.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("./index174.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/index173.mjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r.ref && (r.ref.current = null);
|
|
7
|
-
};
|
|
8
|
-
});
|
|
1
|
+
import { isScrollable as l } from "./index174.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;
|
|
9
6
|
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
r as getScrollParent
|
|
12
9
|
};
|
package/index174.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/index174.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let e =
|
|
4
|
-
|
|
5
|
-
return e || document.scrollingElement || document.documentElement;
|
|
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;
|
|
6
5
|
}
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
c as isScrollable
|
|
9
8
|
};
|
package/index175.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 n=require("./index156.js"),r=require("react");function o(t){const u=r.useRef(null);return n.useLayoutEffect(()=>{u.current=t},[t]),r.useCallback((...c)=>{const e=u.current;return e==null?void 0:e(...c)},[])}exports.useEffectEvent=o;
|
package/index175.mjs
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useLayoutEffect as f } from "./index156.mjs";
|
|
2
|
+
import { useRef as o, useCallback as a } from "react";
|
|
3
|
+
function s(r) {
|
|
4
|
+
const t = o(null);
|
|
5
|
+
return f(() => {
|
|
6
|
+
t.current = r;
|
|
7
|
+
}, [
|
|
8
|
+
r
|
|
9
|
+
]), a((...c) => {
|
|
10
|
+
const e = t.current;
|
|
11
|
+
return e == null ? void 0 : e(...c);
|
|
12
|
+
}, []);
|
|
5
13
|
}
|
|
6
14
|
export {
|
|
7
|
-
|
|
15
|
+
s as useEffectEvent
|
|
8
16
|
};
|
package/index176.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("./index167.js");function t(r){return r.mozInputSource===0&&r.isTrusted?!0:i.isAndroid()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}function o(r){return!i.isAndroid()&&r.width===0&&r.height===0||r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"}exports.isVirtualClick=t;exports.isVirtualPointerEvent=o;
|
package/index176.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, [
|
|
8
|
-
r
|
|
9
|
-
]), a((...c) => {
|
|
10
|
-
const e = t.current;
|
|
11
|
-
return e == null ? void 0 : e(...c);
|
|
12
|
-
}, []);
|
|
1
|
+
import { isAndroid as i } from "./index167.mjs";
|
|
2
|
+
function o(r) {
|
|
3
|
+
return r.mozInputSource === 0 && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
|
|
4
|
+
}
|
|
5
|
+
function u(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";
|
|
13
7
|
}
|
|
14
8
|
export {
|
|
15
|
-
|
|
9
|
+
o as isVirtualClick,
|
|
10
|
+
u as isVirtualPointerEvent
|
|
16
11
|
};
|
package/index177.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("./index175.js"),o=require("react");function s(t,d,u){let i=o.useRef(d),r=l.useEffectEvent(()=>{u&&u(i.current)});o.useEffect(()=>{var n;let e=t==null||(n=t.current)===null||n===void 0?void 0:n.form;return e==null||e.addEventListener("reset",r),()=>{e==null||e.removeEventListener("reset",r)}},[t,r])}exports.useFormReset=s;
|
package/index177.mjs
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useEffectEvent as u } from "./index175.mjs";
|
|
2
|
+
import { useRef as a, useEffect as f } from "react";
|
|
3
|
+
function s(t, n, d) {
|
|
4
|
+
let i = a(n), r = u(() => {
|
|
5
|
+
d && d(i.current);
|
|
6
|
+
});
|
|
7
|
+
f(() => {
|
|
8
|
+
var o;
|
|
9
|
+
let e = t == null || (o = t.current) === null || o === void 0 ? void 0 : o.form;
|
|
10
|
+
return e == null || e.addEventListener("reset", r), () => {
|
|
11
|
+
e == null || e.removeEventListener("reset", r);
|
|
12
|
+
};
|
|
13
|
+
}, [
|
|
14
|
+
t,
|
|
15
|
+
r
|
|
16
|
+
]);
|
|
7
17
|
}
|
|
8
18
|
export {
|
|
9
|
-
|
|
10
|
-
u as isVirtualPointerEvent
|
|
19
|
+
s as useFormReset
|
|
11
20
|
};
|
package/index178.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 e=["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"])'],b=e.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";e.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function n(t){return t.matches(b)}exports.isFocusable=n;
|
package/index178.mjs
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
const e = [
|
|
2
|
+
"input:not([disabled]):not([type=hidden])",
|
|
3
|
+
"select:not([disabled])",
|
|
4
|
+
"textarea:not([disabled])",
|
|
5
|
+
"button:not([disabled])",
|
|
6
|
+
"a[href]",
|
|
7
|
+
"area[href]",
|
|
8
|
+
"summary",
|
|
9
|
+
"iframe",
|
|
10
|
+
"object",
|
|
11
|
+
"embed",
|
|
12
|
+
"audio[controls]",
|
|
13
|
+
"video[controls]",
|
|
14
|
+
'[contenteditable]:not([contenteditable^="false"])'
|
|
15
|
+
], b = e.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
16
|
+
e.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
17
|
+
function n(t) {
|
|
18
|
+
return t.matches(b);
|
|
17
19
|
}
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
n as isFocusable
|
|
20
22
|
};
|
package/index179.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("./index281.js"),c=require("react"),l=require("./index160.js"),m=require("./index161.js"),p=require("./index169.js");function B(b){let{isDisabled:v,onBlurWithin:i,onFocusWithin:s,onFocusWithinChange:t}=b,n=c.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:f}=p.useGlobalListeners(),r=c.useCallback(e=>{e.currentTarget.contains(e.target)&&n.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(n.current.isFocusWithin=!1,f(),i&&i(e),t&&t(!1))},[i,t,n,f]),g=o.useSyntheticBlurEvent(r),W=c.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const u=m.getOwnerDocument(e.target),T=l.getActiveElement(u);if(!n.current.isFocusWithin&&T===l.getEventTarget(e.nativeEvent)){s&&s(e),t&&t(!0),n.current.isFocusWithin=!0,g(e);let h=e.currentTarget;a(u,"focus",d=>{if(n.current.isFocusWithin&&!l.nodeContains(h,d.target)){let F=new u.defaultView.FocusEvent("blur",{relatedTarget:d.target});o.setEventTarget(F,h);let E=o.createSyntheticEvent(F);r(E)}},{capture:!0})}},[s,t,g,a,r]);return v?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:W,onBlur:r}}}exports.useFocusWithin=B;
|
package/index179.mjs
CHANGED
|
@@ -1,22 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { useSyntheticBlurEvent as F, setEventTarget as W, createSyntheticEvent as v } from "./index281.mjs";
|
|
2
|
+
import { useRef as x, useCallback as $ } from "react";
|
|
3
|
+
import { getActiveElement as E, getEventTarget as T, nodeContains as B } from "./index160.mjs";
|
|
4
|
+
import { getOwnerDocument as G } from "./index161.mjs";
|
|
5
|
+
import { useGlobalListeners as L } from "./index169.mjs";
|
|
6
|
+
function S(b) {
|
|
7
|
+
let { isDisabled: h, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: t } = b, r = x({
|
|
8
|
+
isFocusWithin: !1
|
|
9
|
+
}), { addGlobalListener: c, removeAllGlobalListeners: s } = L(), n = $((e) => {
|
|
10
|
+
e.currentTarget.contains(e.target) && r.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (r.current.isFocusWithin = !1, s(), i && i(e), t && t(!1));
|
|
11
|
+
}, [
|
|
12
|
+
i,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
s
|
|
16
|
+
]), u = F(n), g = $((e) => {
|
|
17
|
+
if (!e.currentTarget.contains(e.target)) return;
|
|
18
|
+
const a = G(e.target), p = E(a);
|
|
19
|
+
if (!r.current.isFocusWithin && p === T(e.nativeEvent)) {
|
|
20
|
+
o && o(e), t && t(!0), r.current.isFocusWithin = !0, u(e);
|
|
21
|
+
let f = e.currentTarget;
|
|
22
|
+
c(a, "focus", (l) => {
|
|
23
|
+
if (r.current.isFocusWithin && !B(f, l.target)) {
|
|
24
|
+
let d = new a.defaultView.FocusEvent("blur", {
|
|
25
|
+
relatedTarget: l.target
|
|
26
|
+
});
|
|
27
|
+
W(d, f);
|
|
28
|
+
let m = v(d);
|
|
29
|
+
n(m);
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
capture: !0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}, [
|
|
36
|
+
o,
|
|
37
|
+
t,
|
|
38
|
+
u,
|
|
39
|
+
c,
|
|
40
|
+
n
|
|
41
|
+
]);
|
|
42
|
+
return h ? {
|
|
43
|
+
focusWithinProps: {
|
|
44
|
+
// These cannot be null, that would conflict in mergeProps
|
|
45
|
+
onFocus: void 0,
|
|
46
|
+
onBlur: void 0
|
|
47
|
+
}
|
|
48
|
+
} : {
|
|
49
|
+
focusWithinProps: {
|
|
50
|
+
onFocus: g,
|
|
51
|
+
onBlur: n
|
|
52
|
+
}
|
|
53
|
+
};
|
|
19
54
|
}
|
|
20
55
|
export {
|
|
21
|
-
|
|
56
|
+
S as useFocusWithin
|
|
22
57
|
};
|
package/index18.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime")
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime");require("./index2.js");const P=require("./index3.js");require("@react-aria/accordion");const D=require("react");require("./index74.js");const a=require("./index27.js"),c=require("react-aria");require("react-use");require("@react-spring/web");const y=require("./index69.js"),R=require("./index6.js");require("./index111.js");const w=require("react-stately");require("./index5.js");require("react-div-100vh");require("./index71.js");require("@react-aria/focus");require("./index10.js");require("./index76.js");require("./index12.js");require("./index120.js");require("sanitize-html");require("@react-aria/i18n");require("radashi");require("react-hook-form");require("./index77.js");const F=require("./index75.js"),M=require("./index50.js"),T=require("./index112.js");require("./index121.js");require("./index122.js");require("./index73.js");require("./index72.js");require("./index123.js");require("./index43.js");require("./index44.js");require("./index45.js");require("./index46.js");require("./index47.js");require("./index48.js");require("./index49.js");require("./index51.js");require("./index52.js");require("./index53.js");require("./index54.js");require("./index55.js");require("./index56.js");require("./index57.js");require("./index58.js");require("./index59.js");require("./index60.js");require("./index61.js");require("./index62.js");require("./index63.js");require("./index64.js");require("./index65.js");require("./index66.js");require("./index67.js");require("./index68.js");require("./index70.js");require("./index84.js");const v=n=>{const{setUserSearchQuery:d}=F.useUserQueryValHook(),{label:q,themeName:r="search",tokens:h,customTheme:m,disabled:b,errorMessage:u,placeholder:x,icon:f,isDisabled:p}=n,i=p||b,l={...n,isDisabled:i},t=w.useSearchFieldState(l);d(t.value);const o=D.useRef(null),{labelProps:j,inputProps:k,errorMessageProps:$,clearButtonProps:g}=c.useSearchField(l,t,o),S=u!=null,s={...h,isError:S,isDisabled:i??!1},N=y(`${r}.input`,s,m);return e.jsxs(a.default,{themeName:`${r}.wrapper`,tokens:s,"aria-disabled":i??!1,children:[q&&e.jsx(a.default,{...j,as:"label",themeName:`${r}.label`,tokens:s,children:q}),e.jsxs(a.default,{themeName:`${r}.container`,tokens:s,children:[e.jsx("input",{ref:o,...k,placeholder:x,className:N,disabled:i}),e.jsx(c.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsx(R.default,{isDisabled:i,handlePress:g.onPress,tokens:{isIconOnly:!0,buttonStyle:"hollow",isDisabled:i??!1},themeName:`${r}.icon`,"aria-label":"clear",children:f??(t.value===""?e.jsx(T,{width:"16",height:"16"}):e.jsx(M,{width:"16",height:"16"}))})})]}),u&&e.jsx(P.default,{themeName:`${r}.errorMessage`,tokens:s,...$,children:u})]})};module.exports=v;
|
package/index18.mjs
CHANGED
|
@@ -1,37 +1,109 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import "./index2.mjs";
|
|
4
|
+
import x from "./index3.mjs";
|
|
5
|
+
import "@react-aria/accordion";
|
|
6
|
+
import T from "react";
|
|
7
|
+
import "./index74.mjs";
|
|
8
|
+
import s from "./index27.mjs";
|
|
9
|
+
import { useSearchField as w, FocusRing as B } from "react-aria";
|
|
10
|
+
import "react-use";
|
|
11
|
+
import "@react-spring/web";
|
|
12
|
+
import C from "./index69.mjs";
|
|
8
13
|
import F from "./index6.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
import "./index111.mjs";
|
|
15
|
+
import { useSearchFieldState as R } from "react-stately";
|
|
16
|
+
import "./index5.mjs";
|
|
17
|
+
import "react-div-100vh";
|
|
18
|
+
import "./index71.mjs";
|
|
19
|
+
import "@react-aria/focus";
|
|
20
|
+
import "./index10.mjs";
|
|
21
|
+
import "./index76.mjs";
|
|
22
|
+
import "./index12.mjs";
|
|
23
|
+
import "./index120.mjs";
|
|
24
|
+
import "sanitize-html";
|
|
25
|
+
import "@react-aria/i18n";
|
|
26
|
+
import "radashi";
|
|
27
|
+
import "react-hook-form";
|
|
28
|
+
import "./index77.mjs";
|
|
29
|
+
import { useUserQueryValHook as M } from "./index75.mjs";
|
|
30
|
+
import j from "./index50.mjs";
|
|
31
|
+
import v from "./index112.mjs";
|
|
32
|
+
import "./index121.mjs";
|
|
33
|
+
import "./index122.mjs";
|
|
34
|
+
import "./index73.mjs";
|
|
35
|
+
import "./index72.mjs";
|
|
36
|
+
import "./index123.mjs";
|
|
37
|
+
import "./index43.mjs";
|
|
38
|
+
import "./index44.mjs";
|
|
39
|
+
import "./index45.mjs";
|
|
40
|
+
import "./index46.mjs";
|
|
41
|
+
import "./index47.mjs";
|
|
42
|
+
import "./index48.mjs";
|
|
43
|
+
import "./index49.mjs";
|
|
44
|
+
import "./index51.mjs";
|
|
45
|
+
import "./index52.mjs";
|
|
46
|
+
import "./index53.mjs";
|
|
47
|
+
import "./index54.mjs";
|
|
48
|
+
import "./index55.mjs";
|
|
49
|
+
import "./index56.mjs";
|
|
50
|
+
import "./index57.mjs";
|
|
51
|
+
import "./index58.mjs";
|
|
52
|
+
import "./index59.mjs";
|
|
53
|
+
import "./index60.mjs";
|
|
54
|
+
import "./index61.mjs";
|
|
55
|
+
import "./index62.mjs";
|
|
56
|
+
import "./index63.mjs";
|
|
57
|
+
import "./index64.mjs";
|
|
58
|
+
import "./index65.mjs";
|
|
59
|
+
import "./index66.mjs";
|
|
60
|
+
import "./index67.mjs";
|
|
61
|
+
import "./index68.mjs";
|
|
62
|
+
import "./index70.mjs";
|
|
63
|
+
import "./index84.mjs";
|
|
64
|
+
const qr = (p) => {
|
|
65
|
+
const { setUserSearchQuery: h } = M(), {
|
|
66
|
+
label: a,
|
|
67
|
+
themeName: o = "search",
|
|
68
|
+
tokens: d,
|
|
69
|
+
customTheme: u,
|
|
70
|
+
disabled: f,
|
|
71
|
+
errorMessage: i,
|
|
72
|
+
placeholder: b,
|
|
73
|
+
icon: g,
|
|
74
|
+
isDisabled: k
|
|
75
|
+
} = p, t = k || f, l = { ...p, isDisabled: t }, m = R(l);
|
|
76
|
+
h(m.value);
|
|
77
|
+
const n = T.useRef(null), { labelProps: N, inputProps: P, errorMessageProps: S, clearButtonProps: y } = w(l, m, n), D = i != null, e = { ...d, isError: D, isDisabled: t ?? !1 }, $ = C(`${o}.input`, e, u);
|
|
78
|
+
return /* @__PURE__ */ c(s, { themeName: `${o}.wrapper`, tokens: e, "aria-disabled": t ?? !1, children: [
|
|
79
|
+
a && // eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
80
|
+
/* @__PURE__ */ r(s, { ...N, as: "label", themeName: `${o}.label`, tokens: e, children: a }),
|
|
81
|
+
/* @__PURE__ */ c(s, { themeName: `${o}.container`, tokens: e, children: [
|
|
82
|
+
/* @__PURE__ */ r(
|
|
83
|
+
"input",
|
|
84
|
+
{
|
|
85
|
+
ref: n,
|
|
86
|
+
...P,
|
|
87
|
+
placeholder: b,
|
|
88
|
+
className: $,
|
|
89
|
+
disabled: t
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ r(B, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ r(
|
|
22
93
|
F,
|
|
23
94
|
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
95
|
+
isDisabled: t,
|
|
96
|
+
handlePress: y.onPress,
|
|
97
|
+
tokens: { isIconOnly: !0, buttonStyle: "hollow", isDisabled: t ?? !1 },
|
|
98
|
+
themeName: `${o}.icon`,
|
|
27
99
|
"aria-label": "clear",
|
|
28
|
-
children:
|
|
100
|
+
children: g ?? (m.value === "" ? /* @__PURE__ */ r(v, { width: "16", height: "16" }) : /* @__PURE__ */ r(j, { width: "16", height: "16" }))
|
|
29
101
|
}
|
|
30
102
|
) })
|
|
31
103
|
] }),
|
|
32
|
-
|
|
104
|
+
i && /* @__PURE__ */ r(x, { themeName: `${o}.errorMessage`, tokens: e, ...S, children: i })
|
|
33
105
|
] });
|
|
34
106
|
};
|
|
35
107
|
export {
|
|
36
|
-
|
|
108
|
+
qr as default
|
|
37
109
|
};
|
package/index180.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("react");function m(o,p,s){let[b,u]=l.useState(o||p),i=l.useRef(o!==void 0),e=o!==void 0;l.useEffect(()=>{let t=i.current;t!==e&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${e?"controlled":"uncontrolled"}.`),i.current=e},[e]);let n=e?o:b,S=l.useCallback((t,...f)=>{let d=(r,...c)=>{s&&(Object.is(n,r)||s(r,...c)),e||(n=r)};typeof t=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),u((c,...V)=>{let a=t(e?n:c,...V);return d(a,...f),e?c:a})):(e||u(t),d(t,...f))},[e,n,s]);return[n,S]}exports.useControlledState=m;
|