@a-ui/react 7.13.0-beta.3 → 7.13.0-beta.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 (452) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -5
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -2
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -10
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +2 -1
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -5
  21. package/cjs/index118.js +1 -9
  22. package/cjs/index119.js +10 -1
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -1
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +5 -1
  31. package/cjs/index127.js +9 -1
  32. package/cjs/index128.js +1 -1
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -1
  41. package/cjs/index136.js +1 -1
  42. package/cjs/index138.js +6 -9
  43. package/cjs/index139.js +8 -1
  44. package/cjs/index14.js +1 -1
  45. package/cjs/index140.js +5 -1
  46. package/cjs/index141.js +1 -1
  47. package/cjs/index142.js +1 -8
  48. package/cjs/index143.js +1 -8
  49. package/cjs/index144.js +1 -5
  50. package/cjs/index145.js +11 -1
  51. package/cjs/index146.js +1 -1
  52. package/cjs/index147.js +1 -1
  53. package/cjs/index148.js +1 -1
  54. package/cjs/index149.js +1 -1
  55. package/cjs/index150.js +1 -1
  56. package/cjs/index151.js +1 -1
  57. package/cjs/index152.js +1 -1
  58. package/cjs/index153.js +1 -1
  59. package/cjs/index154.js +1 -1
  60. package/cjs/index155.js +1 -1
  61. package/cjs/index156.js +1 -1
  62. package/cjs/index157.js +1 -1
  63. package/cjs/index158.js +1 -1
  64. package/cjs/index159.js +1 -1
  65. package/cjs/index16.js +1 -1
  66. package/cjs/index160.js +1 -1
  67. package/cjs/index161.js +1 -1
  68. package/cjs/index162.js +1 -1
  69. package/cjs/index163.js +1 -1
  70. package/cjs/index164.js +1 -1
  71. package/cjs/index165.js +1 -1
  72. package/cjs/index166.js +1 -1
  73. package/cjs/index167.js +1 -1
  74. package/cjs/index168.js +1 -1
  75. package/cjs/index169.js +1 -1
  76. package/cjs/index17.js +1 -1
  77. package/cjs/index170.js +1 -1
  78. package/cjs/index171.js +1 -1
  79. package/cjs/index172.js +1 -1
  80. package/cjs/index173.js +1 -1
  81. package/cjs/index174.js +1 -1
  82. package/cjs/index175.js +1 -1
  83. package/cjs/index176.js +1 -1
  84. package/cjs/index177.js +1 -1
  85. package/cjs/index178.js +1 -1
  86. package/cjs/index179.js +1 -1
  87. package/cjs/index18.js +1 -1
  88. package/cjs/index180.js +1 -1
  89. package/cjs/index181.js +1 -1
  90. package/cjs/index182.js +1 -1
  91. package/cjs/index183.js +1 -1
  92. package/cjs/index184.js +1 -1
  93. package/cjs/index185.js +1 -1
  94. package/cjs/index186.js +1 -1
  95. package/cjs/index187.js +1 -1
  96. package/cjs/index188.js +1 -1
  97. package/cjs/index189.js +1 -1
  98. package/cjs/index190.js +1 -1
  99. package/cjs/index191.js +1 -1
  100. package/cjs/index192.js +1 -1
  101. package/cjs/index193.js +1 -1
  102. package/cjs/index194.js +1 -1
  103. package/cjs/index195.js +1 -1
  104. package/cjs/index196.js +1 -1
  105. package/cjs/index197.js +1 -1
  106. package/cjs/index198.js +1 -1
  107. package/cjs/index199.js +1 -1
  108. package/cjs/index2.js +1 -1
  109. package/cjs/index20.js +1 -1
  110. package/cjs/index200.js +1 -1
  111. package/cjs/index201.js +1 -1
  112. package/cjs/index202.js +1 -1
  113. package/cjs/index203.js +1 -1
  114. package/cjs/index204.js +1 -1
  115. package/cjs/index205.js +1 -1
  116. package/cjs/index206.js +1 -1
  117. package/cjs/index207.js +1 -1
  118. package/cjs/index208.js +1 -1
  119. package/cjs/index209.js +1 -1
  120. package/cjs/index21.js +1 -1
  121. package/cjs/index210.js +1 -1
  122. package/cjs/index211.js +1 -1
  123. package/cjs/index212.js +1 -1
  124. package/cjs/index213.js +1 -1
  125. package/cjs/index214.js +1 -1
  126. package/cjs/index215.js +1 -1
  127. package/cjs/index216.js +1 -1
  128. package/cjs/index217.js +1 -1
  129. package/cjs/index218.js +1 -1
  130. package/cjs/index219.js +1 -1
  131. package/cjs/index22.js +1 -1
  132. package/cjs/index220.js +1 -1
  133. package/cjs/index221.js +1 -1
  134. package/cjs/index222.js +1 -1
  135. package/cjs/index223.js +1 -1
  136. package/cjs/index224.js +1 -1
  137. package/cjs/index225.js +1 -1
  138. package/cjs/index226.js +1 -1
  139. package/cjs/index227.js +1 -1
  140. package/cjs/index228.js +1 -1
  141. package/cjs/index229.js +1 -1
  142. package/cjs/index230.js +1 -1
  143. package/cjs/index231.js +1 -1
  144. package/cjs/index232.js +1 -1
  145. package/cjs/index233.js +1 -1
  146. package/cjs/index234.js +1 -1
  147. package/cjs/index235.js +1 -1
  148. package/cjs/index24.js +1 -1
  149. package/cjs/index25.js +1 -1
  150. package/cjs/index26.js +1 -1
  151. package/cjs/index27.js +1 -1
  152. package/cjs/index28.js +1 -1
  153. package/cjs/index3.js +1 -1
  154. package/cjs/index30.js +1 -1
  155. package/cjs/index31.js +1 -1
  156. package/cjs/index32.js +1 -1
  157. package/cjs/index33.js +1 -1
  158. package/cjs/index34.js +1 -1
  159. package/cjs/index36.js +1 -1
  160. package/cjs/index37.js +1 -1
  161. package/cjs/index38.js +1 -1
  162. package/cjs/index39.js +1 -1
  163. package/cjs/index4.js +1 -1
  164. package/cjs/index40.js +1 -1
  165. package/cjs/index41.js +1 -1
  166. package/cjs/index42.js +1 -1
  167. package/cjs/index43.js +1 -1
  168. package/cjs/index44.js +1 -1
  169. package/cjs/index45.js +1 -1
  170. package/cjs/index46.js +1 -1
  171. package/cjs/index47.js +1 -1
  172. package/cjs/index48.js +1 -1
  173. package/cjs/index49.js +1 -1
  174. package/cjs/index5.js +1 -1
  175. package/cjs/index50.js +1 -1
  176. package/cjs/index51.js +1 -1
  177. package/cjs/index52.js +1 -1
  178. package/cjs/index53.js +1 -1
  179. package/cjs/index54.js +1 -1
  180. package/cjs/index55.js +1 -1
  181. package/cjs/index56.js +1 -0
  182. package/cjs/index57.js +1 -1
  183. package/cjs/index58.js +1 -1
  184. package/cjs/index59.js +1 -0
  185. package/cjs/index6.js +1 -1
  186. package/cjs/index60.js +1 -1
  187. package/cjs/index61.js +7 -1
  188. package/cjs/index62.js +1 -1
  189. package/cjs/index63.js +1 -7
  190. package/cjs/index64.js +1 -0
  191. package/cjs/index65.js +1 -0
  192. package/cjs/index66.js +1 -1
  193. package/cjs/index67.js +1 -1
  194. package/cjs/index68.js +1 -1
  195. package/cjs/index69.js +1 -1
  196. package/cjs/index70.js +1 -1
  197. package/cjs/index71.js +1 -1
  198. package/cjs/index72.js +1 -1
  199. package/cjs/index73.js +1 -1
  200. package/cjs/index74.js +1 -1
  201. package/cjs/index75.js +1 -1
  202. package/cjs/index76.js +1 -1
  203. package/cjs/index77.js +1 -1
  204. package/cjs/index78.js +1 -1
  205. package/cjs/index79.js +1 -1
  206. package/cjs/index8.js +1 -1
  207. package/cjs/index80.js +1 -1
  208. package/cjs/index81.js +1 -1
  209. package/cjs/index83.js +1 -1
  210. package/cjs/index84.js +1 -1
  211. package/cjs/index85.js +1 -1
  212. package/cjs/index86.js +1 -0
  213. package/cjs/index87.js +1 -1
  214. package/cjs/index88.js +1 -1
  215. package/cjs/index89.js +1 -1
  216. package/cjs/index9.js +1 -1
  217. package/cjs/index90.js +1 -1
  218. package/cjs/index91.js +5 -1
  219. package/cjs/index92.js +1 -1
  220. package/cjs/index93.js +1 -1
  221. package/cjs/index94.js +1 -1
  222. package/cjs/index95.js +1 -1
  223. package/cjs/index96.js +1 -1
  224. package/cjs/index97.js +1 -1
  225. package/cjs/index98.js +1 -1
  226. package/cjs/index99.js +1 -1
  227. package/es/index10.mjs +4 -4
  228. package/es/index100.mjs +5 -2
  229. package/es/index101.mjs +11 -398
  230. package/es/index102.mjs +244 -37
  231. package/es/index103.mjs +89 -2
  232. package/es/index104.mjs +14 -9
  233. package/es/index105.mjs +4 -327
  234. package/es/index106.mjs +2 -50
  235. package/es/index107.mjs +2 -2
  236. package/es/index108.mjs +2 -65
  237. package/es/index109.mjs +385 -37
  238. package/es/index11.mjs +1 -1
  239. package/es/index110.mjs +123 -58
  240. package/es/index111.mjs +136 -46
  241. package/es/index112.mjs +2 -40
  242. package/es/index113.mjs +8 -2
  243. package/es/index114.mjs +327 -2
  244. package/es/index115.mjs +50 -2
  245. package/es/index116.mjs +2 -31
  246. package/es/index117.mjs +65 -19
  247. package/es/index118.mjs +40 -58
  248. package/es/index119.mjs +59 -62
  249. package/es/index12.mjs +14 -14
  250. package/es/index120.mjs +45 -15
  251. package/es/index121.mjs +39 -6
  252. package/es/index122.mjs +2 -7
  253. package/es/index123.mjs +2 -6
  254. package/es/index124.mjs +2 -6
  255. package/es/index125.mjs +30 -4
  256. package/es/index126.mjs +19 -5
  257. package/es/index127.mjs +60 -6
  258. package/es/index128.mjs +62 -4
  259. package/es/index129.mjs +13 -66
  260. package/es/index13.mjs +2 -2
  261. package/es/index130.mjs +7 -3
  262. package/es/index131.mjs +6 -4
  263. package/es/index132.mjs +5 -10
  264. package/es/index133.mjs +6 -2
  265. package/es/index134.mjs +4 -390
  266. package/es/index135.mjs +6 -124
  267. package/es/index136.mjs +4 -133
  268. package/es/index138.mjs +73 -55
  269. package/es/index139.mjs +93 -2
  270. package/es/index14.mjs +3 -3
  271. package/es/index140.mjs +52 -2
  272. package/es/index141.mjs +8 -2
  273. package/es/index142.mjs +4 -75
  274. package/es/index143.mjs +48 -89
  275. package/es/index144.mjs +2 -52
  276. package/es/index145.mjs +58 -8
  277. package/es/index146.mjs +2 -5
  278. package/es/index147.mjs +2 -52
  279. package/es/index148.mjs +5 -2
  280. package/es/index149.mjs +5 -2
  281. package/es/index150.mjs +7 -2
  282. package/es/index151.mjs +12 -4
  283. package/es/index152.mjs +15 -4
  284. package/es/index153.mjs +9 -7
  285. package/es/index154.mjs +5 -12
  286. package/es/index155.mjs +5 -15
  287. package/es/index156.mjs +4 -8
  288. package/es/index157.mjs +512 -5
  289. package/es/index158.mjs +50 -6
  290. package/es/index159.mjs +17 -4
  291. package/es/index16.mjs +1 -1
  292. package/es/index160.mjs +16 -511
  293. package/es/index161.mjs +5 -50
  294. package/es/index162.mjs +7 -17
  295. package/es/index163.mjs +6 -18
  296. package/es/index164.mjs +4 -4
  297. package/es/index165.mjs +5 -7
  298. package/es/index166.mjs +8 -5
  299. package/es/index167.mjs +4 -4
  300. package/es/index168.mjs +7 -5
  301. package/es/index169.mjs +11 -8
  302. package/es/index17.mjs +4 -4
  303. package/es/index170.mjs +8 -4
  304. package/es/index171.mjs +8 -7
  305. package/es/index172.mjs +12 -11
  306. package/es/index173.mjs +3 -8
  307. package/es/index174.mjs +32 -8
  308. package/es/index175.mjs +65 -13
  309. package/es/index176.mjs +7 -3
  310. package/es/index177.mjs +7 -32
  311. package/es/index178.mjs +7 -65
  312. package/es/index179.mjs +6 -7
  313. package/es/index18.mjs +8 -8
  314. package/es/index180.mjs +13 -7
  315. package/es/index181.mjs +2 -7
  316. package/es/index182.mjs +2 -7
  317. package/es/index183.mjs +2 -14
  318. package/es/index184.mjs +55 -66
  319. package/es/index185.mjs +22 -31
  320. package/es/index186.mjs +41 -9
  321. package/es/index187.mjs +58 -150
  322. package/es/index188.mjs +31 -107
  323. package/es/index189.mjs +12 -67
  324. package/es/index190.mjs +62 -31
  325. package/es/index191.mjs +62 -9
  326. package/es/index192.mjs +62 -107
  327. package/es/index193.mjs +62 -106
  328. package/es/index194.mjs +37 -54
  329. package/es/index195.mjs +36 -17
  330. package/es/index196.mjs +45 -33
  331. package/es/index197.mjs +24 -42
  332. package/es/index198.mjs +34 -29
  333. package/es/index199.mjs +63 -10
  334. package/es/index2.mjs +1 -1
  335. package/es/index20.mjs +2 -2
  336. package/es/index200.mjs +43 -39
  337. package/es/index201.mjs +70 -41
  338. package/es/index202.mjs +28 -50
  339. package/es/index203.mjs +32 -54
  340. package/es/index204.mjs +35 -34
  341. package/es/index205.mjs +19 -35
  342. package/es/index206.mjs +13 -42
  343. package/es/index207.mjs +18 -37
  344. package/es/index208.mjs +19 -31
  345. package/es/index209.mjs +18 -60
  346. package/es/index21.mjs +1 -1
  347. package/es/index210.mjs +18 -60
  348. package/es/index211.mjs +11 -88
  349. package/es/index212.mjs +35 -36
  350. package/es/index213.mjs +35 -36
  351. package/es/index214.mjs +11 -38
  352. package/es/index215.mjs +11 -22
  353. package/es/index216.mjs +67 -23
  354. package/es/index217.mjs +31 -24
  355. package/es/index218.mjs +9 -25
  356. package/es/index219.mjs +151 -22
  357. package/es/index22.mjs +1 -1
  358. package/es/index220.mjs +107 -23
  359. package/es/index221.mjs +17 -11
  360. package/es/index222.mjs +98 -37
  361. package/es/index223.mjs +47 -40
  362. package/es/index224.mjs +67 -13
  363. package/es/index225.mjs +31 -14
  364. package/es/index226.mjs +9 -16
  365. package/es/index227.mjs +108 -29
  366. package/es/index228.mjs +107 -13
  367. package/es/index229.mjs +58 -6
  368. package/es/index230.mjs +8 -19
  369. package/es/index231.mjs +17 -98
  370. package/es/index232.mjs +7 -47
  371. package/es/index233.mjs +15 -58
  372. package/es/index234.mjs +28 -8
  373. package/es/index235.mjs +12 -19
  374. package/es/index24.mjs +4 -4
  375. package/es/index25.mjs +2 -2
  376. package/es/index26.mjs +1 -1
  377. package/es/index27.mjs +1 -1
  378. package/es/index28.mjs +1 -1
  379. package/es/index3.mjs +1 -1
  380. package/es/index30.mjs +3 -3
  381. package/es/index31.mjs +2 -2
  382. package/es/index32.mjs +2 -2
  383. package/es/index33.mjs +3 -3
  384. package/es/index34.mjs +1 -1
  385. package/es/index36.mjs +3 -3
  386. package/es/index37.mjs +3 -3
  387. package/es/index38.mjs +3 -3
  388. package/es/index39.mjs +3 -3
  389. package/es/index4.mjs +2 -2
  390. package/es/index40.mjs +2 -2
  391. package/es/index41.mjs +1 -1
  392. package/es/index42.mjs +4 -4
  393. package/es/index43.mjs +1 -1
  394. package/es/index44.mjs +2 -2
  395. package/es/index45.mjs +3 -3
  396. package/es/index46.mjs +3 -3
  397. package/es/index47.mjs +2 -2
  398. package/es/index48.mjs +1 -1
  399. package/es/index49.mjs +2 -2
  400. package/es/index50.mjs +1 -1
  401. package/es/index51.mjs +11 -8
  402. package/es/index52.mjs +6 -47
  403. package/es/index53.mjs +21 -11
  404. package/es/index54.mjs +8 -28
  405. package/es/index55.mjs +27 -29
  406. package/es/index56.mjs +49 -0
  407. package/es/index57.mjs +47 -6
  408. package/es/index58.mjs +29 -46
  409. package/es/index59.mjs +19 -0
  410. package/es/index6.mjs +3 -3
  411. package/es/index60.mjs +29 -17
  412. package/es/index61.mjs +406 -26
  413. package/es/index62.mjs +28 -20
  414. package/es/index63.mjs +34 -407
  415. package/es/index64.mjs +19 -0
  416. package/es/index65.mjs +37 -0
  417. package/es/index66.mjs +2 -14
  418. package/es/index67.mjs +71 -56
  419. package/es/index68.mjs +28 -61
  420. package/es/index69.mjs +33 -57
  421. package/es/index70.mjs +4 -2
  422. package/es/index71.mjs +33 -72
  423. package/es/index72.mjs +4 -28
  424. package/es/index73.mjs +4 -35
  425. package/es/index74.mjs +4 -3
  426. package/es/index75.mjs +4 -34
  427. package/es/index76.mjs +4 -4
  428. package/es/index77.mjs +16 -4
  429. package/es/index78.mjs +84 -4
  430. package/es/index79.mjs +5 -4
  431. package/es/index8.mjs +3 -3
  432. package/es/index80.mjs +24 -4
  433. package/es/index81.mjs +53 -15
  434. package/es/index83.mjs +4 -5
  435. package/es/index84.mjs +115 -21
  436. package/es/index85.mjs +60 -53
  437. package/es/index86.mjs +62 -0
  438. package/es/index87.mjs +13 -4
  439. package/es/index88.mjs +57 -117
  440. package/es/index89.mjs +5 -5
  441. package/es/index9.mjs +1 -1
  442. package/es/index90.mjs +395 -21
  443. package/es/index91.mjs +40 -2
  444. package/es/index92.mjs +23 -234
  445. package/es/index93.mjs +2 -2
  446. package/es/index94.mjs +236 -12
  447. package/es/index95.mjs +2 -247
  448. package/es/index96.mjs +60 -82
  449. package/es/index97.mjs +5 -15
  450. package/es/index98.mjs +5 -4
  451. package/es/index99.mjs +11 -2
  452. package/package.json +7 -5
