@okam/stack-ui 1.44.0 → 1.44.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.
Files changed (347) hide show
  1. package/CHANGELOG.md +82 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index149.js +1 -1
  6. package/index149.mjs +4 -4
  7. package/index155.js +1 -1
  8. package/index155.mjs +4 -4
  9. package/index157.js +1 -1
  10. package/index157.mjs +4 -4
  11. package/index158.js +1 -1
  12. package/index158.mjs +2 -2
  13. package/index159.js +1 -1
  14. package/index159.mjs +1 -1
  15. package/index160.js +1 -1
  16. package/index160.mjs +1 -1
  17. package/index161.js +1 -2
  18. package/index161.mjs +39 -12
  19. package/index162.js +1 -1
  20. package/index162.mjs +12 -38
  21. package/index163.js +2 -1
  22. package/index163.mjs +26 -11
  23. package/index164.js +2 -1
  24. package/index164.mjs +38 -13
  25. package/index165.js +1 -1
  26. package/index165.mjs +21 -38
  27. package/index166.js +1 -2
  28. package/index166.mjs +44 -24
  29. package/index167.js +1 -1
  30. package/index167.mjs +25 -22
  31. package/index168.js +1 -1
  32. package/index168.mjs +40 -45
  33. package/index169.js +2 -1
  34. package/index169.mjs +57 -25
  35. package/index170.js +1 -1
  36. package/index170.mjs +39 -41
  37. package/index171.js +1 -2
  38. package/index171.mjs +30 -57
  39. package/index172.js +2 -1
  40. package/index172.mjs +8 -38
  41. package/index173.js +2 -1
  42. package/index173.mjs +9 -30
  43. package/index174.js +1 -2
  44. package/index174.mjs +32 -9
  45. package/index175.js +1 -2
  46. package/index175.mjs +14 -9
  47. package/index176.js +1 -1
  48. package/index176.mjs +16 -31
  49. package/index177.js +1 -1
  50. package/index177.mjs +11 -15
  51. package/index178.js +2 -1
  52. package/index178.mjs +47 -16
  53. package/index179.js +1 -2
  54. package/index179.mjs +36 -46
  55. package/index180.js +1 -1
  56. package/index180.mjs +31 -36
  57. package/index181.js +1 -1
  58. package/index181.mjs +20 -31
  59. package/index182.js +1 -1
  60. package/index182.mjs +32 -18
  61. package/index183.js +1 -1
  62. package/index183.mjs +14 -36
  63. package/index185.js +1 -1
  64. package/index185.mjs +3 -3
  65. package/index186.js +1 -1
  66. package/index186.mjs +23 -23
  67. package/index188.js +1 -1
  68. package/index188.mjs +5 -2025
  69. package/index189.js +2 -1
  70. package/index189.mjs +48 -58
  71. package/index190.js +1 -1
  72. package/index190.mjs +2010 -174
  73. package/index191.js +1 -1
  74. package/index191.mjs +59 -5
  75. package/index192.js +1 -2
  76. package/index192.mjs +186 -47
  77. package/index193.js +1 -1
  78. package/index193.mjs +203 -11
  79. package/index194.js +1 -1
  80. package/index194.mjs +51 -190
  81. package/index195.js +1 -1
  82. package/index195.mjs +130 -51
  83. package/index196.js +1 -1
  84. package/index196.mjs +111 -130
  85. package/index197.js +1 -1
  86. package/index197.mjs +205 -105
  87. package/index198.js +1 -1
  88. package/index198.mjs +169 -203
  89. package/index199.js +1 -1
  90. package/index199.mjs +61 -182
  91. package/index2.mjs +35 -35
  92. package/index200.js +1 -1
  93. package/index200.mjs +270 -60
  94. package/index201.js +1 -1
  95. package/index201.mjs +89 -270
  96. package/index202.js +1 -1
  97. package/index202.mjs +182 -92
  98. package/index203.js +1 -1
  99. package/index203.mjs +78 -182
  100. package/index204.js +1 -1
  101. package/index204.mjs +49 -75
  102. package/index205.js +1 -1
  103. package/index205.mjs +117 -49
  104. package/index206.js +1 -1
  105. package/index206.mjs +108 -118
  106. package/index207.js +1 -1
  107. package/index207.mjs +112 -106
  108. package/index208.js +1 -1
  109. package/index208.mjs +63 -113
  110. package/index209.js +1 -1
  111. package/index209.mjs +108 -70
  112. package/index210.js +1 -1
  113. package/index210.mjs +50 -108
  114. package/index211.js +1 -1
  115. package/index211.mjs +75 -34
  116. package/index212.js +1 -1
  117. package/index212.mjs +48 -71
  118. package/index213.js +1 -1
  119. package/index213.mjs +43 -57
  120. package/index214.js +1 -1
  121. package/index214.mjs +86 -43
  122. package/index215.js +5 -1
  123. package/index215.mjs +62 -81
  124. package/index216.js +1 -5
  125. package/index216.mjs +11 -80
  126. package/index217.js +1 -1
  127. package/index217.mjs +119 -125
  128. package/index218.js +1 -1
  129. package/index218.mjs +129 -185
  130. package/index219.js +1 -1
  131. package/index219.mjs +72 -121
  132. package/index220.js +1 -1
  133. package/index220.mjs +12 -132
  134. package/index221.js +1 -1
  135. package/index221.mjs +89 -69
  136. package/index222.js +1 -1
  137. package/index222.mjs +104 -12
  138. package/index223.js +1 -1
  139. package/index223.mjs +4 -95
  140. package/index224.js +1 -1
  141. package/index224.mjs +3 -106
  142. package/index225.js +1 -1
  143. package/index225.mjs +125 -4
  144. package/index226.js +1 -1
  145. package/index226.mjs +29 -3
  146. package/index227.js +1 -1
  147. package/index227.mjs +39 -113
  148. package/index228.js +1 -1
  149. package/index228.mjs +34 -19
  150. package/index229.js +1 -1
  151. package/index229.mjs +26 -40
  152. package/index230.js +1 -1
  153. package/index230.mjs +98 -29
  154. package/index231.js +1 -1
  155. package/index231.mjs +68 -28
  156. package/index232.js +1 -1
  157. package/index232.mjs +78 -90
  158. package/index233.js +1 -1
  159. package/index233.mjs +98 -78
  160. package/index234.js +1 -1
  161. package/index234.mjs +125 -96
  162. package/index235.js +1 -1
  163. package/index235.mjs +191 -98
  164. package/index236.js +1 -1
  165. package/index236.mjs +4 -126
  166. package/index237.js +1 -1
  167. package/index237.mjs +20 -67
  168. package/index238.js +1 -7
  169. package/index238.mjs +39 -431
  170. package/index239.js +1 -1
  171. package/index239.mjs +4 -57
  172. package/index240.js +1 -1
  173. package/index240.mjs +24 -3
  174. package/index241.js +1 -1
  175. package/index241.mjs +12 -25
  176. package/index242.js +1 -1
  177. package/index242.mjs +4 -47
  178. package/index243.js +1 -1
  179. package/index243.mjs +14 -5
  180. package/index244.js +1 -1
  181. package/index244.mjs +40 -22
  182. package/index245.js +1 -1
  183. package/index245.mjs +57 -11
  184. package/index246.js +1 -1
  185. package/index246.mjs +43 -4
  186. package/index247.js +1 -1
  187. package/index247.mjs +31 -13
  188. package/index248.js +1 -1
  189. package/index248.mjs +31 -42
  190. package/index249.js +1 -1
  191. package/index249.mjs +13 -57
  192. package/index250.js +1 -1
  193. package/index250.mjs +10 -43
  194. package/index251.js +1 -1
  195. package/index251.mjs +28 -31
  196. package/index252.js +1 -1
  197. package/index252.mjs +14 -30
  198. package/index253.js +1 -1
  199. package/index253.mjs +9 -14
  200. package/index254.js +1 -1
  201. package/index254.mjs +6 -10
  202. package/index255.js +1 -1
  203. package/index255.mjs +5 -29
  204. package/index256.js +1 -1
  205. package/index256.mjs +7 -15
  206. package/index257.js +1 -1
  207. package/index257.mjs +29 -9
  208. package/index258.js +1 -1
  209. package/index258.mjs +17 -6
  210. package/index259.js +1 -1
  211. package/index259.mjs +44 -5
  212. package/index260.js +1 -1
  213. package/index260.mjs +8 -7
  214. package/index261.js +1 -1
  215. package/index261.mjs +13 -26
  216. package/index262.js +1 -1
  217. package/index262.mjs +3 -18
  218. package/index263.js +1 -1
  219. package/index263.mjs +18 -43
  220. package/index264.js +1 -1
  221. package/index264.mjs +33 -7
  222. package/index265.js +1 -1
  223. package/index265.mjs +22 -16
  224. package/index266.js +1 -1
  225. package/index266.mjs +10 -3
  226. package/index267.js +1 -1
  227. package/index267.mjs +2 -18
  228. package/index268.js +1 -1
  229. package/index268.mjs +36 -34
  230. package/index269.js +1 -1
  231. package/index269.mjs +5 -22
  232. package/index270.js +1 -1
  233. package/index270.mjs +28 -53
  234. package/index271.js +1 -1
  235. package/index271.mjs +6 -27
  236. package/index272.js +1 -1
  237. package/index272.mjs +9 -144
  238. package/index273.js +1 -1
  239. package/index273.mjs +127 -207
  240. package/index274.js +1 -1
  241. package/index274.mjs +43 -22
  242. package/index275.js +1 -1
  243. package/index275.mjs +226 -44
  244. package/index276.js +1 -1
  245. package/index276.mjs +121 -42
  246. package/index277.js +1 -6
  247. package/index277.mjs +64 -105
  248. package/index278.js +7 -1
  249. package/index278.mjs +440 -72
  250. package/index279.js +1 -1
  251. package/index279.mjs +56 -72
  252. package/index28.js +1 -1
  253. package/index28.mjs +38 -94
  254. package/index280.js +1 -1
  255. package/index280.mjs +54 -7
  256. package/index281.js +1 -1
  257. package/index281.mjs +27 -11
  258. package/index282.js +1 -1
  259. package/index282.mjs +31 -9
  260. package/index283.js +1 -1
  261. package/index283.mjs +136 -125
  262. package/index284.js +1 -1
  263. package/index284.mjs +209 -39
  264. package/index285.js +1 -1
  265. package/index285.mjs +19 -228
  266. package/index286.js +1 -1
  267. package/index286.mjs +46 -28
  268. package/index287.js +1 -1
  269. package/index287.mjs +45 -8
  270. package/index288.js +6 -1
  271. package/index288.mjs +113 -3
  272. package/index289.js +1 -1
  273. package/index289.mjs +72 -37
  274. package/index29.js +1 -1
  275. package/index29.mjs +2 -2
  276. package/index290.js +1 -1
  277. package/index290.mjs +74 -5
  278. package/index291.js +1 -1
  279. package/index291.mjs +7 -29
  280. package/index292.js +1 -1
  281. package/index292.mjs +11 -6
  282. package/index30.js +1 -1
  283. package/index30.mjs +1 -1
  284. package/index329.js +1 -1
  285. package/index329.mjs +17 -59
  286. package/index33.js +1 -1
  287. package/index33.mjs +2 -2
  288. package/index330.js +1 -1
  289. package/index330.mjs +30 -7
  290. package/index331.js +1 -1
  291. package/index331.mjs +63 -27
  292. package/index332.js +1 -1
  293. package/index332.mjs +15 -87
  294. package/index333.js +1 -1
  295. package/index333.mjs +48 -7
  296. package/index334.js +1 -1
  297. package/index334.mjs +7 -26
  298. package/index335.js +1 -1
  299. package/index335.mjs +26 -32
  300. package/index336.js +1 -1
  301. package/index336.mjs +87 -6
  302. package/index337.js +1 -1
  303. package/index337.mjs +9 -6
  304. package/index338.js +1 -1
  305. package/index338.mjs +23 -48
  306. package/index339.js +1 -1
  307. package/index339.mjs +32 -28
  308. package/index34.js +1 -1
  309. package/index34.mjs +3 -3
  310. package/index340.js +1 -1
  311. package/index340.mjs +6 -15
  312. package/index341.js +1 -1
  313. package/index341.mjs +6 -21
  314. package/index342.js +1 -1
  315. package/index342.mjs +28 -28
  316. package/index345.js +1 -1
  317. package/index345.mjs +1 -1
  318. package/index35.js +1 -1
  319. package/index35.mjs +1 -1
  320. package/index36.js +1 -1
  321. package/index36.mjs +2 -2
  322. package/index38.js +1 -1
  323. package/index38.mjs +3 -3
  324. package/index39.js +1 -1
  325. package/index39.mjs +3 -3
  326. package/index40.js +1 -1
  327. package/index40.mjs +3 -3
  328. package/index42.js +1 -1
  329. package/index42.mjs +1 -1
  330. package/index44.js +1 -1
  331. package/index44.mjs +2 -2
  332. package/index45.js +1 -1
  333. package/index45.mjs +1 -1
  334. package/index48.js +1 -1
  335. package/index48.mjs +2 -2
  336. package/index52.js +1 -1
  337. package/index52.mjs +1 -1
  338. package/index54.js +1 -1
  339. package/index54.mjs +3 -3
  340. package/index56.js +1 -1
  341. package/index56.mjs +2 -2
  342. package/index57.js +1 -1
  343. package/index57.mjs +1 -1
  344. package/index59.js +1 -1
  345. package/index59.mjs +2 -2
  346. package/logger.d.ts +2 -2
  347. package/package.json +2 -2
