@rpcbase/ui 0.247.0 → 0.249.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 (593) hide show
  1. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  2. package/dist/index105.js +36 -36
  3. package/dist/index117.js +6 -6
  4. package/dist/index120.js +10 -10
  5. package/dist/index122.js +2 -2
  6. package/dist/index123.js +3 -3
  7. package/dist/index124.js +1 -1
  8. package/dist/index126.js +2 -2
  9. package/dist/index128.js +2 -2
  10. package/dist/index150.js +3 -3
  11. package/dist/index156.js +1 -1
  12. package/dist/index16.js +157 -157
  13. package/dist/index16.js.map +1 -1
  14. package/dist/index163.js +2 -2
  15. package/dist/index164.js +7 -7
  16. package/dist/index167.js +4 -4
  17. package/dist/index169.js +1 -1
  18. package/dist/index171.js +14 -58
  19. package/dist/index171.js.map +1 -1
  20. package/dist/index172.js +68 -8
  21. package/dist/index172.js.map +1 -1
  22. package/dist/index173.js +37 -87
  23. package/dist/index173.js.map +1 -1
  24. package/dist/index174.js +13 -19
  25. package/dist/index174.js.map +1 -1
  26. package/dist/index175.js +23 -16
  27. package/dist/index175.js.map +1 -1
  28. package/dist/index176.js +111 -5
  29. package/dist/index176.js.map +1 -1
  30. package/dist/index177.js +13 -6
  31. package/dist/index177.js.map +1 -1
  32. package/dist/index178.js +4 -6
  33. package/dist/index178.js.map +1 -1
  34. package/dist/index179.js +4 -5
  35. package/dist/index179.js.map +1 -1
  36. package/dist/index180.js +5 -7
  37. package/dist/index180.js.map +1 -1
  38. package/dist/index181.js +11 -16
  39. package/dist/index181.js.map +1 -1
  40. package/dist/index182.js +19 -4
  41. package/dist/index182.js.map +1 -1
  42. package/dist/index183.js +11 -5
  43. package/dist/index183.js.map +1 -1
  44. package/dist/index184.js +176 -12
  45. package/dist/index184.js.map +1 -1
  46. package/dist/index185.js +279 -9
  47. package/dist/index185.js.map +1 -1
  48. package/dist/index186.js +4 -13
  49. package/dist/index186.js.map +1 -1
  50. package/dist/index187.js +28 -14
  51. package/dist/index187.js.map +1 -1
  52. package/dist/index188.js +126 -4
  53. package/dist/index188.js.map +1 -1
  54. package/dist/index189.js +63 -5
  55. package/dist/index189.js.map +1 -1
  56. package/dist/index190.js +8 -6
  57. package/dist/index190.js.map +1 -1
  58. package/dist/index191.js +16 -6
  59. package/dist/index191.js.map +1 -1
  60. package/dist/index192.js +29 -53
  61. package/dist/index192.js.map +1 -1
  62. package/dist/index193.js +69 -8
  63. package/dist/index193.js.map +1 -1
  64. package/dist/index194.js +20 -5
  65. package/dist/index194.js.map +1 -1
  66. package/dist/index195.js +66 -4
  67. package/dist/index195.js.map +1 -1
  68. package/dist/index196.js +6 -8
  69. package/dist/index196.js.map +1 -1
  70. package/dist/index197.js +5 -4
  71. package/dist/index197.js.map +1 -1
  72. package/dist/index198.js +11 -4
  73. package/dist/index198.js.map +1 -1
  74. package/dist/index199.js +3 -3
  75. package/dist/index199.js.map +1 -1
  76. package/dist/index200.js +50 -10
  77. package/dist/index200.js.map +1 -1
  78. package/dist/index201.js +4 -10
  79. package/dist/index201.js.map +1 -1
  80. package/dist/index202.js +29 -9
  81. package/dist/index202.js.map +1 -1
  82. package/dist/index203.js +16 -10
  83. package/dist/index203.js.map +1 -1
  84. package/dist/index204.js +5 -10
  85. package/dist/index204.js.map +1 -1
  86. package/dist/index205.js +21 -9
  87. package/dist/index205.js.map +1 -1
  88. package/dist/index206.js +53 -6
  89. package/dist/index206.js.map +1 -1
  90. package/dist/index207.js +20 -5
  91. package/dist/index207.js.map +1 -1
  92. package/dist/index208.js +41 -4
  93. package/dist/index208.js.map +1 -1
  94. package/dist/index209.js +39 -5
  95. package/dist/index209.js.map +1 -1
  96. package/dist/index210.js +46 -7
  97. package/dist/index210.js.map +1 -1
  98. package/dist/index211.js +20 -5
  99. package/dist/index211.js.map +1 -1
  100. package/dist/index212.js +67 -13
  101. package/dist/index212.js.map +1 -1
  102. package/dist/index213.js +17 -7
  103. package/dist/index213.js.map +1 -1
  104. package/dist/index214.js +3 -10
  105. package/dist/index214.js.map +1 -1
  106. package/dist/index215.js +11 -10
  107. package/dist/index215.js.map +1 -1
  108. package/dist/index216.js +13 -21
  109. package/dist/index216.js.map +1 -1
  110. package/dist/index217.js +18 -8
  111. package/dist/index217.js.map +1 -1
  112. package/dist/index218.js +36 -9
  113. package/dist/index218.js.map +1 -1
  114. package/dist/index219.js +239 -9
  115. package/dist/index219.js.map +1 -1
  116. package/dist/index220.js +252 -4
  117. package/dist/index220.js.map +1 -1
  118. package/dist/index221.js +68 -5
  119. package/dist/index221.js.map +1 -1
  120. package/dist/index222.js +98 -15
  121. package/dist/index222.js.map +1 -1
  122. package/dist/index223.js +83 -9
  123. package/dist/index223.js.map +1 -1
  124. package/dist/index224.js +3 -18
  125. package/dist/index224.js.map +1 -1
  126. package/dist/index225.js +28 -19
  127. package/dist/index225.js.map +1 -1
  128. package/dist/index226.js +16 -12
  129. package/dist/index226.js.map +1 -1
  130. package/dist/index227.js +34 -29
  131. package/dist/index227.js.map +1 -1
  132. package/dist/index228.js +17 -12
  133. package/dist/index228.js.map +1 -1
  134. package/dist/index229.js +3 -25
  135. package/dist/index229.js.map +1 -1
  136. package/dist/index230.js +26 -5
  137. package/dist/index230.js.map +1 -1
  138. package/dist/index231.js +28 -14
  139. package/dist/index231.js.map +1 -1
  140. package/dist/index232.js +4 -69
  141. package/dist/index232.js.map +1 -1
  142. package/dist/index233.js +79 -38
  143. package/dist/index233.js.map +1 -1
  144. package/dist/index234.js +273 -14
  145. package/dist/index234.js.map +1 -1
  146. package/dist/index235.js +11 -23
  147. package/dist/index235.js.map +1 -1
  148. package/dist/index236.js +10 -111
  149. package/dist/index236.js.map +1 -1
  150. package/dist/index237.js +26 -13
  151. package/dist/index237.js.map +1 -1
  152. package/dist/index238.js +16 -4
  153. package/dist/index238.js.map +1 -1
  154. package/dist/index239.js +126 -4
  155. package/dist/index239.js.map +1 -1
  156. package/dist/index240.js +6 -5
  157. package/dist/index240.js.map +1 -1
  158. package/dist/index241.js +65 -11
  159. package/dist/index241.js.map +1 -1
  160. package/dist/index242.js +14 -20
  161. package/dist/index242.js.map +1 -1
  162. package/dist/index243.js +8 -11
  163. package/dist/index243.js.map +1 -1
  164. package/dist/index244.js +5 -176
  165. package/dist/index244.js.map +1 -1
  166. package/dist/index245.js +3 -279
  167. package/dist/index245.js.map +1 -1
  168. package/dist/index246.js +10 -4
  169. package/dist/index246.js.map +1 -1
  170. package/dist/index247.js +8 -28
  171. package/dist/index247.js.map +1 -1
  172. package/dist/index248.js +131 -124
  173. package/dist/index248.js.map +1 -1
  174. package/dist/index249.js +397 -61
  175. package/dist/index249.js.map +1 -1
  176. package/dist/index250.js +5 -9
  177. package/dist/index250.js.map +1 -1
  178. package/dist/index251.js +53 -16
  179. package/dist/index251.js.map +1 -1
  180. package/dist/index252.js +11 -30
  181. package/dist/index252.js.map +1 -1
  182. package/dist/index253.js +27 -69
  183. package/dist/index253.js.map +1 -1
  184. package/dist/index254.js +10 -153
  185. package/dist/index254.js.map +1 -1
  186. package/dist/index255.js +58 -32
  187. package/dist/index255.js.map +1 -1
  188. package/dist/index256.js +8 -11
  189. package/dist/index256.js.map +1 -1
  190. package/dist/index257.js +81 -43
  191. package/dist/index257.js.map +1 -1
  192. package/dist/index258.js +19 -9
  193. package/dist/index258.js.map +1 -1
  194. package/dist/index259.js +16 -11
  195. package/dist/index259.js.map +1 -1
  196. package/dist/index260.js +4 -42
  197. package/dist/index260.js.map +1 -1
  198. package/dist/index261.js +4 -96
  199. package/dist/index261.js.map +1 -1
  200. package/dist/index262.js +6 -86
  201. package/dist/index262.js.map +1 -1
  202. package/dist/index263.js +4 -105
  203. package/dist/index263.js.map +1 -1
  204. package/dist/index264.js +6 -52
  205. package/dist/index264.js.map +1 -1
  206. package/dist/index265.js +16 -11
  207. package/dist/index265.js.map +1 -1
  208. package/dist/index266.js +4 -4
  209. package/dist/index266.js.map +1 -1
  210. package/dist/index267.js +4 -37
  211. package/dist/index267.js.map +1 -1
  212. package/dist/index268.js +12 -8
  213. package/dist/index268.js.map +1 -1
  214. package/dist/index269.js +9 -3
  215. package/dist/index269.js.map +1 -1
  216. package/dist/index270.js +13 -9
  217. package/dist/index270.js.map +1 -1
  218. package/dist/index271.js +13 -135
  219. package/dist/index271.js.map +1 -1
  220. package/dist/index272.js +4 -17
  221. package/dist/index272.js.map +1 -1
  222. package/dist/index273.js +5 -15
  223. package/dist/index273.js.map +1 -1
  224. package/dist/index274.js +6 -36
  225. package/dist/index274.js.map +1 -1
  226. package/dist/index275.js +5 -20
  227. package/dist/index275.js.map +1 -1
  228. package/dist/index276.js +54 -8
  229. package/dist/index276.js.map +1 -1
  230. package/dist/index277.js +8 -24
  231. package/dist/index277.js.map +1 -1
  232. package/dist/index278.js +4 -28
  233. package/dist/index278.js.map +1 -1
  234. package/dist/index279.js +4 -16
  235. package/dist/index279.js.map +1 -1
  236. package/dist/index280.js +9 -20
  237. package/dist/index280.js.map +1 -1
  238. package/dist/index281.js +4 -66
  239. package/dist/index281.js.map +1 -1
  240. package/dist/index282.js +4 -6
  241. package/dist/index282.js.map +1 -1
  242. package/dist/index283.js +3 -5
  243. package/dist/index283.js.map +1 -1
  244. package/dist/index284.js +10 -11
  245. package/dist/index284.js.map +1 -1
  246. package/dist/index285.js +9 -3
  247. package/dist/index285.js.map +1 -1
  248. package/dist/index286.js +9 -50
  249. package/dist/index286.js.map +1 -1
  250. package/dist/index287.js +11 -4
  251. package/dist/index287.js.map +1 -1
  252. package/dist/index288.js +10 -29
  253. package/dist/index288.js.map +1 -1
  254. package/dist/index289.js +9 -16
  255. package/dist/index289.js.map +1 -1
  256. package/dist/index290.js +6 -5
  257. package/dist/index290.js.map +1 -1
  258. package/dist/index291.js +5 -21
  259. package/dist/index291.js.map +1 -1
  260. package/dist/index292.js +4 -53
  261. package/dist/index292.js.map +1 -1
  262. package/dist/index293.js +5 -20
  263. package/dist/index293.js.map +1 -1
  264. package/dist/index294.js +6 -41
  265. package/dist/index294.js.map +1 -1
  266. package/dist/index295.js +5 -39
  267. package/dist/index295.js.map +1 -1
  268. package/dist/index296.js +30 -46
  269. package/dist/index296.js.map +1 -1
  270. package/dist/index297.js +11 -19
  271. package/dist/index297.js.map +1 -1
  272. package/dist/index298.js +23 -68
  273. package/dist/index298.js.map +1 -1
  274. package/dist/index299.js +5 -17
  275. package/dist/index299.js.map +1 -1
  276. package/dist/index300.js +16 -3
  277. package/dist/index300.js.map +1 -1
  278. package/dist/index301.js +7 -11
  279. package/dist/index301.js.map +1 -1
  280. package/dist/index302.js +10 -13
  281. package/dist/index302.js.map +1 -1
  282. package/dist/index303.js +10 -18
  283. package/dist/index303.js.map +1 -1
  284. package/dist/index304.js +21 -36
  285. package/dist/index304.js.map +1 -1
  286. package/dist/index305.js +8 -239
  287. package/dist/index305.js.map +1 -1
  288. package/dist/index306.js +9 -252
  289. package/dist/index306.js.map +1 -1
  290. package/dist/index307.js +9 -68
  291. package/dist/index307.js.map +1 -1
  292. package/dist/index308.js +4 -99
  293. package/dist/index308.js.map +1 -1
  294. package/dist/index309.js +5 -83
  295. package/dist/index309.js.map +1 -1
  296. package/dist/index310.js +16 -3
  297. package/dist/index310.js.map +1 -1
  298. package/dist/index311.js +9 -29
  299. package/dist/index311.js.map +1 -1
  300. package/dist/index312.js +18 -16
  301. package/dist/index312.js.map +1 -1
  302. package/dist/index313.js +21 -35
  303. package/dist/index313.js.map +1 -1
  304. package/dist/index314.js +10 -15
  305. package/dist/index314.js.map +1 -1
  306. package/dist/index315.js +154 -3
  307. package/dist/index315.js.map +1 -1
  308. package/dist/index316.js +31 -25
  309. package/dist/index316.js.map +1 -1
  310. package/dist/index317.js +11 -28
  311. package/dist/index317.js.map +1 -1
  312. package/dist/index318.js +50 -4
  313. package/dist/index318.js.map +1 -1
  314. package/dist/index319.js +9 -78
  315. package/dist/index319.js.map +1 -1
  316. package/dist/index320.js +10 -271
  317. package/dist/index320.js.map +1 -1
  318. package/dist/index321.js +43 -11
  319. package/dist/index321.js.map +1 -1
  320. package/dist/index322.js +97 -10
  321. package/dist/index322.js.map +1 -1
  322. package/dist/index323.js +86 -25
  323. package/dist/index323.js.map +1 -1
  324. package/dist/index324.js +104 -15
  325. package/dist/index324.js.map +1 -1
  326. package/dist/index325.js +50 -123
  327. package/dist/index325.js.map +1 -1
  328. package/dist/index326.js +11 -5
  329. package/dist/index326.js.map +1 -1
  330. package/dist/index327.js +4 -65
  331. package/dist/index327.js.map +1 -1
  332. package/dist/index328.js +37 -13
  333. package/dist/index328.js.map +1 -1
  334. package/dist/index329.js +8 -7
  335. package/dist/index329.js.map +1 -1
  336. package/dist/index330.js +3 -5
  337. package/dist/index330.js.map +1 -1
  338. package/dist/index331.js +135 -3
  339. package/dist/index331.js.map +1 -1
  340. package/dist/index332.js +17 -10
  341. package/dist/index332.js.map +1 -1
  342. package/dist/index333.js +15 -7
  343. package/dist/index333.js.map +1 -1
  344. package/dist/index334.js +32 -129
  345. package/dist/index334.js.map +1 -1
  346. package/dist/index335.js +18 -397
  347. package/dist/index335.js.map +1 -1
  348. package/dist/index336.js +9 -5
  349. package/dist/index336.js.map +1 -1
  350. package/dist/index337.js +9 -52
  351. package/dist/index337.js.map +1 -1
  352. package/dist/index338.js +24 -11
  353. package/dist/index338.js.map +1 -1
  354. package/dist/index339.js +28 -27
  355. package/dist/index339.js.map +1 -1
  356. package/dist/index34.js +2 -2
  357. package/dist/index340.js +16 -11
  358. package/dist/index340.js.map +1 -1
  359. package/dist/index341.js +8 -4
  360. package/dist/index341.js.map +1 -1
  361. package/dist/index342.js +12 -18
  362. package/dist/index342.js.map +1 -1
  363. package/dist/index343.js +8 -12
  364. package/dist/index343.js.map +1 -1
  365. package/dist/index344.js +13 -8
  366. package/dist/index344.js.map +1 -1
  367. package/dist/index345.js +3 -11
  368. package/dist/index345.js.map +1 -1
  369. package/dist/index346.js +3 -8
  370. package/dist/index346.js.map +1 -1
  371. package/dist/index347.js +16 -12
  372. package/dist/index347.js.map +1 -1
  373. package/dist/index348.js +51 -3
  374. package/dist/index348.js.map +1 -1
  375. package/dist/index349.js +5 -3
  376. package/dist/index349.js.map +1 -1
  377. package/dist/index35.js +5 -5
  378. package/dist/index350.js +60 -16
  379. package/dist/index350.js.map +1 -1
  380. package/dist/index351.js +66 -5
  381. package/dist/index351.js.map +1 -1
  382. package/dist/index352.js +140 -47
  383. package/dist/index352.js.map +1 -1
  384. package/dist/index353.js +77 -59
  385. package/dist/index353.js.map +1 -1
  386. package/dist/index354.js +59 -64
  387. package/dist/index354.js.map +1 -1
  388. package/dist/index355.js +15 -9
  389. package/dist/index355.js.map +1 -1
  390. package/dist/index356.js +9 -5
  391. package/dist/index356.js.map +1 -1
  392. package/dist/index357.js +4 -11
  393. package/dist/index357.js.map +1 -1
  394. package/dist/index358.js +11 -21
  395. package/dist/index358.js.map +1 -1
  396. package/dist/index359.js +19 -14
  397. package/dist/index359.js.map +1 -1
  398. package/dist/index36.js +11 -11
  399. package/dist/index360.js +17 -8
  400. package/dist/index360.js.map +1 -1
  401. package/dist/index361.js +8 -145
  402. package/dist/index361.js.map +1 -1
  403. package/dist/index362.js +4 -80
  404. package/dist/index362.js.map +1 -1
  405. package/dist/index363.js +5 -61
  406. package/dist/index363.js.map +1 -1
  407. package/dist/index364.js +3 -15
  408. package/dist/index364.js.map +1 -1
  409. package/dist/index365.js +11 -4
  410. package/dist/index365.js.map +1 -1
  411. package/dist/index366.js +20 -20
  412. package/dist/index366.js.map +1 -1
  413. package/dist/index367.js +45 -4
  414. package/dist/index367.js.map +1 -1
  415. package/dist/index368.js +18 -6
  416. package/dist/index368.js.map +1 -1
  417. package/dist/index369.js +5 -3
  418. package/dist/index369.js.map +1 -1
  419. package/dist/index37.js +3 -3
  420. package/dist/index370.js +199 -10
  421. package/dist/index370.js.map +1 -1
  422. package/dist/index371.js +73 -20
  423. package/dist/index371.js.map +1 -1
  424. package/dist/index372.js +122 -43
  425. package/dist/index372.js.map +1 -1
  426. package/dist/index373.js +5 -18
  427. package/dist/index373.js.map +1 -1
  428. package/dist/index374.js +17 -4
  429. package/dist/index374.js.map +1 -1
  430. package/dist/index375.js +12 -200
  431. package/dist/index375.js.map +1 -1
  432. package/dist/index376.js +4 -73
  433. package/dist/index376.js.map +1 -1
  434. package/dist/index377.js +19 -122
  435. package/dist/index377.js.map +1 -1
  436. package/dist/index378.js +8 -4
  437. package/dist/index378.js.map +1 -1
  438. package/dist/index379.js +27 -5
  439. package/dist/index379.js.map +1 -1
  440. package/dist/index38.js +4 -4
  441. package/dist/index380.js +138 -4
  442. package/dist/index380.js.map +1 -1
  443. package/dist/index381.js +12 -15
  444. package/dist/index381.js.map +1 -1
  445. package/dist/index382.js +46 -8
  446. package/dist/index382.js.map +1 -1
  447. package/dist/index383.js +3 -5
  448. package/dist/index383.js.map +1 -1
  449. package/dist/index384.js +21 -4
  450. package/dist/index384.js.map +1 -1
  451. package/dist/index385.js +72 -542
  452. package/dist/index385.js.map +1 -1
  453. package/dist/index386.js +11 -46
  454. package/dist/index386.js.map +1 -1
  455. package/dist/index387.js +3 -17
  456. package/dist/index387.js.map +1 -1
  457. package/dist/index388.js +71 -5
  458. package/dist/index388.js.map +1 -1
  459. package/dist/index389.js +35 -7
  460. package/dist/index389.js.map +1 -1
  461. package/dist/index39.js +5 -5
  462. package/dist/index390.js +7 -7
  463. package/dist/index390.js.map +1 -1
  464. package/dist/index391.js +15 -7
  465. package/dist/index391.js.map +1 -1
  466. package/dist/index392.js +3 -12
  467. package/dist/index392.js.map +1 -1
  468. package/dist/index393.js +3 -9
  469. package/dist/index393.js.map +1 -1
  470. package/dist/index394.js +4 -12
  471. package/dist/index394.js.map +1 -1
  472. package/dist/index395.js +4 -8
  473. package/dist/index395.js.map +1 -1
  474. package/dist/index396.js +4 -27
  475. package/dist/index396.js.map +1 -1
  476. package/dist/index397.js +14 -136
  477. package/dist/index397.js.map +1 -1
  478. package/dist/index398.js +8 -12
  479. package/dist/index398.js.map +1 -1
  480. package/dist/index399.js +5 -46
  481. package/dist/index399.js.map +1 -1
  482. package/dist/index40.js +3 -3
  483. package/dist/index400.js +4 -3
  484. package/dist/index400.js.map +1 -1
  485. package/dist/index401.js +544 -20
  486. package/dist/index401.js.map +1 -1
  487. package/dist/index402.js +46 -75
  488. package/dist/index402.js.map +1 -1
  489. package/dist/index403.js +18 -12
  490. package/dist/index403.js.map +1 -1
  491. package/dist/index404.js +5 -3
  492. package/dist/index404.js.map +1 -1
  493. package/dist/index405.js +7 -71
  494. package/dist/index405.js.map +1 -1
  495. package/dist/index406.js +6 -35
  496. package/dist/index406.js.map +1 -1
  497. package/dist/index407.js +8 -7
  498. package/dist/index407.js.map +1 -1
  499. package/dist/index408.js +11 -15
  500. package/dist/index408.js.map +1 -1
  501. package/dist/index409.js +9 -3
  502. package/dist/index409.js.map +1 -1
  503. package/dist/index41.js +10 -10
  504. package/dist/index410.js +13 -3
  505. package/dist/index410.js.map +1 -1
  506. package/dist/index411.js +3 -5
  507. package/dist/index411.js.map +1 -1
  508. package/dist/index412.js +14 -55
  509. package/dist/index412.js.map +1 -1
  510. package/dist/index413.js +490 -66
  511. package/dist/index413.js.map +1 -1
  512. package/dist/index414.js +8 -31
  513. package/dist/index414.js.map +1 -1
  514. package/dist/index415.js +2 -9
  515. package/dist/index415.js.map +1 -1
  516. package/dist/index416.js +41 -150
  517. package/dist/index416.js.map +1 -1
  518. package/dist/index417.js +56 -108
  519. package/dist/index417.js.map +1 -1
  520. package/dist/index418.js +7 -14
  521. package/dist/index418.js.map +1 -1
  522. package/dist/index419.js +2 -3
  523. package/dist/index419.js.map +1 -1
  524. package/dist/index420.js +50 -487
  525. package/dist/index420.js.map +1 -1
  526. package/dist/index421.js +55 -7
  527. package/dist/index421.js.map +1 -1
  528. package/dist/index422.js +33 -2
  529. package/dist/index422.js.map +1 -1
  530. package/dist/index423.js +4 -43
  531. package/dist/index423.js.map +1 -1
  532. package/dist/index424.js +55 -55
  533. package/dist/index424.js.map +1 -1
  534. package/dist/index425.js +68 -8
  535. package/dist/index425.js.map +1 -1
  536. package/dist/index426.js +31 -2
  537. package/dist/index426.js.map +1 -1
  538. package/dist/index427.js +9 -55
  539. package/dist/index427.js.map +1 -1
  540. package/dist/index428.js +152 -55
  541. package/dist/index428.js.map +1 -1
  542. package/dist/index429.js +107 -32
  543. package/dist/index429.js.map +1 -1
  544. package/dist/index430.js +2 -16
  545. package/dist/index430.js.map +1 -1
  546. package/dist/index431.js +2 -29
  547. package/dist/index431.js.map +1 -1
  548. package/dist/index432.js +2 -13
  549. package/dist/index432.js.map +1 -1
  550. package/dist/index433.js +2 -7
  551. package/dist/index433.js.map +1 -1
  552. package/dist/index434.js +16 -2
  553. package/dist/index434.js.map +1 -1
  554. package/dist/index435.js +29 -2
  555. package/dist/index435.js.map +1 -1
  556. package/dist/index436.js +13 -2
  557. package/dist/index436.js.map +1 -1
  558. package/dist/index437.js +7 -2
  559. package/dist/index437.js.map +1 -1
  560. package/dist/index44.js +1 -1
  561. package/dist/index45.js +2 -2
  562. package/dist/index49.js +36 -36
  563. package/dist/index50.js +29 -29
  564. package/dist/index51.js +2 -2
  565. package/dist/index52.js +12 -12
  566. package/dist/index53.js +4 -4
  567. package/dist/index54.js +1 -1
  568. package/dist/index55.js +21 -21
  569. package/dist/index56.js +5 -5
  570. package/dist/index57.js +5 -5
  571. package/dist/index58.js +8 -8
  572. package/dist/index59.js +5 -5
  573. package/dist/index60.js +17 -17
  574. package/dist/index61.js +5 -5
  575. package/dist/index62.js +3 -3
  576. package/dist/index66.js +1 -1
  577. package/dist/index67.js +1 -1
  578. package/dist/index70.js +1 -1
  579. package/dist/index71.js +1 -1
  580. package/dist/index72.js +6 -2
  581. package/dist/index72.js.map +1 -1
  582. package/dist/index73.js +8 -2
  583. package/dist/index73.js.map +1 -1
  584. package/dist/index74.js +6 -2
  585. package/dist/index74.js.map +1 -1
  586. package/dist/index75.js +2 -2
  587. package/dist/index76.js +2 -6
  588. package/dist/index76.js.map +1 -1
  589. package/dist/index77.js +2 -8
  590. package/dist/index77.js.map +1 -1
  591. package/dist/index78.js +2 -6
  592. package/dist/index78.js.map +1 -1
  593. package/package.json +1 -1
package/dist/index352.js CHANGED
@@ -1,55 +1,148 @@
1
- import * as l from "react-dom";
2
- import { useAnimationFrame as b } from "./index327.js";
3
- import { useStableCallback as A } from "./index288.js";
4
- import { resolveRef as d } from "./index404.js";
5
- import { TransitionStatusDataAttributes as h } from "./index234.js";
6
- function y(c, f = !1, m = !0) {
7
- const o = b();
8
- return A((s, n = null) => {
9
- o.cancel();
10
- const a = d(c);
11
- if (a == null)
12
- return;
13
- const e = a, u = () => {
14
- l.flushSync(s);
15
- };
16
- if (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
17
- s();
18
- return;
1
+ import * as c from "react";
2
+ import { Store as l } from "./index223.js";
3
+ import { useStore as a } from "./index217.js";
4
+ import { useStableCallback as f } from "./index202.js";
5
+ import { useIsoLayoutEffect as u } from "./index201.js";
6
+ import { NOOP as d } from "./index204.js";
7
+ class g extends l {
8
+ /**
9
+ * Creates a new ReactStore instance.
10
+ *
11
+ * @param state Initial state of the store.
12
+ * @param context Non-reactive context values.
13
+ * @param selectors Optional selectors for use with `useState`.
14
+ */
15
+ constructor(e, t = {}, s) {
16
+ super(e), this.context = t, this.selectors = s;
17
+ }
18
+ /**
19
+ * Non-reactive values such as refs, callbacks, etc.
20
+ */
21
+ /**
22
+ * Synchronizes a single external value into the store.
23
+ *
24
+ * Note that the while the value in `state` is updated immediately, the value returned
25
+ * by `useState` is updated before the next render (similarly to React's `useState`).
26
+ */
27
+ useSyncedValue(e, t) {
28
+ c.useDebugValue(e);
29
+ const s = this;
30
+ u(() => {
31
+ s.state[e] !== t && s.set(e, t);
32
+ }, [s, e, t]);
33
+ }
34
+ /**
35
+ * Synchronizes a single external value into the store and
36
+ * cleans it up (sets to `undefined`) on unmount.
37
+ *
38
+ * Note that the while the value in `state` is updated immediately, the value returned
39
+ * by `useState` is updated before the next render (similarly to React's `useState`).
40
+ */
41
+ useSyncedValueWithCleanup(e, t) {
42
+ const s = this;
43
+ u(() => (s.state[e] !== t && s.set(e, t), () => {
44
+ s.set(e, void 0);
45
+ }), [s, e, t]);
46
+ }
47
+ /**
48
+ * Synchronizes multiple external values into the store.
49
+ *
50
+ * Note that the while the values in `state` are updated immediately, the values returned
51
+ * by `useState` are updated before the next render (similarly to React's `useState`).
52
+ */
53
+ useSyncedValues(e) {
54
+ const t = this;
55
+ if (process.env.NODE_ENV !== "production") {
56
+ c.useDebugValue(e, (r) => Object.keys(r));
57
+ const o = c.useRef(Object.keys(e)).current, n = Object.keys(e);
58
+ (o.length !== n.length || o.some((r, i) => r !== n[i])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
19
59
  }
20
- function i() {
21
- Promise.all(e.getAnimations().map((t) => t.finished)).then(() => {
22
- n?.aborted || u();
23
- }).catch(() => {
24
- if (m) {
25
- n?.aborted || u();
26
- return;
27
- }
28
- const t = e.getAnimations();
29
- !n?.aborted && t.length > 0 && t.some((r) => r.pending || r.playState !== "finished") && i();
60
+ const s = Object.values(e);
61
+ u(() => {
62
+ t.update(e);
63
+ }, [t, ...s]);
64
+ }
65
+ /**
66
+ * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
67
+ * is non-undefined, the store's state at `key` is updated to match `controlled`.
68
+ */
69
+ useControlledProp(e, t) {
70
+ c.useDebugValue(e);
71
+ const s = this, o = t !== void 0;
72
+ if (u(() => {
73
+ o && !Object.is(s.state[e], t) && s.setState({
74
+ ...s.state,
75
+ [e]: t
30
76
  });
77
+ }, [s, e, t, o]), process.env.NODE_ENV !== "production") {
78
+ const n = this.controlledValues ??= /* @__PURE__ */ new Map();
79
+ n.has(e) || n.set(e, o);
80
+ const r = n.get(e);
81
+ r !== void 0 && r !== o && console.error(`A component is changing the ${o ? "" : "un"}controlled state of ${e.toString()} to be ${o ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
31
82
  }
32
- if (f) {
33
- const t = h.startingStyle;
34
- if (!e.hasAttribute(t)) {
35
- o.request(i);
36
- return;
83
+ }
84
+ /** Gets the current value from the store using a selector with the provided key.
85
+ *
86
+ * @param key Key of the selector to use.
87
+ */
88
+ select(e, t, s, o) {
89
+ const n = this.selectors[e];
90
+ return n(this.state, t, s, o);
91
+ }
92
+ /**
93
+ * Returns a value from the store's state using a selector function.
94
+ * Used to subscribe to specific parts of the state.
95
+ * This methods causes a rerender whenever the selected state changes.
96
+ *
97
+ * @param key Key of the selector to use.
98
+ */
99
+ useState(e, t, s, o) {
100
+ return c.useDebugValue(e), a(this, this.selectors[e], t, s, o);
101
+ }
102
+ /**
103
+ * Wraps a function with `useStableCallback` to ensure it has a stable reference
104
+ * and assigns it to the context.
105
+ *
106
+ * @param key Key of the event callback. Must be a function in the context.
107
+ * @param fn Function to assign.
108
+ */
109
+ useContextCallback(e, t) {
110
+ c.useDebugValue(e);
111
+ const s = f(t ?? d);
112
+ this.context[e] = s;
113
+ }
114
+ /**
115
+ * Returns a stable setter function for a specific key in the store's state.
116
+ * It's commonly used to pass as a ref callback to React elements.
117
+ *
118
+ * @param key Key of the state to set.
119
+ */
120
+ useStateSetter(e) {
121
+ const t = c.useRef(void 0);
122
+ return t.current === void 0 && (t.current = (s) => {
123
+ this.set(e, s);
124
+ }), t.current;
125
+ }
126
+ /**
127
+ * Observes changes derived from the store's selectors and calls the listener when the selected value changes.
128
+ *
129
+ * @param key Key of the selector to observe.
130
+ * @param listener Listener function called when the selector result changes.
131
+ */
132
+ observe(e, t) {
133
+ let s;
134
+ typeof e == "function" ? s = e : s = this.selectors[e];
135
+ let o = s(this.state);
136
+ return t(o, o, this), this.subscribe((n) => {
137
+ const r = s(n);
138
+ if (!Object.is(o, r)) {
139
+ const i = o;
140
+ o = r, t(r, i, this);
37
141
  }
38
- const r = new MutationObserver(() => {
39
- e.hasAttribute(t) || (r.disconnect(), i());
40
- });
41
- r.observe(e, {
42
- attributes: !0,
43
- attributeFilter: [t]
44
- }), n?.addEventListener("abort", () => r.disconnect(), {
45
- once: !0
46
- });
47
- return;
48
- }
49
- o.request(i);
50
- });
142
+ });
143
+ }
51
144
  }
52
145
  export {
53
- y as useAnimationsFinished
146
+ g as ReactStore
54
147
  };
55
148
  //# sourceMappingURL=index352.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index352.js","sources":["../../../node_modules/@base-ui/react/internals/useAnimationsFinished.mjs"],"sourcesContent":["'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { resolveRef } from \"../utils/resolveRef.mjs\";\nimport { TransitionStatusDataAttributes } from \"./stateAttributesMapping.mjs\";\n\n/**\n * Executes a function once all animations have finished on the provided element.\n * @param elementOrRef - The element to watch for animations.\n * @param waitForStartingStyleRemoved - Whether to wait for [data-starting-style] to be removed before checking for animations.\n * @param treatAbortedAsFinished - Whether to treat aborted animations as finished. If `false`, and there are aborted animations,\n * the function will check again if any new animations have started and wait for them to finish.\n * @returns A function that takes a callback to execute once all animations have finished, and an optional AbortSignal to abort the callback\n */\nexport function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, treatAbortedAsFinished = true) {\n const frame = useAnimationFrame();\n return useStableCallback((fnToExecute,\n /**\n * An optional [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that\n * can be used to abort `fnToExecute` before all the animations have finished.\n * @default null\n */\n signal = null) => {\n frame.cancel();\n const element = resolveRef(elementOrRef);\n if (element == null) {\n return;\n }\n const resolvedElement = element;\n const done = () => {\n // Synchronously flush the unmounting of the component so that the browser doesn't\n // paint: https://github.com/mui/base-ui/issues/979\n ReactDOM.flushSync(fnToExecute);\n };\n if (typeof resolvedElement.getAnimations !== 'function' || globalThis.BASE_UI_ANIMATIONS_DISABLED) {\n fnToExecute();\n return;\n }\n function exec() {\n Promise.all(resolvedElement.getAnimations().map(animation => animation.finished)).then(() => {\n if (!signal?.aborted) {\n done();\n }\n }).catch(() => {\n if (treatAbortedAsFinished) {\n if (!signal?.aborted) {\n done();\n }\n return;\n }\n const currentAnimations = resolvedElement.getAnimations();\n if (!signal?.aborted && currentAnimations.length > 0 && currentAnimations.some(animation => animation.pending || animation.playState !== 'finished')) {\n // Sometimes animations can be aborted because a property they depend on changes while the animation plays.\n // In such cases, we need to re-check if any new animations have started.\n exec();\n }\n });\n }\n if (waitForStartingStyleRemoved) {\n const startingStyleAttribute = TransitionStatusDataAttributes.startingStyle;\n\n // If `[data-starting-style]` isn't present, fall back to waiting one more frame\n // to give \"open\" animations a chance to be registered.\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n frame.request(exec);\n return;\n }\n\n // Wait for `[data-starting-style]` to have been removed.\n const attributeObserver = new MutationObserver(() => {\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n attributeObserver.disconnect();\n exec();\n }\n });\n attributeObserver.observe(resolvedElement, {\n attributes: true,\n attributeFilter: [startingStyleAttribute]\n });\n signal?.addEventListener('abort', () => attributeObserver.disconnect(), {\n once: true\n });\n return;\n }\n frame.request(exec);\n });\n}"],"names":["useAnimationsFinished","elementOrRef","waitForStartingStyleRemoved","treatAbortedAsFinished","frame","useAnimationFrame","useStableCallback","fnToExecute","signal","element","resolveRef","resolvedElement","done","ReactDOM","exec","animation","currentAnimations","startingStyleAttribute","TransitionStatusDataAttributes","attributeObserver"],"mappings":";;;;;AAgBO,SAASA,EAAsBC,GAAcC,IAA8B,IAAOC,IAAyB,IAAM;AACtH,QAAMC,IAAQC,EAAiB;AAC/B,SAAOC,EAAkB,CAACC,GAM1BC,IAAS,SAAS;AAChB,IAAAJ,EAAM,OAAM;AACZ,UAAMK,IAAUC,EAAWT,CAAY;AACvC,QAAIQ,KAAW;AACb;AAEF,UAAME,IAAkBF,GAClBG,IAAO,MAAM;AAGjB,MAAAC,EAAS,UAAUN,CAAW;AAAA,IAChC;AACA,QAAI,OAAOI,EAAgB,iBAAkB,cAAc,WAAW,6BAA6B;AACjG,MAAAJ,EAAW;AACX;AAAA,IACF;AACA,aAASO,IAAO;AACd,cAAQ,IAAIH,EAAgB,gBAAgB,IAAI,CAAAI,MAAaA,EAAU,QAAQ,CAAC,EAAE,KAAK,MAAM;AAC3F,QAAKP,GAAQ,WACXI,EAAI;AAAA,MAER,CAAC,EAAE,MAAM,MAAM;AACb,YAAIT,GAAwB;AAC1B,UAAKK,GAAQ,WACXI,EAAI;AAEN;AAAA,QACF;AACA,cAAMI,IAAoBL,EAAgB,cAAa;AACvD,QAAI,CAACH,GAAQ,WAAWQ,EAAkB,SAAS,KAAKA,EAAkB,KAAK,CAAAD,MAAaA,EAAU,WAAWA,EAAU,cAAc,UAAU,KAGjJD,EAAI;AAAA,MAER,CAAC;AAAA,IACH;AACA,QAAIZ,GAA6B;AAC/B,YAAMe,IAAyBC,EAA+B;AAI9D,UAAI,CAACP,EAAgB,aAAaM,CAAsB,GAAG;AACzD,QAAAb,EAAM,QAAQU,CAAI;AAClB;AAAA,MACF;AAGA,YAAMK,IAAoB,IAAI,iBAAiB,MAAM;AACnD,QAAKR,EAAgB,aAAaM,CAAsB,MACtDE,EAAkB,WAAU,GAC5BL,EAAI;AAAA,MAER,CAAC;AACD,MAAAK,EAAkB,QAAQR,GAAiB;AAAA,QACzC,YAAY;AAAA,QACZ,iBAAiB,CAACM,CAAsB;AAAA,MAChD,CAAO,GACDT,GAAQ,iBAAiB,SAAS,MAAMW,EAAkB,WAAU,GAAI;AAAA,QACtE,MAAM;AAAA,MACd,CAAO;AACD;AAAA,IACF;AACA,IAAAf,EAAM,QAAQU,CAAI;AAAA,EACpB,CAAC;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index352.js","sources":["../../../node_modules/@base-ui/utils/store/ReactStore.mjs"],"sourcesContent":["/* False positives - ESLint thinks we're calling a hook from a class component. */\n/* eslint-disable react-hooks/rules-of-hooks */\n'use client';\n\nimport * as React from 'react';\nimport { Store } from \"./Store.mjs\";\nimport { useStore } from \"./useStore.mjs\";\nimport { useStableCallback } from \"../useStableCallback.mjs\";\nimport { useIsoLayoutEffect } from \"../useIsoLayoutEffect.mjs\";\nimport { NOOP } from \"../empty.mjs\";\n\n/**\n * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.\n */\nexport class ReactStore extends Store {\n /**\n * Creates a new ReactStore instance.\n *\n * @param state Initial state of the store.\n * @param context Non-reactive context values.\n * @param selectors Optional selectors for use with `useState`.\n */\n constructor(state, context = {}, selectors) {\n super(state);\n this.context = context;\n this.selectors = selectors;\n }\n\n /**\n * Non-reactive values such as refs, callbacks, etc.\n */\n\n /**\n * Synchronizes a single external value into the store.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValue(key, value) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes a single external value into the store and\n * cleans it up (sets to `undefined`) on unmount.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValueWithCleanup(key, value) {\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n return () => {\n store.set(key, undefined);\n };\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes multiple external values into the store.\n *\n * Note that the while the values in `state` are updated immediately, the values returned\n * by `useState` are updated before the next render (similarly to React's `useState`).\n */\n useSyncedValues(statePart) {\n // eslint-disable-next-line consistent-this\n const store = this;\n if (process.env.NODE_ENV !== 'production') {\n // Check that an object with the same shape is passed on every render\n React.useDebugValue(statePart, p => Object.keys(p));\n const keys = React.useRef(Object.keys(statePart)).current;\n const nextKeys = Object.keys(statePart);\n if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) {\n console.error('ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.');\n }\n }\n const dependencies = Object.values(statePart);\n useIsoLayoutEffect(() => {\n store.update(statePart);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [store, ...dependencies]);\n }\n\n /**\n * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`\n * is non-undefined, the store's state at `key` is updated to match `controlled`.\n */\n useControlledProp(key, controlled) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n const isControlled = controlled !== undefined;\n useIsoLayoutEffect(() => {\n if (isControlled && !Object.is(store.state[key], controlled)) {\n // Set the internal state to match the controlled value.\n store.setState({\n ...store.state,\n [key]: controlled\n });\n }\n }, [store, key, controlled, isControlled]);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n const cache = this.controlledValues ??= new Map();\n if (!cache.has(key)) {\n cache.set(key, isControlled);\n }\n const previouslyControlled = cache.get(key);\n if (previouslyControlled !== undefined && previouslyControlled !== isControlled) {\n console.error(`A component is changing the ${isControlled ? '' : 'un'}controlled state of ${key.toString()} to be ${isControlled ? 'un' : ''}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);\n }\n }\n }\n\n /** Gets the current value from the store using a selector with the provided key.\n *\n * @param key Key of the selector to use.\n */\n\n select(key, a1, a2, a3) {\n const selector = this.selectors[key];\n return selector(this.state, a1, a2, a3);\n }\n\n /**\n * Returns a value from the store's state using a selector function.\n * Used to subscribe to specific parts of the state.\n * This methods causes a rerender whenever the selected state changes.\n *\n * @param key Key of the selector to use.\n */\n\n useState(key, a1, a2, a3) {\n React.useDebugValue(key);\n return useStore(this, this.selectors[key], a1, a2, a3);\n }\n\n /**\n * Wraps a function with `useStableCallback` to ensure it has a stable reference\n * and assigns it to the context.\n *\n * @param key Key of the event callback. Must be a function in the context.\n * @param fn Function to assign.\n */\n useContextCallback(key, fn) {\n React.useDebugValue(key);\n const stableFunction = useStableCallback(fn ?? NOOP);\n this.context[key] = stableFunction;\n }\n\n /**\n * Returns a stable setter function for a specific key in the store's state.\n * It's commonly used to pass as a ref callback to React elements.\n *\n * @param key Key of the state to set.\n */\n useStateSetter(key) {\n const ref = React.useRef(undefined);\n if (ref.current === undefined) {\n ref.current = value => {\n this.set(key, value);\n };\n }\n return ref.current;\n }\n\n /**\n * Observes changes derived from the store's selectors and calls the listener when the selected value changes.\n *\n * @param key Key of the selector to observe.\n * @param listener Listener function called when the selector result changes.\n */\n\n observe(selector, listener) {\n let selectFn;\n if (typeof selector === 'function') {\n selectFn = selector;\n } else {\n selectFn = this.selectors[selector];\n }\n let prevValue = selectFn(this.state);\n listener(prevValue, prevValue, this);\n return this.subscribe(nextState => {\n const nextValue = selectFn(nextState);\n if (!Object.is(prevValue, nextValue)) {\n const oldValue = prevValue;\n prevValue = nextValue;\n listener(nextValue, oldValue, this);\n }\n });\n }\n}"],"names":["ReactStore","Store","state","context","selectors","key","value","React","store","useIsoLayoutEffect","statePart","p","keys","nextKeys","index","dependencies","controlled","isControlled","cache","previouslyControlled","a1","a2","a3","selector","useStore","fn","stableFunction","useStableCallback","NOOP","ref","listener","selectFn","prevValue","nextState","nextValue","oldValue"],"mappings":";;;;;;AAcO,MAAMA,UAAmBC,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpC,YAAYC,GAAOC,IAAU,CAAA,GAAIC,GAAW;AAC1C,UAAMF,CAAK,GACX,KAAK,UAAUC,GACf,KAAK,YAAYC;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYA,eAAeC,GAAKC,GAAO;AACzB,IAAAC,EAAM,cAAcF,CAAG;AAEvB,UAAMG,IAAQ;AACd,IAAAC,EAAmB,MAAM;AACvB,MAAID,EAAM,MAAMH,CAAG,MAAMC,KACvBE,EAAM,IAAIH,GAAKC,CAAK;AAAA,IAExB,GAAG,CAACE,G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EAAI;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,QAAQN,GAAUO,GAAU;AAC1B,QAAIC;AACJ,IAAI,OAAOR,KAAa,aACtBQ,IAAWR,IAEXQ,IAAW,KAAK,UAAUR,CAAQ;AAEpC,QAAIS,IAAYD,EAAS,KAAK,KAAK;AACnC,WAAAD,EAASE,GAAWA,GAAW,IAAI,GAC5B,KAAK,UAAU,CAAAC,MAAa;AACjC,YAAMC,IAAYH,EAASE,CAAS;AACpC,UAAI,CAAC,OAAO,GAAGD,GAAWE,CAAS,GAAG;AACpC,cAAMC,IAAWH;AACjB,QAAAA,IAAYE,GACZJ,EAASI,GAAWC,GAAU,IAAI;AAAA,MACpC;AAAA,IACF,CAAC;AAAA,EACH;AACF;","x_google_ignoreList":[0]}
package/dist/index353.js CHANGED
@@ -1,65 +1,83 @@
1
- import * as r from "react";
2
- import { useScrollLock as P } from "./index377.js";
3
- import { EMPTY_OBJECT as f } from "./index290.js";
4
- import { createChangeEventDetails as C } from "./index235.js";
5
- import { usePopupRootSync as S, useImplicitActiveTrigger as k, useOpenStateTransitions as E, usePopupInteractionProps as T } from "./index244.js";
6
- import { useDismiss as h } from "./index305.js";
7
- import { getTarget as w, contains as x } from "./index317.js";
8
- import { imperativeAction as I } from "./index237.js";
9
- function L(e) {
10
- const {
11
- store: t,
12
- actionsRef: a
13
- } = e, o = t.useState("open");
14
- S(t, o), k(t);
15
- const {
16
- forceUnmount: c
17
- } = E(o, t), s = r.useCallback(() => {
18
- t.setOpen(!1, C(I));
19
- }, [t]);
20
- r.useImperativeHandle(a, () => ({
21
- unmount: c,
22
- close: s
23
- }), [c, s]);
1
+ import { EMPTY_OBJECT as r } from "./index204.js";
2
+ import { FloatingRootStore as l } from "./index388.js";
3
+ import { getEmptyRootContext as d } from "./index391.js";
4
+ import { createSelector as o } from "./index355.js";
5
+ function P() {
6
+ return {
7
+ open: !1,
8
+ openProp: void 0,
9
+ mounted: !1,
10
+ transitionStatus: void 0,
11
+ floatingRootContext: d(),
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: r,
22
+ inactiveTriggerProps: r,
23
+ popupProps: r
24
+ };
24
25
  }
25
- function M({
26
- store: e,
27
- parentContext: t,
28
- isDrawer: a
29
- }) {
30
- const o = e.useState("open"), c = e.useState("disablePointerDismissal"), s = e.useState("modal"), d = e.useState("popupElement"), O = e.useState("floatingRootContext"), [u, m] = r.useState(0), [l, g] = r.useState(0), D = u === 0, p = h(O, {
31
- outsidePressEvent() {
32
- return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
33
- mouse: s === "trap-focus" ? "sloppy" : "intentional",
34
- touch: "sloppy"
35
- };
36
- },
37
- outsidePress(n) {
38
- if (!e.context.outsidePressEnabledRef.current || "button" in n && n.button !== 0 || "touches" in n && n.touches.length !== 1)
39
- return !1;
40
- const i = w(n);
41
- return D && !c ? s && (e.context.internalBackdropRef.current || e.context.backdropRef.current) ? e.context.internalBackdropRef.current === i || e.context.backdropRef.current === i || x(i, d) && !i?.hasAttribute("data-base-ui-portal") : !0 : !1;
42
- },
43
- escapeKey: D
26
+ function T(e, n, g = !1) {
27
+ return new l({
28
+ open: !1,
29
+ transitionStatus: void 0,
30
+ floatingElement: null,
31
+ referenceElement: null,
32
+ triggerElements: e,
33
+ floatingId: n,
34
+ syncOnly: !0,
35
+ nested: g,
36
+ onOpenChange: void 0
44
37
  });
45
- P(o && s === !0, d), e.useContextCallback("onNestedDialogOpen", (n, i) => {
46
- m(n), g(i);
47
- }), e.useContextCallback("onNestedDialogClose", () => {
48
- m(0), g(0);
49
- }), r.useEffect(() => (t?.onNestedDialogOpen && o && t.onNestedDialogOpen(u + 1, l + (a ? 1 : 0)), t?.onNestedDialogClose && !o && t.onNestedDialogClose(), () => {
50
- t?.onNestedDialogClose && o && t.onNestedDialogClose();
51
- }), [a, o, u, l, t]);
52
- const b = p.reference ?? f, R = p.trigger ?? f, N = p.floating ?? f;
53
- return T(e, {
54
- activeTriggerProps: b,
55
- inactiveTriggerProps: R,
56
- popupProps: N,
57
- nestedOpenDialogCount: u,
58
- nestedOpenDrawerCount: l
59
- }), null;
60
38
  }
39
+ const t = o((e) => e.triggerIdProp ?? e.activeTriggerId), i = o((e) => e.openProp ?? e.open), p = o((e) => (e.popupElement?.id ?? e.floatingId) || void 0);
40
+ function u(e, n) {
41
+ return n !== void 0 && i(e) && t(e) === n;
42
+ }
43
+ function f(e, n) {
44
+ return u(e, n) ? !0 : n !== void 0 && i(e) && t(e) == null && e.triggerCount === 1;
45
+ }
46
+ const v = {
47
+ open: i,
48
+ mounted: o((e) => e.mounted),
49
+ transitionStatus: o((e) => e.transitionStatus),
50
+ floatingRootContext: o((e) => e.floatingRootContext),
51
+ triggerCount: o((e) => e.triggerCount),
52
+ preventUnmountingOnClose: o((e) => e.preventUnmountingOnClose),
53
+ payload: o((e) => e.payload),
54
+ activeTriggerId: t,
55
+ activeTriggerElement: o((e) => e.mounted ? e.activeTriggerElement : null),
56
+ popupId: p,
57
+ /**
58
+ * Whether the trigger with the given ID was used to open the popup.
59
+ */
60
+ isTriggerActive: o((e, n) => n !== void 0 && t(e) === n),
61
+ /**
62
+ * Whether the popup is open and was activated by a trigger with the given ID.
63
+ */
64
+ isOpenedByTrigger: o((e, n) => u(e, n)),
65
+ /**
66
+ * Whether the popup is mounted and was activated by a trigger with the given ID.
67
+ */
68
+ isMountedByTrigger: o((e, n) => n !== void 0 && t(e) === n && e.mounted),
69
+ triggerProps: o((e, n) => n ? e.activeTriggerProps : e.inactiveTriggerProps),
70
+ /**
71
+ * Popup id for the trigger that currently owns the open popup.
72
+ */
73
+ triggerPopupId: o((e, n) => f(e, n) ? p(e) : void 0),
74
+ popupProps: o((e) => e.popupProps),
75
+ popupElement: o((e) => e.popupElement),
76
+ positionerElement: o((e) => e.positionerElement)
77
+ };
61
78
  export {
62
- M as DialogInteractions,
63
- L as useDialogRoot
79
+ P as createInitialPopupStoreState,
80
+ T as createPopupFloatingRootContext,
81
+ v as popupStoreSelectors
64
82
  };
65
83
  //# sourceMappingURL=index353.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index353.js","sources":["../../../node_modules/@base-ui/react/dialog/root/useDialogRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useDismiss } from \"../../floating-ui-react/index.mjs\";\nimport { contains, getTarget } from \"../../floating-ui-react/utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useImplicitActiveTrigger, useOpenStateTransitions, usePopupInteractionProps, usePopupRootSync } from \"../../utils/popups/index.mjs\";\nexport function useDialogRoot(params) {\n const {\n store,\n actionsRef\n } = params;\n const open = store.useState('open');\n usePopupRootSync(store, open);\n useImplicitActiveTrigger(store);\n const {\n forceUnmount\n } = useOpenStateTransitions(open, store);\n const handleImperativeClose = React.useCallback(() => {\n store.setOpen(false, createChangeEventDetails(REASONS.imperativeAction));\n }, [store]);\n React.useImperativeHandle(actionsRef, () => ({\n unmount: forceUnmount,\n close: handleImperativeClose\n }), [forceUnmount, handleImperativeClose]);\n}\nexport function DialogInteractions({\n store,\n parentContext,\n isDrawer\n}) {\n const open = store.useState('open');\n const disablePointerDismissal = store.useState('disablePointerDismissal');\n const modal = store.useState('modal');\n const popupElement = store.useState('popupElement');\n const floatingRootContext = store.useState('floatingRootContext');\n const [ownNestedOpenDialogs, setOwnNestedOpenDialogs] = React.useState(0);\n const [ownNestedOpenDrawers, setOwnNestedOpenDrawers] = React.useState(0);\n const isTopmost = ownNestedOpenDialogs === 0;\n const dismiss = useDismiss(floatingRootContext, {\n outsidePressEvent() {\n if (store.context.internalBackdropRef.current || store.context.backdropRef.current) {\n return 'intentional';\n }\n // Ensure `aria-hidden` on outside elements is removed immediately\n // on outside press when trapping focus.\n return {\n mouse: modal === 'trap-focus' ? 'sloppy' : 'intentional',\n touch: 'sloppy'\n };\n },\n outsidePress(event) {\n if (!store.context.outsidePressEnabledRef.current) {\n return false;\n }\n\n // For mouse events, only accept left button (button 0)\n // For touch events, a single touch is equivalent to left button\n if ('button' in event && event.button !== 0) {\n return false;\n }\n if ('touches' in event && event.touches.length !== 1) {\n return false;\n }\n const target = getTarget(event);\n if (isTopmost && !disablePointerDismissal) {\n // Only close if the click occurred on the dialog's owning backdrop.\n // This supports multiple modal dialogs that aren't nested in the React tree:\n // https://github.com/mui/base-ui/issues/1320\n if (modal) {\n return store.context.internalBackdropRef.current || store.context.backdropRef.current ? store.context.internalBackdropRef.current === target || store.context.backdropRef.current === target || contains(target, popupElement) && !target?.hasAttribute('data-base-ui-portal') : true;\n }\n return true;\n }\n return false;\n },\n escapeKey: isTopmost\n });\n useScrollLock(open && modal === true, popupElement);\n\n // Listen for nested open/close events on this store to maintain the counts.\n store.useContextCallback('onNestedDialogOpen', (dialogCount, drawerCount) => {\n setOwnNestedOpenDialogs(dialogCount);\n setOwnNestedOpenDrawers(drawerCount);\n });\n store.useContextCallback('onNestedDialogClose', () => {\n setOwnNestedOpenDialogs(0);\n setOwnNestedOpenDrawers(0);\n });\n\n // Notify parent of our open/close state using parent callbacks, if any\n React.useEffect(() => {\n if (parentContext?.onNestedDialogOpen && open) {\n parentContext.onNestedDialogOpen(ownNestedOpenDialogs + 1, ownNestedOpenDrawers + (isDrawer ? 1 : 0));\n }\n if (parentContext?.onNestedDialogClose && !open) {\n parentContext.onNestedDialogClose();\n }\n return () => {\n if (parentContext?.onNestedDialogClose && open) {\n parentContext.onNestedDialogClose();\n }\n };\n }, [isDrawer, open, ownNestedOpenDialogs, ownNestedOpenDrawers, parentContext]);\n const activeTriggerProps = dismiss.reference ?? EMPTY_OBJECT;\n const inactiveTriggerProps = dismiss.trigger ?? EMPTY_OBJECT;\n // Consumers (DialogPopup/DrawerPopup) already spread `FOCUSABLE_POPUP_PROPS`\n // directly, so the popup props only need to carry the dismiss handlers.\n const popupProps = dismiss.floating ?? EMPTY_OBJECT;\n usePopupInteractionProps(store, {\n activeTriggerProps,\n inactiveTriggerProps,\n popupProps,\n nestedOpenDialogCount: ownNestedOpenDialogs,\n nestedOpenDrawerCount: ownNestedOpenDrawers\n });\n return null;\n}"],"names":["useDialogRoot","params","store","actionsRef","open","usePopupRootSync","useImplicitActiveTrigger","forceUnmount","useOpenStateTransitions","handleImperativeClose","React","createChangeEventDetails","REASONS.imperativeAction","DialogInteractions","parentContext","isDrawer","disablePointerDismissal","modal","popupElement","floatingRootContext","ownNestedOpenDialogs","setOwnNestedOpenDialogs","ownNestedOpenDrawers","setOwnNestedOpenDrawers","isTopmost","dismiss","useDismiss","event","target","getTarget","contains","useScrollLock","dialogCount","drawerCount","activeTriggerProps","EMPTY_OBJECT","inactiveTriggerProps","popupProps","usePopupInteractionProps"],"mappings":";;;;;;;;AAUO,SAASA,EAAcC,GAAQ;AACpC,QAAM;AAAA,IACJ,OAAAC;AAAA,IACA,YAAAC;AAAA,EACJ,IAAMF,GACEG,IAAOF,EAAM,SAAS,MAAM;AAClC,EAAAG,EAAiBH,GAAOE,CAAI,GAC5BE,EAAyBJ,CAAK;AAC9B,QAAM;AAAA,IACJ,cAAAK;AAAA,EACJ,IAAMC,EAAwBJ,GAAMF,CAAK,GACjCO,IAAwBC,EAAM,YAAY,MAAM;AACpD,IAAAR,EAAM,QAAQ,IAAOS,EAAyBC,CAAwB,CAAC;AAAA,EACzE,GAAG,CAACV,CAAK,CAAC;AACV,EAAAQ,EAAM,oBAAoBP,GAAY,OAAO;AAAA,IAC3C,SAASI;AAAA,IACT,OAAOE;AAAA,EACX,IAAM,CAACF,GAAcE,CAAqB,CAAC;AAC3C;AACO,SAASI,EAAmB;AA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BAAmB,uBAAuB,MAAM;AACpD,IAAAmB,EAAwB,CAAC,GACzBE,EAAwB,CAAC;AAAA,EAC3B,CAAC,GAGDb,EAAM,UAAU,OACVI,GAAe,sBAAsBV,KACvCU,EAAc,mBAAmBM,IAAuB,GAAGE,KAAwBP,IAAW,IAAI,EAAE,GAElGD,GAAe,uBAAuB,CAACV,KACzCU,EAAc,oBAAmB,GAE5B,MAAM;AACX,IAAIA,GAAe,uBAAuBV,KACxCU,EAAc,oBAAmB;AAAA,EAErC,IACC,CAACC,GAAUX,GAAMgB,GAAsBE,GAAsBR,CAAa,CAAC;AAC9E,QAAMoB,IAAqBT,EAAQ,aAAaU,GAC1CC,IAAuBX,EAAQ,WAAWU,GAG1CE,IAAaZ,EAAQ,YAAYU;AACvC,SAAAG,EAAyBpC,GAAO;AAAA,IAC9B,oBAAAgC;AAAA,IACA,sBAAAE;AAAA,IACA,YAAAC;AAAA,IACA,uBAAuBjB;AAAA,IACvB,uBAAuBE;AAAA,EAC3B,CAAG,GACM;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index353.js","sources":["../../../node_modules/@base-ui/react/utils/popups/store.mjs"],"sourcesContent":["import { createSelector } from '@base-ui/utils/store';\nimport { 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 = createSelector(state => state.triggerIdProp ?? state.activeTriggerId);\nconst openSelector = createSelector(state => state.openProp ?? state.open);\nconst popupIdSelector = createSelector(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: createSelector(state => state.mounted),\n transitionStatus: createSelector(state => state.transitionStatus),\n floatingRootContext: createSelector(state => state.floatingRootContext),\n triggerCount: createSelector(state => state.triggerCount),\n preventUnmountingOnClose: createSelector(state => state.preventUnmountingOnClose),\n payload: createSelector(state => state.payload),\n activeTriggerId: activeTriggerIdSelector,\n activeTriggerElement: createSelector(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: createSelector((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: createSelector((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: createSelector((state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId && state.mounted),\n triggerProps: createSelector((state, isActive) => isActive ? state.activeTriggerProps : state.inactiveTriggerProps),\n /**\n * Popup id for the trigger that currently owns the open popup.\n */\n triggerPopupId: createSelector((state, triggerId) => triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) ? popupIdSelector(state) : undefined),\n popupProps: createSelector(state => state.popupProps),\n popupElement: createSelector(state => state.popupElement),\n positionerElement: createSelector(state => state.positionerElement)\n};"],"names":["createInitialPopupStoreState","getEmptyRootContext","EMPTY_OBJECT","createPopupFloatingRootContext","triggerElements","floatingId","nested","FloatingRootStore","activeTriggerIdSelector","createSelector","state","openSelector","popupIdSelector","triggerOwnsOpenPopup","triggerId","triggerOwnsOpenPopupOrIsOnlyTrigger","popupStoreSelectors","isActive"],"mappings":";;;;AASO,SAASA,IAA+B;AAC7C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,qBAAqBC,EAAmB;AAAA,IACxC,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,0BAA0B;AAAA,IAC1B,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,eAAe;AAAA,IACf,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB,oBAAoBC;AAAA,IACpB,sBAAsBA;AAAA,IACtB,YAAYA;AAAA,EAChB;AACA;AACO,SAASC,EAA+BC,GAAiBC,GAAYC,IAAS,IAAO;AAC1F,SAAO,IAAIC,EAAkB;AAAA,IAC3B,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,iBAAAH;AAAA,IACA,YAAAC;AAAA,IACA,UAAU;AAAA,IACV,QAAAC;AAAA,IACA,cAAc;AAAA,EAClB,CAAG;AACH;AACA,MAAME,IAA0BC,EAAe,CAAAC,MAASA,EAAM,iBAAiBA,EAAM,eAAe,GAC9FC,IAAeF,EAAe,CAAAC,MAASA,EAAM,YAAYA,EAAM,IAAI,GACnEE,IAAkBH,EAAe,CAAAC,OACrBA,EAAM,cAAc,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AOI,MAAcC,EAAoCL,GAAOI,CAAS,IAAIF,EAAgBF,CAAK,IAAI,MAAS;AAAA,EAC/I,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AAAA,EACpD,cAAcD,EAAe,CAAAC,MAASA,EAAM,YAAY;AAAA,EACxD,mBAAmBD,EAAe,CAAAC,MAASA,EAAM,iBAAiB;AACpE;","x_google_ignoreList":[0]}
package/dist/index354.js CHANGED
@@ -1,70 +1,65 @@
1
- import * as p from "react";
2
- import { ReactStore as l } from "./index361.js";
3
- import { createPopupFloatingRootContext as d, popupStoreSelectors as u, createInitialPopupStoreState as c } from "./index362.js";
4
- import { PopupTriggerMap as m } from "./index363.js";
5
- import { setPopupOpenState as f, usePopupStore as g } from "./index244.js";
6
- import { createSelector as o } from "./index364.js";
7
- const C = {
8
- ...u,
9
- modal: o((e) => e.modal),
10
- nested: o((e) => e.nested),
11
- nestedOpenDialogCount: o((e) => e.nestedOpenDialogCount),
12
- nestedOpenDrawerCount: o((e) => e.nestedOpenDrawerCount),
13
- disablePointerDismissal: o((e) => e.disablePointerDismissal),
14
- openMethod: o((e) => e.openMethod),
15
- descriptionElementId: o((e) => e.descriptionElementId),
16
- titleElementId: o((e) => e.titleElementId),
17
- viewportElement: o((e) => e.viewportElement),
18
- role: o((e) => e.role)
19
- };
20
- class a extends l {
21
- constructor(n, t, r = !1) {
22
- const i = new m(), s = h(n);
23
- s.floatingRootContext = d(i, t, r), super(s, {
24
- popupRef: /* @__PURE__ */ p.createRef(),
25
- backdropRef: /* @__PURE__ */ p.createRef(),
26
- internalBackdropRef: /* @__PURE__ */ p.createRef(),
27
- outsidePressEnabledRef: {
28
- current: !0
29
- },
30
- triggerElements: i,
31
- onOpenChange: void 0,
32
- onOpenChangeComplete: void 0
33
- }, C);
1
+ class n {
2
+ constructor() {
3
+ this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
34
4
  }
35
- setOpen = (n, t) => {
36
- if (t.preventUnmountOnClose = () => {
37
- this.set("preventUnmountingOnClose", !0);
38
- }, !n && t.trigger == null && this.state.activeTriggerId != null && (t.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(n, t), t.isCanceled)
39
- return;
40
- this.state.floatingRootContext.dispatchOpenChange(n, t);
41
- const r = {
42
- open: n
43
- };
44
- f(r, n, t.trigger), this.update(r);
45
- };
46
- static useStore(n, t) {
47
- return g(n, (i, s) => new a(t, i, s), !0).store;
5
+ /**
6
+ * Adds a trigger element with the given ID.
7
+ *
8
+ * Note: The provided element is assumed to not be registered under multiple IDs.
9
+ */
10
+ add(e, t) {
11
+ const s = this.idMap.get(e);
12
+ if (s !== t && (s !== void 0 && this.elementsSet.delete(s), this.elementsSet.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elementsSet.size !== this.idMap.size))
13
+ throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
14
+ }
15
+ /**
16
+ * Removes the trigger element with the given ID.
17
+ */
18
+ delete(e) {
19
+ const t = this.idMap.get(e);
20
+ t && (this.elementsSet.delete(t), this.idMap.delete(e));
21
+ }
22
+ /**
23
+ * Whether the given element is registered as a trigger.
24
+ */
25
+ hasElement(e) {
26
+ return this.elementsSet.has(e);
27
+ }
28
+ /**
29
+ * Whether there is a registered trigger element matching the given predicate.
30
+ */
31
+ hasMatchingElement(e) {
32
+ for (const t of this.elementsSet)
33
+ if (e(t))
34
+ return !0;
35
+ return !1;
36
+ }
37
+ /**
38
+ * Returns the trigger element associated with the given ID, or undefined if no such element exists.
39
+ */
40
+ getById(e) {
41
+ return this.idMap.get(e);
42
+ }
43
+ /**
44
+ * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
45
+ */
46
+ entries() {
47
+ return this.idMap.entries();
48
+ }
49
+ /**
50
+ * Returns an iterable of all registered trigger elements.
51
+ */
52
+ elements() {
53
+ return this.elementsSet.values();
54
+ }
55
+ /**
56
+ * Returns the number of registered trigger elements.
57
+ */
58
+ get size() {
59
+ return this.idMap.size;
48
60
  }
49
- }
50
- function h(e = {}) {
51
- return {
52
- ...c(),
53
- modal: !0,
54
- disablePointerDismissal: !1,
55
- popupElement: null,
56
- viewportElement: null,
57
- descriptionElementId: void 0,
58
- titleElementId: void 0,
59
- openMethod: null,
60
- nested: !1,
61
- nestedOpenDialogCount: 0,
62
- nestedOpenDrawerCount: 0,
63
- role: "dialog",
64
- ...e
65
- };
66
61
  }
67
62
  export {
68
- a as DialogStore
63
+ n as PopupTriggerMap
69
64
  };
70
65
  //# sourceMappingURL=index354.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index354.js","sources":["../../../node_modules/@base-ui/react/dialog/store/DialogStore.mjs"],"sourcesContent":["import * as React from 'react';\nimport { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createPopupFloatingRootContext, createInitialPopupStoreState, popupStoreSelectors, PopupTriggerMap, setPopupOpenState, usePopupStore } from \"../../utils/popups/index.mjs\";\nconst selectors = {\n ...popupStoreSelectors,\n modal: createSelector(state => state.modal),\n nested: createSelector(state => state.nested),\n nestedOpenDialogCount: createSelector(state => state.nestedOpenDialogCount),\n nestedOpenDrawerCount: createSelector(state => state.nestedOpenDrawerCount),\n disablePointerDismissal: createSelector(state => state.disablePointerDismissal),\n openMethod: createSelector(state => state.openMethod),\n descriptionElementId: createSelector(state => state.descriptionElementId),\n titleElementId: createSelector(state => state.titleElementId),\n viewportElement: createSelector(state => state.viewportElement),\n role: createSelector(state => state.role)\n};\nexport class DialogStore extends ReactStore {\n constructor(initialState, floatingId, nested = false) {\n const triggerElements = new PopupTriggerMap();\n const state = createInitialState(initialState);\n state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);\n super(state, {\n popupRef: /*#__PURE__*/React.createRef(),\n backdropRef: /*#__PURE__*/React.createRef(),\n internalBackdropRef: /*#__PURE__*/React.createRef(),\n outsidePressEnabledRef: {\n current: true\n },\n triggerElements,\n onOpenChange: undefined,\n onOpenChangeComplete: undefined\n }, selectors);\n }\n setOpen = (nextOpen, eventDetails) => {\n eventDetails.preventUnmountOnClose = () => {\n this.set('preventUnmountingOnClose', true);\n };\n if (!nextOpen && eventDetails.trigger == null && this.state.activeTriggerId != null) {\n // When closing the dialog, pass the old trigger to the onOpenChange event\n // so it's not reset too early (potentially causing focus issues in controlled scenarios).\n eventDetails.trigger = this.state.activeTriggerElement ?? undefined;\n }\n this.context.onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n this.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);\n const updatedState = {\n open: nextOpen\n };\n setPopupOpenState(updatedState, nextOpen, eventDetails.trigger);\n this.update(updatedState);\n };\n static useStore(externalStore, initialState) {\n /* eslint-disable react-hooks/rules-of-hooks */\n const store = usePopupStore(externalStore, (floatingId, nested) => new DialogStore(initialState, floatingId, nested), true).store;\n /* eslint-enable react-hooks/rules-of-hooks */\n\n return store;\n }\n}\nfunction createInitialState(initialState = {}) {\n return {\n ...createInitialPopupStoreState(),\n modal: true,\n disablePointerDismissal: false,\n popupElement: null,\n viewportElement: null,\n descriptionElementId: undefined,\n titleElementId: undefined,\n openMethod: null,\n nested: false,\n nestedOpenDialogCount: 0,\n nestedOpenDrawerCount: 0,\n role: 'dialog',\n ...initialState\n };\n}"],"names":["selectors","popupStoreSelectors","createSelector","state","DialogStore","ReactStore","initialState","floatingId","nested","triggerElements","PopupTriggerMap","createInitialState","createPopupFloatingRootContext","React","nextOpen","eventDetails","updatedState","setPopupOpenState","externalStore","usePopupStore","createInitialPopupStoreState"],"mappings":";;;;;;AAGA,MAAMA,IAAY;AAAA,EAChB,GAAGC;AAAA,EACH,OAAOC,EAAe,CAAAC,MAASA,EAAM,KAAK;AAAA,EAC1C,QAAQD,EAAe,CAAAC,MAASA,EAAM,MAAM;AAAA,EAC5C,uBAAuBD,EAAe,CAAAC,MAASA,EAAM,qBAAqB;AAAA,EAC1E,uBAAuBD,EAAe,CAAAC,MAASA,EAAM,q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,OAAO,GAC9D,KAAK,OAAOC,CAAY;AAAA,EAC1B;AAAA,EACA,OAAO,SAASE,GAAeZ,GAAc;AAK3C,WAHca,EAAcD,GAAe,CAACX,GAAYC,MAAW,IAAIJ,EAAYE,GAAcC,GAAYC,CAAM,GAAG,EAAI,EAAE;AAAA,EAI9H;AACF;AACA,SAASG,EAAmBL,IAAe,IAAI;AAC7C,SAAO;AAAA,IACL,GAAGc,EAA4B;AAAA,IAC/B,OAAO;AAAA,IACP,yBAAyB;AAAA,IACzB,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,IACvB,MAAM;AAAA,IACN,GAAGd;AAAA,EACP;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index354.js","sources":["../../../node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs"],"sourcesContent":["/**\n * Data structure to keep track of popup trigger elements by their IDs.\n * Uses both a set of Elements and a map of IDs to Elements for efficient lookups.\n */\nexport class PopupTriggerMap {\n constructor() {\n this.elementsSet = new Set();\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 const existingElement = this.idMap.get(id);\n if (existingElement === element) {\n return;\n }\n if (existingElement !== undefined) {\n // We assume that the same element won't be registered under multiple ids.\n // This is safe considering how useTriggerRegistration is implemented.\n this.elementsSet.delete(existingElement);\n }\n this.elementsSet.add(element);\n this.idMap.set(id, element);\n if (process.env.NODE_ENV !== 'production') {\n if (this.elementsSet.size !== this.idMap.size) {\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 }\n\n /**\n * Removes the trigger element with the given ID.\n */\n delete(id) {\n const element = this.idMap.get(id);\n if (element) {\n this.elementsSet.delete(element);\n this.idMap.delete(id);\n }\n }\n\n /**\n * Whether the given element is registered as a trigger.\n */\n hasElement(element) {\n return this.elementsSet.has(element);\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.elementsSet) {\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.elementsSet.values();\n }\n\n /**\n * Returns the number of registered trigger elements.\n */\n get size() {\n return this.idMap.size;\n }\n}"],"names":["PopupTriggerMap","id","element","existingElement","predicate"],"mappings":"AAIO,MAAMA,EAAgB;AAAA,EAC3B,cAAc;AACZ,SAAK,cAAc,oBAAI,IAAG,GAC1B,KAAK,QAAQ,oBAAI,IAAG;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAIC,GAAIC,GAAS;AACf,UAAMC,IAAkB,KAAK,MAAM,IAAIF,CAAE;AACzC,QAAIE,MAAoBD,MAGpBC,MAAoB,UAGtB,KAAK,YAAY,OAAOA,CAAe,GAEzC,KAAK,YAAY,IAAID,CAAO,GAC5B,KAAK,MAAM,IAAID,GAAIC,CAAO,GACtB,QAAQ,IAAI,aAAa,gBACvB,KAAK,YAAY,SAAS,KAAK,MAAM;AAGvC,YAAM,IAAI,MAAM,wFAAwF;AAAA,EAG9G;AAAA;AAAA;AAAA;AAAA,EAKA,OAAOD,GAAI;AACT,UAAMC,IAAU,KAAK,MAAM,IAAID,CAAE;AACjC,IAAIC,MACF,KAAK,YAAY,OAAOA,CAAO,GAC/B,KAAK,MAAM,OAAOD,CAAE;AAAA,EAExB;AAAA;AAAA;AAAA;AAAA,EAKA,W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