package/es/index117.mjs CHANGED
@@ -1,21 +1,67 @@
1
- import { __module as t } from "./index137.mjs";
2
- /*!
3
- Copyright (c) 2015 Jed Watson.
4
- Based on code that is Copyright 2013-2015, Facebook, Inc.
5
- All rights reserved.
6
- */
7
- (function(n) {
8
- (function() {
9
- var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
10
- canUseDOM: e,
11
- canUseWorkers: typeof Worker < "u",
12
- canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
13
- canUseViewport: e && !!window.screen
14
- };
15
- n.exports ? n.exports = o : window.ExecutionEnvironment = o;
16
- })();
17
- })(t);
18
- var i = t.exports;
1
+ import { __exports as t } from "./index124.mjs";
2
+ import { t as s } from "./index145.mjs";
3
+ Object.defineProperty(t, "__esModule", {
4
+ value: !0
5
+ });
6
+ t.resetState = f;
7
+ t.log = v;
8
+ t.handleBlur = r;
9
+ t.handleFocus = a;
10
+ t.markForFocusLater = m;
11
+ t.returnFocus = p;
12
+ t.popWithoutFocus = h;
13
+ t.setupScopedFocus = E;
14
+ t.teardownScopedFocus = F;
15
+ var l = s, i = d(l);
16
+ function d(e) {
17
+ return e && e.__esModule ? e : { default: e };
18
+ }
19
+ var n = [], u = null, c = !1;
20
+ function f() {
21
+ n = [];
22
+ }
23
+ function v() {
24
+ process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), n.forEach(function(e) {
25
+ var o = e || {};
26
+ console.log(o.nodeName, o.className, o.id);
27
+ }), console.log("end focusManager ----------"));
28
+ }
29
+ function r() {
30
+ c = !0;
31
+ }
32
+ function a() {
33
+ if (c) {
34
+ if (c = !1, !u)
35
+ return;
36
+ setTimeout(function() {
37
+ if (!u.contains(document.activeElement)) {
38
+ var e = (0, i.default)(u)[0] || u;
39
+ e.focus();
40
+ }
41
+ }, 0);
42
+ }
43
+ }
44
+ function m() {
45
+ n.push(document.activeElement);
46
+ }
47
+ function p() {
48
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, o = null;
49
+ try {
50
+ n.length !== 0 && (o = n.pop(), o.focus({ preventScroll: e }));
51
+ return;
52
+ } catch {
53
+ console.warn(["You tried to return focus to", o, "but it is not in the DOM anymore"].join(" "));
54
+ }
55
+ }
56
+ function h() {
57
+ n.length > 0 && n.pop();
58
+ }
59
+ function E(e) {
60
+ u = e, window.addEventListener ? (window.addEventListener("blur", r, !1), document.addEventListener("focus", a, !0)) : (window.attachEvent("onBlur", r), document.attachEvent("onFocus", a));
61
+ }
62
+ function F() {
63
+ u = null, window.addEventListener ? (window.removeEventListener("blur", r), document.removeEventListener("focus", a)) : (window.detachEvent("onBlur", r), document.detachEvent("onFocus", a));
64
+ }
19
65
  export {
20
- i as e
66
+ t as default
21
67
  };