package/index264.mjs CHANGED
@@ -1,11 +1,37 @@
1
- import { isAndroid as i } from "./index250.mjs";
2
- function o(r) {
3
- return r.pointerType === "" && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
1
+ import { isElementVisible as n } from "./index265.mjs";
2
+ const t = [
3
+ "input:not([disabled]):not([type=hidden])",
4
+ "select:not([disabled])",
5
+ "textarea:not([disabled])",
6
+ "button:not([disabled])",
7
+ "a[href]",
8
+ "area[href]",
9
+ "summary",
10
+ "iframe",
11
+ "object",
12
+ "embed",
13
+ "audio[controls]",
14
+ "video[controls]",
15
+ '[contenteditable]:not([contenteditable^="false"])',
16
+ "permission"
17
+ ], o = t.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
18
+ t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
19
+ const i = t.join(':not([hidden]):not([tabindex="-1"]),');
20
+ function r(b) {
21
+ return b.matches(o) && n(b) && !a(b);
4
22
  }
5
- function p(r) {
6
- return !i() && r.width === 0 && r.height === 0 || r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse";
23
+ function s(b) {
24
+ return b.matches(i) && n(b) && !a(b);
25
+ }
26
+ function a(b) {
27
+ let e = b;
28
+ for (; e != null; ) {
29
+ if (e instanceof e.ownerDocument.defaultView.HTMLElement && e.inert) return !0;
30
+ e = e.parentElement;
31
+ }
32
+ return !1;
7
33
  }
8
34
  export {
9
- o as isVirtualClick,
10
- p as isVirtualPointerEvent
35
+ r as isFocusable,
36
+ s as isTabbable
11
37
  };
package/index265.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index256.js"),u=require("react");function v(t,d,n){let o=i.useEffectEvent(()=>{n&&n(d)});u.useEffect(()=>{var r;let e=t==null||(r=t.current)===null||r===void 0?void 0:r.form;return e==null||e.addEventListener("reset",o),()=>{e==null||e.removeEventListener("reset",o)}},[t])}exports.useFormReset=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index241.js"),u=typeof Element<"u"&&"checkVisibility"in Element.prototype;function l(i){const t=c.getOwnerWindow(i);if(!(i instanceof t.HTMLElement)&&!(i instanceof t.SVGElement))return!1;let{display:o,visibility:a}=i.style,e=o!=="none"&&a!=="hidden"&&a!=="collapse";if(e){const{getComputedStyle:n}=i.ownerDocument.defaultView;let{display:d,visibility:s}=n(i);e=d!=="none"&&s!=="hidden"&&s!=="collapse"}return e}function p(i,t){return!i.hasAttribute("hidden")&&!i.hasAttribute("data-react-aria-prevent-focus")&&(i.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?i.hasAttribute("open"):!0)}function r(i,t){return u?i.checkVisibility({visibilityProperty:!0})&&!i.closest("[data-react-aria-prevent-focus]"):i.nodeName!=="#comment"&&l(i)&&p(i,t)&&(!i.parentElement||r(i.parentElement,i))}exports.isElementVisible=r;
package/index265.mjs CHANGED
@@ -1,19 +1,25 @@
1
- import { useEffectEvent as n } from "./index256.mjs";
2
- import { useEffect as v } from "react";
3
- function l(t, i, o) {
4
- let d = n(() => {
5
- o && o(i);
6
- });
7
- v(() => {
8
- var r;
9
- let e = t == null || (r = t.current) === null || r === void 0 ? void 0 : r.form;
10
- return e == null || e.addEventListener("reset", d), () => {
11
- e == null || e.removeEventListener("reset", d);
12
- };
13
- }, [
14
- t
15
- ]);
1
+ import { getOwnerWindow as d } from "./index241.mjs";
2
+ const c = typeof Element < "u" && "checkVisibility" in Element.prototype;
3
+ function p(i) {
4
+ const t = d(i);
5
+ if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
6
+ let { display: o, visibility: e } = i.style, a = o !== "none" && e !== "hidden" && e !== "collapse";
7
+ if (a) {
8
+ const { getComputedStyle: r } = i.ownerDocument.defaultView;
9
+ let { display: n, visibility: s } = r(i);
10
+ a = n !== "none" && s !== "hidden" && s !== "collapse";
11
+ }
12
+ return a;
13
+ }
14
+ function u(i, t) {
15
+ return !i.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
16
+ !i.hasAttribute("data-react-aria-prevent-focus") && (i.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? i.hasAttribute("open") : !0);
17
+ }
18
+ function f(i, t) {
19
+ return c ? i.checkVisibility({
20
+ visibilityProperty: !0
21
+ }) && !i.closest("[data-react-aria-prevent-focus]") : i.nodeName !== "#comment" && p(i) && u(i, t) && (!i.parentElement || f(i.parentElement, i));
16
22
  }
17
23
  export {
18
- l as useFormReset
24
+ f as isElementVisible
19
25
  };
package/index266.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c="react-aria-clear-focus",e="react-aria-focus";exports.CLEAR_FOCUS_EVENT=c;exports.FOCUS_EVENT=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index235.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/index266.mjs CHANGED
@@ -1,5 +1,12 @@
1
- const a = "react-aria-clear-focus", c = "react-aria-focus";
1
+ import { e as i, c as m } from "./index235.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;
9
+ }
2
10
  export {
3
- a as CLEAR_FOCUS_EVENT,
4
- c as FOCUS_EVENT
11
+ o as c
5
12
  };
package/index267.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index250.js");function t(e){return n.isMac()?e.metaKey:e.ctrlKey}const a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o(e){return e instanceof HTMLInputElement&&!a.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.isCtrlKeyPressed=t;exports.willOpenKeyboard=o;
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/index267.mjs CHANGED
@@ -1,22 +1,6 @@
1
- import { isMac as n } from "./index250.mjs";
2
- function o(e) {
3
- return n() ? e.metaKey : e.ctrlKey;
4
- }
5
- const a = /* @__PURE__ */ new Set([
6
- "checkbox",
7
- "radio",
8
- "range",
9
- "color",
10
- "file",
11
- "image",
12
- "button",
13
- "submit",
14
- "reset"
15
- ]);
16
1
  function r(e) {
17
- return e instanceof HTMLInputElement && !a.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
2
+ return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
18
3
  }
19
4
  export {
20
- o as isCtrlKeyPressed,
21
- r as willOpenKeyboard
5
+ r as c
22
6
  };
package/index268.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index269.js"),t=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],o=t.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a=t.join(':not([hidden]):not([tabindex="-1"]),');function d(e){return e.matches(o)&&n.isElementVisible(e)&&!i(e)}function s(e){return e.matches(a)&&n.isElementVisible(e)&&!i(e)}function i(e){let b=e;for(;b!=null;){if(b instanceof b.ownerDocument.defaultView.HTMLElement&&b.inert)return!0;b=b.parentElement}return!1}exports.isFocusable=d;exports.isTabbable=s;
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/index268.mjs CHANGED
@@ -1,37 +1,39 @@
1
- import { isElementVisible as n } from "./index269.mjs";
2
- const t = [
3
- "input:not([disabled]):not([type=hidden])",
4
- "select:not([disabled])",
5
- "textarea:not([disabled])",
6
- "button:not([disabled])",
7
- "a[href]",
8
- "area[href]",
9
- "summary",
10
- "iframe",
11
- "object",
12
- "embed",
13
- "audio[controls]",
14
- "video[controls]",
15
- '[contenteditable]:not([contenteditable^="false"])',
16
- "permission"
17
- ], o = t.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
18
- t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
19
- const i = t.join(':not([hidden]):not([tabindex="-1"]),');
20
- function r(b) {
21
- return b.matches(o) && n(b) && !a(b);
22
- }
23
- function s(b) {
24
- return b.matches(i) && n(b) && !a(b);
25
- }
26
- function a(b) {
27
- let e = b;
28
- for (; e != null; ) {
29
- if (e instanceof e.ownerDocument.defaultView.HTMLElement && e.inert) return !0;
30
- e = e.parentElement;
31
- }
32
- return !1;
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
+ });
33
36
  }
