@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.
Files changed (241) hide show
  1. package/components/fields/TextInputField/index.d.ts +1 -2
  2. package/index.d.ts +5 -0
  3. package/index.js +1 -1
  4. package/index.mjs +26 -25
  5. package/index101.js +1 -1
  6. package/index101.mjs +1 -1
  7. package/index102.js +1 -1
  8. package/index102.mjs +3 -3
  9. package/index103.js +1 -1
  10. package/index103.mjs +1 -1
  11. package/index110.js +1 -1
  12. package/index110.mjs +5 -5
  13. package/index111.js +1 -1
  14. package/index111.mjs +2 -2
  15. package/index112.js +1 -1
  16. package/index112.mjs +1 -1
  17. package/index113.js +1 -1
  18. package/index113.mjs +2 -2
  19. package/index115.js +1 -1
  20. package/index115.mjs +4 -4
  21. package/index116.js +1 -1
  22. package/index116.mjs +2 -2
  23. package/index120.js +1 -1
  24. package/index120.mjs +4 -4
  25. package/index121.js +1 -1
  26. package/index121.mjs +2 -2
  27. package/index125.js +1 -1
  28. package/index125.mjs +2 -2
  29. package/index126.js +1 -1
  30. package/index126.mjs +3 -3
  31. package/index130.js +1 -1
  32. package/index130.mjs +2 -2
  33. package/index133.js +1 -1
  34. package/index133.mjs +1 -1
  35. package/index138.js +1 -1
  36. package/index138.mjs +12 -52
  37. package/index139.js +1 -1
  38. package/index139.mjs +46 -12
  39. package/index140.js +1 -1
  40. package/index140.mjs +241 -46
  41. package/index141.js +2 -1
  42. package/index141.mjs +13 -241
  43. package/index142.js +1 -2
  44. package/index142.mjs +29 -12
  45. package/index143.js +1 -1
  46. package/index143.mjs +52 -30
  47. package/index144.js +1 -1
  48. package/index144.mjs +1 -1
  49. package/index145.js +1 -1
  50. package/index145.mjs +5 -5
  51. package/index146.js +1 -1
  52. package/index146.mjs +3 -3
  53. package/index147.js +1 -1
  54. package/index147.mjs +2 -2
  55. package/index148.js +1 -1
  56. package/index148.mjs +3 -3
  57. package/index149.js +1 -1
  58. package/index149.mjs +3 -3
  59. package/index151.js +1 -1
  60. package/index151.mjs +2 -2
  61. package/index152.js +1 -1
  62. package/index152.mjs +20 -106
  63. package/index153.js +1 -1
  64. package/index153.mjs +107 -83
  65. package/index154.js +1 -1
  66. package/index154.mjs +83 -26
  67. package/index155.js +1 -1
  68. package/index155.mjs +25 -20
  69. package/index156.js +1 -1
  70. package/index156.mjs +123 -17
  71. package/index157.js +1 -1
  72. package/index157.mjs +24 -122
  73. package/index158.js +1 -1
  74. package/index158.mjs +17 -71
  75. package/index159.js +1 -1
  76. package/index159.mjs +62 -338
  77. package/index160.js +1 -1
  78. package/index160.mjs +346 -42
  79. package/index161.js +1 -1
  80. package/index161.mjs +43 -29
  81. package/index162.js +1 -1
  82. package/index162.mjs +28 -24
  83. package/index164.js +1 -1
  84. package/index164.mjs +2 -2
  85. package/index167.js +1 -1
  86. package/index167.mjs +3 -3
  87. package/index169.js +1 -1
  88. package/index169.mjs +1 -1
  89. package/index170.js +1 -1
  90. package/index170.mjs +1 -1
  91. package/index171.js +1 -1
  92. package/index171.mjs +1 -1
  93. package/index173.js +1 -1
  94. package/index173.mjs +1 -1
  95. package/index175.js +1 -1
  96. package/index175.mjs +1 -1
  97. package/index176.js +1 -1
  98. package/index176.mjs +1 -1
  99. package/index178.js +1 -1
  100. package/index178.mjs +2 -2
  101. package/index179.js +1 -1
  102. package/index179.mjs +1 -1
  103. package/index180.js +1 -1
  104. package/index180.mjs +2 -2
  105. package/index182.js +1 -1
  106. package/index182.mjs +1 -1
  107. package/index198.js +1 -1
  108. package/index198.mjs +2 -2
  109. package/index199.js +1 -1
  110. package/index199.mjs +1 -1
  111. package/index200.js +1 -1
  112. package/index200.mjs +3 -3
  113. package/index204.js +1 -1
  114. package/index204.mjs +2 -2
  115. package/index205.js +1 -1
  116. package/index205.mjs +1 -1
  117. package/index206.js +1 -1
  118. package/index206.mjs +2 -2
  119. package/index207.js +1 -1
  120. package/index207.mjs +2 -2
  121. package/index208.js +1 -1
  122. package/index208.mjs +2 -2
  123. package/index209.js +1 -1
  124. package/index209.mjs +2 -2
  125. package/index210.js +1 -1
  126. package/index210.mjs +3 -3
  127. package/index211.js +1 -1
  128. package/index211.mjs +4 -4
  129. package/index212.js +1 -1
  130. package/index212.mjs +1 -1
  131. package/index213.js +1 -1
  132. package/index213.mjs +2 -2
  133. package/index214.js +1 -1
  134. package/index214.mjs +1 -1
  135. package/index215.js +1 -1
  136. package/index215.mjs +3 -3
  137. package/index216.js +1 -1
  138. package/index216.mjs +1 -1
  139. package/index217.js +1 -1
  140. package/index217.mjs +2 -2
  141. package/index218.js +1 -1
  142. package/index218.mjs +1 -1
  143. package/index219.js +1 -1
  144. package/index219.mjs +2 -2
  145. package/index220.js +1 -1
  146. package/index220.mjs +1 -1
  147. package/index223.js +1 -1
  148. package/index223.mjs +4 -4
  149. package/index224.js +1 -1
  150. package/index224.mjs +2 -2
  151. package/index225.js +1 -1
  152. package/index225.mjs +5 -5
  153. package/index226.js +1 -1
  154. package/index226.mjs +4 -4
  155. package/index227.js +1 -1
  156. package/index227.mjs +5 -5
  157. package/index228.js +1 -1
  158. package/index228.mjs +5 -5
  159. package/index229.js +1 -1
  160. package/index229.mjs +2 -2
  161. package/index306.js +1 -1
  162. package/index306.mjs +129 -23
  163. package/index307.js +1 -1
  164. package/index307.mjs +181 -38
  165. package/index308.js +1 -1
  166. package/index308.mjs +9 -5
  167. package/index309.js +1 -1
  168. package/index309.mjs +4 -6
  169. package/index310.js +1 -1
  170. package/index310.mjs +36 -14
  171. package/index311.js +1 -1
  172. package/index311.mjs +5 -24
  173. package/index312.js +1 -1
  174. package/index312.mjs +28 -27
  175. package/index313.js +1 -1
  176. package/index313.mjs +6 -31
  177. package/index314.js +1 -1
  178. package/index314.mjs +138 -26
  179. package/index315.js +1 -1
  180. package/index315.mjs +197 -9
  181. package/index316.js +1 -1
  182. package/index316.mjs +22 -5
  183. package/index317.js +1 -1
  184. package/index317.mjs +28 -7
  185. package/index318.js +1 -1
  186. package/index318.mjs +46 -13
  187. package/index319.js +1 -1
  188. package/index319.mjs +47 -7
  189. package/index320.js +1 -1
  190. package/index320.mjs +95 -125
  191. package/index321.js +1 -1
  192. package/index321.mjs +4 -189
  193. package/index322.js +1 -1
  194. package/index322.mjs +72 -10
  195. package/index323.js +1 -1
  196. package/index323.mjs +58 -3
  197. package/index324.js +1 -1
  198. package/index324.mjs +7 -36
  199. package/index325.js +1 -1
  200. package/index325.mjs +11 -5
  201. package/index326.js +1 -1
  202. package/index326.mjs +46 -28
  203. package/index327.js +1 -1
  204. package/index327.mjs +24 -6
  205. package/index328.js +1 -1
  206. package/index328.mjs +6 -141
  207. package/index329.js +1 -1
  208. package/index329.mjs +14 -197
  209. package/index330.js +1 -1
  210. package/index330.mjs +24 -22
  211. package/index331.js +1 -1
  212. package/index331.mjs +26 -44
  213. package/index332.js +1 -1
  214. package/index332.mjs +29 -46
  215. package/index333.js +1 -1
  216. package/index333.mjs +8 -99
  217. package/index334.js +1 -1
  218. package/index334.mjs +6 -72
  219. package/index335.js +1 -1
  220. package/index335.mjs +7 -58
  221. package/index336.js +1 -1
  222. package/index336.mjs +13 -7
  223. package/index337.js +1 -1
  224. package/index337.mjs +8 -11
  225. package/index338.js +1 -1
  226. package/index338.mjs +4 -7
  227. package/index339.js +1 -1
  228. package/index339.mjs +6 -68
  229. package/index340.js +1 -1
  230. package/index340.mjs +65 -27
  231. package/index341.js +1 -1
  232. package/index341.mjs +30 -6
  233. package/index342.js +1 -1
  234. package/index342.mjs +6 -6
  235. package/index343.js +1 -1
  236. package/index343.mjs +6 -20
  237. package/index344.js +1 -1
  238. package/index344.mjs +20 -3
  239. package/index99.js +1 -1
  240. package/index99.mjs +1 -1
  241. package/package.json +1 -1