package/es/index118.mjs CHANGED
@@ -1,63 +1,45 @@
1
- function l() {
2
- var t = this.constructor.getDerivedStateFromProps(this.props, this.state);
3
- t != null && this.setState(t);
4
- }
5
- function p(t) {
6
- function e(o) {
7
- var n = this.constructor.getDerivedStateFromProps(t, o);
8
- return n ?? null;
1
+ import { __module as s } from "./index146.mjs";
2
+ import { t as _ } from "./index145.mjs";
3
+ (function(c, f) {
4
+ Object.defineProperty(f, "__esModule", {
5
+ value: !0
6
+ }), f.default = g;
7
+ var d = _, p = m(d);
8
+ function m(e) {
9
+ return e && e.__esModule ? e : { default: e };
9
10
  }
10
- this.setState(e.bind(this));
11
- }
12
- function r(t, e) {
13
- try {
14
- var o = this.props, n = this.state;
15
- this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
16
- o,
17
- n
18
- );
19
- } finally {
20
- this.props = o, this.state = n;
11
+ function v() {
12
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
13
+ return e.activeElement.shadowRoot ? v(e.activeElement.shadowRoot) : e.activeElement;
21
14
  }
22
- }
23
- l.__suppressDeprecationWarning = !0;
24
- p.__suppressDeprecationWarning = !0;
25
- r.__suppressDeprecationWarning = !0;
26
- function y(t) {
27
- var e = t.prototype;
28
- if (!e || !e.isReactComponent)
29
- throw new Error("Can only polyfill class components");
30
- if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
31
- return t;
32
- var o = null, n = null, i = null;
33
- if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
34
- var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
35
- throw Error(
36
- `Unsafe legacy lifecycles will not be called for components using new component APIs.
37
-
38
- ` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
39
- ` + o : "") + (n !== null ? `
40
- ` + n : "") + (i !== null ? `
41
- ` + i : "") + `
42
-
43
- The above lifecycles should be removed. Learn more about this warning here:
44
- https://fb.me/react-async-component-lifecycle-hooks`
45
- );
15
+ function g(e, r) {
16
+ var a = (0, p.default)(e);
17
+ if (!a.length) {
18
+ r.preventDefault();
19
+ return;
20
+ }
21
+ var t = void 0, n = r.shiftKey, o = a[0], u = a[a.length - 1], i = v();
22
+ if (e === i) {
23
+ if (!n) return;
24
+ t = u;
25
+ }
26
+ if (u === i && !n && (t = o), o === i && n && (t = u), t) {
27
+ r.preventDefault(), t.focus();
28
+ return;
29
+ }
30
+ var b = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), h = b != null && b[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
31
+ if (h) {
32
+ var l = a.indexOf(i);
33
+ if (l > -1 && (l += n ? -1 : 1), t = a[l], typeof t > "u") {
34
+ r.preventDefault(), t = n ? u : o, t.focus();
35
+ return;
36
+ }
37
+ r.preventDefault(), t.focus();
38
+ }
46
39
  }
47
- if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
48
- if (typeof e.componentDidUpdate != "function")
49
- throw new Error(
50
- "Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
51
- );
52
- e.componentWillUpdate = r;
53
- var c = e.componentDidUpdate;
54
- e.componentDidUpdate = function(f, u, d) {
55
- var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
56
- c.call(this, f, u, h);
57
- };
58
- }
59
- return t;
60
- }
40
+ c.exports = f.default;
41
+ })(s, s.exports);
42
+ var D = s.exports;
61
43
  export {
62
- y as polyfill
44
+ D as s
63
45
  };
package/es/index119.mjs CHANGED
@@ -1,65 +1,62 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { classNames as $ } from "./index51.mjs";
3
- import { useMemo as f } from "react";
4
- import { isInRange as a, isBetween as C } from "./index75.mjs";
5
- import { isSameDay as s } from "./index132.mjs";
6
- import { isBefore as I } from "./index131.mjs";
7
- import { startOfMonth as N } from "./index123.mjs";
8
- import { isAfter as O } from "./index125.mjs";
9
- import { endOfMonth as S } from "./index124.mjs";
10
- import { format as u } from "./index85.mjs";
11
- function K({
12
- date: r,
13
- monthYear: c,
14
- unavailable: p,
15
- unavailableFrom: t,
16
- unavailableTo: i,
17
- value: n,
18
- onChange: w,
19
- highlight: o,
20
- ariaLabelCurrentDay: E,
21
- onMouseEnter: y,
22
- onMouseLeave: M,
23
- hoverStyle: d
24
- }) {
25
- const e = f(
26
- () => a(r, t, i, p),
27
- [p, t, i, r]
28
- ), D = f(
29
- () => !!n && s(n, r) && !(o && (o[0] || o[1])),
30
- [n, r, o]
31
- ), x = f(
32
- () => !!o && (o[0] && s(new Date(o[0]), r) || o[1] && s(new Date(o[1]), r) || o[0] && o[1] && C(r, o[0], o[1])),
33
- [o, r]
34
- ), b = s(r, /* @__PURE__ */ new Date()), B = $({
35
- "is-current": b,
36
- "is-faded": I(r, N(c)) || O(r, S(c)),
37
- "is-unavailable": e,
38
- "is-selected": D || !!x,
39
- "is-hovered": !!d
40
- });
41
- return /* @__PURE__ */ m("td", { children: /* @__PURE__ */ m(
42
- "button",
43
- {
44
- className: B,
45
- tabIndex: e ? -1 : void 0,
46
- disabled: e,
47
- type: "button",
48
- "aria-pressed": D,
49
- "aria-label": `${u(r, "EEEE d MMMM yyyy")}${b ? `, ${E}` : ""}`,
50
- onClick: () => {
51
- w(r);
52
- },
53
- onMouseEnter: () => {
54
- y && y(r);
55
- },
56
- onMouseLeave: () => {
57
- M && M(r);
58
- },
59
- children: /* @__PURE__ */ m("span", { children: u(r, "d") })
60
- }
61
- ) });
1
+ import { __exports as i } from "./index122.mjs";
2
+ Object.defineProperty(i, "__esModule", {
3
+ value: !0
4
+ });
5
+ i.resetState = d;
6
+ i.log = m;
7
+ var o = {}, a = {};
8
+ function s(t, e) {
9
+ t.classList.remove(e);
10
+ }
11
+ function d() {
12
+ var t = document.getElementsByTagName("html")[0];
13
+ for (var e in o)
14
+ s(t, o[e]);
15
+ var n = document.body;
16
+ for (var r in a)
17
+ s(n, a[r]);
18
+ o = {}, a = {};
62
19
  }
20
+ function m() {
21
+ if (process.env.NODE_ENV !== "production") {
22
+ var t = document.getElementsByTagName("html")[0].className, e = `Show tracked classes:
23
+
24
+ `;
25
+ e += "<html /> (" + t + `):
26
+ `;
27
+ for (var n in o)
28
+ e += " " + n + " " + o[n] + `
29
+ `;
30
+ t = document.body.className, e += `
31
+
32
+ doc.body (` + t + `):
33
+ `;
34
+ for (var r in a)
35
+ e += " " + r + " " + a[r] + `
36
+ `;
37
+ e += `
38
+ `, console.log(e);
39
+ }
40
+ }
41
+ var u = function(e, n) {
42
+ return e[n] || (e[n] = 0), e[n] += 1, n;
43
+ }, v = function(e, n) {
44
+ return e[n] && (e[n] -= 1), n;
45
+ }, f = function(e, n, r) {
46
+ r.forEach(function(c) {
47
+ u(n, c), e.add(c);
48
+ });
49
+ }, l = function(e, n, r) {
50
+ r.forEach(function(c) {
51
+ v(n, c), n[c] === 0 && e.remove(c);
52
+ });
53
+ };
54
+ i.add = function(e, n) {
55
+ return f(e.classList, e.nodeName.toLowerCase() == "html" ? o : a, n.split(" "));
56
+ };
57
+ i.remove = function(e, n) {
58
+ return l(e.classList, e.nodeName.toLowerCase() == "html" ? o : a, n.split(" "));
59
+ };
63
60
  export {
64
- K as DayButton
61
+ i as default
65
62
  };
package/es/index12.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsxs as g, jsx as f } from "react/jsx-runtime";
2
- import { CalendarView as t } from "./index70.mjs";
3
- import { classNames as ee } from "./index51.mjs";
4
- import { DaysView as te } from "./index71.mjs";
2
+ import { CalendarView as t } from "./index66.mjs";
3
+ import { classNames as ee } from "./index52.mjs";
4
+ import { DaysView as te } from "./index67.mjs";
5
5
  import { forwardRef as ne, useState as y, useEffect as x, useMemo as re } from "react";
6
- import { DEFAULT_LOCALE as ae } from "./index53.mjs";
7
- import { MonthsView as oe } from "./index72.mjs";
8
- import { YearsView as ie } from "./index73.mjs";
9
- import { titleize as se } from "./index74.mjs";
10
- import { formatWithFallback as p, toUtcMidnightInBrussels as ce } from "./index75.mjs";
11
- import { getYear as S } from "./index76.mjs";
12
- import { getMonth as C } from "./index77.mjs";
13
- import { subYears as me } from "./index78.mjs";
14
- import { addYears as de } from "./index79.mjs";
15
- import { subMonths as ue } from "./index80.mjs";
16
- import { addMonths as fe } from "./index81.mjs";
6
+ import { DEFAULT_LOCALE as ae } from "./index51.mjs";
7
+ import { MonthsView as oe } from "./index68.mjs";
8
+ import { YearsView as ie } from "./index69.mjs";
9
+ import { titleize as se } from "./index70.mjs";
10
+ import { formatWithFallback as p, toUtcMidnightInBrussels as ce } from "./index71.mjs";
11
+ import { getYear as S } from "./index72.mjs";
12
+ import { getMonth as C } from "./index73.mjs";
13
+ import { subYears as me } from "./index74.mjs";
14
+ import { addYears as de } from "./index75.mjs";
15
+ import { subMonths as ue } from "./index76.mjs";
16
+ import { addMonths as fe } from "./index77.mjs";
17
17
  import { Icon as pe } from "./index24.mjs";