34
37
  export {
35
- r as isFocusable,
36
- s as isTabbable
38
+ m as e
37
39
  };
package/index269.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index245.js"),u=typeof Element<"u"&&"checkVisibility"in Element.prototype;function l(i){const t=c.getOwnerWindow(i);if(!(i instanceof t.HTMLElement)&&!(i instanceof t.SVGElement))return!1;let{display:o,visibility:a}=i.style,e=o!=="none"&&a!=="hidden"&&a!=="collapse";if(e){const{getComputedStyle:n}=i.ownerDocument.defaultView;let{display:d,visibility:s}=n(i);e=d!=="none"&&s!=="hidden"&&s!=="collapse"}return e}function p(i,t){return!i.hasAttribute("hidden")&&!i.hasAttribute("data-react-aria-prevent-focus")&&(i.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?i.hasAttribute("open"):!0)}function r(i,t){return u?i.checkVisibility({visibilityProperty:!0})&&!i.closest("[data-react-aria-prevent-focus]"):i.nodeName!=="#comment"&&l(i)&&p(i,t)&&(!i.parentElement||r(i.parentElement,i))}exports.isElementVisible=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index235.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/index269.mjs CHANGED
@@ -1,25 +1,8 @@
1
- import { getOwnerWindow as d } from "./index245.mjs";
2
- const c = typeof Element < "u" && "checkVisibility" in Element.prototype;
3
- function p(i) {
4
- const t = d(i);
5
- if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
6
- let { display: o, visibility: e } = i.style, a = o !== "none" && e !== "hidden" && e !== "collapse";
7
- if (a) {
8
- const { getComputedStyle: r } = i.ownerDocument.defaultView;
9
- let { display: n, visibility: s } = r(i);
10
- a = n !== "none" && s !== "hidden" && s !== "collapse";
11
- }
12
- return a;
13
- }
14
- function u(i, t) {
15
- return !i.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
16
- !i.hasAttribute("data-react-aria-prevent-focus") && (i.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? i.hasAttribute("open") : !0);
17
- }
18
- function f(i, t) {
19
- return c ? i.checkVisibility({
20
- visibilityProperty: !0
21
- }) && !i.closest("[data-react-aria-prevent-focus]") : i.nodeName !== "#comment" && p(i) && u(i, t) && (!i.parentElement || f(i.parentElement, i));
1
+ import { g as i } from "./index235.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;
22
5
  }
