@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/index259.js CHANGED
@@ -1,65 +1,55 @@
1
- import { isReactVersionAtLeast as e } from "./index187.js";
2
- import { require_shim as t } from "./index254.js";
3
- import { require_with_selector as n } from "./index257.js";
4
- import { getInstance as r, register as i } from "./index258.js";
5
- import * as a from "react";
6
- //#region ../../node_modules/@base-ui/utils/store/useStore.mjs
7
- var o = t(), s = n(), c = e(19) ? d : f;
8
- function l(e, t, n, r, i) {
9
- return c(e, t, n, r, i);
10
- }
11
- function u(e, t, n, r, i) {
12
- let s = a.useCallback(() => t(e.getSnapshot(), n, r, i), [
13
- e,
14
- t,
15
- n,
16
- r,
17
- i
18
- ]);
19
- return (0, o.useSyncExternalStore)(e.subscribe, s, s);
20
- }
21
- i({
22
- before(e) {
23
- e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
24
- let t = !1;
25
- for (let n = 0; n < e.syncHooks.length; n += 1) {
26
- let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
27
- Object.is(r.value, i) || (t = !0, r.value = i);
28
- }
29
- return t && (e.syncTick += 1), e.syncTick;
30
- });
31
- },
32
- after(e) {
33
- e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
34
- let n = /* @__PURE__ */ new Set();
35
- for (let t of e.syncHooks) n.add(t.store);
36
- let r = [];
37
- for (let e of n) r.push(e.subscribe(t));
38
- return () => {
39
- for (let e of r) e();
40
- };
41
- }), (0, o.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
1
+ import { __commonJSMin as e } from "./index2.js";
2
+ import { require_builtin_esm_external_require_react as t } from "./index255.js";
3
+ import { require_shim as n } from "./index258.js";
4
+ //#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
5
+ var r = /* @__PURE__ */ e(((e) => {
6
+ var r = t(), i = n();
7
+ function a(e, t) {
8
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
42
9
  }
43
- });
44
- function d(e, t, n, i, a) {
45
- let o = r();
46
- if (!o) return u(e, t, n, i, a);
47
- let s = o.syncIndex;
48
- o.syncIndex += 1;
49
- let c;
50
- return o.didInitialize ? (c = o.syncHooks[s], (c.store !== e || c.selector !== t || !Object.is(c.a1, n) || !Object.is(c.a2, i) || !Object.is(c.a3, a)) && (c.store !== e && (o.didChangeStore = !0), c.store = e, c.selector = t, c.a1 = n, c.a2 = i, c.a3 = a, c.value = t(e.getSnapshot(), n, i, a))) : (c = {
51
- store: e,
52
- selector: t,
53
- a1: n,
54
- a2: i,
55
- a3: a,
56
- value: t(e.getSnapshot(), n, i, a)
57
- }, o.syncHooks.push(c)), c.value;
58
- }
59
- function f(e, t, n, r, i) {
60
- return (0, s.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
61
- }
10
+ var o = typeof Object.is == "function" ? Object.is : a, s = i.useSyncExternalStore, c = r.useRef, l = r.useEffect, u = r.useMemo, d = r.useDebugValue;
11
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
12
+ var a = c(null);
13
+ if (a.current === null) {
14
+ var f = {
15
+ hasValue: !1,
16
+ value: null
17
+ };
18
+ a.current = f;
19
+ } else f = a.current;
20
+ a = u(function() {
21
+ function e(e) {
22
+ if (!a) {
23
+ if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
24
+ var t = f.value;
25
+ if (i(t, e)) return c = t;
26
+ }
27
+ return c = e;
28
+ }
29
+ if (t = c, o(s, e)) return t;
30
+ var n = r(e);
31
+ return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
32
+ }
33
+ var a = !1, s, c, l = n === void 0 ? null : n;
34
+ return [function() {
35
+ return e(t());
36
+ }, l === null ? void 0 : function() {
37
+ return e(l());
38
+ }];
39
+ }, [
40
+ t,
41
+ n,
42
+ r,
43
+ i
44
+ ]);
45
+ var p = s(e, a[0], a[1]);
46
+ return l(function() {
47
+ f.hasValue = !0, f.value = p;
48
+ }, [p]), d(p), p;
49
+ };
50
+ }));
62
51
  //#endregion
63
- export { l as useStore };
52
+ export default r();
53
+ export { r as require_with_selector_production };
64
54
 
