@rpcbase/ui 0.178.0 → 0.179.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 (545) hide show
  1. package/dist/index100.js +5 -4
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +3 -3
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +4 -5
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +4 -145
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +8 -39
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +5 -4
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +4 -7
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -13
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +6 -13
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +145 -7
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +38 -30
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +4 -10
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +7 -10
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +13 -8
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +13 -13
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +6 -100
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +32 -20
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +9 -52
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +9 -71
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +8 -9
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +13 -20
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +101 -16
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +20 -24
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +53 -6
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +72 -5
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +9 -23
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +19 -33
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +17 -16
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +23 -6
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +6 -4
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +5 -4
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +23 -4
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +35 -5
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +16 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +5 -5
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +5 -24
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +4 -7
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +4 -6
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +4 -5
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +3 -3
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +6 -3
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +24 -5
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +7 -3
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +6 -4
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +5 -3
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +3 -3
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +3 -3
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +4 -46
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +3 -46
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +4 -205
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +4 -22
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +3 -24
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +3 -399
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +605 -5
  108. package/dist/index153.js.map +1 -1
  109. package/dist/index154.js +5 -68
  110. package/dist/index154.js.map +1 -1
  111. package/dist/index155.js +69 -2
  112. package/dist/index155.js.map +1 -1
  113. package/dist/index156.js +2 -364
  114. package/dist/index156.js.map +1 -1
  115. package/dist/index157.js +303 -201
  116. package/dist/index157.js.map +1 -1
  117. package/dist/index158.js +247 -46
  118. package/dist/index158.js.map +1 -1
  119. package/dist/index159.js +56 -42
  120. package/dist/index159.js.map +1 -1
  121. package/dist/index160.js +46 -169
  122. package/dist/index160.js.map +1 -1
  123. package/dist/index161.js +156 -96
  124. package/dist/index161.js.map +1 -1
  125. package/dist/index162.js +109 -24
  126. package/dist/index162.js.map +1 -1
  127. package/dist/index163.js +25 -8
  128. package/dist/index163.js.map +1 -1
  129. package/dist/index164.js +8 -5
  130. package/dist/index164.js.map +1 -1
  131. package/dist/index165.js +4 -5
  132. package/dist/index165.js.map +1 -1
  133. package/dist/index166.js +5 -4
  134. package/dist/index166.js.map +1 -1
  135. package/dist/index167.js +4 -466
  136. package/dist/index167.js.map +1 -1
  137. package/dist/index168.js +420 -139
  138. package/dist/index168.js.map +1 -1
  139. package/dist/index169.js +149 -71
  140. package/dist/index169.js.map +1 -1
  141. package/dist/index170.js +74 -229
  142. package/dist/index170.js.map +1 -1
  143. package/dist/index171.js +262 -9
  144. package/dist/index171.js.map +1 -1
  145. package/dist/index172.js +9 -42
  146. package/dist/index172.js.map +1 -1
  147. package/dist/index173.js +42 -4
  148. package/dist/index173.js.map +1 -1
  149. package/dist/index174.js +4 -605
  150. package/dist/index174.js.map +1 -1
  151. package/dist/index175.js +24 -58
  152. package/dist/index175.js.map +1 -1
  153. package/dist/index176.js +29 -9
  154. package/dist/index176.js.map +1 -1
  155. package/dist/index177.js +5 -67
  156. package/dist/index177.js.map +1 -1
  157. package/dist/index178.js +57 -18
  158. package/dist/index178.js.map +1 -1
  159. package/dist/index179.js +8 -16
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js +65 -4
  162. package/dist/index180.js.map +1 -1
  163. package/dist/index181.js +18 -4
  164. package/dist/index181.js.map +1 -1
  165. package/dist/index182.js +16 -6
  166. package/dist/index182.js.map +1 -1
  167. package/dist/index183.js +5 -4
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +5 -7
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +6 -17
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +4 -5
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +7 -5
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +17 -13
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +5 -10
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index190.js +5 -14
  182. package/dist/index190.js.map +1 -1
  183. package/dist/index191.js +13 -14
  184. package/dist/index191.js.map +1 -1
  185. package/dist/index192.js +10 -5
  186. package/dist/index192.js.map +1 -1
  187. package/dist/index193.js +14 -6
  188. package/dist/index193.js.map +1 -1
  189. package/dist/index194.js +14 -7
  190. package/dist/index194.js.map +1 -1
  191. package/dist/index195.js +5 -6
  192. package/dist/index195.js.map +1 -1
  193. package/dist/index196.js +6 -9
  194. package/dist/index196.js.map +1 -1
  195. package/dist/index197.js +7 -5
  196. package/dist/index197.js.map +1 -1
  197. package/dist/index198.js +6 -5
  198. package/dist/index198.js.map +1 -1
  199. package/dist/index199.js +9 -9
  200. package/dist/index199.js.map +1 -1
  201. package/dist/index200.js +5 -5
  202. package/dist/index200.js.map +1 -1
  203. package/dist/index201.js +5 -5
  204. package/dist/index201.js.map +1 -1
  205. package/dist/index202.js +9 -4
  206. package/dist/index202.js.map +1 -1
  207. package/dist/index203.js +5 -11
  208. package/dist/index203.js.map +1 -1
  209. package/dist/index204.js +5 -10
  210. package/dist/index204.js.map +1 -1
  211. package/dist/index205.js +4 -10
  212. package/dist/index205.js.map +1 -1
  213. package/dist/index206.js +11 -11
  214. package/dist/index206.js.map +1 -1
  215. package/dist/index207.js +10 -11
  216. package/dist/index207.js.map +1 -1
  217. package/dist/index208.js +10 -10
  218. package/dist/index208.js.map +1 -1
  219. package/dist/index209.js +11 -7
  220. package/dist/index209.js.map +1 -1
  221. package/dist/index210.js +11 -6
  222. package/dist/index210.js.map +1 -1
  223. package/dist/index211.js +10 -5
  224. package/dist/index211.js.map +1 -1
  225. package/dist/index212.js +7 -6
  226. package/dist/index212.js.map +1 -1
  227. package/dist/index213.js +6 -7
  228. package/dist/index213.js.map +1 -1
  229. package/dist/index214.js +5 -6
  230. package/dist/index214.js.map +1 -1
  231. package/dist/index215.js +6 -55
  232. package/dist/index215.js.map +1 -1
  233. package/dist/index216.js +7 -16
  234. package/dist/index216.js.map +1 -1
  235. package/dist/index217.js +6 -7
  236. package/dist/index217.js.map +1 -1
  237. package/dist/index218.js +55 -10
  238. package/dist/index218.js.map +1 -1
  239. package/dist/index219.js +15 -9
  240. package/dist/index219.js.map +1 -1
  241. package/dist/index220.js +7 -21
  242. package/dist/index220.js.map +1 -1
  243. package/dist/index221.js +10 -10
  244. package/dist/index221.js.map +1 -1
  245. package/dist/index222.js +10 -9
  246. package/dist/index222.js.map +1 -1
  247. package/dist/index223.js +21 -9
  248. package/dist/index223.js.map +1 -1
  249. package/dist/index224.js +10 -4
  250. package/dist/index224.js.map +1 -1
  251. package/dist/index225.js +9 -5
  252. package/dist/index225.js.map +1 -1
  253. package/dist/index226.js +9 -16
  254. package/dist/index226.js.map +1 -1
  255. package/dist/index227.js +4 -9
  256. package/dist/index227.js.map +1 -1
  257. package/dist/index228.js +5 -18
  258. package/dist/index228.js.map +1 -1
  259. package/dist/index229.js +16 -15
  260. package/dist/index229.js.map +1 -1
  261. package/dist/index23.js +1 -1
  262. package/dist/index230.js +9 -12
  263. package/dist/index230.js.map +1 -1
  264. package/dist/index231.js +18 -29
  265. package/dist/index231.js.map +1 -1
  266. package/dist/index232.js +15 -12
  267. package/dist/index232.js.map +1 -1
  268. package/dist/index233.js +12 -25
  269. package/dist/index233.js.map +1 -1
  270. package/dist/index234.js +29 -5
  271. package/dist/index234.js.map +1 -1
  272. package/dist/index235.js +12 -24
  273. package/dist/index235.js.map +1 -1
  274. package/dist/index236.js +26 -29
  275. package/dist/index236.js.map +1 -1
  276. package/dist/index237.js +6 -5
  277. package/dist/index237.js.map +1 -1
  278. package/dist/index238.js +66 -12
  279. package/dist/index238.js.map +1 -1
  280. package/dist/index239.js +176 -150
  281. package/dist/index239.js.map +1 -1
  282. package/dist/index240.js +43 -27
  283. package/dist/index240.js.map +1 -1
  284. package/dist/index241.js +13 -9
  285. package/dist/index241.js.map +1 -1
  286. package/dist/index242.js +147 -40
  287. package/dist/index242.js.map +1 -1
  288. package/dist/index243.js +29 -10
  289. package/dist/index243.js.map +1 -1
  290. package/dist/index244.js +9 -44
  291. package/dist/index244.js.map +1 -1
  292. package/dist/index245.js +40 -88
  293. package/dist/index245.js.map +1 -1
  294. package/dist/index246.js +10 -85
  295. package/dist/index246.js.map +1 -1
  296. package/dist/index247.js +41 -102
  297. package/dist/index247.js.map +1 -1
  298. package/dist/index248.js +88 -45
  299. package/dist/index248.js.map +1 -1
  300. package/dist/index249.js +85 -10
  301. package/dist/index249.js.map +1 -1
  302. package/dist/index250.js +96 -28
  303. package/dist/index250.js.map +1 -1
  304. package/dist/index251.js +52 -8
  305. package/dist/index251.js.map +1 -1
  306. package/dist/index252.js +10 -115
  307. package/dist/index252.js.map +1 -1
  308. package/dist/index253.js +36 -16
  309. package/dist/index253.js.map +1 -1
  310. package/dist/index254.js +8 -15
  311. package/dist/index254.js.map +1 -1
  312. package/dist/index255.js +116 -3
  313. package/dist/index255.js.map +1 -1
  314. package/dist/index256.js +16 -35
  315. package/dist/index256.js.map +1 -1
  316. package/dist/index257.js +14 -19
  317. package/dist/index257.js.map +1 -1
  318. package/dist/index258.js +3 -9
  319. package/dist/index258.js.map +1 -1
  320. package/dist/index259.js +36 -8
  321. package/dist/index259.js.map +1 -1
  322. package/dist/index260.js +20 -67
  323. package/dist/index260.js.map +1 -1
  324. package/dist/index261.js +9 -180
  325. package/dist/index261.js.map +1 -1
  326. package/dist/index262.js +8 -46
  327. package/dist/index262.js.map +1 -1
  328. package/dist/index263.js +4 -4
  329. package/dist/index265.js +2 -2
  330. package/dist/index266.js +5 -5
  331. package/dist/index266.js.map +1 -1
  332. package/dist/index267.js +3 -19
  333. package/dist/index267.js.map +1 -1
  334. package/dist/index268.js +23 -12
  335. package/dist/index268.js.map +1 -1
  336. package/dist/index269.js +113 -5
  337. package/dist/index269.js.map +1 -1
  338. package/dist/index270.js +16 -3
  339. package/dist/index270.js.map +1 -1
  340. package/dist/index271.js +522 -21
  341. package/dist/index271.js.map +1 -1
  342. package/dist/index272.js +127 -112
  343. package/dist/index272.js.map +1 -1
  344. package/dist/index273.js +133 -15
  345. package/dist/index273.js.map +1 -1
  346. package/dist/index274.js +4 -524
  347. package/dist/index274.js.map +1 -1
  348. package/dist/index275.js +18 -127
  349. package/dist/index275.js.map +1 -1
  350. package/dist/index276.js +12 -133
  351. package/dist/index276.js.map +1 -1
  352. package/dist/index277.js +1 -1
  353. package/dist/index278.js +64 -5
  354. package/dist/index278.js.map +1 -1
  355. package/dist/index279.js +69 -6
  356. package/dist/index279.js.map +1 -1
  357. package/dist/index280.js +9 -4
  358. package/dist/index280.js.map +1 -1
  359. package/dist/index281.js +14 -16
  360. package/dist/index281.js.map +1 -1
  361. package/dist/index282.js +65 -8
  362. package/dist/index282.js.map +1 -1
  363. package/dist/index283.js +5 -5
  364. package/dist/index283.js.map +1 -1
  365. package/dist/index284.js +5 -4
  366. package/dist/index284.js.map +1 -1
  367. package/dist/index285.js +4 -546
  368. package/dist/index285.js.map +1 -1
  369. package/dist/index286.js +16 -47
  370. package/dist/index286.js.map +1 -1
  371. package/dist/index287.js +8 -17
  372. package/dist/index287.js.map +1 -1
  373. package/dist/index288.js +5 -6
  374. package/dist/index288.js.map +1 -1
  375. package/dist/index289.js +4 -8
  376. package/dist/index289.js.map +1 -1
  377. package/dist/index29.js +5 -5
  378. package/dist/index290.js +545 -7
  379. package/dist/index290.js.map +1 -1
  380. package/dist/index291.js +47 -9
  381. package/dist/index291.js.map +1 -1
  382. package/dist/index292.js +17 -12
  383. package/dist/index292.js.map +1 -1
  384. package/dist/index293.js +6 -9
  385. package/dist/index293.js.map +1 -1
  386. package/dist/index294.js +8 -13
  387. package/dist/index294.js.map +1 -1
  388. package/dist/index295.js +8 -69
  389. package/dist/index295.js.map +1 -1
  390. package/dist/index296.js +9 -9
  391. package/dist/index296.js.map +1 -1
  392. package/dist/index297.js +13 -14
  393. package/dist/index297.js.map +1 -1
  394. package/dist/index298.js +10 -66
  395. package/dist/index298.js.map +1 -1
  396. package/dist/index299.js +13 -64
  397. package/dist/index299.js.map +1 -1
  398. package/dist/index30.js +24 -24
  399. package/dist/index300.js +3 -4
  400. package/dist/index300.js.map +1 -1
  401. package/dist/index301.js +23 -56
  402. package/dist/index301.js.map +1 -1
  403. package/dist/index302.js +5 -68
  404. package/dist/index302.js.map +1 -1
  405. package/dist/index303.js +55 -30
  406. package/dist/index303.js.map +1 -1
  407. package/dist/index304.js +68 -9
  408. package/dist/index304.js.map +1 -1
  409. package/dist/index305.js +26 -148
  410. package/dist/index305.js.map +1 -1
  411. package/dist/index306.js +9 -108
  412. package/dist/index306.js.map +1 -1
  413. package/dist/index307.js +153 -4
  414. package/dist/index307.js.map +1 -1
  415. package/dist/index308.js +108 -23
  416. package/dist/index308.js.map +1 -1
  417. package/dist/index309.js +12 -15
  418. package/dist/index309.js.map +1 -1
  419. package/dist/index31.js +3 -3
  420. package/dist/index310.js +25 -26
  421. package/dist/index310.js.map +1 -1
  422. package/dist/index311.js +5 -13
  423. package/dist/index311.js.map +1 -1
  424. package/dist/index312.js +22 -6
  425. package/dist/index312.js.map +1 -1
  426. package/dist/index313.js +15 -22
  427. package/dist/index313.js.map +1 -1
  428. package/dist/index314.js +28 -12
  429. package/dist/index314.js.map +1 -1
  430. package/dist/index315.js +12 -27
  431. package/dist/index315.js.map +1 -1
  432. package/dist/index316.js +7 -5
  433. package/dist/index316.js.map +1 -1
  434. package/dist/index33.js +1 -1
  435. package/dist/index37.js +1 -1
  436. package/dist/index38.js +2 -2
  437. package/dist/index41.js +2 -2
  438. package/dist/index42.js +20 -20
  439. package/dist/index46.js +1 -1
  440. package/dist/index47.js +1 -1
  441. package/dist/index48.js +52 -5
  442. package/dist/index48.js.map +1 -1
  443. package/dist/index49.js +203 -32
  444. package/dist/index49.js.map +1 -1
  445. package/dist/index50.js +5 -25
  446. package/dist/index50.js.map +1 -1
  447. package/dist/index51.js +33 -7
  448. package/dist/index51.js.map +1 -1
  449. package/dist/index52.js +26 -11
  450. package/dist/index52.js.map +1 -1
  451. package/dist/index53.js +8 -205
  452. package/dist/index53.js.map +1 -1
  453. package/dist/index54.js +11 -3
  454. package/dist/index54.js.map +1 -1
  455. package/dist/index55.js +2 -48
  456. package/dist/index55.js.map +1 -1
  457. package/dist/index56.js +2 -51
  458. package/dist/index56.js.map +1 -1
  459. package/dist/index57.js +3 -7
  460. package/dist/index57.js.map +1 -1
  461. package/dist/index58.js +47 -14
  462. package/dist/index58.js.map +1 -1
  463. package/dist/index59.js +46 -129
  464. package/dist/index59.js.map +1 -1
  465. package/dist/index60.js +7 -10
  466. package/dist/index60.js.map +1 -1
  467. package/dist/index61.js +13 -215
  468. package/dist/index61.js.map +1 -1
  469. package/dist/index62.js +133 -12
  470. package/dist/index62.js.map +1 -1
  471. package/dist/index63.js +10 -46
  472. package/dist/index63.js.map +1 -1
  473. package/dist/index64.js +213 -46
  474. package/dist/index64.js.map +1 -1
  475. package/dist/index65.js +13 -4
  476. package/dist/index65.js.map +1 -1
  477. package/dist/index66.js +46 -5
  478. package/dist/index66.js.map +1 -1
  479. package/dist/index67.js +50 -28
  480. package/dist/index67.js.map +1 -1
  481. package/dist/index68.js +3 -49
  482. package/dist/index68.js.map +1 -1
  483. package/dist/index69.js +6 -9
  484. package/dist/index69.js.map +1 -1
  485. package/dist/index70.js +28 -6
  486. package/dist/index70.js.map +1 -1
  487. package/dist/index71.js +50 -8
  488. package/dist/index71.js.map +1 -1
  489. package/dist/index72.js +9 -6
  490. package/dist/index72.js.map +1 -1
  491. package/dist/index73.js +5 -53
  492. package/dist/index73.js.map +1 -1
  493. package/dist/index74.js +8 -2
  494. package/dist/index74.js.map +1 -1
  495. package/dist/index75.js +6 -2
  496. package/dist/index75.js.map +1 -1
  497. package/dist/index76.js +47 -52
  498. package/dist/index76.js.map +1 -1
  499. package/dist/index77.js +46 -4
  500. package/dist/index77.js.map +1 -1
  501. package/dist/index78.js +205 -4
  502. package/dist/index78.js.map +1 -1
  503. package/dist/index79.js +21 -15
  504. package/dist/index79.js.map +1 -1
  505. package/dist/index80.js +24 -5
  506. package/dist/index80.js.map +1 -1
  507. package/dist/index81.js +399 -7
  508. package/dist/index81.js.map +1 -1
  509. package/dist/index82.js +52 -17
  510. package/dist/index82.js.map +1 -1
  511. package/dist/index83.js +4 -4
  512. package/dist/index83.js.map +1 -1
  513. package/dist/index84.js +3 -3
  514. package/dist/index84.js.map +1 -1
  515. package/dist/index85.js +15 -5
  516. package/dist/index85.js.map +1 -1
  517. package/dist/index86.js +5 -5
  518. package/dist/index86.js.map +1 -1
  519. package/dist/index87.js +6 -3
  520. package/dist/index87.js.map +1 -1
  521. package/dist/index88.js +15 -3
  522. package/dist/index88.js.map +1 -1
  523. package/dist/index89.js +4 -6
  524. package/dist/index89.js.map +1 -1
  525. package/dist/index90.js +4 -24
  526. package/dist/index90.js.map +1 -1
  527. package/dist/index91.js +5 -6
  528. package/dist/index91.js.map +1 -1
  529. package/dist/index92.js +5 -4
  530. package/dist/index92.js.map +1 -1
  531. package/dist/index93.js +3 -5
  532. package/dist/index93.js.map +1 -1
  533. package/dist/index94.js +3 -4
  534. package/dist/index94.js.map +1 -1
  535. package/dist/index95.js +6 -4
  536. package/dist/index95.js.map +1 -1
  537. package/dist/index96.js +24 -5
  538. package/dist/index96.js.map +1 -1
  539. package/dist/index97.js +6 -4
  540. package/dist/index97.js.map +1 -1
  541. package/dist/index98.js +3 -7
  542. package/dist/index98.js.map +1 -1
  543. package/dist/index99.js +6 -5
  544. package/dist/index99.js.map +1 -1
  545. package/package.json +1 -1