23
6
  export {
24
- f as isElementVisible
7
+ r as e
25
8
  };
package/index270.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index332.js"),c=require("react"),l=require("./index244.js"),m=require("./index245.js"),p=require("./index252.js");function B(b){let{isDisabled:v,onBlurWithin:i,onFocusWithin:s,onFocusWithinChange:t}=b,n=c.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:f}=p.useGlobalListeners(),r=c.useCallback(e=>{e.currentTarget.contains(e.target)&&n.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(n.current.isFocusWithin=!1,f(),i&&i(e),t&&t(!1))},[i,t,n,f]),g=o.useSyntheticBlurEvent(r),W=c.useCallback(e=>{if(!e.currentTarget.contains(e.target))return;const u=m.getOwnerDocument(e.target),T=l.getActiveElement(u);if(!n.current.isFocusWithin&&T===l.getEventTarget(e.nativeEvent)){s&&s(e),t&&t(!0),n.current.isFocusWithin=!0,g(e);let h=e.currentTarget;a(u,"focus",d=>{if(n.current.isFocusWithin&&!l.nodeContains(h,d.target)){let F=new u.defaultView.FocusEvent("blur",{relatedTarget:d.target});o.setEventTarget(F,h);let E=o.createSyntheticEvent(F);r(E)}},{capture:!0})}},[s,t,g,a,r]);return v?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:W,onBlur:r}}}exports.useFocusWithin=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index235.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/index270.mjs CHANGED
@@ -1,57 +1,32 @@
1
- import { useSyntheticBlurEvent as F, setEventTarget as W, createSyntheticEvent as v } from "./index332.mjs";
2
- import { useRef as x, useCallback as $ } from "react";
3
- import { getActiveElement as E, getEventTarget as T, nodeContains as B } from "./index244.mjs";
4
- import { getOwnerDocument as G } from "./index245.mjs";
5
- import { useGlobalListeners as L } from "./index252.mjs";
6
- function S(b) {
7
- let { isDisabled: h, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: t } = b, r = x({
8
- isFocusWithin: !1
9
- }), { addGlobalListener: c, removeAllGlobalListeners: s } = L(), n = $((e) => {
10
- e.currentTarget.contains(e.target) && r.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (r.current.isFocusWithin = !1, s(), i && i(e), t && t(!1));
11
- }, [
12
- i,
13
- t,
14
- r,
15
- s
16
- ]), u = F(n), g = $((e) => {
17
- if (!e.currentTarget.contains(e.target)) return;
18
- const a = G(e.target), p = E(a);
19
- if (!r.current.isFocusWithin && p === T(e.nativeEvent)) {
20
- o && o(e), t && t(!0), r.current.isFocusWithin = !0, u(e);
21
- let f = e.currentTarget;
22
- c(a, "focus", (l) => {
23
- if (r.current.isFocusWithin && !B(f, l.target)) {
24
- let d = new a.defaultView.FocusEvent("blur", {
25
- relatedTarget: l.target
26
- });
27
- W(d, f);
28
- let m = v(d);
29
- n(m);
30
- }
31
- }, {
32
- capture: !0
1
+ import { k as f } from "./index235.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);
33
26
  });
34
- }
35
- }, [
36
- o,
37
- t,
38
- u,
39
- c,
40
- n
41
- ]);
42
- return h ? {
43
- focusWithinProps: {
44
- // These cannot be null, that would conflict in mergeProps
45
- onFocus: void 0,
46
- onBlur: void 0
47
- }
48
- } : {
49
- focusWithinProps: {
50
- onFocus: g,
51
- onBlur: n
52
- }
53
- };
27
+ });
28
+ }
54
29
  }
