@rpcbase/ui 0.287.0 → 0.289.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 (738) hide show
  1. package/dist/assets/sha256.worker-DNtOSCbM.js.map +1 -0
  2. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  3. package/dist/index.js +12 -12
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js.map +1 -1
  10. package/dist/index105.js.map +1 -1
  11. package/dist/index106.js.map +1 -1
  12. package/dist/index107.js.map +1 -1
  13. package/dist/index108.js.map +1 -1
  14. package/dist/index109.js.map +1 -1
  15. package/dist/index11.js +96 -17
  16. package/dist/index11.js.map +1 -1
  17. package/dist/index110.js.map +1 -1
  18. package/dist/index111.js.map +1 -1
  19. package/dist/index112.js.map +1 -1
  20. package/dist/index113.js.map +1 -1
  21. package/dist/index114.js.map +1 -1
  22. package/dist/index115.js.map +1 -1
  23. package/dist/index116.js.map +1 -1
  24. package/dist/index117.js.map +1 -1
  25. package/dist/index118.js.map +1 -1
  26. package/dist/index119.js.map +1 -1
  27. package/dist/index12.js.map +1 -1
  28. package/dist/index120.js.map +1 -1
  29. package/dist/index121.js.map +1 -1
  30. package/dist/index122.js.map +1 -1
  31. package/dist/index123.js +1 -1
  32. package/dist/index123.js.map +1 -1
  33. package/dist/index124.js.map +1 -1
  34. package/dist/index125.js.map +1 -1
  35. package/dist/index126.js.map +1 -1
  36. package/dist/index127.js.map +1 -1
  37. package/dist/index128.js.map +1 -1
  38. package/dist/index129.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index130.js.map +1 -1
  41. package/dist/index131.js.map +1 -1
  42. package/dist/index132.js.map +1 -1
  43. package/dist/index133.js.map +1 -1
  44. package/dist/index134.js.map +1 -1
  45. package/dist/index135.js.map +1 -1
  46. package/dist/index136.js.map +1 -1
  47. package/dist/index137.js.map +1 -1
  48. package/dist/index138.js.map +1 -1
  49. package/dist/index139.js.map +1 -1
  50. package/dist/index14.js.map +1 -1
  51. package/dist/index140.js.map +1 -1
  52. package/dist/index141.js.map +1 -1
  53. package/dist/index142.js.map +1 -1
  54. package/dist/index143.js.map +1 -1
  55. package/dist/index144.js.map +1 -1
  56. package/dist/index145.js.map +1 -1
  57. package/dist/index146.js.map +1 -1
  58. package/dist/index147.js.map +1 -1
  59. package/dist/index148.js.map +1 -1
  60. package/dist/index149.js.map +1 -1
  61. package/dist/index15.js.map +1 -1
  62. package/dist/index150.js.map +1 -1
  63. package/dist/index151.js.map +1 -1
  64. package/dist/index152.js.map +1 -1
  65. package/dist/index153.js.map +1 -1
  66. package/dist/index154.js +4 -4
  67. package/dist/index154.js.map +1 -1
  68. package/dist/index155.js.map +1 -1
  69. package/dist/index156.js.map +1 -1
  70. package/dist/index157.js.map +1 -1
  71. package/dist/index158.js.map +1 -1
  72. package/dist/index159.js.map +1 -1
  73. package/dist/index16.js.map +1 -1
  74. package/dist/index160.js.map +1 -1
  75. package/dist/index161.js.map +1 -1
  76. package/dist/index162.js.map +1 -1
  77. package/dist/index163.js.map +1 -1
  78. package/dist/index164.js.map +1 -1
  79. package/dist/index165.js.map +1 -1
  80. package/dist/index166.js.map +1 -1
  81. package/dist/index167.js.map +1 -1
  82. package/dist/index168.js.map +1 -1
  83. package/dist/index169.js.map +1 -1
  84. package/dist/index17.js.map +1 -1
  85. package/dist/index170.js +18 -12
  86. package/dist/index170.js.map +1 -1
  87. package/dist/index171.js.map +1 -1
  88. package/dist/index172.js.map +1 -1
  89. package/dist/index173.js.map +1 -1
  90. package/dist/index174.js.map +1 -1
  91. package/dist/index175.js.map +1 -1
  92. package/dist/index176.js.map +1 -1
  93. package/dist/index177.js.map +1 -1
  94. package/dist/index178.js.map +1 -1
  95. package/dist/index179.js.map +1 -1
  96. package/dist/index18.js.map +1 -1
  97. package/dist/index180.js.map +1 -1
  98. package/dist/index181.js +1 -1
  99. package/dist/index181.js.map +1 -1
  100. package/dist/index182.js +3 -3
  101. package/dist/index182.js.map +1 -1
  102. package/dist/index183.js.map +1 -1
  103. package/dist/index184.js.map +1 -1
  104. package/dist/index185.js.map +1 -1
  105. package/dist/index186.js.map +1 -1
  106. package/dist/index187.js.map +1 -1
  107. package/dist/index188.js.map +1 -1
  108. package/dist/index189.js.map +1 -1
  109. package/dist/index19.js.map +1 -1
  110. package/dist/index190.js +9 -7
  111. package/dist/index190.js.map +1 -1
  112. package/dist/index191.js +4 -4
  113. package/dist/index191.js.map +1 -1
  114. package/dist/index192.js +4 -15
  115. package/dist/index192.js.map +1 -1
  116. package/dist/index193.js +13 -3
  117. package/dist/index193.js.map +1 -1
  118. package/dist/index194.js +2 -2
  119. package/dist/index194.js.map +1 -1
  120. package/dist/index195.js +4 -85
  121. package/dist/index195.js.map +1 -1
  122. package/dist/index196.js +79 -54
  123. package/dist/index196.js.map +1 -1
  124. package/dist/index197.js +68 -7
  125. package/dist/index197.js.map +1 -1
  126. package/dist/index198.js +3 -23
  127. package/dist/index198.js.map +1 -1
  128. package/dist/index199.js +6 -28
  129. package/dist/index199.js.map +1 -1
  130. package/dist/index20.js.map +1 -1
  131. package/dist/index200.js +4 -97
  132. package/dist/index200.js.map +1 -1
  133. package/dist/index201.js +3 -4
  134. package/dist/index201.js.map +1 -1
  135. package/dist/index202.js +23 -24
  136. package/dist/index202.js.map +1 -1
  137. package/dist/index203.js +28 -10
  138. package/dist/index203.js.map +1 -1
  139. package/dist/index204.js +97 -4
  140. package/dist/index204.js.map +1 -1
  141. package/dist/index205.js +4 -12
  142. package/dist/index205.js.map +1 -1
  143. package/dist/index206.js +22 -19
  144. package/dist/index206.js.map +1 -1
  145. package/dist/index207.js +4 -6
  146. package/dist/index207.js.map +1 -1
  147. package/dist/index208.js +4 -15
  148. package/dist/index208.js.map +1 -1
  149. package/dist/index209.js +10 -102
  150. package/dist/index209.js.map +1 -1
  151. package/dist/index210.js +21 -3
  152. package/dist/index210.js.map +1 -1
  153. package/dist/index211.js +5 -23
  154. package/dist/index211.js.map +1 -1
  155. package/dist/index212.js +15 -28
  156. package/dist/index212.js.map +1 -1
  157. package/dist/index213.js +101 -17
  158. package/dist/index213.js.map +1 -1
  159. package/dist/index214.js +3 -7
  160. package/dist/index214.js.map +1 -1
  161. package/dist/index215.js +24 -15
  162. package/dist/index215.js.map +1 -1
  163. package/dist/index216.js +27 -7
  164. package/dist/index216.js.map +1 -1
  165. package/dist/index217.js +17 -24
  166. package/dist/index217.js.map +1 -1
  167. package/dist/index218.js +6 -22
  168. package/dist/index218.js.map +1 -1
  169. package/dist/index219.js +15 -6
  170. package/dist/index219.js.map +1 -1
  171. package/dist/index220.js +8 -5
  172. package/dist/index220.js.map +1 -1
  173. package/dist/index221.js +27 -4
  174. package/dist/index221.js.map +1 -1
  175. package/dist/index222.js +23 -4
  176. package/dist/index222.js.map +1 -1
  177. package/dist/index223.js +6 -24
  178. package/dist/index223.js.map +1 -1
  179. package/dist/index224.js +5 -3
  180. package/dist/index224.js.map +1 -1
  181. package/dist/index225.js +4 -24
  182. package/dist/index225.js.map +1 -1
  183. package/dist/index226.js +4 -23
  184. package/dist/index226.js.map +1 -1
  185. package/dist/index227.js +23 -6
  186. package/dist/index227.js.map +1 -1
  187. package/dist/index228.js +22 -8
  188. package/dist/index228.js.map +1 -1
  189. package/dist/index229.js +3 -19
  190. package/dist/index229.js.map +1 -1
  191. package/dist/index23.js.map +1 -1
  192. package/dist/index230.js +22 -50
  193. package/dist/index230.js.map +1 -1
  194. package/dist/index231.js +7 -20
  195. package/dist/index231.js.map +1 -1
  196. package/dist/index232.js +9 -27
  197. package/dist/index232.js.map +1 -1
  198. package/dist/index233.js +17 -97
  199. package/dist/index233.js.map +1 -1
  200. package/dist/index234.js +50 -33
  201. package/dist/index234.js.map +1 -1
  202. package/dist/index235.js +20 -119
  203. package/dist/index235.js.map +1 -1
  204. package/dist/index236.js +28 -13
  205. package/dist/index236.js.map +1 -1
  206. package/dist/index237.js +98 -4
  207. package/dist/index237.js.map +1 -1
  208. package/dist/index238.js +33 -15
  209. package/dist/index238.js.map +1 -1
  210. package/dist/index239.js +116 -62
  211. package/dist/index239.js.map +1 -1
  212. package/dist/index24.js.map +1 -1
  213. package/dist/index240.js +13 -10
  214. package/dist/index240.js.map +1 -1
  215. package/dist/index241.js +4 -109
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +14 -14
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +64 -12
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +10 -5
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +104 -318
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +14 -66
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +12 -232
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +4 -270
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +313 -309
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index25.js.map +1 -1
  234. package/dist/index250.js +60 -171
  235. package/dist/index250.js.map +1 -1
  236. package/dist/index251.js +252 -8
  237. package/dist/index251.js.map +1 -1
  238. package/dist/index252.js +268 -41
  239. package/dist/index252.js.map +1 -1
  240. package/dist/index253.js +316 -47
  241. package/dist/index253.js.map +1 -1
  242. package/dist/index254.js +179 -9
  243. package/dist/index254.js.map +1 -1
  244. package/dist/index255.js +6 -50
  245. package/dist/index255.js.map +1 -1
  246. package/dist/index256.js +41 -51
  247. package/dist/index256.js.map +1 -1
  248. package/dist/index257.js +50 -7
  249. package/dist/index257.js.map +1 -1
  250. package/dist/index258.js +9 -10
  251. package/dist/index258.js.map +1 -1
  252. package/dist/index259.js +51 -61
  253. package/dist/index259.js.map +1 -1
  254. package/dist/index26.js.map +1 -1
  255. package/dist/index260.js +53 -42
  256. package/dist/index260.js.map +1 -1
  257. package/dist/index261.js +9 -97
  258. package/dist/index261.js.map +1 -1
  259. package/dist/index262.js +31 -47
  260. package/dist/index262.js.map +1 -1
  261. package/dist/index263.js +61 -36
  262. package/dist/index263.js.map +1 -1
  263. package/dist/index264.js +43 -47
  264. package/dist/index264.js.map +1 -1
  265. package/dist/index265.js +92 -46
  266. package/dist/index265.js.map +1 -1
  267. package/dist/index266.js +48 -20
  268. package/dist/index266.js.map +1 -1
  269. package/dist/index267.js +33 -176
  270. package/dist/index267.js.map +1 -1
  271. package/dist/index268.js +49 -48
  272. package/dist/index268.js.map +1 -1
  273. package/dist/index269.js +68 -15
  274. package/dist/index269.js.map +1 -1
  275. package/dist/index27.js.map +1 -1
  276. package/dist/index270.js +20 -65
  277. package/dist/index270.js.map +1 -1
  278. package/dist/index271.js +202 -9
  279. package/dist/index271.js.map +1 -1
  280. package/dist/index272.js +48 -40
  281. package/dist/index272.js.map +1 -1
  282. package/dist/index273.js +60 -91
  283. package/dist/index273.js.map +1 -1
  284. package/dist/index274.js +9 -278
  285. package/dist/index274.js.map +1 -1
  286. package/dist/index275.js +38 -55
  287. package/dist/index275.js.map +1 -1
  288. package/dist/index276.js +91 -10
  289. package/dist/index276.js.map +1 -1
  290. package/dist/index277.js +278 -12
  291. package/dist/index277.js.map +1 -1
  292. package/dist/index278.js +58 -11
  293. package/dist/index278.js.map +1 -1
  294. package/dist/index279.js +11 -64
  295. package/dist/index279.js.map +1 -1
  296. package/dist/index28.js +5 -5
  297. package/dist/index28.js.map +1 -1
  298. package/dist/index280.js +12 -6
  299. package/dist/index280.js.map +1 -1
  300. package/dist/index281.js +3 -25
  301. package/dist/index281.js.map +1 -1
  302. package/dist/index282.js +3 -25
  303. package/dist/index282.js.map +1 -1
  304. package/dist/index283.js +12 -126
  305. package/dist/index283.js.map +1 -1
  306. package/dist/index284.js +63 -51
  307. package/dist/index284.js.map +1 -1
  308. package/dist/index285.js +5 -60
  309. package/dist/index285.js.map +1 -1
  310. package/dist/index286.js +24 -48
  311. package/dist/index286.js.map +1 -1
  312. package/dist/index287.js +24 -6
  313. package/dist/index287.js.map +1 -1
  314. package/dist/index288.js +125 -14
  315. package/dist/index288.js.map +1 -1
  316. package/dist/index289.js +51 -16
  317. package/dist/index289.js.map +1 -1
  318. package/dist/index29.js +5 -7
  319. package/dist/index29.js.map +1 -1
  320. package/dist/index290.js +56 -11
  321. package/dist/index290.js.map +1 -1
  322. package/dist/index291.js +47 -24
  323. package/dist/index291.js.map +1 -1
  324. package/dist/index292.js +7 -51
  325. package/dist/index292.js.map +1 -1
  326. package/dist/index293.js +15 -6
  327. package/dist/index293.js.map +1 -1
  328. package/dist/index294.js +18 -148
  329. package/dist/index294.js.map +1 -1
  330. package/dist/index295.js +12 -59
  331. package/dist/index295.js.map +1 -1
  332. package/dist/index296.js +25 -120
  333. package/dist/index296.js.map +1 -1
  334. package/dist/index297.js +54 -15
  335. package/dist/index297.js.map +1 -1
  336. package/dist/index298.js +5 -866
  337. package/dist/index298.js.map +1 -1
  338. package/dist/index299.js +148 -28
  339. package/dist/index299.js.map +1 -1
  340. package/dist/index3.js.map +1 -1
  341. package/dist/index30.js +6 -8
  342. package/dist/index30.js.map +1 -1
  343. package/dist/index300.js +55 -512
  344. package/dist/index300.js.map +1 -1
  345. package/dist/index301.js +111 -794
  346. package/dist/index301.js.map +1 -1
  347. package/dist/index302.js +14 -7436
  348. package/dist/index302.js.map +1 -1
  349. package/dist/index303.js +862 -6
  350. package/dist/index303.js.map +1 -1
  351. package/dist/index304.js +28 -12
  352. package/dist/index304.js.map +1 -1
  353. package/dist/index305.js +515 -5
  354. package/dist/index305.js.map +1 -1
  355. package/dist/index306.js +803 -5
  356. package/dist/index306.js.map +1 -1
  357. package/dist/index307.js +7426 -468
  358. package/dist/index307.js.map +1 -1
  359. package/dist/index308.js +6 -37
  360. package/dist/index308.js.map +1 -1
  361. package/dist/index309.js +12 -19
  362. package/dist/index309.js.map +1 -1
  363. package/dist/index31.js +5 -11
  364. package/dist/index31.js.map +1 -1
  365. package/dist/index310.js +5 -30
  366. package/dist/index310.js.map +1 -1
  367. package/dist/index311.js +5 -4
  368. package/dist/index311.js.map +1 -1
  369. package/dist/index312.js +461 -51
  370. package/dist/index312.js.map +1 -1
  371. package/dist/index313.js +36 -10
  372. package/dist/index313.js.map +1 -1
  373. package/dist/index314.js +19 -5
  374. package/dist/index314.js.map +1 -1
  375. package/dist/index315.js +29 -8
  376. package/dist/index315.js.map +1 -1
  377. package/dist/index316.js +4 -12
  378. package/dist/index316.js.map +1 -1
  379. package/dist/index317.js +60 -3
  380. package/dist/index317.js.map +1 -1
  381. package/dist/index318.js +10 -15
  382. package/dist/index318.js.map +1 -1
  383. package/dist/index319.js +5 -25
  384. package/dist/index319.js.map +1 -1
  385. package/dist/index32.js +5 -5
  386. package/dist/index32.js.map +1 -1
  387. package/dist/index320.js +9 -41
  388. package/dist/index320.js.map +1 -1
  389. package/dist/index321.js +11 -4
  390. package/dist/index321.js.map +1 -1
  391. package/dist/index322.js +3 -26
  392. package/dist/index322.js.map +1 -1
  393. package/dist/index323.js +15 -18
  394. package/dist/index323.js.map +1 -1
  395. package/dist/index324.js +22 -31
  396. package/dist/index324.js.map +1 -1
  397. package/dist/index325.js +41 -5
  398. package/dist/index325.js.map +1 -1
  399. package/dist/index326.js +4 -8
  400. package/dist/index326.js.map +1 -1
  401. package/dist/index327.js +25 -8
  402. package/dist/index327.js.map +1 -1
  403. package/dist/index328.js +19 -9
  404. package/dist/index328.js.map +1 -1
  405. package/dist/index329.js +34 -10
  406. package/dist/index329.js.map +1 -1
  407. package/dist/index33.js +9 -6
  408. package/dist/index33.js.map +1 -1
  409. package/dist/index330.js +5 -7
  410. package/dist/index330.js.map +1 -1
  411. package/dist/index331.js +9 -75
  412. package/dist/index331.js.map +1 -1
  413. package/dist/index332.js +8 -162
  414. package/dist/index332.js.map +1 -1
  415. package/dist/index333.js +9 -114
  416. package/dist/index333.js.map +1 -1
  417. package/dist/index334.js +10 -14
  418. package/dist/index334.js.map +1 -1
  419. package/dist/index335.js +7 -80
  420. package/dist/index335.js.map +1 -1
  421. package/dist/index336.js +68 -39
  422. package/dist/index336.js.map +1 -1
  423. package/dist/index337.js +160 -11
  424. package/dist/index337.js.map +1 -1
  425. package/dist/index338.js +113 -15
  426. package/dist/index338.js.map +1 -1
  427. package/dist/index339.js +13 -100
  428. package/dist/index339.js.map +1 -1
  429. package/dist/index34.js +6 -6
  430. package/dist/index34.js.map +1 -1
  431. package/dist/index340.js +73 -49
  432. package/dist/index340.js.map +1 -1
  433. package/dist/index341.js +34 -96
  434. package/dist/index341.js.map +1 -1
  435. package/dist/index342.js +12 -70
  436. package/dist/index342.js.map +1 -1
  437. package/dist/index343.js +14 -111
  438. package/dist/index343.js.map +1 -1
  439. package/dist/index344.js +94 -48
  440. package/dist/index344.js.map +1 -1
  441. package/dist/index345.js +50 -37
  442. package/dist/index345.js.map +1 -1
  443. package/dist/index346.js +89 -125
  444. package/dist/index346.js.map +1 -1
  445. package/dist/index347.js +52 -123
  446. package/dist/index347.js.map +1 -1
  447. package/dist/index348.js +54 -197
  448. package/dist/index348.js.map +1 -1
  449. package/dist/index349.js +44 -229
  450. package/dist/index349.js.map +1 -1
  451. package/dist/index35.js +9 -9
  452. package/dist/index35.js.map +1 -1
  453. package/dist/index350.js +42 -308
  454. package/dist/index350.js.map +1 -1
  455. package/dist/index351.js +144 -5
  456. package/dist/index351.js.map +1 -1
  457. package/dist/index352.js +142 -6
  458. package/dist/index352.js.map +1 -1
  459. package/dist/index353.js +257 -7
  460. package/dist/index353.js.map +1 -1
  461. package/dist/index354.js +241 -6
  462. package/dist/index354.js.map +1 -1
  463. package/dist/index355.js +309 -6
  464. package/dist/index355.js.map +1 -1
  465. package/dist/index356.js +5 -21
  466. package/dist/index356.js.map +1 -1
  467. package/dist/index357.js +6 -10
  468. package/dist/index357.js.map +1 -1
  469. package/dist/index358.js +7 -128
  470. package/dist/index358.js.map +1 -1
  471. package/dist/index359.js +6 -42
  472. package/dist/index359.js.map +1 -1
  473. package/dist/index36.js +12 -7
  474. package/dist/index36.js.map +1 -1
  475. package/dist/index360.js +6 -68
  476. package/dist/index360.js.map +1 -1
  477. package/dist/index361.js +20 -116
  478. package/dist/index361.js.map +1 -1
  479. package/dist/index362.js +10 -490
  480. package/dist/index362.js.map +1 -1
  481. package/dist/index363.js +128 -7
  482. package/dist/index363.js.map +1 -1
  483. package/dist/index364.js +42 -13
  484. package/dist/index364.js.map +1 -1
  485. package/dist/index365.js +67 -3
  486. package/dist/index365.js.map +1 -1
  487. package/dist/index366.js +115 -45
  488. package/dist/index366.js.map +1 -1
  489. package/dist/index367.js +490 -11
  490. package/dist/index367.js.map +1 -1
  491. package/dist/index368.js +8 -26
  492. package/dist/index368.js.map +1 -1
  493. package/dist/index369.js +12 -41
  494. package/dist/index369.js.map +1 -1
  495. package/dist/index37.js +13 -5
  496. package/dist/index37.js.map +1 -1
  497. package/dist/index370.js +4 -36
  498. package/dist/index370.js.map +1 -1
  499. package/dist/index371.js +45 -15
  500. package/dist/index371.js.map +1 -1
  501. package/dist/index372.js +24 -41
  502. package/dist/index372.js.map +1 -1
  503. package/dist/index373.js +3 -12
  504. package/dist/index373.js.map +1 -1
  505. package/dist/index374.js +27 -11
  506. package/dist/index374.js.map +1 -1
  507. package/dist/index375.js +40 -50
  508. package/dist/index375.js.map +1 -1
  509. package/dist/index376.js +37 -40
  510. package/dist/index376.js.map +1 -1
  511. package/dist/index377.js +12 -10
  512. package/dist/index377.js.map +1 -1
  513. package/dist/index378.js +40 -4
  514. package/dist/index378.js.map +1 -1
  515. package/dist/index379.js +7 -4
  516. package/dist/index379.js.map +1 -1
  517. package/dist/index38.js +5 -5
  518. package/dist/index38.js.map +1 -1
  519. package/dist/index380.js +29 -8
  520. package/dist/index380.js.map +1 -1
  521. package/dist/index381.js +9 -303
  522. package/dist/index381.js.map +1 -1
  523. package/dist/index382.js +57 -4
  524. package/dist/index382.js.map +1 -1
  525. package/dist/index383.js +40 -22
  526. package/dist/index383.js.map +1 -1
  527. package/dist/index384.js +15 -105
  528. package/dist/index384.js.map +1 -1
  529. package/dist/index385.js +5 -22
  530. package/dist/index385.js.map +1 -1
  531. package/dist/index386.js +10 -22
  532. package/dist/index386.js.map +1 -1
  533. package/dist/index387.js +289 -16
  534. package/dist/index387.js.map +1 -1
  535. package/dist/index388.js +4 -12
  536. package/dist/index388.js.map +1 -1
  537. package/dist/index389.js +20 -112
  538. package/dist/index389.js.map +1 -1
  539. package/dist/index39.js +6 -10
  540. package/dist/index39.js.map +1 -1
  541. package/dist/index390.js +3 -9
  542. package/dist/index390.js.map +1 -1
  543. package/dist/index391.js +104 -27
  544. package/dist/index391.js.map +1 -1
  545. package/dist/index392.js +20 -9
  546. package/dist/index392.js.map +1 -1
  547. package/dist/index393.js +20 -6
  548. package/dist/index393.js.map +1 -1
  549. package/dist/index394.js +14 -253
  550. package/dist/index394.js.map +1 -1
  551. package/dist/index395.js +12 -10
  552. package/dist/index395.js.map +1 -1
  553. package/dist/index396.js +117 -11
  554. package/dist/index396.js.map +1 -1
  555. package/dist/index397.js +8 -6
  556. package/dist/index397.js.map +1 -1
  557. package/dist/index398.js +32 -22
  558. package/dist/index398.js.map +1 -1
  559. package/dist/index399.js +9 -23
  560. package/dist/index399.js.map +1 -1
  561. package/dist/index4.js.map +1 -1
  562. package/dist/index40.js +8 -11
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index400.js +6 -105
  565. package/dist/index400.js.map +1 -1
  566. package/dist/index401.js +3 -15
  567. package/dist/index401.js.map +1 -1
  568. package/dist/index402.js +251 -10
  569. package/dist/index402.js.map +1 -1
  570. package/dist/index403.js +9 -7
  571. package/dist/index403.js.map +1 -1
  572. package/dist/index404.js +11 -239
  573. package/dist/index404.js.map +1 -1
  574. package/dist/index405.js +7 -28
  575. package/dist/index405.js.map +1 -1
  576. package/dist/index406.js +21 -37
  577. package/dist/index406.js.map +1 -1
  578. package/dist/index407.js +21 -10
  579. package/dist/index407.js.map +1 -1
  580. package/dist/index408.js +97 -117
  581. package/dist/index408.js.map +1 -1
  582. package/dist/index409.js +15 -40
  583. package/dist/index409.js.map +1 -1
  584. package/dist/index41.js +6 -7
  585. package/dist/index41.js.map +1 -1
  586. package/dist/index410.js +11 -25
  587. package/dist/index410.js.map +1 -1
  588. package/dist/index411.js +7 -9
  589. package/dist/index411.js.map +1 -1
  590. package/dist/index412.js +3 -24
  591. package/dist/index412.js.map +1 -1
  592. package/dist/index413.js +226 -15
  593. package/dist/index413.js.map +1 -1
  594. package/dist/index414.js +24 -11
  595. package/dist/index414.js.map +1 -1
  596. package/dist/index415.js +38 -4
  597. package/dist/index415.js.map +1 -1
  598. package/dist/index416.js +11 -324
  599. package/dist/index416.js.map +1 -1
  600. package/dist/index417.js +119 -62
  601. package/dist/index417.js.map +1 -1
  602. package/dist/index418.js +42 -4
  603. package/dist/index418.js.map +1 -1
  604. package/dist/index419.js +25 -28
  605. package/dist/index419.js.map +1 -1
  606. package/dist/index42.js +6 -4
  607. package/dist/index42.js.map +1 -1
  608. package/dist/index420.js +11 -470
  609. package/dist/index420.js.map +1 -1
  610. package/dist/index421.js +23 -268
  611. package/dist/index421.js.map +1 -1
  612. package/dist/index422.js +24 -0
  613. package/dist/index422.js.map +1 -0
  614. package/dist/index423.js +17 -0
  615. package/dist/index423.js.map +1 -0
  616. package/dist/index424.js +8 -0
  617. package/dist/index424.js.map +1 -0
  618. package/dist/index425.js +328 -0
  619. package/dist/index425.js.map +1 -0
  620. package/dist/index426.js +66 -0
  621. package/dist/index426.js.map +1 -0
  622. package/dist/index427.js +7 -0
  623. package/dist/index427.js.map +1 -0
  624. package/dist/index428.js +31 -0
  625. package/dist/index428.js.map +1 -0
  626. package/dist/index429.js +474 -0
  627. package/dist/index429.js.map +1 -0
  628. package/dist/index43.js +68 -7
  629. package/dist/index43.js.map +1 -1
  630. package/dist/index430.js +272 -0
  631. package/dist/index430.js.map +1 -0
  632. package/dist/index44.js +7 -6
  633. package/dist/index44.js.map +1 -1
  634. package/dist/index45.js +31 -7
  635. package/dist/index45.js.map +1 -1
  636. package/dist/index46.js +10 -10
  637. package/dist/index46.js.map +1 -1
  638. package/dist/index47.js +15 -13
  639. package/dist/index47.js.map +1 -1
  640. package/dist/index48.js +201 -7
  641. package/dist/index48.js.map +1 -1
  642. package/dist/index49.js +20 -6
  643. package/dist/index49.js.map +1 -1
  644. package/dist/index5.js.map +1 -1
  645. package/dist/index50.js +16 -6
  646. package/dist/index50.js.map +1 -1
  647. package/dist/index51.js +123 -14
  648. package/dist/index51.js.map +1 -1
  649. package/dist/index52.js +19 -8
  650. package/dist/index52.js.map +1 -1
  651. package/dist/index53.js +5 -7
  652. package/dist/index53.js.map +1 -1
  653. package/dist/index54.js +9 -68
  654. package/dist/index54.js.map +1 -1
  655. package/dist/index55.js +7 -7
  656. package/dist/index55.js.map +1 -1
  657. package/dist/index56.js +9 -31
  658. package/dist/index56.js.map +1 -1
  659. package/dist/index57.js +13 -10
  660. package/dist/index57.js.map +1 -1
  661. package/dist/index58.js +8 -15
  662. package/dist/index58.js.map +1 -1
  663. package/dist/index59.js +10 -201
  664. package/dist/index59.js.map +1 -1
  665. package/dist/index6.js.map +1 -1
  666. package/dist/index60.js +13 -20
  667. package/dist/index60.js.map +1 -1
  668. package/dist/index61.js +9 -16
  669. package/dist/index61.js.map +1 -1
  670. package/dist/index62.js +10 -123
  671. package/dist/index62.js.map +1 -1
  672. package/dist/index63.js +5 -19
  673. package/dist/index63.js.map +1 -1
  674. package/dist/index64.js +42 -9
  675. package/dist/index64.js.map +1 -1
  676. package/dist/index65.js +387 -9
  677. package/dist/index65.js.map +1 -1
  678. package/dist/index66.js +37 -14
  679. package/dist/index66.js.map +1 -1
  680. package/dist/index67.js +21 -9
  681. package/dist/index67.js.map +1 -1
  682. package/dist/index68.js +4 -9
  683. package/dist/index68.js.map +1 -1
  684. package/dist/index69.js +6 -4
  685. package/dist/index69.js.map +1 -1
  686. package/dist/index7.js +3 -3
  687. package/dist/index7.js.map +1 -1
  688. package/dist/index70.js +57 -41
  689. package/dist/index70.js.map +1 -1
  690. package/dist/index71.js +5 -387
  691. package/dist/index71.js.map +1 -1
  692. package/dist/index72.js +6 -37
  693. package/dist/index72.js.map +1 -1
  694. package/dist/index73.js +5 -21
  695. package/dist/index73.js.map +1 -1
  696. package/dist/index74.js +4 -56
  697. package/dist/index74.js.map +1 -1
  698. package/dist/index75.js +7 -7
  699. package/dist/index75.js.map +1 -1
  700. package/dist/index76.js +6 -5
  701. package/dist/index76.js.map +1 -1
  702. package/dist/index77.js +6 -5
  703. package/dist/index77.js.map +1 -1
  704. package/dist/index78.js +11 -5
  705. package/dist/index78.js.map +1 -1
  706. package/dist/index79.js +11 -5
  707. package/dist/index79.js.map +1 -1
  708. package/dist/index8.js.map +1 -1
  709. package/dist/index80.js +7 -6
  710. package/dist/index80.js.map +1 -1
  711. package/dist/index81.js +10 -6
  712. package/dist/index81.js.map +1 -1
  713. package/dist/index82.js +5 -8
  714. package/dist/index82.js.map +1 -1
  715. package/dist/index83.js +6 -7
  716. package/dist/index83.js.map +1 -1
  717. package/dist/index84.js.map +1 -1
  718. package/dist/index85.js.map +1 -1
  719. package/dist/index86.js.map +1 -1
  720. package/dist/index87.js +2 -2
  721. package/dist/index87.js.map +1 -1
  722. package/dist/index88.js +31 -31
  723. package/dist/index88.js.map +1 -1
  724. package/dist/index89.js +1 -1
  725. package/dist/index89.js.map +1 -1
  726. package/dist/index9.js.map +1 -1
  727. package/dist/index90.js.map +1 -1
  728. package/dist/index91.js.map +1 -1
  729. package/dist/index92.js.map +1 -1
  730. package/dist/index93.js.map +1 -1
  731. package/dist/index94.js.map +1 -1
  732. package/dist/index95.js.map +1 -1
  733. package/dist/index96.js.map +1 -1
  734. package/dist/index97.js.map +1 -1
  735. package/dist/index98.js.map +1 -1
  736. package/dist/index99.js.map +1 -1
  737. package/package.json +13 -13
  738. package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index270.js CHANGED
