@okam/stack-ui 1.33.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Button/interface.d.ts +3 -0
- package/index.d.ts +1 -0
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +3 -3
- package/index111.js +1 -1
- package/index111.mjs +3 -3
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +1 -1
- package/index116.js +1 -1
- package/index116.mjs +5 -5
- package/index117.js +1 -1
- package/index117.mjs +1 -1
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +3 -3
- package/index121.js +1 -1
- package/index121.mjs +5 -5
- package/index122.js +1 -1
- package/index122.mjs +1 -1
- package/index123.js +1 -1
- package/index123.mjs +2 -2
- package/index124.js +1 -1
- package/index124.mjs +8 -8
- package/index125.js +1 -1
- package/index125.mjs +1 -1
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index127.js +1 -1
- package/index127.mjs +3 -3
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index134.js +1 -1
- package/index134.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +10 -46
- package/index140.js +1 -1
- package/index140.mjs +12 -241
- package/index141.js +1 -2
- package/index141.mjs +46 -13
- package/index142.js +1 -1
- package/index142.mjs +239 -28
- package/index143.js +2 -1
- package/index143.mjs +13 -52
- package/index144.js +1 -1
- package/index144.mjs +29 -11
- package/index145.js +1 -1
- package/index145.mjs +51 -9
- package/index146.js +1 -1
- package/index146.mjs +20 -21
- package/index147.js +1 -1
- package/index147.mjs +21 -38
- package/index148.js +1 -1
- package/index148.mjs +39 -25
- package/index149.js +1 -1
- package/index149.mjs +24 -254
- package/index150.js +1 -1
- package/index150.mjs +246 -97
- package/index151.js +1 -1
- package/index151.mjs +100 -327
- package/index152.js +1 -1
- package/index152.mjs +332 -23
- package/index153.js +1 -1
- package/index153.mjs +102 -109
- package/index154.js +1 -1
- package/index154.mjs +83 -107
- package/index155.js +1 -1
- package/index155.mjs +26 -83
- package/index156.js +1 -1
- package/index156.mjs +24 -26
- package/index157.js +1 -1
- package/index157.mjs +112 -19
- package/index159.js +1 -1
- package/index159.mjs +69 -23
- package/index160.js +1 -1
- package/index160.mjs +338 -62
- package/index161.js +1 -1
- package/index161.mjs +42 -346
- package/index162.js +1 -1
- package/index162.mjs +4 -46
- package/index163.js +1 -1
- package/index163.mjs +25 -4
- package/index164.js +1 -1
- package/index164.mjs +46 -23
- package/index165.js +1 -1
- package/index165.mjs +4 -46
- package/index166.js +1 -1
- package/index166.mjs +6 -6
- package/index167.js +1 -1
- package/index167.mjs +15 -6
- package/index168.js +1 -1
- package/index168.mjs +21 -14
- package/index169.js +1 -1
- package/index169.mjs +42 -21
- package/index170.js +1 -1
- package/index170.mjs +23 -41
- package/index171.js +1 -1
- package/index171.mjs +37 -24
- package/index172.js +1 -1
- package/index172.mjs +27 -36
- package/index173.js +1 -1
- package/index173.mjs +30 -27
- package/index174.js +1 -1
- package/index174.mjs +13 -30
- package/index175.js +1 -1
- package/index175.mjs +9 -14
- package/index176.js +1 -1
- package/index176.mjs +28 -9
- package/index177.js +1 -1
- package/index177.mjs +9 -28
- package/index178.js +1 -1
- package/index178.mjs +6 -9
- package/index179.js +1 -1
- package/index179.mjs +5 -6
- package/index180.js +1 -1
- package/index180.mjs +7 -5
- package/index181.js +1 -1
- package/index181.mjs +29 -7
- package/index182.js +1 -1
- package/index182.mjs +16 -27
- package/index183.js +1 -1
- package/index183.mjs +12 -17
- package/index184.js +1 -1
- package/index184.mjs +43 -13
- package/index185.js +1 -1
- package/index185.mjs +7 -42
- package/index186.js +1 -1
- package/index186.mjs +5 -8
- package/index187.js +1 -1
- package/index187.mjs +17 -5
- package/index188.js +1 -1
- package/index188.mjs +28 -14
- package/index189.js +1 -1
- package/index189.mjs +24 -28
- package/index191.js +1 -1
- package/index191.mjs +1 -1
- package/index192.js +1 -1
- package/index192.mjs +2 -2
- package/index194.js +1 -1
- package/index194.mjs +4 -4
- package/index195.js +1 -1
- package/index195.mjs +2 -2
- package/index197.js +1 -1
- package/index197.mjs +3 -3
- package/index198.js +1 -1
- package/index198.mjs +1 -1
- package/index2.js +1 -1
- package/index2.mjs +1 -0
- package/index200.js +1 -1
- package/index200.mjs +1 -1
- package/index202.js +1 -1
- package/index202.mjs +1 -1
- package/index203.js +1 -1
- package/index203.mjs +205 -197
- package/index204.js +1 -1
- package/index204.mjs +24 -64
- package/index205.js +1 -1
- package/index205.mjs +4 -143
- package/index206.js +1 -1
- package/index206.mjs +3 -124
- package/index207.js +1 -1
- package/index207.mjs +116 -215
- package/index208.js +1 -1
- package/index208.mjs +23 -184
- package/index209.js +1 -1
- package/index209.mjs +51 -69
- package/index210.js +1 -1
- package/index210.mjs +43 -278
- package/index211.js +1 -1
- package/index211.mjs +31 -92
- package/index212.js +1 -1
- package/index212.mjs +109 -184
- package/index213.js +1 -1
- package/index213.mjs +77 -84
- package/index214.js +1 -1
- package/index214.mjs +101 -58
- package/index215.js +1 -1
- package/index215.mjs +98 -127
- package/index216.js +1 -1
- package/index216.mjs +70 -114
- package/index217.js +1 -1
- package/index217.mjs +91 -118
- package/index218.js +1 -1
- package/index218.mjs +152 -69
- package/index219.js +1 -1
- package/index219.mjs +72 -111
- package/index220.js +1 -1
- package/index220.mjs +60 -51
- package/index221.js +1 -1
- package/index221.mjs +57 -91
- package/index222.js +1 -1
- package/index222.mjs +196 -63
- package/index223.js +1 -1
- package/index223.mjs +59 -51
- package/index224.js +1 -1
- package/index224.mjs +137 -93
- package/index225.js +1 -5
- package/index225.mjs +121 -77
- package/index226.js +1 -1
- package/index226.mjs +208 -2009
- package/index227.js +1 -1
- package/index227.mjs +188 -57
- package/index228.js +1 -1
- package/index228.mjs +67 -186
- package/index229.js +1 -1
- package/index229.mjs +271 -203
- package/index230.js +1 -1
- package/index230.mjs +98 -24
- package/index231.js +1 -1
- package/index231.mjs +188 -4
- package/index232.js +1 -1
- package/index232.mjs +84 -3
- package/index233.js +1 -1
- package/index233.mjs +56 -123
- package/index234.js +1 -1
- package/index234.mjs +125 -28
- package/index235.js +1 -1
- package/index235.mjs +113 -48
- package/index236.js +1 -1
- package/index236.mjs +119 -41
- package/index237.js +1 -1
- package/index237.mjs +71 -36
- package/index238.js +1 -1
- package/index238.mjs +105 -108
- package/index239.js +1 -1
- package/index239.mjs +52 -77
- package/index240.js +1 -1
- package/index240.mjs +93 -101
- package/index241.js +1 -1
- package/index241.mjs +71 -98
- package/index242.js +1 -1
- package/index242.mjs +54 -70
- package/index243.js +1 -1
- package/index243.mjs +96 -92
- package/index244.js +5 -1
- package/index244.mjs +76 -151
- package/index245.js +1 -1
- package/index245.mjs +2025 -71
- package/index246.js +1 -1
- package/index246.mjs +59 -61
- package/index247.js +1 -1
- package/index247.mjs +187 -58
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index286.js +1 -1
- package/index286.mjs +4 -130
- package/index287.js +1 -1
- package/index287.mjs +42 -184
- package/index288.js +1 -1
- package/index288.mjs +16 -10
- package/index289.js +1 -1
- package/index289.mjs +16 -4
- package/index290.js +1 -1
- package/index290.mjs +16 -37
- package/index291.js +1 -1
- package/index291.mjs +16 -6
- package/index292.js +1 -1
- package/index292.mjs +16 -30
- package/index293.js +1 -1
- package/index293.mjs +16 -7
- package/index294.js +1 -1
- package/index294.mjs +16 -5
- package/index295.js +1 -1
- package/index295.mjs +16 -49
- package/index296.js +1 -1
- package/index296.mjs +15 -15
- package/index297.js +1 -1
- package/index297.mjs +15 -15
- package/index298.js +1 -1
- package/index298.mjs +12 -12
- package/index299.js +1 -1
- package/index299.mjs +15 -15
- package/index300.js +1 -1
- package/index300.mjs +15 -15
- package/index301.js +1 -1
- package/index301.mjs +15 -15
- package/index302.js +1 -1
- package/index302.mjs +15 -15
- package/index303.js +1 -1
- package/index303.mjs +15 -15
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +12 -12
- package/index307.js +1 -1
- package/index307.mjs +15 -15
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +12 -12
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +12 -12
- package/index315.js +1 -1
- package/index315.mjs +15 -15
- package/index316.js +1 -1
- package/index316.mjs +15 -15
- package/index317.js +1 -1
- package/index317.mjs +15 -15
- package/index318.js +1 -1
- package/index318.mjs +12 -12
- package/index319.js +1 -1
- package/index319.mjs +15 -15
- package/index320.js +1 -1
- package/index320.mjs +15 -15
- package/index321.js +1 -1
- package/index321.mjs +12 -12
- package/index322.js +1 -1
- package/index322.mjs +130 -15
- package/index323.js +1 -1
- package/index323.mjs +191 -16
- package/index324.js +1 -1
- package/index324.mjs +10 -16
- package/index325.js +1 -1
- package/index325.mjs +4 -16
- package/index326.js +1 -1
- package/index326.mjs +37 -16
- package/index327.js +1 -1
- package/index327.mjs +6 -16
- package/index328.js +1 -1
- package/index328.mjs +30 -16
- package/index329.js +1 -1
- package/index329.mjs +7 -16
- package/index330.js +1 -1
- package/index330.mjs +10 -139
- package/index331.js +1 -1
- package/index331.mjs +6 -197
- package/index332.js +1 -1
- package/index332.mjs +64 -18
- package/index333.js +1 -1
- package/index333.mjs +46 -44
- package/index334.js +1 -1
- package/index334.mjs +27 -45
- package/index335.js +1 -1
- package/index335.mjs +6 -100
- package/index336.js +1 -1
- package/index336.mjs +7 -72
- package/index337.js +1 -1
- package/index337.mjs +5 -58
- package/index338.js +1 -1
- package/index338.mjs +140 -7
- package/index339.js +1 -1
- package/index339.mjs +197 -11
- package/index340.js +1 -1
- package/index340.mjs +23 -7
- package/index341.js +1 -1
- package/index341.mjs +44 -66
- package/index342.js +1 -1
- package/index342.mjs +97 -27
- package/index343.js +1 -1
- package/index343.mjs +72 -7
- package/index344.js +1 -1
- package/index344.mjs +58 -6
- package/index345.js +1 -1
- package/index345.mjs +7 -20
- package/index346.js +1 -1
- package/index346.mjs +20 -5
- package/index383.js +1 -1
- package/index383.mjs +4 -5
- package/index384.js +1 -1
- package/index384.mjs +5 -5
- package/index385.js +1 -1
- package/index385.mjs +9 -5
- package/index386.js +1 -1
- package/index386.mjs +4 -4
- package/index387.js +1 -1
- package/index387.mjs +4 -4
- package/index388.js +1 -1
- package/index388.mjs +4 -4
- package/index389.js +1 -1
- package/index389.mjs +4 -4
- package/index390.js +1 -1
- package/index390.mjs +4 -4
- package/index391.js +1 -1
- package/index391.mjs +4 -4
- package/index392.js +1 -1
- package/index392.mjs +4 -4
- package/index393.js +1 -1
- package/index393.mjs +4 -4
- package/index394.js +1 -1
- package/index394.mjs +4 -4
- package/index395.js +1 -1
- package/index395.mjs +4 -4
- package/index396.js +1 -1
- package/index396.mjs +4 -4
- package/index397.js +1 -1
- package/index397.mjs +4 -4
- package/index398.js +1 -1
- package/index398.mjs +4 -4
- package/index399.js +1 -1
- package/index399.mjs +1 -1
- package/index400.js +1 -1
- package/index400.mjs +1 -1
- package/index401.js +1 -1
- package/index401.mjs +4 -4
- package/index402.js +1 -1
- package/index402.mjs +1 -1
- package/index403.js +1 -1
- package/index403.mjs +4 -4
- package/index404.js +1 -1
- package/index404.mjs +1 -1
- package/index405.js +1 -1
- package/index405.mjs +4 -4
- package/index406.js +1 -1
- package/index406.mjs +4 -4
- package/index407.js +1 -1
- package/index407.mjs +1 -1
- package/index408.js +1 -1
- package/index408.mjs +4 -4
- package/index409.js +1 -1
- package/index409.mjs +1 -1
- package/index410.js +1 -1
- package/index410.mjs +4 -4
- package/index411.js +1 -1
- package/index411.mjs +4 -4
- package/index412.js +1 -1
- package/index412.mjs +1 -1
- package/index413.js +1 -1
- package/index413.mjs +4 -4
- package/index414.js +1 -1
- package/index414.mjs +4 -4
- package/index415.js +1 -1
- package/index415.mjs +4 -4
- package/index416.js +1 -1
- package/index416.mjs +4 -4
- package/index417.js +1 -1
- package/index417.mjs +5 -4
- package/index418.js +1 -1
- package/index418.mjs +5 -5
- package/index419.js +1 -1
- package/index419.mjs +5 -9
- package/index8.js +1 -1
- package/index8.mjs +8 -8
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
- package/providers/SidePanel/interface.d.ts +17 -5
- package/types/next-link.d.ts +2 -1
package/index177.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 "./index162.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/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 t=require("./index179.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/index178.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 "./index179.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/index179.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/index179.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/index180.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 l=require("./index179.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/index180.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isScrollable as r } from "./index179.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;
|
|
5
7
|
}
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
s as getScrollParents
|
|
8
10
|
};
|
package/index181.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("./index162.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/index181.mjs
CHANGED
|
@@ -1,10 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useLayoutEffect as o } from "./index162.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
|
+
};
|
|
7
29
|
}
|
|
8
30
|
export {
|
|
9
|
-
s as
|
|
31
|
+
s as useDescription
|
|
10
32
|
};
|
package/index182.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("./index183.js"),s=require("react");function i(e,t,u,r){let n=l.useEffectEvent(u),c=u==null;s.useEffect(()=>{if(c||!e.current)return;let f=e.current;return f.addEventListener(t,n,r),()=>{f.removeEventListener(t,n,r)}},[e,t,r,c,n])}exports.useEvent=i;
|
package/index182.mjs
CHANGED
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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));
|
|
1
|
+
import { useEffectEvent as u } from "./index183.mjs";
|
|
2
|
+
import { useEffect as l } from "react";
|
|
3
|
+
function i(e, t, a, r) {
|
|
4
|
+
let f = u(a), n = a == null;
|
|
5
|
+
l(() => {
|
|
6
|
+
if (n || !e.current) return;
|
|
7
|
+
let c = e.current;
|
|
8
|
+
return c.addEventListener(t, f, r), () => {
|
|
9
|
+
c.removeEventListener(t, f, r);
|
|
23
10
|
};
|
|
24
11
|
}, [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
e,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
n,
|
|
16
|
+
f
|
|
17
|
+
]);
|
|
29
18
|
}
|
|
30
19
|
export {
|
|
31
|
-
|
|
20
|
+
i as useEvent
|
|
32
21
|
};
|
package/index183.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("./index162.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/index183.mjs
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let c = e.current;
|
|
8
|
-
return c.addEventListener(t, f, r), () => {
|
|
9
|
-
c.removeEventListener(t, f, r);
|
|
10
|
-
};
|
|
1
|
+
import { useLayoutEffect as f } from "./index162.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;
|
|
11
7
|
}, [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
]);
|
|
8
|
+
r
|
|
9
|
+
]), a((...c) => {
|
|
10
|
+
const e = t.current;
|
|
11
|
+
return e == null ? void 0 : e(...c);
|
|
12
|
+
}, []);
|
|
18
13
|
}
|
|
19
14
|
export {
|
|
20
|
-
|
|
15
|
+
s as useEffectEvent
|
|
21
16
|
};
|
package/index184.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 P=require("./index180.js");function a(e,o){let d=p(e,o,"left"),f=p(e,o,"top"),t=o.offsetWidth,l=o.offsetHeight,r=e.scrollLeft,s=e.scrollTop,{borderTopWidth:i,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),n=e.scrollTop+parseInt(i,10),b=u+e.clientWidth,v=n+e.clientHeight;d<=r?r=d-parseInt(c,10):d+t>b&&(r+=d+t-b),f<=n?s=f-parseInt(i,10):f+l>v&&(s+=f+l-v),e.scrollLeft=r,e.scrollTop=s}function p(e,o,d){const f=d==="left"?"offsetLeft":"offsetTop";let t=0;for(;o.offsetParent&&(t+=o[f],o.offsetParent!==e);){if(o.offsetParent.contains(e)){t-=e[f];break}o=o.offsetParent}return t}function h(e,o){if(e&&document.contains(e)){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let i=P.getScrollParents(e);for(let c of i)a(c,e)}else{var d;let{left:i,top:c}=e.getBoundingClientRect();e==null||(d=e.scrollIntoView)===null||d===void 0||d.call(e,{block:"nearest"});let{left:u,top:n}=e.getBoundingClientRect();if(Math.abs(i-u)>1||Math.abs(c-n)>1){var f,t,l;o==null||(t=o.containingElement)===null||t===void 0||(f=t.scrollIntoView)===null||f===void 0||f.call(t,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}exports.scrollIntoView=a;exports.scrollIntoViewport=h;
|
package/index184.mjs
CHANGED
|
@@ -1,16 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { getScrollParents as a } from "./index180.mjs";
|
|
2
|
+
function $(e, o) {
|
|
3
|
+
let d = p(e, o, "left"), f = p(e, o, "top"), t = o.offsetWidth, l = o.offsetHeight, r = e.scrollLeft, s = e.scrollTop, { borderTopWidth: i, borderLeftWidth: c } = getComputedStyle(e), u = e.scrollLeft + parseInt(c, 10), n = e.scrollTop + parseInt(i, 10), b = u + e.clientWidth, v = n + e.clientHeight;
|
|
4
|
+
d <= r ? r = d - parseInt(c, 10) : d + t > b && (r += d + t - b), f <= n ? s = f - parseInt(i, 10) : f + l > v && (s += f + l - v), e.scrollLeft = r, e.scrollTop = s;
|
|
5
|
+
}
|
|
6
|
+
function p(e, o, d) {
|
|
7
|
+
const f = d === "left" ? "offsetLeft" : "offsetTop";
|
|
8
|
+
let t = 0;
|
|
9
|
+
for (; o.offsetParent && (t += o[f], o.offsetParent !== e); ) {
|
|
10
|
+
if (o.offsetParent.contains(e)) {
|
|
11
|
+
t -= e[f];
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
o = o.offsetParent;
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
function P(e, o) {
|
|
19
|
+
if (e && document.contains(e)) {
|
|
20
|
+
let r = document.scrollingElement || document.documentElement;
|
|
21
|
+
if (window.getComputedStyle(r).overflow === "hidden") {
|
|
22
|
+
let i = a(e);
|
|
23
|
+
for (let c of i) $(c, e);
|
|
24
|
+
} else {
|
|
25
|
+
var d;
|
|
26
|
+
let { left: i, top: c } = e.getBoundingClientRect();
|
|
27
|
+
e == null || (d = e.scrollIntoView) === null || d === void 0 || d.call(e, {
|
|
28
|
+
block: "nearest"
|
|
29
|
+
});
|
|
30
|
+
let { left: u, top: n } = e.getBoundingClientRect();
|
|
31
|
+
if (Math.abs(i - u) > 1 || Math.abs(c - n) > 1) {
|
|
32
|
+
var f, t, l;
|
|
33
|
+
o == null || (t = o.containingElement) === null || t === void 0 || (f = t.scrollIntoView) === null || f === void 0 || f.call(t, {
|
|
34
|
+
block: "center",
|
|
35
|
+
inline: "center"
|
|
36
|
+
}), (l = e.scrollIntoView) === null || l === void 0 || l.call(e, {
|
|
37
|
+
block: "nearest"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
13
42
|
}
|
|
14
43
|
export {
|
|
15
|
-
|
|
44
|
+
$ as scrollIntoView,
|
|
45
|
+
P as scrollIntoViewport
|
|
16
46
|
};
|
package/index185.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("./index171.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/index185.mjs
CHANGED
|
@@ -1,46 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
d <= r ? r = d - parseInt(c, 10) : d + t > b && (r += d + t - b), f <= n ? s = f - parseInt(i, 10) : f + l > v && (s += f + l - v), e.scrollLeft = r, e.scrollTop = s;
|
|
1
|
+
import { isAndroid as i } from "./index171.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;
|
|
5
4
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
let t = 0;
|
|
9
|
-
for (; o.offsetParent && (t += o[f], o.offsetParent !== e); ) {
|
|
10
|
-
if (o.offsetParent.contains(e)) {
|
|
11
|
-
t -= e[f];
|
|
12
|
-
break;
|
|
13
|
-
}
|
|
14
|
-
o = o.offsetParent;
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
}
|
|
18
|
-
function P(e, o) {
|
|
19
|
-
if (e && document.contains(e)) {
|
|
20
|
-
let r = document.scrollingElement || document.documentElement;
|
|
21
|
-
if (window.getComputedStyle(r).overflow === "hidden") {
|
|
22
|
-
let i = a(e);
|
|
23
|
-
for (let c of i) $(c, e);
|
|
24
|
-
} else {
|
|
25
|
-
var d;
|
|
26
|
-
let { left: i, top: c } = e.getBoundingClientRect();
|
|
27
|
-
e == null || (d = e.scrollIntoView) === null || d === void 0 || d.call(e, {
|
|
28
|
-
block: "nearest"
|
|
29
|
-
});
|
|
30
|
-
let { left: u, top: n } = e.getBoundingClientRect();
|
|
31
|
-
if (Math.abs(i - u) > 1 || Math.abs(c - n) > 1) {
|
|
32
|
-
var f, t, l;
|
|
33
|
-
o == null || (t = o.containingElement) === null || t === void 0 || (f = t.scrollIntoView) === null || f === void 0 || f.call(t, {
|
|
34
|
-
block: "center",
|
|
35
|
-
inline: "center"
|
|
36
|
-
}), (l = e.scrollIntoView) === null || l === void 0 || l.call(e, {
|
|
37
|
-
block: "nearest"
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
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";
|
|
42
7
|
}
|
|
43
8
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
9
|
+
o as isVirtualClick,
|
|
10
|
+
u as isVirtualPointerEvent
|
|
46
11
|
};
|
package/index186.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=require("react");function n(e,t){let r=c.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}exports.useDeepMemo=n;
|
package/index186.mjs
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function o(
|
|
3
|
-
|
|
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";
|
|
1
|
+
import { useRef as c } from "react";
|
|
2
|
+
function o(e, t) {
|
|
3
|
+
let r = c(null);
|
|
4
|
+
return e && r.current && t(e, r.current) && (e = r.current), r.current = e, e;
|
|
7
5
|
}
|
|
8
6
|
export {
|
|
9
|
-
o as
|
|
10
|
-
u as isVirtualPointerEvent
|
|
7
|
+
o as useDeepMemo
|
|
11
8
|
};
|
package/index187.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("./index183.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/index187.mjs
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useEffectEvent as u } from "./index183.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
|
+
]);
|
|
5
17
|
}
|
|
6
18
|
export {
|
|
7
|
-
|
|
19
|
+
s as useFormReset
|
|
8
20
|
};
|
package/index188.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 f=require("./index332.js"),s=require("react");function h(c){let{isDisabled:l,onBlurWithin:n,onFocusWithin:u,onFocusWithinChange:t}=c,e=s.useRef({isFocusWithin:!1}),o=s.useCallback(i=>{e.current.isFocusWithin&&!i.currentTarget.contains(i.relatedTarget)&&(e.current.isFocusWithin=!1,n&&n(i),t&&t(!1))},[n,t,e]),r=f.useSyntheticBlurEvent(o),a=s.useCallback(i=>{!e.current.isFocusWithin&&document.activeElement===i.target&&(u&&u(i),t&&t(!0),e.current.isFocusWithin=!0,r(i))},[u,t,r]);return l?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:o}}}exports.useFocusWithin=h;
|
package/index188.mjs
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
function
|
|
4
|
-
let
|
|
5
|
-
|
|
6
|
-
})
|
|
7
|
-
|
|
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
|
-
};
|
|
1
|
+
import { useSyntheticBlurEvent as f } from "./index332.mjs";
|
|
2
|
+
import { useRef as h, useCallback as c } from "react";
|
|
3
|
+
function d(r) {
|
|
4
|
+
let { isDisabled: a, onBlurWithin: e, onFocusWithin: o, onFocusWithinChange: t } = r, n = h({
|
|
5
|
+
isFocusWithin: !1
|
|
6
|
+
}), u = c((i) => {
|
|
7
|
+
n.current.isFocusWithin && !i.currentTarget.contains(i.relatedTarget) && (n.current.isFocusWithin = !1, e && e(i), t && t(!1));
|
|
13
8
|
}, [
|
|
9
|
+
e,
|
|
14
10
|
t,
|
|
15
|
-
|
|
11
|
+
n
|
|
12
|
+
]), s = f(u), l = c((i) => {
|
|
13
|
+
!n.current.isFocusWithin && document.activeElement === i.target && (o && o(i), t && t(!0), n.current.isFocusWithin = !0, s(i));
|
|
14
|
+
}, [
|
|
15
|
+
o,
|
|
16
|
+
t,
|
|
17
|
+
s
|
|
16
18
|
]);
|
|
19
|
+
return a ? {
|
|
20
|
+
focusWithinProps: {
|
|
21
|
+
// These should not have been null, that would conflict in mergeProps
|
|
22
|
+
onFocus: void 0,
|
|
23
|
+
onBlur: void 0
|
|
24
|
+
}
|
|
25
|
+
} : {
|
|
26
|
+
focusWithinProps: {
|
|
27
|
+
onFocus: l,
|
|
28
|
+
onBlur: u
|
|
29
|
+
}
|
|
30
|
+
};
|
|
17
31
|
}
|
|
18
32
|
export {
|
|
19
|
-
|
|
33
|
+
d as useFocusWithin
|
|
20
34
|
};
|
package/index189.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 C(o,b,u){let[p,s]=l.useState(o||b),i=l.useRef(o!==void 0),e=o!==void 0;l.useEffect(()=>{let t=i.current;t!==e&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${e?"controlled":"uncontrolled"}.`),i.current=e},[e]);let n=e?o:p,S=l.useCallback((t,...f)=>{let a=(r,...c)=>{u&&(Object.is(n,r)||u(r,...c)),e||(n=r)};typeof t=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((c,...m)=>{let d=t(e?n:c,...m);return a(d,...f),e?c:d})):(e||s(t),a(t,...f))},[e,n,u]);return[n,S]}exports.useControlledState=C;
|
package/index189.mjs
CHANGED
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
n.current.isFocusWithin && !i.currentTarget.contains(i.relatedTarget) && (n.current.isFocusWithin = !1, e && e(i), t && t(!1));
|
|
1
|
+
import { useState as C, useRef as $, useEffect as S, useCallback as V } from "react";
|
|
2
|
+
function w(o, d, c) {
|
|
3
|
+
let [p, s] = C(o || d), u = $(o !== void 0), e = o !== void 0;
|
|
4
|
+
S(() => {
|
|
5
|
+
let t = u.current;
|
|
6
|
+
t !== e && console.warn(`WARN: A component changed from ${t ? "controlled" : "uncontrolled"} to ${e ? "controlled" : "uncontrolled"}.`), u.current = e;
|
|
8
7
|
}, [
|
|
9
|
-
e
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
e
|
|
9
|
+
]);
|
|
10
|
+
let n = e ? o : p, b = V((t, ...i) => {
|
|
11
|
+
let f = (r, ...l) => {
|
|
12
|
+
c && (Object.is(n, r) || c(r, ...l)), e || (n = r);
|
|
13
|
+
};
|
|
14
|
+
typeof t == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), s((l, ...m) => {
|
|
15
|
+
let a = t(e ? n : l, ...m);
|
|
16
|
+
return f(a, ...i), e ? l : a;
|
|
17
|
+
})) : (e || s(t), f(t, ...i));
|
|
14
18
|
}, [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
e,
|
|
20
|
+
n,
|
|
21
|
+
c
|
|
18
22
|
]);
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onBlur: void 0
|
|
24
|
-
}
|
|
25
|
-
} : {
|
|
26
|
-
focusWithinProps: {
|
|
27
|
-
onFocus: l,
|
|
28
|
-
onBlur: u
|
|
29
|
-
}
|
|
30
|
-
};
|
|
23
|
+
return [
|
|
24
|
+
n,
|
|
25
|
+
b
|
|
26
|
+
];
|
|
31
27
|
}
|
|
32
28
|
export {
|
|
33
|
-
|
|
29
|
+
w as useControlledState
|
|
34
30
|
};
|
package/index191.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@react-aria/focus"),d=require("./index111.js"),v=require("@react-aria/i18n"),P=require("react"),w=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@react-aria/focus"),d=require("./index111.js"),v=require("@react-aria/i18n"),P=require("react"),w=require("./index160.js");function g(n,o,c){let{direction:a}=v.useLocale(),s=P.useMemo(()=>l.createFocusManager(o),[o]),p=e=>{if(e.currentTarget.contains(e.target)&&(e.altKey&&(e.key==="ArrowDown"||e.key==="ArrowUp")&&"setOpen"in n&&(e.preventDefault(),e.stopPropagation(),n.setOpen(!0)),!c))switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),a==="rtl"?s.focusNext():s.focusPrevious();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),a==="rtl"?s.focusPrevious():s.focusNext();break}},u=()=>{var e;if(!o.current)return;let r=(e=window.event)===null||e===void 0?void 0:e.target,i=l.getFocusableTreeWalker(o.current,{tabbable:!0});if(r&&(i.currentNode=r,r=i.previousNode()),!r){let t;do t=i.lastChild(),t&&(r=t);while(t)}for(;r!=null&&r.hasAttribute("data-placeholder");){let t=i.previousNode();if(t&&t.hasAttribute("data-placeholder"))r=t;else break}r&&r.focus()},{pressProps:f}=w.usePress({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){e.pointerType==="mouse"&&u()},onPress(e){e.pointerType!=="mouse"&&u()}});return d.mergeProps(f,{onKeyDown:p})}exports.useDatePickerGroup=g;
|
package/index191.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createFocusManager as c, getFocusableTreeWalker as d } from "@react-ari
|
|
|
2
2
|
import { mergeProps as v } from "./index111.mjs";
|
|
3
3
|
import { useLocale as w } from "@react-aria/i18n";
|
|
4
4
|
import { useMemo as b } from "react";
|
|
5
|
-
import { usePress as m } from "./
|
|
5
|
+
import { usePress as m } from "./index160.mjs";
|
|
6
6
|
function y(i, o, l) {
|
|
7
7
|
let { direction: n } = w(), s = b(() => c(o), [
|
|
8
8
|
o
|
package/index192.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index346.js"),t=require("./index145.js"),c=require("./index111.js");function b(e){let{description:o,errorMessage:i,isInvalid:a,validationState:s}=e,{labelProps:n,fieldProps:r}=u.useLabel(e),l=t.useSlotId([!!o,!!i,a,s]),d=t.useSlotId([!!o,!!i,a,s]);return r=c.mergeProps(r,{"aria-describedby":[l,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:r,descriptionProps:{id:l},errorMessageProps:{id:d}}}exports.useField=b;
|
package/index192.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useLabel as f } from "./
|
|
2
|
-
import { useSlotId as t } from "./
|
|
1
|
+
import { useLabel as f } from "./index346.mjs";
|
|
2
|
+
import { useSlotId as t } from "./index145.mjs";
|
|
3
3
|
import { mergeProps as p } from "./index111.mjs";
|
|
4
4
|
function P(e) {
|
|
5
5
|
let { description: o, errorMessage: a, isInvalid: i, validationState: d } = e, { labelProps: n, fieldProps: r } = f(e), s = t([
|