55
30
  export {
56
- S as useFocusWithin
31
+ p as e
57
32
  };
package/index271.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var u;const E=typeof document<"u"?(u=e.useInsertionEffect)!==null&&u!==void 0?u:e.useLayoutEffect:()=>{};function R(c,d,n){let[f,i]=e.useState(c||d),o=e.useRef(f),s=e.useRef(c!==void 0),r=c!==void 0;e.useEffect(()=>{let t=s.current;t!==r&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${r?"controlled":"uncontrolled"}.`),s.current=r},[r]);let a=r?c:f;E(()=>{o.current=a});let[,$]=e.useReducer(()=>({}),{}),b=e.useCallback((t,...p)=>{let l=typeof t=="function"?t(o.current):t;Object.is(o.current,l)||(o.current=l,i(l),$(),n==null||n(l,...p))},[n]);return[a,b]}exports.useControlledState=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index235.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/index271.mjs CHANGED
@@ -1,30 +1,9 @@
1
- import s, { useState as R, useRef as d, useEffect as V, useReducer as m, useCallback as _ } from "react";
2
- var l;
3
- const y = typeof document < "u" ? (l = s.useInsertionEffect) !== null && l !== void 0 ? l : s.useLayoutEffect : () => {
4
- };
5
- function w(r, i, o) {
6
- let [u, $] = R(r || i), c = d(u), f = d(r !== void 0), t = r !== void 0;
7
- V(() => {
8
- let e = f.current;
9
- e !== t && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${e ? "controlled" : "uncontrolled"} to ${t ? "controlled" : "uncontrolled"}.`), f.current = t;
10
- }, [
11
- t
12
- ]);
13
- let a = t ? r : u;
14
- y(() => {
15
- c.current = a;
16
- });
17
- let [, p] = m(() => ({}), {}), E = _((e, ...b) => {
18
- let n = typeof e == "function" ? e(c.current) : e;
19
- Object.is(c.current, n) || (c.current = n, $(n), p(), o == null || o(n, ...b));
20
- }, [
21
- o
22
- ]);
23
- return [
24
- a,
25
- E
26
- ];
1
+ import { g as i, c as l } from "./index235.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;
27
6
  }
