@okam/stack-ui 1.39.3 → 1.40.0

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 (337) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.d.ts +1 -0
  3. package/index123.js +1 -1
  4. package/index123.mjs +1 -1
  5. package/index125.js +1 -1
  6. package/index125.mjs +2 -2
  7. package/index126.js +1 -1
  8. package/index126.mjs +1 -1
  9. package/index133.js +1 -1
  10. package/index133.mjs +4 -4
  11. package/index134.js +1 -1
  12. package/index134.mjs +2 -2
  13. package/index135.js +1 -1
  14. package/index135.mjs +1 -1
  15. package/index136.js +1 -1
  16. package/index136.mjs +1 -1
  17. package/index137.js +1 -1
  18. package/index137.mjs +3 -3
  19. package/index141.js +1 -1
  20. package/index141.mjs +2 -2
  21. package/index143.js +1 -1
  22. package/index143.mjs +2 -2
  23. package/index144.js +1 -1
  24. package/index144.mjs +5 -5
  25. package/index145.js +1 -1
  26. package/index145.mjs +3 -3
  27. package/index146.js +1 -1
  28. package/index146.mjs +9 -9
  29. package/index152.js +1 -1
  30. package/index152.mjs +2 -2
  31. package/index156.js +1 -1
  32. package/index156.mjs +1 -1
  33. package/index158.js +1 -1
  34. package/index158.mjs +1 -1
  35. package/index159.js +1 -1
  36. package/index159.mjs +1 -1
  37. package/index161.js +1 -1
  38. package/index161.mjs +3 -3
  39. package/index162.js +1 -1
  40. package/index162.mjs +12 -46
  41. package/index163.js +1 -2
  42. package/index163.mjs +46 -13
  43. package/index164.js +1 -1
  44. package/index164.mjs +11 -29
  45. package/index165.js +2 -1
  46. package/index165.mjs +30 -11
  47. package/index168.js +1 -1
  48. package/index168.mjs +1 -1
  49. package/index169.js +1 -1
  50. package/index169.mjs +120 -198
  51. package/index170.js +1 -1
  52. package/index170.mjs +27 -64
  53. package/index171.js +1 -1
  54. package/index171.mjs +70 -140
  55. package/index172.js +1 -1
  56. package/index172.mjs +373 -116
  57. package/index173.js +1 -1
  58. package/index173.mjs +44 -222
  59. package/index174.js +1 -1
  60. package/index174.mjs +4 -191
  61. package/index175.js +1 -1
  62. package/index175.mjs +21 -66
  63. package/index176.js +1 -1
  64. package/index176.mjs +46 -278
  65. package/index177.js +1 -1
  66. package/index177.mjs +4 -97
  67. package/index178.js +1 -1
  68. package/index178.mjs +24 -188
  69. package/index179.js +1 -1
  70. package/index179.mjs +12 -84
  71. package/index180.js +1 -1
  72. package/index180.mjs +4 -58
  73. package/index181.js +1 -1
  74. package/index181.mjs +14 -126
  75. package/index182.js +1 -1
  76. package/index182.mjs +38 -112
  77. package/index183.js +1 -1
  78. package/index183.mjs +55 -120
  79. package/index184.js +1 -1
  80. package/index184.mjs +41 -72
  81. package/index185.js +1 -1
  82. package/index185.mjs +25 -107
  83. package/index186.js +1 -1
  84. package/index186.mjs +31 -52
  85. package/index187.js +1 -1
  86. package/index187.mjs +13 -92
  87. package/index188.js +1 -1
  88. package/index188.mjs +10 -70
  89. package/index189.js +1 -1
  90. package/index189.mjs +27 -55
  91. package/index190.js +1 -1
  92. package/index190.mjs +8 -98
  93. package/index191.js +1 -5
  94. package/index191.mjs +6 -80
  95. package/index192.js +1 -1
  96. package/index192.mjs +5 -2025
  97. package/index193.js +1 -1
  98. package/index193.mjs +7 -59
  99. package/index194.js +1 -1
  100. package/index194.mjs +27 -186
  101. package/index195.js +1 -1
  102. package/index195.mjs +15 -122
  103. package/index196.js +1 -1
  104. package/index196.mjs +12 -26
  105. package/index197.js +1 -1
  106. package/index197.mjs +40 -70
  107. package/index198.js +1 -1
  108. package/index198.mjs +7 -380
  109. package/index199.js +1 -1
  110. package/index199.mjs +16 -45
  111. package/index200.js +1 -1
  112. package/index200.mjs +3 -4
  113. package/index201.js +1 -1
  114. package/index201.mjs +4 -24
  115. package/index202.js +1 -1
  116. package/index202.mjs +19 -47
  117. package/index203.js +1 -1
  118. package/index203.mjs +53 -4
  119. package/index204.js +1 -1
  120. package/index204.mjs +123 -23
  121. package/index205.js +1 -1
  122. package/index205.mjs +133 -11
  123. package/index206.js +1 -1
  124. package/index206.mjs +44 -4
  125. package/index207.js +1 -1
  126. package/index207.mjs +13 -13
  127. package/index208.js +1 -1
  128. package/index208.mjs +92 -39
  129. package/index209.js +1 -1
  130. package/index209.mjs +102 -53
  131. package/index210.js +1 -1
  132. package/index210.mjs +4 -41
  133. package/index211.js +1 -1
  134. package/index211.mjs +3 -28
  135. package/index212.js +1 -1
  136. package/index212.mjs +125 -31
  137. package/index213.js +1 -1
  138. package/index213.mjs +29 -14
  139. package/index214.js +1 -1
  140. package/index214.mjs +51 -10
  141. package/index215.js +1 -1
  142. package/index215.mjs +44 -28
  143. package/index216.js +1 -1
  144. package/index216.mjs +37 -9
  145. package/index217.js +1 -1
  146. package/index217.mjs +113 -6
  147. package/index218.js +1 -1
  148. package/index218.mjs +77 -5
  149. package/index219.js +1 -1
  150. package/index219.mjs +101 -7
  151. package/index220.js +1 -1
  152. package/index220.mjs +98 -30
  153. package/index221.js +1 -1
  154. package/index221.mjs +137 -15
  155. package/index222.js +1 -1
  156. package/index222.mjs +197 -13
  157. package/index223.js +1 -1
  158. package/index223.mjs +22 -43
  159. package/index224.js +1 -1
  160. package/index224.mjs +49 -8
  161. package/index225.js +1 -1
  162. package/index225.mjs +45 -14
  163. package/index226.js +1 -1
  164. package/index226.mjs +98 -3
  165. package/index227.js +1 -1
  166. package/index227.mjs +72 -5
  167. package/index228.js +1 -1
  168. package/index228.mjs +68 -19
  169. package/index229.js +1 -1
  170. package/index229.mjs +7 -54
  171. package/index230.js +1 -1
  172. package/index230.mjs +10 -123
  173. package/index231.js +1 -1
  174. package/index231.mjs +198 -129
  175. package/index232.js +1 -1
  176. package/index232.mjs +63 -43
  177. package/index233.js +1 -1
  178. package/index233.mjs +143 -14
  179. package/index234.js +1 -1
  180. package/index234.mjs +117 -88
  181. package/index235.js +1 -1
  182. package/index235.mjs +220 -102
  183. package/index236.js +1 -1
  184. package/index236.mjs +190 -4
  185. package/index237.js +1 -1
  186. package/index237.mjs +69 -3
  187. package/index238.js +1 -1
  188. package/index238.mjs +269 -115
  189. package/index239.js +1 -1
  190. package/index239.mjs +93 -24
  191. package/index240.js +1 -1
  192. package/index240.mjs +180 -43
  193. package/index241.js +1 -1
  194. package/index241.mjs +84 -44
  195. package/index242.js +1 -1
  196. package/index242.mjs +57 -36
  197. package/index243.js +1 -1
  198. package/index243.mjs +122 -109
  199. package/index244.js +1 -1
  200. package/index244.mjs +113 -74
  201. package/index245.js +1 -1
  202. package/index245.mjs +122 -101
  203. package/index246.js +1 -1
  204. package/index246.mjs +73 -98
  205. package/index247.js +1 -1
  206. package/index247.mjs +107 -137
  207. package/index248.js +1 -1
  208. package/index248.mjs +52 -197
  209. package/index249.js +1 -1
  210. package/index249.mjs +93 -22
  211. package/index250.js +1 -1
  212. package/index250.mjs +67 -46
  213. package/index251.js +1 -1
  214. package/index251.mjs +55 -47
  215. package/index252.js +1 -1
  216. package/index252.mjs +98 -96
  217. package/index253.js +5 -1
  218. package/index253.mjs +81 -72
  219. package/index254.js +1 -1
  220. package/index254.mjs +2015 -58
  221. package/index255.js +1 -1
  222. package/index255.mjs +59 -7
  223. package/index256.js +1 -1
  224. package/index256.mjs +187 -10
  225. package/index258.js +1 -1
  226. package/index258.mjs +3 -3
  227. package/index260.js +1 -1
  228. package/index260.mjs +8 -8
  229. package/index261.js +1 -1
  230. package/index261.mjs +1 -1
  231. package/index262.js +1 -1
  232. package/index262.mjs +3 -130
  233. package/index263.js +1 -1
  234. package/index263.mjs +4 -190
  235. package/index264.js +1 -1
  236. package/index264.mjs +5 -10
  237. package/index265.js +1 -1
  238. package/index265.mjs +5 -4
  239. package/index266.js +1 -1
  240. package/index266.mjs +5 -37
  241. package/index267.js +1 -1
  242. package/index267.mjs +5 -6
  243. package/index268.js +1 -1
  244. package/index268.mjs +5 -30
  245. package/index269.js +1 -1
  246. package/index269.mjs +5 -7
  247. package/index270.js +1 -1
  248. package/index270.mjs +5 -4
  249. package/index271.js +1 -1
  250. package/index271.mjs +5 -5
  251. package/index272.js +1 -1
  252. package/index272.mjs +4 -4
  253. package/index273.js +1 -1
  254. package/index273.mjs +4 -4
  255. package/index274.js +1 -1
  256. package/index274.mjs +1 -1
  257. package/index275.js +1 -1
  258. package/index275.mjs +4 -4
  259. package/index276.js +1 -1
  260. package/index276.mjs +4 -4
  261. package/index277.js +1 -1
  262. package/index277.mjs +4 -4
  263. package/index278.js +1 -1
  264. package/index278.mjs +1 -1
  265. package/index279.js +1 -1
  266. package/index279.mjs +4 -4
  267. package/index280.js +1 -1
  268. package/index280.mjs +4 -4
  269. package/index281.js +1 -1
  270. package/index281.mjs +4 -4
  271. package/index282.js +1 -1
  272. package/index282.mjs +1 -1
  273. package/index283.js +1 -1
  274. package/index283.mjs +4 -4
  275. package/index284.js +1 -1
  276. package/index284.mjs +4 -4
  277. package/index285.js +1 -1
  278. package/index285.mjs +4 -4
  279. package/index286.js +1 -1
  280. package/index286.mjs +4 -4
  281. package/index287.js +1 -1
  282. package/index287.mjs +4 -4
  283. package/index288.js +1 -1
  284. package/index288.mjs +4 -4
  285. package/index289.js +1 -1
  286. package/index289.mjs +4 -4
  287. package/index290.js +1 -1
  288. package/index290.mjs +4 -4
  289. package/index291.js +1 -1
  290. package/index291.mjs +1 -1
  291. package/index292.js +1 -1
  292. package/index292.mjs +4 -4
  293. package/index293.js +1 -1
  294. package/index293.mjs +4 -4
  295. package/index294.js +1 -1
  296. package/index294.mjs +1 -1
  297. package/index295.js +1 -1
  298. package/index295.mjs +4 -4
  299. package/index296.js +1 -1
  300. package/index296.mjs +4 -4
  301. package/index297.js +1 -1
  302. package/index297.mjs +4 -4
  303. package/index298.js +1 -1
  304. package/index298.mjs +130 -4
  305. package/index299.js +1 -1
  306. package/index299.mjs +191 -5
  307. package/index300.js +1 -1
  308. package/index300.mjs +10 -5
  309. package/index301.js +1 -1
  310. package/index301.mjs +4 -5
  311. package/index302.js +1 -1
  312. package/index302.mjs +37 -5
  313. package/index303.js +1 -1
  314. package/index303.mjs +6 -5
  315. package/index304.js +1 -1
  316. package/index304.mjs +30 -5
  317. package/index305.js +1 -1
  318. package/index305.mjs +7 -5
  319. package/index306.js +1 -1
  320. package/index306.mjs +3 -3
  321. package/index308.js +1 -1
  322. package/index308.mjs +2 -2
  323. package/index309.js +1 -1
  324. package/index309.mjs +5 -5
  325. package/index312.js +1 -1
  326. package/index312.mjs +3 -3
  327. package/index315.js +1 -1
  328. package/index315.mjs +5 -5
  329. package/index316.js +1 -1
  330. package/index316.mjs +1 -1
  331. package/index317.js +1 -1
  332. package/index317.mjs +4 -4
  333. package/index318.js +1 -1
  334. package/index318.mjs +1 -1
  335. package/index322.js +1 -1
  336. package/index322.mjs +1 -1
  337. package/package.json +1 -1
