@rpcbase/ui 0.226.0 → 0.227.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 (719) hide show
  1. package/dist/components/PhoneNumberInput/index.d.ts +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
  4. package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
  5. package/dist/components/PhoneNumberInput/types.d.ts +4 -4
  6. package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
  7. package/dist/index100.js +4 -11
  8. package/dist/index100.js.map +1 -1
  9. package/dist/index101.js +8 -68
  10. package/dist/index101.js.map +1 -1
  11. package/dist/index102.js +6 -38
  12. package/dist/index102.js.map +1 -1
  13. package/dist/index103.js +5 -14
  14. package/dist/index103.js.map +1 -1
  15. package/dist/index104.js +4 -23
  16. package/dist/index104.js.map +1 -1
  17. package/dist/index105.js +6 -110
  18. package/dist/index105.js.map +1 -1
  19. package/dist/index106.js +146 -13
  20. package/dist/index106.js.map +1 -1
  21. package/dist/index107.js +39 -4
  22. package/dist/index107.js.map +1 -1
  23. package/dist/index108.js +5 -4
  24. package/dist/index108.js.map +1 -1
  25. package/dist/index109.js +8 -5
  26. package/dist/index109.js.map +1 -1
  27. package/dist/index110.js +13 -11
  28. package/dist/index110.js.map +1 -1
  29. package/dist/index111.js +13 -19
  30. package/dist/index111.js.map +1 -1
  31. package/dist/index112.js +8 -13
  32. package/dist/index112.js.map +1 -1
  33. package/dist/index113.js +31 -261
  34. package/dist/index113.js.map +1 -1
  35. package/dist/index114.js +10 -4
  36. package/dist/index114.js.map +1 -1
  37. package/dist/index115.js +11 -28
  38. package/dist/index115.js.map +1 -1
  39. package/dist/index116.js +8 -126
  40. package/dist/index116.js.map +1 -1
  41. package/dist/index117.js +13 -5
  42. package/dist/index117.js.map +1 -1
  43. package/dist/index118.js +101 -78
  44. package/dist/index118.js.map +1 -1
  45. package/dist/index119.js +20 -67
  46. package/dist/index119.js.map +1 -1
  47. package/dist/index120.js +53 -8
  48. package/dist/index120.js.map +1 -1
  49. package/dist/index121.js +73 -16
  50. package/dist/index121.js.map +1 -1
  51. package/dist/index122.js +9 -92
  52. package/dist/index122.js.map +1 -1
  53. package/dist/index123.js +17 -62
  54. package/dist/index123.js.map +1 -1
  55. package/dist/index124.js +15 -44
  56. package/dist/index124.js.map +1 -1
  57. package/dist/index125.js +24 -52
  58. package/dist/index125.js.map +1 -1
  59. package/dist/index126.js +6 -4
  60. package/dist/index126.js.map +1 -1
  61. package/dist/index127.js +5 -4
  62. package/dist/index127.js.map +1 -1
  63. package/dist/index128.js +23 -15
  64. package/dist/index128.js.map +1 -1
  65. package/dist/index129.js +35 -6
  66. package/dist/index129.js.map +1 -1
  67. package/dist/index130.js +16 -8
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +6 -16
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -4
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +4 -4
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +4 -5
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +4 -5
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +3 -4
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +6 -4
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +24 -7
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +7 -24
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index140.js +6 -6
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +5 -4
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +3 -6
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +3 -5
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +4 -4
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +3 -5
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +4 -4
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +3 -8
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +3 -5
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +3 -4
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index150.js +11 -4
  108. package/dist/index150.js.map +1 -1
  109. package/dist/index151.js +68 -6
  110. package/dist/index151.js.map +1 -1
  111. package/dist/index152.js +35 -143
  112. package/dist/index152.js.map +1 -1
  113. package/dist/index153.js +13 -39
  114. package/dist/index153.js.map +1 -1
  115. package/dist/index154.js +23 -4
  116. package/dist/index154.js.map +1 -1
  117. package/dist/index155.js +108 -5
  118. package/dist/index155.js.map +1 -1
  119. package/dist/index156.js +13 -14
  120. package/dist/index156.js.map +1 -1
  121. package/dist/index157.js +4 -13
  122. package/dist/index157.js.map +1 -1
  123. package/dist/index158.js +4 -8
  124. package/dist/index158.js.map +1 -1
  125. package/dist/index159.js +5 -32
  126. package/dist/index159.js.map +1 -1
  127. package/dist/index160.js +11 -10
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +18 -9
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +13 -9
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +258 -10
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +4 -101
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +28 -20
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js +122 -49
  140. package/dist/index166.js.map +1 -1
  141. package/dist/index167.js +5 -72
  142. package/dist/index167.js.map +1 -1
  143. package/dist/index168.js +78 -9
  144. package/dist/index168.js.map +1 -1
  145. package/dist/index169.js +64 -18
  146. package/dist/index169.js.map +1 -1
  147. package/dist/index170.js +8 -16
  148. package/dist/index170.js.map +1 -1
  149. package/dist/index171.js +16 -24
  150. package/dist/index171.js.map +1 -1
  151. package/dist/index172.js +92 -6
  152. package/dist/index172.js.map +1 -1
  153. package/dist/index173.js +65 -5
  154. package/dist/index173.js.map +1 -1
  155. package/dist/index174.js +43 -21
  156. package/dist/index174.js.map +1 -1
  157. package/dist/index175.js +6 -35
  158. package/dist/index175.js.map +1 -1
  159. package/dist/index176.js +69 -16
  160. package/dist/index176.js.map +1 -1
  161. package/dist/index177.js +2 -7
  162. package/dist/index177.js.map +1 -1
  163. package/dist/index178.js +363 -4
  164. package/dist/index178.js.map +1 -1
  165. package/dist/index179.js +261 -4
  166. package/dist/index179.js.map +1 -1
  167. package/dist/index18.js +377 -414
  168. package/dist/index18.js.map +1 -1
  169. package/dist/index180.js +60 -4
  170. package/dist/index180.js.map +1 -1
  171. package/dist/index181.js +46 -4
  172. package/dist/index181.js.map +1 -1
  173. package/dist/index182.js +169 -3
  174. package/dist/index182.js.map +1 -1
  175. package/dist/index183.js +109 -6
  176. package/dist/index183.js.map +1 -1
  177. package/dist/index184.js +25 -24
  178. package/dist/index184.js.map +1 -1
  179. package/dist/index185.js +8 -8
  180. package/dist/index185.js.map +1 -1
  181. package/dist/index186.js +4 -6
  182. package/dist/index186.js.map +1 -1
  183. package/dist/index187.js +5 -5
  184. package/dist/index187.js.map +1 -1
  185. package/dist/index188.js +4 -3
  186. package/dist/index188.js.map +1 -1
  187. package/dist/index189.js +466 -3
  188. package/dist/index189.js.map +1 -1
  189. package/dist/index190.js +185 -4
  190. package/dist/index190.js.map +1 -1
  191. package/dist/index191.js +107 -3
  192. package/dist/index191.js.map +1 -1
  193. package/dist/index192.js +262 -4
  194. package/dist/index192.js.map +1 -1
  195. package/dist/index193.js +9 -3
  196. package/dist/index193.js.map +1 -1
  197. package/dist/index194.js +42 -3
  198. package/dist/index194.js.map +1 -1
  199. package/dist/index195.js +4 -3
  200. package/dist/index195.js.map +1 -1
  201. package/dist/index196.js +20 -14
  202. package/dist/index196.js.map +1 -1
  203. package/dist/index197.js +58 -146
  204. package/dist/index197.js.map +1 -1
  205. package/dist/index198.js +6 -30
  206. package/dist/index198.js.map +1 -1
  207. package/dist/index199.js +11 -9
  208. package/dist/index199.js.map +1 -1
  209. package/dist/index200.js +46 -44
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +4 -12
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +28 -43
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +14 -93
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index204.js +5 -86
  218. package/dist/index204.js.map +1 -1
  219. package/dist/index205.js +21 -105
  220. package/dist/index205.js.map +1 -1
  221. package/dist/index206.js +50 -51
  222. package/dist/index206.js.map +1 -1
  223. package/dist/index207.js +25 -11
  224. package/dist/index207.js.map +1 -1
  225. package/dist/index208.js +41 -37
  226. package/dist/index208.js.map +1 -1
  227. package/dist/index209.js +39 -8
  228. package/dist/index209.js.map +1 -1
  229. package/dist/index210.js +45 -117
  230. package/dist/index210.js.map +1 -1
  231. package/dist/index211.js +20 -17
  232. package/dist/index211.js.map +1 -1
  233. package/dist/index212.js +69 -14
  234. package/dist/index212.js.map +1 -1
  235. package/dist/index213.js +17 -3
  236. package/dist/index213.js.map +1 -1
  237. package/dist/index214.js +11 -36
  238. package/dist/index214.js.map +1 -1
  239. package/dist/index215.js +27 -20
  240. package/dist/index215.js.map +1 -1
  241. package/dist/index216.js +13 -9
  242. package/dist/index216.js.map +1 -1
  243. package/dist/index217.js +18 -8
  244. package/dist/index217.js.map +1 -1
  245. package/dist/index218.js +35 -18
  246. package/dist/index218.js.map +1 -1
  247. package/dist/index219.js +260 -26
  248. package/dist/index219.js.map +1 -1
  249. package/dist/index220.js +277 -15
  250. package/dist/index220.js.map +1 -1
  251. package/dist/index221.js +66 -64
  252. package/dist/index221.js.map +1 -1
  253. package/dist/index222.js +99 -8
  254. package/dist/index222.js.map +1 -1
  255. package/dist/index223.js +82 -10
  256. package/dist/index223.js.map +1 -1
  257. package/dist/index224.js +3 -8
  258. package/dist/index224.js.map +1 -1
  259. package/dist/index225.js +29 -5
  260. package/dist/index225.js.map +1 -1
  261. package/dist/index226.js +16 -13
  262. package/dist/index226.js.map +1 -1
  263. package/dist/index227.js +35 -4
  264. package/dist/index227.js.map +1 -1
  265. package/dist/index228.js +16 -3
  266. package/dist/index228.js.map +1 -1
  267. package/dist/index229.js +3 -99
  268. package/dist/index229.js.map +1 -1
  269. package/dist/index230.js +24 -27
  270. package/dist/index230.js.map +1 -1
  271. package/dist/index231.js +27 -50
  272. package/dist/index231.js.map +1 -1
  273. package/dist/index232.js +4 -18
  274. package/dist/index232.js.map +1 -1
  275. package/dist/index233.js +78 -5
  276. package/dist/index233.js.map +1 -1
  277. package/dist/index234.js +260 -113
  278. package/dist/index234.js.map +1 -1
  279. package/dist/index235.js +11 -27
  280. package/dist/index235.js.map +1 -1
  281. package/dist/index236.js +10 -32
  282. package/dist/index236.js.map +1 -1
  283. package/dist/index237.js +25 -73
  284. package/dist/index237.js.map +1 -1
  285. package/dist/index238.js +14 -260
  286. package/dist/index238.js.map +1 -1
  287. package/dist/index239.js +121 -24
  288. package/dist/index239.js.map +1 -1
  289. package/dist/index240.js +5 -6
  290. package/dist/index240.js.map +1 -1
  291. package/dist/index241.js +40 -142
  292. package/dist/index241.js.map +1 -1
  293. package/dist/index242.js +57 -53
  294. package/dist/index242.js.map +1 -1
  295. package/dist/index243.js +13 -49
  296. package/dist/index243.js.map +1 -1
  297. package/dist/index244.js +8 -15
  298. package/dist/index244.js.map +1 -1
  299. package/dist/index245.js +4 -132
  300. package/dist/index245.js.map +1 -1
  301. package/dist/index246.js +3 -8
  302. package/dist/index246.js.map +1 -1
  303. package/dist/index247.js +10 -4
  304. package/dist/index247.js.map +1 -1
  305. package/dist/index248.js +8 -4
  306. package/dist/index248.js.map +1 -1
  307. package/dist/index249.js +133 -11
  308. package/dist/index249.js.map +1 -1
  309. package/dist/index250.js +397 -19
  310. package/dist/index250.js.map +1 -1
  311. package/dist/index251.js +53 -20
  312. package/dist/index251.js.map +1 -1
  313. package/dist/index252.js +11 -11
  314. package/dist/index252.js.map +1 -1
  315. package/dist/index253.js +11 -50
  316. package/dist/index253.js.map +1 -1
  317. package/dist/index254.js +58 -16
  318. package/dist/index254.js.map +1 -1
  319. package/dist/index255.js +8 -21
  320. package/dist/index255.js.map +1 -1
  321. package/dist/index256.js +64 -49
  322. package/dist/index256.js.map +1 -1
  323. package/dist/index257.js +19 -25
  324. package/dist/index257.js.map +1 -1
  325. package/dist/index258.js +16 -41
  326. package/dist/index258.js.map +1 -1
  327. package/dist/index259.js +5 -39
  328. package/dist/index259.js.map +1 -1
  329. package/dist/index260.js +6 -45
  330. package/dist/index260.js.map +1 -1
  331. package/dist/index261.js +6 -20
  332. package/dist/index261.js.map +1 -1
  333. package/dist/index262.js +4 -70
  334. package/dist/index262.js.map +1 -1
  335. package/dist/index263.js +6 -17
  336. package/dist/index263.js.map +1 -1
  337. package/dist/index264.js +16 -11
  338. package/dist/index264.js.map +1 -1
  339. package/dist/index265.js +4 -13
  340. package/dist/index265.js.map +1 -1
  341. package/dist/index266.js +4 -18
  342. package/dist/index266.js.map +1 -1
  343. package/dist/index267.js +12 -36
  344. package/dist/index267.js.map +1 -1
  345. package/dist/index268.js +9 -278
  346. package/dist/index268.js.map +1 -1
  347. package/dist/index269.js +13 -68
  348. package/dist/index269.js.map +1 -1
  349. package/dist/index270.js +13 -83
  350. package/dist/index270.js.map +1 -1
  351. package/dist/index271.js +4 -3
  352. package/dist/index271.js.map +1 -1
  353. package/dist/index272.js +5 -29
  354. package/dist/index272.js.map +1 -1
  355. package/dist/index273.js +6 -16
  356. package/dist/index273.js.map +1 -1
  357. package/dist/index274.js +6 -35
  358. package/dist/index274.js.map +1 -1
  359. package/dist/index275.js +52 -14
  360. package/dist/index275.js.map +1 -1
  361. package/dist/index276.js +8 -3
  362. package/dist/index276.js.map +1 -1
  363. package/dist/index277.js +4 -26
  364. package/dist/index277.js.map +1 -1
  365. package/dist/index278.js +5 -4
  366. package/dist/index278.js.map +1 -1
  367. package/dist/index279.js +8 -78
  368. package/dist/index279.js.map +1 -1
  369. package/dist/index280.js +4 -269
  370. package/dist/index280.js.map +1 -1
  371. package/dist/index281.js +4 -11
  372. package/dist/index281.js.map +1 -1
  373. package/dist/index282.js +3 -10
  374. package/dist/index282.js.map +1 -1
  375. package/dist/index283.js +10 -25
  376. package/dist/index283.js.map +1 -1
  377. package/dist/index284.js +9 -16
  378. package/dist/index284.js.map +1 -1
  379. package/dist/index285.js +9 -125
  380. package/dist/index285.js.map +1 -1
  381. package/dist/index286.js +10 -5
  382. package/dist/index286.js.map +1 -1
  383. package/dist/index287.js +10 -40
  384. package/dist/index287.js.map +1 -1
  385. package/dist/index288.js +9 -65
  386. package/dist/index288.js.map +1 -1
  387. package/dist/index289.js +7 -14
  388. package/dist/index289.js.map +1 -1
  389. package/dist/index290.js +5 -7
  390. package/dist/index290.js.map +1 -1
  391. package/dist/index291.js +4 -5
  392. package/dist/index291.js.map +1 -1
  393. package/dist/index292.js +5 -3
  394. package/dist/index292.js.map +1 -1
  395. package/dist/index293.js +6 -10
  396. package/dist/index293.js.map +1 -1
  397. package/dist/index294.js +5 -7
  398. package/dist/index294.js.map +1 -1
  399. package/dist/index295.js +14 -397
  400. package/dist/index295.js.map +1 -1
  401. package/dist/index296.js +7 -52
  402. package/dist/index296.js.map +1 -1
  403. package/dist/index297.js +10 -11
  404. package/dist/index297.js.map +1 -1
  405. package/dist/index298.js +10 -11
  406. package/dist/index298.js.map +1 -1
  407. package/dist/index299.js +21 -58
  408. package/dist/index299.js.map +1 -1
  409. package/dist/index300.js +10 -8
  410. package/dist/index300.js.map +1 -1
  411. package/dist/index301.js +9 -66
  412. package/dist/index301.js.map +1 -1
  413. package/dist/index302.js +9 -19
  414. package/dist/index302.js.map +1 -1
  415. package/dist/index303.js +4 -16
  416. package/dist/index303.js.map +1 -1
  417. package/dist/index304.js +5 -5
  418. package/dist/index304.js.map +1 -1
  419. package/dist/index305.js +15 -4
  420. package/dist/index305.js.map +1 -1
  421. package/dist/index306.js +9 -6
  422. package/dist/index306.js.map +1 -1
  423. package/dist/index307.js +18 -4
  424. package/dist/index307.js.map +1 -1
  425. package/dist/index308.js +15 -6
  426. package/dist/index308.js.map +1 -1
  427. package/dist/index309.js +12 -16
  428. package/dist/index309.js.map +1 -1
  429. package/dist/index31.js +24 -24
  430. package/dist/index310.js +29 -4
  431. package/dist/index310.js.map +1 -1
  432. package/dist/index311.js +12 -4
  433. package/dist/index311.js.map +1 -1
  434. package/dist/index312.js +25 -12
  435. package/dist/index312.js.map +1 -1
  436. package/dist/index313.js +5 -9
  437. package/dist/index313.js.map +1 -1
  438. package/dist/index314.js +8 -13
  439. package/dist/index314.js.map +1 -1
  440. package/dist/index315.js +11 -13
  441. package/dist/index315.js.map +1 -1
  442. package/dist/index316.js +8 -4
  443. package/dist/index316.js.map +1 -1
  444. package/dist/index317.js +13 -5
  445. package/dist/index317.js.map +1 -1
  446. package/dist/index318.js +3 -6
  447. package/dist/index318.js.map +1 -1
  448. package/dist/index319.js +3 -5
  449. package/dist/index319.js.map +1 -1
  450. package/dist/index32.js +3 -3
  451. package/dist/index320.js +16 -53
  452. package/dist/index320.js.map +1 -1
  453. package/dist/index321.js +5 -8
  454. package/dist/index321.js.map +1 -1
  455. package/dist/index322.js +51 -4
  456. package/dist/index322.js.map +1 -1
  457. package/dist/index323.js +122 -4
  458. package/dist/index323.js.map +1 -1
  459. package/dist/index324.js +32 -8
  460. package/dist/index324.js.map +1 -1
  461. package/dist/index325.js +73 -4
  462. package/dist/index325.js.map +1 -1
  463. package/dist/index326.js +142 -4
  464. package/dist/index326.js.map +1 -1
  465. package/dist/index327.js +61 -3
  466. package/dist/index327.js.map +1 -1
  467. package/dist/index328.js +49 -10
  468. package/dist/index328.js.map +1 -1
  469. package/dist/index329.js +15 -10
  470. package/dist/index329.js.map +1 -1
  471. package/dist/index330.js +8 -9
  472. package/dist/index330.js.map +1 -1
  473. package/dist/index331.js +5 -11
  474. package/dist/index331.js.map +1 -1
  475. package/dist/index332.js +11 -10
  476. package/dist/index332.js.map +1 -1
  477. package/dist/index333.js +21 -9
  478. package/dist/index333.js.map +1 -1
  479. package/dist/index334.js +13 -6
  480. package/dist/index334.js.map +1 -1
  481. package/dist/index335.js +154 -5
  482. package/dist/index335.js.map +1 -1
  483. package/dist/index336.js +30 -4
  484. package/dist/index336.js.map +1 -1
  485. package/dist/index337.js +9 -5
  486. package/dist/index337.js.map +1 -1
  487. package/dist/index338.js +48 -6
  488. package/dist/index338.js.map +1 -1
  489. package/dist/index339.js +11 -5
  490. package/dist/index339.js.map +1 -1
  491. package/dist/index34.js +4 -4
  492. package/dist/index340.js +42 -14
  493. package/dist/index340.js.map +1 -1
  494. package/dist/index341.js +95 -7
  495. package/dist/index341.js.map +1 -1
  496. package/dist/index342.js +85 -9
  497. package/dist/index342.js.map +1 -1
  498. package/dist/index343.js +104 -9
  499. package/dist/index343.js.map +1 -1
  500. package/dist/index344.js +52 -21
  501. package/dist/index344.js.map +1 -1
  502. package/dist/index345.js +11 -10
  503. package/dist/index345.js.map +1 -1
  504. package/dist/index346.js +37 -9
  505. package/dist/index346.js.map +1 -1
  506. package/dist/index347.js +7 -8
  507. package/dist/index347.js.map +1 -1
  508. package/dist/index348.js +116 -4
  509. package/dist/index348.js.map +1 -1
  510. package/dist/index349.js +17 -5
  511. package/dist/index349.js.map +1 -1
  512. package/dist/index35.js +5 -5
  513. package/dist/index350.js +14 -15
  514. package/dist/index350.js.map +1 -1
  515. package/dist/index351.js +3 -9
  516. package/dist/index351.js.map +1 -1
  517. package/dist/index352.js +34 -16
  518. package/dist/index352.js.map +1 -1
  519. package/dist/index353.js +20 -15
  520. package/dist/index353.js.map +1 -1
  521. package/dist/index354.js +9 -12
  522. package/dist/index354.js.map +1 -1
  523. package/dist/index355.js +8 -29
  524. package/dist/index355.js.map +1 -1
  525. package/dist/index356.js +18 -11
  526. package/dist/index356.js.map +1 -1
  527. package/dist/index357.js +26 -23
  528. package/dist/index357.js.map +1 -1
  529. package/dist/index358.js +16 -5
  530. package/dist/index358.js.map +1 -1
  531. package/dist/index359.js +4 -21
  532. package/dist/index359.js.map +1 -1
  533. package/dist/index36.js +10 -10
  534. package/dist/index360.js +11 -8
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +16 -25
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +5 -26
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +19 -136
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +44 -12
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +15 -224
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +5 -4
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +199 -18
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +76 -76
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +5 -12
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js +3 -3
  555. package/dist/index370.js +18 -4
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +12 -77
  558. package/dist/index371.js.map +1 -1
  559. package/dist/index372.js +7 -199
  560. package/dist/index372.js.map +1 -1
  561. package/dist/index373.js +25 -71
  562. package/dist/index373.js.map +1 -1
  563. package/dist/index374.js +27 -9
  564. package/dist/index374.js.map +1 -1
  565. package/dist/index375.js +137 -16
  566. package/dist/index375.js.map +1 -1
  567. package/dist/index376.js +12 -15
  568. package/dist/index376.js.map +1 -1
  569. package/dist/index377.js +227 -4
  570. package/dist/index377.js.map +1 -1
  571. package/dist/index378.js +3 -11
  572. package/dist/index378.js.map +1 -1
  573. package/dist/index379.js +19 -5
  574. package/dist/index379.js.map +1 -1
  575. package/dist/index38.js +4 -4
  576. package/dist/index380.js +76 -19
  577. package/dist/index380.js.map +1 -1
  578. package/dist/index381.js +12 -45
  579. package/dist/index381.js.map +1 -1
  580. package/dist/index382.js +4 -18
  581. package/dist/index382.js.map +1 -1
  582. package/dist/index383.js +71 -4
  583. package/dist/index383.js.map +1 -1
  584. package/dist/index384.js +9 -5
  585. package/dist/index384.js.map +1 -1
  586. package/dist/index385.js +16 -18
  587. package/dist/index385.js.map +1 -1
  588. package/dist/index386.js +20 -12
  589. package/dist/index386.js.map +1 -1
  590. package/dist/index387.js +3 -15
  591. package/dist/index387.js.map +1 -1
  592. package/dist/index388.js +3 -492
  593. package/dist/index388.js.map +1 -1
  594. package/dist/index389.js +5 -3
  595. package/dist/index389.js.map +1 -1
  596. package/dist/index39.js +5 -5
  597. package/dist/index390.js +5 -3
  598. package/dist/index390.js.map +1 -1
  599. package/dist/index391.js +4 -5
  600. package/dist/index391.js.map +1 -1
  601. package/dist/index392.js +15 -4
  602. package/dist/index392.js.map +1 -1
  603. package/dist/index393.js +9 -4
  604. package/dist/index393.js.map +1 -1
  605. package/dist/index394.js +5 -15
  606. package/dist/index394.js.map +1 -1
  607. package/dist/index395.js +4 -8
  608. package/dist/index395.js.map +1 -1
  609. package/dist/index396.js +545 -5
  610. package/dist/index396.js.map +1 -1
  611. package/dist/index397.js +47 -5
  612. package/dist/index397.js.map +1 -1
  613. package/dist/index398.js +15 -543
  614. package/dist/index398.js.map +1 -1
  615. package/dist/index399.js +6 -47
  616. package/dist/index399.js.map +1 -1
  617. package/dist/index40.js +3 -3
  618. package/dist/index400.js +7 -17
  619. package/dist/index400.js.map +1 -1
  620. package/dist/index401.js +6 -5
  621. package/dist/index401.js.map +1 -1
  622. package/dist/index402.js +7 -7
  623. package/dist/index402.js.map +1 -1
  624. package/dist/index403.js +11 -6
  625. package/dist/index403.js.map +1 -1
  626. package/dist/index404.js +8 -7
  627. package/dist/index404.js.map +1 -1
  628. package/dist/index405.js +12 -11
  629. package/dist/index405.js.map +1 -1
  630. package/dist/index406.js +14 -8
  631. package/dist/index406.js.map +1 -1
  632. package/dist/index407.js +491 -12
  633. package/dist/index407.js.map +1 -1
  634. package/dist/index41.js +10 -10
  635. package/dist/index410.js +1 -1
  636. package/dist/index411.js +1 -1
  637. package/dist/index414.js +1 -1
  638. package/dist/index415.js +1 -1
  639. package/dist/index423.js +2 -2
  640. package/dist/index425.js +2 -2
  641. package/dist/index44.js +23 -22
  642. package/dist/index44.js.map +1 -1
  643. package/dist/index45.js +22 -196
  644. package/dist/index45.js.map +1 -1
  645. package/dist/index48.js +2 -2
  646. package/dist/index49.js +34 -34
  647. package/dist/index50.js +29 -29
  648. package/dist/index51.js +2 -2
  649. package/dist/index52.js +12 -12
  650. package/dist/index53.js +4 -4
  651. package/dist/index54.js +1 -1
  652. package/dist/index55.js +22 -22
  653. package/dist/index56.js +5 -5
  654. package/dist/index57.js +5 -5
  655. package/dist/index58.js +8 -8
  656. package/dist/index59.js +5 -5
  657. package/dist/index60.js +17 -17
  658. package/dist/index61.js +5 -5
  659. package/dist/index62.js +3 -3
  660. package/dist/index66.js +1 -1
  661. package/dist/index67.js +1 -1
  662. package/dist/index70.js +1 -1
  663. package/dist/index71.js +1 -1
  664. package/dist/index72.js +2 -6
  665. package/dist/index72.js.map +1 -1
  666. package/dist/index73.js +2 -8
  667. package/dist/index73.js.map +1 -1
  668. package/dist/index74.js +2 -6
  669. package/dist/index74.js.map +1 -1
  670. package/dist/index75.js +2 -2
  671. package/dist/index76.js +6 -2
  672. package/dist/index76.js.map +1 -1
  673. package/dist/index77.js +8 -2
  674. package/dist/index77.js.map +1 -1
  675. package/dist/index78.js +6 -2
  676. package/dist/index78.js.map +1 -1
  677. package/dist/index79.js +52 -6
  678. package/dist/index79.js.map +1 -1
  679. package/dist/index80.js +4 -68
  680. package/dist/index80.js.map +1 -1
  681. package/dist/index81.js +5 -2
  682. package/dist/index81.js.map +1 -1
  683. package/dist/index82.js +15 -363
  684. package/dist/index82.js.map +1 -1
  685. package/dist/index83.js +5 -261
  686. package/dist/index83.js.map +1 -1
  687. package/dist/index84.js +7 -60
  688. package/dist/index84.js.map +1 -1
  689. package/dist/index85.js +16 -46
  690. package/dist/index85.js.map +1 -1
  691. package/dist/index86.js +4 -169
  692. package/dist/index86.js.map +1 -1
  693. package/dist/index87.js +4 -109
  694. package/dist/index87.js.map +1 -1
  695. package/dist/index88.js +5 -24
  696. package/dist/index88.js.map +1 -1
  697. package/dist/index89.js +6 -8
  698. package/dist/index89.js.map +1 -1
  699. package/dist/index90.js +4 -4
  700. package/dist/index90.js.map +1 -1
  701. package/dist/index91.js +4 -5
  702. package/dist/index91.js.map +1 -1
  703. package/dist/index92.js +6 -4
  704. package/dist/index92.js.map +1 -1
  705. package/dist/index93.js +24 -466
  706. package/dist/index93.js.map +1 -1
  707. package/dist/index94.js +6 -185
  708. package/dist/index94.js.map +1 -1
  709. package/dist/index95.js +4 -107
  710. package/dist/index95.js.map +1 -1
  711. package/dist/index96.js +6 -262
  712. package/dist/index96.js.map +1 -1
  713. package/dist/index97.js +5 -9
  714. package/dist/index97.js.map +1 -1
  715. package/dist/index98.js +4 -42
  716. package/dist/index98.js.map +1 -1
  717. package/dist/index99.js +5 -4
  718. package/dist/index99.js.map +1 -1
  719. package/package.json +1 -1