28
7
  export {
29
- w as useControlledState
8
+ d as c
30
9
  };
package/index272.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index273.js"),G=require("./index274.js"),v=require("react"),C=require("./index240.js"),U=require("./index255.js"),J=require("@react-aria/i18n");let t=typeof document<"u"?window.visualViewport:null;function K(l){let{direction:R}=J.useLocale(),{arrowSize:O,targetRef:p,overlayRef:i,arrowRef:s,scrollRef:u=i,placement:H="bottom",containerPadding:S=12,shouldFlip:B=!0,boundaryElement:b=typeof document<"u"?document.body:null,offset:q=0,crossOffset:T=0,shouldUpdatePosition:A=!0,isOpen:g=!0,onClose:m,maxHeight:x,arrowBoundaryOffset:F=0}=l,[e,I]=v.useState(null),N=[A,H,i.current,p.current,s==null?void 0:s.current,u.current,S,B,b,q,T,g,R,x,F,O],j=v.useRef(t==null?void 0:t.scale);v.useEffect(()=>{g&&(j.current=t==null?void 0:t.scale)},[g]);let d=v.useCallback(()=>{if(A===!1||!g||!i.current||!p.current||!b||(t==null?void 0:t.scale)!==j.current)return;let o=null;if(u.current&&u.current.contains(document.activeElement)){var a;let r=(a=document.activeElement)===null||a===void 0?void 0:a.getBoundingClientRect(),h=u.current.getBoundingClientRect();var c;if(o={type:"top",offset:((c=r==null?void 0:r.top)!==null&&c!==void 0?c:0)-h.top},o.offset>h.height/2){o.type="bottom";var z;o.offset=((z=r==null?void 0:r.bottom)!==null&&z!==void 0?z:0)-h.bottom}}let n=i.current;if(!x&&i.current){var L;n.style.top="0px",n.style.bottom="";var $;n.style.maxHeight=(($=(L=window.visualViewport)===null||L===void 0?void 0:L.height)!==null&&$!==void 0?$:window.innerHeight)+"px"}let f=k.calculatePosition({placement:W(H,R),overlayNode:i.current,targetNode:p.current,scrollNode:u.current||i.current,padding:S,shouldFlip:B,boundaryElement:b,offset:q,crossOffset:T,maxHeight:x,arrowSize:O??(s!=null&&s.current?k.getRect(s.current,!0).width:0),arrowBoundaryOffset:F});if(f.position){if(n.style.top="",n.style.bottom="",n.style.left="",n.style.right="",Object.keys(f.position).forEach(r=>n.style[r]=f.position[r]+"px"),n.style.maxHeight=f.maxHeight!=null?f.maxHeight+"px":"",o&&document.activeElement&&u.current){let r=document.activeElement.getBoundingClientRect(),h=u.current.getBoundingClientRect(),D=r[o.type]-h[o.type];u.current.scrollTop+=D-o.offset}I(f)}},N);C.useLayoutEffect(d,N),Q(d),U.useResizeObserver({ref:i,onResize:d}),U.useResizeObserver({ref:p,onResize:d});let y=v.useRef(!1);C.useLayoutEffect(()=>{let o,a=()=>{y.current=!0,clearTimeout(o),o=setTimeout(()=>{y.current=!1},500),d()},c=()=>{y.current&&a()};return t==null||t.addEventListener("resize",a),t==null||t.addEventListener("scroll",c),()=>{t==null||t.removeEventListener("resize",a),t==null||t.removeEventListener("scroll",c)}},[d]);let M=v.useCallback(()=>{y.current||m==null||m()},[m,y]);G.useCloseOnScroll({triggerRef:p,isOpen:g,onClose:m&&M});var E,P,w;return{overlayProps:{style:{position:e?"absolute":"fixed",top:e?void 0:0,left:e?void 0:0,zIndex:1e5,...e==null?void 0:e.position,maxHeight:(E=e==null?void 0:e.maxHeight)!==null&&E!==void 0?E:"100vh"}},placement:(P=e==null?void 0:e.placement)!==null&&P!==void 0?P:null,triggerAnchorPoint:(w=e==null?void 0:e.triggerAnchorPoint)!==null&&w!==void 0?w:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:e==null?void 0:e.arrowOffsetLeft,top:e==null?void 0:e.arrowOffsetTop}},updatePosition:d}}function Q(l){C.useLayoutEffect(()=>(window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)}),[l])}function W(l,R){return R==="rtl"?l.replace("start","right").replace("end","left"):l.replace("start","left").replace("end","right")}exports.useOverlayPosition=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=new WeakMap;function a(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=o.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}exports.generateId=a;exports.tabsIds=o;
package/index272.mjs CHANGED
@@ -1,147 +1,12 @@
1
- import { calculatePosition as J, getRect as K } from "./index273.mjs";
2
- import { useCloseOnScroll as M } from "./index274.mjs";
3
- import { useState as Q, useRef as j, useEffect as W, useCallback as k } from "react";
4
- import { useLayoutEffect as H } from "./index240.mjs";
5
- import { useResizeObserver as I } from "./index255.mjs";
6
- import { useLocale as X } from "@react-aria/i18n";
7
- let t = typeof document < "u" ? window.visualViewport : null;
8
- function le(n) {
9
- let { direction: $ } = X(), { arrowSize: b, targetRef: v, overlayRef: i, arrowRef: s, scrollRef: d = i, placement: L = "bottom", containerPadding: C = 12, shouldFlip: B = !0, boundaryElement: h = typeof document < "u" ? document.body : null, offset: S = 0, crossOffset: T = 0, shouldUpdatePosition: A = !0, isOpen: p = !0, onClose: m, maxHeight: x, arrowBoundaryOffset: F = 0 } = n, [e, q] = Q(null), N = [
10
- A,
11
- L,
12
- i.current,
13
- v.current,
14
- s == null ? void 0 : s.current,
15
- d.current,
16
- C,
17
- B,
18
- h,
19
- S,
20
- T,
21
- p,
22
- $,
23
- x,
24
- F,
25
- b
26
- ], U = j(t == null ? void 0 : t.scale);
27
- W(() => {
28
- p && (U.current = t == null ? void 0 : t.scale);
29
- }, [
30
- p
31
- ]);
32
- let u = k(() => {
33
- if (A === !1 || !p || !i.current || !v.current || !h || (t == null ? void 0 : t.scale) !== U.current) return;
34
- let o = null;
35
- if (d.current && d.current.contains(document.activeElement)) {
36
- var a;
37
- let r = (a = document.activeElement) === null || a === void 0 ? void 0 : a.getBoundingClientRect(), y = d.current.getBoundingClientRect();
38
- var f;
39
- if (o = {
40
- type: "top",
41
- offset: ((f = r == null ? void 0 : r.top) !== null && f !== void 0 ? f : 0) - y.top
42
- }, o.offset > y.height / 2) {
43
- o.type = "bottom";
44
- var E;
45
- o.offset = ((E = r == null ? void 0 : r.bottom) !== null && E !== void 0 ? E : 0) - y.bottom;
46
- }
47
- }
48
- let l = i.current;
49
- if (!x && i.current) {
50
- var P;
51
- l.style.top = "0px", l.style.bottom = "";
52
- var z;
53
- l.style.maxHeight = ((z = (P = window.visualViewport) === null || P === void 0 ? void 0 : P.height) !== null && z !== void 0 ? z : window.innerHeight) + "px";
54
- }
55
- let c = J({
56
- placement: Z(L, $),
57
- overlayNode: i.current,
58
- targetNode: v.current,
59
- scrollNode: d.current || i.current,
60
- padding: C,
61
- shouldFlip: B,
62
- boundaryElement: h,
63
- offset: S,
64
- crossOffset: T,
65
- maxHeight: x,
66
- arrowSize: b ?? (s != null && s.current ? K(s.current, !0).width : 0),
67
- arrowBoundaryOffset: F
68
- });
69
- if (c.position) {
70
- 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 && d.current) {
71
- let r = document.activeElement.getBoundingClientRect(), y = d.current.getBoundingClientRect(), G = r[o.type] - y[o.type];
72
- d.current.scrollTop += G - o.offset;
73
- }
74
- q(c);
75
- }
76
- }, N);
77
- H(u, N), Y(u), I({
78
- ref: i,
79
- onResize: u
80
- }), I({
81
- ref: v,
82
- onResize: u
83
- });
84
- let g = j(!1);
85
- H(() => {
86
- let o, a = () => {
87
- g.current = !0, clearTimeout(o), o = setTimeout(() => {
88
- g.current = !1;
89
- }, 500), u();
90
- }, f = () => {
91
- g.current && a();
92
- };
93
- return t == null || t.addEventListener("resize", a), t == null || t.addEventListener("scroll", f), () => {
94
- t == null || t.removeEventListener("resize", a), t == null || t.removeEventListener("scroll", f);
95
- };
96
- }, [
97
- u
98
- ]);
99
- let D = k(() => {
100
- g.current || m == null || m();
101
- }, [
102
- m,
103
- g
104
- ]);
105
- M({
106
- triggerRef: v,
107
- isOpen: p,
108
- onClose: m && D
109
- });
110
- var R, O, w;
111
- return {
112
- overlayProps: {
113
- style: {
114
- position: e ? "absolute" : "fixed",
115
- top: e ? void 0 : 0,
116
- left: e ? void 0 : 0,
117
- zIndex: 1e5,
118
- ...e == null ? void 0 : e.position,
119
- maxHeight: (R = e == null ? void 0 : e.maxHeight) !== null && R !== void 0 ? R : "100vh"
120
- }
121
- },
122
- placement: (O = e == null ? void 0 : e.placement) !== null && O !== void 0 ? O : null,
123
- triggerAnchorPoint: (w = e == null ? void 0 : e.triggerAnchorPoint) !== null && w !== void 0 ? w : null,
124
- arrowProps: {
125
- "aria-hidden": "true",
126
- role: "presentation",
127
- style: {
128
- left: e == null ? void 0 : e.arrowOffsetLeft,
129
- top: e == null ? void 0 : e.arrowOffsetTop
130
- }
131
- },
132
- updatePosition: u
133
- };
134
- }
135
- function Y(n) {
136
- H(() => (window.addEventListener("resize", n, !1), () => {
137
- window.removeEventListener("resize", n, !1);
138
- }), [
139
- n
140
- ]);
141
- }
142
- function Z(n, $) {
143
- return $ === "rtl" ? n.replace("start", "right").replace("end", "left") : n.replace("start", "left").replace("end", "right");
1
+ const o = /* @__PURE__ */ new WeakMap();
2
+ function n(r, e, a) {
3
+ if (!r)
4
+ return "";
5
+ typeof e == "string" && (e = e.replace(/\s+/g, ""));
6
+ let t = o.get(r);
7
+ return process.env.NODE_ENV !== "production" && !t && console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."), `${t}-${a}-${e}`;
144
8
  }
145
9
  export {
146
- le as useOverlayPosition
10
+ n as generateId,
11
+ o as tabsIds
147
12
  };