65
55
  //# sourceMappingURL=index259.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index259.js","names":["React","useSyncExternalStore","useSyncExternalStoreWithSelector"],"sources":["../../../node_modules/@base-ui/utils/store/useStore.mjs"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;sBAUM,IADgC,EAAsB,EACD,IAAI,IAAe;AAC9E,SAAgB,EAAS,GAAO,GAAU,GAAI,GAAI,GAAI;CACpD,OAAO,EAAuB,GAAO,GAAU,GAAI,GAAI,CAAE;AAC3D;AACA,SAAS,EAAY,GAAO,GAAU,GAAI,GAAI,GAAI;CAChD,IAAM,IAAeA,EAAM,kBAAkB,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE,GAAG;EAAC;EAAO;EAAU;EAAI;EAAI;CAAE,CAAC;CACrH,QAAA,GAAOC,EAAAA,qBAAAA,CAAqB,EAAM,WAAW,GAAc,CAAY;AACzE;AACA,EAAS;CACP,OAAO,GAAU;EAEf,AADA,EAAS,YAAY,GAChB,EAAS,kBACZ,EAAS,WAAW,GACpB,EAAS,YAAY,CAAC,GACtB,EAAS,iBAAiB,IAC1B,EAAS,oBAAoB;GAC3B,IAAI,IAAY;GAChB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,UAAU,QAAQ,KAAK,GAAG;IACrD,IAAM,IAAO,EAAS,UAAU,IAC1B,IAAQ,EAAK,SAAS,EAAK,MAAM,OAAO,EAAK,IAAI,EAAK,IAAI,EAAK,EAAE;IACvE,AAAK,OAAO,GAAG,EAAK,OAAO,CAAK,MAC9B,IAAY,IACZ,EAAK,QAAQ;GAEjB;GAIA,OAHI,MACF,EAAS,YAAY,IAEhB,EAAS;EAClB;CAEJ;CACA,MAAM,GAAU;EACd,AAAI,EAAS,UAAU,SAAS,MAC1B,EAAS,mBACX,EAAS,iBAAiB,IAC1B,EAAS,aAAY,MAAiB;GACpC,IAAM,oBAAS,IAAI,IAAI;GACvB,KAAK,IAAM,KAAQ,EAAS,WAC1B,EAAO,IAAI,EAAK,KAAK;GAEvB,IAAM,IAAe,CAAC;GACtB,KAAK,IAAM,KAAS,GAClB,EAAa,KAAK,EAAM,UAAU,CAAa,CAAC;GAElD,aAAa;IACX,KAAK,IAAM,KAAe,GACxB,EAAY;GAEhB;EACF,KAGF,GAAA,EAAA,qBAAA,CAAqB,EAAS,WAAW,EAAS,aAAa,EAAS,WAAW;CAEvF;AACF,CAAC;AACD,SAAS,EAAa,GAAO,GAAU,GAAI,GAAI,GAAI;CACjD,IAAM,IAAW,EAAY;CAC7B,IAAI,CAAC,GAEH,OAAO,EAAY,GAAO,GAAU,GAAI,GAAI,CAAE;CAEhD,IAAM,IAAQ,EAAS;CACvB,EAAS,aAAa;CACtB,IAAI;CAyBJ,OAxBK,EAAS,iBAWZ,IAAO,EAAS,UAAU,KACtB,EAAK,UAAU,KAAS,EAAK,aAAa,KAAY,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,KAAK,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,KAAK,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,OAChI,EAAK,UAAU,MACjB,EAAS,iBAAiB,KAE5B,EAAK,QAAQ,GACb,EAAK,WAAW,GAChB,EAAK,KAAK,GACV,EAAK,KAAK,GACV,EAAK,KAAK,GACV,EAAK,QAAQ,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE,OApBvD,IAAO;EACL;EACA;EACA;EACA;EACA;EACA,OAAO,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE;CACjD,GACA,EAAS,UAAU,KAAK,CAAI,IAevB,EAAK;AACd;AACA,SAAS,EAAe,GAAO,GAAU,GAAI,GAAI,GAAI;CACnD,QAAA,GAAOC,EAAAA,iCAAAA,CAAiC,EAAM,WAAW,EAAM,aAAa,EAAM,cAAa,MAAS,EAAS,GAAO,GAAI,GAAI,CAAE,CAAC;AACrI"}