package/dist/index372.js CHANGED
@@ -1,204 +1,12 @@
1
- import { flip as H, size as I, computePosition as J, offset as K, hide as N, shift as Q, limitShift as T } from "./index295.js";
2
- import { autoUpdate as ae, platform as me } from "./index295.js";
3
- import * as r from "react";
4
- import { useLayoutEffect as X } from "react";
5
- import * as Y from "react-dom";
6
- var Z = typeof document < "u", b = function() {
7
- }, R = Z ? X : b;
8
- function w(e, t) {
9
- if (e === t)
10
- return !0;
11
- if (typeof e != typeof t)
12
- return !1;
13
- if (typeof e == "function" && e.toString() === t.toString())
14
- return !0;
15
- let n, f, c;
16
- if (e && t && typeof e == "object") {
17
- if (Array.isArray(e)) {
18
- if (n = e.length, n !== t.length) return !1;
19
- for (f = n; f-- !== 0; )
20
- if (!w(e[f], t[f]))
21
- return !1;
22
- return !0;
1
+ function r(...n) {
2
+ return () => {
3
+ for (let e = 0; e < n.length; e += 1) {
4
+ const t = n[e];
5
+ t && t();
23
6
  }
24
- if (c = Object.keys(e), n = c.length, n !== Object.keys(t).length)
25
- return !1;
26
- for (f = n; f-- !== 0; )
27
- if (!{}.hasOwnProperty.call(t, c[f]))
28
- return !1;
29
- for (f = n; f-- !== 0; ) {
30
- const p = c[f];
31
- if (!(p === "_owner" && e.$$typeof) && !w(e[p], t[p]))
32
- return !1;
33
- }
34
- return !0;
35
- }
36
- return e !== e && t !== t;
37
- }
38
- function L(e) {
39
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
40
- }
41
- function z(e, t) {
42
- const n = L(e);
43
- return Math.round(t * n) / n;
44
- }
45
- function k(e) {
46
- const t = r.useRef(e);
47
- return R(() => {
48
- t.current = e;
49
- }), t;
50
- }
51
- function ne(e) {
52
- e === void 0 && (e = {});
53
- const {
54
- placement: t = "bottom",
55
- strategy: n = "absolute",
56
- middleware: f = [],
57
- platform: c,
58
- elements: {
59
- reference: p,
60
- floating: A
61
- } = {},
62
- transform: D = !0,
63
- whileElementsMounted: E,
64
- open: x
65
- } = e, [s, C] = r.useState({
66
- x: 0,
67
- y: 0,
68
- strategy: n,
69
- placement: t,
70
- middlewareData: {},
71
- isPositioned: !1
72
- }), [M, q] = r.useState(f);
73
- w(M, f) || q(f);
74
- const [B, U] = r.useState(null), [V, W] = r.useState(null), _ = r.useCallback((o) => {
75
- o !== a.current && (a.current = o, U(o));
76
- }, []), v = r.useCallback((o) => {
77
- o !== m.current && (m.current = o, W(o));
78
- }, []), i = p || B, u = A || V, a = r.useRef(null), m = r.useRef(null), y = r.useRef(s), G = E != null, S = k(E), P = k(c), F = k(x), g = r.useCallback(() => {
79
- if (!a.current || !m.current)
80
- return;
81
- const o = {
82
- placement: t,
83
- strategy: n,
84
- middleware: M
85
- };
86
- P.current && (o.platform = P.current), J(a.current, m.current, o).then((h) => {
87
- const d = {
88
- ...h,
89
- // The floating element's position may be recomputed while it's closed
90
- // but still mounted (such as when transitioning out). To ensure
91
- // `isPositioned` will be `false` initially on the next open, avoid
92
- // setting it to `true` when `open === false` (must be specified).
93
- isPositioned: F.current !== !1
94
- };
95
- $.current && !w(y.current, d) && (y.current = d, Y.flushSync(() => {
96
- C(d);
97
- }));
98
- });
99
- }, [M, t, n, P, F]);
100
- R(() => {
101
- x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((o) => ({
102
- ...o,
103
- isPositioned: !1
104
- })));
105
- }, [x]);
106
- const $ = r.useRef(!1);
107
- R(() => ($.current = !0, () => {
108
- $.current = !1;
109
- }), []), R(() => {
110
- if (i && (a.current = i), u && (m.current = u), i && u) {
111
- if (S.current)
112
- return S.current(i, u, g);
113
- g();
114
- }
115
- }, [i, u, g, S, G]);
116
- const O = r.useMemo(() => ({
117
- reference: a,
118
- floating: m,
119
- setReference: _,
120
- setFloating: v
121
- }), [_, v]), l = r.useMemo(() => ({
122
- reference: i,
123
- floating: u
124
- }), [i, u]), j = r.useMemo(() => {
125
- const o = {
126
- position: n,
127
- left: 0,
128
- top: 0
129
- };
130
- if (!l.floating)
131
- return o;
132
- const h = z(l.floating, s.x), d = z(l.floating, s.y);
133
- return D ? {
134
- ...o,
135
- transform: "translate(" + h + "px, " + d + "px)",
136
- ...L(l.floating) >= 1.5 && {
137
- willChange: "transform"
138
- }
139
- } : {
140
- position: n,
141
- left: h,
142
- top: d
143
- };
144
- }, [n, D, l.floating, s.x, s.y]);
145
- return r.useMemo(() => ({
146
- ...s,
147
- update: g,
148
- refs: O,
149
- elements: l,
150
- floatingStyles: j
151
- }), [s, g, O, l, j]);
152
- }
153
- const re = (e, t) => {
154
- const n = K(e);
155
- return {
156
- name: n.name,
157
- fn: n.fn,
158
- options: [e, t]
159
7
  };
160
- }, oe = (e, t) => {
161
- const n = Q(e);
162
- return {
163
- name: n.name,
164
- fn: n.fn,
165
- options: [e, t]
166
- };
167
- }, fe = (e, t) => ({
168
- fn: T(e).fn,
169
- options: [e, t]
170
- }), se = (e, t) => {
171
- const n = H(e);
172
- return {
173
- name: n.name,
174
- fn: n.fn,
175
- options: [e, t]
176
- };
177
- }, ie = (e, t) => {
178
- const n = I(e);
179
- return {
180
- name: n.name,
181
- fn: n.fn,
182
- options: [e, t]
183
- };
184
- }, ue = (e, t) => {
185
- const n = N(e);
186
- return {
187
- name: n.name,
188
- fn: n.fn,
189
- options: [e, t]
190
- };
191
- };
8
+ }
192
9
  export {
193
- ae as autoUpdate,
194
- J as computePosition,
195
- se as flip,
196
- ue as hide,
197
- fe as limitShift,
198
- re as offset,
199
- me as platform,
200
- oe as shift,
201
- ie as size,
202
- ne as useFloating
10
+ r as mergeCleanups
203
11
  };
204
12
  //# sourceMappingURL=index372.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index372.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift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C,CAAI;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index372.js","sources":["../../../node_modules/@base-ui/utils/esm/mergeCleanups.js"],"sourcesContent":["/**\n * Combines multiple cleanup functions into a single cleanup function.\n */\nexport function mergeCleanups(...cleanups) {\n return () => {\n for (let i = 0; i < cleanups.length; i += 1) {\n const cleanup = cleanups[i];\n if (cleanup) {\n cleanup();\n }\n }\n };\n}"],"names":["mergeCleanups","cleanups","i","cleanup"],"mappings":"AAGO,SAASA,KAAiBC,GAAU;AACzC,SAAO,MAAM;AACX,aAASC,IAAI,GAAGA,IAAID,EAAS,QAAQC,KAAK,GAAG;AAC3C,YAAMC,IAAUF,EAASC,CAAC;AAC1B,MAAIC,KACFA,EAAO;AAAA,IAEX;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
package/dist/index373.js CHANGED
@@ -1,75 +1,29 @@
1
- import { createEventEmitter as a } from "./index387.js";
2
- import { ReactStore as m } from "./index241.js";
3
- import { isClickLikeEvent as f } from "./index362.js";
4
- import { createSelector as o } from "./index244.js";
5
- const l = {
6
- open: o((t) => t.open),
7
- transitionStatus: o((t) => t.transitionStatus),
8
- domReferenceElement: o((t) => t.domReferenceElement),
9
- referenceElement: o((t) => t.positionReference ?? t.referenceElement),
10
- floatingElement: o((t) => t.floatingElement),
11
- floatingId: o((t) => t.floatingId)
12
- };
13
- class d extends m {
14
- constructor(n) {
15
- const {
16
- syncOnly: e,
17
- nested: r,
18
- onOpenChange: s,
19
- triggerElements: c,
20
- ...i
21
- } = n;
22
- super({
23
- ...i,
24
- positionReference: i.referenceElement,
25
- domReferenceElement: i.referenceElement
26
- }, {
27
- onOpenChange: s,
28
- dataRef: {
29
- current: {}
30
- },
31
- events: a(),
32
- nested: r,
33
- triggerElements: c
34
- }, l), this.syncOnly = e;
35
- }
36
- /**
37
- * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
38
- */
39
- syncOpenEvent = (n, e) => {
40
- (!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
41
- // click events to upgrade a hover-open.
42
- e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
43
- };
44
- /**
45
- * Runs the root-owned side effects for an open state change.
46
- */
47
- dispatchOpenChange = (n, e) => {
48
- this.syncOpenEvent(n, e.event);
49
- const r = {
50
- open: n,
51
- reason: e.reason,
52
- nativeEvent: e.event,
53
- nested: this.context.nested,
54
- triggerElement: e.trigger
55
- };
56
- this.context.events.emit("openchange", r);
57
- };
58
- /**
59
- * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
60
- *
61
- * @param newOpen The new open state.
62
- * @param eventDetails Details about the event that triggered the open state change.
63
- */
64
- setOpen = (n, e) => {
65
- if (this.syncOnly) {
66
- this.context.onOpenChange?.(n, e);
67
- return;
68
- }
69
- this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
1
+ import * as r from "react";
2
+ import { useIsoLayoutEffect as u } from "./index201.js";
3
+ import { isSafari as i } from "./index241.js";
4
+ import { visuallyHidden as f } from "./index196.js";
5
+ import { j as n } from "./index30.js";
6
+ const d = /* @__PURE__ */ r.forwardRef(function(t, s) {
7
+ const [o, e] = r.useState();
8
+ u(() => {
9
+ i && e("button");
10
+ }, []);
11
+ const a = {
12
+ tabIndex: 0,
13
+ // Role is only for VoiceOver
14
+ role: o
70
15
  };
71
- }
16
+ return /* @__PURE__ */ n.jsx("span", {
17
+ ...t,
18
+ ref: s,
19
+ style: f,
20
+ "aria-hidden": o ? void 0 : !0,
21
+ ...a,
22
+ "data-base-ui-focus-guard": ""
23
+ });
24
+ });
25
+ process.env.NODE_ENV !== "production" && (d.displayName = "FocusGuard");
72
26
  export {
73
- d as FloatingRootStore
27
+ d as FocusGuard
74
28
  };
75
29
  //# sourceMappingURL=index373.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index373.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.js"],"sourcesContent":["import { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.js\";\nimport { isClickLikeEvent } from \"../utils.js\";\nconst selectors = {\n open: createSelector(state => state.open),\n transitionStatus: createSelector(state => state.transitionStatus),\n domReferenceElement: createSelector(state => state.domReferenceElement),\n referenceElement: createSelector(state => state.positionReference ?? state.referenceElement),\n floatingElement: createSelector(state => state.floatingElement),\n floatingId: createSelector(state => state.floatingId)\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"names":["selectors","createSelector","state","FloatingRootStore","ReactStore","options","syncOnly","nested","onOpenChange","triggerElements","initialState","createEventEmitter","newOpen","event","isClickLikeEvent","eventDetails","details"],"mappings":";;;;AAGA,MAAMA,IAAY;AAAA,EAChB,MAAMC,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,qBAAqBA,EAAM,gBAAgB;AAAA,EAC3F,iBAAiBD,EAAe,CAAAC,MAASA,EAAM,eAAe;AAAA,EAC9D,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AACtD;AACO,MAAMC,UAA0BC,EAAW;AAAA,EAChD,YAAYC,GAAS;AACnB,UAAM;AAAA,MACJ,UAAAC;AAAA,MACA,QAAAC;AAAA,MACA,cAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQL;AACJ,UAAM;AAAA,MACJ,GAAGK;AAAA,MACH,mBAAmBA,EAAa;AAAA,MAChC,qBAAqBA,EAAa;AAAA,IACxC,GAAO;AAAA,MACD,cAAAF;AAAA,MACA,SAAS;AAAA,QACP,SAAS,CAAA;AAAA,MACjB;AAAA,MACM,QAAQG,EAAkB;AAAA,MAC1B,QAAAJ;AAAA,MACA,iBAAAE;AAAA,IACN,GAAOT,CAAS,GACZ,KAAK,WAAWM;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAgB,CAACM,GAASC,MAAU;AAClC,KAAI,CAACD,KAAW,CAAC,KAAK,MAAM;AAAA;AAAA,IAG5BC,KAAS,QAAQC,EAAiBD,CAAK,OACrC,KAAK,QAAQ,QAAQ,QAAQ,YAAYD,IAAUC,IAAQ;AAAA,EAE/D;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAqB,CAACD,GAASG,MAAiB;AAC9C,SAAK,cAAcH,GAASG,EAAa,KAAK;AAC9C,UAAMC,IAAU;AAAA,MACd,MAAMJ;AAAA,MACN,QAAQG,EAAa;AAAA,MACrB,aAAaA,EAAa;AAAA,MAC1B,QAAQ,KAAK,QAAQ;AAAA,MACrB,gBAAgBA,EAAa;AAAA,IACnC;AACI,SAAK,QAAQ,OAAO,KAAK,cAAcC,CAAO;AAAA,EAChD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAU,CAACJ,GAASG,MAAiB;AACnC,QAAI,KAAK,UAAU;AACjB,WAAK,QAAQ,eAAeH,GAASG,CAAY;AACjD;AAAA,IACF;AACA,SAAK,mBAAmBH,GAASG,CAAY,GAC7C,KAAK,QAAQ,eAAeH,GAASG,CAAY;AAAA,EACnD;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index373.js","sources":["../../../node_modules/@base-ui/react/esm/utils/FocusGuard.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { isSafari } from '@base-ui/utils/detectBrowser';\nimport { visuallyHidden } from '@base-ui/utils/visuallyHidden';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n const [role, setRole] = React.useState();\n useIsoLayoutEffect(() => {\n if (isSafari) {\n // Unlike other screen readers such as NVDA and JAWS, the virtual cursor\n // on VoiceOver does trigger the onFocus event, so we can use the focus\n // trap element. On Safari, only buttons trigger the onFocus event.\n setRole('button');\n }\n }, []);\n const restProps = {\n tabIndex: 0,\n // Role is only for VoiceOver\n role\n };\n return /*#__PURE__*/_jsx(\"span\", {\n ...props,\n ref: ref,\n style: visuallyHidden,\n \"aria-hidden\": role ? undefined : true,\n ...restProps,\n \"data-base-ui-focus-guard\": \"\"\n });\n});\nif (process.env.NODE_ENV !== \"production\") FocusGuard.displayName = \"FocusGuard\";"],"names":["FocusGuard","React","props","ref","role","setRole","useIsoLayoutEffect","isSafari","restProps","_jsx","visuallyHidden"],"mappings":";;;;;AAWY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAOC,GAAK;AACtF,QAAM,CAACC,GAAMC,CAAO,IAAIJ,EAAM,SAAQ;AACtC,EAAAK,EAAmB,MAAM;AACvB,IAAIC,KAIFF,EAAQ,QAAQ;AAAA,EAEpB,GAAG,CAAA,CAAE;AACL,QAAMG,IAAY;AAAA,IAChB,UAAU;AAAA;AAAA,IAEV,MAAAJ;AAAA,EACJ;AACE,SAAoBK,gBAAAA,EAAAA,IAAK,QAAQ;AAAA,IAC/B,GAAGP;AAAA,IACH,KAAKC;AAAA,IACL,OAAOO;AAAA,IACP,eAAeN,IAAO,SAAY;AAAA,IAClC,GAAGI;AAAA,IACH,4BAA4B;AAAA,EAChC,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAW,cAAc;","x_google_ignoreList":[0]}
package/dist/index374.js CHANGED
@@ -1,12 +1,30 @@
1
- const t = "data-base-ui-focusable", e = "active", o = "selected", n = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", s = "ArrowLeft", c = "ArrowRight", E = "ArrowUp", a = "ArrowDown";
1
+ import { isAndroid as r, isJSDOM as o } from "./index241.js";
2
+ function n(i) {
3
+ i.preventDefault(), i.stopPropagation();
4
+ }
5
+ function e(i) {
6
+ return "nativeEvent" in i;
7
+ }
8
+ function p(i) {
9
+ return i.pointerType === "" && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
10
+ }
11
+ function c(i) {
12
+ return o ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
13
+ i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
14
+ }
15
+ function l(i, t) {
16
+ return ["mouse", "pen"].includes(i);
17
+ }
18
+ function a(i) {
19
+ const t = i.type;
20
+ return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
21
+ }
2
22
  export {
3
- e as ACTIVE_KEY,
4
- a as ARROW_DOWN,
5
- s as ARROW_LEFT,
6
- c as ARROW_RIGHT,
7
- E as ARROW_UP,
8
- t as FOCUSABLE_ATTRIBUTE,
9
- o as SELECTED_KEY,
10
- n as TYPEABLE_SELECTOR
23
+ a as isClickLikeEvent,
24
+ l as isMouseLikePointerType,
25
+ e as isReactEvent,
26
+ p as isVirtualClick,
27
+ c as isVirtualPointerEvent,
28
+ n as stopEvent
11
29
  };
12
30
  //# sourceMappingURL=index374.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index374.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js"],"sourcesContent":["export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';"],"names":["FOCUSABLE_ATTRIBUTE","ACTIVE_KEY","SELECTED_KEY","TYPEABLE_SELECTOR","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","ARROW_DOWN"],"mappings":"AAAY,MAACA,IAAsB,0BACtBC,IAAa,UACbC,IAAe,YACfC,IAAoB,wHACpBC,IAAa,aACbC,IAAc,cACdC,IAAW,WACXC,IAAa;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index374.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js"],"sourcesContent":["import { isAndroid, isJSDOM } from '@base-ui/utils/detectBrowser';\nexport function stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nexport function isReactEvent(event) {\n return 'nativeEvent' in event;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/main/packages/@react-aria/utils/src/isVirtualEvent.ts\nexport function isVirtualClick(event) {\n if (event.pointerType === '' && event.isTrusted) {\n return true;\n }\n if (isAndroid && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nexport function isVirtualPointerEvent(event) {\n if (isJSDOM) {\n return false;\n }\n return !isAndroid && event.width === 0 && event.height === 0 || isAndroid && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nexport function isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nexport function isClickLikeEvent(event) {\n const type = event.type;\n return type === 'click' || type === 'mousedown' || type === 'keydown' || type === 'keyup';\n}"],"names":["stopEvent","event","isReactEvent","isVirtualClick","isAndroid","isVirtualPointerEvent","isJSDOM","isMouseLikePointerType","pointerType","strict","isClickLikeEvent","type"],"mappings":";AACO,SAASA,EAAUC,GAAO;AAC/B,EAAAA,EAAM,eAAc,GACpBA,EAAM,gBAAe;AACvB;AACO,SAASC,EAAaD,GAAO;AAClC,SAAO,iBAAiBA;AAC1B;AAGO,SAASE,EAAeF,GAAO;AACpC,SAAIA,EAAM,gBAAgB,MAAMA,EAAM,YAC7B,KAELG,KAAaH,EAAM,cACdA,EAAM,SAAS,WAAWA,EAAM,YAAY,IAE9CA,EAAM,WAAW,KAAK,CAACA,EAAM;AACtC;AACO,SAASI,EAAsBJ,GAAO;AAC3C,SAAIK,IACK,KAEF,CAACF,KAAaH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKG,KAAaH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAAA,EAE5LA,EAAM,QAAQ,KAAKA,EAAM,SAAS,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAC7G;AACO,SAASM,EAAuBC,GAAaC,GAAQ;AAO1D,SAJe,CAAC,SAAS,KAAK,EAIhB,SAASD,CAAW;AACpC;AACO,SAASE,EAAiBT,GAAO;AACtC,QAAMU,IAAOV,EAAM;AACnB,SAAOU,MAAS,WAAWA,MAAS,eAAeA,MAAS,aAAaA,MAAS;AACpF;","x_google_ignoreList":[0]}
package/dist/index375.js CHANGED
@@ -1,20 +1,141 @@
1
- import * as e from "react";
2
- function t(i) {
3
- const o = e.useRef(""), n = e.useCallback((r) => {
4
- r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
5
- }, [i]);
6
- return {
7
- onClick: e.useCallback((r) => {
8
- if (r.detail === 0) {
9
- i(r, "keyboard");
10
- return;
11
- }
12
- "pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
13
- }, [i]),
14
- onPointerDown: n
15
- };
1
+ import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./index249.js";
2
+ import { ownerDocument as c } from "./index224.js";
3
+ import { contains as f, activeElement as I } from "./index231.js";
4
+ import { isElementVisible as C } from "./index377.js";
5
+ const N = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
6
+ function R(t) {
7
+ const n = t.assignedSlot;
8
+ if (n)
9
+ return n;
10
+ if (t.parentElement)
11
+ return t.parentElement;
12
+ const e = t.getRootNode();
13
+ return T(e) ? e.host : null;
14
+ }
15
+ function d(t) {
16
+ for (const n of Array.from(t.children))
17
+ if (i(n) === "summary")
18
+ return n;
19
+ return null;
20
+ }
21
+ function S(t, n) {
22
+ const e = d(n);
23
+ return !!e && (t === e || f(e, t));
24
+ }
25
+ function b(t) {
26
+ const n = t ? i(t) : "";
27
+ return t != null && t.matches(N) && (n !== "summary" || t.parentElement != null && i(t.parentElement) === "details" && d(t.parentElement) === t) && (n !== "details" || d(t) == null) && (n !== "input" || t.type !== "hidden");
28
+ }
29
+ function l(t) {
30
+ if (!b(t) || !t.isConnected || t.matches(":disabled"))
31
+ return !1;
32
+ for (let n = t; n; n = R(n)) {
33
+ const e = n !== t, r = i(n) === "slot";
34
+ if (n.hasAttribute("inert") || e && i(n) === "details" && !n.open && !S(t, n) || n.hasAttribute("hidden") || !r && !v(n, e))
35
+ return !1;
36
+ }
37
+ return !0;
38
+ }
39
+ function v(t, n) {
40
+ const e = A(t);
41
+ return n ? e.display !== "none" : C(t, e);
42
+ }
43
+ function m(t) {
44
+ const n = t.tabIndex;
45
+ if (n < 0) {
46
+ const e = i(t);
47
+ if (e === "details" || e === "audio" || e === "video" || s(t) && t.isContentEditable)
48
+ return 0;
49
+ }
50
+ return n;
51
+ }
52
+ function u(t) {
53
+ if (i(t) !== "input")
54
+ return null;
55
+ const n = t;
56
+ return n.type === "radio" && n.name !== "" ? n : null;
57
+ }
58
+ function D(t, n) {
59
+ const e = u(t);
60
+ if (!e)
61
+ return !0;
62
+ const r = n.find((a) => {
63
+ const o = u(a);
64
+ return o?.name === e.name && o.form === e.form && o.checked;
65
+ });
66
+ return r ? r === e : n.find((a) => {
67
+ const o = u(a);
68
+ return o?.name === e.name && o.form === e.form;
69
+ }) === e;
70
+ }
71
+ function p(t) {
72
+ if (s(t) && i(t) === "slot") {
73
+ const n = t.assignedElements({
74
+ flatten: !0
75
+ });
76
+ if (n.length > 0)
77
+ return n;
78
+ }
79
+ return s(t) && t.shadowRoot ? Array.from(t.shadowRoot.children) : Array.from(t.children);
80
+ }
81
+ function h(t, n) {
82
+ p(t).forEach((e) => {
83
+ b(e) && n.push(e), h(e, n);
84
+ });
85
+ }
86
+ function E(t, n, e) {
87
+ p(t).forEach((r) => {
88
+ s(r) && r.matches(n) && e.push(r), E(r, n, e);
89
+ });
90
+ }
91
+ function M(t) {
92
+ return l(t) && m(t) >= 0;
93
+ }
94
+ function w(t) {
95
+ const n = [];
96
+ return h(t, n), n.filter(l);
97
+ }
98
+ function g(t) {
99
+ const n = w(t);
100
+ return n.filter((e) => m(e) >= 0 && D(e, n));
101
+ }
102
+ function x(t, n) {
103
+ const e = g(t), r = e.length;
104
+ if (r === 0)
105
+ return;
106
+ const a = I(c(t)), o = e.indexOf(a), y = o === -1 ? n === 1 ? 0 : r - 1 : o + n;
107
+ return e[y];
108
+ }
109
+ function P(t) {
110
+ return x(c(t).body, 1) || t;
111
+ }
112
+ function V(t) {
113
+ return x(c(t).body, -1) || t;
114
+ }
115
+ function j(t, n) {
116
+ const e = n || t.currentTarget, r = t.relatedTarget;
117
+ return !r || !f(e, r);
118
+ }
119
+ function H(t) {
120
+ g(t).forEach((e) => {
121
+ e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
122
+ });
123
+ }
124
+ function W(t) {
125
+ const n = [];
126
+ E(t, "[data-tabindex]", n), n.forEach((e) => {
127
+ const r = e.dataset.tabindex;
128
+ delete e.dataset.tabindex, r ? e.setAttribute("tabindex", r) : e.removeAttribute("tabindex");
129
+ });
16
130
  }
17
131
  export {
18
- t as useEnhancedClickHandler
132
+ H as disableFocusInside,
133
+ W as enableFocusInside,
134
+ w as focusable,
135
+ P as getNextTabbable,
136
+ V as getPreviousTabbable,
137
+ j as isOutsideEvent,
138
+ M as isTabbable,
139
+ g as tabbable
19
140
  };
20
141
  //# sourceMappingURL=index375.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index375.js","sources":["../../../node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}"],"names":["useEnhancedClickHandler","handler","lastClickInteractionTypeRef","React","handlePointerDown","event"],"mappings":";AAUO,SAASA,EAAwBC,GAAS;AAC/C,QAAMC,IAA8BC,EAAM,OAAO,EAAE,GAC7CC,IAAoBD,EAAM,YAAY,CAAAE,MAAS;AACnD,IAAIA,EAAM,qBAGVH,EAA4B,UAAUG,EAAM,aAC5CJ,EAAQI,GAAOA,EAAM,WAAW;AAAA,EAClC,GAAG,CAACJ,CAAO,CAAC;AAeZ,SAAO;AAAA,IACL,SAfkBE,EAAM,YAAY,CAAAE,MAAS;AAE7C,UAAIA,EAAM,WAAW,GAAG;AACtB,QAAAJ,EAAQI,GAAO,UAAU;AACzB;AAAA,MACF;AACA,MAAI,iBAAiBA,IAEnBJ,EAAQI,GAAOA,EAAM,WAAW,IAEhCJ,EAAQI,GAAOH,EAA4B,OAAO,GAEpDA,EAA4B,UAAU;AAAA,IACxC,GAAG,CAACD,CAAO,CAAC;AAAA,IAGV,eAAeG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index375.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js"],"sourcesContent":["import { getComputedStyle, getNodeName, isHTMLElement, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { activeElement, contains } from \"./element.js\";\nimport { isElementVisible } from \"./composite.js\";\nconst CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';\nfunction getParentElement(element) {\n const assignedSlot = element.assignedSlot;\n if (assignedSlot) {\n return assignedSlot;\n }\n if (element.parentElement) {\n return element.parentElement;\n }\n const rootNode = element.getRootNode();\n return isShadowRoot(rootNode) ? rootNode.host : null;\n}\nfunction getDetailsSummary(details) {\n for (const child of Array.from(details.children)) {\n if (getNodeName(child) === 'summary') {\n return child;\n }\n }\n return null;\n}\nfunction isWithinOpenDetailsSummary(element, details) {\n const summary = getDetailsSummary(details);\n return !!summary && (element === summary || contains(summary, element));\n}\nfunction isFocusableCandidate(element) {\n const nodeName = element ? getNodeName(element) : '';\n return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== 'summary' || element.parentElement != null && getNodeName(element.parentElement) === 'details' && getDetailsSummary(element.parentElement) === element) && (nodeName !== 'details' || getDetailsSummary(element) == null) && (nodeName !== 'input' || element.type !== 'hidden');\n}\nfunction isFocusableElement(element) {\n if (!isFocusableCandidate(element) || !element.isConnected || element.matches(':disabled')) {\n return false;\n }\n for (let current = element; current; current = getParentElement(current)) {\n const isAncestor = current !== element;\n const isSlot = getNodeName(current) === 'slot';\n if (current.hasAttribute('inert')) {\n return false;\n }\n if (isAncestor && getNodeName(current) === 'details' && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute('hidden') || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {\n return false;\n }\n }\n return true;\n}\nfunction isVisibleInTabbableTree(element, isAncestor) {\n const styles = getComputedStyle(element);\n if (!isAncestor) {\n return isElementVisible(element, styles);\n }\n return styles.display !== 'none';\n}\nfunction getTabIndex(element) {\n const tabIndex = element.tabIndex;\n if (tabIndex < 0) {\n const nodeName = getNodeName(element);\n if (nodeName === 'details' || nodeName === 'audio' || nodeName === 'video' || isHTMLElement(element) && element.isContentEditable) {\n return 0;\n }\n }\n return tabIndex;\n}\nfunction getNamedRadioInput(element) {\n if (getNodeName(element) !== 'input') {\n return null;\n }\n const input = element;\n return input.type === 'radio' && input.name !== '' ? input : null;\n}\nfunction isTabbableRadio(element, candidates) {\n const input = getNamedRadioInput(element);\n if (!input) {\n return true;\n }\n const checkedRadio = candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form && radio.checked;\n });\n if (checkedRadio) {\n return checkedRadio === input;\n }\n return candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form;\n }) === input;\n}\nfunction getComposedChildren(container) {\n if (isHTMLElement(container) && getNodeName(container) === 'slot') {\n const assignedElements = container.assignedElements({\n flatten: true\n });\n if (assignedElements.length > 0) {\n return assignedElements;\n }\n }\n if (isHTMLElement(container) && container.shadowRoot) {\n return Array.from(container.shadowRoot.children);\n }\n return Array.from(container.children);\n}\nfunction appendCandidates(container, list) {\n getComposedChildren(container).forEach(child => {\n if (isFocusableCandidate(child)) {\n list.push(child);\n }\n appendCandidates(child, list);\n });\n}\nfunction appendMatchingElements(container, selector, list) {\n getComposedChildren(container).forEach(child => {\n if (isHTMLElement(child) && child.matches(selector)) {\n list.push(child);\n }\n appendMatchingElements(child, selector, list);\n });\n}\nexport function isTabbable(element) {\n return isFocusableElement(element) && getTabIndex(element) >= 0;\n}\nexport function focusable(container) {\n const candidates = [];\n appendCandidates(container, candidates);\n return candidates.filter(isFocusableElement);\n}\nexport function tabbable(container) {\n const candidates = focusable(container);\n return candidates.filter(element => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));\n}\nfunction getTabbableIn(container, dir) {\n const list = tabbable(container);\n const len = list.length;\n if (len === 0) {\n return undefined;\n }\n const active = activeElement(ownerDocument(container));\n const index = list.indexOf(active);\n // eslint-disable-next-line no-nested-ternary\n const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n return list[nextIndex];\n}\nexport function getNextTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;\n}\nexport function getPreviousTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;\n}\nfunction getTabbableNearElement(referenceElement, dir) {\n if (!referenceElement) {\n return null;\n }\n const list = tabbable(ownerDocument(referenceElement).body);\n const elementCount = list.length;\n if (elementCount === 0) {\n return null;\n }\n const index = list.indexOf(referenceElement);\n if (index === -1) {\n return null;\n }\n const nextIndex = (index + dir + elementCount) % elementCount;\n return list[nextIndex];\n}\nexport function getTabbableAfterElement(referenceElement) {\n return getTabbableNearElement(referenceElement, 1);\n}\nexport function getTabbableBeforeElement(referenceElement) {\n return getTabbableNearElement(referenceElement, -1);\n}\nexport function isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nexport function disableFocusInside(container) {\n const tabbableElements = tabbable(container);\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nexport function enableFocusInside(container) {\n const elements = [];\n appendMatchingElements(container, '[data-tabindex]', elements);\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}"],"names":["CANDIDATE_SELECTOR","getParentElement","element","assignedSlot","rootNode","isShadowRoot","getDetailsSummary","details","child","getNodeName","isWithinOpenDetailsSummary","summary","contains","isFocusableCandidate","nodeName","isFocusableElement","current","isAncestor","isSlot","isVisibleInTabbableTree","styles","getComputedStyle","isElementVisible","getTabIndex","tabIndex","isHTMLElement","getNamedRadioInput","input","isTabbableRadio","candidates","checkedRadio","candidate","radio","getComposedChildren","container","assignedElements","appendCandidates","list","appendMatchingElements","selector","isTabbable","focusable","tabbable","getTabbableIn","dir","len","active","activeElement","ownerDocument","index","nextIndex","getNextTabbable","referenceElement","getPreviousTabbable","isOutsideEvent","event","containerElement","relatedTarget","disableFocusInside","enableFocusInside","elements","tabindex"],"mappings":";;;;AAIA,MAAMA,IAAqB;AAC3B,SAASC,EAAiBC,GAAS;AACjC,QAAMC,IAAeD,EAAQ;AAC7B,MAAIC;AACF,WAAOA;AAET,MAAID,EAAQ;AACV,WAAOA,EAAQ;AAEjB,QAAME,IAAWF,EAAQ,YAAW;AACpC,SAAOG,EAAaD,CAAQ,IAAIA,EAAS,OAAO;AAClD;AACA,SAASE,EAAkBC,GAAS;AAClC,aAAWC,KAAS,MAAM,KAAKD,EAAQ,QAAQ;AAC7C,QAAIE,EAAYD,CAAK,MAAM;AACzB,aAAOA;AAGX,SAAO;AACT;AACA,SAASE,EAA2BR,GAASK,GAAS;AACpD,QAAMI,IAAUL,EAAkBC,CAAO;AACzC,SAAO,CAAC,CAACI,MAAYT,MAAYS,KAAWC,EAASD,GAAST,CAAO;AACvE;AACA,SAASW,EAAqBX,GAAS;AACrC,QAAMY,IAAWZ,IAAUO,EAAYP,CAAO,IAAI;AAClD,SAAOA,KAAW,QAAQA,EAAQ,QAAQF,CAAkB,MAAMc,MAAa,aAAaZ,EAAQ,iBAAiB,QAAQO,EAAYP,EAAQ,aAAa,MAAM,aAAaI,EAAkBJ,EAAQ,aAAa,MAAMA,OAAaY,MAAa,aAAaR,EAAkBJ,CAAO,KAAK,UAAUY,MAAa,WAAWZ,EAAQ,SAAS;AACxV;AACA,SAASa,EAAmBb,GAAS;AACnC,MAAI,CAACW,EAAqBX,CAAO,KAAK,CAACA,EA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