@okam/stack-ui 1.27.0 → 1.27.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.mjs +158 -151
- package/index10.js +1 -1
- package/index10.mjs +2 -2
- package/index100.js +1 -2
- package/index100.mjs +17 -12
- package/index101.js +2 -1
- package/index101.mjs +22 -45
- package/index102.js +1 -1
- package/index102.mjs +1 -1
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index107.js +1 -1
- package/index107.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +1 -1
- package/index11.js +1 -1
- package/index11.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 +2 -2
- package/index116.js +1 -1
- package/index116.mjs +1 -1
- package/index118.js +1 -1
- package/index118.mjs +1 -1
- package/index119.js +1 -1
- package/index119.mjs +1 -1
- package/index12.js +2 -1
- package/index12.mjs +45 -15
- package/index121.js +1 -1
- package/index121.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +3 -3
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index128.js +1 -1
- package/index128.mjs +1 -1
- package/index13.js +1 -2
- package/index13.mjs +17 -20
- package/index131.js +1 -1
- package/index131.mjs +1 -1
- package/index132.js +1 -1
- package/index132.mjs +1 -1
- package/index134.js +1 -1
- package/index134.mjs +1 -1
- package/index135.js +1 -1
- package/index135.mjs +1 -1
- package/index138.js +1 -1
- package/index138.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +3 -3
- package/index14.js +1 -1
- package/index14.mjs +18 -17
- package/index140.js +1 -1
- package/index140.mjs +2 -2
- package/index15.js +1 -1
- package/index15.mjs +16 -83
- package/index16.js +1 -1
- package/index16.mjs +81 -28
- package/index17.js +1 -1
- package/index17.mjs +30 -32
- package/index174.js +1 -1
- package/index174.mjs +2 -2
- package/index175.js +1 -1
- package/index175.mjs +2 -2
- package/index176.js +1 -1
- package/index176.mjs +2 -2
- package/index177.js +1 -1
- package/index177.mjs +2 -2
- package/index178.js +1 -1
- package/index178.mjs +3 -3
- package/index179.js +1 -1
- package/index179.mjs +4 -4
- package/index18.js +1 -1
- package/index18.mjs +33 -31
- package/index180.js +1 -1
- package/index180.mjs +1 -1
- package/index181.js +1 -1
- package/index181.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index183.js +1 -1
- package/index183.mjs +2 -2
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +2 -2
- package/index186.js +1 -1
- package/index186.mjs +1 -1
- package/index187.js +1 -1
- package/index187.mjs +2 -2
- package/index188.js +1 -1
- package/index188.mjs +1 -1
- package/index19.js +1 -1
- package/index19.mjs +30 -33
- package/index191.js +1 -1
- package/index191.mjs +4 -4
- package/index192.js +1 -1
- package/index192.mjs +2 -2
- package/index193.js +1 -1
- package/index193.mjs +5 -5
- package/index194.js +1 -1
- package/index194.mjs +4 -4
- package/index195.js +1 -1
- package/index195.mjs +5 -5
- package/index196.js +1 -1
- package/index196.mjs +5 -5
- package/index197.js +1 -1
- package/index197.mjs +2 -2
- package/index2.js +1 -1
- package/index2.mjs +20 -20
- package/index20.js +1 -1
- package/index20.mjs +32 -67
- package/index208.js +1 -1
- package/index208.mjs +2 -2
- package/index21.js +1 -1
- package/index21.mjs +61 -58
- package/index210.js +1 -1
- package/index210.mjs +1 -1
- package/index213.js +1 -1
- package/index213.mjs +1 -1
- package/index22.js +1 -1
- package/index22.mjs +66 -52
- package/index224.js +1 -1
- package/index224.mjs +123 -306
- package/index225.js +1 -1
- package/index225.mjs +173 -186
- package/index226.js +1 -1
- package/index226.mjs +9 -8
- package/index227.js +1 -1
- package/index227.mjs +3 -26
- package/index228.js +1 -1
- package/index228.mjs +34 -53
- package/index229.js +1 -1
- package/index229.mjs +5 -46
- package/index23.js +1 -1
- package/index23.mjs +37 -41
- package/index230.js +1 -1
- package/index230.mjs +28 -123
- package/index231.js +1 -1
- package/index231.mjs +6 -130
- package/index232.js +1 -1
- package/index232.mjs +293 -159
- package/index233.js +1 -1
- package/index233.mjs +192 -9
- package/index234.js +1 -1
- package/index234.mjs +8 -3
- package/index235.js +1 -1
- package/index235.mjs +25 -35
- package/index236.js +1 -1
- package/index236.mjs +55 -5
- package/index237.js +1 -1
- package/index237.mjs +44 -27
- package/index238.js +1 -1
- package/index238.mjs +124 -6
- package/index24.js +1 -1
- package/index24.mjs +57 -20
- package/index242.js +1 -1
- package/index242.mjs +1 -1
- package/index243.js +1 -1
- package/index243.mjs +1 -1
- package/index245.js +1 -1
- package/index245.mjs +1 -1
- package/index246.js +1 -1
- package/index246.mjs +2 -2
- package/index248.js +1 -1
- package/index248.mjs +1 -1
- package/index249.js +1 -1
- package/index249.mjs +3 -3
- package/index25.js +1 -1
- package/index25.mjs +20 -50
- package/index250.js +1 -1
- package/index250.mjs +2 -2
- package/index251.js +1 -1
- package/index251.mjs +2 -23
- package/index252.js +1 -1
- package/index252.mjs +23 -2
- package/index26.js +1 -1
- package/index26.mjs +50 -17
- package/index260.js +1 -1
- package/index260.mjs +6 -2
- package/index261.mjs +2 -2
- package/index262.mjs +2 -2
- package/index263.mjs +2 -2
- package/index264.js +1 -1
- package/index264.mjs +2 -72
- package/index265.js +1 -1
- package/index265.mjs +72 -2
- package/index266.mjs +2 -2
- package/index267.js +1 -1
- package/index267.mjs +2 -19
- package/index268.js +1 -1
- package/index268.mjs +19 -2
- package/index269.js +1 -1
- package/index269.mjs +2 -6
- package/index27.js +1 -1
- package/index27.mjs +16 -32
- package/index28.js +1 -1
- package/index28.mjs +32 -23
- package/index29.js +1 -1
- package/index29.mjs +24 -8
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +8 -32
- package/index31.js +1 -1
- package/index31.mjs +29 -30
- package/index32.js +1 -1
- package/index32.mjs +28 -98
- package/index33.js +1 -1
- package/index33.mjs +102 -8
- package/index34.js +1 -1
- package/index34.mjs +8 -46
- package/index35.js +1 -1
- package/index35.mjs +46 -18
- package/index36.js +2 -1
- package/index36.mjs +19 -6
- package/index37.js +1 -1
- package/index37.mjs +6 -46
- package/index38.js +1 -1
- package/index38.mjs +45 -23
- package/index39.js +2 -1
- package/index39.mjs +26 -5
- package/index4.js +1 -1
- package/index4.mjs +5 -5
- package/index40.js +1 -1
- package/index40.mjs +4 -7
- package/index41.js +1 -1
- package/index41.mjs +5 -5
- package/index42.js +1 -1
- package/index42.mjs +8 -5
- package/index43.js +1 -1
- package/index43.mjs +2 -2
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +4 -4
- package/index46.js +1 -1
- package/index46.mjs +3 -9
- package/index47.js +1 -1
- package/index47.mjs +7 -9
- package/index48.js +1 -1
- package/index48.mjs +9 -9
- package/index49.js +1 -1
- package/index49.mjs +13 -46
- package/index50.js +1 -1
- package/index50.mjs +46 -8
- package/index51.js +1 -1
- package/index51.mjs +6 -69
- package/index52.js +1 -1
- package/index52.mjs +71 -8
- package/index53.js +1 -1
- package/index53.mjs +7 -12
- package/index54.js +1 -1
- package/index54.mjs +12 -9
- package/index55.js +1 -1
- package/index55.mjs +10 -17
- package/index56.js +1 -1
- package/index56.mjs +17 -13
- package/index57.js +1 -1
- package/index57.mjs +5 -5
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +10 -8
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +1 -1
- package/index60.mjs +5 -5
- package/index61.js +1 -1
- package/index61.mjs +6 -8
- package/index62.js +1 -1
- package/index62.mjs +13 -14
- package/index63.js +1 -2
- package/index63.mjs +14 -23
- package/index64.js +1 -1
- package/index64.mjs +21 -15
- package/index65.js +1 -1
- package/index65.mjs +16 -14
- package/index66.js +1 -1
- package/index66.mjs +13 -40
- package/index67.js +1 -1
- package/index67.mjs +39 -36
- package/index68.js +1 -1
- package/index68.mjs +37 -11
- package/index69.js +1 -1
- package/index69.mjs +11 -10
- package/index7.js +1 -1
- package/index7.mjs +2 -2
- package/index70.js +1 -1
- package/index70.mjs +10 -13
- package/index71.js +2 -1
- package/index71.mjs +15 -2
- package/index72.js +1 -1
- package/index72.mjs +11 -8
- package/index73.js +1 -2
- package/index73.mjs +1 -7
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +2 -1
- package/index76.mjs +8 -25
- package/index77.js +2 -1
- package/index77.mjs +8 -2
- package/index78.js +1 -6
- package/index78.mjs +25 -94
- package/index79.js +1 -1
- package/index79.mjs +2 -69
- package/index8.js +1 -1
- package/index8.mjs +5 -5
- package/index80.js +6 -1
- package/index80.mjs +82 -29
- package/index81.js +1 -42
- package/index81.mjs +64 -65
- package/index82.js +1 -1
- package/index82.mjs +32 -150
- package/index83.js +42 -9
- package/index83.mjs +65 -52
- package/index84.js +1 -1
- package/index84.mjs +145 -31
- package/index85.js +9 -1
- package/index85.mjs +54 -10
- package/index86.js +1 -1
- package/index86.mjs +38 -28
- package/index87.js +1 -1
- package/index87.mjs +12 -5
- package/index88.js +1 -12
- package/index88.mjs +31 -36
- package/index89.js +1 -1
- package/index89.mjs +6 -29
- package/index9.js +1 -1
- package/index9.mjs +4 -4
- package/index90.js +12 -1
- package/index90.mjs +39 -12
- package/index91.js +1 -7
- package/index91.mjs +23 -13
- package/index92.js +1 -15
- package/index92.mjs +9 -67
- package/index93.js +7 -1
- package/index93.mjs +17 -5
- package/index94.js +13 -14
- package/index94.mjs +63 -17
- package/index95.js +1 -1
- package/index95.mjs +7 -42
- package/index96.js +16 -1
- package/index96.mjs +24 -44
- package/index97.js +1 -1
- package/index97.mjs +42 -48
- package/index98.js +1 -1
- package/index98.mjs +45 -17
- package/index99.js +1 -2
- package/index99.mjs +47 -21
- package/package.json +1 -1
package/index224.mjs
CHANGED
|
@@ -1,316 +1,133 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { _class_private_field_get as ee } from "./index274.mjs";
|
|
4
|
-
import { _class_private_field_init as te } from "./index148.mjs";
|
|
5
|
-
import { _class_private_field_set as H } from "./index275.mjs";
|
|
6
|
-
import { useGlobalListeners as re, useEffectEvent as M, isVirtualPointerEvent as ne, focusWithoutScrolling as w, getOwnerDocument as k, isVirtualClick as G, getOwnerWindow as U, mergeProps as W, useSyncRef as ie, chain as ae, isMac as se, openLink as X } from "@react-aria/utils";
|
|
7
|
-
import { useState as oe, useRef as ue, useMemo as le, useEffect as fe, useContext as ce } from "react";
|
|
8
|
-
function ge(i) {
|
|
9
|
-
let a = ce(Z);
|
|
10
|
-
if (a) {
|
|
11
|
-
let { register: o, ...f } = a;
|
|
12
|
-
i = W(f, i), o();
|
|
13
|
-
}
|
|
14
|
-
return ie(a, i.ref), i;
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
15
3
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
get shouldStopPropagation() {
|
|
22
|
-
return ee(this, I);
|
|
23
|
-
}
|
|
24
|
-
constructor(a, o, f) {
|
|
25
|
-
te(this, I, {
|
|
26
|
-
writable: !0,
|
|
27
|
-
value: void 0
|
|
28
|
-
}), H(this, I, !0), this.type = a, this.pointerType = o, this.target = f.currentTarget, this.shiftKey = f.shiftKey, this.metaKey = f.metaKey, this.ctrlKey = f.ctrlKey, this.altKey = f.altKey;
|
|
29
|
-
}
|
|
4
|
+
function o(e, n) {
|
|
5
|
+
e === void 0 && (e = {}), n === void 0 && (n = {}), Object.keys(n).forEach((t) => {
|
|
6
|
+
typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
|
|
7
|
+
});
|
|
30
8
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
target: null,
|
|
55
|
-
isOverTarget: !1,
|
|
56
|
-
pointerType: null
|
|
57
|
-
}), { addGlobalListener: y, removeAllGlobalListeners: $ } = re(), v = M((e, s) => {
|
|
58
|
-
let p = E.current;
|
|
59
|
-
if (d || p.didFirePressStart) return !1;
|
|
60
|
-
let n = !0;
|
|
61
|
-
if (p.isTriggeringEvent = !0, f) {
|
|
62
|
-
let u = new D("pressstart", s, e);
|
|
63
|
-
f(u), n = u.shouldStopPropagation;
|
|
64
|
-
}
|
|
65
|
-
return o && o(!0), p.isTriggeringEvent = !1, p.didFirePressStart = !0, R(!0), n;
|
|
66
|
-
}), g = M((e, s, p = !0) => {
|
|
67
|
-
let n = E.current;
|
|
68
|
-
if (!n.didFirePressStart) return !1;
|
|
69
|
-
n.ignoreClickAfterPress = !0, n.didFirePressStart = !1, n.isTriggeringEvent = !0;
|
|
70
|
-
let u = !0;
|
|
71
|
-
if (c) {
|
|
72
|
-
let t = new D("pressend", s, e);
|
|
73
|
-
c(t), u = t.shouldStopPropagation;
|
|
74
|
-
}
|
|
75
|
-
if (o && o(!1), R(!1), a && p && !d) {
|
|
76
|
-
let t = new D("press", s, e);
|
|
77
|
-
a(t), u && (u = t.shouldStopPropagation);
|
|
78
|
-
}
|
|
79
|
-
return n.isTriggeringEvent = !1, u;
|
|
80
|
-
}), m = M((e, s) => {
|
|
81
|
-
let p = E.current;
|
|
82
|
-
if (d) return !1;
|
|
83
|
-
if (O) {
|
|
84
|
-
p.isTriggeringEvent = !0;
|
|
85
|
-
let n = new D("pressup", s, e);
|
|
86
|
-
return O(n), p.isTriggeringEvent = !1, n.shouldStopPropagation;
|
|
87
|
-
}
|
|
88
|
-
return !0;
|
|
89
|
-
}), h = M((e) => {
|
|
90
|
-
let s = E.current;
|
|
91
|
-
s.isPressed && s.target && (s.isOverTarget && s.pointerType != null && g(T(s.target, e), s.pointerType, !1), s.isPressed = !1, s.isOverTarget = !1, s.activePointerId = null, s.pointerType = null, $(), P || C(s.target));
|
|
92
|
-
}), x = M((e) => {
|
|
93
|
-
j && h(e);
|
|
94
|
-
}), Q = le(() => {
|
|
95
|
-
let e = E.current, s = {
|
|
96
|
-
onKeyDown(n) {
|
|
97
|
-
if (L(n.nativeEvent, n.currentTarget) && n.currentTarget.contains(n.target)) {
|
|
98
|
-
var u;
|
|
99
|
-
B(n.target, n.key) && n.preventDefault();
|
|
100
|
-
let t = !0;
|
|
101
|
-
if (!e.isPressed && !n.repeat) {
|
|
102
|
-
e.target = n.currentTarget, e.isPressed = !0, t = v(n, "keyboard");
|
|
103
|
-
let r = n.currentTarget, l = (b) => {
|
|
104
|
-
L(b, r) && !b.repeat && r.contains(b.target) && e.target && m(T(e.target, b), "keyboard");
|
|
105
|
-
};
|
|
106
|
-
y(k(n.currentTarget), "keyup", ae(l, p), !0);
|
|
107
|
-
}
|
|
108
|
-
t && n.stopPropagation(), n.metaKey && se() && ((u = e.metaKeyEvents) === null || u === void 0 || u.set(n.key, n.nativeEvent));
|
|
109
|
-
} else n.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
110
|
-
},
|
|
111
|
-
onClick(n) {
|
|
112
|
-
if (!(n && !n.currentTarget.contains(n.target)) && n && n.button === 0 && !e.isTriggeringEvent && !X.isOpening) {
|
|
113
|
-
let u = !0;
|
|
114
|
-
if (d && n.preventDefault(), !e.ignoreClickAfterPress && !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || G(n.nativeEvent))) {
|
|
115
|
-
!d && !K && w(n.currentTarget);
|
|
116
|
-
let t = v(n, "virtual"), r = m(n, "virtual"), l = g(n, "virtual");
|
|
117
|
-
u = t && r && l;
|
|
118
|
-
}
|
|
119
|
-
e.ignoreEmulatedMouseEvents = !1, e.ignoreClickAfterPress = !1, u && n.stopPropagation();
|
|
120
|
-
}
|
|
9
|
+
const u = {
|
|
10
|
+
body: {},
|
|
11
|
+
addEventListener() {
|
|
12
|
+
},
|
|
13
|
+
removeEventListener() {
|
|
14
|
+
},
|
|
15
|
+
activeElement: {
|
|
16
|
+
blur() {
|
|
17
|
+
},
|
|
18
|
+
nodeName: ""
|
|
19
|
+
},
|
|
20
|
+
querySelector() {
|
|
21
|
+
return null;
|
|
22
|
+
},
|
|
23
|
+
querySelectorAll() {
|
|
24
|
+
return [];
|
|
25
|
+
},
|
|
26
|
+
getElementById() {
|
|
27
|
+
return null;
|
|
28
|
+
},
|
|
29
|
+
createEvent() {
|
|
30
|
+
return {
|
|
31
|
+
initEvent() {
|
|
121
32
|
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (let b of l.values()) (r = e.target) === null || r === void 0 || r.dispatchEvent(new KeyboardEvent("keyup", b));
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
createElement() {
|
|
36
|
+
return {
|
|
37
|
+
children: [],
|
|
38
|
+
childNodes: [],
|
|
39
|
+
style: {},
|
|
40
|
+
setAttribute() {
|
|
41
|
+
},
|
|
42
|
+
getElementsByTagName() {
|
|
43
|
+
return [];
|
|
134
44
|
}
|
|
135
45
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
r.pointerId === e.activePointerId && (e.target && S(r, e.target) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, v(T(e.target, r), e.pointerType)) : e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, g(T(e.target, r), e.pointerType, !1), x(r)));
|
|
153
|
-
}, u = (r) => {
|
|
154
|
-
r.pointerId === e.activePointerId && e.isPressed && r.button === 0 && e.target && (S(r, e.target) && e.pointerType != null ? g(T(e.target, r), e.pointerType) : e.isOverTarget && e.pointerType != null && g(T(e.target, r), e.pointerType, !1), e.isPressed = !1, e.isOverTarget = !1, e.activePointerId = null, e.pointerType = null, $(), P || C(e.target));
|
|
155
|
-
}, t = (r) => {
|
|
156
|
-
h(r);
|
|
157
|
-
};
|
|
158
|
-
s.onDragStart = (r) => {
|
|
159
|
-
r.currentTarget.contains(r.target) && h(r);
|
|
160
|
-
};
|
|
161
|
-
} else {
|
|
162
|
-
s.onMouseDown = (t) => {
|
|
163
|
-
if (t.button !== 0 || !t.currentTarget.contains(t.target)) return;
|
|
164
|
-
if (A(t.currentTarget) && t.preventDefault(), e.ignoreEmulatedMouseEvents) {
|
|
165
|
-
t.stopPropagation();
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
e.isPressed = !0, e.isOverTarget = !0, e.target = t.currentTarget, e.pointerType = G(t.nativeEvent) ? "virtual" : "mouse", !d && !K && w(t.currentTarget), v(t, e.pointerType) && t.stopPropagation(), y(k(t.currentTarget), "mouseup", n, !1);
|
|
169
|
-
}, s.onMouseEnter = (t) => {
|
|
170
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
171
|
-
let r = !0;
|
|
172
|
-
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !0, r = v(t, e.pointerType)), r && t.stopPropagation();
|
|
173
|
-
}, s.onMouseLeave = (t) => {
|
|
174
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
175
|
-
let r = !0;
|
|
176
|
-
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !1, r = g(t, e.pointerType, !1), x(t)), r && t.stopPropagation();
|
|
177
|
-
}, s.onMouseUp = (t) => {
|
|
178
|
-
t.currentTarget.contains(t.target) && !e.ignoreEmulatedMouseEvents && t.button === 0 && m(t, e.pointerType || "mouse");
|
|
179
|
-
};
|
|
180
|
-
let n = (t) => {
|
|
181
|
-
if (t.button === 0) {
|
|
182
|
-
if (e.isPressed = !1, $(), e.ignoreEmulatedMouseEvents) {
|
|
183
|
-
e.ignoreEmulatedMouseEvents = !1;
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
e.target && S(t, e.target) && e.pointerType != null ? g(T(e.target, t), e.pointerType) : e.target && e.isOverTarget && e.pointerType != null && g(T(e.target, t), e.pointerType, !1), e.isOverTarget = !1;
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
s.onTouchStart = (t) => {
|
|
190
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
191
|
-
let r = pe(t.nativeEvent);
|
|
192
|
-
if (!r) return;
|
|
193
|
-
e.activePointerId = r.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = t.currentTarget, e.pointerType = "touch", !d && !K && w(t.currentTarget), P || _(e.target), v(t, e.pointerType) && t.stopPropagation(), y(U(t.currentTarget), "scroll", u, !0);
|
|
194
|
-
}, s.onTouchMove = (t) => {
|
|
195
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
196
|
-
if (!e.isPressed) {
|
|
197
|
-
t.stopPropagation();
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
let r = V(t.nativeEvent, e.activePointerId), l = !0;
|
|
201
|
-
r && S(r, t.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, l = v(t, e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, l = g(t, e.pointerType, !1), x(t)), l && t.stopPropagation();
|
|
202
|
-
}, s.onTouchEnd = (t) => {
|
|
203
|
-
if (!t.currentTarget.contains(t.target)) return;
|
|
204
|
-
if (!e.isPressed) {
|
|
205
|
-
t.stopPropagation();
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
let r = V(t.nativeEvent, e.activePointerId), l = !0;
|
|
209
|
-
r && S(r, t.currentTarget) && e.pointerType != null ? (m(t, e.pointerType), l = g(t, e.pointerType)) : e.isOverTarget && e.pointerType != null && (l = g(t, e.pointerType, !1)), l && t.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !P && C(e.target), $();
|
|
210
|
-
}, s.onTouchCancel = (t) => {
|
|
211
|
-
t.currentTarget.contains(t.target) && (t.stopPropagation(), e.isPressed && h(t));
|
|
212
|
-
};
|
|
213
|
-
let u = (t) => {
|
|
214
|
-
e.isPressed && t.target.contains(e.target) && h({
|
|
215
|
-
currentTarget: e.target,
|
|
216
|
-
shiftKey: !1,
|
|
217
|
-
ctrlKey: !1,
|
|
218
|
-
metaKey: !1,
|
|
219
|
-
altKey: !1
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
s.onDragStart = (t) => {
|
|
223
|
-
t.currentTarget.contains(t.target) && h(t);
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
return s;
|
|
227
|
-
}, [
|
|
228
|
-
y,
|
|
229
|
-
d,
|
|
230
|
-
K,
|
|
231
|
-
$,
|
|
232
|
-
P,
|
|
233
|
-
h,
|
|
234
|
-
x,
|
|
235
|
-
g,
|
|
236
|
-
v,
|
|
237
|
-
m
|
|
238
|
-
]);
|
|
239
|
-
return fe(() => () => {
|
|
240
|
-
var e;
|
|
241
|
-
P || C((e = E.current.target) !== null && e !== void 0 ? e : void 0);
|
|
242
|
-
}, [
|
|
243
|
-
P
|
|
244
|
-
]), {
|
|
245
|
-
isPressed: z || J,
|
|
246
|
-
pressProps: W(q, Q)
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
function F(i) {
|
|
250
|
-
return i.tagName === "A" && i.hasAttribute("href");
|
|
251
|
-
}
|
|
252
|
-
function L(i, a) {
|
|
253
|
-
const { key: o, code: f } = i, c = a, O = c.getAttribute("role");
|
|
254
|
-
return (o === "Enter" || o === " " || o === "Spacebar" || f === "Space") && !(c instanceof U(c).HTMLInputElement && !N(c, o) || c instanceof U(c).HTMLTextAreaElement || c.isContentEditable) && // Links should only trigger with Enter key
|
|
255
|
-
!((O === "link" || !O && F(c)) && o !== "Enter");
|
|
256
|
-
}
|
|
257
|
-
function pe(i) {
|
|
258
|
-
const { targetTouches: a } = i;
|
|
259
|
-
return a.length > 0 ? a[0] : null;
|
|
260
|
-
}
|
|
261
|
-
function V(i, a) {
|
|
262
|
-
const o = i.changedTouches;
|
|
263
|
-
for (let f = 0; f < o.length; f++) {
|
|
264
|
-
const c = o[f];
|
|
265
|
-
if (c.identifier === a) return c;
|
|
46
|
+
},
|
|
47
|
+
createElementNS() {
|
|
48
|
+
return {};
|
|
49
|
+
},
|
|
50
|
+
importNode() {
|
|
51
|
+
return null;
|
|
52
|
+
},
|
|
53
|
+
location: {
|
|
54
|
+
hash: "",
|
|
55
|
+
host: "",
|
|
56
|
+
hostname: "",
|
|
57
|
+
href: "",
|
|
58
|
+
origin: "",
|
|
59
|
+
pathname: "",
|
|
60
|
+
protocol: "",
|
|
61
|
+
search: ""
|
|
266
62
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
return
|
|
271
|
-
currentTarget: i,
|
|
272
|
-
shiftKey: a.shiftKey,
|
|
273
|
-
ctrlKey: a.ctrlKey,
|
|
274
|
-
metaKey: a.metaKey,
|
|
275
|
-
altKey: a.altKey
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
function de(i) {
|
|
279
|
-
let a = 0, o = 0;
|
|
280
|
-
return i.width !== void 0 ? a = i.width / 2 : i.radiusX !== void 0 && (a = i.radiusX), i.height !== void 0 ? o = i.height / 2 : i.radiusY !== void 0 && (o = i.radiusY), {
|
|
281
|
-
top: i.clientY - o,
|
|
282
|
-
right: i.clientX + a,
|
|
283
|
-
bottom: i.clientY + o,
|
|
284
|
-
left: i.clientX - a
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
function ve(i, a) {
|
|
288
|
-
return !(i.left > a.right || a.left > i.right || i.top > a.bottom || a.top > i.bottom);
|
|
289
|
-
}
|
|
290
|
-
function S(i, a) {
|
|
291
|
-
let o = a.getBoundingClientRect(), f = de(i);
|
|
292
|
-
return ve(o, f);
|
|
293
|
-
}
|
|
294
|
-
function A(i) {
|
|
295
|
-
return !(i instanceof HTMLElement) || !i.hasAttribute("draggable");
|
|
296
|
-
}
|
|
297
|
-
function B(i, a) {
|
|
298
|
-
return i instanceof HTMLInputElement ? !N(i, a) : i instanceof HTMLButtonElement ? i.type !== "submit" && i.type !== "reset" : !F(i);
|
|
63
|
+
};
|
|
64
|
+
function c() {
|
|
65
|
+
const e = typeof document < "u" ? document : {};
|
|
66
|
+
return o(e, u), e;
|
|
299
67
|
}
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
68
|
+
const i = {
|
|
69
|
+
document: u,
|
|
70
|
+
navigator: {
|
|
71
|
+
userAgent: ""
|
|
72
|
+
},
|
|
73
|
+
location: {
|
|
74
|
+
hash: "",
|
|
75
|
+
host: "",
|
|
76
|
+
hostname: "",
|
|
77
|
+
href: "",
|
|
78
|
+
origin: "",
|
|
79
|
+
pathname: "",
|
|
80
|
+
protocol: "",
|
|
81
|
+
search: ""
|
|
82
|
+
},
|
|
83
|
+
history: {
|
|
84
|
+
replaceState() {
|
|
85
|
+
},
|
|
86
|
+
pushState() {
|
|
87
|
+
},
|
|
88
|
+
go() {
|
|
89
|
+
},
|
|
90
|
+
back() {
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
CustomEvent: function() {
|
|
94
|
+
return this;
|
|
95
|
+
},
|
|
96
|
+
addEventListener() {
|
|
97
|
+
},
|
|
98
|
+
removeEventListener() {
|
|
99
|
+
},
|
|
100
|
+
getComputedStyle() {
|
|
101
|
+
return {
|
|
102
|
+
getPropertyValue() {
|
|
103
|
+
return "";
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
Image() {
|
|
108
|
+
},
|
|
109
|
+
Date() {
|
|
110
|
+
},
|
|
111
|
+
screen: {},
|
|
112
|
+
setTimeout() {
|
|
113
|
+
},
|
|
114
|
+
clearTimeout() {
|
|
115
|
+
},
|
|
116
|
+
matchMedia() {
|
|
117
|
+
return {};
|
|
118
|
+
},
|
|
119
|
+
requestAnimationFrame(e) {
|
|
120
|
+
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
121
|
+
},
|
|
122
|
+
cancelAnimationFrame(e) {
|
|
123
|
+
typeof setTimeout > "u" || clearTimeout(e);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
function s() {
|
|
127
|
+
const e = typeof window < "u" ? window : {};
|
|
128
|
+
return o(e, i), e;
|
|
313
129
|
}
|
|
314
130
|
export {
|
|
315
|
-
|
|
131
|
+
s as a,
|
|
132
|
+
c as g
|
|
316
133
|
};
|
package/index225.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("./index224.js");function h(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function T(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function b(){return Date.now()}function x(e){const t=c.a();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function E(e,t){t===void 0&&(t="x");const n=c.a();let r,i,l;const s=x(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),l=new n.WebKitCSSMatrix(i==="none"?"":i)):(l=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=l.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=l.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=l.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function f(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function v(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function d(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!v(r)){const i=Object.keys(Object(r)).filter(l=>t.indexOf(l)<0);for(let l=0,s=i.length;l<s;l+=1){const o=i[l],a=Object.getOwnPropertyDescriptor(r,o);a!==void 0&&a.enumerable&&(f(e[o])&&f(r[o])?r[o].__swiper__?e[o]=r[o]:d(e[o],r[o]):!f(e[o])&&f(r[o])?(e[o]={},r[o].__swiper__?e[o]=r[o]:d(e[o],r[o])):e[o]=r[o])}}}return e}function M(e,t,n){e.style.setProperty(t,n)}function O(e){let{swiper:t,targetPosition:n,side:r}=e;const i=c.a(),l=-t.translate;let s=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const y=n>l?"next":"prev",g=(p,m)=>y==="next"&&p>=m||y==="prev"&&p<=m,w=()=>{o=new Date().getTime(),s===null&&(s=o);const p=Math.max(Math.min((o-s)/a,1),0),m=.5-Math.cos(p*Math.PI)/2;let u=l+m*(n-l);if(g(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),g(u,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(w)};w()}function P(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function C(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function j(e){try{console.warn(e);return}catch{}}function _(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:h(t)),n}function F(e){const t=c.a(),n=c.g(),r=e.getBoundingClientRect(),i=n.body,l=e.clientTop||i.clientTop||0,s=e.clientLeft||i.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,a=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-l,left:r.left+a-s}}function A(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function L(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function k(e,t){return c.a().getComputedStyle(e,null).getPropertyValue(t)}function W(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function D(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function I(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function q(e,t,n){const r=c.a();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function K(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}exports.a=D;exports.b=F;exports.c=_;exports.d=b;exports.e=C;exports.f=q;exports.g=W;exports.h=h;exports.i=E;exports.j=I;exports.k=f;exports.l=P;exports.m=K;exports.n=T;exports.o=k;exports.p=L;exports.q=A;exports.r=O;exports.s=M;exports.t=j;exports.u=d;exports.v=S;
|