1
+ {"version":3,"file":"index259.js","names":["require_with_selector_production","React","require_builtin_esm_external_require_react","shim","require_shim","is","x","y","objectIs","useSyncExternalStore","useRef","useEffect","useMemo","useDebugValue","instRef","inst","memoizedSelector","hasMemo","nextSnapshot","selector","isEqual","currentSelection","memoizedSelection","memoizedSnapshot","nextSelection","maybeGetServerSnapshot","getServerSnapshot","getSnapshot","value","subscribe"],"sources":["../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n"],"ignoreList":[0],"mappings":";;;;;CAWA,IAAIC,IAAAC,EAAA,GACFC,IAAAC,EAAA;CACF,SAASC,EAAG,GAAG,GAAG;EAChB,OAAQC,MAAMC,MAAYD,MAAN,KAAW,IAAIA,KAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;CACxE;CACA,IAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,GAC3DI,IAAuBN,EAAK,sBAC5BO,IAAST,EAAM,QACfU,IAAYV,EAAM,WAClBW,IAAUX,EAAM,SAChBY,IAAgBZ,EAAM;CACxB,EAAQ,mCAAmC,SACzC,GACA,GACA,GACA,GACA,GACA;EACA,IAAIa,IAAUJ,EAAO,IAAI;EACzB,IAAaI,EAAQ,YAAjB,MAA0B;GAC5B,IAAIC,IAAO;IAAE,UAAU,CAAC;IAAG,OAAO;GAAK;GACvC,EAAQ,UAAUA;EACpB,OAAO,IAAOD,EAAQ;EACtB,IAAUF,EACR,WAAY;GACV,SAASI,EAAiB,GAAc;IACtC,IAAI,CAACC,GAAS;KAIZ,IAHA,IAAU,CAAC,GACX,IAAmBC,GACnB,IAAeC,EAASD,CAAY,GACrBE,MAAX,KAAK,KAAiBL,EAAK,UAAU;MACvC,IAAIM,IAAmBN,EAAK;MAC5B,IAAIK,EAAQC,GAAkBH,CAAY,GACxC,OAAQ,IAAoBG;KAChC;KACA,OAAQ,IAAoBH;IAC9B;IAEA,IADA,IAAmBI,GACfd,EAASe,GAAkBL,CAAY,GAAG,OAAOG;IACrD,IAAIG,IAAgBL,EAASD,CAAY;IAIzC,OAHeE,MAAX,KAAK,KAAiBA,EAAQC,GAAkBG,CAAa,KACvD,IAAmBN,GAAeG,MAC5C,IAAmBH,GACX,IAAoBM;GAC9B;GACA,IAAIP,IAAU,CAAC,GACbM,GACAD,GACAG,IACaC,MAAX,KAAK,IAA0B,OAAOA;GAC1C,OAAO,CACL,WAAY;IACV,OAAOV,EAAiBW,EAAY,CAAC;GACvC,GACSF,MAAT,OACI,KAAK,IACL,WAAY;IACV,OAAOT,EAAiBS,EAAuB,CAAC;GAClD,CACN;EACF,GACA;GAACE;GAAaD;GAAmBP;GAAUC;EAAO,CACpD;EACA,IAAIQ,IAAQnB,EAAqBoB,GAAWf,EAAQ,IAAIA,EAAQ,EAAE;EASlE,OARAH,EACE,WAAY;GAEV,AADA,EAAK,WAAW,CAAC,GACjB,EAAK,QAAQiB;EACf,GACA,CAACA,CAAK,CACR,GACAf,EAAce,CAAK,GACZA;CACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"index26.js","names":[],"sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * **You don't need date-fns\\***:\n *\n * Temporal has a built-in `add` method on all its classes:\n *\n * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)\n * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)\n * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)\n * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)\n * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)\n * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)\n *\n * \\* **Not really**, see: https://date-fns.org/you-dont-need-date-fns\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n *\n * @example\n * // Using Temporal:\n * // Add 10 days to 1 September 2014:\n * Temporal.PlainDate.from(\"2014-09-01\").add({ days: 10 }).toString();\n * //=> \"2014-09-11\"\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"x_google_ignoreList":[0],"mappings":";;;AAgDA,SAAgB,EAAQ,GAAM,GAAQ,GAAS;CAC7C,IAAM,IAAQ,EAAO,GAAM,GAAS,EAAE;CAOtC,OANI,MAAM,CAAM,IAAU,EAAc,GAAS,MAAM,GAAM,GAAG,KAG3D,KAEL,EAAM,QAAQ,EAAM,QAAQ,IAAI,CAAM,GAFlB;AAItB"}
1
+ {"version":3,"file":"index26.js","names":["toDate","addDays","_date","date","options","amount","constructFrom"],"sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * **You don't need date-fns\\***:\n *\n * Temporal has a built-in `add` method on all its classes:\n *\n * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)\n * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)\n * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)\n * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)\n * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)\n * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)\n *\n * \\* **Not really**, see: https://date-fns.org/you-dont-need-date-fns\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n *\n * @example\n * // Using Temporal:\n * // Add 10 days to 1 September 2014:\n * Temporal.PlainDate.from(\"2014-09-01\").add({ days: 10 }).toString();\n * //=> \"2014-09-11\"\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"ignoreList":[0],"mappings":";;;AAgDA,SAAgBC,EAAQ,GAAM,GAAQ,GAAS;CAC7C,IAAMC,IAAQF,EAAOG,GAAMC,GAAS,EAAE;CAOtC,OANI,MAAMC,CAAM,IAAUC,EAAcF,GAAS,MAAMD,GAAM,GAAG,KAG3DE,KAELH,EAAM,QAAQA,EAAM,QAAQ,IAAIG,CAAM,GAFlBH;AAItB"}
package/dist/index260.js CHANGED
@@ -1,46 +1,57 @@
1
- import { useStore as e } from "./index259.js";
2
- //#region ../../node_modules/@base-ui/utils/store/Store.mjs
3
- var t = class {
4
- constructor(e) {
5
- this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
6
- }
7
- subscribe = (e) => (this.listeners.add(e), () => {
8
- this.listeners.delete(e);
9
- });
10
- getSnapshot = () => this.state;
11
- setState(e) {
12
- if (this.state === e) return;
13
- this.state = e, this.updateTick += 1;
14
- let t = this.updateTick;
15
- for (let n of this.listeners) {
16
- if (t !== this.updateTick) return;
17
- n(e);
1
+ import { __commonJSMin as e } from "./index2.js";
2
+ import { require_builtin_esm_external_require_react as t } from "./index255.js";
3
+ import { require_shim as n } from "./index258.js";
4
+ //#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
5
+ var r = /* @__PURE__ */ e(((e) => {
6
+ process.env.NODE_ENV !== "production" && (function() {
7
+ function r(e, t) {
8
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
18
9
  }
19
- }
20
- update(e) {
21
- for (let t in e) if (!Object.is(this.state[t], e[t])) {
22
- this.setState({
23
- ...this.state,
24
- ...e
25
- });
26
- return;
27
- }
28
- }
29
- set(e, t) {
30
- Object.is(this.state[e], t) || this.setState({
31
- ...this.state,
32
- [e]: t
33
- });
34
- }
35
- notifyAll() {
36
- let e = { ...this.state };
37
- this.setState(e);
38
- }
39
- use(t, n, r, i) {
40
- return e(this, t, n, r, i);
41
- }
42
- };
10
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
11
+ var i = t(), a = n(), o = typeof Object.is == "function" ? Object.is : r, s = a.useSyncExternalStore, c = i.useRef, l = i.useEffect, u = i.useMemo, d = i.useDebugValue;
12
+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
13
+ var a = c(null);
14
+ if (a.current === null) {
15
+ var f = {
16
+ hasValue: !1,
17
+ value: null
18
+ };
19
+ a.current = f;
20
+ } else f = a.current;
21
+ a = u(function() {
22
+ function e(e) {
23
+ if (!a) {
24
+ if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
25
+ var t = f.value;
26
+ if (i(t, e)) return c = t;
27
+ }
28
+ return c = e;
29
+ }
30
+ if (t = c, o(s, e)) return t;
31
+ var n = r(e);
32
+ return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
33
+ }
34
+ var a = !1, s, c, l = n === void 0 ? null : n;
35
+ return [function() {
36
+ return e(t());
37
+ }, l === null ? void 0 : function() {
38
+ return e(l());
39
+ }];
40
+ }, [
41
+ t,
42
+ n,
43
+ r,
44
+ i
45
+ ]);
46
+ var p = s(e, a[0], a[1]);
47
+ return l(function() {
48
+ f.hasValue = !0, f.value = p;
49
+ }, [p]), d(p), p;
50
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
51
+ })();
52
+ }));
43
53
  //#endregion
44
- export { t as Store };
54
+ export default r();
55
+ export { r as require_with_selector_development };
45
56
 
46
57
  //# sourceMappingURL=index260.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index260.js","names":[],"sources":["../../../node_modules/@base-ui/utils/store/Store.mjs"],"sourcesContent":["import { useStore } from \"./useStore.mjs\";\n/**\n * A data store implementation that allows subscribing to state changes and updating the state.\n * It uses an observer pattern to notify subscribers when the state changes.\n */\nexport class Store {\n /**\n * The current state of the store.\n * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.\n * To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).\n * The values can be used directly (to avoid subscribing to the store) in effects or event handlers.\n *\n * Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.\n */\n\n // Internal state to handle recursive `setState()` calls\n\n constructor(state) {\n this.state = state;\n this.listeners = new Set();\n this.updateTick = 0;\n }\n\n /**\n * Registers a listener that will be called whenever the store's state changes.\n *\n * @param fn The listener function to be called on state changes.\n * @returns A function to unsubscribe the listener.\n */\n subscribe = fn => {\n this.listeners.add(fn);\n return () => {\n this.listeners.delete(fn);\n };\n };\n\n /**\n * Returns the current state of the store.\n */\n getSnapshot = () => {\n return this.state;\n };\n\n /**\n * Updates the entire store's state and notifies all registered listeners.\n *\n * @param newState The new state to set for the store.\n */\n setState(newState) {\n if (this.state === newState) {\n return;\n }\n this.state = newState;\n this.updateTick += 1;\n const currentTick = this.updateTick;\n for (const listener of this.listeners) {\n if (currentTick !== this.updateTick) {\n // If the tick has changed, a recursive `setState` call has been made,\n // and it has already notified all listeners.\n return;\n }\n listener(newState);\n }\n }\n\n /**\n * Merges the provided changes into the current state and notifies listeners if there are changes.\n *\n * @param changes An object containing the changes to apply to the current state.\n */\n update(changes) {\n for (const key in changes) {\n if (!Object.is(this.state[key], changes[key])) {\n this.setState({\n ...this.state,\n ...changes\n });\n return;\n }\n }\n }\n\n /**\n * Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.\n *\n * @param key The key in the store's state to update.\n * @param value The new value to set for the specified key.\n */\n set(key, value) {\n if (!Object.is(this.state[key], value)) {\n this.setState({\n ...this.state,\n [key]: value\n });\n }\n }\n\n /**\n * Gives the state a new reference and updates all registered listeners.\n */\n notifyAll() {\n const newState = {\n ...this.state\n };\n this.setState(newState);\n }\n use(selector, a1, a2, a3) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStore(this, selector, a1, a2, a3);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAKA,IAAa,IAAb,MAAmB;CAYjB,YAAY,GAAO;EAGjB,AAFA,KAAK,QAAQ,GACb,KAAK,4BAAY,IAAI,IAAI,GACzB,KAAK,aAAa;CACpB;CAQA,aAAY,OACV,KAAK,UAAU,IAAI,CAAE,SACR;EACX,KAAK,UAAU,OAAO,CAAE;CAC1B;CAMF,oBACS,KAAK;CAQd,SAAS,GAAU;EACjB,IAAI,KAAK,UAAU,GACjB;EAGF,AADA,KAAK,QAAQ,GACb,KAAK,cAAc;EACnB,IAAM,IAAc,KAAK;EACzB,KAAK,IAAM,KAAY,KAAK,WAAW;GACrC,IAAI,MAAgB,KAAK,YAGvB;GAEF,EAAS,CAAQ;EACnB;CACF;CAOA,OAAO,GAAS;EACd,KAAK,IAAM,KAAO,GAChB,IAAI,CAAC,OAAO,GAAG,KAAK,MAAM,IAAM,EAAQ,EAAI,GAAG;GAC7C,KAAK,SAAS;IACZ,GAAG,KAAK;IACR,GAAG;GACL,CAAC;GACD;EACF;CAEJ;CAQA,IAAI,GAAK,GAAO;EACd,AAAK,OAAO,GAAG,KAAK,MAAM,IAAM,CAAK,KACnC,KAAK,SAAS;GACZ,GAAG,KAAK;IACP,IAAM;EACT,CAAC;CAEL;CAKA,YAAY;EACV,IAAM,IAAW,EACf,GAAG,KAAK,MACV;EACA,KAAK,SAAS,CAAQ;CACxB;CACA,IAAI,GAAU,GAAI,GAAI,GAAI;EAExB,OAAO,EAAS,MAAM,GAAU,GAAI,GAAI,CAAE;CAC5C;AACF"}
1
+ {"version":3,"file":"index260.js","names":["require_with_selector_development","is","x","y","React","require_builtin_esm_external_require_react","shim","require_shim","objectIs","useSyncExternalStore","useRef","useEffect","useMemo","useDebugValue","instRef","inst","memoizedSelector","hasMemo","nextSnapshot","selector","isEqual","currentSelection","memoizedSelection","memoizedSnapshot","nextSelection","maybeGetServerSnapshot","getServerSnapshot","getSnapshot","value","subscribe"],"sources":["../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"ignoreList":[0],"mappings":";;;;;CAWA,AAAA,QAAA,IAAA,aAAA,iBACG,WAAY;EACX,SAASC,EAAG,GAAG,GAAG;GAChB,OAAQC,MAAMC,MAAYD,MAAN,KAAW,IAAIA,KAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;EACxE;EACA,AAAgB,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,+BADxC,cAEA,+BAA+B,4BAA4B,MAAM,CAAC;EACpE,IAAIC,IAAAC,EAAA,GACFC,IAAAC,EAAA,GACAC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKP,GACzDQ,IAAuBH,EAAK,sBAC5BI,IAASN,EAAM,QACfO,IAAYP,EAAM,WAClBQ,IAAUR,EAAM,SAChBS,IAAgBT,EAAM;EAiExB,AAhEA,EAAQ,mCAAmC,SACzC,GACA,GACA,GACA,GACA,GACA;GACA,IAAIU,IAAUJ,EAAO,IAAI;GACzB,IAAaI,EAAQ,YAAjB,MAA0B;IAC5B,IAAIC,IAAO;KAAE,UAAU,CAAC;KAAG,OAAO;IAAK;IACvC,EAAQ,UAAUA;GACpB,OAAO,IAAOD,EAAQ;GACtB,IAAUF,EACR,WAAY;IACV,SAASI,EAAiB,GAAc;KACtC,IAAI,CAACC,GAAS;MAIZ,IAHA,IAAU,CAAC,GACX,IAAmBC,GACnB,IAAeC,EAASD,CAAY,GACrBE,MAAX,KAAK,KAAiBL,EAAK,UAAU;OACvC,IAAIM,IAAmBN,EAAK;OAC5B,IAAIK,EAAQC,GAAkBH,CAAY,GACxC,OAAQ,IAAoBG;MAChC;MACA,OAAQ,IAAoBH;KAC9B;KAEA,IADA,IAAmBI,GACfd,EAASe,GAAkBL,CAAY,GACzC,OAAOG;KACT,IAAIG,IAAgBL,EAASD,CAAY;KAIzC,OAHeE,MAAX,KAAK,KAAiBA,EAAQC,GAAkBG,CAAa,KACvD,IAAmBN,GAAeG,MAC5C,IAAmBH,GACX,IAAoBM;IAC9B;IACA,IAAIP,IAAU,CAAC,GACbM,GACAD,GACAG,IACaC,MAAX,KAAK,IAA0B,OAAOA;IAC1C,OAAO,CACL,WAAY;KACV,OAAOV,EAAiBW,EAAY,CAAC;IACvC,GACSF,MAAT,OACI,KAAK,IACL,WAAY;KACV,OAAOT,EAAiBS,EAAuB,CAAC;IAClD,CACN;GACF,GACA;IAACE;IAAaD;IAAmBP;IAAUC;GAAO,CACpD;GACA,IAAIQ,IAAQnB,EAAqBoB,GAAWf,EAAQ,IAAIA,EAAQ,EAAE;GASlE,OARAH,EACE,WAAY;IAEV,AADA,EAAK,WAAW,CAAC,GACjB,EAAK,QAAQiB;GACf,GACA,CAACA,CAAK,CACR,GACAf,EAAce,CAAK,GACZA;EACT,GACgB,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,8BADxC,cAEA,+BAA+B,2BAA2B,MAAM,CAAC;CACrE,EAAA,CAAG"}
package/dist/index261.js CHANGED
@@ -1,100 +1,12 @@
1
- "use client";
2
- import { NOOP as e } from "./index191.js";
3
- import { useStableCallback as t } from "./index202.js";
4
- import { useIsoLayoutEffect as n } from "./index204.js";
5
- import { useStore as r } from "./index259.js";
6
- import { Store as i } from "./index260.js";
7
- import * as a from "react";
8
- //#region ../../node_modules/@base-ui/utils/store/ReactStore.mjs
9
- var o = class extends i {
10
- constructor(e, t = {}, n) {
11
- super(e), this.context = t, this.selectors = n;
12
- }
13
- useSyncedValue(e, t) {
14
- a.useDebugValue(e);
15
- let r = this;
16
- n(() => {
17
- r.state[e] !== t && r.set(e, t);
18
- }, [
19
- r,
20
- e,
21
- t
22
- ]);
23
- }
24
- useSyncedValueWithCleanup(e, t) {
25
- let r = this;
26
- n(() => (r.state[e] !== t && r.set(e, t), () => {
27
- r.set(e, void 0);
28
- }), [
29
- r,
30
- e,
31
- t
32
- ]);
33
- }
34
- useSyncedValues(e) {
35
- let t = this;
36
- if (process.env.NODE_ENV !== "production") {
37
- a.useDebugValue(e, (e) => Object.keys(e));
38
- let t = a.useRef(Object.keys(e)).current, n = Object.keys(e);
39
- (t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
40
- }
41
- let r = Object.values(e);
42
- n(() => {
43
- t.update(e);
44
- }, [t, ...r]);
45
- }
46
- useControlledProp(e, t) {
47
- a.useDebugValue(e);
48
- let r = this, i = t !== void 0;
49
- if (n(() => {
50
- i && !Object.is(r.state[e], t) && r.setState({
51
- ...r.state,
52
- [e]: t
53
- });
54
- }, [
55
- r,
56
- e,
57
- t,
58
- i
59
- ]), process.env.NODE_ENV !== "production") {
60
- let t = this.controlledValues ??= /* @__PURE__ */ new Map();
61
- t.has(e) || t.set(e, i);
62
- let n = t.get(e);
63
- n !== void 0 && n !== i && console.error(`A component is changing the ${i ? "" : "un"}controlled state of ${e.toString()} to be ${i ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
64
- }
65
- }
66
- select(e, t, n, r) {
67
- let i = this.selectors[e];
68
- return i(this.state, t, n, r);
69
- }
70
- useState(e, t, n, i) {
71
- return a.useDebugValue(e), r(this, this.selectors[e], t, n, i);
72
- }
73
- useContextCallback(n, r) {
74
- a.useDebugValue(n);
75
- let i = t(r ?? e);
76
- this.context[n] = i;
77
- }
78
- useStateSetter(e) {
79
- let t = a.useRef(void 0);
80
- return t.current === void 0 && (t.current = (t) => {
81
- this.set(e, t);
82
- }), t.current;
83
- }
84
- observe(e, t) {
85
- let n;
86
- n = typeof e == "function" ? e : this.selectors[e];
87
- let r = n(this.state);
88
- return t(r, r, this), this.subscribe((e) => {
89
- let i = n(e);
90
- if (!Object.is(r, i)) {
91
- let e = r;
92
- r = i, t(i, e, this);
93
- }
94
- });
95
- }
96
- };
1
+ import { __commonJSMin as e } from "./index2.js";
2
+ import { require_with_selector_production as t } from "./index259.js";
3
+ import { require_with_selector_development as n } from "./index260.js";
4
+ //#region ../../node_modules/use-sync-external-store/shim/with-selector.js
5
+ var r = /* @__PURE__ */ e(((e, r) => {
6
+ r.exports = process.env.NODE_ENV === "production" ? t() : n();
7
+ }));
97
8
  //#endregion
98
- export { o as ReactStore };
9
+ export default r();
10
+ export { r as require_with_selector };
99
11
 
100
12
  //# sourceMappingURL=index261.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index261.js","names":["React"],"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}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAcA,IAAa,IAAb,cAAgC,EAAM;CAQpC,YAAY,GAAO,IAAU,CAAC,GAAG,GAAW;EAG1C,AAFA,MAAM,CAAK,GACX,KAAK,UAAU,GACf,KAAK,YAAY;CACnB;CAYA,eAAe,GAAK,GAAO;EACzB,EAAM,cAAc,CAAG;EAEvB,IAAM,IAAQ;EACd,QAAyB;GACvB,AAAI,EAAM,MAAM,OAAS,KACvB,EAAM,IAAI,GAAK,CAAK;EAExB,GAAG;GAAC;GAAO;GAAK;EAAK,CAAC;CACxB;CASA,0BAA0B,GAAK,GAAO;EAEpC,IAAM,IAAQ;EACd,SACM,EAAM,MAAM,OAAS,KACvB,EAAM,IAAI,GAAK,CAAK,SAET;GACX,EAAM,IAAI,GAAK,KAAA,CAAS;EAC1B,IACC;GAAC;GAAO;GAAK;EAAK,CAAC;CACxB;CAQA,gBAAgB,GAAW;EAEzB,IAAM,IAAQ;EACd,IAAA,QAAA,IAAA,aAA6B,cAAc;GAEzC,EAAM,cAAc,IAAW,MAAK,OAAO,KAAK,CAAC,CAAC;GAClD,IAAM,IAAOA,EAAM,OAAO,OAAO,KAAK,CAAS,CAAC,CAAC,CAAC,SAC5C,IAAW,OAAO,KAAK,CAAS;GACtC,CAAI,EAAK,WAAW,EAAS,UAAU,EAAK,MAAM,GAAK,MAAU,MAAQ,EAAS,EAAM,MACtF,QAAQ,MAAM,+FAA+F;EAEjH;EACA,IAAM,IAAe,OAAO,OAAO,CAAS;EAC5C,QAAyB;GACvB,EAAM,OAAO,CAAS;EAExB,GAAG,CAAC,GAAO,GAAG,CAAY,CAAC;CAC7B;CAMA,kBAAkB,GAAK,GAAY;EACjC,EAAM,cAAc,CAAG;EAEvB,IAAM,IAAQ,MACR,IAAe,MAAe,KAAA;EAUpC,IATA,QAAyB;GACvB,AAAI,KAAgB,CAAC,OAAO,GAAG,EAAM,MAAM,IAAM,CAAU,KAEzD,EAAM,SAAS;IACb,GAAG,EAAM;KACR,IAAM;GACT,CAAC;EAEL,GAAG;GAAC;GAAO;GAAK;GAAY;EAAY,CAAC,GACzC,QAAA,IAAA,aAA6B,cAAc;GAEzC,IAAM,IAAQ,KAAK,qCAAqB,IAAI,IAAI;GAChD,AAAK,EAAM,IAAI,CAAG,KAChB,EAAM,IAAI,GAAK,CAAY;GAE7B,IAAM,IAAuB,EAAM,IAAI,CAAG;GAC1C,AAAI,MAAyB,KAAA,KAAa,MAAyB,KACjE,QAAQ,MAAM,+BAA+B,IAAe,KAAK,KAAK,sBAAsB,EAAI,SAAS,EAAE,SAAS,IAAe,OAAO,GAAG,wFAAwF;EAEzO;CACF;CAOA,OAAO,GAAK,GAAI,GAAI,GAAI;EACtB,IAAM,IAAW,KAAK,UAAU;EAChC,OAAO,EAAS,KAAK,OAAO,GAAI,GAAI,CAAE;CACxC;CAUA,SAAS,GAAK,GAAI,GAAI,GAAI;EAExB,OADA,EAAM,cAAc,CAAG,GAChB,EAAS,MAAM,KAAK,UAAU,IAAM,GAAI,GAAI,CAAE;CACvD;CASA,mBAAmB,GAAK,GAAI;EAC1B,EAAM,cAAc,CAAG;EACvB,IAAM,IAAiB,EAAkB,KAAM,CAAI;EACnD,KAAK,QAAQ,KAAO;CACtB;CAQA,eAAe,GAAK;EAClB,IAAM,IAAMA,EAAM,OAAO,KAAA,CAAS;EAMlC,OALI,EAAI,YAAY,KAAA,MAClB,EAAI,WAAU,MAAS;GACrB,KAAK,IAAI,GAAK,CAAK;EACrB,IAEK,EAAI;CACb;CASA,QAAQ,GAAU,GAAU;EAC1B,IAAI;EACJ,AAGE,IAHE,OAAO,KAAa,aACX,IAEA,KAAK,UAAU;EAE5B,IAAI,IAAY,EAAS,KAAK,KAAK;EAEnC,OADA,EAAS,GAAW,GAAW,IAAI,GAC5B,KAAK,WAAU,MAAa;GACjC,IAAM,IAAY,EAAS,CAAS;GACpC,IAAI,CAAC,OAAO,GAAG,GAAW,CAAS,GAAG;IACpC,IAAM,IAAW;IAEjB,AADA,IAAY,GACZ,EAAS,GAAW,GAAU,IAAI;GACpC;EACF,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"index261.js","names":["require_with_selector","module","require_with_selector_production","require_with_selector_development"],"sources":["../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"ignoreList":[0],"mappings":";;;;;CAEA,AAGEC,EAAO,UAHT,QAAA,IAAA,aAA6B,eACpBC,EAAA,IAEAC,EAAA"}
package/dist/index262.js CHANGED
@@ -1,52 +1,36 @@
1
- import { isClickLikeEvent as e } from "./index223.js";
2
- import { createEventEmitter as t } from "./index242.js";
3
- import { ReactStore as n } from "./index261.js";
4
- //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
5
- var r = {
6
- open: (e) => e.open,
7
- transitionStatus: (e) => e.transitionStatus,
8
- domReferenceElement: (e) => e.domReferenceElement,
9
- referenceElement: (e) => e.positionReference ?? e.referenceElement,
10
- floatingElement: (e) => e.floatingElement,
11
- floatingId: (e) => e.floatingId
12
- }, i = class extends n {
13
- constructor(e) {
14
- let { syncOnly: n, nested: i, onOpenChange: a, triggerElements: o, ...s } = e;
15
- super({
16
- ...s,
17
- positionReference: s.referenceElement,
18
- domReferenceElement: s.referenceElement
19
- }, {
20
- onOpenChange: a,
21
- dataRef: { current: {} },
22
- events: t(),
23
- nested: i,
24
- triggerElements: o
25
- }, r), this.syncOnly = n;
26
- }
27
- syncOpenEvent = (t, n) => {
28
- (!t || !this.state.open || n != null && e(n)) && (this.context.dataRef.current.openEvent = t ? n : void 0);
29
- };
30
- dispatchOpenChange = (e, t) => {
31
- this.syncOpenEvent(e, t.event);
32
- let n = {
33
- open: e,
34
- reason: t.reason,
35
- nativeEvent: t.event,
36
- nested: this.context.nested,
37
- triggerElement: t.trigger
38
- };
39
- this.context.events.emit("openchange", n);
40
- };
41
- setOpen = (e, t) => {
42
- if (this.syncOnly) {
43
- this.context.onOpenChange?.(e, t);
44
- return;
1
+ import { useRefWithInit as e } from "./index185.js";
2
+ import * as t from "react";
3
+ //#region ../../node_modules/@base-ui/utils/fastHooks.mjs
4
+ var n = [], r = void 0;
5
+ function i() {
6
+ return r;
7
+ }
8
+ function a(e) {
9
+ n.push(e);
10
+ }
11
+ function o(t) {
12
+ let i = (i, a) => {
13
+ let o = e(c).current, s;
14
+ try {
15
+ r = o;
16
+ for (let e of n) e.before(o);
17
+ s = t(i, a);
18
+ for (let e of n) e.after(o);
19
+ o.didInitialize = !0;
20
+ } finally {
21
+ r = void 0;
45
22
  }
46
- this.dispatchOpenChange(e, t), this.context.onOpenChange?.(e, t);
23
+ return s;
47
24
  };
48
- };
25
+ return i.displayName = t.displayName || t.name, i;
26
+ }
27
+ function s(e) {
28
+ return /*#__PURE__*/ t.forwardRef(o(e));
29
+ }
30
+ function c() {
31
+ return { didInitialize: !1 };
32
+ }
49
33
  //#endregion
50
- export { i as FloatingRootStore };
34
+ export { o as fastComponent, s as fastComponentRef, i as getInstance, a as register };
51
35
 
52
36
  //# sourceMappingURL=index262.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index262.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs"],"sourcesContent":["import { ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.mjs\";\nimport { isClickLikeEvent } from \"../utils.mjs\";\nconst selectors = {\n open: state => state.open,\n transitionStatus: state => state.transitionStatus,\n domReferenceElement: state => state.domReferenceElement,\n referenceElement: state => state.positionReference ?? state.referenceElement,\n floatingElement: state => state.floatingElement,\n floatingId: state => state.floatingId\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,IAAM,IAAY;CAChB,OAAM,MAAS,EAAM;CACrB,mBAAkB,MAAS,EAAM;CACjC,sBAAqB,MAAS,EAAM;CACpC,mBAAkB,MAAS,EAAM,qBAAqB,EAAM;CAC5D,kBAAiB,MAAS,EAAM;CAChC,aAAY,MAAS,EAAM;AAC7B,GACa,IAAb,cAAuC,EAAW;CAChD,YAAY,GAAS;EACnB,IAAM,EACJ,aACA,WACA,iBACA,oBACA,GAAG,MACD;EAcJ,AAbA,MAAM;GACJ,GAAG;GACH,mBAAmB,EAAa;GAChC,qBAAqB,EAAa;EACpC,GAAG;GACD;GACA,SAAS,EACP,SAAS,CAAC,EACZ;GACA,QAAQ,EAAmB;GAC3B;GACA;EACF,GAAG,CAAS,GACZ,KAAK,WAAW;CAClB;CAKA,iBAAiB,GAAS,MAAU;EAClC,CAAI,CAAC,KAAW,CAAC,KAAK,MAAM,QAG5B,KAAS,QAAQ,EAAiB,CAAK,OACrC,KAAK,QAAQ,QAAQ,QAAQ,YAAY,IAAU,IAAQ,KAAA;CAE/D;CAKA,sBAAsB,GAAS,MAAiB;EAC9C,KAAK,cAAc,GAAS,EAAa,KAAK;EAC9C,IAAM,IAAU;GACd,MAAM;GACN,QAAQ,EAAa;GACrB,aAAa,EAAa;GAC1B,QAAQ,KAAK,QAAQ;GACrB,gBAAgB,EAAa;EAC/B;EACA,KAAK,QAAQ,OAAO,KAAK,cAAc,CAAO;CAChD;CAQA,WAAW,GAAS,MAAiB;EACnC,IAAI,KAAK,UAAU;GACjB,KAAK,QAAQ,eAAe,GAAS,CAAY;GACjD;EACF;EAEA,AADA,KAAK,mBAAmB,GAAS,CAAY,GAC7C,KAAK,QAAQ,eAAe,GAAS,CAAY;CACnD;AACF"}
1
+ {"version":3,"file":"index262.js","names":["React$1","hooks","currentInstance","getInstance","register","hook","fastComponent","FastComponent","instance","useRefWithInit","createInstance","result","fn","props","forwardedRef","fastComponentRef"],"sources":["../../../node_modules/@base-ui/utils/fastHooks.mjs"],"sourcesContent":["import * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nconst hooks = [];\nlet currentInstance = undefined;\nexport function getInstance() {\n return currentInstance;\n}\nexport function setInstance(instance) {\n currentInstance = instance;\n}\nexport function register(hook) {\n hooks.push(hook);\n}\n\n/**\n * Wraps a component function to enable performance optimizations for internal hooks.\n *\n * **Performance Optimization:**\n * Components wrapped with `fastComponent` have access to a shared \"instance\" context that enables\n * specialized hook implementations to batch operations and reduce overhead. The wrapper creates a\n * stable instance object that persists across renders, sets it as the current context, calls\n * registered hooks before and after rendering, then clears the context. The primary benefit is\n * with `useStore`, where multiple store subscriptions within the same component are collapsed into\n * a single `useSyncExternalStore` subscription per store, significantly reducing re-render overhead.\n * This optimization is only active on React 19+; on earlier versions `useStore` falls back to a\n * separate subscription per call.\n *\n * **Requirements:**\n * - The component function should follow standard React component patterns\n * - `useStore` calls must keep a stable order and count across renders, as batched hooks are\n * matched by call index\n * - Do not rely on the instance context outside of specialized hooks\n *\n * @param fn - The component function to wrap\n * @returns A wrapped component with the same signature as the input function\n *\n * @example\n * ```tsx\n * // Wrapping a component to enable optimized useStore batching\n * export const TooltipRoot = fastComponent(function TooltipRoot(props) {\n * // These useStore calls share a single subscription\n * const open = useStore(store, (state) => state.open);\n * const disabled = useStore(store, (state) => state.disabled);\n * const value = useStore(store, (state) => state.value);\n * // ...\n * });\n * ```\n */\nexport function fastComponent(fn) {\n const FastComponent = (props, forwardedRef) => {\n const instance = useRefWithInit(createInstance).current;\n let result;\n try {\n currentInstance = instance;\n for (const hook of hooks) {\n hook.before(instance);\n }\n result = fn(props, forwardedRef);\n for (const hook of hooks) {\n hook.after(instance);\n }\n instance.didInitialize = true;\n } finally {\n currentInstance = undefined;\n }\n return result;\n };\n FastComponent.displayName = fn.displayName || fn.name;\n return FastComponent;\n}\n\n/**\n * Wraps a component function with ref forwarding to enable performance optimizations for internal hooks.\n *\n * This is a convenience wrapper that combines `fastComponent` with `React.forwardRef`, enabling\n * both performance optimizations and proper ref forwarding. See `fastComponent` for details on\n * the performance benefits.\n *\n * @param fn - The component function that accepts props and a forwarded ref\n * @returns A wrapped component with ref forwarding enabled\n *\n * @example\n * ```tsx\n * // Wrapping a component with ref forwarding and optimized hooks\n * export const TooltipTrigger = fastComponentRef(function TooltipTrigger(\n * props,\n * forwardedRef\n * ) {\n * const store = useContext(TooltipContext);\n * const open = useStore(store, (state) => state.open);\n * // ... component logic with ref\n * return <button ref={forwardedRef} {...props} />;\n * });\n * ```\n */\nexport function fastComponentRef(fn) {\n return /*#__PURE__*/React.forwardRef(fastComponent(fn));\n}\nfunction createInstance() {\n return {\n didInitialize: false\n };\n}"],"ignoreList":[0],"mappings":";;;AAEA,IAAMC,IAAQ,CAAC,GACXC,IAAkB,KAAA;AACtB,SAAgBC,IAAc;CAC5B,OAAOD;AACT;AAIA,SAAgBE,EAAS,GAAM;CAC7B,EAAM,KAAKC,CAAI;AACjB;AAoCA,SAAgBC,EAAc,GAAI;CAChC,IAAMC,KAAiB,GAAO,MAAiB;EAC7C,IAAMC,IAAWC,EAAeC,CAAc,CAAC,CAAC,SAC5CC;EACJ,IAAI;GACF,IAAkBH;GAClB,KAAK,IAAMH,KAAQJ,GACjB,EAAK,OAAOO,CAAQ;GAEtB,IAASI,EAAGC,GAAOC,CAAY;GAC/B,KAAK,IAAMT,KAAQJ,GACjB,EAAK,MAAMO,CAAQ;GAErB,EAAS,gBAAgB;EAC3B,UAAU;GACR,IAAkB,KAAA;EACpB;EACA,OAAOG;CACT;CAEA,OADA,EAAc,cAAcC,EAAG,eAAeA,EAAG,MAC1CL;AACT;AA0BA,SAAgBQ,EAAiB,GAAI;CACnC,OAAoB,gBAAM,WAAWT,EAAcM,CAAE,CAAC;AACxD;AACA,SAASF,IAAiB;CACxB,OAAO,EACL,eAAe,GACjB;AACF"}