18
18
  import { Button as G } from "./index10.mjs";
19
19
  const Re = ne(
package/es/index120.mjs CHANGED
@@ -1,16 +1,46 @@
1
- import { normalizeInterval as m } from "./index158.mjs";
2
- import { constructFrom as l } from "./index151.mjs";
3
- function p(n, a) {
4
- const { start: t, end: r } = m(a?.in, n);
5
- let s = +t > +r;
6
- const c = s ? +t : +r, e = s ? r : t;
7
- e.setHours(0, 0, 0, 0);
8
- let i = 1;
9
- const o = [];
10
- for (; +e <= c; )
11
- o.push(l(t, e)), e.setDate(e.getDate() + i), e.setHours(0, 0, 0, 0);
12
- return s ? o.reverse() : o;
1
+ import { __exports as r } from "./index123.mjs";
2
+ Object.defineProperty(r, "__esModule", {
3
+ value: !0
4
+ });
5
+ r.log = c;
6
+ r.resetState = l;
7
+ function i(s, e) {
8
+ if (!(s instanceof e))
9
+ throw new TypeError("Cannot call a class as a function");
13
10
  }
14
- export {
15
- p as eachDayOfInterval
16
- };
11
+ var a = function s() {
12
+ var e = this;
13
+ i(this, s), this.register = function(n) {
14
+ if (e.openInstances.indexOf(n) !== -1) {
15
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
16
+ return;
17
+ }
18
+ e.openInstances.push(n), e.emit("register");
19
+ }, this.deregister = function(n) {
20
+ var t = e.openInstances.indexOf(n);
21
+ if (t === -1) {
22
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
23
+ return;
24
+ }
25
+ e.openInstances.splice(t, 1), e.emit("deregister");
26
+ }, this.subscribe = function(n) {
27
+ e.subscribers.push(n);
28
+ }, this.emit = function(n) {
29
+ e.subscribers.forEach(function(t) {
30
+ return t(
31
+ n,
32
+ // shallow copy to avoid accidental mutation
33
+ e.openInstances.slice()
34
+ );
35
+ });
36
+ }, this.openInstances = [], this.subscribers = [];
37
+ }, o = new a();
38
+ function c() {
39
+ console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
40
+ return console.log(s);
41
+ }), console.log("end portalOpenInstances ----------");
42
+ }
43
+ function l() {
44
+ o = new a();
45
+ }
46
+ r.default = o;
package/es/index121.mjs CHANGED
@@ -1,9 +1,42 @@
1
- import { getDefaultOptions as c } from "./index159.mjs";
2
- import { toDate as f } from "./index152.mjs";
3
- function k(s, e) {
4
- const n = c(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), a = t.getDay(), r = (a < o ? -7 : 0) + 6 - (a - o);
5
- return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
1
+ import { __exports as d } from "./index147.mjs";
2
+ import "./index120.mjs";
3
+ import { __exports as i } from "./index123.mjs";
4
+ Object.defineProperty(d, "__esModule", {
5
+ value: !0
6
+ });
7
+ d.resetState = f;
8
+ d.log = v;
9
+ var p = i, c = u(p);
10
+ function u(t) {
11
+ return t && t.__esModule ? t : { default: t };
6
12
  }
13
+ var e = void 0, o = void 0, r = [];
14
+ function f() {
15
+ for (var t = [e, o], n = 0; n < t.length; n++) {
16
+ var a = t[n];
17
+ a && a.parentNode && a.parentNode.removeChild(a);
18
+ }
19
+ e = o = null, r = [];
20
+ }
21
+ function v() {
22
+ console.log("bodyTrap ----------"), console.log(r.length);
23
+ for (var t = [e, o], n = 0; n < t.length; n++) {
24
+ var a = t[n], l = a || {};
25
+ console.log(l.nodeName, l.className, l.id);
26
+ }
27
+ console.log("edn bodyTrap ----------");
28
+ }
29
+ function s() {
30
+ if (r.length === 0) {
31
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
32
+ return;
33
+ }
34
+ r[r.length - 1].focusContent();
35
+ }
36
+ function m(t, n) {
37
+ !e && !o && (e = document.createElement("div"), e.setAttribute("data-react-modal-body-trap", ""), e.style.position = "absolute", e.style.opacity = "0", e.setAttribute("tabindex", "0"), e.addEventListener("focus", s), o = e.cloneNode(), o.addEventListener("focus", s)), r = n, r.length > 0 ? (document.body.firstChild !== e && document.body.insertBefore(e, document.body.firstChild), document.body.lastChild !== o && document.body.appendChild(o)) : (e.parentElement && e.parentElement.removeChild(e), o.parentElement && o.parentElement.removeChild(o));
38
+ }
39
+ c.default.subscribe(m);
7
40
  export {
8
- k as endOfWeek
41
+ d as default
9
42
  };
package/es/index122.mjs CHANGED
@@ -1,9 +1,4 @@
1
- import { getDefaultOptions as c } from "./index159.mjs";
2
- import { toDate as f } from "./index152.mjs";
3
- function k(s, e) {
4
- const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
- return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
6
- }
1
+ var s = {};
7
2
  export {
8
- k as startOfWeek
3
+ s as __exports
9
4
  };
package/es/index123.mjs CHANGED
@@ -1,8 +1,4 @@
1
- import { toDate as r } from "./index152.mjs";
2
- function s(o, e) {
3
- const t = r(o, e?.in);
4
- return t.setDate(1), t.setHours(0, 0, 0, 0), t;
5
- }
1
+ var a = {};
6
2
  export {
7
- s as startOfMonth
3
+ a as __exports
8
4
  };
package/es/index124.mjs CHANGED
@@ -1,8 +1,4 @@
1
- import { toDate as r } from "./index152.mjs";
2
- function u(e, o) {
3
- const t = r(e, o?.in), n = t.getMonth();
4
- return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
5
- }
1
+ var a = {};
6
2
  export {
7
- u as endOfMonth
3
+ a as __exports
8
4
  };
package/es/index125.mjs CHANGED
@@ -1,7 +1,33 @@
1
- import { toDate as t } from "./index152.mjs";
2
- function f(r, o) {
3
- return +t(r) > +t(o);
1
+ var c = process.env.NODE_ENV !== "production", i = function() {
2
+ };
3
+ if (c) {
4
+ var g = function(e, r) {
5
+ var a = arguments.length;
6
+ r = new Array(a > 1 ? a - 1 : 0);
7
+ for (var n = 1; n < a; n++)
8
+ r[n - 1] = arguments[n];
9
+ var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
10
+ return r[u++];
11
+ });
12
+ typeof console < "u" && console.error(t);
13
+ try {
14
+ throw new Error(t);
15
+ } catch {
16
+ }
17
+ };
18
+ i = function(o, e, r) {
19
+ var a = arguments.length;
20
+ r = new Array(a > 2 ? a - 2 : 0);
21
+ for (var n = 2; n < a; n++)
22
+ r[n - 2] = arguments[n];
23
+ if (e === void 0)
24
+ throw new Error(
25
+ "`warning(condition, format, ...args)` requires a warning message argument"
26
+ );
27
+ o || g.apply(null, [e].concat(r));
28
+ };
4
29
  }
30
+ var s = i;
5
31
  export {
6
- f as isAfter
32
+ s as w
7
33
  };
package/es/index126.mjs CHANGED
@@ -1,7 +1,21 @@
1
- import { addDays as o } from "./index127.mjs";
2
- function a(r, d, e) {
3
- return o(r, d * 7, e);
4
- }
1
+ import { __module as t } from "./index144.mjs";
2
+ /*!
3
+ Copyright (c) 2015 Jed Watson.
4
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
5
+ All rights reserved.
6
+ */
7
+ (function(n) {
8
+ (function() {
9
+ var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
10
+ canUseDOM: e,
11
+ canUseWorkers: typeof Worker < "u",
12
+ canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
13
+ canUseViewport: e && !!window.screen
14
+ };
15
+ n.exports ? n.exports = o : window.ExecutionEnvironment = o;
16
+ })();
17
+ })(t);
18
+ var i = t.exports;
5
19
  export {
6
- a as addWeeks
20
+ i as e
7
21
  };
package/es/index127.mjs CHANGED
@@ -1,9 +1,63 @@
1
- import { constructFrom as n } from "./index151.mjs";
2
- import { toDate as o } from "./index152.mjs";
3
- function c(e, t, i) {
4
- const r = o(e, i?.in);
5
- return isNaN(t) ? n(i?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
1
+ function l() {
2
+ var t = this.constructor.getDerivedStateFromProps(this.props, this.state);
3
+ t != null && this.setState(t);
4
+ }
5
+ function p(t) {
6
+ function e(o) {
7
+ var n = this.constructor.getDerivedStateFromProps(t, o);
8
+ return n ?? null;
9
+ }
10
+ this.setState(e.bind(this));
11
+ }
12
+ function r(t, e) {
13
+ try {
14
+ var o = this.props, n = this.state;
15
+ this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
16
+ o,
17
+ n
18
+ );
19
+ } finally {
20
+ this.props = o, this.state = n;
21
+ }
22
+ }
23
+ l.__suppressDeprecationWarning = !0;
24
+ p.__suppressDeprecationWarning = !0;
25
+ r.__suppressDeprecationWarning = !0;
26
+ function y(t) {
27
+ var e = t.prototype;
28
+ if (!e || !e.isReactComponent)
29
+ throw new Error("Can only polyfill class components");
30
+ if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
31
+ return t;
32
+ var o = null, n = null, i = null;
33
+ if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
34
+ var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
35
+ throw Error(
36
+ `Unsafe legacy lifecycles will not be called for components using new component APIs.
37
+
38
+ ` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
39
+ ` + o : "") + (n !== null ? `
40
+ ` + n : "") + (i !== null ? `
41
+ ` + i : "") + `
42
+
43
+ The above lifecycles should be removed. Learn more about this warning here:
44
+ https://fb.me/react-async-component-lifecycle-hooks`
45
+ );
46
+ }
47
+ if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
48
+ if (typeof e.componentDidUpdate != "function")
49
+ throw new Error(
50
+ "Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
51
+ );
52
+ e.componentWillUpdate = r;
53
+ var c = e.componentDidUpdate;
54
+ e.componentDidUpdate = function(f, u, d) {
55
+ var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
56
+ c.call(this, f, u, h);
57
+ };
58
+ }
59
+ return t;
6
60
  }
7
61
  export {
8
- c as addDays
62
+ y as polyfill
9
63
  };