@@ -1,69 +1,24 @@
1
- import { EMPTY_OBJECT as e } from "./index191.js";
2
- import { FloatingRootStore as t } from "./index262.js";
3
- import { getEmptyRootContext as n } from "./index269.js";
4
- //#region ../../node_modules/@base-ui/react/utils/popups/store.mjs
5
- function r() {
6
- return {
7
- open: !1,
8
- openProp: void 0,
9
- mounted: !1,
10
- transitionStatus: void 0,
11
- floatingRootContext: n(),
12
- floatingId: void 0,
13
- triggerCount: 0,
14
- preventUnmountingOnClose: !1,
15
- payload: void 0,
16
- activeTriggerId: null,
17
- activeTriggerElement: null,
18
- triggerIdProp: void 0,
19
- popupElement: null,
20
- positionerElement: null,
21
- activeTriggerProps: e,
22
- inactiveTriggerProps: e,
23
- popupProps: e
24
- };
1
+ "use client";
2
+ import { useStableCallback as e } from "./index206.js";
3
+ import { useAnimationsFinished as t } from "./index269.js";
4
+ import * as n from "react";
5
+ //#region ../../node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
6
+ function r(r) {
7
+ let { enabled: i = !0, open: a, ref: o, batch: s = !1, onComplete: c } = r, l = e(c), u = t(o, a, s);
8
+ n.useEffect(() => {
9
+ if (!i) return;
10
+ let e = new AbortController();
11
+ return u(l, e.signal), () => {
12
+ e.abort();
13
+ };
14
+ }, [
15
+ i,
16
+ a,
17
+ l,
18
+ u
19
+ ]);
25
20
  }
26
- function i(e, n, r = !1) {
27
- return new t({
28
- open: !1,
29
- transitionStatus: void 0,
30
- floatingElement: null,
31
- referenceElement: null,
32
- triggerElements: e,
33
- floatingId: n,
34
- syncOnly: !0,
35
- nested: r,
36
- onOpenChange: void 0
37
- });
38
- }
39
- var a = (e) => e.triggerIdProp ?? e.activeTriggerId, o = (e) => e.openProp ?? e.open, s = (e) => (e.popupElement?.id ?? e.floatingId) || void 0;
40
- function c(e, t) {
41
- return t !== void 0 && o(e) && a(e) === t;
42
- }
43
- function l(e, t) {
44
- return c(e, t) ? !0 : t !== void 0 && o(e) && a(e) == null && e.triggerCount === 1;
45
- }
46
- var u = {
47
- open: o,
48
- mounted: (e) => e.mounted,
49
- transitionStatus: (e) => e.transitionStatus,
50
- floatingRootContext: (e) => e.floatingRootContext,
51
- triggerCount: (e) => e.triggerCount,
52
- preventUnmountingOnClose: (e) => e.preventUnmountingOnClose,
53
- payload: (e) => e.payload,
54
- activeTriggerId: a,
55
- activeTriggerElement: (e) => e.mounted ? e.activeTriggerElement : null,
56
- popupId: s,
57
- isTriggerActive: (e, t) => t !== void 0 && a(e) === t,
58
- isOpenedByTrigger: (e, t) => c(e, t),
59
- isMountedByTrigger: (e, t) => t !== void 0 && a(e) === t && e.mounted,
60
- triggerProps: (e, t) => t ? e.activeTriggerProps : e.inactiveTriggerProps,
61
- triggerPopupId: (e, t) => l(e, t) ? s(e) : void 0,
62
- popupProps: (e) => e.popupProps,
63
- popupElement: (e) => e.popupElement,
64
- positionerElement: (e) => e.positionerElement
65
- };
66
21
  //#endregion
67
- export { r as createInitialPopupStoreState, i as createPopupFloatingRootContext, u as popupStoreSelectors };
22
+ export { r as useOpenChangeComplete };
68
23
 
69
24
  //# sourceMappingURL=index270.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index270.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/popups/store.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FloatingRootStore } from \"../../floating-ui-react/components/FloatingRootStore.mjs\";\nimport { getEmptyRootContext } from \"../../floating-ui-react/utils/getEmptyRootContext.mjs\";\n\n/**\n * State common to all popup stores.\n */\n\nexport function createInitialPopupStoreState() {\n return {\n open: false,\n openProp: undefined,\n mounted: false,\n transitionStatus: undefined,\n floatingRootContext: getEmptyRootContext(),\n floatingId: undefined,\n triggerCount: 0,\n preventUnmountingOnClose: false,\n payload: undefined,\n activeTriggerId: null,\n activeTriggerElement: null,\n triggerIdProp: undefined,\n popupElement: null,\n positionerElement: null,\n activeTriggerProps: EMPTY_OBJECT,\n inactiveTriggerProps: EMPTY_OBJECT,\n popupProps: EMPTY_OBJECT\n };\n}\nexport function createPopupFloatingRootContext(triggerElements, floatingId, nested = false) {\n return new FloatingRootStore({\n open: false,\n transitionStatus: undefined,\n floatingElement: null,\n referenceElement: null,\n triggerElements,\n floatingId,\n syncOnly: true,\n nested,\n onOpenChange: undefined\n });\n}\nconst activeTriggerIdSelector = state => state.triggerIdProp ?? state.activeTriggerId;\nconst openSelector = state => state.openProp ?? state.open;\nconst popupIdSelector = state => {\n const popupId = state.popupElement?.id ?? state.floatingId;\n return popupId || undefined;\n};\nfunction triggerOwnsOpenPopup(state, triggerId) {\n return triggerId !== undefined && openSelector(state) && activeTriggerIdSelector(state) === triggerId;\n}\nfunction triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) {\n if (triggerOwnsOpenPopup(state, triggerId)) {\n return true;\n }\n return triggerId !== undefined && openSelector(state) && activeTriggerIdSelector(state) == null && state.triggerCount === 1;\n}\nexport const popupStoreSelectors = {\n open: openSelector,\n mounted: state => state.mounted,\n transitionStatus: state => state.transitionStatus,\n floatingRootContext: state => state.floatingRootContext,\n triggerCount: state => state.triggerCount,\n preventUnmountingOnClose: state => state.preventUnmountingOnClose,\n payload: state => state.payload,\n activeTriggerId: activeTriggerIdSelector,\n activeTriggerElement: state => state.mounted ? state.activeTriggerElement : null,\n popupId: popupIdSelector,\n /**\n * Whether the trigger with the given ID was used to open the popup.\n */\n isTriggerActive: (state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId,\n /**\n * Whether the popup is open and was activated by a trigger with the given ID.\n */\n isOpenedByTrigger: (state, triggerId) => triggerOwnsOpenPopup(state, triggerId),\n /**\n * Whether the popup is mounted and was activated by a trigger with the given ID.\n */\n isMountedByTrigger: (state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId && state.mounted,\n triggerProps: (state, isActive) => isActive ? state.activeTriggerProps : state.inactiveTriggerProps,\n /**\n * Popup id for the trigger that currently owns the open popup.\n */\n triggerPopupId: (state, triggerId) => triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) ? popupIdSelector(state) : undefined,\n popupProps: state => state.popupProps,\n popupElement: state => state.popupElement,\n positionerElement: state => state.positionerElement\n};\n\n/**\n * Store members a detached handle-backed trigger reads or invokes for trigger registration and data\n * forwarding. `set`/`update` are included only for trigger-count and trigger-data bookkeeping; on a\n * detached (inert) store they are intentionally no-ops, so a write through them is not guaranteed to\n * be durable. Component handle-store views Pick these from their concrete store (preserving its\n * context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.\n */\n\n/**\n * The subset of a popup store that trigger registration and data forwarding rely on. Narrow enough\n * that an inert store can be passed while detached.\n */"],"x_google_ignoreList":[0],"mappings":";;;;AAQA,SAAgB,IAA+B;CAC7C,OAAO;EACL,MAAM;EACN,UAAU,KAAA;EACV,SAAS;EACT,kBAAkB,KAAA;EAClB,qBAAqB,EAAoB;EACzC,YAAY,KAAA;EACZ,cAAc;EACd,0BAA0B;EAC1B,SAAS,KAAA;EACT,iBAAiB;EACjB,sBAAsB;EACtB,eAAe,KAAA;EACf,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,sBAAsB;EACtB,YAAY;CACd;AACF;AACA,SAAgB,EAA+B,GAAiB,GAAY,IAAS,IAAO;CAC1F,OAAO,IAAI,EAAkB;EAC3B,MAAM;EACN,kBAAkB,KAAA;EAClB,iBAAiB;EACjB,kBAAkB;EAClB;EACA;EACA,UAAU;EACV;EACA,cAAc,KAAA;CAChB,CAAC;AACH;AACA,IAAM,KAA0B,MAAS,EAAM,iBAAiB,EAAM,iBAChE,KAAe,MAAS,EAAM,YAAY,EAAM,MAChD,KAAkB,OACN,EAAM,cAAc,MAAM,EAAM,eAC9B,KAAA;AAEpB,SAAS,EAAqB,GAAO,GAAW;CAC9C,OAAO,MAAc,KAAA,KAAa,EAAa,CAAK,KAAK,EAAwB,CAAK,MAAM;AAC9F;AACA,SAAS,EAAoC,GAAO,GAAW;CAI7D,OAHI,EAAqB,GAAO,CAAS,IAChC,KAEF,MAAc,KAAA,KAAa,EAAa,CAAK,KAAK,EAAwB,CAAK,KAAK,QAAQ,EAAM,iBAAiB;AAC5H;AACA,IAAa,IAAsB;CACjC,MAAM;CACN,UAAS,MAAS,EAAM;CACxB,mBAAkB,MAAS,EAAM;CACjC,sBAAqB,MAAS,EAAM;CACpC,eAAc,MAAS,EAAM;CAC7B,2BAA0B,MAAS,EAAM;CACzC,UAAS,MAAS,EAAM;CACxB,iBAAiB;CACjB,uBAAsB,MAAS,EAAM,UAAU,EAAM,uBAAuB;CAC5E,SAAS;CAIT,kBAAkB,GAAO,MAAc,MAAc,KAAA,KAAa,EAAwB,CAAK,MAAM;CAIrG,oBAAoB,GAAO,MAAc,EAAqB,GAAO,CAAS;CAI9E,qBAAqB,GAAO,MAAc,MAAc,KAAA,KAAa,EAAwB,CAAK,MAAM,KAAa,EAAM;CAC3H,eAAe,GAAO,MAAa,IAAW,EAAM,qBAAqB,EAAM;CAI/E,iBAAiB,GAAO,MAAc,EAAoC,GAAO,CAAS,IAAI,EAAgB,CAAK,IAAI,KAAA;CACvH,aAAY,MAAS,EAAM;CAC3B,eAAc,MAAS,EAAM;CAC7B,oBAAmB,MAAS,EAAM;AACpC"}
1
+ {"version":3,"file":"index270.js","names":["React$1","useOpenChangeComplete","onCompleteParam","parameters","onComplete","useStableCallback","runOnceAnimationsFinish","useAnimationsFinished","ref","open","batch","enabled","abortController"],"sources":["../../../node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useAnimationsFinished } from \"./useAnimationsFinished.mjs\";\n\n/**\n * Calls the provided function when the CSS open/close animation or transition completes.\n */\nexport function useOpenChangeComplete(parameters) {\n const {\n enabled = true,\n open,\n ref,\n batch = false,\n onComplete: onCompleteParam\n } = parameters;\n const onComplete = useStableCallback(onCompleteParam);\n const runOnceAnimationsFinish = useAnimationsFinished(ref, open, batch);\n React.useEffect(() => {\n if (!enabled) {\n return undefined;\n }\n const abortController = new AbortController();\n runOnceAnimationsFinish(onComplete, abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [enabled, open, onComplete, runOnceAnimationsFinish]);\n}"],"ignoreList":[0],"mappings":";;;;;AASA,SAAgBC,EAAsB,GAAY;CAChD,IAAM,EACJ,aAAU,IACV,SACA,QACA,WAAQ,IACR,YAAYC,MACVC,GACEC,IAAaC,EAAkBH,CAAe,GAC9CI,IAA0BC,EAAsBC,GAAKC,GAAMC,CAAK;CACtE,EAAM,gBAAgB;EACpB,IAAI,CAACC,GACH;EAEF,IAAMC,IAAkB,IAAI,gBAAgB;EAE5C,OADAN,EAAwBF,GAAYQ,EAAgB,MAAM,SAC7C;GACX,EAAgB,MAAM;EACxB;CACF,GAAG;EAACD;EAASF;EAAML;EAAYE;CAAuB,CAAC;AACzD"}
package/dist/index271.js CHANGED
@@ -1,14 +1,207 @@
1
1
  "use client";
2
- import { NOOP as e } from "./index191.js";
3
- import { require_shim as t } from "./index254.js";
4
- import * as n from "react";
5
- //#region ../../node_modules/@base-ui/react/utils/popups/usePopupHandleStore.mjs
6
- var r = t();
7
- function i(t) {
8
- let i = n.useCallback((n) => t === void 0 ? e : t.subscribeStore(n), [t]), a = n.useCallback(() => t === void 0 ? void 0 : t.store, [t]);
9
- return (0, r.useSyncExternalStore)(i, a, () => t?.serverStore);
2
+ import { useRefWithInit as e } from "./index185.js";
3
+ import { EMPTY_OBJECT as t } from "./index192.js";
4
+ import { useStableCallback as n } from "./index206.js";
5
+ import { useIsoLayoutEffect as r } from "./index208.js";
6
+ import { none as i } from "./index214.js";
7
+ import { createChangeEventDetails as a } from "./index215.js";
8
+ import { useId as o } from "./index217.js";
9
+ import { FOCUSABLE_ATTRIBUTE as s } from "./index229.js";
10
+ import { useFloatingParentNodeId as c } from "./index247.js";
11
+ import { useSyncedFloatingRootContext as l } from "./index267.js";
12
+ import { useTransitionStatus as u } from "./index268.js";
13
+ import { useOpenChangeComplete as d } from "./index270.js";
14
+ import * as f from "react";
15
+ import "react-dom";
16
+ //#region ../../node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
17
+ var p = {
18
+ tabIndex: -1,
19
+ [s]: ""
20
+ };
21
+ function m(e) {
22
+ return (t) => t !== "touch" || e.current;
23
+ }
24
+ function h(t, n = !1) {
25
+ let r = o(), i = c() != null, a = e(() => t(r, i)).current;
26
+ return l({
27
+ popupStore: a,
28
+ treatPopupAsFloatingElement: n,
29
+ floatingRootContext: a.state.floatingRootContext,
30
+ floatingId: r,
31
+ nested: i,
32
+ onOpenChange: a.setOpen
33
+ }), a;
34
+ }
35
+ function g({ handle: e, store: t }) {
36
+ return r(() => e.attachStore(t), [e, t]), null;
37
+ }
38
+ function _(e) {
39
+ let t = e.context.triggerElements.size;
40
+ e.select("open") && e.state.triggerCount !== t && e.set("triggerCount", t);
41
+ }
42
+ function v(e, t) {
43
+ let r = f.useRef(null);
44
+ return n((n) => {
45
+ let i = r.current;
46
+ if (i !== null) {
47
+ if (i.element === n && i.store === t && i.id === e) return;
48
+ r.current = null;
49
+ let a = i.store;
50
+ a.context.triggerElements.getById(i.id) === i.element && (a.context.triggerElements.delete(i.id), _(a));
51
+ }
52
+ n !== null && e !== void 0 && (r.current = {
53
+ store: t,
54
+ id: e,
55
+ element: n
56
+ }, t.context.triggerElements.add(e, n), _(t));
57
+ });
58
+ }
59
+ function y(e, t, n, r = !1) {
60
+ let i = e.preventUnmountingOnClose;
61
+ t ? i = !1 : r && (i = !0);
62
+ let a = n?.id ?? null, o = e.activeTriggerId, s = e.activeTriggerElement;
63
+ return (a || t) && (o = a, s = n ?? null), {
64
+ open: t,
65
+ preventUnmountingOnClose: i,
66
+ activeTriggerId: o,
67
+ activeTriggerElement: s
68
+ };
69
+ }
70
+ function b(e, t, i, a) {
71
+ let o = i.useState("isMountedByTrigger", e), s = v(e, i), c = n((t) => {
72
+ let n = i.select("open"), r = i.select("activeTriggerId");
73
+ if (r === e) {
74
+ let e = {
75
+ activeTriggerElement: t,
76
+ ...n ? a : null
77
+ };
78
+ i.update(e);
79
+ return;
80
+ }
81
+ if (r == null && n) {
82
+ let n = {
83
+ activeTriggerId: e ?? null,
84
+ activeTriggerElement: t,
85
+ ...a
86
+ };
87
+ i.update(n);
88
+ }
89
+ }), l = n((e) => {
90
+ s(e), e && c(e);
91
+ });
92
+ return r(() => (l(t.current), () => l(null)), [
93
+ l,
94
+ t,
95
+ i,
96
+ e
97
+ ]), r(() => {
98
+ if (o) {
99
+ let e = {
100
+ activeTriggerElement: t.current,
101
+ ...a
102
+ };
103
+ i.update(e);
104
+ }
105
+ }, [
106
+ o,
107
+ i,
108
+ t,
109
+ ...Object.values(a)
110
+ ]), {
111
+ registerTrigger: l,
112
+ isMountedByThisTrigger: o
113
+ };
114
+ }
115
+ function x(e, t = {}) {
116
+ let { closeOnActiveTriggerUnmount: n = !1 } = t, o = f.useRef(null), s = e.useState("open"), c = e.useState("triggerCount"), l = e.useState("activeTriggerId"), u = e.useState("activeTriggerElement");
117
+ r(() => {
118
+ if (!s) {
119
+ o.current = null, e.state.triggerCount !== 0 && e.set("triggerCount", 0);
120
+ return;
121
+ }
122
+ let t = e.context.triggerElements.size, r = {};
123
+ e.state.triggerCount !== t && (r.triggerCount = t);
124
+ let c = e.select("activeTriggerId"), l = null;
125
+ if (c) {
126
+ let t = e.context.triggerElements.getById(c);
127
+ if (t) o.current = c, t !== e.state.activeTriggerElement && (r.activeTriggerElement = t);
128
+ else {
129
+ for (let [t, n] of e.context.triggerElements.entries()) if (n === e.state.activeTriggerElement) {
130
+ r.activeTriggerId = t, r.activeTriggerElement = n, o.current = t;
131
+ break;
132
+ }
133
+ r.activeTriggerId === void 0 && (o.current === c ? l = c : o.current = null);
134
+ }
135
+ } else o.current = null;
136
+ if (!l && !c && t === 1) {
137
+ let t = e.context.triggerElements.entries().next();
138
+ if (!t.done) {
139
+ let [e, n] = t.value;
140
+ r.activeTriggerId = e, r.activeTriggerElement = n, o.current = e;
141
+ }
142
+ }
143
+ (r.triggerCount !== void 0 || r.activeTriggerId !== void 0 || r.activeTriggerElement !== void 0) && e.update(r), l && n && queueMicrotask(() => {
144
+ if (e.select("open") && e.select("activeTriggerId") === l && !e.context.triggerElements.getById(l)) {
145
+ let t = a(i);
146
+ e.setOpen(!1, t), t.isCanceled || e.update({
147
+ activeTriggerId: null,
148
+ activeTriggerElement: null
149
+ });
150
+ }
151
+ });
152
+ }, [
153
+ s,
154
+ e,
155
+ c,
156
+ l,
157
+ u,
158
+ n
159
+ ]);
160
+ }
161
+ function S(e, t, r, i) {
162
+ let { mounted: a, setMounted: o, transitionStatus: s } = u(e, !1, !1, i), c = t.useState("preventUnmountingOnClose"), l = !e && c;
163
+ t.useSyncedValues({
164
+ mounted: a,
165
+ transitionStatus: s,
166
+ preventUnmountingOnClose: l
167
+ });
168
+ let f = n(() => {
169
+ o(!1), t.update({
170
+ activeTriggerId: null,
171
+ activeTriggerElement: null,
172
+ mounted: !1,
173
+ preventUnmountingOnClose: !1
174
+ }), r?.(), t.context.onOpenChangeComplete?.(!1);
175
+ });
176
+ return d({
177
+ enabled: a && !e && !l,
178
+ open: e,
179
+ ref: t.context.popupRef,
180
+ onComplete() {
181
+ e || f();
182
+ }
183
+ }), {
184
+ forceUnmount: f,
185
+ transitionStatus: s
186
+ };
187
+ }
188
+ function C(e, n) {
189
+ e.useSyncedValues(n), r(() => () => {
190
+ e.update({
191
+ activeTriggerProps: t,
192
+ inactiveTriggerProps: t,
193
+ popupProps: t
194
+ });
195
+ }, [e]);
196
+ }
197
+ function w(e, t) {
198
+ r(() => {
199
+ !t && e.state.openMethod !== null && e.set("openMethod", null);
200
+ }, [t, e]), r(() => () => {
201
+ e.state.openMethod !== null && e.set("openMethod", null);
202
+ }, [e]);
10
203
  }
11
204
  //#endregion
12
- export { i as usePopupHandleStore };
205
+ export { p as FOCUSABLE_POPUP_PROPS, g as PopupHandleAttachment, m as createDefaultInitialFocus, y as createPopupOpenState, x as useImplicitActiveTrigger, S as useOpenStateTransitions, C as usePopupInteractionProps, h as usePopupRootStore, w as usePopupRootSync, b as useTriggerDataForwarding, v as useTriggerRegistration };
13
206
 
14
207
  //# sourceMappingURL=index271.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index271.js","names":["React","useSyncExternalStore"],"sources":["../../../node_modules/@base-ui/react/utils/popups/usePopupHandleStore.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { NOOP } from '@base-ui/utils/empty';\n/**\n * Reads the store currently exposed by a popup handle and subscribes to store-pointer changes.\n * Detached triggers use this to follow a handle as a root attaches or detaches: while no root is\n * attached, the handle exposes its fallback store; once a root attaches, subscribers re-render and\n * read from the live root store.\n *\n * Returns `undefined` when no handle is provided so callers can fall back to their root context.\n *\n * @param handle The popup handle to read from, or `undefined` when the trigger is not handle-bound.\n */\nexport function usePopupHandleStore(handle) {\n const subscribe = React.useCallback(listener => {\n if (handle === undefined) {\n return NOOP;\n }\n return handle.subscribeStore(listener);\n }, [handle]);\n const getSnapshot = React.useCallback(() => {\n return handle === undefined ? undefined : handle.store;\n }, [handle]);\n return useSyncExternalStore(subscribe, getSnapshot, () => handle?.serverStore);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;AAeA,SAAgB,EAAoB,GAAQ;CAC1C,IAAM,IAAYA,EAAM,aAAY,MAC9B,MAAW,KAAA,IACN,IAEF,EAAO,eAAe,CAAQ,GACpC,CAAC,CAAM,CAAC,GACL,IAAcA,EAAM,kBACjB,MAAW,KAAA,IAAY,KAAA,IAAY,EAAO,OAChD,CAAC,CAAM,CAAC;CACX,QAAA,GAAOC,EAAAA,qBAAAA,CAAqB,GAAW,SAAmB,GAAQ,WAAW;AAC/E"}
1
+ {"version":3,"file":"index271.js","names":["React","REASONS.none","React$1","FOCUSABLE_POPUP_PROPS","FOCUSABLE_ATTRIBUTE","createDefaultInitialFocus","interactionType","popupRef","usePopupRootStore","floatingId","useId","nested","useFloatingParentNodeId","store","useRefWithInit","createStore","useSyncedFloatingRootContext","PopupHandleAttachment","useIsoLayoutEffect","handle","syncTriggerCount","triggerCount","useTriggerRegistration","registrationRef","useStableCallback","registration","element","id","registeredStore","createPopupOpenState","preventUnmountingOnClose","state","open","preventUnmountOnClose","triggerId","trigger","activeTriggerId","activeTriggerElement","useTriggerDataForwarding","isMountedByThisTrigger","baseRegisterTrigger","applyTriggerData","changes","stateUpdates","registerTrigger","triggerElementRef","useImplicitActiveTrigger","options","resolvedActiveTriggerIdRef","reactiveTriggerCount","reactiveActiveTriggerElement","currentActiveTriggerId","lostActiveTriggerId","triggerElement","iteratorResult","implicitTriggerId","implicitTriggerElement","closeOnActiveTriggerUnmount","eventDetails","createChangeEventDetails","none","useOpenStateTransitions","useTransitionStatus","animateInitialOpen","syncedPreventUnmountingOnClose","forceUnmount","setMounted","onUnmount","useOpenChangeComplete","mounted","usePopupInteractionProps","statePart","EMPTY_OBJECT","usePopupRootSync"],"sources":["../../../node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useId } from '@base-ui/utils/useId';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { FOCUSABLE_ATTRIBUTE } from \"../../floating-ui-react/utils/constants.mjs\";\nimport { useFloatingParentNodeId } from \"../../floating-ui-react/components/FloatingTree.mjs\";\nimport { useSyncedFloatingRootContext } from \"../../floating-ui-react/hooks/useSyncedFloatingRootContext.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nexport const FOCUSABLE_POPUP_PROPS = {\n tabIndex: -1,\n [FOCUSABLE_ATTRIBUTE]: ''\n};\n\n/**\n * Returns the default `initialFocus` resolver for a popup. When opened by touch it focuses the\n * popup element itself to prevent the virtual keyboard from opening (required for Android\n * specifically; iOS handles this automatically). Otherwise it falls back to the default behavior.\n */\nexport function createDefaultInitialFocus(popupRef) {\n return interactionType => interactionType === 'touch' ? popupRef.current : true;\n}\n\n/**\n * The subset of a popup handle that a Root needs to bind its store to. Both the real handle classes\n * and any test double satisfy it.\n */\n\n/**\n * Creates and owns a popup store on behalf of a Root part. The store is created exactly once, with\n * controlled props and root state synced separately after creation. Sets up the synced floating\n * root context and returns the store.\n *\n * @param createStore Factory that builds the store. Called exactly once, receiving the floating id\n * and whether the popup is nested inside another floating element, both resolved on the first render.\n * @param treatPopupAsFloatingElement Whether the popup element is passed to Floating UI as the\n * floating element instead of the default positioner.\n */\nexport function usePopupRootStore(createStore, treatPopupAsFloatingElement = false) {\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n const store = useRefWithInit(() => createStore(floatingId, nested)).current;\n useSyncedFloatingRootContext({\n popupStore: store,\n treatPopupAsFloatingElement,\n floatingRootContext: store.state.floatingRootContext,\n floatingId,\n nested,\n onOpenChange: store.setOpen\n });\n return store;\n}\n\n/**\n * Attaches a Root's store to a handle for this component's committed lifetime. Popup Roots render\n * it before their interactions and user children so its layout effect runs before descendant layout\n * effects. This lets descendants call the handle during the Root's initial commit without attaching\n * during render, which would leak suspended or abandoned stores. Store subscribers are notified by\n * `attachStore` in this ordinary layout phase, where React permits synchronous updates.\n *\n * Popup Roots must render this component only when a handle is present so handle-less Roots avoid\n * mounting an extra fiber and layout effect.\n */\nexport function PopupHandleAttachment({\n handle,\n store\n}) {\n useIsoLayoutEffect(() => {\n return handle.attachStore(store);\n }, [handle, store]);\n return null;\n}\nfunction syncTriggerCount(store) {\n const triggerCount = store.context.triggerElements.size;\n if (store.select('open') && store.state.triggerCount !== triggerCount) {\n store.set('triggerCount', triggerCount);\n }\n}\n\n/**\n * Returns a stable callback ref that registers/unregisters the trigger element in the store.\n *\n * Stable so a downstream ref merger that retains the callback it was first given still reaches the\n * trigger's current store. The registration is tracked as a `(store, id, element)` triple, so\n * unregistering targets the store the element was actually registered in.\n *\n * Since the callback never changes, the caller must re-run it from a layout effect keyed on\n * `[store, id]` to migrate an already-registered element. That effect is also what registers the\n * element in the first place when `id` only resolves after the first commit (React 17's `useId`\n * fallback), because the register call made while the id is still `undefined` does nothing.\n *\n * @param id Id of the trigger.\n * @param store The Store instance where the trigger should be registered.\n */\nexport function useTriggerRegistration(id, store) {\n const registrationRef = React.useRef(null);\n return useStableCallback(element => {\n const registration = registrationRef.current;\n if (registration !== null) {\n if (registration.element === element && registration.store === store && registration.id === id) {\n // Already registered where it belongs, so the caller's migration effect is free on mount.\n return;\n }\n registrationRef.current = null;\n const registeredStore = registration.store;\n if (registeredStore.context.triggerElements.getById(registration.id) === registration.element) {\n registeredStore.context.triggerElements.delete(registration.id);\n syncTriggerCount(registeredStore);\n }\n }\n if (element !== null && id !== undefined) {\n registrationRef.current = {\n store,\n id,\n element\n };\n store.context.triggerElements.add(id, element);\n syncTriggerCount(store);\n }\n });\n}\nexport function createPopupOpenState(state, open, trigger, preventUnmountOnClose = false) {\n let preventUnmountingOnClose = state.preventUnmountingOnClose;\n if (open) {\n // Opening starts a new close cycle, so clear any previous request to keep the popup mounted.\n preventUnmountingOnClose = false;\n } else if (preventUnmountOnClose) {\n preventUnmountingOnClose = true;\n }\n const triggerId = trigger?.id ?? null;\n let activeTriggerId = state.activeTriggerId;\n let activeTriggerElement = state.activeTriggerElement;\n\n // If a popup is closing, the `trigger` may be undefined.\n // We want to keep the previous value so that exit animations are played and focus is returned correctly.\n if (triggerId || open) {\n activeTriggerId = triggerId;\n activeTriggerElement = trigger ?? null;\n }\n return {\n open,\n preventUnmountingOnClose,\n activeTriggerId,\n activeTriggerElement\n };\n}\nexport function attachPreventUnmountOnClose(eventDetails) {\n let preventUnmountOnClose = false;\n eventDetails.preventUnmountOnClose = () => {\n preventUnmountOnClose = true;\n };\n return () => preventUnmountOnClose;\n}\n\n/**\n * Runs the shared open-change sequence for a popup store: notifies `onOpenChange`,\n * honors cancellation, dispatches the floating root change, maps the reason to an\n * `instantType`, and commits the state update (synchronously for hover so\n * `getAnimations()` observes it). Stores supply their own differences via\n * `extraState` (e.g. the last change reason) and `onBeforeDispatch` (e.g. updating\n * inline-rect coordinates).\n */\nexport function applyPopupOpenChange(store, nextOpen, eventDetails, options = {}) {\n const reason = eventDetails.reason;\n const isHover = reason === REASONS.triggerHover;\n const isFocusOpen = nextOpen && reason === REASONS.triggerFocus;\n const isDismissClose = !nextOpen && (reason === REASONS.triggerPress || reason === REASONS.escapeKey);\n const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(eventDetails);\n store.context.onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n options.onBeforeDispatch?.();\n store.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);\n const changeState = () => {\n const popupOpenState = createPopupOpenState(store.state, nextOpen, eventDetails.trigger, shouldPreventUnmountOnClose());\n const updatedState = {\n ...options.extraState,\n ...popupOpenState\n };\n if (isFocusOpen) {\n updatedState.instantType = 'focus';\n } else if (isDismissClose) {\n updatedState.instantType = 'dismiss';\n } else if (isHover) {\n updatedState.instantType = undefined;\n }\n store.update(updatedState);\n };\n if (isHover) {\n // Flush synchronously for hover so `node.getAnimations()` sees the new state.\n ReactDOM.flushSync(changeState);\n } else {\n changeState();\n }\n}\n\n/**\n * Sets up trigger data forwarding to the store.\n *\n * @param triggerId Id of the trigger.\n * @param triggerElementRef Ref for the trigger DOM element.\n * @param store The Store instance managing the popup state.\n * @param stateUpdates An object with state updates to apply when the trigger is active.\n */\nexport function useTriggerDataForwarding(triggerId, triggerElementRef, store, stateUpdates) {\n const isMountedByThisTrigger = store.useState('isMountedByTrigger', triggerId);\n const baseRegisterTrigger = useTriggerRegistration(triggerId, store);\n\n // Applies trigger-owned state (active-trigger ownership and payload) when the trigger registers.\n // Stable so payload/`stateUpdates` changes do not change the ref identity (which would needlessly\n // churn registration); it reads the latest closure values when invoked.\n const applyTriggerData = useStableCallback(element => {\n const open = store.select('open');\n const activeTriggerId = store.select('activeTriggerId');\n if (activeTriggerId === triggerId) {\n const changes = {\n activeTriggerElement: element,\n ...(open ? stateUpdates : null)\n };\n store.update(changes);\n return;\n }\n if (activeTriggerId == null && open) {\n // If a popup is already open, a detached trigger can mount before any active trigger\n // has been established. Claim the first registered trigger so trigger-owned focus\n // management and ARIA relationships work.\n const changes = {\n activeTriggerId: triggerId ?? null,\n activeTriggerElement: element,\n ...stateUpdates\n };\n store.update(changes);\n }\n });\n\n // Stable, so the merged ref on the rendered element keeps its identity for the trigger's whole\n // lifetime.\n const registerTrigger = useStableCallback(element => {\n baseRegisterTrigger(element);\n if (element) {\n applyTriggerData(element);\n }\n });\n\n // A stable ref does not re-fire on a store or id change, so migrate here instead: unregister from\n // the previous store, then register the element the trigger still renders into the current one.\n useIsoLayoutEffect(() => {\n registerTrigger(triggerElementRef.current);\n return () => registerTrigger(null);\n }, [registerTrigger, triggerElementRef, store, triggerId]);\n useIsoLayoutEffect(() => {\n if (isMountedByThisTrigger) {\n const changes = {\n activeTriggerElement: triggerElementRef.current,\n ...stateUpdates\n };\n store.update(changes);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isMountedByThisTrigger, store, triggerElementRef, ...Object.values(stateUpdates)]);\n return {\n registerTrigger,\n isMountedByThisTrigger\n };\n}\n/**\n * Keeps trigger registration state synchronized while the popup is open.\n *\n * When a popup opens without an explicit trigger id and exactly one trigger is registered, that\n * trigger is claimed as the active trigger. When the active trigger id is still registered but its\n * element changed, the active element is refreshed. When the active trigger id is missing from the\n * registry but the same element is still registered under a different id (e.g. the rendered trigger\n * carries its own DOM `id` that differs from Base UI's internal trigger id), the active id is\n * reassociated to the registered id instead of being treated as lost. When the active trigger\n * unregisters, the default path preserves existing ownership so non-closing popup families do not\n * silently claim a different trigger while staying open.\n *\n * If `closeOnActiveTriggerUnmount` is enabled, unregistering a previously resolved active trigger\n * requests a close after a microtask so a same-tick replacement trigger with the same id can\n * register first. An active trigger id that has not matched a registered trigger yet is treated as\n * pending and does not request a close.\n *\n * This should be called on the Root part.\n *\n * @param store The Store instance managing the popup state.\n * @param options Options for active trigger unmount behavior.\n */\nexport function useImplicitActiveTrigger(store, options = {}) {\n const {\n closeOnActiveTriggerUnmount = false\n } = options;\n // Distinguishes a trigger that unmounted from a new active trigger that has not hydrated yet.\n const resolvedActiveTriggerIdRef = React.useRef(null);\n const open = store.useState('open');\n const reactiveTriggerCount = store.useState('triggerCount');\n // Subscribe to the active trigger id so the reconciliation below reruns when ownership moves to\n // another trigger while the popup stays open (e.g. a focus/hover handoff between triggers).\n const activeTriggerId = store.useState('activeTriggerId');\n // Subscribe to the active trigger element so the reconciliation reruns when a pending active\n // trigger registers in a commit where the trigger count nets out unchanged (registration\n // forwards the element to the store when the registering trigger matches the active id).\n // Without this, the id would never be marked resolved and a later genuine unmount would be\n // misclassified as pending, disabling `closeOnActiveTriggerUnmount`.\n const reactiveActiveTriggerElement = store.useState('activeTriggerElement');\n useIsoLayoutEffect(() => {\n if (!open) {\n resolvedActiveTriggerIdRef.current = null;\n if (store.state.triggerCount !== 0) {\n store.set('triggerCount', 0);\n }\n return;\n }\n const triggerCount = store.context.triggerElements.size;\n const stateUpdates = {};\n if (store.state.triggerCount !== triggerCount) {\n stateUpdates.triggerCount = triggerCount;\n }\n const currentActiveTriggerId = store.select('activeTriggerId');\n let lostActiveTriggerId = null;\n if (currentActiveTriggerId) {\n const activeTriggerElement = store.context.triggerElements.getById(currentActiveTriggerId);\n if (!activeTriggerElement) {\n for (const [triggerId, triggerElement] of store.context.triggerElements.entries()) {\n if (triggerElement === store.state.activeTriggerElement) {\n stateUpdates.activeTriggerId = triggerId;\n stateUpdates.activeTriggerElement = triggerElement;\n resolvedActiveTriggerIdRef.current = triggerId;\n break;\n }\n }\n if (stateUpdates.activeTriggerId === undefined) {\n if (resolvedActiveTriggerIdRef.current === currentActiveTriggerId) {\n lostActiveTriggerId = currentActiveTriggerId;\n } else {\n resolvedActiveTriggerIdRef.current = null;\n }\n }\n } else {\n resolvedActiveTriggerIdRef.current = currentActiveTriggerId;\n if (activeTriggerElement !== store.state.activeTriggerElement) {\n stateUpdates.activeTriggerElement = activeTriggerElement;\n }\n }\n } else {\n resolvedActiveTriggerIdRef.current = null;\n }\n if (!lostActiveTriggerId && !currentActiveTriggerId && triggerCount === 1) {\n const iteratorResult = store.context.triggerElements.entries().next();\n if (!iteratorResult.done) {\n const [implicitTriggerId, implicitTriggerElement] = iteratorResult.value;\n stateUpdates.activeTriggerId = implicitTriggerId;\n stateUpdates.activeTriggerElement = implicitTriggerElement;\n resolvedActiveTriggerIdRef.current = implicitTriggerId;\n }\n }\n if (stateUpdates.triggerCount !== undefined || stateUpdates.activeTriggerId !== undefined || stateUpdates.activeTriggerElement !== undefined) {\n store.update(stateUpdates);\n }\n if (lostActiveTriggerId) {\n if (closeOnActiveTriggerUnmount) {\n // Defer so a same-tick replacement trigger with the same id can register first.\n queueMicrotask(() => {\n if (store.select('open') && store.select('activeTriggerId') === lostActiveTriggerId && !store.context.triggerElements.getById(lostActiveTriggerId)) {\n const eventDetails = createChangeEventDetails(REASONS.none);\n store.setOpen(false, eventDetails);\n // If closing is canceled, keep the previous active trigger ownership for the\n // still-open popup instead of claiming another trigger implicitly.\n if (!eventDetails.isCanceled) {\n store.update({\n activeTriggerId: null,\n activeTriggerElement: null\n });\n }\n }\n });\n }\n }\n }, [open, store, reactiveTriggerCount, activeTriggerId, reactiveActiveTriggerElement, closeOnActiveTriggerUnmount]);\n}\n\n/**\n * Manages the mounted state of the popup.\n * Sets up the transition status listeners and handles unmounting when needed.\n * Updates the `mounted`, `transitionStatus`, and `preventUnmountingOnClose` states in the store.\n *\n * @param open Whether the popup is open.\n * @param store The Store instance managing the popup state.\n * @param onUnmount Optional callback to be called when the popup is unmounted.\n * @param animateInitialOpen Whether a popup that mounts already open should still play its enter\n * transition. Defaults to `false`, so content that was open on the first render (a `defaultOpen`\n * popup on page load, SSR'd markup) appears without animating. Opt in for popups whose subtree\n * only mounts in response to something the user did, such as a submenu inside a menu popup.\n *\n * @returns A function to forcibly unmount the popup.\n */\nexport function useOpenStateTransitions(open, store, onUnmount, animateInitialOpen) {\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open, false, false, animateInitialOpen);\n const preventUnmountingOnClose = store.useState('preventUnmountingOnClose');\n // Opening starts a new close cycle. Clear during render so the close-completion hook below\n // reads the synchronized value on the same pass.\n const syncedPreventUnmountingOnClose = open ? false : preventUnmountingOnClose;\n store.useSyncedValues({\n mounted,\n transitionStatus,\n preventUnmountingOnClose: syncedPreventUnmountingOnClose\n });\n const forceUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeTriggerId: null,\n activeTriggerElement: null,\n mounted: false,\n preventUnmountingOnClose: false\n });\n onUnmount?.();\n store.context.onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: mounted && !open && !syncedPreventUnmountingOnClose,\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (!open) {\n forceUnmount();\n }\n }\n });\n return {\n forceUnmount,\n transitionStatus\n };\n}\nexport function usePopupInteractionProps(store, statePart) {\n store.useSyncedValues(statePart);\n useIsoLayoutEffect(() => () => {\n store.update({\n activeTriggerProps: EMPTY_OBJECT,\n inactiveTriggerProps: EMPTY_OBJECT,\n popupProps: EMPTY_OBJECT\n });\n }, [store]);\n}\nexport function usePopupRootSync(store, open) {\n useIsoLayoutEffect(() => {\n if (!open && store.state.openMethod !== null) {\n store.set('openMethod', null);\n }\n }, [open, store]);\n useIsoLayoutEffect(() => () => {\n if (store.state.openMethod !== null) {\n store.set('openMethod', null);\n }\n }, [store]);\n}"],"ignoreList":[0],"mappings":"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"}
package/dist/index272.js CHANGED
@@ -1,44 +1,52 @@
1
- "use client";
2
- import { useRefWithInit as e } from "./index185.js";
3
- import { isElement as t } from "./index200.js";
4
- import { useIsoLayoutEffect as n } from "./index204.js";
5
- import { useId as r } from "./index213.js";
6
- import { useFloatingParentNodeId as i } from "./index243.js";
7
- import { FloatingRootStore as a } from "./index262.js";
8
- import { PopupTriggerMap as o } from "./index268.js";
9
- //#region ../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs
10
- function s(s) {
11
- let { open: c = !1, onOpenChange: l, elements: u = {} } = s, d = r(), f = i() != null;
12
- if (process.env.NODE_ENV !== "production") {
13
- let e = u.reference;
14
- e && !t(e) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
15
- }
16
- let p = e(() => new a({
17
- open: c,
18
- transitionStatus: void 0,
19
- onOpenChange: l,
20
- referenceElement: u.reference ?? null,
21
- floatingElement: u.floating ?? null,
22
- triggerElements: new o(),
23
- floatingId: d,
24
- syncOnly: !1,
25
- nested: f
26
- })).current;
27
- return n(() => {
28
- let e = {
29
- open: c,
30
- floatingId: d
31
- };
32
- u.reference !== void 0 && (e.referenceElement = u.reference, e.domReferenceElement = t(u.reference) ? u.reference : null), u.floating !== void 0 && (e.floatingElement = u.floating), p.update(e);
33
- }, [
34
- c,
35
- d,
36
- u.reference,
37
- u.floating,
38
- p
39
- ]), p.context.onOpenChange = l, p.context.nested = f, p;
1
+ //#region ../../node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
2
+ var e;
3
+ function t(t) {
4
+ e ??= /* @__PURE__ */ new WeakMap();
5
+ let n = e.get(t);
6
+ return n || (n = /* @__PURE__ */ new WeakMap(), e.set(t, n)), n;
40
7
  }
8
+ var n = class {
9
+ constructor() {
10
+ this.idMap = /* @__PURE__ */ new Map();
11
+ }
12
+ add(e, n) {
13
+ if (process.env.NODE_ENV !== "production") {
14
+ let r = t(this), i = r.get(n);
15
+ if (i !== void 0 && i !== e) throw Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
16
+ let a = this.idMap.get(e);
17
+ a !== void 0 && a !== n && r.delete(a), r.set(n, e);
18
+ }
19
+ this.idMap.set(e, n);
20
+ }
21
+ delete(t) {
22
+ if (process.env.NODE_ENV !== "production") {
23
+ let n = this.idMap.get(t);
24
+ n !== void 0 && e?.get(this)?.delete(n);
25
+ }
26
+ this.idMap.delete(t);
27
+ }
28
+ hasElement(e) {
29
+ for (let t of this.idMap.values()) if (t === e) return !0;
30
+ return !1;
31
+ }
32
+ hasMatchingElement(e) {
33
+ for (let t of this.idMap.values()) if (e(t)) return !0;
34
+ return !1;
35
+ }
36
+ getById(e) {
37
+ return this.idMap.get(e);
38
+ }
39
+ entries() {
40
+ return this.idMap.entries();
41
+ }
42
+ elements() {
43
+ return this.idMap.values();
44
+ }
45
+ get size() {
46
+ return this.idMap.size;
47
+ }
48
+ };
41
49
  //#endregion
42
- export { s as useFloatingRootContext };
50
+ export { n as PopupTriggerMap };
43
51
 
44
52
  //# sourceMappingURL=index272.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index272.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { PopupTriggerMap } from \"../../utils/popups/index.mjs\";\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.mjs\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.mjs\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AASA,SAAgB,EAAuB,GAAS;CAC9C,IAAM,EACJ,UAAO,IACP,iBACA,cAAW,CAAC,MACV,GACE,IAAa,EAAM,GACnB,IAAS,EAAwB,KAAK;CAC5C,IAAA,QAAA,IAAA,aAA6B,cAAc;EACzC,IAAM,IAAqB,EAAS;EACpC,AAAI,KAAsB,CAAC,EAAU,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;CAE3K;CACA,IAAM,IAAQ,QAAqB,IAAI,EAAkB;EACvD;EACA,kBAAkB,KAAA;EAClB;EACA,kBAAkB,EAAS,aAAa;EACxC,iBAAiB,EAAS,YAAY;EACtC,iBAAiB,IAAI,EAAgB;EACrC;EACA,UAAU;EACV;CACF,CAAC,CAAC,CAAC,CAAC;CAmBJ,OAlBA,QAAyB;EACvB,IAAM,IAAe;GACnB;GACA;EACF;EAUA,AAPI,EAAS,cAAc,KAAA,MACzB,EAAa,mBAAmB,EAAS,WACzC,EAAa,sBAAsB,EAAU,EAAS,SAAS,IAAI,EAAS,YAAY,OAEtF,EAAS,aAAa,KAAA,MACxB,EAAa,kBAAkB,EAAS,WAE1C,EAAM,OAAO,CAAY;CAC3B,GAAG;EAAC;EAAM;EAAY,EAAS;EAAW,EAAS;EAAU;CAAK,CAAC,GACnE,EAAM,QAAQ,eAAe,GAC7B,EAAM,QAAQ,SAAS,GAChB;AACT"}
1
+ {"version":3,"file":"index272.js","names":["devElementIdsByMap","getDevElementIds","elementIds","map","PopupTriggerMap","existingId","element","id","previousElement","registered","predicate"],"sources":["../../../node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs"],"sourcesContent":["/**\n * Development-only reverse index of element to registered id, keyed by the owning map.\n *\n * Registration would otherwise have to scan every entry to detect an element claimed by two ids,\n * making the mount of many triggers sharing one handle quadratic. Kept module-scoped, lazily\n * initialized, and read only from `process.env.NODE_ENV` guards so production builds drop it along\n * with the checks.\n */\nlet devElementIdsByMap;\nfunction getDevElementIds(map) {\n devElementIdsByMap ??= new WeakMap();\n let elementIds = devElementIdsByMap.get(map);\n if (!elementIds) {\n elementIds = new WeakMap();\n devElementIdsByMap.set(map, elementIds);\n }\n return elementIds;\n}\n\n/**\n * Data structure to keep track of popup trigger elements by their IDs.\n *\n * Element lookups iterate the id map rather than maintaining a parallel Set. Registration is O(1),\n * while `hasElement` and `hasMatchingElement` are linear in the number of triggers.\n */\nexport class PopupTriggerMap {\n constructor() {\n this.idMap = new Map();\n }\n\n /**\n * Adds a trigger element with the given ID.\n *\n * Note: The provided element is assumed to not be registered under multiple IDs.\n */\n add(id, element) {\n if (process.env.NODE_ENV !== 'production') {\n const elementIds = getDevElementIds(this);\n const existingId = elementIds.get(element);\n if (existingId !== undefined && existingId !== id) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error('Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.');\n }\n\n // Reusing an id for a different element evicts the previous one, so it must lose its claim\n // on the id or a later registration under a different id would be reported as a duplicate.\n const previousElement = this.idMap.get(id);\n if (previousElement !== undefined && previousElement !== element) {\n elementIds.delete(previousElement);\n }\n elementIds.set(element, id);\n }\n this.idMap.set(id, element);\n }\n\n /**\n * Removes the trigger element with the given ID.\n */\n delete(id) {\n if (process.env.NODE_ENV !== 'production') {\n const element = this.idMap.get(id);\n if (element !== undefined) {\n devElementIdsByMap?.get(this)?.delete(element);\n }\n }\n this.idMap.delete(id);\n }\n\n /**\n * Whether the given element is registered as a trigger.\n */\n hasElement(element) {\n for (const registered of this.idMap.values()) {\n if (registered === element) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Whether there is a registered trigger element matching the given predicate.\n */\n hasMatchingElement(predicate) {\n for (const element of this.idMap.values()) {\n if (predicate(element)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Returns the trigger element associated with the given ID, or undefined if no such element exists.\n */\n getById(id) {\n return this.idMap.get(id);\n }\n\n /**\n * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].\n */\n entries() {\n return this.idMap.entries();\n }\n\n /**\n * Returns an iterable of all registered trigger elements.\n */\n elements() {\n return this.idMap.values();\n }\n\n /**\n * Returns the number of registered trigger elements.\n */\n get size() {\n return this.idMap.size;\n }\n}"],"ignoreList":[0],"mappings":";AAQA,IAAIA;AACJ,SAASC,EAAiB,GAAK;CAC7B,sBAAuB,IAAI,QAAQ;CACnC,IAAIC,IAAaF,EAAmB,IAAIG,CAAG;CAK3C,OAJKD,MACH,oBAAa,IAAI,QAAQ,GACzBF,EAAmB,IAAIG,GAAKD,CAAU,IAEjCA;AACT;AAQA,IAAaE,IAAb,MAA6B;CAC3B,cAAc;EACZ,KAAK,wBAAQ,IAAI,IAAI;CACvB;CAOA,IAAI,GAAI,GAAS;EACf,IAAA,QAAA,IAAA,aAA6B,cAAc;GACzC,IAAMF,IAAaD,EAAiB,IAAI,GAClCI,IAAaH,EAAW,IAAII,CAAO;GACzC,IAAID,MAAe,KAAA,KAAaA,MAAeE,GAG7C,MAAU,MAAM,wFAAwF;GAK1G,IAAMC,IAAkB,KAAK,MAAM,IAAID,CAAE;GAIzC,AAHIC,MAAoB,KAAA,KAAaA,MAAoBF,KACvDJ,EAAW,OAAOM,CAAe,GAEnCN,EAAW,IAAII,GAASC,CAAE;EAC5B;EACA,KAAK,MAAM,IAAIA,GAAID,CAAO;CAC5B;CAKA,OAAO,GAAI;EACT,IAAA,QAAA,IAAA,aAA6B,cAAc;GACzC,IAAMA,IAAU,KAAK,MAAM,IAAIC,CAAE;GACjC,AAAID,MAAY,KAAA,KACdN,GAAoB,IAAI,IAAI,CAAC,EAAE,OAAOM,CAAO;EAEjD;EACA,KAAK,MAAM,OAAOC,CAAE;CACtB;CAKA,WAAW,GAAS;EAClB,KAAK,IAAME,KAAc,KAAK,MAAM,OAAO,GACzC,IAAIA,MAAeH,GACjB,OAAO;EAGX,OAAO;CACT;CAKA,mBAAmB,GAAW;EAC5B,KAAK,IAAMA,KAAW,KAAK,MAAM,OAAO,GACtC,IAAII,EAAUJ,CAAO,GACnB,OAAO;EAGX,OAAO;CACT;CAKA,QAAQ,GAAI;EACV,OAAO,KAAK,MAAM,IAAIC,CAAE;CAC1B;CAKA,UAAU;EACR,OAAO,KAAK,MAAM,QAAQ;CAC5B;CAKA,WAAW;EACT,OAAO,KAAK,MAAM,OAAO;CAC3B;CAKA,IAAI,OAAO;EACT,OAAO,KAAK,MAAM;CACpB;AACF"}