package/index307.mjs CHANGED
@@ -1,50 +1,193 @@
1
- import a, { useContext as s, useState as f, useRef as l } from "react";
2
- const c = {
3
- prefix: String(Math.round(Math.random() * 1e10)),
4
- current: 0
5
- }, $ = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
6
- let v = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new WeakMap();
7
- function S(t = !1) {
8
- let e = s($), r = l(null);
9
- if (r.current === null && !t) {
10
- var n, u;
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
- r.current = ++e.current;
20
- }
21
- return r.current;
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 b(t) {
24
- let e = s($);
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 x(t) {
30
- let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
31
- return t || `${n}-${e}`;
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
- const C = typeof a.useId == "function" ? x : b;
34
- function m() {
35
- return !1;
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
- return !0;
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 g(t) {
41
- return () => {
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 y() {
45
- return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : s(p);
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
- y as useIsSSR,
49
- C as useSSRSafeId
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(...t){return(...f)=>{for(let e of t)typeof e=="function"&&e(...f)}}exports.chain=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
- function o(...f) {
2
- return (...c) => {
3
- for (let e of f) typeof e == "function" && e(...c);
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 chain
11
+ o as c
8
12
  };
package/index309.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=o=>{var n;return(n=o==null?void 0:o.ownerDocument)!==null&&n!==void 0?n:document},e=o=>o&&"window"in o&&o.window===o?o:t(o).defaultView||window;exports.getOwnerDocument=t;exports.getOwnerWindow=e;
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
- const t = (n) => {
2
- var o;
3
- return (o = n == null ? void 0 : n.ownerDocument) !== null && o !== void 0 ? o : document;
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
- t as getOwnerDocument,
7
- d as getOwnerWindow
5
+ r as c
8
6
  };
package/index310.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(r){var o,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(o=0;o<u;o++)r[o]&&(e=n(r[o]))&&(t&&(t+=" "),t+=e)}else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,o,e=0,t="",u=arguments.length;e<u;e++)(r=arguments[e])&&(o=n(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=f;exports.default=f;
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 a(r) {
2
- var n, f, t = "";
3
- if (typeof r == "string" || typeof r == "number") t += r;
4
- else if (typeof r == "object") if (Array.isArray(r)) {
5
- var o = r.length;
6
- for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
7
- } else for (f in r) r[f] && (t && (t += " "), t += f);
8
- return t;
9
- }
10
- function i() {
11
- for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
12
- return t;
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
- i as clsx,
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 d=require("./index202.js"),e=require("./index174.js");require("react");function t(i,y,c=!0){var n,l;let{metaKey:r,ctrlKey:o,altKey:s,shiftKey:a}=y;e.isFirefox()&&(!((l=window.event)===null||l===void 0||(n=l.type)===null||n===void 0)&&n.startsWith("key"))&&i.target==="_blank"&&(e.isMac()?r=!0:o=!0);let u=e.isWebKit()&&e.isMac()&&!e.isIPad()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});t.isOpening=c,d.focusWithoutScrolling(i),i.dispatchEvent(u),t.isOpening=!1}t.isOpening=!1;exports.openLink=t;
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 { focusWithoutScrolling as f } from "./index202.mjs";
2
- import { isFirefox as K, isMac as l, isWebKit as $, isIPad as p } from "./index174.mjs";
3
- import "react";
4
- function o(e, c, y = !0) {
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
- o as openLink
7
+ r as e
27
8
  };
package/index312.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let n=new Map,a=new Set;function o(){if(typeof window>"u")return;function r(e){return"propertyName"in e}let d=e=>{if(!r(e)||!e.target)return;let t=n.get(e.target);t||(t=new Set,n.set(e.target,t),e.target.addEventListener("transitioncancel",i,{once:!0})),t.add(e.propertyName)},i=e=>{if(!r(e)||!e.target)return;let t=n.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",i),n.delete(e.target)),n.size===0)){for(let s of a)s();a.clear()}};document.body.addEventListener("transitionrun",d),document.body.addEventListener("transitionend",i)}typeof document<"u"&&(document.readyState!=="loading"?o():document.addEventListener("DOMContentLoaded",o));function c(r){requestAnimationFrame(()=>{n.size===0?r():a.add(r)})}exports.runAfterTransition=c;
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
- let n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
2
- function o() {
3
- if (typeof window > "u") return;
4
- function r(t) {
5
- return "propertyName" in t;
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
- c as runAfterTransition
31
+ p as e
31
32
  };
package/index313.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function b(){let n=o.useRef(new Map),d=o.useCallback((t,l,e,r)=>{let a=r!=null&&r.once?(...s)=>{n.current.delete(e),e(...s)}:e;n.current.set(e,{type:l,eventTarget:t,fn:a,options:r}),t.addEventListener(l,e,r)},[]),u=o.useCallback((t,l,e,r)=>{var a;let s=((a=n.current.get(e))===null||a===void 0?void 0:a.fn)||e;t.removeEventListener(l,s,r),n.current.delete(e)},[]),c=o.useCallback(()=>{n.current.forEach((t,l)=>{u(t.eventTarget,t.type,l,t.options)})},[u]);return o.useEffect(()=>c,[c]),{addGlobalListener:d,removeGlobalListener:u,removeAllGlobalListeners:c}}exports.useGlobalListeners=b;
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 { useRef as c, useCallback as f, useEffect as b } from "react";
2
- function L() {
3
- let n = c(/* @__PURE__ */ new Map()), u = f((r, l, e, t) => {
4
- let o = t != null && t.once ? (...s) => {
5
- n.current.delete(e), e(...s);
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
- L as useGlobalListeners
8
+ d as c
34
9
  };
package/index314.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react");function u(){return typeof window.ResizeObserver<"u"}function b(i){const{ref:e,box:s,onResize:r}=i;d.useEffect(()=>{let n=e==null?void 0:e.current;if(n)if(u()){const t=new window.ResizeObserver(o=>{o.length&&r()});return t.observe(n,{box:s}),()=>{n&&t.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,s])}exports.useResizeObserver=b;
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;