@okam/stack-ui 1.32.4 → 1.32.5

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 (433) hide show
  1. package/components/fields/Checkbox/index.d.ts +6 -0
  2. package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
  3. package/components/fields/Select/Select.d.ts +4 -1
  4. package/components/fields/Select/Select.interface.d.ts +1 -0
  5. package/components/fields/TextArea/index.d.ts +4 -1
  6. package/index.d.ts +4 -2
  7. package/index.js +1 -1
  8. package/index.mjs +153 -151
  9. package/index110.js +1 -1
  10. package/index110.mjs +5 -5
  11. package/index111.js +1 -1
  12. package/index111.mjs +2 -2
  13. package/index112.js +1 -1
  14. package/index112.mjs +1 -1
  15. package/index113.js +1 -1
  16. package/index113.mjs +2 -2
  17. package/index115.js +1 -1
  18. package/index115.mjs +4 -4
  19. package/index116.js +1 -1
  20. package/index116.mjs +2 -2
  21. package/index118.js +1 -1
  22. package/index118.mjs +3 -3
  23. package/index119.js +1 -1
  24. package/index119.mjs +3 -3
  25. package/index120.js +1 -1
  26. package/index120.mjs +4 -4
  27. package/index121.js +1 -1
  28. package/index121.mjs +2 -2
  29. package/index122.js +1 -1
  30. package/index122.mjs +2 -2
  31. package/index123.js +1 -1
  32. package/index123.mjs +8 -8
  33. package/index125.js +1 -1
  34. package/index125.mjs +2 -2
  35. package/index126.js +1 -1
  36. package/index126.mjs +3 -3
  37. package/index130.js +1 -1
  38. package/index130.mjs +2 -2
  39. package/index133.js +1 -1
  40. package/index133.mjs +1 -1
  41. package/index139.js +1 -1
  42. package/index139.mjs +2 -2
  43. package/index140.js +1 -1
  44. package/index140.mjs +23 -23
  45. package/index141.js +1 -1
  46. package/index141.mjs +3 -3
  47. package/index144.js +1 -1
  48. package/index144.mjs +21 -23
  49. package/index145.js +1 -1
  50. package/index145.mjs +38 -113
  51. package/index146.js +1 -1
  52. package/index146.mjs +25 -22
  53. package/index147.js +1 -1
  54. package/index147.mjs +251 -35
  55. package/index148.js +1 -1
  56. package/index148.mjs +106 -25
  57. package/index149.js +1 -1
  58. package/index149.mjs +320 -242
  59. package/index150.js +1 -1
  60. package/index150.mjs +23 -105
  61. package/index151.js +1 -1
  62. package/index151.mjs +104 -323
  63. package/index152.js +1 -1
  64. package/index152.mjs +106 -20
  65. package/index153.js +1 -1
  66. package/index153.mjs +83 -107
  67. package/index154.js +1 -1
  68. package/index154.mjs +26 -83
  69. package/index155.js +1 -1
  70. package/index155.mjs +20 -25
  71. package/index156.js +1 -1
  72. package/index156.mjs +17 -123
  73. package/index157.js +1 -1
  74. package/index157.mjs +122 -24
  75. package/index158.js +1 -1
  76. package/index158.mjs +71 -17
  77. package/index159.js +1 -1
  78. package/index159.mjs +338 -62
  79. package/index16.js +1 -1
  80. package/index16.mjs +144 -67
  81. package/index160.js +1 -1
  82. package/index160.mjs +42 -346
  83. package/index161.js +1 -1
  84. package/index161.mjs +29 -43
  85. package/index162.js +1 -1
  86. package/index162.mjs +24 -28
  87. package/index164.js +1 -1
  88. package/index164.mjs +2 -2
  89. package/index167.js +1 -1
  90. package/index167.mjs +2 -2
  91. package/index169.js +1 -1
  92. package/index169.mjs +4 -4
  93. package/index17.js +1 -1
  94. package/index17.mjs +95 -26
  95. package/index170.js +1 -1
  96. package/index170.mjs +2 -2
  97. package/index173.js +1 -1
  98. package/index173.mjs +1 -1
  99. package/index175.js +1 -1
  100. package/index175.mjs +1 -1
  101. package/index176.js +1 -1
  102. package/index176.mjs +1 -1
  103. package/index178.js +1 -1
  104. package/index178.mjs +4 -4
  105. package/index179.js +1 -1
  106. package/index179.mjs +1 -1
  107. package/index180.js +1 -1
  108. package/index180.mjs +2 -2
  109. package/index182.js +1 -1
  110. package/index182.mjs +1 -1
  111. package/index184.js +1 -1
  112. package/index184.mjs +1 -1
  113. package/index185.js +1 -1
  114. package/index185.mjs +205 -197
  115. package/index186.js +1 -1
  116. package/index186.mjs +24 -64
  117. package/index187.js +1 -1
  118. package/index187.mjs +4 -143
  119. package/index188.js +1 -1
  120. package/index188.mjs +3 -124
  121. package/index189.js +1 -1
  122. package/index189.mjs +116 -215
  123. package/index190.js +1 -1
  124. package/index190.mjs +23 -184
  125. package/index191.js +1 -1
  126. package/index191.mjs +51 -69
  127. package/index192.js +1 -1
  128. package/index192.mjs +43 -278
  129. package/index193.js +1 -1
  130. package/index193.mjs +31 -92
  131. package/index194.js +1 -1
  132. package/index194.mjs +109 -184
  133. package/index195.js +1 -1
  134. package/index195.mjs +77 -84
  135. package/index196.js +1 -1
  136. package/index196.mjs +101 -58
  137. package/index197.js +1 -1
  138. package/index197.mjs +98 -127
  139. package/index198.js +1 -1
  140. package/index198.mjs +188 -101
  141. package/index199.js +1 -1
  142. package/index199.mjs +52 -110
  143. package/index20.js +1 -1
  144. package/index20.mjs +105 -31
  145. package/index200.js +1 -1
  146. package/index200.mjs +138 -67
  147. package/index201.js +1 -1
  148. package/index201.mjs +119 -105
  149. package/index202.js +1 -1
  150. package/index202.mjs +219 -47
  151. package/index203.js +1 -1
  152. package/index203.mjs +185 -88
  153. package/index204.js +1 -1
  154. package/index204.mjs +62 -63
  155. package/index205.js +1 -1
  156. package/index205.mjs +275 -52
  157. package/index206.js +1 -1
  158. package/index206.mjs +93 -94
  159. package/index207.js +1 -5
  160. package/index207.mjs +183 -75
  161. package/index208.js +1 -1
  162. package/index208.mjs +73 -2014
  163. package/index209.js +1 -1
  164. package/index209.mjs +56 -57
  165. package/index21.js +1 -1
  166. package/index21.mjs +132 -59
  167. package/index210.js +1 -1
  168. package/index210.mjs +123 -185
  169. package/index211.js +1 -1
  170. package/index211.mjs +110 -205
  171. package/index212.js +1 -1
  172. package/index212.mjs +122 -24
  173. package/index213.js +1 -1
  174. package/index213.mjs +72 -4
  175. package/index214.js +1 -1
  176. package/index214.mjs +110 -3
  177. package/index215.js +1 -1
  178. package/index215.mjs +51 -124
  179. package/index216.js +1 -1
  180. package/index216.mjs +93 -29
  181. package/index217.js +1 -1
  182. package/index217.mjs +70 -51
  183. package/index218.js +1 -1
  184. package/index218.mjs +56 -44
  185. package/index219.js +1 -1
  186. package/index219.mjs +98 -36
  187. package/index220.js +5 -1
  188. package/index220.mjs +78 -111
  189. package/index221.js +1 -1
  190. package/index221.mjs +2021 -73
  191. package/index222.js +1 -1
  192. package/index222.mjs +57 -99
  193. package/index223.js +1 -1
  194. package/index223.mjs +189 -98
  195. package/index224.js +1 -1
  196. package/index224.mjs +3 -3
  197. package/index225.js +1 -1
  198. package/index225.mjs +1 -1
  199. package/index226.js +1 -1
  200. package/index226.mjs +3 -3
  201. package/index227.js +1 -1
  202. package/index227.mjs +34 -34
  203. package/index230.js +1 -1
  204. package/index230.mjs +2 -2
  205. package/index231.js +1 -1
  206. package/index231.mjs +1 -1
  207. package/index266.js +1 -1
  208. package/index266.mjs +34 -34
  209. package/index269.js +1 -1
  210. package/index269.mjs +4 -130
  211. package/index270.js +1 -1
  212. package/index270.mjs +22 -188
  213. package/index271.js +1 -1
  214. package/index271.mjs +46 -8
  215. package/index272.js +1 -1
  216. package/index272.mjs +5 -3
  217. package/index273.js +1 -1
  218. package/index273.mjs +6 -37
  219. package/index274.js +1 -1
  220. package/index274.mjs +14 -5
  221. package/index275.js +1 -1
  222. package/index275.mjs +24 -29
  223. package/index276.js +1 -1
  224. package/index276.mjs +28 -6
  225. package/index277.js +1 -1
  226. package/index277.mjs +26 -135
  227. package/index278.js +1 -1
  228. package/index278.mjs +9 -197
  229. package/index279.js +1 -1
  230. package/index279.mjs +25 -19
  231. package/index280.js +1 -1
  232. package/index280.mjs +9 -28
  233. package/index281.js +1 -1
  234. package/index281.mjs +5 -46
  235. package/index282.js +1 -1
  236. package/index282.mjs +7 -48
  237. package/index283.js +1 -1
  238. package/index283.mjs +12 -99
  239. package/index284.js +1 -1
  240. package/index284.mjs +8 -5
  241. package/index285.js +1 -1
  242. package/index285.mjs +130 -71
  243. package/index286.js +1 -1
  244. package/index286.mjs +185 -53
  245. package/index287.js +1 -1
  246. package/index287.mjs +9 -7
  247. package/index288.js +1 -1
  248. package/index288.mjs +3 -11
  249. package/index289.js +1 -1
  250. package/index289.mjs +35 -46
  251. package/index290.js +1 -1
  252. package/index290.mjs +5 -24
  253. package/index291.js +1 -1
  254. package/index291.mjs +30 -6
  255. package/index292.js +1 -1
  256. package/index292.mjs +6 -14
  257. package/index293.js +1 -1
  258. package/index293.mjs +48 -24
  259. package/index294.js +1 -1
  260. package/index294.mjs +16 -29
  261. package/index295.js +1 -1
  262. package/index295.mjs +16 -32
  263. package/index296.js +1 -1
  264. package/index296.mjs +16 -10
  265. package/index297.js +1 -1
  266. package/index297.mjs +16 -10
  267. package/index298.js +1 -1
  268. package/index298.mjs +16 -6
  269. package/index299.js +1 -1
  270. package/index299.mjs +16 -8
  271. package/index300.js +1 -1
  272. package/index300.mjs +16 -14
  273. package/index301.js +1 -1
  274. package/index301.mjs +16 -9
  275. package/index302.js +1 -1
  276. package/index302.mjs +16 -5
  277. package/index303.js +1 -1
  278. package/index303.mjs +16 -49
  279. package/index304.js +1 -1
  280. package/index304.mjs +15 -15
  281. package/index305.js +1 -1
  282. package/index305.mjs +15 -15
  283. package/index306.js +1 -1
  284. package/index306.mjs +15 -15
  285. package/index307.js +1 -1
  286. package/index307.mjs +12 -12
  287. package/index308.js +1 -1
  288. package/index308.mjs +15 -15
  289. package/index309.js +1 -1
  290. package/index309.mjs +15 -15
  291. package/index310.js +1 -1
  292. package/index310.mjs +15 -15
  293. package/index311.js +1 -1
  294. package/index311.mjs +15 -15
  295. package/index312.js +1 -1
  296. package/index312.mjs +15 -15
  297. package/index313.js +1 -1
  298. package/index313.mjs +15 -15
  299. package/index314.js +1 -1
  300. package/index314.mjs +12 -12
  301. package/index315.js +1 -1
  302. package/index315.mjs +15 -15
  303. package/index316.js +1 -1
  304. package/index316.mjs +15 -15
  305. package/index317.js +1 -1
  306. package/index317.mjs +15 -15
  307. package/index318.js +1 -1
  308. package/index318.mjs +15 -15
  309. package/index319.js +1 -1
  310. package/index319.mjs +12 -12
  311. package/index320.js +1 -1
  312. package/index320.mjs +15 -15
  313. package/index321.js +1 -1
  314. package/index321.mjs +15 -15
  315. package/index322.js +1 -1
  316. package/index322.mjs +15 -15
  317. package/index323.js +1 -1
  318. package/index323.mjs +15 -15
  319. package/index324.js +1 -1
  320. package/index324.mjs +15 -15
  321. package/index325.js +1 -1
  322. package/index325.mjs +12 -12
  323. package/index326.js +1 -1
  324. package/index326.mjs +15 -15
  325. package/index327.js +1 -1
  326. package/index327.mjs +15 -15
  327. package/index328.js +1 -1
  328. package/index328.mjs +141 -16
  329. package/index329.js +1 -1
  330. package/index329.mjs +198 -16
  331. package/index330.js +1 -1
  332. package/index330.mjs +23 -16
  333. package/index331.js +1 -1
  334. package/index331.mjs +47 -16
  335. package/index332.js +1 -1
  336. package/index332.mjs +49 -16
  337. package/index333.js +1 -1
  338. package/index333.mjs +101 -16
  339. package/index334.js +1 -1
  340. package/index334.mjs +71 -15
  341. package/index335.js +1 -1
  342. package/index335.mjs +59 -16
  343. package/index336.js +1 -1
  344. package/index336.mjs +8 -16
  345. package/index337.js +1 -1
  346. package/index337.mjs +12 -16
  347. package/index338.js +1 -1
  348. package/index338.mjs +7 -4
  349. package/index339.js +1 -1
  350. package/index339.mjs +68 -6
  351. package/index340.js +1 -1
  352. package/index340.mjs +27 -65
  353. package/index341.js +1 -1
  354. package/index341.mjs +6 -30
  355. package/index342.js +1 -1
  356. package/index342.mjs +6 -6
  357. package/index343.js +1 -1
  358. package/index343.mjs +20 -6
  359. package/index344.js +1 -1
  360. package/index344.mjs +3 -20
  361. package/index345.js +1 -1
  362. package/index345.mjs +6 -72
  363. package/index347.js +1 -1
  364. package/index347.mjs +71 -7
  365. package/index348.js +1 -1
  366. package/index348.mjs +7 -7
  367. package/index349.js +1 -1
  368. package/index349.mjs +7 -7
  369. package/index350.js +1 -1
  370. package/index350.mjs +7 -7
  371. package/index351.js +1 -1
  372. package/index351.mjs +4 -4
  373. package/index352.js +1 -1
  374. package/index352.mjs +7 -7
  375. package/index353.js +1 -1
  376. package/index353.mjs +7 -7
  377. package/index354.js +1 -1
  378. package/index354.mjs +4 -4
  379. package/index355.js +1 -1
  380. package/index355.mjs +4 -4
  381. package/index356.js +1 -1
  382. package/index356.mjs +4 -4
  383. package/index357.js +1 -1
  384. package/index357.mjs +4 -4
  385. package/index358.js +1 -1
  386. package/index358.mjs +7 -7
  387. package/index359.js +1 -1
  388. package/index359.mjs +7 -7
  389. package/index360.js +1 -1
  390. package/index360.mjs +7 -7
  391. package/index361.js +1 -1
  392. package/index361.mjs +4 -4
  393. package/index362.js +1 -1
  394. package/index362.mjs +7 -7
  395. package/index363.js +1 -1
  396. package/index363.mjs +7 -7
  397. package/index364.js +1 -1
  398. package/index364.mjs +7 -7
  399. package/index365.js +1 -1
  400. package/index365.mjs +7 -7
  401. package/index366.js +1 -1
  402. package/index366.mjs +7 -7
  403. package/index367.js +1 -1
  404. package/index367.mjs +4 -4
  405. package/index368.js +1 -1
  406. package/index368.mjs +7 -7
  407. package/index369.js +1 -1
  408. package/index369.mjs +7 -7
  409. package/index370.js +1 -1
  410. package/index370.mjs +3 -3
  411. package/index371.js +1 -1
  412. package/index371.mjs +4 -4
  413. package/index372.js +1 -1
  414. package/index372.mjs +7 -7
  415. package/index373.js +1 -1
  416. package/index373.mjs +7 -7
  417. package/index374.js +1 -1
  418. package/index374.mjs +7 -7
  419. package/index375.js +1 -1
  420. package/index375.mjs +4 -4
  421. package/index376.js +1 -1
  422. package/index376.mjs +7 -7
  423. package/index377.js +1 -1
  424. package/index377.mjs +4 -4
  425. package/index378.js +1 -1
  426. package/index378.mjs +4 -4
  427. package/index379.js +1 -1
  428. package/index379.mjs +7 -7
  429. package/index380.js +1 -1
  430. package/index380.mjs +4 -4
  431. package/index381.js +1 -1
  432. package/index381.mjs +8 -6
  433. package/package.json +1 -1
