@rpcbase/ui 0.241.0 → 0.243.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 (774) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/country-options.d.ts +1 -1
  4. package/dist/components/PhoneNumberInput/country-options.d.ts.map +1 -1
  5. package/dist/index100.js +8 -4
  6. package/dist/index100.js.map +1 -1
  7. package/dist/index101.js +5 -8
  8. package/dist/index101.js.map +1 -1
  9. package/dist/index102.js +4 -5
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index103.js +3 -3
  12. package/dist/index103.js.map +1 -1
  13. package/dist/index104.js +6 -4
  14. package/dist/index104.js.map +1 -1
  15. package/dist/index105.js +152 -6
  16. package/dist/index105.js.map +1 -1
  17. package/dist/index106.js +38 -144
  18. package/dist/index106.js.map +1 -1
  19. package/dist/index107.js +4 -39
  20. package/dist/index107.js.map +1 -1
  21. package/dist/index108.js +7 -4
  22. package/dist/index108.js.map +1 -1
  23. package/dist/index109.js +12 -6
  24. package/dist/index109.js.map +1 -1
  25. package/dist/index110.js +13 -13
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +7 -13
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +30 -6
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +10 -31
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +10 -10
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +8 -10
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +13 -8
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +101 -13
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +20 -102
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +54 -20
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index120.js +70 -51
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +9 -72
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +20 -9
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +16 -20
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +23 -16
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +6 -23
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +5 -6
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +23 -5
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +35 -24
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +14 -35
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index130.js +5 -16
  66. package/dist/index130.js.map +1 -1
  67. package/dist/index131.js +4 -6
  68. package/dist/index131.js.map +1 -1
  69. package/dist/index132.js +4 -4
  70. package/dist/index132.js.map +1 -1
  71. package/dist/index133.js +4 -4
  72. package/dist/index133.js.map +1 -1
  73. package/dist/index134.js +4 -4
  74. package/dist/index134.js.map +1 -1
  75. package/dist/index135.js +3 -4
  76. package/dist/index135.js.map +1 -1
  77. package/dist/index136.js +4 -3
  78. package/dist/index136.js.map +1 -1
  79. package/dist/index137.js +22 -7
  80. package/dist/index137.js.map +1 -1
  81. package/dist/index138.js +6 -24
  82. package/dist/index138.js.map +1 -1
  83. package/dist/index139.js +4 -7
  84. package/dist/index139.js.map +1 -1
  85. package/dist/index140.js +5 -6
  86. package/dist/index140.js.map +1 -1
  87. package/dist/index141.js +3 -5
  88. package/dist/index141.js.map +1 -1
  89. package/dist/index142.js +3 -3
  90. package/dist/index142.js.map +1 -1
  91. package/dist/index143.js +4 -3
  92. package/dist/index143.js.map +1 -1
  93. package/dist/index144.js +3 -4
  94. package/dist/index144.js.map +1 -1
  95. package/dist/index145.js +4 -3
  96. package/dist/index145.js.map +1 -1
  97. package/dist/index146.js +3 -4
  98. package/dist/index146.js.map +1 -1
  99. package/dist/index147.js +3 -3
  100. package/dist/index147.js.map +1 -1
  101. package/dist/index148.js +3 -3
  102. package/dist/index148.js.map +1 -1
  103. package/dist/index149.js +5 -3
  104. package/dist/index149.js.map +1 -1
  105. package/dist/index150.js +68 -5
  106. package/dist/index150.js.map +1 -1
  107. package/dist/index151.js +2 -69
  108. package/dist/index151.js.map +1 -1
  109. package/dist/index152.js +386 -2
  110. package/dist/index152.js.map +1 -1
  111. package/dist/index153.js +201 -303
  112. package/dist/index153.js.map +1 -1
  113. package/dist/index154.js +46 -247
  114. package/dist/index154.js.map +1 -1
  115. package/dist/index155.js +42 -56
  116. package/dist/index155.js.map +1 -1
  117. package/dist/index156.js +169 -46
  118. package/dist/index156.js.map +1 -1
  119. package/dist/index157.js +96 -156
  120. package/dist/index157.js.map +1 -1
  121. package/dist/index158.js +24 -109
  122. package/dist/index158.js.map +1 -1
  123. package/dist/index159.js +8 -25
  124. package/dist/index159.js.map +1 -1
  125. package/dist/index16.js +91 -91
  126. package/dist/index16.js.map +1 -1
  127. package/dist/index160.js +5 -8
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +5 -4
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +4 -5
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +487 -4
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +151 -428
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +13 -185
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js.map +1 -1
  140. package/dist/index167.js +6 -6
  141. package/dist/index167.js.map +1 -1
  142. package/dist/index168.js +3 -6
  143. package/dist/index168.js.map +1 -1
  144. package/dist/index169.js +15 -17
  145. package/dist/index169.js.map +1 -1
  146. package/dist/index170.js.map +1 -1
  147. package/dist/index171.js +12 -9
  148. package/dist/index171.js.map +1 -1
  149. package/dist/index172.js +10 -10
  150. package/dist/index172.js.map +1 -1
  151. package/dist/index173.js.map +1 -1
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +1 -1
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +13 -12
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +1 -1
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js.map +1 -1
  162. package/dist/index181.js +1 -1
  163. package/dist/index181.js.map +1 -1
  164. package/dist/index182.js +2 -2
  165. package/dist/index182.js.map +1 -1
  166. package/dist/index183.js +6 -8
  167. package/dist/index183.js.map +1 -1
  168. package/dist/index184.js +161 -246
  169. package/dist/index184.js.map +1 -1
  170. package/dist/index185.js +279 -4
  171. package/dist/index185.js.map +1 -1
  172. package/dist/index186.js +5 -28
  173. package/dist/index186.js.map +1 -1
  174. package/dist/index187.js +23 -122
  175. package/dist/index187.js.map +1 -1
  176. package/dist/index188.js +126 -5
  177. package/dist/index188.js.map +1 -1
  178. package/dist/index189.js +59 -74
  179. package/dist/index189.js.map +1 -1
  180. package/dist/index190.js +7 -65
  181. package/dist/index190.js.map +1 -1
  182. package/dist/index191.js +16 -9
  183. package/dist/index191.js.map +1 -1
  184. package/dist/index192.js +31 -16
  185. package/dist/index192.js.map +1 -1
  186. package/dist/index193.js +65 -88
  187. package/dist/index193.js.map +1 -1
  188. package/dist/index194.js +58 -65
  189. package/dist/index194.js.map +1 -1
  190. package/dist/index195.js +8 -45
  191. package/dist/index195.js.map +1 -1
  192. package/dist/index196.js +77 -48
  193. package/dist/index196.js.map +1 -1
  194. package/dist/index197.js +19 -8
  195. package/dist/index197.js.map +1 -1
  196. package/dist/index198.js +15 -86
  197. package/dist/index198.js.map +1 -1
  198. package/dist/index199.js +4 -18
  199. package/dist/index199.js.map +1 -1
  200. package/dist/index200.js +4 -15
  201. package/dist/index200.js.map +1 -1
  202. package/dist/index201.js +6 -5
  203. package/dist/index201.js.map +1 -1
  204. package/dist/index202.js +4 -5
  205. package/dist/index202.js.map +1 -1
  206. package/dist/index203.js +6 -6
  207. package/dist/index203.js.map +1 -1
  208. package/dist/index204.js +16 -4
  209. package/dist/index204.js.map +1 -1
  210. package/dist/index205.js +4 -6
  211. package/dist/index205.js.map +1 -1
  212. package/dist/index206.js +4 -16
  213. package/dist/index206.js.map +1 -1
  214. package/dist/index207.js +12 -4
  215. package/dist/index207.js.map +1 -1
  216. package/dist/index208.js +9 -4
  217. package/dist/index208.js.map +1 -1
  218. package/dist/index209.js +13 -12
  219. package/dist/index209.js.map +1 -1
  220. package/dist/index210.js +13 -9
  221. package/dist/index210.js.map +1 -1
  222. package/dist/index211.js +4 -13
  223. package/dist/index211.js.map +1 -1
  224. package/dist/index212.js +5 -13
  225. package/dist/index212.js.map +1 -1
  226. package/dist/index213.js +6 -4
  227. package/dist/index213.js.map +1 -1
  228. package/dist/index214.js +5 -5
  229. package/dist/index214.js.map +1 -1
  230. package/dist/index215.js +54 -6
  231. package/dist/index215.js.map +1 -1
  232. package/dist/index216.js +8 -5
  233. package/dist/index216.js.map +1 -1
  234. package/dist/index217.js +4 -54
  235. package/dist/index217.js.map +1 -1
  236. package/dist/index218.js +4 -8
  237. package/dist/index218.js.map +1 -1
  238. package/dist/index219.js +8 -4
  239. package/dist/index219.js.map +1 -1
  240. package/dist/index220.js +4 -4
  241. package/dist/index220.js.map +1 -1
  242. package/dist/index221.js +4 -8
  243. package/dist/index221.js.map +1 -1
  244. package/dist/index222.js +3 -4
  245. package/dist/index222.js.map +1 -1
  246. package/dist/index223.js +10 -4
  247. package/dist/index223.js.map +1 -1
  248. package/dist/index224.js +9 -3
  249. package/dist/index224.js.map +1 -1
  250. package/dist/index225.js +8 -9
  251. package/dist/index225.js.map +1 -1
  252. package/dist/index226.js +10 -9
  253. package/dist/index226.js.map +1 -1
  254. package/dist/index227.js +10 -9
  255. package/dist/index227.js.map +1 -1
  256. package/dist/index228.js +9 -10
  257. package/dist/index228.js.map +1 -1
  258. package/dist/index229.js +6 -10
  259. package/dist/index229.js.map +1 -1
  260. package/dist/index230.js +5 -9
  261. package/dist/index230.js.map +1 -1
  262. package/dist/index231.js +4 -6
  263. package/dist/index231.js.map +1 -1
  264. package/dist/index232.js +5 -5
  265. package/dist/index232.js.map +1 -1
  266. package/dist/index233.js +6 -4
  267. package/dist/index233.js.map +1 -1
  268. package/dist/index234.js +5 -5
  269. package/dist/index234.js.map +1 -1
  270. package/dist/index235.js +16 -6
  271. package/dist/index235.js.map +1 -1
  272. package/dist/index236.js +7 -5
  273. package/dist/index236.js.map +1 -1
  274. package/dist/index237.js +9 -15
  275. package/dist/index237.js.map +1 -1
  276. package/dist/index238.js +10 -7
  277. package/dist/index238.js.map +1 -1
  278. package/dist/index239.js +21 -10
  279. package/dist/index239.js.map +1 -1
  280. package/dist/index240.js +8 -10
  281. package/dist/index240.js.map +1 -1
  282. package/dist/index241.js +9 -21
  283. package/dist/index241.js.map +1 -1
  284. package/dist/index242.js +9 -10
  285. package/dist/index242.js.map +1 -1
  286. package/dist/index243.js +4 -9
  287. package/dist/index243.js.map +1 -1
  288. package/dist/index244.js +5 -9
  289. package/dist/index244.js.map +1 -1
  290. package/dist/index245.js +16 -4
  291. package/dist/index245.js.map +1 -1
  292. package/dist/index246.js +9 -5
  293. package/dist/index246.js.map +1 -1
  294. package/dist/index247.js +18 -16
  295. package/dist/index247.js.map +1 -1
  296. package/dist/index248.js +20 -9
  297. package/dist/index248.js.map +1 -1
  298. package/dist/index249.js +8 -14
  299. package/dist/index249.js.map +1 -1
  300. package/dist/index250.js +29 -15
  301. package/dist/index250.js.map +1 -1
  302. package/dist/index251.js +12 -12
  303. package/dist/index251.js.map +1 -1
  304. package/dist/index252.js +24 -28
  305. package/dist/index252.js.map +1 -1
  306. package/dist/index253.js +5 -12
  307. package/dist/index253.js.map +1 -1
  308. package/dist/index254.js +152 -23
  309. package/dist/index254.js.map +1 -1
  310. package/dist/index255.js +32 -5
  311. package/dist/index255.js.map +1 -1
  312. package/dist/index256.js +12 -20
  313. package/dist/index256.js.map +1 -1
  314. package/dist/index257.js +44 -61
  315. package/dist/index257.js.map +1 -1
  316. package/dist/index258.js +9 -6
  317. package/dist/index258.js.map +1 -1
  318. package/dist/index259.js +11 -11
  319. package/dist/index259.js.map +1 -1
  320. package/dist/index260.js +41 -48
  321. package/dist/index260.js.map +1 -1
  322. package/dist/index261.js +98 -4
  323. package/dist/index261.js.map +1 -1
  324. package/dist/index262.js +84 -27
  325. package/dist/index262.js.map +1 -1
  326. package/dist/index263.js +103 -14
  327. package/dist/index263.js.map +1 -1
  328. package/dist/index264.js +52 -5
  329. package/dist/index264.js.map +1 -1
  330. package/dist/index265.js +11 -21
  331. package/dist/index265.js.map +1 -1
  332. package/dist/index266.js +4 -51
  333. package/dist/index266.js.map +1 -1
  334. package/dist/index267.js +37 -25
  335. package/dist/index267.js.map +1 -1
  336. package/dist/index268.js +8 -41
  337. package/dist/index268.js.map +1 -1
  338. package/dist/index269.js +132 -36
  339. package/dist/index269.js.map +1 -1
  340. package/dist/index27.js +421 -350
  341. package/dist/index27.js.map +1 -1
  342. package/dist/index270.js +18 -45
  343. package/dist/index270.js.map +1 -1
  344. package/dist/index271.js +14 -19
  345. package/dist/index271.js.map +1 -1
  346. package/dist/index272.js +3 -70
  347. package/dist/index272.js.map +1 -1
  348. package/dist/index273.js +34 -15
  349. package/dist/index273.js.map +1 -1
  350. package/dist/index274.js +20 -11
  351. package/dist/index274.js.map +1 -1
  352. package/dist/index275.js +8 -27
  353. package/dist/index275.js.map +1 -1
  354. package/dist/index276.js +9 -13
  355. package/dist/index276.js.map +1 -1
  356. package/dist/index277.js +24 -18
  357. package/dist/index277.js.map +1 -1
  358. package/dist/index278.js +27 -35
  359. package/dist/index278.js.map +1 -1
  360. package/dist/index279.js +16 -262
  361. package/dist/index279.js.map +1 -1
  362. package/dist/index280.js +20 -279
  363. package/dist/index280.js.map +1 -1
  364. package/dist/index281.js +64 -66
  365. package/dist/index281.js.map +1 -1
  366. package/dist/index282.js +6 -99
  367. package/dist/index282.js.map +1 -1
  368. package/dist/index283.js +5 -83
  369. package/dist/index283.js.map +1 -1
  370. package/dist/index284.js +11 -3
  371. package/dist/index284.js.map +1 -1
  372. package/dist/index285.js +3 -29
  373. package/dist/index285.js.map +1 -1
  374. package/dist/index286.js +50 -16
  375. package/dist/index286.js.map +1 -1
  376. package/dist/index287.js +4 -35
  377. package/dist/index287.js.map +1 -1
  378. package/dist/index288.js +28 -15
  379. package/dist/index288.js.map +1 -1
  380. package/dist/index289.js +16 -3
  381. package/dist/index289.js.map +1 -1
  382. package/dist/index29.js +48 -29
  383. package/dist/index29.js.map +1 -1
  384. package/dist/index290.js +5 -26
  385. package/dist/index290.js.map +1 -1
  386. package/dist/index291.js +20 -27
  387. package/dist/index291.js.map +1 -1
  388. package/dist/index292.js +54 -4
  389. package/dist/index292.js.map +1 -1
  390. package/dist/index293.js +18 -76
  391. package/dist/index293.js.map +1 -1
  392. package/dist/index294.js +37 -265
  393. package/dist/index294.js.map +1 -1
  394. package/dist/index295.js +39 -11
  395. package/dist/index295.js.map +1 -1
  396. package/dist/index296.js +45 -10
  397. package/dist/index296.js.map +1 -1
  398. package/dist/index297.js +20 -25
  399. package/dist/index297.js.map +1 -1
  400. package/dist/index298.js +69 -15
  401. package/dist/index298.js.map +1 -1
  402. package/dist/index299.js +14 -122
  403. package/dist/index299.js.map +1 -1
  404. package/dist/index300.js +3 -5
  405. package/dist/index300.js.map +1 -1
  406. package/dist/index301.js +11 -40
  407. package/dist/index301.js.map +1 -1
  408. package/dist/index302.js +12 -64
  409. package/dist/index302.js.map +1 -1
  410. package/dist/index303.js +19 -14
  411. package/dist/index303.js.map +1 -1
  412. package/dist/index304.js +36 -7
  413. package/dist/index304.js.map +1 -1
  414. package/dist/index305.js +239 -5
  415. package/dist/index305.js.map +1 -1
  416. package/dist/index306.js +252 -3
  417. package/dist/index306.js.map +1 -1
  418. package/dist/index307.js +68 -10
  419. package/dist/index307.js.map +1 -1
  420. package/dist/index308.js +99 -7
  421. package/dist/index308.js.map +1 -1
  422. package/dist/index309.js +80 -130
  423. package/dist/index309.js.map +1 -1
  424. package/dist/index31.js +194 -184
  425. package/dist/index31.js.map +1 -1
  426. package/dist/index310.js +3 -399
  427. package/dist/index310.js.map +1 -1
  428. package/dist/index311.js +29 -52
  429. package/dist/index311.js.map +1 -1
  430. package/dist/index312.js +15 -10
  431. package/dist/index312.js.map +1 -1
  432. package/dist/index313.js +35 -12
  433. package/dist/index313.js.map +1 -1
  434. package/dist/index314.js +17 -13
  435. package/dist/index314.js.map +1 -1
  436. package/dist/index315.js +3 -154
  437. package/dist/index315.js.map +1 -1
  438. package/dist/index316.js +25 -29
  439. package/dist/index316.js.map +1 -1
  440. package/dist/index317.js +28 -9
  441. package/dist/index317.js.map +1 -1
  442. package/dist/index318.js +4 -49
  443. package/dist/index318.js.map +1 -1
  444. package/dist/index319.js +77 -10
  445. package/dist/index319.js.map +1 -1
  446. package/dist/index32.js +3 -3
  447. package/dist/index32.js.map +1 -1
  448. package/dist/index320.js +271 -43
  449. package/dist/index320.js.map +1 -1
  450. package/dist/index321.js +11 -95
  451. package/dist/index321.js.map +1 -1
  452. package/dist/index322.js +11 -87
  453. package/dist/index322.js.map +1 -1
  454. package/dist/index323.js +24 -104
  455. package/dist/index323.js.map +1 -1
  456. package/dist/index324.js +16 -52
  457. package/dist/index324.js.map +1 -1
  458. package/dist/index325.js +124 -10
  459. package/dist/index325.js.map +1 -1
  460. package/dist/index326.js +5 -37
  461. package/dist/index326.js.map +1 -1
  462. package/dist/index327.js +65 -8
  463. package/dist/index327.js.map +1 -1
  464. package/dist/index328.js +14 -4
  465. package/dist/index328.js.map +1 -1
  466. package/dist/index329.js +7 -9
  467. package/dist/index329.js.map +1 -1
  468. package/dist/index330.js +5 -116
  469. package/dist/index330.js.map +1 -1
  470. package/dist/index331.js +3 -17
  471. package/dist/index331.js.map +1 -1
  472. package/dist/index332.js +10 -15
  473. package/dist/index332.js.map +1 -1
  474. package/dist/index333.js +7 -36
  475. package/dist/index333.js.map +1 -1
  476. package/dist/index334.js +131 -18
  477. package/dist/index334.js.map +1 -1
  478. package/dist/index335.js +398 -7
  479. package/dist/index335.js.map +1 -1
  480. package/dist/index336.js +5 -20
  481. package/dist/index336.js.map +1 -1
  482. package/dist/index337.js +50 -26
  483. package/dist/index337.js.map +1 -1
  484. package/dist/index338.js +11 -16
  485. package/dist/index338.js.map +1 -1
  486. package/dist/index339.js +27 -8
  487. package/dist/index339.js.map +1 -1
  488. package/dist/index34.js +7 -61
  489. package/dist/index34.js.map +1 -1
  490. package/dist/index340.js +11 -11
  491. package/dist/index340.js.map +1 -1
  492. package/dist/index341.js +8 -8
  493. package/dist/index341.js.map +1 -1
  494. package/dist/index342.js +11 -13
  495. package/dist/index342.js.map +1 -1
  496. package/dist/index343.js +8 -3
  497. package/dist/index343.js.map +1 -1
  498. package/dist/index344.js +13 -3
  499. package/dist/index344.js.map +1 -1
  500. package/dist/index345.js +3 -17
  501. package/dist/index345.js.map +1 -1
  502. package/dist/index346.js +3 -51
  503. package/dist/index346.js.map +1 -1
  504. package/dist/index347.js +17 -5
  505. package/dist/index347.js.map +1 -1
  506. package/dist/index348.js +60 -121
  507. package/dist/index348.js.map +1 -1
  508. package/dist/index349.js +65 -31
  509. package/dist/index349.js.map +1 -1
  510. package/dist/index35.js +29 -30
  511. package/dist/index35.js.map +1 -1
  512. package/dist/index350.js +47 -69
  513. package/dist/index350.js.map +1 -1
  514. package/dist/index351.js +5 -142
  515. package/dist/index351.js.map +1 -1
  516. package/dist/index352.js +7 -60
  517. package/dist/index352.js.map +1 -1
  518. package/dist/index353.js +4 -49
  519. package/dist/index353.js.map +1 -1
  520. package/dist/index354.js +12 -15
  521. package/dist/index354.js.map +1 -1
  522. package/dist/index355.js +21 -8
  523. package/dist/index355.js.map +1 -1
  524. package/dist/index356.js +17 -5
  525. package/dist/index356.js.map +1 -1
  526. package/dist/index357.js +8 -12
  527. package/dist/index357.js.map +1 -1
  528. package/dist/index358.js +144 -21
  529. package/dist/index358.js.map +1 -1
  530. package/dist/index359.js +79 -4
  531. package/dist/index359.js.map +1 -1
  532. package/dist/index36.js +52 -53
  533. package/dist/index36.js.map +1 -1
  534. package/dist/index360.js +61 -17
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +15 -13
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +4 -11
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +18 -17
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +13 -4
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +4 -5
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +20 -20
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +4 -45
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +11 -17
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +6 -5
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js.map +1 -1
  555. package/dist/index370.js +3 -201
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +20 -77
  558. package/dist/index371.js.map +1 -1
  559. package/dist/index372.js +45 -21
  560. package/dist/index372.js.map +1 -1
  561. package/dist/index373.js +18 -9
  562. package/dist/index373.js.map +1 -1
  563. package/dist/index374.js +5 -26
  564. package/dist/index374.js.map +1 -1
  565. package/dist/index375.js +196 -22
  566. package/dist/index375.js.map +1 -1
  567. package/dist/index376.js +73 -137
  568. package/dist/index376.js.map +1 -1
  569. package/dist/index377.js +121 -10
  570. package/dist/index377.js.map +1 -1
  571. package/dist/index378.js +7 -225
  572. package/dist/index378.js.map +1 -1
  573. package/dist/index379.js +27 -4
  574. package/dist/index379.js.map +1 -1
  575. package/dist/index38.js.map +1 -1
  576. package/dist/index380.js +136 -18
  577. package/dist/index380.js.map +1 -1
  578. package/dist/index381.js +10 -75
  579. package/dist/index381.js.map +1 -1
  580. package/dist/index382.js +47 -12
  581. package/dist/index382.js.map +1 -1
  582. package/dist/index383.js +3 -3
  583. package/dist/index383.js.map +1 -1
  584. package/dist/index384.js +19 -69
  585. package/dist/index384.js.map +1 -1
  586. package/dist/index385.js +76 -9
  587. package/dist/index385.js.map +1 -1
  588. package/dist/index386.js +12 -16
  589. package/dist/index386.js.map +1 -1
  590. package/dist/index387.js +3 -4
  591. package/dist/index387.js.map +1 -1
  592. package/dist/index388.js +71 -4
  593. package/dist/index388.js.map +1 -1
  594. package/dist/index389.js +36 -4
  595. package/dist/index389.js.map +1 -1
  596. package/dist/index39.js +3 -3
  597. package/dist/index39.js.map +1 -1
  598. package/dist/index390.js +7 -16
  599. package/dist/index390.js.map +1 -1
  600. package/dist/index391.js +15 -8
  601. package/dist/index391.js.map +1 -1
  602. package/dist/index392.js +4 -5
  603. package/dist/index392.js.map +1 -1
  604. package/dist/index393.js +4 -4
  605. package/dist/index393.js.map +1 -1
  606. package/dist/index394.js +4 -546
  607. package/dist/index394.js.map +1 -1
  608. package/dist/index395.js +16 -47
  609. package/dist/index395.js.map +1 -1
  610. package/dist/index396.js +8 -17
  611. package/dist/index396.js.map +1 -1
  612. package/dist/index397.js +5 -5
  613. package/dist/index397.js.map +1 -1
  614. package/dist/index398.js +4 -7
  615. package/dist/index398.js.map +1 -1
  616. package/dist/index399.js +545 -6
  617. package/dist/index399.js.map +1 -1
  618. package/dist/index40.js.map +1 -1
  619. package/dist/index400.js +47 -8
  620. package/dist/index400.js.map +1 -1
  621. package/dist/index401.js +17 -11
  622. package/dist/index401.js.map +1 -1
  623. package/dist/index402.js +5 -8
  624. package/dist/index402.js.map +1 -1
  625. package/dist/index403.js +7 -12
  626. package/dist/index403.js.map +1 -1
  627. package/dist/index404.js +7 -3
  628. package/dist/index404.js.map +1 -1
  629. package/dist/index405.js +8 -3
  630. package/dist/index405.js.map +1 -1
  631. package/dist/index406.js +11 -14
  632. package/dist/index406.js.map +1 -1
  633. package/dist/index407.js +8 -491
  634. package/dist/index407.js.map +1 -1
  635. package/dist/index408.js +12 -4
  636. package/dist/index408.js.map +1 -1
  637. package/dist/index409.js +3 -56
  638. package/dist/index409.js.map +1 -1
  639. package/dist/index41.js +45 -40
  640. package/dist/index41.js.map +1 -1
  641. package/dist/index410.js +3 -68
  642. package/dist/index410.js.map +1 -1
  643. package/dist/index411.js +15 -31
  644. package/dist/index411.js.map +1 -1
  645. package/dist/index412.js +3 -9
  646. package/dist/index412.js.map +1 -1
  647. package/dist/index413.js +488 -149
  648. package/dist/index413.js.map +1 -1
  649. package/dist/index414.js +66 -106
  650. package/dist/index414.js.map +1 -1
  651. package/dist/index415.js +31 -8
  652. package/dist/index415.js.map +1 -1
  653. package/dist/index416.js +9 -2
  654. package/dist/index416.js.map +1 -1
  655. package/dist/index417.js +150 -41
  656. package/dist/index417.js.map +1 -1
  657. package/dist/index418.js +108 -56
  658. package/dist/index418.js.map +1 -1
  659. package/dist/index419.js +4 -7
  660. package/dist/index419.js.map +1 -1
  661. package/dist/index420.js +56 -2
  662. package/dist/index420.js.map +1 -1
  663. package/dist/index421.js +7 -54
  664. package/dist/index421.js.map +1 -1
  665. package/dist/index422.js +2 -56
  666. package/dist/index422.js.map +1 -1
  667. package/dist/index423.js +44 -2
  668. package/dist/index423.js.map +1 -1
  669. package/dist/index424.js +56 -2
  670. package/dist/index424.js.map +1 -1
  671. package/dist/index425.js +8 -2
  672. package/dist/index425.js.map +1 -1
  673. package/dist/index426.js +2 -2
  674. package/dist/index427.js +54 -15
  675. package/dist/index427.js.map +1 -1
  676. package/dist/index428.js +55 -28
  677. package/dist/index428.js.map +1 -1
  678. package/dist/index429.js +31 -11
  679. package/dist/index429.js.map +1 -1
  680. package/dist/index430.js +14 -5
  681. package/dist/index430.js.map +1 -1
  682. package/dist/index431.js +32 -0
  683. package/dist/index431.js.map +1 -0
  684. package/dist/index432.js +16 -0
  685. package/dist/index432.js.map +1 -0
  686. package/dist/index433.js +10 -0
  687. package/dist/index433.js.map +1 -0
  688. package/dist/index434.js +5 -0
  689. package/dist/index434.js.map +1 -0
  690. package/dist/index435.js +5 -0
  691. package/dist/index435.js.map +1 -0
  692. package/dist/index436.js +5 -0
  693. package/dist/index436.js.map +1 -0
  694. package/dist/index437.js +5 -0
  695. package/dist/index437.js.map +1 -0
  696. package/dist/index48.js +2 -2
  697. package/dist/index48.js.map +1 -1
  698. package/dist/index49.js +274 -268
  699. package/dist/index49.js.map +1 -1
  700. package/dist/index50.js +182 -184
  701. package/dist/index50.js.map +1 -1
  702. package/dist/index51.js +3 -3
  703. package/dist/index51.js.map +1 -1
  704. package/dist/index52.js +105 -103
  705. package/dist/index52.js.map +1 -1
  706. package/dist/index53.js +5 -5
  707. package/dist/index53.js.map +1 -1
  708. package/dist/index54.js.map +1 -1
  709. package/dist/index55.js +102 -110
  710. package/dist/index55.js.map +1 -1
  711. package/dist/index56.js +4 -4
  712. package/dist/index56.js.map +1 -1
  713. package/dist/index57.js +5 -5
  714. package/dist/index57.js.map +1 -1
  715. package/dist/index58.js +9 -9
  716. package/dist/index58.js.map +1 -1
  717. package/dist/index59.js +5 -5
  718. package/dist/index59.js.map +1 -1
  719. package/dist/index6.js +43 -48
  720. package/dist/index6.js.map +1 -1
  721. package/dist/index60.js +90 -86
  722. package/dist/index60.js.map +1 -1
  723. package/dist/index61.js +2 -2
  724. package/dist/index61.js.map +1 -1
  725. package/dist/index62.js +24 -26
  726. package/dist/index62.js.map +1 -1
  727. package/dist/index76.js +1 -1
  728. package/dist/index77.js +2 -2
  729. package/dist/index77.js.map +1 -1
  730. package/dist/index78.js +2 -2
  731. package/dist/index78.js.map +1 -1
  732. package/dist/index79.js +50 -52
  733. package/dist/index79.js.map +1 -1
  734. package/dist/index80.js +4 -4
  735. package/dist/index80.js.map +1 -1
  736. package/dist/index81.js +12 -4
  737. package/dist/index81.js.map +1 -1
  738. package/dist/index82.js +5 -15
  739. package/dist/index82.js.map +1 -1
  740. package/dist/index83.js +7 -5
  741. package/dist/index83.js.map +1 -1
  742. package/dist/index84.js +17 -7
  743. package/dist/index84.js.map +1 -1
  744. package/dist/index85.js +4 -16
  745. package/dist/index85.js.map +1 -1
  746. package/dist/index86.js +1 -1
  747. package/dist/index86.js.map +1 -1
  748. package/dist/index87.js +5 -4
  749. package/dist/index87.js.map +1 -1
  750. package/dist/index88.js +4 -4
  751. package/dist/index88.js.map +1 -1
  752. package/dist/index89.js +4 -5
  753. package/dist/index89.js.map +1 -1
  754. package/dist/index90.js +2 -2
  755. package/dist/index90.js.map +1 -1
  756. package/dist/index91.js +5 -3
  757. package/dist/index91.js.map +1 -1
  758. package/dist/index92.js +24 -6
  759. package/dist/index92.js.map +1 -1
  760. package/dist/index93.js +4 -24
  761. package/dist/index93.js.map +1 -1
  762. package/dist/index94.js +4 -6
  763. package/dist/index94.js.map +1 -1
  764. package/dist/index95.js +2 -2
  765. package/dist/index95.js.map +1 -1
  766. package/dist/index96.js +5 -6
  767. package/dist/index96.js.map +1 -1
  768. package/dist/index97.js +4 -5
  769. package/dist/index97.js.map +1 -1
  770. package/dist/index98.js +4 -3
  771. package/dist/index98.js.map +1 -1
  772. package/dist/index99.js +4 -5
  773. package/dist/index99.js.map +1 -1
  774. package/package.json +14 -12
@@ -1 +1 @@
1
- {"version":3,"file":"index381.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js"],"sourcesContent":["// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nimport { getNodeName, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nconst counters = {\n inert: new WeakMap(),\n 'aria-hidden': new WeakMap()\n};\nconst markerName = 'data-base-ui-inert';\nconst uncontrolledElementsSets = {\n inert: new WeakSet(),\n 'aria-hidden': new WeakSet()\n};\nlet markerCounterMap = new WeakMap();\nlet lockCount = 0;\nfunction getUncontrolledElementsSet(controlAttribute) {\n return uncontrolledElementsSets[controlAttribute];\n}\nexport const supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;\nfunction unwrapHost(node) {\n if (!node) {\n return null;\n }\n return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nconst buildKeepSet = targets => {\n const keep = new Set();\n targets.forEach(target => {\n let node = target;\n while (node && !keep.has(node)) {\n keep.add(node);\n node = node.parentNode;\n }\n });\n return keep;\n};\nconst collectOutsideElements = (root, keepElements, stopElements) => {\n const outside = [];\n const walk = parent => {\n if (!parent || stopElements.has(parent)) {\n return;\n }\n Array.from(parent.children).forEach(node => {\n if (getNodeName(node) === 'script') {\n return;\n }\n if (keepElements.has(node)) {\n walk(node);\n } else {\n outside.push(node);\n }\n });\n };\n walk(root);\n return outside;\n};\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert, {\n mark = true,\n markerIgnoreElements = []\n}) {\n // eslint-disable-next-line no-nested-ternary\n const controlAttribute = inert ? 'inert' : ariaHidden ? 'aria-hidden' : null;\n let counterMap = null;\n let uncontrolledElementsSet = null;\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const markerIgnoreTargets = mark ? correctElements(body, markerIgnoreElements) : [];\n const markerIgnoreSet = new Set(markerIgnoreTargets);\n const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)).filter(target => !markerIgnoreSet.has(target)) : [];\n const hiddenElements = [];\n const markedElements = [];\n if (controlAttribute) {\n const map = counters[controlAttribute];\n const currentUncontrolledElementsSet = getUncontrolledElementsSet(controlAttribute);\n uncontrolledElementsSet = currentUncontrolledElementsSet;\n counterMap = map;\n const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll('[aria-live]')));\n const controlElements = avoidElements.concat(ariaLiveElements);\n const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));\n controlTargets.forEach(node => {\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (map.get(node) || 0) + 1;\n map.set(node, counterValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n currentUncontrolledElementsSet.add(node);\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, controlAttribute === 'inert' ? '' : 'true');\n }\n });\n }\n if (mark) {\n markerTargets.forEach(node => {\n const markerValue = (markerCounterMap.get(node) || 0) + 1;\n markerCounterMap.set(node, markerValue);\n markedElements.push(node);\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n });\n }\n lockCount += 1;\n return () => {\n if (counterMap) {\n hiddenElements.forEach(element => {\n const currentCounterValue = counterMap.get(element) || 0;\n const counterValue = currentCounterValue - 1;\n counterMap.set(element, counterValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet?.has(element) && controlAttribute) {\n element.removeAttribute(controlAttribute);\n }\n uncontrolledElementsSet?.delete(element);\n }\n });\n }\n if (mark) {\n markedElements.forEach(element => {\n const markerValue = (markerCounterMap.get(element) || 0) - 1;\n markerCounterMap.set(element, markerValue);\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n }\n lockCount -= 1;\n if (!lockCount) {\n counters.inert = new WeakMap();\n counters['aria-hidden'] = new WeakMap();\n uncontrolledElementsSets.inert = new WeakSet();\n uncontrolledElementsSets['aria-hidden'] = new WeakSet();\n markerCounterMap = new WeakMap();\n }\n };\n}\nexport function markOthers(avoidElements, options = {}) {\n const {\n ariaHidden = false,\n inert = false,\n mark = true,\n markerIgnoreElements = []\n } = options;\n const body = ownerDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements, body, ariaHidden, inert, {\n mark,\n markerIgnoreElements\n });\n}"],"names":["counters","markerName","uncontrolledElementsSets","markerCounterMap","lockCount","getUncontrolledElementsSet","controlAttribute","unwrapHost","node","isShadowRoot","correctElements","parent","targets","target","correctedTarget","x","buildKeepSet","keep","collectOutsideElements","root","keepElements","stopElements","outside","walk","getNodeName","applyAttributeToOthers","uncorrectedAvoidElements","body","ariaHidden","inert","mark","markerIgnoreElements","counterMap","uncontrolledElementsSet","avoidElements","markerIgnoreTargets","markerIgnoreSet","markerTargets","hiddenElements","markedElements","map","currentUncontrolledElementsSet","ariaLiveElements","controlElements","attr","alreadyHidden","counterValue","markerValue","element","markOthers","options","ownerDocument"],"mappings":";;AAIA,MAAMA,IAAW;AAAA,EACf,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B,GACMC,IAAa,sBACbC,IAA2B;AAAA,EAC/B,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B;AACA,IAAIC,IAAmB,oBAAI,QAAO,GAC9BC,IAAY;AAChB,SAASC,EAA2BC,GAAkB;AACpD,SAAOJ,EAAyBI,CAAgB;AAClD;AAEA,SAASC,EAAWC,GAAM;AACxB,SAAKA,IAGEC,EAAaD,CAAI,IAAIA,EAAK,OAAOD,EAAWC,EAAK,UAAU,IAFzD;AAGX;AACA,MAAME,IAAkB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAAAC,MAAU;AACjE,MAAIF,EAAO,SAASE,CAAM;AACxB,WAAOA;AAET,QAAMC,IAAkBP,EAAWM,CAAM;AACzC,SAAIF,EAAO,SAASG,CAAe,IAC1BA,IAEF;AACT,CAAC,EAAE,OAAO,CAAAC,MAAKA,KAAK,IAAI,GAClBC,IAAe,CAAAJ,MAAW;AAC9B,QAAMK,IAAO,oBAAI,IAAG;AACpB,SAAAL,EAAQ,QAAQ,CAAAC,MAAU;AACxB,QAAIL,IAAOK;AACX,WAAOL,KAAQ,CAACS,EAAK,IAAIT,CAAI;AAC3B,MAAAS,EAAK,IAAIT,CAAI,GACbA,IAAOA,EAAK;AAAA,EAEhB,CAAC,GACMS;AACT,GACMC,IAAyB,CAACC,GAAMC,GAAcC,MAAiB;AACnE,QAAMC,IAAU,CAAA,GACVC,IAAO,CAAAZ,MAAU;AACrB,IAAI,CAAC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AElC;AACF;AACO,SAAS8C,EAAWf,GAAegB,IAAU,IAAI;AACtD,QAAM;AAAA,IACJ,YAAAtB,IAAa;AAAA,IACb,OAAAC,IAAQ;AAAA,IACR,MAAAC,IAAO;AAAA,IACP,sBAAAC,IAAuB,CAAA;AAAA,EAC3B,IAAMmB,GACEvB,IAAOwB,EAAcjB,EAAc,CAAC,CAAC,EAAE;AAC7C,SAAOT,EAAuBS,GAAeP,GAAMC,GAAYC,GAAO;AAAA,IACpE,MAAAC;AAAA,IACA,sBAAAC;AAAA,EACJ,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index381.js","sources":["../node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-loop-func */\n\nexport function getNodeChildren(nodes, id, onlyOpenChildren = true) {\n const directChildren = nodes.filter(node => node.parentId === id);\n return directChildren.flatMap(child => [...(!onlyOpenChildren || child.context?.open ? [child] : []), ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);\n}\nexport function getDeepestNode(nodes, id) {\n let deepestNodeId;\n let maxDepth = -1;\n function findDeepest(nodeId, depth) {\n if (depth > maxDepth) {\n deepestNodeId = nodeId;\n maxDepth = depth;\n }\n const children = getNodeChildren(nodes, nodeId);\n children.forEach(child => {\n findDeepest(child.id, depth + 1);\n });\n }\n findDeepest(id, 0);\n return nodes.find(node => node.id === deepestNodeId);\n}\nexport function getNodeAncestors(nodes, id) {\n let allAncestors = [];\n let currentParentId = nodes.find(node => node.id === id)?.parentId;\n while (currentParentId) {\n const currentNode = nodes.find(node => node.id === currentParentId);\n currentParentId = currentNode?.parentId;\n if (currentNode) {\n allAncestors = allAncestors.concat(currentNode);\n }\n }\n return allAncestors;\n}"],"names":["getNodeChildren","nodes","id","onlyOpenChildren","node","child","getNodeAncestors","allAncestors","currentParentId","currentNode"],"mappings":"AAEO,SAASA,EAAgBC,GAAOC,GAAIC,IAAmB,IAAM;AAElE,SADuBF,EAAM,OAAO,CAAAG,MAAQA,EAAK,aAAaF,CAAE,EAC1C,QAAQ,CAAAG,MAAS,CAAC,GAAI,CAACF,KAAoBE,EAAM,SAAS,OAAO,CAACA,CAAK,IAAI,CAAA,GAAK,GAAGL,EAAgBC,GAAOI,EAAM,IAAIF,CAAgB,CAAC,CAAC;AAC9J;AAiBO,SAASG,EAAiBL,GAAOC,GAAI;AAC1C,MAAIK,IAAe,CAAA,GACfC,IAAkBP,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOF,CAAE,GAAG;AAC1D,SAAOM,KAAiB;AACtB,UAAMC,IAAcR,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOI,CAAe;AAClE,IAAAA,IAAkBC,GAAa,UAC3BA,MACFF,IAAeA,EAAa,OAAOE,CAAW;AAAA,EAElD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
package/dist/index382.js CHANGED
@@ -1,15 +1,50 @@
1
- import * as t from "react";
2
- import "./index30.js";
3
- const e = /* @__PURE__ */ t.createContext(null);
4
- process.env.NODE_ENV !== "production" && (e.displayName = "FloatingNodeContext");
5
- const o = /* @__PURE__ */ t.createContext(null);
6
- process.env.NODE_ENV !== "production" && (o.displayName = "FloatingTreeContext");
7
- const a = () => t.useContext(e)?.id || null, i = (n) => {
8
- const r = t.useContext(o);
9
- return n ?? r;
10
- };
1
+ import { getComputedStyle as c } from "./index334.js";
2
+ function a(t, i) {
3
+ return i < 0 || i >= t.length;
4
+ }
5
+ function b(t, i) {
6
+ return o(t.current, {
7
+ disabledIndices: i
8
+ });
9
+ }
10
+ function p(t, i) {
11
+ return o(t.current, {
12
+ decrement: !0,
13
+ startingIndex: t.current.length,
14
+ disabledIndices: i
15
+ });
16
+ }
17
+ function o(t, {
18
+ startingIndex: i = -1,
19
+ decrement: e = !1,
20
+ disabledIndices: u,
21
+ amount: n = 1
22
+ } = {}) {
23
+ let r = i;
24
+ do
25
+ r += e ? -n : n;
26
+ while (r >= 0 && r <= t.length - 1 && f(t, r, u));
27
+ return r;
28
+ }
29
+ function f(t, i, e) {
30
+ if (typeof e == "function" ? e(i) : e?.includes(i) ?? !1)
31
+ return !0;
32
+ const n = t[i];
33
+ return n ? l(n) ? !e && (n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") : !0 : !1;
34
+ }
35
+ function s(t) {
36
+ return t.visibility === "hidden" || t.visibility === "collapse";
37
+ }
38
+ function l(t, i = t ? c(t) : null) {
39
+ return !t || !t.isConnected || !i || s(i) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : i.display !== "none" && i.display !== "contents";
40
+ }
11
41
  export {
12
- a as useFloatingParentNodeId,
13
- i as useFloatingTree
42
+ o as findNonDisabledListIndex,
43
+ p as getMaxListIndex,
44
+ b as getMinListIndex,
45
+ l as isElementVisible,
46
+ s as isHiddenByStyles,
47
+ a as isIndexOutOfListBounds,
48
+ f as isListIndexDisabled
14
49
  };
15
50
  //# sourceMappingURL=index382.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index382.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { FloatingTreeStore } from \"./FloatingTreeStore.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") FloatingNodeContext.displayName = \"FloatingNodeContext\";\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nif (process.env.NODE_ENV !== \"production\") FloatingTreeContext.displayName = \"FloatingTreeContext\";\nexport const useFloatingParentNodeId = () => React.useContext(FloatingNodeContext)?.id || null;\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nexport const useFloatingTree = externalTree => {\n const contextTree = React.useContext(FloatingTreeContext);\n return externalTree ?? contextTree;\n};\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nexport function useFloatingNodeId(externalTree) {\n const id = useId();\n const tree = useFloatingTree(externalTree);\n const parentId = useFloatingParentNodeId();\n useIsoLayoutEffect(() => {\n if (!id) {\n return undefined;\n }\n const node = {\n id,\n parentId\n };\n tree?.addNode(node);\n return () => {\n tree?.removeNode(node);\n };\n }, [tree, id, parentId]);\n return id;\n}\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingNode(props) {\n const {\n children,\n id\n } = props;\n const parentId = useFloatingParentNodeId();\n return /*#__PURE__*/_jsx(FloatingNodeContext.Provider, {\n value: React.useMemo(() => ({\n id,\n parentId\n }), [id, parentId]),\n children: children\n });\n}\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingTree(props) {\n const {\n children,\n externalTree\n } = props;\n const tree = useRefWithInit(() => externalTree ?? new FloatingTreeStore()).current;\n return /*#__PURE__*/_jsx(FloatingTreeContext.Provider, {\n value: tree,\n children: children\n });\n}"],"names":["FloatingNodeContext","React","FloatingTreeContext","useFloatingParentNodeId","useFloatingTree","externalTree","contextTree"],"mappings":";;AAQA,MAAMA,IAAmC,gBAAAC,EAAM,cAAc,IAAI;AAC7D,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;AAC7E,MAAME,IAAmC,gBAAAD,EAAM,cAAc,IAAI;AAM7D,QAAQ,IAAI,aAAa,iBAAcC,EAAoB,cAAc;AACjE,MAACC,IAA0B,MAAMF,EAAM,WAAWD,CAAmB,GAAG,MAAM,MAK7EI,IAAkB,CAAAC,MAAgB;AAC7C,QAAMC,IAAcL,EAAM,WAAWC,CAAmB;AACxD,SAAOG,KAAgBC;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index382.js","sources":["../node_modules/@base-ui/react/floating-ui-react/utils/composite.mjs"],"sourcesContent":["import { floor } from '@floating-ui/utils';\nimport { getComputedStyle } from '@floating-ui/utils/dom';\nimport { stopEvent } from \"./event.mjs\";\nimport { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from \"./constants.mjs\";\nexport function isDifferentGridRow(index, cols, prevRow) {\n return Math.floor(index / cols) !== prevRow;\n}\nexport function isIndexOutOfListBounds(list, index) {\n return index < 0 || index >= list.length;\n}\nexport function getMinListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n disabledIndices\n });\n}\nexport function getMaxListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n decrement: true,\n startingIndex: listRef.current.length,\n disabledIndices\n });\n}\nexport function findNonDisabledListIndex(list, {\n startingIndex = -1,\n decrement = false,\n disabledIndices,\n amount = 1\n} = {}) {\n let index = startingIndex;\n do {\n index += decrement ? -amount : amount;\n } while (index >= 0 && index <= list.length - 1 && isListIndexDisabled(list, index, disabledIndices));\n return index;\n}\nexport function getGridNavigatedIndex(list, {\n event,\n orientation,\n loopFocus,\n onLoop,\n rtl,\n cols,\n disabledIndices,\n minIndex,\n maxIndex,\n prevIndex,\n stopEvent: stop = false\n}) {\n let nextIndex = prevIndex;\n let verticalDirection;\n if (event.key === ARROW_UP) {\n verticalDirection = 'up';\n } else if (event.key === ARROW_DOWN) {\n verticalDirection = 'down';\n }\n if (verticalDirection) {\n // -------------------------------------------------------------------------\n // Detect row structure only when handling vertical navigation. This keeps\n // the non-vertical key paths free from row inference work.\n // -------------------------------------------------------------------------\n const rows = [];\n const rowIndexMap = [];\n let hasRoleRow = false;\n let visibleItemCount = 0;\n {\n let currentRowEl = null;\n let currentRowIndex = -1;\n list.forEach((el, idx) => {\n if (el == null) {\n return;\n }\n visibleItemCount += 1;\n const rowEl = el.closest('[role=\"row\"]');\n if (rowEl) {\n hasRoleRow = true;\n }\n if (rowEl !== currentRowEl || currentRowIndex === -1) {\n currentRowEl = rowEl;\n currentRowIndex += 1;\n rows[currentRowIndex] = [];\n }\n rows[currentRowIndex].push(idx);\n rowIndexMap[idx] = currentRowIndex;\n });\n }\n let hasDomRows = false;\n let inferredDomCols = 0;\n if (hasRoleRow) {\n for (const row of rows) {\n const rowLength = row.length;\n if (rowLength > inferredDomCols) {\n inferredDomCols = rowLength;\n }\n if (rowLength !== cols) {\n hasDomRows = true;\n }\n }\n }\n const hasVirtualizedGaps = hasDomRows && visibleItemCount < list.length;\n const verticalCols = inferredDomCols || cols;\n const navigateVertically = direction => {\n if (!hasDomRows || prevIndex === -1) {\n return undefined;\n }\n const currentRow = rowIndexMap[prevIndex];\n if (currentRow == null) {\n return undefined;\n }\n const colInRow = rows[currentRow].indexOf(prevIndex);\n const step = direction === 'up' ? -1 : 1;\n for (let nextRow = currentRow + step, i = 0; i < rows.length; i += 1, nextRow += step) {\n if (nextRow < 0 || nextRow >= rows.length) {\n if (!loopFocus || hasVirtualizedGaps) {\n return undefined;\n }\n nextRow = nextRow < 0 ? rows.length - 1 : 0;\n if (onLoop) {\n const clampedCol = Math.min(colInRow, rows[nextRow].length - 1);\n const targetItemIndex = rows[nextRow][clampedCol] ?? rows[nextRow][0];\n const returnedItemIndex = onLoop(event, prevIndex, targetItemIndex);\n nextRow = rowIndexMap[returnedItemIndex] ?? nextRow;\n }\n }\n const targetRow = rows[nextRow];\n for (let col = Math.min(colInRow, targetRow.length - 1); col >= 0; col -= 1) {\n const candidate = targetRow[col];\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n const navigateVerticallyWithInferredRows = direction => {\n if (!hasVirtualizedGaps || prevIndex === -1) {\n return undefined;\n }\n const colInRow = prevIndex % verticalCols;\n const rowStep = direction === 'up' ? -verticalCols : verticalCols;\n const lastRowStart = maxIndex - maxIndex % verticalCols;\n const rowCount = floor(maxIndex / verticalCols) + 1;\n for (let rowStart = prevIndex - colInRow + rowStep, i = 0; i < rowCount; i += 1, rowStart += rowStep) {\n if (rowStart < 0 || rowStart > maxIndex) {\n if (!loopFocus) {\n return undefined;\n }\n rowStart = rowStart < 0 ? lastRowStart : 0;\n }\n const rowEnd = Math.min(rowStart + verticalCols - 1, maxIndex);\n for (let candidate = Math.min(rowStart + colInRow, rowEnd); candidate >= rowStart; candidate -= 1) {\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n if (stop) {\n stopEvent(event);\n }\n const verticalCandidate = navigateVertically(verticalDirection) ?? navigateVerticallyWithInferredRows(verticalDirection);\n if (verticalCandidate !== undefined) {\n nextIndex = verticalCandidate;\n } else if (prevIndex === -1) {\n nextIndex = verticalDirection === 'up' ? maxIndex : minIndex;\n } else {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n amount: verticalCols,\n decrement: verticalDirection === 'up',\n disabledIndices\n });\n if (loopFocus) {\n if (verticalDirection === 'up' && (prevIndex - verticalCols < minIndex || nextIndex < 0)) {\n const col = prevIndex % verticalCols;\n const maxCol = maxIndex % verticalCols;\n const offset = maxIndex - (maxCol - col);\n if (maxCol === col) {\n nextIndex = maxIndex;\n } else {\n nextIndex = maxCol > col ? offset : offset - verticalCols;\n }\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (verticalDirection === 'down' && prevIndex + verticalCols > maxIndex) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex % verticalCols - verticalCols,\n amount: verticalCols,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n }\n }\n if (isIndexOutOfListBounds(list, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n\n // Remains on the same row/column.\n if (orientation === 'both') {\n const prevRow = floor(prevIndex / cols);\n if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== cols - 1) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== 0) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n decrement: true,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n const lastRow = floor(maxIndex / cols) === prevRow;\n if (isIndexOutOfListBounds(list, nextIndex)) {\n if (loopFocus && lastRow) {\n nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n } else {\n nextIndex = prevIndex;\n }\n }\n }\n return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nexport function createGridCellMap(sizes, cols, dense) {\n const cellMap = [];\n let startIndex = 0;\n sizes.forEach(({\n width,\n height\n }, index) => {\n if (width > cols) {\n if (process.env.NODE_ENV !== 'production') {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(`[Floating UI]: Invalid grid - item width at index ${index} is greater than grid columns`);\n }\n }\n let itemPlaced = false;\n if (dense) {\n startIndex = 0;\n }\n while (!itemPlaced) {\n const targetCells = [];\n for (let i = 0; i < width; i += 1) {\n for (let j = 0; j < height; j += 1) {\n targetCells.push(startIndex + i + j * cols);\n }\n }\n if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n targetCells.forEach(cell => {\n cellMap[cell] = index;\n });\n itemPlaced = true;\n } else {\n startIndex += 1;\n }\n }\n });\n\n // convert into a non-sparse array\n return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nexport function getGridCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n if (index === -1) {\n return -1;\n }\n const firstCellIndex = cellMap.indexOf(index);\n const sizeItem = sizes[index];\n switch (corner) {\n case 'tl':\n return firstCellIndex;\n case 'tr':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + sizeItem.width - 1;\n case 'bl':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + (sizeItem.height - 1) * cols;\n case 'br':\n return cellMap.lastIndexOf(index);\n default:\n return -1;\n }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nexport function getGridCellIndices(indices, cellMap) {\n return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\nexport function isListIndexDisabled(list, index, disabledIndices) {\n const isExplicitlyDisabled = typeof disabledIndices === 'function' ? disabledIndices(index) : disabledIndices?.includes(index) ?? false;\n if (isExplicitlyDisabled) {\n return true;\n }\n const element = list[index];\n if (!element) {\n return false;\n }\n if (!isElementVisible(element)) {\n return true;\n }\n return !disabledIndices && (element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true');\n}\nexport function isHiddenByStyles(styles) {\n return styles.visibility === 'hidden' || styles.visibility === 'collapse';\n}\nexport function isElementVisible(element, styles = element ? getComputedStyle(element) : null) {\n if (!element || !element.isConnected || !styles || isHiddenByStyles(styles)) {\n return false;\n }\n if (typeof element.checkVisibility === 'function') {\n return element.checkVisibility();\n }\n return styles.display !== 'none' && styles.display !== 'contents';\n}"],"names":["isIndexOutOfListBounds","list","index","getMinListIndex","listRef","disabledIndices","findNonDisabledListIndex","getMaxListIndex","startingIndex","decrement","amount","isListIndexDisabled","element","isElementVisible","isHiddenByStyles","styles","getComputedStyle"],"mappings":";AAOO,SAASA,EAAuBC,GAAMC,GAAO;AAClD,SAAOA,IAAQ,KAAKA,KAASD,EAAK;AACpC;AACO,SAASE,EAAgBC,GAASC,GAAiB;AACxD,SAAOC,EAAyBF,EAAQ,SAAS;AAAA,IAC/C,iBAAAC;AAAA,EACJ,CAAG;AACH;AACO,SAASE,EAAgBH,GAASC,GAAiB;AACxD,SAAOC,EAAyBF,EAAQ,SAAS;AAAA,IAC/C,WAAW;AAAA,IACX,eAAeA,EAAQ,QAAQ;AAAA,IAC/B,iBAAAC;AAAA,EACJ,CAAG;AACH;AACO,SAASC,EAAyBL,GAAM;AAAA,EAC7C,eAAAO,IAAgB;AAAA,EAChB,WAAAC,IAAY;AAAA,EACZ,iBAAAJ;AAAA,EACA,QAAAK,IAAS;AACX,IAAI,IAAI;AACN,MAAIR,IAAQM;AACZ;AACE,IAAAN,KAASO,IAAY,CAACC,IAASA;AAAA,SACxBR,KAAS,KAAKA,KAASD,EAAK,SAAS,KAAKU,EAAoBV,GAAMC,GAAOG,CAAe;AACnG,SAAOH;AACT;AAuUO,SAASS,EAAoBV,GAAMC,GAAOG,GAAiB;AAEhE,MAD6B,OAAOA,KAAoB,aAAaA,EAAgBH,CAAK,IAAIG,GAAiB,SAASH,CAAK,KAAK;AAEhI,WAAO;AAET,QAAMU,IAAUX,EAAKC,CAAK;AAC1B,SAAKU,IAGAC,EAAiBD,CAAO,IAGtB,CAACP,MAAoBO,EAAQ,aAAa,UAAU,KAAKA,EAAQ,aAAa,eAAe,MAAM,UAFjG,KAHA;AAMX;AACO,SAASE,EAAiBC,GAAQ;AACvC,SAAOA,EAAO,eAAe,YAAYA,EAAO,eAAe;AACjE;AACO,SAASF,EAAiBD,GAASG,IAASH,IAAUI,EAAiBJ,CAAO,IAAI,MAAM;AAC7F,SAAI,CAACA,KAAW,CAACA,EAAQ,eAAe,CAACG,KAAUD,EAAiBC,CAAM,IACjE,KAEL,OAAOH,EAAQ,mBAAoB,aAC9BA,EAAQ,gBAAe,IAEzBG,EAAO,YAAY,UAAUA,EAAO,YAAY;AACzD;","x_google_ignoreList":[0]}
package/dist/index383.js CHANGED
@@ -1,7 +1,7 @@
1
- function n(r) {
2
- return r == null ? r : "current" in r ? r.current : r;
1
+ function e(t) {
2
+ return `data-base-ui-${t}`;
3
3
  }
4
4
  export {
5
- n as resolveRef
5
+ e as createAttribute
6
6
  };
7
7
  //# sourceMappingURL=index383.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index383.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveRef.js"],"sourcesContent":["/**\n * If the provided argument is a ref object, returns its `current` value.\n * Otherwise, returns the argument itself.\n */\nexport function resolveRef(maybeRef) {\n if (maybeRef == null) {\n return maybeRef;\n }\n return 'current' in maybeRef ? maybeRef.current : maybeRef;\n}"],"names":["resolveRef","maybeRef"],"mappings":"AAIO,SAASA,EAAWC,GAAU;AACnC,SAAIA,KAAY,OACPA,IAEF,aAAaA,IAAWA,EAAS,UAAUA;AACpD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index383.js","sources":["../node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs"],"sourcesContent":["export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}"],"names":["createAttribute","name"],"mappings":"AAAO,SAASA,EAAgBC,GAAM;AACpC,SAAO,gBAAgBA,CAAI;AAC7B;","x_google_ignoreList":[0]}
package/dist/index384.js CHANGED
@@ -1,75 +1,25 @@
1
- import { createEventEmitter as a } from "./index406.js";
2
- import { ReactStore as m } from "./index351.js";
3
- import { isClickLikeEvent as f } from "./index375.js";
4
- import { createSelector as o } from "./index354.js";
5
- const l = {
6
- open: o((t) => t.open),
7
- transitionStatus: o((t) => t.transitionStatus),
8
- domReferenceElement: o((t) => t.domReferenceElement),
9
- referenceElement: o((t) => t.positionReference ?? t.referenceElement),
10
- floatingElement: o((t) => t.floatingElement),
11
- floatingId: o((t) => t.floatingId)
12
- };
13
- class d extends m {
14
- constructor(n) {
15
- const {
16
- syncOnly: e,
17
- nested: r,
18
- onOpenChange: s,
19
- triggerElements: c,
20
- ...i
21
- } = n;
22
- super({
23
- ...i,
24
- positionReference: i.referenceElement,
25
- domReferenceElement: i.referenceElement
26
- }, {
27
- onOpenChange: s,
28
- dataRef: {
29
- current: {}
30
- },
31
- events: a(),
32
- nested: r,
33
- triggerElements: c
34
- }, l), this.syncOnly = e;
1
+ import { NOOP as i } from "./index290.js";
2
+ let e = 0;
3
+ function s(c, o = {}) {
4
+ const {
5
+ preventScroll: u = !1,
6
+ sync: a = !1,
7
+ shouldFocus: r
8
+ } = o;
9
+ cancelAnimationFrame(e);
10
+ function t() {
11
+ r && !r() || c?.focus({
12
+ preventScroll: u
13
+ });
35
14
  }
36
- /**
37
- * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
38
- */
39
- syncOpenEvent = (n, e) => {
40
- (!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
41
- // click events to upgrade a hover-open.
42
- e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
43
- };
44
- /**
45
- * Runs the root-owned side effects for an open state change.
46
- */
47
- dispatchOpenChange = (n, e) => {
48
- this.syncOpenEvent(n, e.event);
49
- const r = {
50
- open: n,
51
- reason: e.reason,
52
- nativeEvent: e.event,
53
- nested: this.context.nested,
54
- triggerElement: e.trigger
55
- };
56
- this.context.events.emit("openchange", r);
57
- };
58
- /**
59
- * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
60
- *
61
- * @param newOpen The new open state.
62
- * @param eventDetails Details about the event that triggered the open state change.
63
- */
64
- setOpen = (n, e) => {
65
- if (this.syncOnly) {
66
- this.context.onOpenChange?.(n, e);
67
- return;
68
- }
69
- this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
15
+ if (a)
16
+ return t(), i;
17
+ const n = requestAnimationFrame(t);
18
+ return e = n, () => {
19
+ e === n && (cancelAnimationFrame(n), e = 0);
70
20
  };
71
21
  }
72
22
  export {
73
- d as FloatingRootStore
23
+ s as enqueueFocus
74
24
  };
75
25
  //# sourceMappingURL=index384.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index384.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.js"],"sourcesContent":["import { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.js\";\nimport { isClickLikeEvent } from \"../utils.js\";\nconst selectors = {\n open: createSelector(state => state.open),\n transitionStatus: createSelector(state => state.transitionStatus),\n domReferenceElement: createSelector(state => state.domReferenceElement),\n referenceElement: createSelector(state => state.positionReference ?? state.referenceElement),\n floatingElement: createSelector(state => state.floatingElement),\n floatingId: createSelector(state => state.floatingId)\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"names":["selectors","createSelector","state","FloatingRootStore","ReactStore","options","syncOnly","nested","onOpenChange","triggerElements","initialState","createEventEmitter","newOpen","event","isClickLikeEvent","eventDetails","details"],"mappings":";;;;AAGA,MAAMA,IAAY;AAAA,EAChB,MAAMC,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,qBAAqBA,EAAM,gBAAgB;AA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,GAASG,CAAY;AACjD;AAAA,IACF;AACA,SAAK,mBAAmBH,GAASG,CAAY,GAC7C,KAAK,QAAQ,eAAeH,GAASG,CAAY;AAAA,EACnD;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index384.js","sources":["../node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs"],"sourcesContent":["import { NOOP } from '@base-ui/utils/empty';\nlet rafId = 0;\nexport function enqueueFocus(el, options = {}) {\n const {\n preventScroll = false,\n sync = false,\n shouldFocus\n } = options;\n cancelAnimationFrame(rafId);\n function exec() {\n if (shouldFocus && !shouldFocus()) {\n return;\n }\n el?.focus({\n preventScroll\n });\n }\n if (sync) {\n exec();\n return NOOP;\n }\n const currentRafId = requestAnimationFrame(exec);\n rafId = currentRafId;\n return () => {\n if (rafId === currentRafId) {\n cancelAnimationFrame(currentRafId);\n rafId = 0;\n }\n };\n}"],"names":["rafId","enqueueFocus","el","options","preventScroll","sync","shouldFocus","exec","NOOP","currentRafId"],"mappings":";AACA,IAAIA,IAAQ;AACL,SAASC,EAAaC,GAAIC,IAAU,IAAI;AAC7C,QAAM;AAAA,IACJ,eAAAC,IAAgB;AAAA,IAChB,MAAAC,IAAO;AAAA,IACP,aAAAC;AAAA,EACJ,IAAMH;AACJ,uBAAqBH,CAAK;AAC1B,WAASO,IAAO;AACd,IAAID,KAAe,CAACA,OAGpBJ,GAAI,MAAM;AAAA,MACR,eAAAE;AAAA,IACN,CAAK;AAAA,EACH;AACA,MAAIC;AACF,WAAAE,EAAI,GACGC;AAET,QAAMC,IAAe,sBAAsBF,CAAI;AAC/C,SAAAP,IAAQS,GACD,MAAM;AACX,IAAIT,MAAUS,MACZ,qBAAqBA,CAAY,GACjCT,IAAQ;AAAA,EAEZ;AACF;","x_google_ignoreList":[0]}
package/dist/index385.js CHANGED
@@ -1,12 +1,79 @@
1
- const t = "data-base-ui-focusable", e = "active", o = "selected", n = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", s = "ArrowLeft", c = "ArrowRight", E = "ArrowUp", a = "ArrowDown";
1
+ import { isShadowRoot as C, getNodeName as y } from "./index334.js";
2
+ import { ownerDocument as H } from "./index310.js";
3
+ const d = {
4
+ inert: /* @__PURE__ */ new WeakMap(),
5
+ "aria-hidden": /* @__PURE__ */ new WeakMap()
6
+ }, M = "data-base-ui-inert", k = {
7
+ inert: /* @__PURE__ */ new WeakSet(),
8
+ "aria-hidden": /* @__PURE__ */ new WeakSet()
9
+ };
10
+ let u = /* @__PURE__ */ new WeakMap(), p = 0;
11
+ function O(t) {
12
+ return k[t];
13
+ }
14
+ function T(t) {
15
+ return t ? C(t) ? t.host : T(t.parentNode) : null;
16
+ }
17
+ const b = (t, n) => n.map((o) => {
18
+ if (t.contains(o))
19
+ return o;
20
+ const a = T(o);
21
+ return t.contains(a) ? a : null;
22
+ }).filter((o) => o != null), V = (t) => {
23
+ const n = /* @__PURE__ */ new Set();
24
+ return t.forEach((o) => {
25
+ let a = o;
26
+ for (; a && !n.has(a); )
27
+ n.add(a), a = a.parentNode;
28
+ }), n;
29
+ }, N = (t, n, o) => {
30
+ const a = [], c = (r) => {
31
+ !r || o.has(r) || Array.from(r.children).forEach((s) => {
32
+ y(s) !== "script" && (n.has(s) ? c(s) : a.push(s));
33
+ });
34
+ };
35
+ return c(t), a;
36
+ };
37
+ function U(t, n, o, a, {
38
+ mark: c = !0
39
+ }) {
40
+ let r = null;
41
+ a ? r = "inert" : o && (r = "aria-hidden");
42
+ let s = null, h = null;
43
+ const m = b(n, t), v = c ? N(n, V(m), new Set(m)) : [], w = [], E = [];
44
+ if (r) {
45
+ const e = d[r], i = O(r);
46
+ h = i, s = e;
47
+ const f = b(n, Array.from(n.querySelectorAll("[aria-live]"))), S = m.concat(f);
48
+ N(n, V(S), new Set(S)).forEach((l) => {
49
+ const A = l.getAttribute(r), W = A !== null && A !== "false", g = (e.get(l) || 0) + 1;
50
+ e.set(l, g), w.push(l), g === 1 && W && i.add(l), W || l.setAttribute(r, r === "inert" ? "" : "true");
51
+ });
52
+ }
53
+ return c && v.forEach((e) => {
54
+ const i = (u.get(e) || 0) + 1;
55
+ u.set(e, i), E.push(e), i === 1 && e.setAttribute(M, "");
56
+ }), p += 1, () => {
57
+ s && w.forEach((e) => {
58
+ const f = (s.get(e) || 0) - 1;
59
+ s.set(e, f), f || (!h?.has(e) && r && e.removeAttribute(r), h?.delete(e));
60
+ }), c && E.forEach((e) => {
61
+ const i = (u.get(e) || 0) - 1;
62
+ u.set(e, i), i || e.removeAttribute(M);
63
+ }), p -= 1, p || (d.inert = /* @__PURE__ */ new WeakMap(), d["aria-hidden"] = /* @__PURE__ */ new WeakMap(), k.inert = /* @__PURE__ */ new WeakSet(), k["aria-hidden"] = /* @__PURE__ */ new WeakSet(), u = /* @__PURE__ */ new WeakMap());
64
+ };
65
+ }
66
+ function K(t, n = {}) {
67
+ const {
68
+ ariaHidden: o = !1,
69
+ inert: a = !1,
70
+ mark: c = !0
71
+ } = n, r = H(t[0]).body;
72
+ return U(t, r, o, a, {
73
+ mark: c
74
+ });
75
+ }
2
76
  export {
3
- e as ACTIVE_KEY,
4
- a as ARROW_DOWN,
5
- s as ARROW_LEFT,
6
- c as ARROW_RIGHT,
7
- E as ARROW_UP,
8
- t as FOCUSABLE_ATTRIBUTE,
9
- o as SELECTED_KEY,
10
- n as TYPEABLE_SELECTOR
77
+ K as markOthers
11
78
  };
12
79
  //# sourceMappingURL=index385.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index385.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js"],"sourcesContent":["export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';"],"names":["FOCUSABLE_ATTRIBUTE","ACTIVE_KEY","SELECTED_KEY","TYPEABLE_SELECTOR","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","ARROW_DOWN"],"mappings":"AAAY,MAACA,IAAsB,0BACtBC,IAAa,UACbC,IAAe,YACfC,IAAoB,wHACpBC,IAAa,aACbC,IAAc,cACdC,IAAW,WACXC,IAAa;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index385.js","sources":["../node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs"],"sourcesContent":["// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nimport { getNodeName, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nconst counters = {\n inert: new WeakMap(),\n 'aria-hidden': new WeakMap()\n};\nconst markerName = 'data-base-ui-inert';\nconst uncontrolledElementsSets = {\n inert: new WeakSet(),\n 'aria-hidden': new WeakSet()\n};\nlet markerCounterMap = new WeakMap();\nlet lockCount = 0;\nfunction getUncontrolledElementsSet(controlAttribute) {\n return uncontrolledElementsSets[controlAttribute];\n}\nfunction unwrapHost(node) {\n if (!node) {\n return null;\n }\n return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nconst buildKeepSet = targets => {\n const keep = new Set();\n targets.forEach(target => {\n let node = target;\n while (node && !keep.has(node)) {\n keep.add(node);\n node = node.parentNode;\n }\n });\n return keep;\n};\nconst collectOutsideElements = (root, keepElements, stopElements) => {\n const outside = [];\n const walk = parent => {\n if (!parent || stopElements.has(parent)) {\n return;\n }\n Array.from(parent.children).forEach(node => {\n if (getNodeName(node) === 'script') {\n return;\n }\n if (keepElements.has(node)) {\n walk(node);\n } else {\n outside.push(node);\n }\n });\n };\n walk(root);\n return outside;\n};\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert, {\n mark = true\n}) {\n let controlAttribute = null;\n if (inert) {\n controlAttribute = 'inert';\n } else if (ariaHidden) {\n controlAttribute = 'aria-hidden';\n }\n let counterMap = null;\n let uncontrolledElementsSet = null;\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)) : [];\n const hiddenElements = [];\n const markedElements = [];\n if (controlAttribute) {\n const map = counters[controlAttribute];\n const currentUncontrolledElementsSet = getUncontrolledElementsSet(controlAttribute);\n uncontrolledElementsSet = currentUncontrolledElementsSet;\n counterMap = map;\n const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll('[aria-live]')));\n const controlElements = avoidElements.concat(ariaLiveElements);\n const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));\n controlTargets.forEach(node => {\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (map.get(node) || 0) + 1;\n map.set(node, counterValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n currentUncontrolledElementsSet.add(node);\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, controlAttribute === 'inert' ? '' : 'true');\n }\n });\n }\n if (mark) {\n markerTargets.forEach(node => {\n const markerValue = (markerCounterMap.get(node) || 0) + 1;\n markerCounterMap.set(node, markerValue);\n markedElements.push(node);\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n });\n }\n lockCount += 1;\n return () => {\n if (counterMap) {\n hiddenElements.forEach(element => {\n const currentCounterValue = counterMap.get(element) || 0;\n const counterValue = currentCounterValue - 1;\n counterMap.set(element, counterValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet?.has(element) && controlAttribute) {\n element.removeAttribute(controlAttribute);\n }\n uncontrolledElementsSet?.delete(element);\n }\n });\n }\n if (mark) {\n markedElements.forEach(element => {\n const markerValue = (markerCounterMap.get(element) || 0) - 1;\n markerCounterMap.set(element, markerValue);\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n }\n lockCount -= 1;\n if (!lockCount) {\n counters.inert = new WeakMap();\n counters['aria-hidden'] = new WeakMap();\n uncontrolledElementsSets.inert = new WeakSet();\n uncontrolledElementsSets['aria-hidden'] = new WeakSet();\n markerCounterMap = new WeakMap();\n }\n };\n}\nexport function markOthers(avoidElements, options = {}) {\n const {\n ariaHidden = false,\n inert = false,\n mark = true\n } = options;\n const body = ownerDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements, body, ariaHidden, inert, {\n mark\n });\n}"],"names":["counters","markerName","uncontrolledElementsSets","markerCounterMap","lockCount","getUncontrolledElementsSet","controlAttribute","unwrapHost","node","isShadowRoot","correctElements","parent","targets","target","correctedTarget","x","buildKeepSet","keep","collectOutsideElements","root","keepElements","stopElements","outside","walk","getNodeName","applyAttributeToOthers","uncorrectedAvoidElements","body","ariaHidden","inert","mark","counterMap","uncontrolledElementsSet","avoidElements","markerTargets","hiddenElements","markedElements","map","currentUncontrolledElementsSet","ariaLiveElements","controlElements","attr","alreadyHidden","counterValue","markerValue","element","markOthers","options","ownerDocument"],"mappings":";;AAIA,MAAMA,IAAW;AAAA,EACf,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B,GACMC,IAAa,sBACbC,IAA2B;AAAA,EAC/B,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B;AACA,IAAIC,IAAmB,oBAAI,QAAO,GAC9BC,IAAY;AAChB,SAASC,EAA2BC,GAAkB;AACpD,SAAOJ,EAAyBI,CAAgB;AAClD;AACA,SAASC,EAAWC,GAAM;AACxB,SAAKA,IAGEC,EAAaD,CA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CuC,EAAQ,gBAAgBvC,CAAgB,GAE1C0B,GAAyB,OAAOa,CAAO;AAAA,IAE3C,CAAC,GAECf,KACFM,EAAe,QAAQ,CAAAS,MAAW;AAChC,YAAMD,KAAezC,EAAiB,IAAI0C,CAAO,KAAK,KAAK;AAC3D,MAAA1C,EAAiB,IAAI0C,GAASD,CAAW,GACpCA,KACHC,EAAQ,gBAAgB5C,CAAU;AAAA,IAEtC,CAAC,GAEHG,KAAa,GACRA,MACHJ,EAAS,QAAQ,oBAAI,QAAO,GAC5BA,EAAS,aAAa,IAAI,oBAAI,QAAO,GACrCE,EAAyB,QAAQ,oBAAI,QAAO,GAC5CA,EAAyB,aAAa,IAAI,oBAAI,QAAO,GACrDC,IAAmB,oBAAI,QAAO;AAAA,EAElC;AACF;AACO,SAAS2C,EAAWb,GAAec,IAAU,IAAI;AACtD,QAAM;AAAA,IACJ,YAAAnB,IAAa;AAAA,IACb,OAAAC,IAAQ;AAAA,IACR,MAAAC,IAAO;AAAA,EACX,IAAMiB,GACEpB,IAAOqB,EAAcf,EAAc,CAAC,CAAC,EAAE;AAC7C,SAAOR,EAAuBQ,GAAeN,GAAMC,GAAYC,GAAO;AAAA,IACpE,MAAAC;AAAA,EACJ,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index386.js CHANGED
@@ -1,19 +1,15 @@
1
- import { FloatingRootStore as e } from "./index384.js";
2
- import { PopupTriggerMap as n } from "./index352.js";
3
- function r() {
4
- return new e({
5
- open: !1,
6
- transitionStatus: void 0,
7
- floatingElement: null,
8
- referenceElement: null,
9
- triggerElements: new n(),
10
- floatingId: "",
11
- syncOnly: !1,
12
- nested: !1,
13
- onOpenChange: void 0
14
- });
15
- }
1
+ import * as t from "react";
2
+ import "./index30.js";
3
+ const e = /* @__PURE__ */ t.createContext(null);
4
+ process.env.NODE_ENV !== "production" && (e.displayName = "FloatingNodeContext");
5
+ const o = /* @__PURE__ */ t.createContext(null);
6
+ process.env.NODE_ENV !== "production" && (o.displayName = "FloatingTreeContext");
7
+ const a = () => t.useContext(e)?.id || null, i = (n) => {
8
+ const r = t.useContext(o);
9
+ return n ?? r;
10
+ };
16
11
  export {
17
- r as getEmptyRootContext
12
+ a as useFloatingParentNodeId,
13
+ i as useFloatingTree
18
14
  };
19
15
  //# sourceMappingURL=index386.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index386.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js"],"sourcesContent":["import { PopupTriggerMap } from \"../../utils/popups/index.js\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.js\";\nexport function getEmptyRootContext() {\n return new FloatingRootStore({\n open: false,\n transitionStatus: undefined,\n floatingElement: null,\n referenceElement: null,\n triggerElements: new PopupTriggerMap(),\n floatingId: '',\n syncOnly: false,\n nested: false,\n onOpenChange: undefined\n });\n}"],"names":["getEmptyRootContext","FloatingRootStore","PopupTriggerMap"],"mappings":";;AAEO,SAASA,IAAsB;AACpC,SAAO,IAAIC,EAAkB;AAAA,IAC3B,MAAM;AAAA,IACN,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,iBAAiB,IAAIC,EAAe;AAAA,IACpC,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,cAAc;AAAA,EAClB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index386.js","sources":["../node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { FloatingTreeStore } from \"./FloatingTreeStore.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") FloatingNodeContext.displayName = \"FloatingNodeContext\";\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nif (process.env.NODE_ENV !== \"production\") FloatingTreeContext.displayName = \"FloatingTreeContext\";\nexport const useFloatingParentNodeId = () => React.useContext(FloatingNodeContext)?.id || null;\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nexport const useFloatingTree = externalTree => {\n const contextTree = React.useContext(FloatingTreeContext);\n return externalTree ?? contextTree;\n};\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nexport function useFloatingNodeId(externalTree) {\n const id = useId();\n const tree = useFloatingTree(externalTree);\n const parentId = useFloatingParentNodeId();\n useIsoLayoutEffect(() => {\n if (!id) {\n return undefined;\n }\n const node = {\n id,\n parentId\n };\n tree?.addNode(node);\n return () => {\n tree?.removeNode(node);\n };\n }, [tree, id, parentId]);\n return id;\n}\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingNode(props) {\n const {\n children,\n id\n } = props;\n const parentId = useFloatingParentNodeId();\n return /*#__PURE__*/_jsx(FloatingNodeContext.Provider, {\n value: React.useMemo(() => ({\n id,\n parentId\n }), [id, parentId]),\n children: children\n });\n}\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingTree(props) {\n const {\n children,\n externalTree\n } = props;\n const tree = useRefWithInit(() => externalTree ?? new FloatingTreeStore()).current;\n return /*#__PURE__*/_jsx(FloatingTreeContext.Provider, {\n value: tree,\n children: children\n });\n}"],"names":["FloatingNodeContext","React","FloatingTreeContext","useFloatingParentNodeId","useFloatingTree","externalTree","contextTree"],"mappings":";;AAQA,MAAMA,IAAmC,gBAAAC,EAAM,cAAc,IAAI;AAC7D,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;AAC7E,MAAME,IAAmC,gBAAAD,EAAM,cAAc,IAAI;AAM7D,QAAQ,IAAI,aAAa,iBAAcC,EAAoB,cAAc;AACjE,MAACC,IAA0B,MAAMF,EAAM,WAAWD,CAAmB,GAAG,MAAM,MAK7EI,IAAkB,CAAAC,MAAgB;AAC7C,QAAMC,IAAcL,EAAM,WAAWC,CAAmB;AACxD,SAAOG,KAAgBC;AACzB;","x_google_ignoreList":[0]}
package/dist/index387.js CHANGED
@@ -1,8 +1,7 @@
1
- import { constructFromSymbol as o } from "./index389.js";
2
- function c(r, n) {
3
- return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
1
+ function n(r) {
2
+ return r == null ? r : "current" in r ? r.current : r;
4
3
  }
5
4
  export {
6
- c as constructFrom
5
+ n as resolveRef
7
6
  };
8
7
  //# sourceMappingURL=index387.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index387.js","sources":["../../../node_modules/date-fns/constructFrom.js"],"sourcesContent":["import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\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 *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n"],"names":["constructFrom","date","value","constructFromSymbol"],"mappings":";AAqCO,SAASA,EAAcC,GAAMC,GAAO;AACzC,SAAI,OAAOD,KAAS,aAAmBA,EAAKC,CAAK,IAE7CD,KAAQ,OAAOA,KAAS,YAAYE,KAAuBF,IACtDA,EAAKE,CAAmB,EAAED,CAAK,IAEpCD,aAAgB,OAAa,IAAIA,EAAK,YAAYC,CAAK,IAEpD,IAAI,KAAKA,CAAK;AACvB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index387.js","sources":["../node_modules/@base-ui/react/utils/resolveRef.mjs"],"sourcesContent":["/**\n * If the provided argument is a ref object, returns its `current` value.\n * Otherwise, returns the argument itself.\n */\nexport function resolveRef(maybeRef) {\n if (maybeRef == null) {\n return maybeRef;\n }\n return 'current' in maybeRef ? maybeRef.current : maybeRef;\n}"],"names":["resolveRef","maybeRef"],"mappings":"AAIO,SAASA,EAAWC,GAAU;AACnC,SAAIA,KAAY,OACPA,IAEF,aAAaA,IAAWA,EAAS,UAAUA;AACpD;","x_google_ignoreList":[0]}
package/dist/index388.js CHANGED
@@ -1,8 +1,75 @@
1
- import { constructFrom as r } from "./index387.js";
2
- function n(o, t) {
3
- return r(t || o, o);
1
+ import { createEventEmitter as a } from "./index411.js";
2
+ import { ReactStore as m } from "./index358.js";
3
+ import { isClickLikeEvent as f } from "./index339.js";
4
+ import { createSelector as o } from "./index361.js";
5
+ const l = {
6
+ open: o((t) => t.open),
7
+ transitionStatus: o((t) => t.transitionStatus),
8
+ domReferenceElement: o((t) => t.domReferenceElement),
9
+ referenceElement: o((t) => t.positionReference ?? t.referenceElement),
10
+ floatingElement: o((t) => t.floatingElement),
11
+ floatingId: o((t) => t.floatingId)
12
+ };
13
+ class d extends m {
14
+ constructor(n) {
15
+ const {
16
+ syncOnly: e,
17
+ nested: r,
18
+ onOpenChange: s,
19
+ triggerElements: c,
20
+ ...i
21
+ } = n;
22
+ super({
23
+ ...i,
24
+ positionReference: i.referenceElement,
25
+ domReferenceElement: i.referenceElement
26
+ }, {
27
+ onOpenChange: s,
28
+ dataRef: {
29
+ current: {}
30
+ },
31
+ events: a(),
32
+ nested: r,
33
+ triggerElements: c
34
+ }, l), this.syncOnly = e;
35
+ }
36
+ /**
37
+ * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
38
+ */
39
+ syncOpenEvent = (n, e) => {
40
+ (!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
41
+ // click events to upgrade a hover-open.
42
+ e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
43
+ };
44
+ /**
45
+ * Runs the root-owned side effects for an open state change.
46
+ */
47
+ dispatchOpenChange = (n, e) => {
48
+ this.syncOpenEvent(n, e.event);
49
+ const r = {
50
+ open: n,
51
+ reason: e.reason,
52
+ nativeEvent: e.event,
53
+ nested: this.context.nested,
54
+ triggerElement: e.trigger
55
+ };
56
+ this.context.events.emit("openchange", r);
57
+ };
58
+ /**
59
+ * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
60
+ *
61
+ * @param newOpen The new open state.
62
+ * @param eventDetails Details about the event that triggered the open state change.
63
+ */
64
+ setOpen = (n, e) => {
65
+ if (this.syncOnly) {
66
+ this.context.onOpenChange?.(n, e);
67
+ return;
68
+ }
69
+ this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
70
+ };
4
71
  }
5
72
  export {
6
- n as toDate
73
+ d as FloatingRootStore
7
74
  };
8
75
  //# sourceMappingURL=index388.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index388.js","sources":["../../../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\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 argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":";AAwCO,SAASA,EAAOC,GAAUC,GAAS;AAExC,SAAOC,EAAcD,KAAWD,GAAUA,CAAQ;AACpD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index388.js","sources":["../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs"],"sourcesContent":["import { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.mjs\";\nimport { isClickLikeEvent } from \"../utils.mjs\";\nconst selectors = {\n open: createSelector(state => state.open),\n transitionStatus: createSelector(state => state.transitionStatus),\n domReferenceElement: createSelector(state => state.domReferenceElement),\n referenceElement: createSelector(state => state.positionReference ?? state.referenceElement),\n floatingElement: createSelector(state => state.floatingElement),\n floatingId: createSelector(state => state.floatingId)\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"names":["selectors","createSelector","state","FloatingRootStore","ReactStore","options","syncOnly","nested","onOpenChange","triggerElements","initialState","createEventEmitter","newOpen","event","isClickLikeEvent","eventDetails","details"],"mappings":";;;;AAGA,MAAMA,IAAY;AAAA,EAChB,MAAMC,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,qBAAqBA,EAAM,gBAAgB;AAAA,EAC3F,iBAAiBD,EAAe,CAAAC,MAASA,EAAM,eAAe;AAAA,EAC9D,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AACtD;AACO,MAAMC,UAA0BC,EAAW;AAAA,EAChD,YAAYC,GAAS;AACnB,UAAM;AAAA,MACJ,UAAAC;AAAA,MACA,QAAAC;AAAA,MACA,cAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQL;AACJ,UAAM;AAAA,MACJ,GAAGK;AAAA,MACH,mBAAmBA,EAAa;AAAA,MAChC,qBAAqBA,EAAa;AAAA,IACxC,GAAO;AAAA,MACD,cAAAF;AAAA,MACA,SAAS;AAAA,QACP,SAAS,CAAA;AAAA,MACjB;AAAA,MACM,QAAQG,EAAkB;AAAA,MAC1B,QAAAJ;AAAA,MACA,iBAAAE;AAAA,IACN,GAAOT,CAAS,GACZ,KAAK,WAAWM;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAgB,CAACM,GAASC,MAAU;AAClC,KAAI,CAACD,KAAW,CAAC,KAAK,MAAM;AAAA;AAAA,IAG5BC,KAAS,QAAQC,EAAiBD,CAAK,OACrC,KAAK,QAAQ,QAAQ,QAAQ,YAAYD,IAAUC,IAAQ;AAAA,EAE/D;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAqB,CAACD,GAASG,MAAi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