@rpcbase/ui 0.247.0 → 0.248.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 (534) 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 +58 -4
  65. package/dist/index194.js.map +1 -1
  66. package/dist/index195.js +8 -4
  67. package/dist/index195.js.map +1 -1
  68. package/dist/index196.js +87 -8
  69. package/dist/index196.js.map +1 -1
  70. package/dist/index197.js +19 -4
  71. package/dist/index197.js.map +1 -1
  72. package/dist/index198.js +16 -4
  73. package/dist/index198.js.map +1 -1
  74. package/dist/index199.js +5 -3
  75. package/dist/index199.js.map +1 -1
  76. package/dist/index200.js +5 -10
  77. package/dist/index200.js.map +1 -1
  78. package/dist/index201.js +6 -9
  79. package/dist/index201.js.map +1 -1
  80. package/dist/index202.js +4 -9
  81. package/dist/index202.js.map +1 -1
  82. package/dist/index203.js +6 -10
  83. package/dist/index203.js.map +1 -1
  84. package/dist/index204.js +16 -10
  85. package/dist/index204.js.map +1 -1
  86. package/dist/index205.js +4 -9
  87. package/dist/index205.js.map +1 -1
  88. package/dist/index206.js +4 -6
  89. package/dist/index206.js.map +1 -1
  90. package/dist/index207.js +12 -5
  91. package/dist/index207.js.map +1 -1
  92. package/dist/index208.js +9 -4
  93. package/dist/index208.js.map +1 -1
  94. package/dist/index209.js +13 -5
  95. package/dist/index209.js.map +1 -1
  96. package/dist/index210.js +13 -6
  97. package/dist/index210.js.map +1 -1
  98. package/dist/index211.js +4 -5
  99. package/dist/index211.js.map +1 -1
  100. package/dist/index212.js +5 -16
  101. package/dist/index212.js.map +1 -1
  102. package/dist/index213.js +6 -7
  103. package/dist/index213.js.map +1 -1
  104. package/dist/index214.js +5 -10
  105. package/dist/index214.js.map +1 -1
  106. package/dist/index215.js +54 -10
  107. package/dist/index215.js.map +1 -1
  108. package/dist/index216.js +8 -21
  109. package/dist/index216.js.map +1 -1
  110. package/dist/index217.js +4 -8
  111. package/dist/index217.js.map +1 -1
  112. package/dist/index218.js +4 -9
  113. package/dist/index218.js.map +1 -1
  114. package/dist/index219.js +8 -9
  115. package/dist/index219.js.map +1 -1
  116. package/dist/index220.js +4 -4
  117. package/dist/index220.js.map +1 -1
  118. package/dist/index221.js +4 -5
  119. package/dist/index221.js.map +1 -1
  120. package/dist/index222.js +3 -16
  121. package/dist/index222.js.map +1 -1
  122. package/dist/index223.js +10 -9
  123. package/dist/index223.js.map +1 -1
  124. package/dist/index224.js +9 -18
  125. package/dist/index224.js.map +1 -1
  126. package/dist/index225.js +9 -20
  127. package/dist/index225.js.map +1 -1
  128. package/dist/index226.js +10 -12
  129. package/dist/index226.js.map +1 -1
  130. package/dist/index227.js +10 -29
  131. package/dist/index227.js.map +1 -1
  132. package/dist/index228.js +9 -12
  133. package/dist/index228.js.map +1 -1
  134. package/dist/index229.js +6 -25
  135. package/dist/index229.js.map +1 -1
  136. package/dist/index230.js +5 -5
  137. package/dist/index230.js.map +1 -1
  138. package/dist/index231.js +4 -14
  139. package/dist/index231.js.map +1 -1
  140. package/dist/index232.js +5 -68
  141. package/dist/index232.js.map +1 -1
  142. package/dist/index233.js +7 -38
  143. package/dist/index233.js.map +1 -1
  144. package/dist/index234.js +6 -14
  145. package/dist/index234.js.map +1 -1
  146. package/dist/index235.js +16 -23
  147. package/dist/index235.js.map +1 -1
  148. package/dist/index236.js +7 -111
  149. package/dist/index236.js.map +1 -1
  150. package/dist/index237.js +11 -13
  151. package/dist/index237.js.map +1 -1
  152. package/dist/index238.js +10 -4
  153. package/dist/index238.js.map +1 -1
  154. package/dist/index239.js +22 -4
  155. package/dist/index239.js.map +1 -1
  156. package/dist/index240.js +9 -5
  157. package/dist/index240.js.map +1 -1
  158. package/dist/index241.js +9 -11
  159. package/dist/index241.js.map +1 -1
  160. package/dist/index242.js +9 -19
  161. package/dist/index242.js.map +1 -1
  162. package/dist/index243.js +5 -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 +15 -278
  167. package/dist/index245.js.map +1 -1
  168. package/dist/index246.js +9 -4
  169. package/dist/index246.js.map +1 -1
  170. package/dist/index247.js +19 -28
  171. package/dist/index247.js.map +1 -1
  172. package/dist/index248.js +18 -124
  173. package/dist/index248.js.map +1 -1
  174. package/dist/index249.js +12 -63
  175. package/dist/index249.js.map +1 -1
  176. package/dist/index250.js +29 -8
  177. package/dist/index250.js.map +1 -1
  178. package/dist/index251.js +12 -15
  179. package/dist/index251.js.map +1 -1
  180. package/dist/index252.js +25 -30
  181. package/dist/index252.js.map +1 -1
  182. package/dist/index253.js +5 -69
  183. package/dist/index253.js.map +1 -1
  184. package/dist/index254.js +20 -155
  185. package/dist/index254.js.map +1 -1
  186. package/dist/index255.js +65 -31
  187. package/dist/index255.js.map +1 -1
  188. package/dist/index256.js +6 -11
  189. package/dist/index256.js.map +1 -1
  190. package/dist/index257.js +5 -49
  191. package/dist/index257.js.map +1 -1
  192. package/dist/index258.js +11 -9
  193. package/dist/index258.js.map +1 -1
  194. package/dist/index259.js +3 -11
  195. package/dist/index259.js.map +1 -1
  196. package/dist/index260.js +48 -41
  197. package/dist/index260.js.map +1 -1
  198. package/dist/index261.js +4 -98
  199. package/dist/index261.js.map +1 -1
  200. package/dist/index262.js +27 -84
  201. package/dist/index262.js.map +1 -1
  202. package/dist/index263.js +14 -103
  203. package/dist/index263.js.map +1 -1
  204. package/dist/index264.js +5 -52
  205. package/dist/index264.js.map +1 -1
  206. package/dist/index265.js +21 -11
  207. package/dist/index265.js.map +1 -1
  208. package/dist/index266.js +53 -4
  209. package/dist/index266.js.map +1 -1
  210. package/dist/index267.js +20 -37
  211. package/dist/index267.js.map +1 -1
  212. package/dist/index268.js +41 -8
  213. package/dist/index268.js.map +1 -1
  214. package/dist/index269.js +39 -3
  215. package/dist/index269.js.map +1 -1
  216. package/dist/index270.js +46 -10
  217. package/dist/index270.js.map +1 -1
  218. package/dist/index271.js +18 -133
  219. package/dist/index271.js.map +1 -1
  220. package/dist/index272.js +69 -16
  221. package/dist/index272.js.map +1 -1
  222. package/dist/index273.js +17 -15
  223. package/dist/index273.js.map +1 -1
  224. package/dist/index274.js +3 -36
  225. package/dist/index274.js.map +1 -1
  226. package/dist/index275.js +11 -20
  227. package/dist/index275.js.map +1 -1
  228. package/dist/index276.js +13 -8
  229. package/dist/index276.js.map +1 -1
  230. package/dist/index277.js +18 -24
  231. package/dist/index277.js.map +1 -1
  232. package/dist/index278.js +35 -27
  233. package/dist/index278.js.map +1 -1
  234. package/dist/index279.js +239 -16
  235. package/dist/index279.js.map +1 -1
  236. package/dist/index280.js +253 -20
  237. package/dist/index280.js.map +1 -1
  238. package/dist/index281.js +66 -64
  239. package/dist/index281.js.map +1 -1
  240. package/dist/index282.js +99 -6
  241. package/dist/index282.js.map +1 -1
  242. package/dist/index283.js +83 -5
  243. package/dist/index283.js.map +1 -1
  244. package/dist/index284.js +3 -11
  245. package/dist/index284.js.map +1 -1
  246. package/dist/index285.js +29 -3
  247. package/dist/index285.js.map +1 -1
  248. package/dist/index286.js +16 -50
  249. package/dist/index286.js.map +1 -1
  250. package/dist/index287.js +35 -4
  251. package/dist/index287.js.map +1 -1
  252. package/dist/index288.js +16 -28
  253. package/dist/index288.js.map +1 -1
  254. package/dist/index289.js +3 -16
  255. package/dist/index289.js.map +1 -1
  256. package/dist/index290.js +26 -5
  257. package/dist/index290.js.map +1 -1
  258. package/dist/index291.js +27 -20
  259. package/dist/index291.js.map +1 -1
  260. package/dist/index292.js +4 -54
  261. package/dist/index292.js.map +1 -1
  262. package/dist/index293.js +76 -18
  263. package/dist/index293.js.map +1 -1
  264. package/dist/index294.js +268 -37
  265. package/dist/index294.js.map +1 -1
  266. package/dist/index295.js +11 -39
  267. package/dist/index295.js.map +1 -1
  268. package/dist/index296.js +10 -45
  269. package/dist/index296.js.map +1 -1
  270. package/dist/index297.js +25 -20
  271. package/dist/index297.js.map +1 -1
  272. package/dist/index298.js +15 -69
  273. package/dist/index298.js.map +1 -1
  274. package/dist/index299.js +122 -14
  275. package/dist/index299.js.map +1 -1
  276. package/dist/index300.js +5 -3
  277. package/dist/index300.js.map +1 -1
  278. package/dist/index301.js +65 -11
  279. package/dist/index301.js.map +1 -1
  280. package/dist/index302.js +14 -14
  281. package/dist/index302.js.map +1 -1
  282. package/dist/index303.js +7 -18
  283. package/dist/index303.js.map +1 -1
  284. package/dist/index304.js +5 -36
  285. package/dist/index304.js.map +1 -1
  286. package/dist/index305.js +3 -239
  287. package/dist/index305.js.map +1 -1
  288. package/dist/index306.js +10 -252
  289. package/dist/index306.js.map +1 -1
  290. package/dist/index307.js +7 -68
  291. package/dist/index307.js.map +1 -1
  292. package/dist/index308.js +128 -94
  293. package/dist/index308.js.map +1 -1
  294. package/dist/index309.js +391 -75
  295. package/dist/index309.js.map +1 -1
  296. package/dist/index310.js +5 -4
  297. package/dist/index310.js.map +1 -1
  298. package/dist/index311.js +51 -28
  299. package/dist/index311.js.map +1 -1
  300. package/dist/index312.js +10 -15
  301. package/dist/index312.js.map +1 -1
  302. package/dist/index313.js +28 -35
  303. package/dist/index313.js.map +1 -1
  304. package/dist/index314.js +11 -17
  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 +135 -5
  337. package/dist/index330.js.map +1 -1
  338. package/dist/index331.js +17 -3
  339. package/dist/index331.js.map +1 -1
  340. package/dist/index332.js +15 -10
  341. package/dist/index332.js.map +1 -1
  342. package/dist/index333.js +3 -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 +10 -5
  349. package/dist/index336.js.map +1 -1
  350. package/dist/index337.js +8 -52
  351. package/dist/index337.js.map +1 -1
  352. package/dist/index338.js +8 -11
  353. package/dist/index338.js.map +1 -1
  354. package/dist/index339.js +11 -27
  355. package/dist/index339.js.map +1 -1
  356. package/dist/index34.js +2 -2
  357. package/dist/index340.js +8 -11
  358. package/dist/index340.js.map +1 -1
  359. package/dist/index341.js +13 -4
  360. package/dist/index341.js.map +1 -1
  361. package/dist/index342.js +4 -18
  362. package/dist/index342.js.map +1 -1
  363. package/dist/index343.js +3 -12
  364. package/dist/index343.js.map +1 -1
  365. package/dist/index344.js +16 -7
  366. package/dist/index344.js.map +1 -1
  367. package/dist/index345.js +22 -9
  368. package/dist/index345.js.map +1 -1
  369. package/dist/index346.js +27 -7
  370. package/dist/index346.js.map +1 -1
  371. package/dist/index347.js +14 -11
  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 +61 -3
  376. package/dist/index349.js.map +1 -1
  377. package/dist/index35.js +5 -5
  378. package/dist/index350.js +65 -16
  379. package/dist/index350.js.map +1 -1
  380. package/dist/index352.js +8 -51
  381. package/dist/index352.js.map +1 -1
  382. package/dist/index353.js +5 -62
  383. package/dist/index353.js.map +1 -1
  384. package/dist/index354.js +11 -66
  385. package/dist/index354.js.map +1 -1
  386. package/dist/index355.js +21 -8
  387. package/dist/index355.js.map +1 -1
  388. package/dist/index356.js +17 -5
  389. package/dist/index356.js.map +1 -1
  390. package/dist/index357.js +8 -12
  391. package/dist/index357.js.map +1 -1
  392. package/dist/index358.js +144 -21
  393. package/dist/index358.js.map +1 -1
  394. package/dist/index359.js +77 -14
  395. package/dist/index359.js.map +1 -1
  396. package/dist/index36.js +11 -11
  397. package/dist/index360.js +62 -8
  398. package/dist/index360.js.map +1 -1
  399. package/dist/index361.js +15 -145
  400. package/dist/index361.js.map +1 -1
  401. package/dist/index362.js +4 -79
  402. package/dist/index362.js.map +1 -1
  403. package/dist/index363.js +17 -61
  404. package/dist/index363.js.map +1 -1
  405. package/dist/index364.js +13 -15
  406. package/dist/index364.js.map +1 -1
  407. package/dist/index365.js +4 -5
  408. package/dist/index365.js.map +1 -1
  409. package/dist/index366.js +10 -19
  410. package/dist/index366.js.map +1 -1
  411. package/dist/index367.js +6 -4
  412. package/dist/index367.js.map +1 -1
  413. package/dist/index368.js +3 -6
  414. package/dist/index368.js.map +1 -1
  415. package/dist/index369.js +21 -3
  416. package/dist/index369.js.map +1 -1
  417. package/dist/index37.js +3 -3
  418. package/dist/index370.js +44 -11
  419. package/dist/index370.js.map +1 -1
  420. package/dist/index371.js +17 -20
  421. package/dist/index371.js.map +1 -1
  422. package/dist/index372.js +5 -45
  423. package/dist/index372.js.map +1 -1
  424. package/dist/index373.js +198 -15
  425. package/dist/index373.js.map +1 -1
  426. package/dist/index374.js +74 -5
  427. package/dist/index374.js.map +1 -1
  428. package/dist/index375.js +115 -192
  429. package/dist/index375.js.map +1 -1
  430. package/dist/index376.js +4 -73
  431. package/dist/index376.js.map +1 -1
  432. package/dist/index377.js +19 -122
  433. package/dist/index377.js.map +1 -1
  434. package/dist/index378.js +8 -4
  435. package/dist/index378.js.map +1 -1
  436. package/dist/index379.js +27 -5
  437. package/dist/index379.js.map +1 -1
  438. package/dist/index38.js +4 -4
  439. package/dist/index380.js +138 -4
  440. package/dist/index380.js.map +1 -1
  441. package/dist/index381.js +12 -15
  442. package/dist/index381.js.map +1 -1
  443. package/dist/index382.js +46 -8
  444. package/dist/index382.js.map +1 -1
  445. package/dist/index383.js +3 -5
  446. package/dist/index383.js.map +1 -1
  447. package/dist/index384.js +21 -4
  448. package/dist/index384.js.map +1 -1
  449. package/dist/index385.js +72 -542
  450. package/dist/index385.js.map +1 -1
  451. package/dist/index386.js +11 -46
  452. package/dist/index386.js.map +1 -1
  453. package/dist/index387.js +3 -17
  454. package/dist/index387.js.map +1 -1
  455. package/dist/index388.js +71 -5
  456. package/dist/index388.js.map +1 -1
  457. package/dist/index389.js +35 -7
  458. package/dist/index389.js.map +1 -1
  459. package/dist/index39.js +5 -5
  460. package/dist/index390.js +7 -7
  461. package/dist/index390.js.map +1 -1
  462. package/dist/index391.js +15 -7
  463. package/dist/index391.js.map +1 -1
  464. package/dist/index392.js +4 -11
  465. package/dist/index392.js.map +1 -1
  466. package/dist/index393.js +4 -8
  467. package/dist/index393.js.map +1 -1
  468. package/dist/index394.js +4 -13
  469. package/dist/index394.js.map +1 -1
  470. package/dist/index395.js +15 -8
  471. package/dist/index395.js.map +1 -1
  472. package/dist/index396.js +9 -27
  473. package/dist/index396.js.map +1 -1
  474. package/dist/index397.js +5 -137
  475. package/dist/index397.js.map +1 -1
  476. package/dist/index398.js +4 -12
  477. package/dist/index398.js.map +1 -1
  478. package/dist/index399.js +543 -44
  479. package/dist/index399.js.map +1 -1
  480. package/dist/index40.js +3 -3
  481. package/dist/index400.js +47 -4
  482. package/dist/index400.js.map +1 -1
  483. package/dist/index401.js +17 -21
  484. package/dist/index401.js.map +1 -1
  485. package/dist/index402.js +5 -75
  486. package/dist/index402.js.map +1 -1
  487. package/dist/index403.js +8 -12
  488. package/dist/index403.js.map +1 -1
  489. package/dist/index404.js +6 -3
  490. package/dist/index404.js.map +1 -1
  491. package/dist/index405.js +7 -71
  492. package/dist/index405.js.map +1 -1
  493. package/dist/index406.js +11 -35
  494. package/dist/index406.js.map +1 -1
  495. package/dist/index407.js +9 -7
  496. package/dist/index407.js.map +1 -1
  497. package/dist/index408.js +12 -15
  498. package/dist/index408.js.map +1 -1
  499. package/dist/index41.js +10 -10
  500. package/dist/index411.js +14 -4
  501. package/dist/index411.js.map +1 -1
  502. package/dist/index412.js +3 -56
  503. package/dist/index412.js.map +1 -1
  504. package/dist/index413.js +490 -66
  505. package/dist/index413.js.map +1 -1
  506. package/dist/index414.js +5 -31
  507. package/dist/index414.js.map +1 -1
  508. package/dist/index415.js +56 -9
  509. package/dist/index415.js.map +1 -1
  510. package/dist/index416.js +61 -146
  511. package/dist/index416.js.map +1 -1
  512. package/dist/index417.js +26 -103
  513. package/dist/index417.js.map +1 -1
  514. package/dist/index418.js +9 -15
  515. package/dist/index418.js.map +1 -1
  516. package/dist/index419.js +153 -3
  517. package/dist/index419.js.map +1 -1
  518. package/dist/index420.js +106 -490
  519. package/dist/index420.js.map +1 -1
  520. package/dist/index49.js +36 -36
  521. package/dist/index50.js +29 -29
  522. package/dist/index51.js +2 -2
  523. package/dist/index52.js +12 -12
  524. package/dist/index53.js +4 -4
  525. package/dist/index54.js +1 -1
  526. package/dist/index55.js +21 -21
  527. package/dist/index56.js +5 -5
  528. package/dist/index57.js +5 -5
  529. package/dist/index58.js +8 -8
  530. package/dist/index59.js +5 -5
  531. package/dist/index60.js +17 -17
  532. package/dist/index61.js +5 -5
  533. package/dist/index62.js +3 -3
  534. package/package.json +1 -1
package/dist/index369.js CHANGED
@@ -1,6 +1,24 @@
1
- import { lowerUserAgent as o } from "./index429.js";
2
- const e = /jsdom|happydom/.test(o);
1
+ import * as e from "react";
2
+ const t = /* @__PURE__ */ e.createContext({
3
+ register: () => {
4
+ },
5
+ unregister: () => {
6
+ },
7
+ subscribeMapChange: () => () => {
8
+ },
9
+ elementsRef: {
10
+ current: []
11
+ },
12
+ nextIndexRef: {
13
+ current: 0
14
+ }
15
+ });
16
+ process.env.NODE_ENV !== "production" && (t.displayName = "CompositeListContext");
17
+ function n() {
18
+ return e.useContext(t);
19
+ }
3
20
  export {
4
- e as jsdom
21
+ t as CompositeListContext,
22
+ n as useCompositeListContext
5
23
  };
6
24
  //# sourceMappingURL=index369.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index369.js","sources":["../../../node_modules/@base-ui/utils/platform/env.mjs"],"sourcesContent":["import { lowerUserAgent } from \"./shared.mjs\";\n\n/** Running in jsdom or HappyDOM (used by unit tests). */\nexport const jsdom = /jsdom|happydom/.test(lowerUserAgent);"],"names":["jsdom","lowerUserAgent"],"mappings":";AAGY,MAACA,IAAQ,iBAAiB,KAAKC,CAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index369.js","sources":["../../../node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport const CompositeListContext = /*#__PURE__*/React.createContext({\n register: () => {},\n unregister: () => {},\n subscribeMapChange: () => {\n return () => {};\n },\n elementsRef: {\n current: []\n },\n nextIndexRef: {\n current: 0\n }\n});\nif (process.env.NODE_ENV !== \"production\") CompositeListContext.displayName = \"CompositeListContext\";\nexport function useCompositeListContext() {\n return React.useContext(CompositeListContext);\n}"],"names":["CompositeListContext","React","useCompositeListContext"],"mappings":";AAGY,MAACA,IAAoC,gBAAAC,EAAM,cAAc;AAAA,EACnE,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,oBAAoB,MACX,MAAM;AAAA,EAAC;AAAA,EAEhB,aAAa;AAAA,IACX,SAAS,CAAA;AAAA,EACb;AAAA,EACE,cAAc;AAAA,IACZ,SAAS;AAAA,EACb;AACA,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,IAA0B;AACxC,SAAOD,EAAM,WAAWD,CAAoB;AAC9C;","x_google_ignoreList":[0]}
package/dist/index37.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as n from "react";
2
- import { useDialogRootContext as p } from "./index231.js";
3
- import { useRenderElement as a } from "./index232.js";
4
- import { useBaseUiId as c } from "./index238.js";
2
+ import { useDialogRootContext as p } from "./index171.js";
3
+ import { useRenderElement as a } from "./index172.js";
4
+ import { useBaseUiId as c } from "./index178.js";
5
5
  const d = /* @__PURE__ */ n.forwardRef(function(e, r) {
6
6
  const {
7
7
  render: m,
package/dist/index370.js CHANGED
@@ -1,15 +1,48 @@
1
- function t(r) {
2
- if (r == null)
3
- return "";
4
- if (typeof r == "string")
5
- return r;
6
- try {
7
- return JSON.stringify(r);
8
- } catch {
9
- return String(r);
1
+ import { evaluate as W, getPaddingObject as Y, getAlignmentAxis as k, getAlignment as q, getAxisLength as B, clamp as C } from "./index299.js";
2
+ const F = (s) => ({
3
+ name: "arrow",
4
+ options: s,
5
+ async fn(i) {
6
+ const {
7
+ x: y,
8
+ y: j,
9
+ placement: x,
10
+ rects: n,
11
+ platform: f,
12
+ elements: l,
13
+ middlewareData: M
14
+ } = i, {
15
+ element: g,
16
+ padding: v = 0,
17
+ offsetParent: z = "real"
18
+ } = W(s, i) || {};
19
+ if (g == null)
20
+ return {};
21
+ const h = Y(v), m = {
22
+ x: y,
23
+ y: j
24
+ }, t = k(x), e = B(t), r = await f.getDimensions(g), d = t === "y", E = d ? "top" : "left", H = d ? "bottom" : "right", A = d ? "clientHeight" : "clientWidth", L = n.reference[e] + n.reference[t] - m[t] - n.floating[e], R = m[t] - n.reference[t], S = z === "real" ? await f.getOffsetParent?.(g) : l.floating;
25
+ let a = l.floating[A] || n.floating[e];
26
+ (!a || !await f.isElement?.(S)) && (a = l.floating[A] || n.floating[e]);
27
+ const T = L / 2 - R / 2, O = a / 2 - r[e] / 2 - 1, u = Math.min(h[E], O), b = Math.min(h[H], O), c = u, D = a - r[e] - b, o = a / 2 - r[e] / 2 + T, P = C(c, o, D), p = !M.arrow && q(x) != null && o !== P && n.reference[e] / 2 - (o < c ? u : b) - r[e] / 2 < 0, w = p ? o < c ? o - c : o - D : 0;
28
+ return {
29
+ [t]: m[t] + w,
30
+ data: {
31
+ [t]: P,
32
+ centerOffset: o - P - w,
33
+ ...p && {
34
+ alignmentOffset: w
35
+ }
36
+ },
37
+ reset: p
38
+ };
10
39
  }
11
- }
40
+ }), I = (s, i) => ({
41
+ ...F(s),
42
+ options: [s, i]
43
+ });
12
44
  export {
13
- t as serializeValue
45
+ I as arrow,
46
+ F as baseArrow
14
47
  };
15
48
  //# sourceMappingURL=index370.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/react/internals/serializeValue.mjs"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"names":["serializeValue","value"],"mappings":"AAAO,SAASA,EAAeC,GAAO;AACpC,MAAIA,KAAS;AACX,WAAO;AAET,MAAI,OAAOA,KAAU;AACnB,WAAOA;AAET,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,OAAOA,CAAK;AAAA,EACrB;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs"],"sourcesContent":["import { clamp, evaluate, getAlignment, getAlignmentAxis, getAxisLength, getPaddingObject } from '@floating-ui/utils';\n/**\n * Fork of the original `arrow` middleware from Floating UI that allows\n * configuring the offset parent.\n */\nexport const baseArrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0,\n offsetParent = 'real'\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = offsetParent === 'real' ? await platform.getOffsetParent?.(element) : elements.floating;\n let clientSize = elements.floating[clientProp] || rects.floating[length];\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await platform.isElement?.(arrowOffsetParent))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n // eslint-disable-next-line no-nested-ternary\n const alignmentOffset = shouldAddOffset ? center < min ? center - min : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nexport const arrow = (options, deps) => ({\n ...baseArrow(options),\n options: [options, deps]\n});"],"names":["baseArrow","options","state","x","y","placement","rects","platform","elements","middlewareData","element","padding","offsetParent","evaluate","paddingObject","getPaddingObject","coords","axis","getAlignmentAxis","length","getAxisLength","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min","max","center","offset","clamp","shouldAddOffset","getAlignment","alignmentOffset","arrow","deps"],"mappings":";AAKY,MAACA,IAAY,CAAAC,OAAY;AAAA,EACnC,MAAM;AAAA,EACN,SAAAA;AAAA,EACA,MAAM,GAAGC,GAAO;AACd,UAAM;AAAA,MACJ,GAAAC;AAAA,MACA,GAAAC;AAAA,MACA,WAAAC;AAAA,MACA,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,gBAAAC;AAAA,IACN,IAAQP,GAEE;AAAA,MACJ,SAAAQ;AAAA,MACA,SAAAC,IAAU;AAAA,MACV,cAAAC,IAAe;AAAA,IACrB,IAAQC,EAASZ,GAASC,CAAK,KAAK,CAAA;AAChC,QAAIQ,KAAW;AACb,aAAO,CAAA;AAET,UAAMI,IAAgBC,EAAiBJ,CAAO,GACxCK,IAAS;AAAA,MACb,GAAAb;AAAA,MACA,GAAAC;AAAA,IACN,GACUa,IAAO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MACL,CAAClB,CAAI,GAAGD,EAAOC,CAAI,IAAIwB;AAAA,MACvB,MAAM;AAAA,QACJ,CAACxB,CAAI,GAAGoB;AAAA,QACR,cAAcD,IAASC,IAASI;AAAA,QAChC,GAAIF,KAAmB;AAAA,UACrB,iBAAAE;AAAA,QACV;AAAA,MACA;AAAA,MACM,OAAOF;AAAA,IACb;AAAA,EACE;AACF,IAQaG,IAAQ,CAACzC,GAAS0C,OAAU;AAAA,EACvC,GAAG3C,EAAUC,CAAO;AAAA,EACpB,SAAS,CAACA,GAAS0C,CAAI;AACzB;","x_google_ignoreList":[0]}
package/dist/index371.js CHANGED
@@ -1,24 +1,21 @@
1
- import * as e from "react";
2
- const t = /* @__PURE__ */ e.createContext({
3
- register: () => {
4
- },
5
- unregister: () => {
6
- },
7
- subscribeMapChange: () => () => {
8
- },
9
- elementsRef: {
10
- current: []
11
- },
12
- nextIndexRef: {
13
- current: 0
1
+ import { hide as a } from "./index373.js";
2
+ const c = a().fn, h = {
3
+ name: "hide",
4
+ async fn(e) {
5
+ const {
6
+ width: n,
7
+ height: i,
8
+ x: t,
9
+ y: d
10
+ } = e.rects.reference, r = n === 0 && i === 0 && t === 0 && d === 0;
11
+ return {
12
+ data: {
13
+ referenceHidden: (await c(e)).data?.referenceHidden || r
14
+ }
15
+ };
14
16
  }
15
- });
16
- process.env.NODE_ENV !== "production" && (t.displayName = "CompositeListContext");
17
- function n() {
18
- return e.useContext(t);
19
- }
17
+ };
20
18
  export {
21
- t as CompositeListContext,
22
- n as useCompositeListContext
19
+ h as hide
23
20
  };
24
21
  //# sourceMappingURL=index371.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport const CompositeListContext = /*#__PURE__*/React.createContext({\n register: () => {},\n unregister: () => {},\n subscribeMapChange: () => {\n return () => {};\n },\n elementsRef: {\n current: []\n },\n nextIndexRef: {\n current: 0\n }\n});\nif (process.env.NODE_ENV !== \"production\") CompositeListContext.displayName = \"CompositeListContext\";\nexport function useCompositeListContext() {\n return React.useContext(CompositeListContext);\n}"],"names":["CompositeListContext","React","useCompositeListContext"],"mappings":";AAGY,MAACA,IAAoC,gBAAAC,EAAM,cAAc;AAAA,EACnE,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,oBAAoB,MACX,MAAM;AAAA,EAAC;AAAA,EAEhB,aAAa;AAAA,IACX,SAAS,CAAA;AAAA,EACb;AAAA,EACE,cAAc;AAAA,IACZ,SAAS;AAAA,EACb;AACA,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,IAA0B;AACxC,SAAOD,EAAM,WAAWD,CAAoB;AAC9C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/utils/hideMiddleware.mjs"],"sourcesContent":["import { hide as nativeHide } from '@floating-ui/react-dom';\nconst nativeHideFn = nativeHide().fn;\nexport const hide = {\n name: 'hide',\n async fn(state) {\n const {\n width,\n height,\n x,\n y\n } = state.rects.reference;\n const anchorHidden = width === 0 && height === 0 && x === 0 && y === 0;\n const nativeHideResult = await nativeHideFn(state);\n return {\n data: {\n referenceHidden: nativeHideResult.data?.referenceHidden || anchorHidden\n }\n };\n }\n};"],"names":["nativeHideFn","nativeHide","hide","state","width","height","x","y","anchorHidden"],"mappings":";AACA,MAAMA,IAAeC,EAAU,EAAG,IACrBC,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,MAAM,GAAGC,GAAO;AACd,UAAM;AAAA,MACJ,OAAAC;AAAA,MACA,QAAAC;AAAA,MACA,GAAAC;AAAA,MACA,GAAAC;AAAA,IACN,IAAQJ,EAAM,MAAM,WACVK,IAAeJ,MAAU,KAAKC,MAAW,KAAKC,MAAM,KAAKC,MAAM;AAErE,WAAO;AAAA,MACL,MAAM;AAAA,QACJ,kBAHqB,MAAMP,EAAaG,CAAK,GAGX,MAAM,mBAAmBK;AAAA,MACnE;AAAA,IACA;AAAA,EACE;AACF;","x_google_ignoreList":[0]}
package/dist/index372.js CHANGED
@@ -1,48 +1,8 @@
1
- import { evaluate as W, getPaddingObject as Y, getAlignmentAxis as k, getAlignment as q, getAxisLength as B, clamp as C } from "./index325.js";
2
- const F = (s) => ({
3
- name: "arrow",
4
- options: s,
5
- async fn(i) {
6
- const {
7
- x: y,
8
- y: j,
9
- placement: x,
10
- rects: n,
11
- platform: f,
12
- elements: l,
13
- middlewareData: M
14
- } = i, {
15
- element: g,
16
- padding: v = 0,
17
- offsetParent: z = "real"
18
- } = W(s, i) || {};
19
- if (g == null)
20
- return {};
21
- const h = Y(v), m = {
22
- x: y,
23
- y: j
24
- }, t = k(x), e = B(t), r = await f.getDimensions(g), d = t === "y", E = d ? "top" : "left", H = d ? "bottom" : "right", A = d ? "clientHeight" : "clientWidth", L = n.reference[e] + n.reference[t] - m[t] - n.floating[e], R = m[t] - n.reference[t], S = z === "real" ? await f.getOffsetParent?.(g) : l.floating;
25
- let a = l.floating[A] || n.floating[e];
26
- (!a || !await f.isElement?.(S)) && (a = l.floating[A] || n.floating[e]);
27
- const T = L / 2 - R / 2, O = a / 2 - r[e] / 2 - 1, u = Math.min(h[E], O), b = Math.min(h[H], O), c = u, D = a - r[e] - b, o = a / 2 - r[e] / 2 + T, P = C(c, o, D), p = !M.arrow && q(x) != null && o !== P && n.reference[e] / 2 - (o < c ? u : b) - r[e] / 2 < 0, w = p ? o < c ? o - c : o - D : 0;
28
- return {
29
- [t]: m[t] + w,
30
- data: {
31
- [t]: P,
32
- centerOffset: o - P - w,
33
- ...p && {
34
- alignmentOffset: w
35
- }
36
- },
37
- reset: p
38
- };
39
- }
40
- }), I = (s, i) => ({
41
- ...F(s),
42
- options: [s, i]
43
- });
1
+ const e = {
2
+ sideX: "left",
3
+ sideY: "top"
4
+ };
44
5
  export {
45
- I as arrow,
46
- F as baseArrow
6
+ e as DEFAULT_SIDES
47
7
  };
48
8
  //# sourceMappingURL=index372.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index372.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs"],"sourcesContent":["import { clamp, evaluate, getAlignment, getAlignmentAxis, getAxisLength, getPaddingObject } from '@floating-ui/utils';\n/**\n * Fork of the original `arrow` middleware from Floating UI that allows\n * configuring the offset parent.\n */\nexport const baseArrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0,\n offsetParent = 'real'\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = offsetParent === 'real' ? await platform.getOffsetParent?.(element) : elements.floating;\n let clientSize = elements.floating[clientProp] || rects.floating[length];\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await platform.isElement?.(arrowOffsetParent))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n // eslint-disable-next-line no-nested-ternary\n const alignmentOffset = shouldAddOffset ? center < min ? center - min : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nexport const arrow = (options, deps) => ({\n ...baseArrow(options),\n options: [options, deps]\n});"],"names":["baseArrow","options","state","x","y","placement","rects","platform","elements","middlewareData","element","padding","offsetParent","evaluate","paddingObject","getPaddingObject","coords","axis","getAlignmentAxis","length","getAxisLength","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min","max","center","offset","clamp","shouldAddOffset","getAlignment","alignmentOffset","arrow","deps"],"mappings":";AAKY,MAACA,IAAY,CAAAC,OAAY;AAAA,EACnC,MAAM;AAAA,EACN,SAAAA;AAAA,EACA,MAAM,GAAGC,GAAO;AACd,UAAM;AAAA,MACJ,GAAAC;AAAA,MACA,GAAAC;AAAA,MACA,WAAAC;AAAA,MACA,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,gBAAAC;AAAA,IACN,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J,GAAKE,GAAQD,CAAG,GAM/BI,IAAkB,CAAC9B,EAAe,SAAS+B,EAAanC,CAAS,KAAK,QAAQ+B,MAAWC,KAAU/B,EAAM,UAAUa,CAAM,IAAI,KAAKiB,IAASF,IAAMF,IAAaC,KAAcZ,EAAgBF,CAAM,IAAI,IAAI,GAE1MsB,IAAkBF,IAAkBH,IAASF,IAAME,IAASF,IAAME,IAASD,IAAM;AACvF,WAAO;AAAA,MACL,CAAClB,CAAI,GAAGD,EAAOC,CAAI,IAAIwB;AAAA,MACvB,MAAM;AAAA,QACJ,CAACxB,CAAI,GAAGoB;AAAA,QACR,cAAcD,IAASC,IAASI;AAAA,QAChC,GAAIF,KAAmB;AAAA,UACrB,iBAAAE;AAAA,QACV;AAAA,MACA;AAAA,MACM,OAAOF;AAAA,IACb;AAAA,EACE;AACF,IAQaG,IAAQ,CAACzC,GAAS0C,OAAU;AAAA,EACvC,GAAG3C,EAAUC,CAAO;AAAA,EACpB,SAAS,CAACA,GAAS0C,CAAI;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index372.js","sources":["../../../node_modules/@base-ui/react/utils/adaptiveOriginMiddleware.mjs"],"sourcesContent":["import { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { getSide } from '@floating-ui/utils';\nexport const DEFAULT_SIDES = {\n sideX: 'left',\n sideY: 'top'\n};\nexport const adaptiveOrigin = {\n name: 'adaptiveOrigin',\n async fn(state) {\n const {\n x: rawX,\n y: rawY,\n rects: {\n floating: floatRect\n },\n elements: {\n floating\n },\n platform,\n strategy,\n placement\n } = state;\n const win = ownerWindow(floating);\n const styles = win.getComputedStyle(floating);\n const hasTransition = styles.transitionDuration !== '0s' && styles.transitionDuration !== '';\n if (!hasTransition) {\n return {\n x: rawX,\n y: rawY,\n data: DEFAULT_SIDES\n };\n }\n const offsetParent = await platform.getOffsetParent?.(floating);\n let offsetDimensions = {\n width: 0,\n height: 0\n };\n\n // For fixed strategy, prefer visualViewport if available\n if (strategy === 'fixed' && win?.visualViewport) {\n offsetDimensions = {\n width: win.visualViewport.width,\n height: win.visualViewport.height\n };\n } else if (offsetParent === win) {\n const doc = ownerDocument(floating);\n offsetDimensions = {\n width: doc.documentElement.clientWidth,\n height: doc.documentElement.clientHeight\n };\n } else if (await platform.isElement?.(offsetParent)) {\n offsetDimensions = await platform.getDimensions(offsetParent);\n }\n const currentSide = getSide(placement);\n let x = rawX;\n let y = rawY;\n if (currentSide === 'left') {\n x = offsetDimensions.width - (rawX + floatRect.width);\n }\n if (currentSide === 'top') {\n y = offsetDimensions.height - (rawY + floatRect.height);\n }\n const sideX = currentSide === 'left' ? 'right' : DEFAULT_SIDES.sideX;\n const sideY = currentSide === 'top' ? 'bottom' : DEFAULT_SIDES.sideY;\n return {\n x,\n y,\n data: {\n sideX,\n sideY\n }\n };\n }\n};"],"names":["DEFAULT_SIDES"],"mappings":"AAEY,MAACA,IAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AACT;","x_google_ignoreList":[0]}
package/dist/index373.js CHANGED
@@ -1,21 +1,204 @@
1
- import { hide as a } from "./index375.js";
2
- const c = a().fn, h = {
3
- name: "hide",
4
- async fn(e) {
5
- const {
6
- width: n,
7
- height: i,
8
- x: t,
9
- y: d
10
- } = e.rects.reference, r = n === 0 && i === 0 && t === 0 && d === 0;
11
- return {
12
- data: {
13
- referenceHidden: (await c(e)).data?.referenceHidden || r
1
+ import { flip as H, size as I, computePosition as J, hide as K, offset as N, shift as Q, limitShift as T } from "./index309.js";
2
+ import { autoUpdate as ae, platform as me } from "./index309.js";
3
+ import * as r from "react";
4
+ import { useLayoutEffect as X } from "react";
5
+ import * as Y from "react-dom";
6
+ var Z = typeof document < "u", b = function() {
7
+ }, R = Z ? X : b;
8
+ function w(e, t) {
9
+ if (e === t)
10
+ return !0;
11
+ if (typeof e != typeof t)
12
+ return !1;
13
+ if (typeof e == "function" && e.toString() === t.toString())
14
+ return !0;
15
+ let n, f, c;
16
+ if (e && t && typeof e == "object") {
17
+ if (Array.isArray(e)) {
18
+ if (n = e.length, n !== t.length) return !1;
19
+ for (f = n; f-- !== 0; )
20
+ if (!w(e[f], t[f]))
21
+ return !1;
22
+ return !0;
23
+ }
24
+ if (c = Object.keys(e), n = c.length, n !== Object.keys(t).length)
25
+ return !1;
26
+ for (f = n; f-- !== 0; )
27
+ if (!{}.hasOwnProperty.call(t, c[f]))
28
+ return !1;
29
+ for (f = n; f-- !== 0; ) {
30
+ const p = c[f];
31
+ if (!(p === "_owner" && e.$$typeof) && !w(e[p], t[p]))
32
+ return !1;
33
+ }
34
+ return !0;
35
+ }
36
+ return e !== e && t !== t;
37
+ }
38
+ function L(e) {
39
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
40
+ }
41
+ function z(e, t) {
42
+ const n = L(e);
43
+ return Math.round(t * n) / n;
44
+ }
45
+ function k(e) {
46
+ const t = r.useRef(e);
47
+ return R(() => {
48
+ t.current = e;
49
+ }), t;
50
+ }
51
+ function ne(e) {
52
+ e === void 0 && (e = {});
53
+ const {
54
+ placement: t = "bottom",
55
+ strategy: n = "absolute",
56
+ middleware: f = [],
57
+ platform: c,
58
+ elements: {
59
+ reference: p,
60
+ floating: A
61
+ } = {},
62
+ transform: D = !0,
63
+ whileElementsMounted: E,
64
+ open: x
65
+ } = e, [s, C] = r.useState({
66
+ x: 0,
67
+ y: 0,
68
+ strategy: n,
69
+ placement: t,
70
+ middlewareData: {},
71
+ isPositioned: !1
72
+ }), [M, q] = r.useState(f);
73
+ w(M, f) || q(f);
74
+ const [B, U] = r.useState(null), [V, W] = r.useState(null), _ = r.useCallback((o) => {
75
+ o !== a.current && (a.current = o, U(o));
76
+ }, []), v = r.useCallback((o) => {
77
+ o !== m.current && (m.current = o, W(o));
78
+ }, []), i = p || B, u = A || V, a = r.useRef(null), m = r.useRef(null), y = r.useRef(s), G = E != null, S = k(E), P = k(c), F = k(x), g = r.useCallback(() => {
79
+ if (!a.current || !m.current)
80
+ return;
81
+ const o = {
82
+ placement: t,
83
+ strategy: n,
84
+ middleware: M
85
+ };
86
+ P.current && (o.platform = P.current), J(a.current, m.current, o).then((h) => {
87
+ const d = {
88
+ ...h,
89
+ // The floating element's position may be recomputed while it's closed
90
+ // but still mounted (such as when transitioning out). To ensure
91
+ // `isPositioned` will be `false` initially on the next open, avoid
92
+ // setting it to `true` when `open === false` (must be specified).
93
+ isPositioned: F.current !== !1
94
+ };
95
+ $.current && !w(y.current, d) && (y.current = d, Y.flushSync(() => {
96
+ C(d);
97
+ }));
98
+ });
99
+ }, [M, t, n, P, F]);
100
+ R(() => {
101
+ x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((o) => ({
102
+ ...o,
103
+ isPositioned: !1
104
+ })));
105
+ }, [x]);
106
+ const $ = r.useRef(!1);
107
+ R(() => ($.current = !0, () => {
108
+ $.current = !1;
109
+ }), []), R(() => {
110
+ if (i && (a.current = i), u && (m.current = u), i && u) {
111
+ if (S.current)
112
+ return S.current(i, u, g);
113
+ g();
114
+ }
115
+ }, [i, u, g, S, G]);
116
+ const O = r.useMemo(() => ({
117
+ reference: a,
118
+ floating: m,
119
+ setReference: _,
120
+ setFloating: v
121
+ }), [_, v]), l = r.useMemo(() => ({
122
+ reference: i,
123
+ floating: u
124
+ }), [i, u]), j = r.useMemo(() => {
125
+ const o = {
126
+ position: n,
127
+ left: 0,
128
+ top: 0
129
+ };
130
+ if (!l.floating)
131
+ return o;
132
+ const h = z(l.floating, s.x), d = z(l.floating, s.y);
133
+ return D ? {
134
+ ...o,
135
+ transform: "translate(" + h + "px, " + d + "px)",
136
+ ...L(l.floating) >= 1.5 && {
137
+ willChange: "transform"
14
138
  }
139
+ } : {
140
+ position: n,
141
+ left: h,
142
+ top: d
15
143
  };
16
- }
144
+ }, [n, D, l.floating, s.x, s.y]);
145
+ return r.useMemo(() => ({
146
+ ...s,
147
+ update: g,
148
+ refs: O,
149
+ elements: l,
150
+ floatingStyles: j
151
+ }), [s, g, O, l, j]);
152
+ }
153
+ const re = (e, t) => {
154
+ const n = N(e);
155
+ return {
156
+ name: n.name,
157
+ fn: n.fn,
158
+ options: [e, t]
159
+ };
160
+ }, oe = (e, t) => {
161
+ const n = Q(e);
162
+ return {
163
+ name: n.name,
164
+ fn: n.fn,
165
+ options: [e, t]
166
+ };
167
+ }, fe = (e, t) => ({
168
+ fn: T(e).fn,
169
+ options: [e, t]
170
+ }), se = (e, t) => {
171
+ const n = H(e);
172
+ return {
173
+ name: n.name,
174
+ fn: n.fn,
175
+ options: [e, t]
176
+ };
177
+ }, ie = (e, t) => {
178
+ const n = I(e);
179
+ return {
180
+ name: n.name,
181
+ fn: n.fn,
182
+ options: [e, t]
183
+ };
184
+ }, ue = (e, t) => {
185
+ const n = K(e);
186
+ return {
187
+ name: n.name,
188
+ fn: n.fn,
189
+ options: [e, t]
190
+ };
17
191
  };
18
192
  export {
19
- h as hide
193
+ ae as autoUpdate,
194
+ J as computePosition,
195
+ se as flip,
196
+ ue as hide,
197
+ fe as limitShift,
198
+ re as offset,
199
+ me as platform,
200
+ oe as shift,
201
+ ie as size,
202
+ ne as useFloating
20
203
  };
21
204
  //# sourceMappingURL=index373.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index373.js","sources":["../../../node_modules/@base-ui/react/utils/hideMiddleware.mjs"],"sourcesContent":["import { hide as nativeHide } from '@floating-ui/react-dom';\nconst nativeHideFn = nativeHide().fn;\nexport const hide = {\n name: 'hide',\n async fn(state) {\n const {\n width,\n height,\n x,\n y\n } = state.rects.reference;\n const anchorHidden = width === 0 && height === 0 && x === 0 && y === 0;\n const nativeHideResult = await nativeHideFn(state);\n return {\n data: {\n referenceHidden: nativeHideResult.data?.referenceHidden || anchorHidden\n }\n };\n }\n};"],"names":["nativeHideFn","nativeHide","hide","state","width","height","x","y","anchorHidden"],"mappings":";AACA,MAAMA,IAAeC,EAAU,EAAG,IACrBC,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,MAAM,GAAGC,GAAO;AACd,UAAM;AAAA,MACJ,OAAAC;AAAA,MACA,QAAAC;AAAA,MACA,GAAAC;AAAA,MACA,GAAAC;AAAA,IACN,IAAQJ,EAAM,MAAM,WACVK,IAAeJ,MAAU,KAAKC,MAAW,KAAKC,MAAM,KAAKC,MAAM;AAErE,WAAO;AAAA,MACL,MAAM;AAAA,QACJ,kBAHqB,MAAMP,EAAaG,CAAK,GAGX,MAAM,mBAAmBK;AAAA,MACnE;AAAA,IACA;AAAA,EACE;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index373.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1"],"mappings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reList":[0]}
package/dist/index374.js CHANGED
@@ -1,8 +1,77 @@
1
- const e = {
2
- sideX: "left",
3
- sideY: "top"
4
- };
1
+ import * as o from "react";
2
+ import { useIsoLayoutEffect as I } from "./index261.js";
3
+ import { useFloating as O } from "./index373.js";
4
+ import { isElement as r } from "./index308.js";
5
+ import { useFloatingTree as T } from "./index386.js";
6
+ import { useFloatingRootContext as h } from "./index278.js";
7
+ function A(c = {}) {
8
+ const {
9
+ nodeId: m,
10
+ externalTree: b
11
+ } = c, k = h(c), t = c.rootContext || k, g = t.useState("referenceElement"), d = t.useState("floatingElement"), s = t.useState("domReferenceElement"), E = t.useState("open"), S = t.useState("floatingId"), [p, D] = o.useState(null), [l, x] = o.useState(void 0), [C, L] = o.useState(void 0), R = o.useRef(null), P = T(b), V = o.useMemo(() => ({
12
+ reference: g,
13
+ floating: d,
14
+ domReference: s
15
+ }), [g, d, s]), n = O({
16
+ ...c,
17
+ elements: {
18
+ ...V,
19
+ ...p && {
20
+ reference: p
21
+ }
22
+ }
23
+ }), v = r(l) ? l : null, B = C === void 0 ? t.state.floatingElement : C;
24
+ t.useSyncedValue("referenceElement", l ?? null), t.useSyncedValue("domReferenceElement", l === void 0 ? s : v), t.useSyncedValue("floatingElement", B);
25
+ const F = o.useCallback((e) => {
26
+ const i = r(e) ? {
27
+ getBoundingClientRect: () => e.getBoundingClientRect(),
28
+ getClientRects: () => e.getClientRects(),
29
+ contextElement: e
30
+ } : e;
31
+ D(i), n.refs.setReference(i);
32
+ }, [n.refs]), y = o.useCallback((e) => {
33
+ (r(e) || e === null) && (R.current = e, x(e)), (r(n.refs.reference.current) || n.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
34
+ // `null` to support `positionReference` + an unstable `reference`
35
+ // callback ref.
36
+ e !== null && !r(e)) && n.refs.setReference(e);
37
+ }, [n.refs, x]), M = o.useCallback((e) => {
38
+ L(e), n.refs.setFloating(e);
39
+ }, [n.refs]), f = o.useMemo(() => ({
40
+ ...n.refs,
41
+ setReference: y,
42
+ setFloating: M,
43
+ setPositionReference: F,
44
+ domReference: R
45
+ }), [n.refs, y, M, F]), a = o.useMemo(() => ({
46
+ ...n.elements,
47
+ domReference: s
48
+ }), [n.elements, s]), u = o.useMemo(() => ({
49
+ ...n,
50
+ dataRef: t.context.dataRef,
51
+ open: E,
52
+ onOpenChange: t.setOpen,
53
+ events: t.context.events,
54
+ floatingId: S,
55
+ refs: f,
56
+ elements: a,
57
+ nodeId: m,
58
+ rootStore: t
59
+ }), [n, f, a, m, t, E, S]);
60
+ return I(() => {
61
+ s && (R.current = s);
62
+ }, [s]), I(() => {
63
+ t.context.dataRef.current.floatingContext = u;
64
+ const e = P?.nodesRef.current.find((i) => i.id === m);
65
+ e && (e.context = u);
66
+ }), o.useMemo(() => ({
67
+ ...n,
68
+ context: u,
69
+ refs: f,
70
+ elements: a,
71
+ rootStore: t
72
+ }), [n, f, a, u, t]);
73
+ }
5
74
  export {
6
- e as DEFAULT_SIDES
75
+ A as useFloating
7
76
  };
8
77
  //# sourceMappingURL=index374.js.map