package/index279.mjs CHANGED
@@ -1,25 +1,31 @@
1
- import { useEffect as a } from "react";
2
- const i = /* @__PURE__ */ new WeakMap();
3
- function u(s) {
4
- let { triggerRef: e, isOpen: r, onClose: t } = s;
5
- a(() => {
6
- if (!r || t === null) return;
7
- let o = (n) => {
8
- let l = n.target;
9
- if (!e.current || l instanceof Node && !l.contains(e.current) || n.target instanceof HTMLInputElement || n.target instanceof HTMLTextAreaElement) return;
10
- let f = t || i.get(e.current);
11
- f && f();
12
- };
13
- return window.addEventListener("scroll", o, !0), () => {
14
- window.removeEventListener("scroll", o, !0);
15
- };
1
+ import { useEffect as d } from "react";
2
+ function f() {
3
+ return typeof window.ResizeObserver < "u";
4
+ }
5
+ function u(o) {
6
+ const { ref: e, box: s, onResize: r } = o;
7
+ d(() => {
8
+ let n = e == null ? void 0 : e.current;
9
+ if (n)
10
+ if (f()) {
11
+ const i = new window.ResizeObserver((t) => {
12
+ t.length && r();
13
+ });
14
+ return i.observe(n, {
15
+ box: s
16
+ }), () => {
17
+ n && i.unobserve(n);
18
+ };
19
+ } else
20
+ return window.addEventListener("resize", r, !1), () => {
21
+ window.removeEventListener("resize", r, !1);
22
+ };
16
23
  }, [
17
24
  r,
18
- t,
19
- e
25
+ e,
26
+ s
20
27
  ]);
21
28
  }
22
29
  export {
23
- i as onCloseMap,
24
- u as useCloseOnScroll
30
+ u as useResizeObserver
25
31
  };
package/index280.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 u=require("./index172.js");function f(e,r){u.useLayoutEffect(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}exports.useSyncRef=f;
package/index280.mjs CHANGED
@@ -1,31 +1,12 @@
1
- import { useEffect as d } from "react";
2
- function f() {
3
- return typeof window.ResizeObserver < "u";
4
- }
5
- function u(o) {
6
- const { ref: e, box: s, onResize: r } = o;
7
- d(() => {
8
- let n = e == null ? void 0 : e.current;
9
- if (n)
10
- if (f()) {
11
- const i = new window.ResizeObserver((t) => {
12
- t.length && r();
13
- });
14
- return i.observe(n, {
15
- box: s
16
- }), () => {
17
- n && i.unobserve(n);
18
- };
19
- } else
20
- return window.addEventListener("resize", r, !1), () => {
21
- window.removeEventListener("resize", r, !1);
22
- };
23
- }, [
24
- r,
25
- e,
26
- s
27
- ]);
1
+ import { useLayoutEffect as f } from "./index172.mjs";
2
+ function u(r, e) {
3
+ f(() => {
4
+ if (r && r.ref && e)
5
+ return r.ref.current = e.current, () => {
6
+ r.ref && (r.ref.current = null);
7
+ };
8
+ });
28
9
  }
29
10
  export {
30
- u as useResizeObserver
11
+ u as useSyncRef
31
12
  };
package/index281.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@react-aria/focus"),D=require("react"),h=require("./index162.js"),y=require("./index282.js"),t=[];function b(a,i){let{onClose:n,shouldCloseOnBlur:l,isOpen:o,isDismissable:u=!1,isKeyboardDismissDisabled:d=!1,shouldCloseOnInteractOutside:s}=a;D.useEffect(()=>(o&&t.push(i),()=>{let e=t.indexOf(i);e>=0&&t.splice(e,1)}),[o,i]);let r=()=>{t[t.length-1]===i&&n&&n()},c=e=>{(!s||s(e.target))&&t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault())},f=e=>{(!s||s(e.target))&&(t[t.length-1]===i&&(e.stopPropagation(),e.preventDefault()),r())},p=e=>{e.key==="Escape"&&!d&&!e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault(),r())};y.useInteractOutside({ref:i,onInteractOutside:u&&o?f:void 0,onInteractOutsideStart:c});let{focusWithinProps:O}=h.useFocusWithin({isDisabled:!l,onBlurWithin:e=>{!e.relatedTarget||v.isElementInChildOfActiveScope(e.relatedTarget)||(!s||s(e.relatedTarget))&&(n==null||n())}}),g=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:{onKeyDown:p,...O},underlayProps:{onPointerDown:g}}}exports.useOverlay=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,r){if(!e)return!1;let l=window.getComputedStyle(e),t=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return t&&r&&(t=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),t}exports.isScrollable=i;
package/index281.mjs CHANGED
@@ -1,49 +1,8 @@
1
- import { isElementInChildOfActiveScope as g } from "@react-aria/focus";
2
- import { useEffect as m } from "react";
3
- import { useFocusWithin as v } from "./index162.mjs";
4
- import { useInteractOutside as b } from "./index282.mjs";
5
- const t = [];
6
- function C(a, i) {
7
- let { onClose: o, shouldCloseOnBlur: l, isOpen: n, isDismissable: d = !1, isKeyboardDismissDisabled: u = !1, shouldCloseOnInteractOutside: s } = a;
8
- m(() => (n && t.push(i), () => {
9
- let e = t.indexOf(i);
10
- e >= 0 && t.splice(e, 1);
11
- }), [
12
- n,
13
- i
14
- ]);
15
- let r = () => {
16
- t[t.length - 1] === i && o && o();
17
- }, f = (e) => {
18
- (!s || s(e.target)) && t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault());
19
- }, p = (e) => {
20
- (!s || s(e.target)) && (t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault()), r());
21
- }, c = (e) => {
22
- e.key === "Escape" && !u && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), r());
23
- };
24
- b({
25
- ref: i,
26
- onInteractOutside: d && n ? p : void 0,
27
- onInteractOutsideStart: f
28
- });
29
- let { focusWithinProps: O } = v({
30
- isDisabled: !l,
31
- onBlurWithin: (e) => {
32
- !e.relatedTarget || g(e.relatedTarget) || (!s || s(e.relatedTarget)) && (o == null || o());
33
- }
34
- }), D = (e) => {
35
- e.target === e.currentTarget && e.preventDefault();
36
- };
37
- return {
38
- overlayProps: {
39
- onKeyDown: c,
40
- ...O
41
- },
42
- underlayProps: {
43
- onPointerDown: D
44
- }
45
- };
1
+ function c(l, r) {
2
+ if (!l) return !1;
3
+ let t = window.getComputedStyle(l), e = /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
4
+ return e && r && (e = l.scrollHeight !== l.clientHeight || l.scrollWidth !== l.clientWidth), e;
46
5
  }
47
6
  export {
48
- C as useOverlay
7
+ c as isScrollable
49
8
  };
package/index282.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index291.js"),v=require("./index300.js"),m=require("react");function g(r){let{ref:n,onInteractOutside:s,isDisabled:d,onInteractOutsideStart:l}=r,E=m.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=v.useEffectEvent(e=>{s&&f(e,n)&&(l&&l(e),E.current.isPointerDown=!0)}),c=v.useEffectEvent(e=>{s&&s(e)});m.useEffect(()=>{let e=E.current;if(d)return;const w=n.current,t=p.getOwnerDocument(w);if(typeof PointerEvent<"u"){let i=u=>{e.isPointerDown&&f(u,n)&&c(u),e.isPointerDown=!1};return t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerup",i,!0),()=>{t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerup",i,!0)}}else{let i=a=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1},u=a=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1};return t.addEventListener("mousedown",o,!0),t.addEventListener("mouseup",i,!0),t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",u,!0),()=>{t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseup",i,!0),t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",u,!0)}}},[n,d,o,c])}function f(r,n){if(r.button>0)return!1;if(r.target){const s=r.target.ownerDocument;if(!s||!s.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return n.current&&!n.current.contains(r.target)}exports.useInteractOutside=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index281.js");function r(e,c){const t=[];for(;e&&e!==document.documentElement;)l.isScrollable(e,c)&&t.push(e),e=e.parentElement;return t}exports.getScrollParents=r;
package/index282.mjs CHANGED
@@ -1,51 +1,10 @@
1
- import { getOwnerDocument as p } from "./index291.mjs";
2
- import { useEffectEvent as E } from "./index300.mjs";
3
- import { useRef as w, useEffect as D } from "react";
4
- function $(r) {
5
- let { ref: n, onInteractOutside: i, isDisabled: d, onInteractOutsideStart: l } = r, m = w({
6
- isPointerDown: !1,
7
- ignoreEmulatedMouseEvents: !1
8
- }), o = E((e) => {
9
- i && c(e, n) && (l && l(e), m.current.isPointerDown = !0);
10
- }), f = E((e) => {
11
- i && i(e);
12
- });
13
- D(() => {
14
- let e = m.current;
15
- if (d) return;
16
- const v = n.current, t = p(v);
17
- if (typeof PointerEvent < "u") {
18
- let s = (u) => {
19
- e.isPointerDown && c(u, n) && f(u), e.isPointerDown = !1;
20
- };
21
- return t.addEventListener("pointerdown", o, !0), t.addEventListener("pointerup", s, !0), () => {
22
- t.removeEventListener("pointerdown", o, !0), t.removeEventListener("pointerup", s, !0);
23
- };
24
- } else {
25
- let s = (a) => {
26
- e.ignoreEmulatedMouseEvents ? e.ignoreEmulatedMouseEvents = !1 : e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
27
- }, u = (a) => {
28
- e.ignoreEmulatedMouseEvents = !0, e.isPointerDown && c(a, n) && f(a), e.isPointerDown = !1;
29
- };
30
- return t.addEventListener("mousedown", o, !0), t.addEventListener("mouseup", s, !0), t.addEventListener("touchstart", o, !0), t.addEventListener("touchend", u, !0), () => {
31
- t.removeEventListener("mousedown", o, !0), t.removeEventListener("mouseup", s, !0), t.removeEventListener("touchstart", o, !0), t.removeEventListener("touchend", u, !0);
32
- };
33
- }
34
- }, [
35
- n,
36
- d,
37
- o,
38
- f
39
- ]);
40
- }
41
- function c(r, n) {
42
- if (r.button > 0) return !1;
43
- if (r.target) {
44
- const i = r.target.ownerDocument;
45
- if (!i || !i.documentElement.contains(r.target) || r.target.closest("[data-react-aria-top-layer]")) return !1;
46
- }
47
- return n.current && !n.current.contains(r.target);
1
+ import { isScrollable as r } from "./index281.mjs";
2
+ function s(e, t) {
3
+ const c = [];
4
+ for (; e && e !== document.documentElement; )
5
+ r(e, t) && c.push(e), e = e.parentElement;
6
+ return c;
48
7
  }
49
8
  export {
50
- $ as useInteractOutside
9
+ s as getScrollParents
51
10
  };
package/index283.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index284.js"),y=require("./index172.js"),g=require("./index173.js"),S=require("./index174.js"),m=typeof document<"u"&&window.visualViewport,T=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let s=0,f;function b(e={}){let{isDisabled:t}=e;y.useLayoutEffect(()=>{if(!t)return s++,s===1&&(S.isIOS()?f=L():f=x()),()=>{s--,s===0&&f()}},[t])}function x(){return v.chain(l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),l(document.documentElement,"overflow","hidden"))}function L(){let e,t,n=r=>{e=g.getScrollParent(r.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=l(e,"overscrollBehavior","contain"))},o=r=>{if(!e||e===document.documentElement||e===document.body){r.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&r.preventDefault()},u=r=>{let c=r.target;h(c)&&c!==document.activeElement&&(r.preventDefault(),p(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=r=>{let c=r.target;h(c)&&(p(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",m&&(m.height<window.innerHeight?requestAnimationFrame(()=>{w(c)}):m.addEventListener("resize",()=>w(c),{once:!0}))}))},i=null,p=()=>{if(i)return;let r=()=>{window.scrollTo(0,0)},c=window.pageXOffset,$=window.pageYOffset;i=v.chain(d(window,"scroll",r),l(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),l(document.documentElement,"overflow","hidden"),l(document.body,"marginTop",`-${$}px`),()=>{window.scrollTo(c,$)}),window.scrollTo(0,0)},E=v.chain(d(document,"touchstart",n,{passive:!1,capture:!0}),d(document,"touchmove",o,{passive:!1,capture:!0}),d(document,"touchend",u,{passive:!1,capture:!0}),d(document,"focus",a,!0));return()=>{t==null||t(),i==null||i(),E()}}function l(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function d(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function w(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let o=g.getScrollParent(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let u=o.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>u+n.clientHeight&&(o.scrollTop+=a-u)}n=o.parentElement}}function h(e){return e instanceof HTMLInputElement&&!T.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.usePreventScroll=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index172.js"),r=require("react");function o(t){const u=r.useRef(null);return n.useLayoutEffect(()=>{u.current=t},[t]),r.useCallback((...c)=>{const e=u.current;return e==null?void 0:e(...c)},[])}exports.useEffectEvent=o;
package/index283.mjs CHANGED
@@ -1,103 +1,16 @@
1
- import { chain as $ } from "./index284.mjs";
2
- import { useLayoutEffect as b } from "./index172.mjs";
3
- import { getScrollParent as E } from "./index173.mjs";
4
- import { isIOS as y } from "./index174.mjs";
5
- const m = typeof document < "u" && window.visualViewport, T = /* @__PURE__ */ new Set([
6
- "checkbox",
7
- "radio",
8
- "range",
9
- "color",
10
- "file",
11
- "image",
12
- "button",
13
- "submit",
14
- "reset"
15
- ]);
16
- let s = 0, f;
17
- function C(e = {}) {
18
- let { isDisabled: t } = e;
19
- b(() => {
20
- if (!t)
21
- return s++, s === 1 && (y() ? f = x() : f = S()), () => {
22
- s--, s === 0 && f();
23
- };
1
+ import { useLayoutEffect as f } from "./index172.mjs";
2
+ import { useRef as o, useCallback as a } from "react";
3
+ function s(r) {
4
+ const t = o(null);
5
+ return f(() => {
6
+ t.current = r;
24
7
  }, [
25
- t
26
- ]);
27
- }
28
- function S() {
29
- return $(l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"));
30
- }
31
- function x() {
32
- let e, t, n = (r) => {
33
- e = E(r.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = l(e, "overscrollBehavior", "contain"));
34
- }, o = (r) => {
35
- if (!e || e === document.documentElement || e === document.body) {
36
- r.preventDefault();
37
- return;
38
- }
39
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && r.preventDefault();
40
- }, u = (r) => {
41
- let c = r.target;
42
- h(c) && c !== document.activeElement && (r.preventDefault(), p(), c.style.transform = "translateY(-2000px)", c.focus(), requestAnimationFrame(() => {
43
- c.style.transform = "";
44
- })), t && t();
45
- }, a = (r) => {
46
- let c = r.target;
47
- h(c) && (p(), c.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
48
- c.style.transform = "", m && (m.height < window.innerHeight ? requestAnimationFrame(() => {
49
- w(c);
50
- }) : m.addEventListener("resize", () => w(c), {
51
- once: !0
52
- }));
53
- }));
54
- }, i = null, p = () => {
55
- if (i) return;
56
- let r = () => {
57
- window.scrollTo(0, 0);
58
- }, c = window.pageXOffset, v = window.pageYOffset;
59
- i = $(d(window, "scroll", r), l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"), l(document.body, "marginTop", `-${v}px`), () => {
60
- window.scrollTo(c, v);
61
- }), window.scrollTo(0, 0);
62
- }, g = $(d(document, "touchstart", n, {
63
- passive: !1,
64
- capture: !0
65
- }), d(document, "touchmove", o, {
66
- passive: !1,
67
- capture: !0
68
- }), d(document, "touchend", u, {
69
- passive: !1,
70
- capture: !0
71
- }), d(document, "focus", a, !0));
72
- return () => {
73
- t == null || t(), i == null || i(), g();
74
- };
75
- }
76
- function l(e, t, n) {
77
- let o = e.style[t];
78
- return e.style[t] = n, () => {
79
- e.style[t] = o;
80
- };
81
- }
82
- function d(e, t, n, o) {
83
- return e.addEventListener(t, n, o), () => {
84
- e.removeEventListener(t, n, o);
85
- };
86
- }
87
- function w(e) {
88
- let t = document.scrollingElement || document.documentElement, n = e;
89
- for (; n && n !== t; ) {
90
- let o = E(n);
91
- if (o !== document.documentElement && o !== document.body && o !== n) {
92
- let u = o.getBoundingClientRect().top, a = n.getBoundingClientRect().top;
93
- a > u + n.clientHeight && (o.scrollTop += a - u);
94
- }
95
- n = o.parentElement;
96
- }
97
- }
98
- function h(e) {
99
- return e instanceof HTMLInputElement && !T.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
8
+ r
9
+ ]), a((...c) => {
10
+ const e = t.current;
11
+ return e == null ? void 0 : e(...c);
12
+ }, []);
100
13
  }
101
14
  export {
102
- C as usePreventScroll
15
+ s as useEffectEvent
103
16
  };
package/index284.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 i=require("./index174.js");function t(r){return r.mozInputSource===0&&r.isTrusted?!0:i.isAndroid()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}function o(r){return!i.isAndroid()&&r.width===0&&r.height===0||r.width===1&&r.height===1&&r.pressure===0&&r.detail===0&&r.pointerType==="mouse"}exports.isVirtualClick=t;exports.isVirtualPointerEvent=o;
package/index284.mjs CHANGED
@@ -1,8 +1,11 @@
1
- function o(...f) {
2
- return (...c) => {
3
- for (let e of f) typeof e == "function" && e(...c);
4
- };
1
+ import { isAndroid as i } from "./index174.mjs";
2
+ function o(r) {
3
+ return r.mozInputSource === 0 && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
4
+ }
5
+ function u(r) {
6
+ return !i() && r.width === 0 && r.height === 0 || r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse";
5
7
  }
6
8
  export {
7
- o as chain
9
+ o as isVirtualClick,
10
+ u as isVirtualPointerEvent
8
11
  };
package/index285.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index382.js"),r=require("./index383.js"),t=require("./index384.js"),s=require("./index385.js"),u=require("./index386.js"),n=require("./index387.js"),i=require("./index388.js"),o=require("./index389.js"),c=require("./index390.js"),q=require("./index391.js"),R=require("./index392.js"),l=require("./index393.js"),E=require("./index394.js"),S=require("./index395.js"),h=require("./index396.js"),L=require("./index397.js"),T=require("./index398.js"),a=require("./index399.js"),I=require("./index400.js"),P=require("./index401.js"),U=require("./index402.js"),d=require("./index403.js"),f=require("./index404.js"),p=require("./index405.js"),k=require("./index406.js"),K=require("./index407.js"),N=require("./index408.js"),b=require("./index409.js"),v=require("./index410.js"),z=require("./index411.js"),A=require("./index412.js"),B=require("./index413.js"),C=require("./index414.js"),D=require("./index415.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function o(e,n){e===void 0&&(e={}),n===void 0&&(n={}),Object.keys(n).forEach(t=>{typeof e[t]>"u"?e[t]=n[t]:r(n[t])&&r(e[t])&&Object.keys(n[t]).length>0&&o(e[t],n[t])})}const u={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function i(){const e=typeof document<"u"?document:{};return o(e,u),e}const c={document:u,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function s(){const e=typeof window<"u"?window:{};return o(e,c),e}exports.a=s;exports.g=i;
package/index285.mjs CHANGED
@@ -1,74 +1,133 @@
1
- import r from "./index382.mjs";
2
- import o from "./index383.mjs";
3
- import f from "./index384.mjs";
4
- import t from "./index385.mjs";
5
- import p from "./index386.mjs";
6
- import $ from "./index387.mjs";
7
- import e from "./index388.mjs";
8
- import m from "./index389.mjs";
9
- import s from "./index390.mjs";
10
- import d from "./index391.mjs";
11
- import c from "./index392.mjs";
12
- import i from "./index393.mjs";
13
- import x from "./index394.mjs";
14
- import a from "./index395.mjs";
15
- import b from "./index396.mjs";
16
- import R from "./index397.mjs";
17
- import l from "./index398.mjs";
18
- import E from "./index399.mjs";
19
- import S from "./index400.mjs";
20
- import h from "./index401.mjs";
21
- import L from "./index402.mjs";
22
- import T from "./index403.mjs";
23
- import u from "./index404.mjs";
24
- import I from "./index405.mjs";
25
- import P from "./index406.mjs";
26
- import U from "./index407.mjs";
27
- import k from "./index408.mjs";
28
- import n from "./index409.mjs";
29
- import v from "./index410.mjs";
30
- import K from "./index411.mjs";
31
- import N from "./index412.mjs";
32
- import z from "./index413.mjs";
33
- import A from "./index414.mjs";
34
- import B from "./index415.mjs";
35
- var C = {};
36
- C = {
37
- "ar-AE": r,
38
- "bg-BG": o,
39
- "cs-CZ": f,
40
- "da-DK": t,
41
- "de-DE": p,
42
- "el-GR": $,
43
- "en-US": e,
44
- "es-ES": m,
45
- "et-EE": s,
46
- "fi-FI": d,
47
- "fr-FR": c,
48
- "he-IL": i,
49
- "hr-HR": x,
50
- "hu-HU": a,
51
- "it-IT": b,
52
- "ja-JP": R,
53
- "ko-KR": l,
54
- "lt-LT": E,
55
- "lv-LV": S,
56
- "nb-NO": h,
57
- "nl-NL": L,
58
- "pl-PL": T,
59
- "pt-BR": u,
60
- "pt-PT": I,
61
- "ro-RO": P,
62
- "ru-RU": U,
63
- "sk-SK": k,
64
- "sl-SI": n,
65
- "sr-SP": v,
66
- "sv-SE": K,
67
- "tr-TR": N,
68
- "uk-UA": z,
69
- "zh-CN": A,
70
- "zh-TW": B
1
+ function r(e) {
2
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
+ }
4
+ function o(e, n) {
5
+ e === void 0 && (e = {}), n === void 0 && (n = {}), Object.keys(n).forEach((t) => {
6
+ typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
7
+ });
8
+ }
9
+ const u = {
10
+ body: {},
11
+ addEventListener() {
12
+ },
13
+ removeEventListener() {
14
+ },
15
+ activeElement: {
16
+ blur() {
17
+ },
18
+ nodeName: ""
19
+ },
20
+ querySelector() {
21
+ return null;
22
+ },
23
+ querySelectorAll() {
24
+ return [];
25
+ },
26
+ getElementById() {
27
+ return null;
28
+ },
29
+ createEvent() {
30
+ return {
31
+ initEvent() {
32
+ }
33
+ };
34
+ },
35
+ createElement() {
36
+ return {
37
+ children: [],
38
+ childNodes: [],
39
+ style: {},
40
+ setAttribute() {
41
+ },
42
+ getElementsByTagName() {
43
+ return [];
44
+ }
45
+ };
46
+ },
47
+ createElementNS() {
48
+ return {};
49
+ },
50
+ importNode() {
51
+ return null;
52
+ },
53
+ location: {
54
+ hash: "",
55
+ host: "",
56
+ hostname: "",
57
+ href: "",
58
+ origin: "",
59
+ pathname: "",
60
+ protocol: "",
61
+ search: ""
62
+ }
71
63
  };
64
+ function c() {
65
+ const e = typeof document < "u" ? document : {};
66
+ return o(e, u), e;
67
+ }
68
+ const i = {
69
+ document: u,
70
+ navigator: {
71
+ userAgent: ""
72
+ },
73
+ location: {
74
+ hash: "",
75
+ host: "",
76
+ hostname: "",
77
+ href: "",
78
+ origin: "",
79
+ pathname: "",
80
+ protocol: "",
81
+ search: ""
82
+ },
83
+ history: {
84
+ replaceState() {
85
+ },
86
+ pushState() {
87
+ },
88
+ go() {
89
+ },
90
+ back() {
91
+ }
92
+ },
93
+ CustomEvent: function() {
94
+ return this;
95
+ },
96
+ addEventListener() {
97
+ },
98
+ removeEventListener() {
99
+ },
100
+ getComputedStyle() {
101
+ return {
102
+ getPropertyValue() {
103
+ return "";
104
+ }
105
+ };
106
+ },
107
+ Image() {
108
+ },
109
+ Date() {
110
+ },
111
+ screen: {},
112
+ setTimeout() {
113
+ },
114
+ clearTimeout() {
115
+ },
116
+ matchMedia() {
117
+ return {};
118
+ },
119
+ requestAnimationFrame(e) {
120
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
121
+ },
122
+ cancelAnimationFrame(e) {
123
+ typeof setTimeout > "u" || clearTimeout(e);
124
+ }
125
+ };
126
+ function s() {
127
+ const e = typeof window < "u" ? window : {};
128
+ return o(e, i), e;
129
+ }
72
130
  export {
73
- C as default
131
+ s as a,
132
+ c as g
74
133
  };
package/index286.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let o=new WeakMap,n=[];function h(b,c=document.body){let i=new Set(b),a=new Set,u=t=>{for(let l of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(l);let r=l=>{if(i.has(l)||l.parentElement&&a.has(l.parentElement)&&l.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of i)if(l.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r}),E=r(t);if(E===NodeFilter.FILTER_ACCEPT&&f(t),E!==NodeFilter.FILTER_REJECT){let l=e.nextNode();for(;l!=null;)f(l),l=e.nextNode()}},f=t=>{var r;let e=(r=o.get(t))!==null&&r!==void 0?r:0;t.getAttribute("aria-hidden")==="true"&&e===0||(e===0&&t.setAttribute("aria-hidden","true"),a.add(t),o.set(t,e+1))};n.length&&n[n.length-1].disconnect(),u(c);let d=new MutationObserver(t=>{for(let r of t)if(!(r.type!=="childList"||r.addedNodes.length===0)&&![...i,...a].some(e=>e.contains(r.target))){for(let e of r.removedNodes)e instanceof Element&&(i.delete(e),a.delete(e));for(let e of r.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer==="true")?i.add(e):e instanceof Element&&u(e)}});d.observe(c,{childList:!0,subtree:!0});let s={observe(){d.observe(c,{childList:!0,subtree:!0})},disconnect(){d.disconnect()}};return n.push(s),()=>{d.disconnect();for(let t of a){let r=o.get(t);r!=null&&(r===1?(t.removeAttribute("aria-hidden"),o.delete(t)):o.set(t,r-1))}s===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(s),1)}}exports.ariaHideOutside=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index285.js");function y(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function T(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function b(){return Date.now()}function x(e){const t=c.a();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function E(e,t){t===void 0&&(t="x");const n=c.a();let r,i,s;const l=x(e);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}function f(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function M(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!M(r)){const i=Object.keys(Object(r)).filter(s=>t.indexOf(s)<0);for(let s=0,l=i.length;s<l;s+=1){const o=i[s],a=Object.getOwnPropertyDescriptor(r,o);a!==void 0&&a.enumerable&&(f(e[o])&&f(r[o])?r[o].__swiper__?e[o]=r[o]:p(e[o],r[o]):!f(e[o])&&f(r[o])?(e[o]={},r[o].__swiper__?e[o]=r[o]:p(e[o],r[o])):e[o]=r[o])}}}return e}function v(e,t,n){e.style.setProperty(t,n)}function C(e){let{swiper:t,targetPosition:n,side:r}=e;const i=c.a(),s=-t.translate;let l=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const g=n>s?"next":"prev",h=(m,d)=>g==="next"&&m>=d||g==="prev"&&m<=d,w=()=>{o=new Date().getTime(),l===null&&(l=o);const m=Math.max(Math.min((o-l)/a,1),0),d=.5-Math.cos(m*Math.PI)/2;let u=s+d*(n-s);if(h(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),h(u,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(w)};w()}function O(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function P(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function F(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function j(e){try{console.warn(e);return}catch{}}function _(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:y(t)),n}function L(e){const t=c.a(),n=c.g(),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;return{top:r.top+o-s,left:r.left+a-l}}function A(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function k(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function I(e,t){return c.a().getComputedStyle(e,null).getPropertyValue(t)}function W(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function D(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function q(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function H(e,t,n){const r=c.a();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function K(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function R(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}exports.a=D;exports.b=L;exports.c=_;exports.d=b;exports.e=P;exports.f=H;exports.g=O;exports.h=W;exports.i=y;exports.j=E;exports.k=q;exports.l=f;exports.m=K;exports.n=T;exports.o=R;exports.p=I;exports.q=k;exports.r=A;exports.s=v;exports.t=C;exports.u=j;exports.v=F;exports.w=p;exports.x=S;