package/index303.mjs CHANGED
@@ -1,7 +1,8 @@
1
- var u = {};
2
- u = {
3
- dismiss: "Скасувати"
4
- };
1
+ import { g as i } from "./index299.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;
5
+ }
5
6
  export {
6
- u as default
7
+ r as e
7
8
  };
package/index304.js CHANGED
@@ -1 +1 @@
1
- "use strict";exports.default={};exports.default={dismiss:"取消"};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index299.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/index304.mjs CHANGED
@@ -1,7 +1,32 @@
1
- var d = {};
2
- d = {
3
- dismiss: "取消"
4
- };
1
+ import { k as f } from "./index299.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
+ });
28
+ }
29
+ }
5
30
  export {
6
- d as default
31
+ p as e
7
32
  };
package/index305.js CHANGED
@@ -1 +1 @@
1
- "use strict";exports.default={};exports.default={dismiss:"關閉"};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index299.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/index305.mjs CHANGED
@@ -1,7 +1,9 @@
1
- var s = {};
2
- s = {
3
- dismiss: "關閉"
4
- };
1
+ import { g as i, c as l } from "./index299.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;
6
+ }
5
7
  export {
6
- s as default
8
+ d as c
7
9
  };
package/index306.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index309.js"),u=require("./index205.js"),m=require("./index210.js"),L=require("./index224.js");require("react");let f=null,y=new Set,a=new Map,i=!1,c=!1;function d(e,n){for(let t of y)t(e,n)}function g(e){return!(e.metaKey||!m.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function s(e){i=!0,g(e)&&(f="keyboard",d("keyboard",e))}function o(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,d("pointer",e))}function b(e){L.isVirtualClick(e)&&(i=!0,f="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!i&&!c&&(f="virtual",d("virtual",e)),i=!1,c=!1)}function E(){l.ignoreFocusEvent||(i=!1,c=!0)}function v(e){if(typeof window>"u"||a.get(u.getOwnerWindow(e)))return;const n=u.getOwnerWindow(e),t=u.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){i=!0,r.apply(this,arguments)},t.addEventListener("keydown",s,!0),t.addEventListener("keyup",s,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),a.set(n,{focus:r})}const p=(e,n)=>{const t=u.getOwnerWindow(e),r=u.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),a.has(t)&&(t.HTMLElement.prototype.focus=a.get(t).focus,r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",s,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),a.delete(t))};function w(e){const n=u.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function O(){return f}function k(e){f=e,d(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=O;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index309.js"),u=require("./index179.js"),m=require("./index184.js"),L=require("./index198.js");require("react");let f=null,y=new Set,a=new Map,i=!1,c=!1;function d(e,n){for(let t of y)t(e,n)}function g(e){return!(e.metaKey||!m.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function s(e){i=!0,g(e)&&(f="keyboard",d("keyboard",e))}function o(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,d("pointer",e))}function b(e){L.isVirtualClick(e)&&(i=!0,f="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!i&&!c&&(f="virtual",d("virtual",e)),i=!1,c=!1)}function E(){l.ignoreFocusEvent||(i=!1,c=!0)}function v(e){if(typeof window>"u"||a.get(u.getOwnerWindow(e)))return;const n=u.getOwnerWindow(e),t=u.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){i=!0,r.apply(this,arguments)},t.addEventListener("keydown",s,!0),t.addEventListener("keyup",s,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),a.set(n,{focus:r})}const p=(e,n)=>{const t=u.getOwnerWindow(e),r=u.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),a.has(t)&&(t.HTMLElement.prototype.focus=a.get(t).focus,r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",s,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),a.delete(t))};function w(e){const n=u.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function O(){return f}function k(e){f=e,d(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=O;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=k;
package/index306.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ignoreFocusEvent as b } from "./index309.mjs";
2
- import { getOwnerDocument as v, getOwnerWindow as s } from "./index205.mjs";
3
- import { isMac as L } from "./index210.mjs";
4
- import { isVirtualClick as y } from "./index224.mjs";
2
+ import { getOwnerDocument as v, getOwnerWindow as s } from "./index179.mjs";
3
+ import { isMac as L } from "./index184.mjs";
4
+ import { isVirtualClick as y } from "./index198.mjs";
5
5
  import "react";
6
6
  let f = null, w = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
7
7
  function u(e, n) {
package/index308.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index309.js"),a=require("react"),r=require("./index204.js"),F=require("./index205.js");function v(l){let{isDisabled:u,onFocus:o,onBlur:n,onFocusChange:t}=l;const c=a.useCallback(e=>{if(e.target===e.currentTarget)return n&&n(e),t&&t(!1),!0},[n,t]),s=g.useSyntheticBlurEvent(c),d=a.useCallback(e=>{const i=F.getOwnerDocument(e.target),f=i?r.getActiveElement(i):r.getActiveElement();e.target===e.currentTarget&&f===r.getEventTarget(e.nativeEvent)&&(o&&o(e),t&&t(!0),s(e))},[t,o,s]);return{focusProps:{onFocus:!u&&(o||t||n)?d:void 0,onBlur:!u&&(n||t)?c:void 0}}}exports.useFocus=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index309.js"),a=require("react"),r=require("./index178.js"),F=require("./index179.js");function v(l){let{isDisabled:u,onFocus:o,onBlur:n,onFocusChange:t}=l;const c=a.useCallback(e=>{if(e.target===e.currentTarget)return n&&n(e),t&&t(!1),!0},[n,t]),s=g.useSyntheticBlurEvent(c),d=a.useCallback(e=>{const i=F.getOwnerDocument(e.target),f=i?r.getActiveElement(i):r.getActiveElement();e.target===e.currentTarget&&f===r.getEventTarget(e.nativeEvent)&&(o&&o(e),t&&t(!0),s(e))},[t,o,s]);return{focusProps:{onFocus:!u&&(o||t||n)?d:void 0,onBlur:!u&&(n||t)?c:void 0}}}exports.useFocus=v;
package/index308.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useSyntheticBlurEvent as l } from "./index309.mjs";
2
2
  import { useCallback as u } from "react";
3
- import { getActiveElement as a, getEventTarget as p } from "./index204.mjs";
4
- import { getOwnerDocument as m } from "./index205.mjs";
3
+ import { getActiveElement as a, getEventTarget as p } from "./index178.mjs";
4
+ import { getOwnerDocument as m } from "./index179.mjs";
5
5
  function x(d) {
6
6
  let { isDisabled: r, onFocus: n, onBlur: o, onFocusChange: t } = d;
7
7
  const c = u((e) => {
package/index309.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index205.js"),l=require("./index208.js"),E=require("./index200.js"),m=require("./index222.js"),p=require("./index228.js"),d=require("react");function f(r){let e=r;return e.nativeEvent=r,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function g(r,e){Object.defineProperty(r,"target",{value:e}),Object.defineProperty(r,"currentTarget",{value:e})}function F(r){let e=d.useRef({isFocused:!1,observer:null});E.useLayoutEffect(()=>{const t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let u=m.useEffectEvent(t=>{r==null||r(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=t.target,s=c=>{if(e.current.isFocused=!1,o.disabled){let i=f(c);u(i)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[u])}exports.ignoreFocusEvent=!1;function L(r){for(;r&&!p.isFocusable(r);)r=r.parentElement;let e=b.getOwnerWindow(r),u=e.document.activeElement;if(!u||u===r)return;exports.ignoreFocusEvent=!0;let t=!1,o=n=>{(n.target===u||t)&&n.stopImmediatePropagation()},s=n=>{(n.target===u||t)&&(n.stopImmediatePropagation(),!r&&!t&&(t=!0,l.focusWithoutScrolling(u),a()))},c=n=>{(n.target===r||t)&&n.stopImmediatePropagation()},i=n=>{(n.target===r||t)&&(n.stopImmediatePropagation(),t||(t=!0,l.focusWithoutScrolling(u),a()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",s,!0),e.addEventListener("focusin",i,!0),e.addEventListener("focus",c,!0);let a=()=>{cancelAnimationFrame(v),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",s,!0),e.removeEventListener("focusin",i,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,t=!1},v=requestAnimationFrame(a);return a}exports.createSyntheticEvent=f;exports.preventFocus=L;exports.setEventTarget=g;exports.useSyntheticBlurEvent=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index179.js"),l=require("./index182.js"),E=require("./index174.js"),m=require("./index196.js"),p=require("./index202.js"),d=require("react");function f(r){let e=r;return e.nativeEvent=r,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function g(r,e){Object.defineProperty(r,"target",{value:e}),Object.defineProperty(r,"currentTarget",{value:e})}function F(r){let e=d.useRef({isFocused:!1,observer:null});E.useLayoutEffect(()=>{const t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let u=m.useEffectEvent(t=>{r==null||r(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=t.target,s=c=>{if(e.current.isFocused=!1,o.disabled){let i=f(c);u(i)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[u])}exports.ignoreFocusEvent=!1;function L(r){for(;r&&!p.isFocusable(r);)r=r.parentElement;let e=b.getOwnerWindow(r),u=e.document.activeElement;if(!u||u===r)return;exports.ignoreFocusEvent=!0;let t=!1,o=n=>{(n.target===u||t)&&n.stopImmediatePropagation()},s=n=>{(n.target===u||t)&&(n.stopImmediatePropagation(),!r&&!t&&(t=!0,l.focusWithoutScrolling(u),a()))},c=n=>{(n.target===r||t)&&n.stopImmediatePropagation()},i=n=>{(n.target===r||t)&&(n.stopImmediatePropagation(),t||(t=!0,l.focusWithoutScrolling(u),a()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",s,!0),e.addEventListener("focusin",i,!0),e.addEventListener("focus",c,!0);let a=()=>{cancelAnimationFrame(v),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",s,!0),e.removeEventListener("focusin",i,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,t=!1},v=requestAnimationFrame(a);return a}exports.createSyntheticEvent=f;exports.preventFocus=L;exports.setEventTarget=g;exports.useSyntheticBlurEvent=F;
package/index309.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { getOwnerWindow as b } from "./index205.mjs";
2
- import { focusWithoutScrolling as l } from "./index208.mjs";
3
- import { useLayoutEffect as v } from "./index200.mjs";
4
- import { useEffectEvent as m } from "./index222.mjs";
5
- import { isFocusable as p } from "./index228.mjs";
1
+ import { getOwnerWindow as b } from "./index179.mjs";
2
+ import { focusWithoutScrolling as l } from "./index182.mjs";
3
+ import { useLayoutEffect as v } from "./index174.mjs";
4
+ import { useEffectEvent as m } from "./index196.mjs";
5
+ import { isFocusable as p } from "./index202.mjs";
6
6
  import { useRef as E, useCallback as $ } from "react";
7
7
  function g(r) {
8
8
  let e = r;
package/index312.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index205.js"),r=require("./index211.js"),c=require("./index210.js");let n="default",s="",l=new WeakMap;function u(e){if(c.isIOS()){if(n==="default"){const t=o.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";l.set(e,e.style[t]),e.style[t]="none"}}function d(e){if(c.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{r.runAfterTransition(()=>{if(n==="restoring"){const t=o.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e),i="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[i]==="none"&&(e.style[i]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=u;exports.restoreTextSelection=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index179.js"),r=require("./index185.js"),c=require("./index184.js");let n="default",s="",l=new WeakMap;function u(e){if(c.isIOS()){if(n==="default"){const t=o.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";l.set(e,e.style[t]),e.style[t]="none"}}function d(e){if(c.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{r.runAfterTransition(()=>{if(n==="restoring"){const t=o.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e),i="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[i]==="none"&&(e.style[i]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=u;exports.restoreTextSelection=d;
package/index312.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { getOwnerDocument as i } from "./index205.mjs";
2
- import { runAfterTransition as f } from "./index211.mjs";
3
- import { isIOS as o } from "./index210.mjs";
1
+ import { getOwnerDocument as i } from "./index179.mjs";
2
+ import { runAfterTransition as f } from "./index185.mjs";
3
+ import { isIOS as o } from "./index184.mjs";
4
4
  let l = "default", s = "", n = /* @__PURE__ */ new WeakMap();
5
5
  function m(e) {
6
6
  if (o()) {
package/index315.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index198.js"),f=require("./index205.js"),m=require("./index134.js"),L=require("./index208.js"),y=require("./index212.js"),D=require("./index220.js"),T=require("react"),h=500;function v(c){let{isDisabled:s,onLongPressStart:n,onLongPressEnd:o,onLongPress:r,threshold:l=h,accessibilityDescription:p}=c;const t=T.useRef(void 0);let{addGlobalListener:i,removeGlobalListener:a}=y.useGlobalListeners(),{pressProps:d}=b.usePress({isDisabled:s,onPressStart(e){if(e.continuePropagation(),(e.pointerType==="mouse"||e.pointerType==="touch")&&(n&&n({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),f.getOwnerDocument(e.target).activeElement!==e.target&&L.focusWithoutScrolling(e.target),r&&r({...e,type:"longpress"}),t.current=void 0},l),e.pointerType==="touch")){let u=P=>{P.preventDefault()};i(e.target,"contextmenu",u,{once:!0}),i(window,"pointerup",()=>{setTimeout(()=>{a(e.target,"contextmenu",u)},30)},{once:!0})}},onPressEnd(e){t.current&&clearTimeout(t.current),o&&(e.pointerType==="mouse"||e.pointerType==="touch")&&o({...e,type:"longpressend"})}}),g=D.useDescription(r&&!s?p:void 0);return{longPressProps:m.mergeProps(d,g)}}exports.useLongPress=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index172.js"),f=require("./index179.js"),m=require("./index134.js"),L=require("./index182.js"),y=require("./index186.js"),D=require("./index194.js"),T=require("react"),h=500;function v(c){let{isDisabled:s,onLongPressStart:n,onLongPressEnd:o,onLongPress:r,threshold:l=h,accessibilityDescription:p}=c;const t=T.useRef(void 0);let{addGlobalListener:i,removeGlobalListener:a}=y.useGlobalListeners(),{pressProps:d}=b.usePress({isDisabled:s,onPressStart(e){if(e.continuePropagation(),(e.pointerType==="mouse"||e.pointerType==="touch")&&(n&&n({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),f.getOwnerDocument(e.target).activeElement!==e.target&&L.focusWithoutScrolling(e.target),r&&r({...e,type:"longpress"}),t.current=void 0},l),e.pointerType==="touch")){let u=P=>{P.preventDefault()};i(e.target,"contextmenu",u,{once:!0}),i(window,"pointerup",()=>{setTimeout(()=>{a(e.target,"contextmenu",u)},30)},{once:!0})}},onPressEnd(e){t.current&&clearTimeout(t.current),o&&(e.pointerType==="mouse"||e.pointerType==="touch")&&o({...e,type:"longpressend"})}}),g=D.useDescription(r&&!s?p:void 0);return{longPressProps:m.mergeProps(d,g)}}exports.useLongPress=v;
package/index315.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { usePress as $ } from "./index198.mjs";
2
- import { getOwnerDocument as b } from "./index205.mjs";
1
+ import { usePress as $ } from "./index172.mjs";
2
+ import { getOwnerDocument as b } from "./index179.mjs";
3
3
  import { mergeProps as g } from "./index134.mjs";
4
- import { focusWithoutScrolling as P } from "./index208.mjs";
5
- import { useGlobalListeners as L } from "./index212.mjs";
6
- import { useDescription as x } from "./index220.mjs";
4
+ import { focusWithoutScrolling as P } from "./index182.mjs";
5
+ import { useGlobalListeners as L } from "./index186.mjs";
6
+ import { useDescription as x } from "./index194.mjs";
7
7
  import { useRef as y } from "react";
8
8
  const D = 500;
9
9
  function R(p) {
package/index316.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index317.js"),d=require("./index308.js"),P=require("./index310.js"),n=require("./index134.js"),x=require("./index216.js"),r=require("react");let a=r.createContext(null);function y(e){let t=r.useContext(a)||{};x.useSyncRef(t,e);let{ref:u,...o}=t;return o}function $(e,t){let{focusProps:u}=d.useFocus(e),{keyboardProps:o}=P.useKeyboard(e),f=n.mergeProps(u,o),l=y(t),i=e.isDisabled?{}:l,s=r.useRef(e.autoFocus);r.useEffect(()=>{s.current&&t.current&&b.focusSafely(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:n.mergeProps({...f,tabIndex:c},i)}}exports.FocusableContext=a;exports.useFocusable=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index317.js"),d=require("./index308.js"),P=require("./index310.js"),n=require("./index134.js"),x=require("./index190.js"),r=require("react");let a=r.createContext(null);function y(e){let t=r.useContext(a)||{};x.useSyncRef(t,e);let{ref:u,...o}=t;return o}function $(e,t){let{focusProps:u}=d.useFocus(e),{keyboardProps:o}=P.useKeyboard(e),f=n.mergeProps(u,o),l=y(t),i=e.isDisabled?{}:l,s=r.useRef(e.autoFocus);r.useEffect(()=>{s.current&&t.current&&b.focusSafely(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:n.mergeProps({...f,tabIndex:c},i)}}exports.FocusableContext=a;exports.useFocusable=$;
package/index316.mjs CHANGED
@@ -2,7 +2,7 @@ import { focusSafely as d } from "./index317.mjs";
2
2
  import { useFocus as n } from "./index308.mjs";
3
3
  import { useKeyboard as $ } from "./index310.mjs";
4
4
  import { mergeProps as c } from "./index134.mjs";
5
- import { useSyncRef as l } from "./index216.mjs";
5
+ import { useSyncRef as l } from "./index190.mjs";
6
6
  import i, { useRef as x, useEffect as p, useContext as m } from "react";
7
7
  let P = /* @__PURE__ */ i.createContext(null);
8
8
  function F(e) {
package/index317.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index306.js"),o=require("./index204.js"),u=require("./index205.js"),i=require("./index208.js"),s=require("./index211.js");function l(e){const t=u.getOwnerDocument(e),n=o.getActiveElement(t);if(r.getInteractionModality()==="virtual"){let c=n;s.runAfterTransition(()=>{o.getActiveElement(t)===c&&e.isConnected&&i.focusWithoutScrolling(e)})}else i.focusWithoutScrolling(e)}exports.focusSafely=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index306.js"),o=require("./index178.js"),u=require("./index179.js"),i=require("./index182.js"),s=require("./index185.js");function l(e){const t=u.getOwnerDocument(e),n=o.getActiveElement(t);if(r.getInteractionModality()==="virtual"){let c=n;s.runAfterTransition(()=>{o.getActiveElement(t)===c&&e.isConnected&&i.focusWithoutScrolling(e)})}else i.focusWithoutScrolling(e)}exports.focusSafely=l;
package/index317.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getInteractionModality as a } from "./index306.mjs";
2
- import { getActiveElement as o } from "./index204.mjs";
3
- import { getOwnerDocument as i } from "./index205.mjs";
4
- import { focusWithoutScrolling as f } from "./index208.mjs";
5
- import { runAfterTransition as $ } from "./index211.mjs";
2
+ import { getActiveElement as o } from "./index178.mjs";
3
+ import { getOwnerDocument as i } from "./index179.mjs";
4
+ import { focusWithoutScrolling as f } from "./index182.mjs";
5
+ import { runAfterTransition as $ } from "./index185.mjs";
6
6
  function p(e) {
7
7
  const t = i(e), c = o(t);
8
8
  if (a() === "virtual") {
package/index318.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index161.js"),i=require("./index210.js");function u(e){return i.isAppleDevice()?e.altKey:e.ctrlKey}function a(e,t){var o,f;let r=`[data-key="${CSS.escape(String(t))}"]`,n=(o=e.current)===null||o===void 0?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(f=e.current)===null||f===void 0?void 0:f.querySelector(r)}const c=new WeakMap;function d(e){let t=l.useId();return c.set(e,t),t}function $(e){return c.get(e)}exports.getCollectionId=$;exports.getItemElement=a;exports.isNonContiguousSelectionModifier=u;exports.useCollectionId=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index161.js"),i=require("./index184.js");function u(e){return i.isAppleDevice()?e.altKey:e.ctrlKey}function a(e,t){var o,f;let r=`[data-key="${CSS.escape(String(t))}"]`,n=(o=e.current)===null||o===void 0?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(f=e.current)===null||f===void 0?void 0:f.querySelector(r)}const c=new WeakMap;function d(e){let t=l.useId();return c.set(e,t),t}function $(e){return c.get(e)}exports.getCollectionId=$;exports.getItemElement=a;exports.isNonContiguousSelectionModifier=u;exports.useCollectionId=d;
package/index318.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useId as l } from "./index161.mjs";
2
- import { isAppleDevice as a } from "./index210.mjs";
2
+ import { isAppleDevice as a } from "./index184.mjs";
3
3
  function d(e) {
4
4
  return a() ? e.altKey : e.ctrlKey;
5
5
  }
package/index322.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index328.js"),F=require("./index196.js"),t=require("react");function M(e,o){if(e.size!==o.size)return!1;for(let c of e)if(!o.has(c))return!1;return!0}function R(e){let{selectionMode:o="none",disallowEmptySelection:c=!1,allowDuplicateSelectionEvents:K,selectionBehavior:s="toggle",disabledBehavior:b="all"}=e,r=t.useRef(!1),[,v]=t.useState(!1),u=t.useRef(null),a=t.useRef(null),[,h]=t.useState(null),g=t.useMemo(()=>S(e.selectedKeys),[e.selectedKeys]),w=t.useMemo(()=>S(e.defaultSelectedKeys,new y.Selection),[e.defaultSelectedKeys]),[i,B]=F.useControlledState(g,w,e.onSelectionChange),$=t.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[d,n]=t.useState(s);s==="replace"&&d==="toggle"&&typeof i=="object"&&i.size===0&&n("replace");let f=t.useRef(s);return t.useEffect(()=>{s!==f.current&&(n(s),f.current=s)},[s]),{selectionMode:o,disallowEmptySelection:c,selectionBehavior:d,setSelectionBehavior:n,get isFocused(){return r.current},setFocused(l){r.current=l,v(l)},get focusedKey(){return u.current},get childFocusStrategy(){return a.current},setFocusedKey(l,m="first"){u.current=l,a.current=m,h(l)},selectedKeys:i,setSelectedKeys(l){(K||!M(l,i))&&B(l)},disabledKeys:$,disabledBehavior:b}}function S(e,o){return e?e==="all"?"all":new y.Selection(e):o}exports.useMultipleSelectionState=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index328.js"),F=require("./index170.js"),t=require("react");function M(e,o){if(e.size!==o.size)return!1;for(let c of e)if(!o.has(c))return!1;return!0}function R(e){let{selectionMode:o="none",disallowEmptySelection:c=!1,allowDuplicateSelectionEvents:K,selectionBehavior:s="toggle",disabledBehavior:b="all"}=e,r=t.useRef(!1),[,v]=t.useState(!1),u=t.useRef(null),a=t.useRef(null),[,h]=t.useState(null),g=t.useMemo(()=>S(e.selectedKeys),[e.selectedKeys]),w=t.useMemo(()=>S(e.defaultSelectedKeys,new y.Selection),[e.defaultSelectedKeys]),[i,B]=F.useControlledState(g,w,e.onSelectionChange),$=t.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[d,n]=t.useState(s);s==="replace"&&d==="toggle"&&typeof i=="object"&&i.size===0&&n("replace");let f=t.useRef(s);return t.useEffect(()=>{s!==f.current&&(n(s),f.current=s)},[s]),{selectionMode:o,disallowEmptySelection:c,selectionBehavior:d,setSelectionBehavior:n,get isFocused(){return r.current},setFocused(l){r.current=l,v(l)},get focusedKey(){return u.current},get childFocusStrategy(){return a.current},setFocusedKey(l,m="first"){u.current=l,a.current=m,h(l)},selectedKeys:i,setSelectedKeys(l){(K||!M(l,i))&&B(l)},disabledKeys:$,disabledBehavior:b}}function S(e,o){return e?e==="all"?"all":new y.Selection(e):o}exports.useMultipleSelectionState=R;
package/index322.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Selection as K } from "./index328.mjs";
2
- import { useControlledState as M } from "./index196.mjs";
2
+ import { useControlledState as M } from "./index170.mjs";
3
3
  import { useRef as a, useState as r, useMemo as n, useEffect as x } from "react";
4
4
  function R(e, s) {
5
5
  if (e.size !== s.size) return !1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.39.3",
4
+ "version": "1.40.0",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {