@okam/stack-ui 1.32.6 → 1.32.7
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/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/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +10 -10
- package/index116.js +1 -1
- package/index116.mjs +6 -6
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +10 -10
- package/index121.js +1 -1
- package/index121.mjs +6 -6
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +9 -9
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +6 -6
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index138.js +1 -1
- package/index138.mjs +52 -12
- package/index139.js +1 -1
- package/index139.mjs +46 -52
- package/index140.js +1 -1
- package/index140.mjs +241 -46
- package/index141.js +2 -1
- package/index141.mjs +13 -241
- package/index142.js +1 -2
- package/index142.mjs +29 -12
- package/index143.js +1 -1
- package/index143.mjs +11 -29
- package/index144.js +1 -1
- package/index144.mjs +21 -23
- package/index145.js +1 -1
- package/index145.mjs +38 -113
- package/index146.js +1 -1
- package/index146.mjs +25 -22
- package/index147.js +1 -1
- package/index147.mjs +251 -35
- package/index148.js +1 -1
- package/index148.mjs +106 -25
- package/index149.js +1 -1
- package/index149.mjs +320 -242
- package/index150.js +1 -1
- package/index150.mjs +105 -104
- package/index151.js +1 -1
- package/index151.mjs +77 -327
- package/index152.js +1 -1
- package/index152.mjs +25 -106
- package/index153.js +1 -1
- package/index153.mjs +23 -82
- package/index154.js +1 -1
- package/index154.mjs +113 -25
- package/index155.js +1 -1
- package/index155.mjs +2 -2
- package/index156.js +1 -1
- package/index156.mjs +123 -17
- package/index157.js +1 -1
- package/index157.mjs +24 -122
- package/index158.js +1 -1
- package/index158.mjs +17 -71
- package/index159.js +1 -1
- package/index159.mjs +62 -338
- package/index160.js +1 -1
- package/index160.mjs +346 -42
- package/index161.js +1 -1
- package/index161.mjs +43 -29
- package/index162.js +1 -1
- package/index162.mjs +28 -24
- package/index163.js +1 -1
- package/index163.mjs +71 -136
- package/index164.js +1 -1
- package/index164.mjs +50 -132
- package/index165.js +1 -1
- package/index165.mjs +21 -96
- package/index166.js +1 -1
- package/index166.mjs +27 -24
- package/index167.js +1 -1
- package/index167.mjs +33 -381
- package/index168.js +1 -1
- package/index168.mjs +24 -90
- package/index169.js +1 -1
- package/index169.mjs +217 -72
- package/index17.js +1 -1
- package/index17.mjs +15 -15
- package/index170.js +1 -1
- package/index170.mjs +132 -50
- package/index171.js +1 -1
- package/index171.mjs +14 -21
- package/index172.js +1 -1
- package/index172.mjs +4 -30
- package/index173.js +1 -1
- package/index173.mjs +6 -33
- package/index174.js +1 -1
- package/index174.mjs +35 -27
- package/index175.js +1 -1
- package/index175.mjs +17 -215
- package/index176.js +1 -1
- package/index176.mjs +43 -14
- package/index177.js +1 -1
- package/index177.mjs +154 -4
- package/index178.js +1 -1
- package/index178.mjs +100 -6
- package/index179.js +1 -1
- package/index179.mjs +17 -37
- package/index180.js +1 -1
- package/index180.mjs +134 -16
- package/index181.js +1 -1
- package/index181.mjs +93 -40
- package/index182.js +1 -1
- package/index182.mjs +24 -151
- package/index183.js +1 -1
- package/index183.mjs +381 -100
- package/index184.js +1 -1
- package/index184.mjs +94 -16
- package/index185.js +1 -1
- package/index185.mjs +197 -205
- package/index186.js +1 -1
- package/index186.mjs +64 -24
- package/index187.js +1 -1
- package/index187.mjs +143 -4
- package/index188.js +1 -1
- package/index188.mjs +124 -3
- package/index189.js +1 -1
- package/index189.mjs +215 -116
- package/index190.js +1 -1
- package/index190.mjs +184 -23
- package/index191.js +1 -1
- package/index191.mjs +69 -51
- package/index192.js +1 -1
- package/index192.mjs +278 -43
- package/index193.js +1 -1
- package/index193.mjs +92 -31
- package/index194.js +1 -1
- package/index194.mjs +184 -109
- package/index195.js +1 -1
- package/index195.mjs +84 -77
- package/index196.js +1 -1
- package/index196.mjs +58 -101
- package/index197.js +1 -1
- package/index197.mjs +127 -98
- package/index198.js +1 -1
- package/index198.mjs +114 -70
- package/index199.js +1 -1
- package/index199.mjs +118 -91
- package/index200.js +1 -1
- package/index200.mjs +69 -152
- package/index201.js +1 -1
- package/index201.mjs +111 -72
- package/index202.js +1 -1
- package/index202.mjs +51 -41
- package/index203.js +1 -1
- package/index203.mjs +93 -5
- package/index204.js +1 -1
- package/index204.mjs +69 -60
- package/index205.js +1 -1
- package/index205.mjs +55 -58
- package/index206.js +1 -1
- package/index206.mjs +92 -196
- package/index207.js +5 -1
- package/index207.mjs +75 -59
- package/index208.js +1 -1
- package/index208.mjs +2008 -126
- package/index209.js +1 -1
- package/index209.mjs +56 -121
- package/index210.js +1 -1
- package/index210.mjs +185 -221
- package/index211.js +1 -1
- package/index211.mjs +206 -185
- package/index212.js +1 -1
- package/index212.mjs +24 -69
- package/index213.js +1 -1
- package/index213.mjs +4 -279
- package/index214.js +1 -1
- package/index214.mjs +3 -98
- package/index215.js +1 -1
- package/index215.mjs +116 -179
- package/index216.js +1 -1
- package/index216.mjs +29 -84
- package/index217.js +1 -1
- package/index217.mjs +51 -58
- package/index218.js +1 -1
- package/index218.mjs +43 -125
- package/index219.js +1 -1
- package/index219.mjs +33 -112
- package/index220.js +1 -1
- package/index220.mjs +110 -119
- package/index221.js +1 -1
- package/index221.mjs +77 -72
- package/index222.js +1 -1
- package/index222.mjs +96 -105
- package/index223.js +1 -1
- package/index223.mjs +98 -53
- package/index224.js +1 -1
- package/index224.mjs +68 -89
- package/index225.js +1 -1
- package/index225.mjs +93 -68
- package/index226.js +1 -1
- package/index226.mjs +151 -52
- package/index227.js +1 -1
- package/index227.mjs +72 -100
- package/index228.js +1 -5
- package/index228.mjs +40 -78
- package/index229.js +1 -1
- package/index229.mjs +5 -2025
- package/index230.js +1 -1
- package/index230.mjs +61 -59
- package/index231.js +1 -1
- package/index231.mjs +58 -187
- package/index232.js +1 -1
- package/index232.mjs +19 -71
- package/index233.js +1 -1
- package/index233.mjs +20 -45
- package/index234.js +1 -1
- package/index234.mjs +20 -30
- package/index235.js +1 -1
- package/index235.mjs +19 -19
- package/index236.js +1 -1
- package/index236.mjs +19 -19
- package/index237.js +1 -1
- package/index237.mjs +19 -19
- package/index238.js +1 -1
- package/index238.mjs +15 -15
- package/index239.js +1 -1
- package/index239.mjs +19 -19
- package/index240.js +1 -1
- package/index240.mjs +19 -19
- package/index241.js +1 -1
- package/index241.mjs +19 -19
- package/index242.js +1 -1
- package/index242.mjs +16 -16
- package/index243.js +1 -1
- package/index243.mjs +19 -19
- package/index244.js +1 -1
- package/index244.mjs +16 -16
- package/index245.js +1 -1
- package/index245.mjs +16 -16
- package/index246.js +1 -1
- package/index246.mjs +19 -19
- package/index247.js +1 -1
- package/index247.mjs +19 -19
- package/index248.js +1 -1
- package/index248.mjs +19 -19
- package/index249.js +1 -1
- package/index249.mjs +18 -18
- package/index250.js +1 -1
- package/index250.mjs +19 -19
- package/index251.js +1 -1
- package/index251.mjs +19 -19
- package/index252.js +1 -1
- package/index252.mjs +19 -19
- package/index253.js +1 -1
- package/index253.mjs +16 -16
- package/index254.js +1 -1
- package/index254.mjs +19 -19
- package/index255.js +1 -1
- package/index255.mjs +19 -19
- package/index256.js +1 -1
- package/index256.mjs +16 -16
- package/index257.js +1 -1
- package/index257.mjs +18 -18
- package/index258.js +1 -1
- package/index258.mjs +16 -16
- package/index259.js +1 -1
- package/index259.mjs +16 -16
- package/index260.js +1 -1
- package/index260.mjs +16 -16
- package/index261.js +1 -1
- package/index261.mjs +19 -19
- package/index262.js +1 -1
- package/index262.mjs +16 -16
- package/index263.js +1 -1
- package/index263.mjs +15 -15
- package/index264.js +1 -1
- package/index264.mjs +19 -19
- package/index265.js +1 -1
- package/index265.mjs +19 -19
- package/index266.js +1 -1
- package/index266.mjs +71 -19
- package/index267.js +1 -1
- package/index267.mjs +45 -20
- package/index268.js +1 -1
- package/index268.mjs +30 -20
- package/index269.js +1 -1
- package/index269.mjs +130 -4
- package/index270.js +1 -1
- package/index270.mjs +188 -22
- package/index271.js +1 -1
- package/index271.mjs +8 -46
- package/index272.js +1 -1
- package/index272.mjs +3 -5
- package/index273.js +1 -1
- package/index273.mjs +37 -6
- package/index274.js +1 -1
- package/index274.mjs +5 -14
- package/index275.js +1 -1
- package/index275.mjs +29 -24
- package/index276.js +1 -1
- package/index276.mjs +6 -28
- package/index277.js +1 -1
- package/index277.mjs +4 -31
- package/index278.js +1 -1
- package/index278.mjs +48 -9
- package/index279.js +1 -1
- package/index279.mjs +9 -28
- package/index280.js +1 -1
- package/index280.mjs +16 -10
- package/index281.js +1 -1
- package/index281.mjs +16 -6
- package/index282.js +1 -1
- package/index282.mjs +16 -8
- package/index283.js +1 -1
- package/index283.mjs +16 -14
- package/index284.js +1 -1
- package/index284.mjs +16 -9
- package/index285.js +1 -1
- package/index285.mjs +16 -49
- package/index286.js +1 -1
- package/index286.mjs +15 -15
- package/index287.js +1 -1
- package/index287.mjs +15 -15
- package/index288.js +1 -1
- package/index288.mjs +15 -15
- package/index289.js +1 -1
- package/index289.mjs +15 -15
- package/index290.js +1 -1
- package/index290.mjs +12 -12
- package/index291.js +1 -1
- package/index291.mjs +15 -15
- package/index292.js +1 -1
- package/index292.mjs +15 -15
- package/index293.js +1 -1
- package/index293.mjs +15 -15
- package/index294.js +1 -1
- package/index294.mjs +12 -12
- package/index295.js +1 -1
- package/index295.mjs +15 -15
- 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 +15 -15
- package/index299.js +1 -1
- package/index299.mjs +12 -12
- package/index300.js +1 -1
- package/index300.mjs +15 -15
- package/index301.js +1 -1
- package/index301.mjs +12 -12
- 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 +12 -12
- 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 +12 -12
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +12 -12
- 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 +25 -16
- package/index315.js +1 -1
- package/index315.mjs +48 -16
- package/index316.js +1 -1
- package/index316.mjs +6 -16
- package/index317.js +1 -1
- package/index317.mjs +6 -16
- package/index318.js +1 -1
- package/index318.mjs +15 -16
- package/index319.js +1 -1
- package/index319.mjs +25 -16
- package/index320.js +1 -1
- package/index320.mjs +26 -128
- package/index321.js +1 -1
- package/index321.mjs +30 -189
- package/index322.js +1 -1
- package/index322.mjs +28 -9
- package/index323.js +1 -1
- package/index323.mjs +9 -3
- package/index324.js +1 -1
- package/index324.mjs +5 -36
- package/index325.js +1 -1
- package/index325.mjs +7 -5
- package/index326.js +1 -1
- package/index326.mjs +13 -29
- package/index327.js +1 -1
- package/index327.mjs +8 -6
- package/index328.js +1 -1
- package/index328.mjs +2 -2
- package/index329.js +1 -1
- package/index329.mjs +2 -2
- package/index331.js +1 -1
- package/index331.mjs +1 -1
- package/index332.js +1 -1
- package/index332.mjs +2 -2
- package/index333.js +1 -1
- package/index333.mjs +4 -4
- package/index337.js +1 -1
- package/index337.mjs +1 -1
- package/index338.js +1 -1
- package/index338.mjs +4 -7
- package/index339.js +1 -1
- package/index339.mjs +6 -68
- package/index340.js +1 -1
- package/index340.mjs +65 -27
- package/index341.js +1 -1
- package/index341.mjs +30 -6
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +6 -20
- package/index344.js +1 -1
- package/index344.mjs +20 -3
- package/index345.js +1 -1
- package/index345.mjs +117 -7
- package/index346.js +1 -1
- package/index346.mjs +71 -7
- package/index347.js +1 -1
- package/index347.mjs +7 -7
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +4 -4
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +7 -7
- package/index357.js +1 -1
- package/index357.mjs +7 -7
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +7 -7
- package/index362.js +1 -1
- package/index362.mjs +4 -4
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +4 -4
- package/index370.js +1 -1
- package/index370.mjs +7 -7
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +7 -7
- package/index376.js +1 -1
- package/index376.mjs +4 -4
- package/index377.js +1 -1
- package/index377.mjs +7 -7
- package/index378.js +1 -1
- package/index378.mjs +7 -7
- package/index379.js +1 -1
- package/index379.mjs +7 -117
- package/index380.js +1 -1
- package/index380.mjs +7 -71
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index324.mjs
CHANGED
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
on: r,
|
|
6
|
-
setTranslate: f,
|
|
7
|
-
setTransition: p,
|
|
8
|
-
overwriteParams: n,
|
|
9
|
-
perspective: o,
|
|
10
|
-
recreateShadows: l,
|
|
11
|
-
getEffectParams: c
|
|
12
|
-
} = d;
|
|
13
|
-
r("beforeInit", () => {
|
|
14
|
-
if (e.params.effect !== s) return;
|
|
15
|
-
e.classNames.push(`${e.params.containerModifierClass}${s}`), o && o() && e.classNames.push(`${e.params.containerModifierClass}3d`);
|
|
16
|
-
const a = n ? n() : {};
|
|
17
|
-
Object.assign(e.params, a), Object.assign(e.originalParams, a);
|
|
18
|
-
}), r("setTranslate", () => {
|
|
19
|
-
e.params.effect === s && f();
|
|
20
|
-
}), r("setTransition", (a, i) => {
|
|
21
|
-
e.params.effect === s && p(i);
|
|
22
|
-
}), r("transitionEnd", () => {
|
|
23
|
-
if (e.params.effect === s && l) {
|
|
24
|
-
if (!c || !c().slideShadows) return;
|
|
25
|
-
e.slides.forEach((a) => {
|
|
26
|
-
a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((i) => i.remove());
|
|
27
|
-
}), l();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
let t;
|
|
31
|
-
r("virtualUpdate", () => {
|
|
32
|
-
e.params.effect === s && (e.slides.length || (t = !0), requestAnimationFrame(() => {
|
|
33
|
-
t && e.slides && e.slides.length && (f(), t = !1);
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
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;
|
|
36
5
|
}
|
|
37
6
|
export {
|
|
38
|
-
|
|
7
|
+
c as isScrollable
|
|
39
8
|
};
|
package/index325.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("./index324.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/index325.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { isScrollable as r } from "./index324.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/index326.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("./index172.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/index326.mjs
CHANGED
|
@@ -1,32 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let n = !1, r;
|
|
14
|
-
l ? r = s : r = s.filter((t) => {
|
|
15
|
-
const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
|
|
16
|
-
return e.getSlideIndex(i) === d;
|
|
17
|
-
}), r.forEach((t) => {
|
|
18
|
-
f(t, () => {
|
|
19
|
-
if (n || !e || e.destroyed) return;
|
|
20
|
-
n = !0, e.animating = !1;
|
|
21
|
-
const i = new window.CustomEvent("transitionend", {
|
|
22
|
-
bubbles: !0,
|
|
23
|
-
cancelable: !0
|
|
24
|
-
});
|
|
25
|
-
e.wrapperEl.dispatchEvent(i);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
1
|
+
import { useLayoutEffect as f } from "./index172.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
|
+
}, []);
|
|
29
13
|
}
|
|
30
14
|
export {
|
|
31
|
-
|
|
15
|
+
s as useEffectEvent
|
|
32
16
|
};
|
package/index327.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("./index174.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/index327.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isAndroid as i } from "./index174.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";
|
|
6
7
|
}
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
o as isVirtualClick,
|
|
10
|
+
u as isVirtualPointerEvent
|
|
9
11
|
};
|
package/index328.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index329.js"),A=require("./index330.js"),f=require("react"),P=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index329.js"),A=require("./index330.js"),f=require("react"),P=require("./index172.js"),j=require("./index322.js"),D=require("@react-aria/i18n");let e=typeof document<"u"?window.visualViewport:null;function G(n){let{direction:h}=D.useLocale(),{arrowSize:$=0,targetRef:v,overlayRef:i,scrollRef:s=i,placement:w="bottom",containerPadding:C=12,shouldFlip:H=!0,boundaryElement:R=typeof document<"u"?document.body:null,offset:S=0,crossOffset:B=0,shouldUpdatePosition:q=!0,isOpen:p=!0,onClose:m,maxHeight:O,arrowBoundaryOffset:T=0}=n,[t,k]=f.useState(null),F=[q,w,i.current,v.current,s.current,C,H,R,S,B,p,h,O,T,$],N=f.useRef(e==null?void 0:e.scale);f.useEffect(()=>{p&&(N.current=e==null?void 0:e.scale)},[p]);let u=f.useCallback(()=>{if(q===!1||!p||!i.current||!v.current||!R||(e==null?void 0:e.scale)!==N.current)return;let o=null;if(s.current&&s.current.contains(document.activeElement)){var a;let r=(a=document.activeElement)===null||a===void 0?void 0:a.getBoundingClientRect(),g=s.current.getBoundingClientRect();var d;if(o={type:"top",offset:((d=r==null?void 0:r.top)!==null&&d!==void 0?d:0)-g.top},o.offset>g.height/2){o.type="bottom";var x;o.offset=((x=r==null?void 0:r.bottom)!==null&&x!==void 0?x:0)-g.bottom}}let l=i.current;if(!O&&i.current){var z;l.style.top="0px",l.style.bottom="";var L;l.style.maxHeight=((L=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let c=M.calculatePosition({placement:K(w,h),overlayNode:i.current,targetNode:v.current,scrollNode:s.current||i.current,padding:C,shouldFlip:H,boundaryElement:R,offset:S,crossOffset:B,maxHeight:O,arrowSize:$,arrowBoundaryOffset:T});if(c.position){if(l.style.top="",l.style.bottom="",l.style.left="",l.style.right="",Object.keys(c.position).forEach(r=>l.style[r]=c.position[r]+"px"),l.style.maxHeight=c.maxHeight!=null?c.maxHeight+"px":"",o&&document.activeElement&&s.current){let r=document.activeElement.getBoundingClientRect(),g=s.current.getBoundingClientRect(),I=r[o.type]-g[o.type];s.current.scrollTop+=I-o.offset}k(c)}},F);P.useLayoutEffect(u,F),J(u),j.useResizeObserver({ref:i,onResize:u}),j.useResizeObserver({ref:v,onResize:u});let y=f.useRef(!1);P.useLayoutEffect(()=>{let o,a=()=>{y.current=!0,clearTimeout(o),o=setTimeout(()=>{y.current=!1},500),u()},d=()=>{y.current&&a()};return e==null||e.addEventListener("resize",a),e==null||e.addEventListener("scroll",d),()=>{e==null||e.removeEventListener("resize",a),e==null||e.removeEventListener("scroll",d)}},[u]);let U=f.useCallback(()=>{y.current||m==null||m()},[m,y]);A.useCloseOnScroll({triggerRef:v,isOpen:p,onClose:m&&U});var b,E;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...t==null?void 0:t.position,maxHeight:(b=t==null?void 0:t.maxHeight)!==null&&b!==void 0?b:"100vh"}},placement:(E=t==null?void 0:t.placement)!==null&&E!==void 0?E:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:t==null?void 0:t.arrowOffsetLeft,top:t==null?void 0:t.arrowOffsetTop}},updatePosition:u}}function J(n){P.useLayoutEffect(()=>(window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}),[n])}function K(n,h){return h==="rtl"?n.replace("start","right").replace("end","left"):n.replace("start","left").replace("end","right")}exports.useOverlayPosition=G;
|
package/index328.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { calculatePosition as D } from "./index329.mjs";
|
|
2
2
|
import { useCloseOnScroll as G } from "./index330.mjs";
|
|
3
3
|
import { useState as J, useRef as U, useEffect as K, useCallback as j } from "react";
|
|
4
|
-
import { useLayoutEffect as z } from "./
|
|
5
|
-
import { useResizeObserver as k } from "./
|
|
4
|
+
import { useLayoutEffect as z } from "./index172.mjs";
|
|
5
|
+
import { useResizeObserver as k } from "./index322.mjs";
|
|
6
6
|
import { useLocale as M } from "@react-aria/i18n";
|
|
7
7
|
let e = typeof document < "u" ? window.visualViewport : null;
|
|
8
8
|
function te(n) {
|
package/index329.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const it=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const it=require("./index174.js"),q=require("./index338.js"),x={top:"top",bottom:"top",left:"left",right:"left"},z={top:"bottom",bottom:"top",left:"right",right:"left"},ct={top:"left",left:"top"},j={top:"height",left:"width"},B={width:"totalWidth",height:"totalHeight"},H={};let $=typeof document<"u"?window.visualViewport:null;function G(e){let t=0,o=0,c=0,i=0,r=0,f=0,l={};var v;let p=((v=$==null?void 0:$.scale)!==null&&v!==void 0?v:1)>1;if(e.tagName==="BODY"){let h=document.documentElement;c=h.clientWidth,i=h.clientHeight;var s;t=(s=$==null?void 0:$.width)!==null&&s!==void 0?s:c;var d;o=(d=$==null?void 0:$.height)!==null&&d!==void 0?d:i,l.top=h.scrollTop||e.scrollTop,l.left=h.scrollLeft||e.scrollLeft,$&&(r=$.offsetTop,f=$.offsetLeft)}else({width:t,height:o,top:r,left:f}=M(e)),l.top=e.scrollTop,l.left=e.scrollLeft,c=t,i=o;if(it.isWebKit()&&(e.tagName==="BODY"||e.tagName==="HTML")&&p){l.top=0,l.left=0;var g;r=(g=$==null?void 0:$.pageTop)!==null&&g!==void 0?g:0;var n;f=(n=$==null?void 0:$.pageLeft)!==null&&n!==void 0?n:0}return{width:t,height:o,totalWidth:c,totalHeight:i,scroll:l,top:r,left:f}}function nt(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function K(e,t,o,c,i,r,f){var l;let v=(l=i.scroll[e])!==null&&l!==void 0?l:0,p=c[j[e]],s=c.scroll[x[e]]+r,d=p+c.scroll[x[e]]-r,g=t-v+f[e]-c[x[e]],n=t-v+o+f[e]-c[x[e]];return g<s?s-g:n>d?Math.max(d-n,s-g):0}function rt(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function J(e){if(H[e])return H[e];let[t,o]=e.split(" "),c=x[t]||"right",i=ct[c];x[o]||(o="center");let r=j[c],f=j[i];return H[e]={placement:t,crossPlacement:o,axis:c,crossAxis:i,size:r,crossSize:f},H[e]}function Z(e,t,o,c,i,r,f,l,v,p){let{placement:s,crossPlacement:d,axis:g,crossAxis:n,size:h,crossSize:u}=c,a={};var w;a[n]=(w=e[n])!==null&&w!==void 0?w:0;var m,P,E,T;d==="center"?a[n]+=(((m=e[u])!==null&&m!==void 0?m:0)-((P=o[u])!==null&&P!==void 0?P:0))/2:d!==n&&(a[n]+=((E=e[u])!==null&&E!==void 0?E:0)-((T=o[u])!==null&&T!==void 0?T:0)),a[n]+=r;const _=e[n]-o[u]+v+p,S=e[n]+e[u]-v-p;if(a[n]=q.clamp(a[n],_,S),s===g){const L=l?f[h]:t[B[h]];a[z[g]]=Math.floor(L-e[g]+i)}else a[g]=Math.floor(e[g]+e[h]+i);return a}function at(e,t,o,c,i,r,f,l){const v=c?o.height:t[B.height];var p;let s=e.top!=null?o.top+e.top:o.top+(v-((p=e.bottom)!==null&&p!==void 0?p:0)-f);var d,g,n,h,u,a;let w=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-s-(((g=i.top)!==null&&g!==void 0?g:0)+((n=i.bottom)!==null&&n!==void 0?n:0)+r)):Math.max(0,s+f-(t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0))-(((u=i.top)!==null&&u!==void 0?u:0)+((a=i.bottom)!==null&&a!==void 0?a:0)+r));return Math.min(t.height-r*2,w)}function Q(e,t,o,c,i,r){let{placement:f,axis:l,size:v}=r;var p,s;if(f===l)return Math.max(0,o[l]-e[l]-((p=e.scroll[l])!==null&&p!==void 0?p:0)+t[l]-((s=c[l])!==null&&s!==void 0?s:0)-c[z[l]]-i);var d;return Math.max(0,e[v]+e[l]+e.scroll[l]-t[l]-o[l]-o[v]-((d=c[l])!==null&&d!==void 0?d:0)-c[z[l]]-i)}function V(e,t,o,c,i,r,f,l,v,p,s,d,g,n,h,u){let a=J(e),{size:w,crossAxis:m,crossSize:P,placement:E,crossPlacement:T}=a,_=Z(t,l,o,a,s,d,p,g,h,u),S=s,L=Q(l,p,t,i,r+s,a);if(f&&c[w]>L){let X=J(`${z[E]} ${T}`),ot=Z(t,l,o,X,s,d,p,g,h,u);Q(l,p,t,i,r+s,X)>L&&(a=X,_=ot,S=s)}let b="bottom";a.axis==="top"?a.placement==="top"?b="top":a.placement==="bottom"&&(b="bottom"):a.crossAxis==="top"&&(a.crossPlacement==="top"?b="bottom":a.crossPlacement==="bottom"&&(b="top"));let I=K(m,_[m],o[P],l,v,r,p);_[m]+=I;let C=at(_,l,p,g,i,r,o.height,b);n&&n<C&&(C=n),o.height=Math.min(o.height,C),_=Z(t,l,o,a,S,d,p,g,h,u),I=K(m,_[m],o[P],l,v,r,p),_[m]+=I;let A={},k=t[m]+.5*t[P]-_[m]-i[x[m]];const D=h/2+u;var F,N,R,Y;const O=x[m]==="left"?((F=i.left)!==null&&F!==void 0?F:0)+((N=i.right)!==null&&N!==void 0?N:0):((R=i.top)!==null&&R!==void 0?R:0)+((Y=i.bottom)!==null&&Y!==void 0?Y:0),y=o[P]-O-h/2-u,tt=t[m]+h/2-(_[m]+i[x[m]]),et=t[m]+t[P]-h/2-(_[m]+i[x[m]]),lt=q.clamp(k,tt,et);return A[m]=q.clamp(lt,D,y),{position:_,maxHeight:C,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:a.placement}}function pt(e){let{placement:t,targetNode:o,overlayNode:c,scrollNode:i,padding:r,shouldFlip:f,boundaryElement:l,offset:v,crossOffset:p,maxHeight:s,arrowSize:d=0,arrowBoundaryOffset:g=0}=e,n=c instanceof HTMLElement?st(c):document.documentElement,h=n===document.documentElement;const u=window.getComputedStyle(n).position;let a=!!u&&u!=="static",w=h?M(o):U(o,n);if(!h){let{marginTop:A,marginLeft:k}=window.getComputedStyle(o);w.top+=parseInt(A,10)||0,w.left+=parseInt(k,10)||0}let m=M(c),P=rt(c);var E,T;m.width+=((E=P.left)!==null&&E!==void 0?E:0)+((T=P.right)!==null&&T!==void 0?T:0);var _,S;m.height+=((_=P.top)!==null&&_!==void 0?_:0)+((S=P.bottom)!==null&&S!==void 0?S:0);let L=nt(i),b=G(l),I=G(n),C=l.tagName==="BODY"?M(n):U(n,l);return n.tagName==="HTML"&&l.tagName==="BODY"&&(I.scroll.top=0,I.scroll.left=0),V(t,w,m,L,P,r,f,b,I,C,v,p,a,s,d,g)}function M(e){let{top:t,left:o,width:c,height:i}=e.getBoundingClientRect(),{scrollTop:r,scrollLeft:f,clientTop:l,clientLeft:v}=document.documentElement;return{top:t+r-l,left:o+f-v,width:c,height:i}}function U(e,t){let o=window.getComputedStyle(e),c;if(o.position==="fixed"){let{top:i,left:r,width:f,height:l}=e.getBoundingClientRect();c={top:i,left:r,width:f,height:l}}else{c=M(e);let i=M(t),r=window.getComputedStyle(t);i.top+=(parseInt(r.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(r.borderLeftWidth,10)||0)-t.scrollLeft,c.top-=i.top,c.left-=i.left}return c.top-=parseInt(o.marginTop,10)||0,c.left-=parseInt(o.marginLeft,10)||0,c}function st(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W(t);)t=t.parentElement;return t||document.documentElement}function W(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}exports.calculatePosition=pt;exports.calculatePositionInternal=V;
|
package/index329.mjs
CHANGED
package/index331.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@react-aria/focus"),D=require("react"),h=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@react-aria/focus"),D=require("react"),h=require("./index162.js"),y=require("./index332.js"),t=[];function b(a,i){let{onClose:n,shouldCloseOnBlur:l,isOpen:o,isDismissable:u=!1,isKeyboardDismissDisabled:d=!1,shouldCloseOnInteractOutside:s}=a;D.useEffect(()=>(o&&t.push(i),()=>{let e=t.indexOf(i);e>=0&&t.splice(e,1)}),[o,i]);let r=()=>{t[t.length-1]===i&&n&&n()},c=e=>{(!s||s(e.target))&&t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault())},f=e=>{(!s||s(e.target))&&(t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault()),r())},p=e=>{e.key==="Escape"&&!d&&!e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault(),r())};y.useInteractOutside({ref:i,onInteractOutside:u&&o?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:O}=h.useFocusWithin({isDisabled:!l,onBlurWithin:e=>{!e.relatedTarget||v.isElementInChildOfActiveScope(e.relatedTarget)||(!s||s(e.relatedTarget))&&(n==null||n())}}),g=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:{onKeyDown:p,...O},underlayProps:{onPointerDown:g}}}exports.useOverlay=b;
|
package/index331.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isElementInChildOfActiveScope as g } from "@react-aria/focus";
|
|
2
2
|
import { useEffect as m } from "react";
|
|
3
|
-
import { useFocusWithin as v } from "./
|
|
3
|
+
import { useFocusWithin as v } from "./index162.mjs";
|
|
4
4
|
import { useInteractOutside as b } from "./index332.mjs";
|
|
5
5
|
const t = [];
|
|
6
6
|
function C(a, i) {
|
package/index332.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index317.js"),v=require("./index326.js"),m=require("react");function g(r){let{ref:n,onInteractOutside:s,isDisabled:d,onInteractOutsideStart:l}=r,E=m.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=v.useEffectEvent(e=>{s&&f(e,n)&&(l&&l(e),E.current.isPointerDown=!0)}),c=v.useEffectEvent(e=>{s&&s(e)});m.useEffect(()=>{let e=E.current;if(d)return;const w=n.current,t=p.getOwnerDocument(w);if(typeof PointerEvent<"u"){let i=u=>{e.isPointerDown&&f(u,n)&&c(u),e.isPointerDown=!1};return t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerup",i,!0),()=>{t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerup",i,!0)}}else{let i=a=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1},u=a=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1};return t.addEventListener("mousedown",o,!0),t.addEventListener("mouseup",i,!0),t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",u,!0),()=>{t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseup",i,!0),t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",u,!0)}}},[n,d,o,c])}function f(r,n){if(r.button>0)return!1;if(r.target){const s=r.target.ownerDocument;if(!s||!s.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return n.current&&!n.current.contains(r.target)}exports.useInteractOutside=g;
|
package/index332.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getOwnerDocument as p } from "./
|
|
2
|
-
import { useEffectEvent as E } from "./
|
|
1
|
+
import { getOwnerDocument as p } from "./index317.mjs";
|
|
2
|
+
import { useEffectEvent as E } from "./index326.mjs";
|
|
3
3
|
import { useRef as w, useEffect as D } from "react";
|
|
4
4
|
function $(r) {
|
|
5
5
|
let { ref: n, onInteractOutside: i, isDisabled: d, onInteractOutsideStart: l } = r, m = w({
|
package/index333.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index316.js"),y=require("./index172.js"),g=require("./index173.js"),S=require("./index174.js"),m=typeof document<"u"&&window.visualViewport,T=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let s=0,f;function b(e={}){let{isDisabled:t}=e;y.useLayoutEffect(()=>{if(!t)return s++,s===1&&(S.isIOS()?f=L():f=x()),()=>{s--,s===0&&f()}},[t])}function x(){return v.chain(l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),l(document.documentElement,"overflow","hidden"))}function L(){let e,t,n=r=>{e=g.getScrollParent(r.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=l(e,"overscrollBehavior","contain"))},o=r=>{if(!e||e===document.documentElement||e===document.body){r.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&r.preventDefault()},u=r=>{let c=r.target;h(c)&&c!==document.activeElement&&(r.preventDefault(),p(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=r=>{let c=r.target;h(c)&&(p(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",m&&(m.height<window.innerHeight?requestAnimationFrame(()=>{w(c)}):m.addEventListener("resize",()=>w(c),{once:!0}))}))},i=null,p=()=>{if(i)return;let r=()=>{window.scrollTo(0,0)},c=window.pageXOffset,$=window.pageYOffset;i=v.chain(d(window,"scroll",r),l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),l(document.documentElement,"overflow","hidden"),l(document.body,"marginTop",`-${$}px`),()=>{window.scrollTo(c,$)}),window.scrollTo(0,0)},E=v.chain(d(document,"touchstart",n,{passive:!1,capture:!0}),d(document,"touchmove",o,{passive:!1,capture:!0}),d(document,"touchend",u,{passive:!1,capture:!0}),d(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),E()}}function l(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function d(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function w(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let o=g.getScrollParent(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let u=o.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>u+n.clientHeight&&(o.scrollTop+=a-u)}n=o.parentElement}}function h(e){return e instanceof HTMLInputElement&&!T.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.usePreventScroll=b;
|
package/index333.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { chain as $ } from "./
|
|
2
|
-
import { useLayoutEffect as b } from "./
|
|
3
|
-
import { getScrollParent as E } from "./
|
|
4
|
-
import { isIOS as y } from "./
|
|
1
|
+
import { chain as $ } from "./index316.mjs";
|
|
2
|
+
import { useLayoutEffect as b } from "./index172.mjs";
|
|
3
|
+
import { getScrollParent as E } from "./index173.mjs";
|
|
4
|
+
import { isIOS as y } from "./index174.mjs";
|
|
5
5
|
const m = typeof document < "u" && window.visualViewport, T = /* @__PURE__ */ new Set([
|
|
6
6
|
"checkbox",
|
|
7
7
|
"radio",
|
package/index337.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index339.js"),e=require("react");function n({children:r}){let t=e.useMemo(()=>({register:()=>{}}),[]);return e.createElement(o.PressResponderContext.Provider,{value:t},r)}exports.ClearPressResponder=n;
|
package/index337.mjs
CHANGED
package/index338.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 n(e,t=-1/0,a=1/0){return Math.min(Math.max(e,t),a)}exports.clamp=n;
|
package/index338.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
});
|
|
6
|
-
t.displayName = "PressResponderContext";
|
|
1
|
+
function c(a, n = -1 / 0, t = 1 / 0) {
|
|
2
|
+
return Math.min(Math.max(a, n), t);
|
|
3
|
+
}
|
|
7
4
|
export {
|
|
8
|
-
|
|
5
|
+
c as clamp
|
|
9
6
|
};
|
package/index339.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("react"),e=t.createContext({register:()=>{}});e.displayName="PressResponderContext";exports.PressResponderContext=e;
|
package/index339.mjs
CHANGED
|
@@ -1,71 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class f {
|
|
5
|
-
isDefaultPrevented() {
|
|
6
|
-
return this.nativeEvent.defaultPrevented;
|
|
1
|
+
import e from "react";
|
|
2
|
+
const t = e.createContext({
|
|
3
|
+
register: () => {
|
|
7
4
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
stopPropagation() {
|
|
12
|
-
this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
|
|
13
|
-
}
|
|
14
|
-
isPropagationStopped() {
|
|
15
|
-
return !1;
|
|
16
|
-
}
|
|
17
|
-
persist() {
|
|
18
|
-
}
|
|
19
|
-
constructor(t, e) {
|
|
20
|
-
this.nativeEvent = e, this.target = e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget, this.bubbles = e.bubbles, this.cancelable = e.cancelable, this.defaultPrevented = e.defaultPrevented, this.eventPhase = e.eventPhase, this.isTrusted = e.isTrusted, this.timeStamp = e.timeStamp, this.type = t;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function h(n) {
|
|
24
|
-
let t = o({
|
|
25
|
-
isFocused: !1,
|
|
26
|
-
observer: null
|
|
27
|
-
});
|
|
28
|
-
l(() => {
|
|
29
|
-
const r = t.current;
|
|
30
|
-
return () => {
|
|
31
|
-
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
32
|
-
};
|
|
33
|
-
}, []);
|
|
34
|
-
let e = d((r) => {
|
|
35
|
-
n == null || n(r);
|
|
36
|
-
});
|
|
37
|
-
return i((r) => {
|
|
38
|
-
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
39
|
-
t.current.isFocused = !0;
|
|
40
|
-
let s = r.target, u = (a) => {
|
|
41
|
-
t.current.isFocused = !1, s.disabled && e(new f("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
42
|
-
};
|
|
43
|
-
s.addEventListener("focusout", u, {
|
|
44
|
-
once: !0
|
|
45
|
-
}), t.current.observer = new MutationObserver(() => {
|
|
46
|
-
if (t.current.isFocused && s.disabled) {
|
|
47
|
-
var a;
|
|
48
|
-
(a = t.current.observer) === null || a === void 0 || a.disconnect();
|
|
49
|
-
let c = s === document.activeElement ? null : document.activeElement;
|
|
50
|
-
s.dispatchEvent(new FocusEvent("blur", {
|
|
51
|
-
relatedTarget: c
|
|
52
|
-
})), s.dispatchEvent(new FocusEvent("focusout", {
|
|
53
|
-
bubbles: !0,
|
|
54
|
-
relatedTarget: c
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
}), t.current.observer.observe(s, {
|
|
58
|
-
attributes: !0,
|
|
59
|
-
attributeFilter: [
|
|
60
|
-
"disabled"
|
|
61
|
-
]
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}, [
|
|
65
|
-
e
|
|
66
|
-
]);
|
|
67
|
-
}
|
|
5
|
+
});
|
|
6
|
+
t.displayName = "PressResponderContext";
|
|
68
7
|
export {
|
|
69
|
-
|
|
70
|
-
h as useSyntheticBlurEvent
|
|
8
|
+
t as PressResponderContext
|
|
71
9
|
};
|
package/index340.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"),l=require("./index172.js"),d=require("./index326.js");class i{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=t}}function b(u){let t=c.useRef({isFocused:!1,observer:null});l.useLayoutEffect(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=d.useEffectEvent(r=>{u==null||u(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,o=n=>{t.current.isFocused=!1,s.disabled&&e(new i("blur",n)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var n;(n=t.current.observer)===null||n===void 0||n.disconnect();let a=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[e])}exports.SyntheticFocusEvent=i;exports.useSyntheticBlurEvent=b;
|
package/index340.mjs
CHANGED
|
@@ -1,33 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useRef as o, useCallback as i } from "react";
|
|
2
|
+
import { useLayoutEffect as l } from "./index172.mjs";
|
|
3
|
+
import { useEffectEvent as d } from "./index326.mjs";
|
|
4
|
+
class f {
|
|
5
|
+
isDefaultPrevented() {
|
|
6
|
+
return this.nativeEvent.defaultPrevented;
|
|
7
|
+
}
|
|
8
|
+
preventDefault() {
|
|
9
|
+
this.defaultPrevented = !0, this.nativeEvent.preventDefault();
|
|
10
|
+
}
|
|
11
|
+
stopPropagation() {
|
|
12
|
+
this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
|
|
13
|
+
}
|
|
14
|
+
isPropagationStopped() {
|
|
15
|
+
return !1;
|
|
16
|
+
}
|
|
17
|
+
persist() {
|
|
18
|
+
}
|
|
19
|
+
constructor(t, e) {
|
|
20
|
+
this.nativeEvent = e, this.target = e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget, this.bubbles = e.bubbles, this.cancelable = e.cancelable, this.defaultPrevented = e.defaultPrevented, this.eventPhase = e.eventPhase, this.isTrusted = e.isTrusted, this.timeStamp = e.timeStamp, this.type = t;
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
function h(n) {
|
|
24
|
+
let t = o({
|
|
25
|
+
isFocused: !1,
|
|
26
|
+
observer: null
|
|
27
|
+
});
|
|
28
|
+
l(() => {
|
|
29
|
+
const r = t.current;
|
|
30
|
+
return () => {
|
|
31
|
+
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
let e = d((r) => {
|
|
35
|
+
n == null || n(r);
|
|
36
|
+
});
|
|
37
|
+
return i((r) => {
|
|
38
|
+
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
39
|
+
t.current.isFocused = !0;
|
|
40
|
+
let s = r.target, u = (a) => {
|
|
41
|
+
t.current.isFocused = !1, s.disabled && e(new f("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
42
|
+
};
|
|
43
|
+
s.addEventListener("focusout", u, {
|
|
44
|
+
once: !0
|
|
45
|
+
}), t.current.observer = new MutationObserver(() => {
|
|
46
|
+
if (t.current.isFocused && s.disabled) {
|
|
47
|
+
var a;
|
|
48
|
+
(a = t.current.observer) === null || a === void 0 || a.disconnect();
|
|
49
|
+
let c = s === document.activeElement ? null : document.activeElement;
|
|
50
|
+
s.dispatchEvent(new FocusEvent("blur", {
|
|
51
|
+
relatedTarget: c
|
|
52
|
+
})), s.dispatchEvent(new FocusEvent("focusout", {
|
|
53
|
+
bubbles: !0,
|
|
54
|
+
relatedTarget: c
|
|
55
|
+
}));
|
|
22
56
|
}
|
|
57
|
+
}), t.current.observer.observe(s, {
|
|
58
|
+
attributes: !0,
|
|
59
|
+
attributeFilter: [
|
|
60
|
+
"disabled"
|
|
61
|
+
]
|
|
23
62
|
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
63
|
+
}
|
|
64
|
+
}, [
|
|
65
|
+
e
|
|
66
|
+
]);
|
|
29
67
|
}
|
|
30
68
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
69
|
+
f as SyntheticFocusEvent,
|
|
70
|
+
h as useSyntheticBlurEvent
|
|
33
71
|
};
|
package/index341.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("./index317.js"),c=require("./index320.js"),o=require("./index174.js");let n="default",s="",l=new WeakMap;function r(e){if(o.isIOS()){if(n==="default"){const t=i.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function u(e){if(o.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{c.runAfterTransition(()=>{if(n==="restoring"){const t=i.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=r;exports.restoreTextSelection=u;
|
package/index341.mjs
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { getOwnerDocument as c } from "./index317.mjs";
|
|
2
|
+
import { runAfterTransition as i } from "./index320.mjs";
|
|
3
|
+
import { isIOS as o } from "./index174.mjs";
|
|
4
|
+
let n = "default", l = "", s = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function r(e) {
|
|
6
|
+
if (o()) {
|
|
7
|
+
if (n === "default") {
|
|
8
|
+
const t = c(e);
|
|
9
|
+
l = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
10
|
+
}
|
|
11
|
+
n = "disabled";
|
|
12
|
+
} else (e instanceof HTMLElement || e instanceof SVGElement) && (s.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
13
|
+
}
|
|
14
|
+
function m(e) {
|
|
15
|
+
if (o()) {
|
|
16
|
+
if (n !== "disabled") return;
|
|
17
|
+
n = "restoring", setTimeout(() => {
|
|
18
|
+
i(() => {
|
|
19
|
+
if (n === "restoring") {
|
|
20
|
+
const t = c(e);
|
|
21
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = l || ""), l = "", n = "default";
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}, 300);
|
|
25
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && s.has(e)) {
|
|
26
|
+
let t = s.get(e);
|
|
27
|
+
e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), s.delete(e);
|
|
28
|
+
}
|
|
6
29
|
}
|
|
7
30
|
export {
|
|
8
|
-
|
|
31
|
+
r as disableTextSelection,
|
|
32
|
+
m as restoreTextSelection
|
|
9
33
|
};
|
package/index342.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index416.js"),s=require("./index417.js");function c(e,t){var r=s._(e,t,"get");return _._(e,r)}exports._=c;
|
package/index342.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
function
|
|
4
|
-
var t =
|
|
5
|
-
return
|
|
1
|
+
import { _ as s } from "./index416.mjs";
|
|
2
|
+
import { _ as a } from "./index417.mjs";
|
|
3
|
+
function p(_, r) {
|
|
4
|
+
var t = a(_, r, "get");
|
|
5
|
+
return s(_, t);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
p as _
|
|
9
9
|
};
|
package/index343.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 _=require("./index418.js"),c=require("./index417.js");function i(t,r,e){var s=c._(t,r,"set");return _._(t,s,e),e}exports._=i;
|