package/dist/index236.js CHANGED
@@ -1,32 +1,29 @@
1
- import { __rest as E, __assign as r } from "./index235.js";
2
- import * as a from "react";
3
- import { zeroRightClassName as I, fullWidthClassName as Z } from "./index269.js";
4
- import { effectCar as W } from "./index270.js";
5
- import { useMergeRefs as z } from "./index271.js";
6
- var l = function() {
7
- }, m = a.forwardRef(function(e, d) {
8
- var o = a.useRef(null), n = a.useState({
9
- onScrollCapture: l,
10
- onWheelCapture: l,
11
- onTouchMoveCapture: l
12
- }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
- return a.createElement(
14
- a.Fragment,
15
- null,
16
- R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
- h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
- );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: Z,
27
- zeroRight: I
28
- };
1
+ import { defaultDateLib as p } from "./index109.js";
2
+ import { dateMatchModifiers as s } from "./index31.js";
3
+ import { rangeContainsDayOfWeek as M } from "./index235.js";
4
+ import { rangeIncludesDate as l } from "./index129.js";
5
+ import { rangeOverlaps as y } from "./index237.js";
6
+ import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index131.js";
7
+ function d(n, t, f = p) {
8
+ const e = Array.isArray(t) ? t : [t];
9
+ if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
10
+ from: f.addDays(o.after, 1),
11
+ to: f.addDays(o.before, -1)
12
+ }, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
13
+ return !0;
14
+ const i = e.filter((o) => typeof o == "function");
15
+ if (i.length) {
16
+ let o = n.from;
17
+ const r = f.differenceInCalendarDays(n.to, n.from);
18
+ for (let u = 0; u <= r; u++) {
19
+ if (i.some((D) => D(o)))
20
+ return !0;
21
+ o = f.addDays(o, 1);
22
+ }
23
+ }
24
+ return !1;
25
+ }
29
26
  export {
30
- m as RemoveScroll
27
+ d as rangeContainsModifiers
31
28
  };
32
29
  //# sourceMappingURL=index236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index236.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noRelative\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n"],"names":["nothing","RemoveScroll","React","props","parentRef","ref","_a","callbacks","setCallbacks","forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","_b","Container","gapMode","rest","__rest","SideCar","containerRef","useMergeRefs","containerProps","__assign","effectCar","fullWidthClassName","zeroRightClassName"],"mappings":";;;;;AAKA,IAAIA,IAAU,WAAY;AAE1B,GAIIC,IAAeC,EAAM,WAAW,SAAUC,GAAOC,GAAW;AAC5D,MAAIC,IAAMH,EAAM,OAAO,IAAI,GACvBI,IAAKJ,EAAM,SAAS;AAAA,IACpB,iBAAiBF;AAAA,IACjB,gBAAgBA;AAAA,IAChB,oBAAoBA;AAAA,EAC5B,CAAK,GAAGO,IAAYD,EAAG,CAAC,GAAGE,IAAeF,EAAG,CAAC,GACtCG,IAAeN,EAAM,cAAcO,IAAWP,EAAM,UAAUQ,IAAYR,EAAM,WAAWS,IAAkBT,EAAM,iBAAiBU,IAAUV,EAAM,SAASW,IAASX,EAAM,QAAQY,IAAUZ,EAAM,SAASa,IAAab,EAAM,YAAYc,IAAcd,EAAM,aAAae,IAAQf,EAAM,OAAOgB,IAAiBhB,EAAM,gBAAgBiB,IAAKjB,EAAM,IAAIkB,IAAYD,MAAO,SAAS,QAAQA,GAAIE,IAAUnB,EAAM,SAASoB,IAAOC,EAAOrB,GAAO,CAAC,gBAAgB,YAAY,aAAa,mBAAmB,WAAW,UAAU,WAAW,cAAc,eAAe,SAAS,kBAAkB,MAAM,SAAS,CAAC,GACnlBsB,IAAUV,GACVW,IAAeC,EAAa,CAACtB,GAAKD,CAAS,CAAC,GAC5CwB,IAAiBC,EAASA,EAAS,CAAA,GAAIN,CAAI,GAAGhB,CAAS;AAC3D,SAAQL,EAAM;AAAA,IAAcA,EAAM;AAAA,IAAU;AAAA,IACxCW,KAAYX,EAAM,cAAcuB,GAAS,EAAE,SAASK,GAAW,iBAAiBlB,GAAiB,QAAQE,GAAQ,YAAYE,GAAY,aAAaC,GAAa,OAAOC,GAAO,cAAcV,GAAc,gBAAgB,CAAC,CAACW,GAAgB,SAASd,GAAK,SAASiB,EAAO,CAAE;AAAA,IAC/Qb,IAAgBP,EAAM,aAAaA,EAAM,SAAS,KAAKQ,CAAQ,GAAGmB,EAASA,EAAS,CAAA,GAAID,CAAc,GAAG,EAAE,KAAKF,EAAY,CAAE,CAAC,IAAMxB,EAAM,cAAcmB,GAAWQ,EAAS,CAAA,GAAID,GAAgB,EAAE,WAAWjB,GAAW,KAAKe,EAAY,CAAE,GAAGhB,CAAQ;AAAA,EAAE;AACjQ,CAAC;AACDT,EAAa,eAAe;AAAA,EACxB,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,OAAO;AACX;AACAA,EAAa,aAAa;AAAA,EACtB,WAAW8B;AAAA,EACX,WAAWC;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index236.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","matcher","rangeIncludesDate","isDatesArray","date","isDateRange","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","isDateInterval","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","totalDays","i"],"mappings":";;;;;;AAgBO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAW,MAAM,QAAQH,CAAS,IAAIA,IAAY,CAACA,CAAS;AAsClE,MApC4BG,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU,EAChC,KAAK,CAACA,MACpD,OAAOA,KAAY,YACZA,IACPH,EAAQ,OAAOG,CAAO,IACfC,EAAkBN,GAAOK,GAAS,IAAOH,CAAO,IAEvDK,EAAaF,GAASH,CAAO,IACtBG,EAAQ,KAAK,CAACG,MAASF,EAAkBN,GAAOQ,GAAM,IAAON,CAAO,CAAC,IAE5EO,EAAYJ,CAAO,IACfA,EAAQ,QAAQA,EAAQ,KACjBK,EAAcV,GAAO,EAAE,MAAMK,EAAQ,MAAM,IAAIA,EAAQ,GAAE,GAAIH,CAAO,IAExE,KAEPS,EAAgBN,CAAO,IAChBO,EAAuBZ,GAAOK,EAAQ,WAAWH,CAAO,IAE/DW,EAAeR,CAAO,IACGH,EAAQ,QAAQG,EAAQ,QAAQA,EAAQ,KAAK,IAE3DK,EAAcV,GAAO;AAAA,IACxB,MAAME,EAAQ,QAAQG,EAAQ,OAAO,CAAC;AAAA,IACtC,IAAIH,EAAQ,QAAQG,EAAQ,QAAQ,EAAE;AAAA,EAC1D,GAAmBH,CAAO,IAENY,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAEjDa,EAAgBV,CAAO,KAAKW,EAAiBX,CAAO,IAC5CS,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAE9C,EACV;AAEG,WAAO;AAEX,QAAMe,IAAmBb,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU;AACnF,MAAIY,EAAiB,QAAQ;AACzB,QAAIT,IAAOR,EAAM;AACjB,UAAMkB,IAAYhB,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI;AACvE,aAASmB,IAAI,GAAGA,KAAKD,GAAWC,KAAK;AACjC,UAAIF,EAAiB,KAAK,CAACZ,MAAYA,EAAQG,CAAI,CAAC;AAChD,eAAO;AAEX,MAAAA,IAAON,EAAQ,QAAQM,GAAM,CAAC;AAAA,IAClC;AAAA,EACJ;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
package/dist/index237.js CHANGED
@@ -1,8 +1,9 @@
1
- import { RemoveScrollSideCar as r } from "./index272.js";
2
- import { effectCar as o } from "./index270.js";
3
- import { exportSidecar as e } from "./index273.js";
4
- const f = e(o, r);
1
+ import { rangeIncludesDate as m } from "./index129.js";
2
+ import { defaultDateLib as r } from "./index109.js";
3
+ function u(o, f, l = r) {
4
+ return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
5
+ }
5
6
  export {
6
- f as default
7
+ u as rangeOverlaps
7
8
  };
8
9
  //# sourceMappingURL=index237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index237.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n"],"names":["SideCar","exportSidecar","effectCar","RemoveScrollSideCar"],"mappings":";;;AAGA,MAAAA,IAAeC,EAAcC,GAAWC,CAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index237.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate"],"mappings":";;AAYO,SAASA,EAAcC,GAAWC,GAAYC,IAAUC,GAAgB;AAC3E,SAAQC,EAAkBJ,GAAWC,EAAW,MAAM,IAAOC,CAAO,KAChEE,EAAkBJ,GAAWC,EAAW,IAAI,IAAOC,CAAO,KAC1DE,EAAkBH,GAAYD,EAAU,MAAM,IAAOE,CAAO,KAC5DE,EAAkBH,GAAYD,EAAU,IAAI,IAAOE,CAAO;AAClE;","x_google_ignoreList":[0]}
package/dist/index238.js CHANGED
@@ -1,17 +1,71 @@
1
- import h from "./index167.js";
2
- function L(i, r, u) {
3
- return s(i, r, void 0, u);
1
+ import * as i from "react";
2
+ import { useComposedRefs as O } from "./index52.js";
3
+ import { useLayoutEffect as A } from "./index68.js";
4
+ function E(n, e) {
5
+ return i.useReducer((t, r) => e[t][r] ?? t, n);
4
6
  }
5
- function s(i, r, u, e) {
6
- r && (e = new h(e.metadata), e.selectNumberingPlan(r));
7
- var f = e.type(u), n = f && f.possibleLengths() || e.possibleLengths();
8
- if (!n)
9
- return "IS_POSSIBLE";
10
- var t = i.length, l = n[0];
11
- return l === t ? "IS_POSSIBLE" : l > t ? "TOO_SHORT" : n[n.length - 1] < t ? "TOO_LONG" : n.indexOf(t, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
7
+ var T = (n) => {
8
+ const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
9
+ return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
10
+ };
11
+ T.displayName = "Presence";
12
+ function R(n) {
13
+ const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
14
+ mounted: {
15
+ UNMOUNT: "unmounted",
16
+ ANIMATION_OUT: "unmountSuspended"
17
+ },
18
+ unmountSuspended: {
19
+ MOUNT: "mounted",
20
+ ANIMATION_END: "unmounted"
21
+ },
22
+ unmounted: {
23
+ MOUNT: "mounted"
24
+ }
25
+ });
26
+ return i.useEffect(() => {
27
+ const o = l(r.current);
28
+ c.current = N === "mounted" ? o : "none";
29
+ }, [N]), A(() => {
30
+ const o = r.current, m = a.current;
31
+ if (m !== n) {
32
+ const f = c.current, u = l(o);
33
+ n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
34
+ }
35
+ }, [n, s]), A(() => {
36
+ if (e) {
37
+ let o;
38
+ const m = e.ownerDocument.defaultView ?? window, d = (u) => {
39
+ const g = l(r.current).includes(CSS.escape(u.animationName));
40
+ if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
41
+ const y = e.style.animationFillMode;
42
+ e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
43
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
44
+ });
45
+ }
46
+ }, f = (u) => {
47
+ u.target === e && (c.current = l(r.current));
48
+ };
49
+ return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
+ m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
+ };
52
+ } else
53
+ s("ANIMATION_END");
54
+ }, [e, s]), {
55
+ isPresent: ["mounted", "unmountSuspended"].includes(N),
56
+ ref: i.useCallback((o) => {
57
+ r.current = o ? getComputedStyle(o) : null, t(o);
58
+ }, [])
59
+ };
60
+ }
61
+ function l(n) {
62
+ return n?.animationName || "none";
63
+ }
64
+ function v(n) {
65
+ let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
66
+ return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
12
67
  }
13
68
  export {
14
- s as checkNumberLengthForType,
15
- L as default
69
+ T as Presence
16
70
  };
17
71
  //# sourceMappingURL=index238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index238.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport mergeArrays from './mergeArrays.js';\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n return checkNumberLengthForType(nationalNumber, country, undefined, metadata);\n}\n\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, country, type, metadata) {\n // If the exact `country` is specified, it's no necessarily already selected in `metadata`.\n // Most likely, in cases when there're multiple countries corresponding to the same\n // \"country calling code\", the \"main\" country for that \"country calling code\" will be selected.\n if (country) {\n metadata = new Metadata(metadata.metadata);\n metadata.selectNumberingPlan(country);\n }\n var type_info = metadata.type(type);\n\n // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();\n // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, country, 'MOBILE', metadata);\n }\n var mobile_type = metadata.type('MOBILE');\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());\n // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n }\n // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n var actual_length = nationalNumber.length;\n\n // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n }\n\n // We skip the first element since we've already checked it.\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n//# sourceMappingURL=checkNumberLength.js.map"],"names":["checkNumberLength","nationalNumber","country","metadata","checkNumberLengthForType","type","Metadata","type_info","possible_lengths","actual_length","minimum_length"],"mappings":";AAEe,SAASA,EAAkBC,GAAgBC,GAASC,GAAU;AAC3E,SAAOC,EAAyBH,GAAgBC,GAAS,QAAWC,CAAQ;AAC9E;AA4BO,SAASC,EAAyBH,GAAgBC,GAASG,GAAMF,GAAU;AAIhF,EAAID,MACFC,IAAW,IAAIG,EAASH,EAAS,QAAQ,GACzCA,EAAS,oBAAoBD,CAAO;AAEtC,MAAIK,IAAYJ,EAAS,KAAKE,CAAI,GAS9BG,IAAmBD,KAAaA,EAAU,gBAAe,KAAMJ,EAAS,gBAAe;AAI3F,MAAI,CAACK;AACH,WAAO;AAiCT,MAAIC,IAAgBR,EAAe,QAU/BS,IAAiBF,EAAiB,CAAC;AACvC,SAAIE,MAAmBD,IACd,gBAELC,IAAiBD,IACZ,cAELD,EAAiBA,EAAiB,SAAS,CAAC,IAAIC,IAC3C,aAIFD,EAAiB,QAAQC,GAAe,CAAC,KAAK,IAAI,gBAAgB;AAC3E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index238.js","sources":["../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","mayWarn"],"mappings":"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","x_google_ignoreList":[0]}
package/dist/index239.js CHANGED
@@ -1,158 +1,184 @@
1
- function s(t) {
2
- "@babel/helpers - typeof";
3
- return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
4
- return typeof e;
5
- } : function(e) {
6
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
7
- }, s(t);
8
- }
9
- function f(t, e) {
10
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
11
- }
12
- function l(t, e) {
13
- for (var r = 0; r < e.length; r++) {
14
- var n = e[r];
15
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, g(n.key), n);
16
- }
17
- }
18
- function p(t, e, r) {
19
- return e && l(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
20
- }
21
- function g(t) {
22
- var e = x(t, "string");
23
- return s(e) == "symbol" ? e : e + "";
24
- }
25
- function x(t, e) {
26
- if (s(t) != "object" || !t) return t;
27
- var r = t[Symbol.toPrimitive];
28
- if (r !== void 0) {
29
- var n = r.call(t, e);
30
- if (s(n) != "object") return n;
31
- throw new TypeError("@@toPrimitive must return a primitive value.");
32
- }
33
- return String(t);
34
- }
35
- var y = /* @__PURE__ */ (function() {
36
- function t() {
37
- f(this, t);
38
- }
39
- return p(t, [{
40
- key: "parse",
41
- value: function(r) {
42
- if (this.context = [{
43
- or: !0,
44
- instructions: []
45
- }], this.parsePattern(r), this.context.length !== 1)
46
- throw new Error("Non-finalized contexts left when pattern parse ended");
47
- var n = this.context[0], i = n.branches, o = n.instructions;
48
- if (i)
49
- return {
50
- op: "|",
51
- args: i.concat([a(o)])
52
- };
53
- if (o.length === 0)
54
- throw new Error("Pattern is required");
55
- return o.length === 1 ? o[0] : o;
56
- }
57
- }, {
58
- key: "startContext",
59
- value: function(r) {
60
- this.context.push(r);
61
- }
62
- }, {
63
- key: "endContext",
64
- value: function() {
65
- this.context.pop();
66
- }
67
- }, {
68
- key: "getContext",
69
- value: function() {
70
- return this.context[this.context.length - 1];
1
+ import * as s from "react";
2
+ import { composeEventHandlers as p } from "./index50.js";
3
+ import { createCollection as H } from "./index58.js";
4
+ import { useComposedRefs as V } from "./index52.js";
5
+ import { createContextScope as z } from "./index59.js";
6
+ import { useId as q } from "./index63.js";
7
+ import { Primitive as G } from "./index51.js";
8
+ import { useCallbackRef as J } from "./index53.js";
9
+ import { useControllableState as Q } from "./index67.js";
10
+ import { useDirection as W } from "./index60.js";
11
+ import { j as d } from "./index28.js";
12
+ var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [y, N, Z] = H(I), [$, Fe] = z(
13
+ I,
14
+ [Z]
15
+ ), [ee, oe] = $(I), O = s.forwardRef(
16
+ (e, r) => /* @__PURE__ */ d.jsx(y.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(y.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
17
+ );
18
+ O.displayName = I;
19
+ var te = s.forwardRef((e, r) => {
20
+ const {
21
+ __scopeRovingFocusGroup: c,
22
+ orientation: o,
23
+ loop: T = !1,
24
+ dir: w,
25
+ currentTabStopId: v,
26
+ defaultCurrentTabStopId: C,
27
+ onCurrentTabStopIdChange: S,
28
+ onEntryFocus: m,
29
+ preventScrollOnEntryFocus: u = !1,
30
+ ...b
31
+ } = e, F = s.useRef(null), g = V(r, F), R = W(w), [E, t] = Q({
32
+ prop: v,
33
+ defaultProp: C ?? null,
34
+ onChange: S,
35
+ caller: I
36
+ }), [i, h] = s.useState(!1), a = J(m), l = N(c), x = s.useRef(!1), [k, D] = s.useState(0);
37
+ return s.useEffect(() => {
38
+ const n = F.current;
39
+ if (n)
40
+ return n.addEventListener(_, a), () => n.removeEventListener(_, a);
41
+ }, [a]), /* @__PURE__ */ d.jsx(
42
+ ee,
43
+ {
44
+ scope: c,
45
+ orientation: o,
46
+ dir: R,
47
+ loop: T,
48
+ currentTabStopId: E,
49
+ onItemFocus: s.useCallback(
50
+ (n) => t(n),
51
+ [t]
52
+ ),
53
+ onItemShiftTab: s.useCallback(() => h(!0), []),
54
+ onFocusableItemAdd: s.useCallback(
55
+ () => D((n) => n + 1),
56
+ []
57
+ ),
58
+ onFocusableItemRemove: s.useCallback(
59
+ () => D((n) => n - 1),
60
+ []
61
+ ),
62
+ children: /* @__PURE__ */ d.jsx(
63
+ G.div,
64
+ {
65
+ tabIndex: i || k === 0 ? -1 : 0,
66
+ "data-orientation": o,
67
+ ...b,
68
+ ref: g,
69
+ style: { outline: "none", ...e.style },
70
+ onMouseDown: p(e.onMouseDown, () => {
71
+ x.current = !0;
72
+ }),
73
+ onFocus: p(e.onFocus, (n) => {
74
+ const L = !x.current;
75
+ if (n.target === n.currentTarget && L && !i) {
76
+ const P = new CustomEvent(_, X);
77
+ if (n.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
78
+ const A = l().filter((f) => f.focusable), U = A.find((f) => f.active), B = A.find((f) => f.id === E), Y = [U, B, ...A].filter(
79
+ Boolean
80
+ ).map((f) => f.ref.current);
81
+ M(Y, u);
82
+ }
83
+ }
84
+ x.current = !1;
85
+ }),
86
+ onBlur: p(e.onBlur, () => h(!1))
87
+ }
88
+ )
71
89
  }
72
- }, {
73
- key: "parsePattern",
74
- value: function(r) {
75
- if (!r)
76
- throw new Error("Pattern is required");
77
- var n = r.match(w);
78
- if (!n) {
79
- if (C.test(r))
80
- throw new Error("Illegal characters found in a pattern: ".concat(r));
81
- this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
82
- return;
90
+ );
91
+ }), K = "RovingFocusGroupItem", j = s.forwardRef(
92
+ (e, r) => {
93
+ const {
94
+ __scopeRovingFocusGroup: c,
95
+ focusable: o = !0,
96
+ active: T = !1,
97
+ tabStopId: w,
98
+ children: v,
99
+ ...C
100
+ } = e, S = q(), m = w || S, u = oe(K, c), b = u.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = u;
101
+ return s.useEffect(() => {
102
+ if (o)
103
+ return g(), () => R();
104
+ }, [o, g, R]), /* @__PURE__ */ d.jsx(
105
+ y.ItemSlot,
106
+ {
107
+ scope: c,
108
+ id: m,
109
+ focusable: o,
110
+ active: T,
111
+ children: /* @__PURE__ */ d.jsx(
112
+ G.span,
113
+ {
114
+ tabIndex: b ? 0 : -1,
115
+ "data-orientation": u.orientation,
116
+ ...C,
117
+ ref: r,
118
+ onMouseDown: p(e.onMouseDown, (t) => {
119
+ o ? u.onItemFocus(m) : t.preventDefault();
120
+ }),
121
+ onFocus: p(e.onFocus, () => u.onItemFocus(m)),
122
+ onKeyDown: p(e.onKeyDown, (t) => {
123
+ if (t.key === "Tab" && t.shiftKey) {
124
+ u.onItemShiftTab();
125
+ return;
126
+ }
127
+ if (t.target !== t.currentTarget) return;
128
+ const i = se(t, u.orientation, u.dir);
129
+ if (i !== void 0) {
130
+ if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
131
+ t.preventDefault();
132
+ let a = F().filter((l) => l.focusable).map((l) => l.ref.current);
133
+ if (i === "last") a.reverse();
134
+ else if (i === "prev" || i === "next") {
135
+ i === "prev" && a.reverse();
136
+ const l = a.indexOf(t.currentTarget);
137
+ a = u.loop ? ce(a, l + 1) : a.slice(l + 1);
138
+ }
139
+ setTimeout(() => M(a));
140
+ }
141
+ }),
142
+ children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
143
+ }
144
+ )
83
145
  }
84
- var i = n[1], o = r.slice(0, n.index), c = r.slice(n.index + i.length);
85
- switch (i) {
86
- case "(?:":
87
- o && this.parsePattern(o), this.startContext({
88
- or: !0,
89
- instructions: [],
90
- branches: []
91
- });
92
- break;
93
- case ")":
94
- if (!this.getContext().or)
95
- throw new Error('")" operator must be preceded by "(?:" operator');
96
- if (o && this.parsePattern(o), this.getContext().instructions.length === 0)
97
- throw new Error('No instructions found after "|" operator in an "or" group');
98
- var h = this.getContext(), u = h.branches;
99
- u.push(a(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
100
- op: "|",
101
- args: u
102
- });
103
- break;
104
- case "|":
105
- if (!this.getContext().or)
106
- throw new Error('"|" operator can only be used inside "or" groups');
107
- if (o && this.parsePattern(o), !this.getContext().branches)
108
- if (this.context.length === 1)
109
- this.getContext().branches = [];
110
- else
111
- throw new Error('"branches" not found in an "or" group context');
112
- this.getContext().branches.push(a(this.getContext().instructions)), this.getContext().instructions = [];
113
- break;
114
- case "[":
115
- o && this.parsePattern(o), this.startContext({
116
- oneOfSet: !0
117
- });
118
- break;
119
- case "]":
120
- if (!this.getContext().oneOfSet)
121
- throw new Error('"]" operator must be preceded by "[" operator');
122
- this.endContext(), this.getContext().instructions.push({
123
- op: "[]",
124
- args: b(o)
125
- });
126
- break;
127
- /* istanbul ignore next */
128
- default:
129
- throw new Error("Unknown operator: ".concat(i));
130
- }
131
- c && this.parsePattern(c);
132
- }
133
- }]);
134
- })();
135
- function b(t) {
136
- for (var e = [], r = 0; r < t.length; ) {
137
- if (t[r] === "-") {
138
- if (r === 0 || r === t.length - 1)
139
- throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
140
- for (var n = t[r - 1].charCodeAt(0) + 1, i = t[r + 1].charCodeAt(0) - 1, o = n; o <= i; )
141
- e.push(String.fromCharCode(o)), o++;
142
- } else
143
- e.push(t[r]);
144
- r++;
146
+ );
145
147
  }
146
- return e;
147
- }
148
- var C = /[\(\)\[\]\?\:\|]/, w = new RegExp(
149
- // any of:
150
- "(\\||\\(\\?\\:|\\)|\\[|\\])"
151
148
  );
152
- function a(t) {
153
- return t.length === 1 ? t[0] : t;
149
+ j.displayName = K;
150
+ var re = {
151
+ ArrowLeft: "prev",
152
+ ArrowUp: "prev",
153
+ ArrowRight: "next",
154
+ ArrowDown: "next",
155
+ PageUp: "first",
156
+ Home: "first",
157
+ PageDown: "last",
158
+ End: "last"
159
+ };
160
+ function ne(e, r) {
161
+ return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
162
+ }
163
+ function se(e, r, c) {
164
+ const o = ne(e.key, c);
165
+ if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
166
+ return re[o];
167
+ }
168
+ function M(e, r = !1) {
169
+ const c = document.activeElement;
170
+ for (const o of e)
171
+ if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
172
+ }
173
+ function ce(e, r) {
174
+ return e.map((c, o) => e[(r + o) % e.length]);
154
175
  }
176
+ var ge = O, Re = j;
155
177
  export {
156
- y as default
178
+ Re as Item,
179
+ ge as Root,
180
+ O as RovingFocusGroup,
181
+ j as RovingFocusGroupItem,
182
+ Fe as createRovingFocusGroupScope
157
183
  };
158
184
  //# sourceMappingURL=index239.js.map