@okam/stack-ui 1.32.0 → 1.32.2
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/fields/TextInputField/index.d.ts +1 -2
- package/index.d.ts +5 -0
- package/index.js +1 -1
- package/index.mjs +26 -25
- 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 +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index138.js +1 -1
- package/index138.mjs +12 -52
- package/index139.js +1 -1
- package/index139.mjs +46 -12
- 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 +52 -30
- package/index144.js +1 -1
- package/index144.mjs +1 -1
- package/index145.js +1 -1
- package/index145.mjs +5 -5
- package/index146.js +1 -1
- package/index146.mjs +3 -3
- package/index147.js +1 -1
- package/index147.mjs +2 -2
- package/index148.js +1 -1
- package/index148.mjs +3 -3
- package/index149.js +1 -1
- package/index149.mjs +3 -3
- package/index151.js +1 -1
- package/index151.mjs +2 -2
- package/index152.js +1 -1
- package/index152.mjs +20 -106
- package/index153.js +1 -1
- package/index153.mjs +107 -83
- package/index154.js +1 -1
- package/index154.mjs +83 -26
- package/index155.js +1 -1
- package/index155.mjs +25 -20
- 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/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +3 -3
- package/index169.js +1 -1
- package/index169.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +1 -1
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +2 -2
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index198.js +1 -1
- package/index198.mjs +2 -2
- package/index199.js +1 -1
- package/index199.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +3 -3
- package/index204.js +1 -1
- package/index204.mjs +2 -2
- package/index205.js +1 -1
- package/index205.mjs +1 -1
- package/index206.js +1 -1
- package/index206.mjs +2 -2
- package/index207.js +1 -1
- package/index207.mjs +2 -2
- package/index208.js +1 -1
- package/index208.mjs +2 -2
- package/index209.js +1 -1
- package/index209.mjs +2 -2
- package/index210.js +1 -1
- package/index210.mjs +3 -3
- package/index211.js +1 -1
- package/index211.mjs +4 -4
- package/index212.js +1 -1
- package/index212.mjs +1 -1
- package/index213.js +1 -1
- package/index213.mjs +2 -2
- package/index214.js +1 -1
- package/index214.mjs +1 -1
- package/index215.js +1 -1
- package/index215.mjs +3 -3
- package/index216.js +1 -1
- package/index216.mjs +1 -1
- package/index217.js +1 -1
- package/index217.mjs +2 -2
- package/index218.js +1 -1
- package/index218.mjs +1 -1
- package/index219.js +1 -1
- package/index219.mjs +2 -2
- package/index220.js +1 -1
- package/index220.mjs +1 -1
- package/index223.js +1 -1
- package/index223.mjs +4 -4
- package/index224.js +1 -1
- package/index224.mjs +2 -2
- package/index225.js +1 -1
- package/index225.mjs +5 -5
- package/index226.js +1 -1
- package/index226.mjs +4 -4
- package/index227.js +1 -1
- package/index227.mjs +5 -5
- package/index228.js +1 -1
- package/index228.mjs +5 -5
- package/index229.js +1 -1
- package/index229.mjs +2 -2
- package/index306.js +1 -1
- package/index306.mjs +129 -23
- package/index307.js +1 -1
- package/index307.mjs +181 -38
- package/index308.js +1 -1
- package/index308.mjs +9 -5
- package/index309.js +1 -1
- package/index309.mjs +4 -6
- package/index310.js +1 -1
- package/index310.mjs +36 -14
- package/index311.js +1 -1
- package/index311.mjs +5 -24
- package/index312.js +1 -1
- package/index312.mjs +28 -27
- package/index313.js +1 -1
- package/index313.mjs +6 -31
- package/index314.js +1 -1
- package/index314.mjs +138 -26
- package/index315.js +1 -1
- package/index315.mjs +197 -9
- package/index316.js +1 -1
- package/index316.mjs +22 -5
- package/index317.js +1 -1
- package/index317.mjs +28 -7
- package/index318.js +1 -1
- package/index318.mjs +46 -13
- package/index319.js +1 -1
- package/index319.mjs +47 -7
- package/index320.js +1 -1
- package/index320.mjs +95 -125
- package/index321.js +1 -1
- package/index321.mjs +4 -189
- package/index322.js +1 -1
- package/index322.mjs +72 -10
- package/index323.js +1 -1
- package/index323.mjs +58 -3
- package/index324.js +1 -1
- package/index324.mjs +7 -36
- package/index325.js +1 -1
- package/index325.mjs +11 -5
- package/index326.js +1 -1
- package/index326.mjs +46 -28
- package/index327.js +1 -1
- package/index327.mjs +24 -6
- package/index328.js +1 -1
- package/index328.mjs +6 -141
- package/index329.js +1 -1
- package/index329.mjs +14 -197
- package/index330.js +1 -1
- package/index330.mjs +24 -22
- package/index331.js +1 -1
- package/index331.mjs +26 -44
- package/index332.js +1 -1
- package/index332.mjs +29 -46
- package/index333.js +1 -1
- package/index333.mjs +8 -99
- package/index334.js +1 -1
- package/index334.mjs +6 -72
- package/index335.js +1 -1
- package/index335.mjs +7 -58
- package/index336.js +1 -1
- package/index336.mjs +13 -7
- package/index337.js +1 -1
- package/index337.mjs +8 -11
- 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/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index307.mjs
CHANGED
|
@@ -1,50 +1,193 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
12
|
-
if (o) {
|
|
13
|
-
let i = d.get(o);
|
|
14
|
-
i == null ? d.set(o, {
|
|
15
|
-
id: e.current,
|
|
16
|
-
state: o.memoizedState
|
|
17
|
-
}) : o.memoizedState !== i.state && (e.current = i.id, d.delete(o));
|
|
1
|
+
import { a as c, g as y } from "./index306.mjs";
|
|
2
|
+
function S(e) {
|
|
3
|
+
return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
|
+
}
|
|
5
|
+
function E(e) {
|
|
6
|
+
const t = e;
|
|
7
|
+
Object.keys(t).forEach((n) => {
|
|
8
|
+
try {
|
|
9
|
+
t[n] = null;
|
|
10
|
+
} catch {
|
|
18
11
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
try {
|
|
13
|
+
delete t[n];
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function M(e, t) {
|
|
19
|
+
return t === void 0 && (t = 0), setTimeout(e, t);
|
|
22
20
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
e === c && !v && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
26
|
-
let r = S(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
27
|
-
return t || `${n}-${r}`;
|
|
21
|
+
function C() {
|
|
22
|
+
return Date.now();
|
|
28
23
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
function T(e) {
|
|
25
|
+
const t = c();
|
|
26
|
+
let n;
|
|
27
|
+
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
|
|
32
28
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
function v(e, t) {
|
|
30
|
+
t === void 0 && (t = "x");
|
|
31
|
+
const n = c();
|
|
32
|
+
let r, i, s;
|
|
33
|
+
const l = T(e);
|
|
34
|
+
return n.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
35
|
+
}
|
|
36
|
+
function p(e) {
|
|
37
|
+
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
38
|
+
}
|
|
39
|
+
function b(e) {
|
|
40
|
+
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
36
41
|
}
|
|
37
42
|
function w() {
|
|
38
|
-
|
|
43
|
+
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
|
44
|
+
for (let n = 1; n < arguments.length; n += 1) {
|
|
45
|
+
const r = n < 0 || arguments.length <= n ? void 0 : arguments[n];
|
|
46
|
+
if (r != null && !b(r)) {
|
|
47
|
+
const i = Object.keys(Object(r)).filter((s) => t.indexOf(s) < 0);
|
|
48
|
+
for (let s = 0, l = i.length; s < l; s += 1) {
|
|
49
|
+
const o = i[s], a = Object.getOwnPropertyDescriptor(r, o);
|
|
50
|
+
a !== void 0 && a.enumerable && (p(e[o]) && p(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o]) : !p(e[o]) && p(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o])) : e[o] = r[o]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function O(e, t, n) {
|
|
57
|
+
e.style.setProperty(t, n);
|
|
58
|
+
}
|
|
59
|
+
function P(e) {
|
|
60
|
+
let {
|
|
61
|
+
swiper: t,
|
|
62
|
+
targetPosition: n,
|
|
63
|
+
side: r
|
|
64
|
+
} = e;
|
|
65
|
+
const i = c(), s = -t.translate;
|
|
66
|
+
let l = null, o;
|
|
67
|
+
const a = t.params.speed;
|
|
68
|
+
t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID);
|
|
69
|
+
const d = n > s ? "next" : "prev", g = (f, m) => d === "next" && f >= m || d === "prev" && f <= m, h = () => {
|
|
70
|
+
o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
|
|
71
|
+
const f = Math.max(Math.min((o - l) / a, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
72
|
+
let u = s + m * (n - s);
|
|
73
|
+
if (g(u, n) && (u = n), t.wrapperEl.scrollTo({
|
|
74
|
+
[r]: u
|
|
75
|
+
}), g(u, n)) {
|
|
76
|
+
t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
77
|
+
t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
|
|
78
|
+
[r]: u
|
|
79
|
+
});
|
|
80
|
+
}), i.cancelAnimationFrame(t.cssModeFrameID);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
t.cssModeFrameID = i.requestAnimationFrame(h);
|
|
84
|
+
};
|
|
85
|
+
h();
|
|
86
|
+
}
|
|
87
|
+
function F(e) {
|
|
88
|
+
return e.querySelector(".swiper-slide-transform") || e.shadowRoot && e.shadowRoot.querySelector(".swiper-slide-transform") || e;
|
|
89
|
+
}
|
|
90
|
+
function j(e, t) {
|
|
91
|
+
t === void 0 && (t = "");
|
|
92
|
+
const n = [...e.children];
|
|
93
|
+
return e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((r) => r.matches(t)) : n;
|
|
94
|
+
}
|
|
95
|
+
function L(e, t) {
|
|
96
|
+
const n = t.contains(e);
|
|
97
|
+
return !n && t instanceof HTMLSlotElement ? [...t.assignedElements()].includes(e) : n;
|
|
39
98
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
99
|
+
function _(e) {
|
|
100
|
+
try {
|
|
101
|
+
console.warn(e);
|
|
102
|
+
return;
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function A(e, t) {
|
|
107
|
+
t === void 0 && (t = []);
|
|
108
|
+
const n = document.createElement(e);
|
|
109
|
+
return n.classList.add(...Array.isArray(t) ? t : S(t)), n;
|
|
110
|
+
}
|
|
111
|
+
function k(e) {
|
|
112
|
+
const t = c(), n = y(), r = e.getBoundingClientRect(), i = n.body, s = e.clientTop || i.clientTop || 0, l = e.clientLeft || i.clientLeft || 0, o = e === t ? t.scrollY : e.scrollTop, a = e === t ? t.scrollX : e.scrollLeft;
|
|
113
|
+
return {
|
|
114
|
+
top: r.top + o - s,
|
|
115
|
+
left: r.left + a - l
|
|
42
116
|
};
|
|
43
117
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
118
|
+
function D(e, t) {
|
|
119
|
+
const n = [];
|
|
120
|
+
for (; e.previousElementSibling; ) {
|
|
121
|
+
const r = e.previousElementSibling;
|
|
122
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
123
|
+
}
|
|
124
|
+
return n;
|
|
125
|
+
}
|
|
126
|
+
function I(e, t) {
|
|
127
|
+
const n = [];
|
|
128
|
+
for (; e.nextElementSibling; ) {
|
|
129
|
+
const r = e.nextElementSibling;
|
|
130
|
+
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
|
|
131
|
+
}
|
|
132
|
+
return n;
|
|
133
|
+
}
|
|
134
|
+
function W(e, t) {
|
|
135
|
+
return c().getComputedStyle(e, null).getPropertyValue(t);
|
|
136
|
+
}
|
|
137
|
+
function H(e) {
|
|
138
|
+
let t = e, n;
|
|
139
|
+
if (t) {
|
|
140
|
+
for (n = 0; (t = t.previousSibling) !== null; )
|
|
141
|
+
t.nodeType === 1 && (n += 1);
|
|
142
|
+
return n;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function K(e, t) {
|
|
146
|
+
const n = [];
|
|
147
|
+
let r = e.parentElement;
|
|
148
|
+
for (; r; )
|
|
149
|
+
t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
|
|
150
|
+
return n;
|
|
151
|
+
}
|
|
152
|
+
function q(e, t) {
|
|
153
|
+
function n(r) {
|
|
154
|
+
r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
|
|
155
|
+
}
|
|
156
|
+
t && e.addEventListener("transitionend", n);
|
|
157
|
+
}
|
|
158
|
+
function R(e, t, n) {
|
|
159
|
+
const r = c();
|
|
160
|
+
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"));
|
|
161
|
+
}
|
|
162
|
+
function V(e) {
|
|
163
|
+
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
164
|
+
}
|
|
165
|
+
function B(e) {
|
|
166
|
+
return (t) => Math.abs(t) > 0 && e.browser && e.browser.need3dFix && Math.abs(t) % 90 === 0 ? t + 1e-3 : t;
|
|
46
167
|
}
|
|
47
168
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
169
|
+
K as a,
|
|
170
|
+
k as b,
|
|
171
|
+
A as c,
|
|
172
|
+
C as d,
|
|
173
|
+
j as e,
|
|
174
|
+
R as f,
|
|
175
|
+
F as g,
|
|
176
|
+
H as h,
|
|
177
|
+
S as i,
|
|
178
|
+
v as j,
|
|
179
|
+
q as k,
|
|
180
|
+
p as l,
|
|
181
|
+
V as m,
|
|
182
|
+
M as n,
|
|
183
|
+
B as o,
|
|
184
|
+
W as p,
|
|
185
|
+
I as q,
|
|
186
|
+
D as r,
|
|
187
|
+
O as s,
|
|
188
|
+
P as t,
|
|
189
|
+
_ as u,
|
|
190
|
+
L as v,
|
|
191
|
+
w,
|
|
192
|
+
E as x
|
|
50
193
|
};
|
package/index308.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index307.js");function o(i,f,l,n){return i.params.createElements&&Object.keys(n).forEach(e=>{if(!l[e]&&l.auto===!0){let t=u.e(i.el,`.${n[e]}`)[0];t||(t=u.c("div",n[e]),t.className=n[e],i.el.append(t)),l[e]=t,f[e]=t}}),l}exports.c=o;
|
package/index308.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { e as i, c as m } from "./index307.mjs";
|
|
2
|
+
function o(f, a, n, l) {
|
|
3
|
+
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
+
if (!n[e] && n.auto === !0) {
|
|
5
|
+
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
+
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
+
}
|
|
8
|
+
}), n;
|
|
5
9
|
}
|
|
6
10
|
export {
|
|
7
|
-
o as
|
|
11
|
+
o as c
|
|
8
12
|
};
|
package/index309.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 r(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}exports.c=r;
|
package/index309.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, d = (n) => n && "window" in n && n.window === n ? n : t(n).defaultView || window;
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
3
|
+
}
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
d as getOwnerWindow
|
|
5
|
+
r as c
|
|
8
6
|
};
|
package/index310.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(d){const{effect:s,swiper:e,on:r,setTranslate:n,setTransition:p,overwriteParams:f,perspective:o,recreateShadows:l,getEffectParams:c}=d;r("beforeInit",()=>{if(e.params.effect!==s)return;e.classNames.push(`${e.params.containerModifierClass}${s}`),o&&o()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const t=f?f():{};Object.assign(e.params,t),Object.assign(e.originalParams,t)}),r("setTranslate",()=>{e.params.effect===s&&n()}),r("setTransition",(t,i)=>{e.params.effect===s&&p(i)}),r("transitionEnd",()=>{if(e.params.effect===s&&l){if(!c||!c().slideShadows)return;e.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(i=>i.remove())}),l()}});let a;r("virtualUpdate",()=>{e.params.effect===s&&(e.slides.length||(a=!0),requestAnimationFrame(()=>{a&&e.slides&&e.slides.length&&(n(),a=!1)}))})}exports.e=m;
|
package/index310.mjs
CHANGED
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
function m(d) {
|
|
2
|
+
const {
|
|
3
|
+
effect: s,
|
|
4
|
+
swiper: e,
|
|
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
|
+
});
|
|
13
36
|
}
|
|
14
37
|
export {
|
|
15
|
-
|
|
16
|
-
i as default
|
|
38
|
+
m as e
|
|
17
39
|
};
|
package/index311.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("./index307.js");function r(c,t){const e=i.g(t);return e!==t&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}exports.e=r;
|
package/index311.mjs
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var t, a;
|
|
6
|
-
let { metaKey: i, ctrlKey: n, altKey: r, shiftKey: s } = c;
|
|
7
|
-
K() && (!((a = window.event) === null || a === void 0 || (t = a.type) === null || t === void 0) && t.startsWith("key")) && e.target === "_blank" && (l() ? i = !0 : n = !0);
|
|
8
|
-
let d = $() && l() && !p() ? new KeyboardEvent("keydown", {
|
|
9
|
-
keyIdentifier: "Enter",
|
|
10
|
-
metaKey: i,
|
|
11
|
-
ctrlKey: n,
|
|
12
|
-
altKey: r,
|
|
13
|
-
shiftKey: s
|
|
14
|
-
}) : new MouseEvent("click", {
|
|
15
|
-
metaKey: i,
|
|
16
|
-
ctrlKey: n,
|
|
17
|
-
altKey: r,
|
|
18
|
-
shiftKey: s,
|
|
19
|
-
bubbles: !0,
|
|
20
|
-
cancelable: !0
|
|
21
|
-
});
|
|
22
|
-
o.isOpening = y, f(e), e.dispatchEvent(d), o.isOpening = !1;
|
|
1
|
+
import { g as i } from "./index307.mjs";
|
|
2
|
+
function r(a, t) {
|
|
3
|
+
const e = i(t);
|
|
4
|
+
return e !== t && (e.style.backfaceVisibility = "hidden", e.style["-webkit-backface-visibility"] = "hidden"), e;
|
|
23
5
|
}
|
|
24
|
-
o.isOpening = !1;
|
|
25
6
|
export {
|
|
26
|
-
|
|
7
|
+
r as e
|
|
27
8
|
};
|
package/index312.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index307.js");function f(a){let{swiper:e,duration:l,transformElements:s,allSlides:o}=a;const{activeIndex:d}=e,u=n=>n.parentElement?n.parentElement:e.slides.filter(t=>t.shadowRoot&&t.shadowRoot===n.parentNode)[0];if(e.params.virtualTranslate&&l!==0){let n=!1,r;o?r=s:r=s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?u(t):t;return e.getSlideIndex(i)===d}),r.forEach(t=>{c.k(t,()=>{if(n||!e||e.destroyed)return;n=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}exports.e=f;
|
package/index312.mjs
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { k as f } from "./index307.mjs";
|
|
2
|
+
function p(a) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
duration: o,
|
|
6
|
+
transformElements: s,
|
|
7
|
+
allSlides: l
|
|
8
|
+
} = a;
|
|
9
|
+
const {
|
|
10
|
+
activeIndex: d
|
|
11
|
+
} = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
|
|
12
|
+
if (e.params.virtualTranslate && o !== 0) {
|
|
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
|
+
});
|
|
6
28
|
}
|
|
7
|
-
let d = (t) => {
|
|
8
|
-
if (!r(t) || !t.target) return;
|
|
9
|
-
let e = n.get(t.target);
|
|
10
|
-
e || (e = /* @__PURE__ */ new Set(), n.set(t.target, e), t.target.addEventListener("transitioncancel", i, {
|
|
11
|
-
once: !0
|
|
12
|
-
})), e.add(t.propertyName);
|
|
13
|
-
}, i = (t) => {
|
|
14
|
-
if (!r(t) || !t.target) return;
|
|
15
|
-
let e = n.get(t.target);
|
|
16
|
-
if (e && (e.delete(t.propertyName), e.size === 0 && (t.target.removeEventListener("transitioncancel", i), n.delete(t.target)), n.size === 0)) {
|
|
17
|
-
for (let s of a) s();
|
|
18
|
-
a.clear();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
document.body.addEventListener("transitionrun", d), document.body.addEventListener("transitionend", i);
|
|
22
|
-
}
|
|
23
|
-
typeof document < "u" && (document.readyState !== "loading" ? o() : document.addEventListener("DOMContentLoaded", o));
|
|
24
|
-
function c(r) {
|
|
25
|
-
requestAnimationFrame(() => {
|
|
26
|
-
n.size === 0 ? r() : a.add(r);
|
|
27
|
-
});
|
|
28
29
|
}
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
p as e
|
|
31
32
|
};
|
package/index313.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index307.js");function l(t,a,o){const s=`swiper-slide-shadow${o?`-${o}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=r.g(a);let e=i.querySelector(`.${s.split(" ").join(".")}`);return e||(e=r.c("div",s.split(" ")),i.append(e)),e}exports.c=l;
|
package/index313.mjs
CHANGED
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} : e;
|
|
7
|
-
n.current.set(e, {
|
|
8
|
-
type: l,
|
|
9
|
-
eventTarget: r,
|
|
10
|
-
fn: o,
|
|
11
|
-
options: t
|
|
12
|
-
}), r.addEventListener(l, e, t);
|
|
13
|
-
}, []), a = f((r, l, e, t) => {
|
|
14
|
-
var o;
|
|
15
|
-
let s = ((o = n.current.get(e)) === null || o === void 0 ? void 0 : o.fn) || e;
|
|
16
|
-
r.removeEventListener(l, s, t), n.current.delete(e);
|
|
17
|
-
}, []), d = f(() => {
|
|
18
|
-
n.current.forEach((r, l) => {
|
|
19
|
-
a(r.eventTarget, r.type, l, r.options);
|
|
20
|
-
});
|
|
21
|
-
}, [
|
|
22
|
-
a
|
|
23
|
-
]);
|
|
24
|
-
return b(() => d, [
|
|
25
|
-
d
|
|
26
|
-
]), {
|
|
27
|
-
addGlobalListener: u,
|
|
28
|
-
removeGlobalListener: a,
|
|
29
|
-
removeAllGlobalListeners: d
|
|
30
|
-
};
|
|
1
|
+
import { g as i, c as l } from "./index307.mjs";
|
|
2
|
+
function d(s, r, o) {
|
|
3
|
+
const a = `swiper-slide-shadow${o ? `-${o}` : ""}${s ? ` swiper-slide-shadow-${s}` : ""}`, t = i(r);
|
|
4
|
+
let e = t.querySelector(`.${a.split(" ").join(".")}`);
|
|
5
|
+
return e || (e = l("div", a.split(" ")), t.append(e)), e;
|
|
31
6
|
}
|
|
32
7
|
export {
|
|
33
|
-
|
|
8
|
+
d as c
|
|
34
9
|
};
|
package/index314.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 M=require("./index315.js"),A=require("./index316.js"),f=require("react"),P=require("./index172.js"),j=require("./index317.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;
|