@rpcbase/ui 0.280.0 → 0.281.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 (518) hide show
  1. package/dist/components/AddressAutocompleteInput/index.d.ts +1 -1
  2. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
  3. package/dist/components/ApplePayButton/index.d.ts +1 -1
  4. package/dist/components/ApplePayButton/index.d.ts.map +1 -1
  5. package/dist/components/Checkbox/index.d.ts +1 -1
  6. package/dist/components/Checkbox/index.d.ts.map +1 -1
  7. package/dist/components/DayPickerField/index.d.ts +2 -2
  8. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  9. package/dist/components/Dialog/index.d.ts +9 -9
  10. package/dist/components/Dialog/index.d.ts.map +1 -1
  11. package/dist/components/FilesUploadField/index.d.ts +1 -1
  12. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  13. package/dist/components/HourPickerField/index.d.ts +2 -2
  14. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  15. package/dist/components/I18nField/index.d.ts +1 -1
  16. package/dist/components/I18nField/index.d.ts.map +1 -1
  17. package/dist/components/Image/index.d.ts +1 -1
  18. package/dist/components/Image/index.d.ts.map +1 -1
  19. package/dist/components/ImagesField/index.d.ts +1 -1
  20. package/dist/components/ImagesField/index.d.ts.map +1 -1
  21. package/dist/components/Input/index.d.ts +1 -1
  22. package/dist/components/Input/index.d.ts.map +1 -1
  23. package/dist/components/Notifications/NotificationsButton.d.ts +1 -1
  24. package/dist/components/Notifications/NotificationsButton.d.ts.map +1 -1
  25. package/dist/components/Notifications/NotificationsDrawer.d.ts +1 -1
  26. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  27. package/dist/components/Notifications/NotificationsSettings.d.ts +1 -1
  28. package/dist/components/Notifications/NotificationsSettings.d.ts.map +1 -1
  29. package/dist/components/PhoneNumberInput/suggestions.d.ts +3 -3
  30. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  31. package/dist/components/Select/index.d.ts +2 -2
  32. package/dist/components/Select/index.d.ts.map +1 -1
  33. package/dist/components/header/MenuPopover/index.d.ts +1 -1
  34. package/dist/components/header/MenuPopover/index.d.ts.map +1 -1
  35. package/dist/index.js +12 -12
  36. package/dist/index10.js +6 -4
  37. package/dist/index10.js.map +1 -1
  38. package/dist/index12.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index14.js.map +1 -1
  41. package/dist/index15.js.map +1 -1
  42. package/dist/index154.js +19 -7
  43. package/dist/index154.js.map +1 -1
  44. package/dist/index16.js +36 -45
  45. package/dist/index16.js.map +1 -1
  46. package/dist/index160.js +3 -3
  47. package/dist/index160.js.map +1 -1
  48. package/dist/index166.js +5 -5
  49. package/dist/index166.js.map +1 -1
  50. package/dist/index172.js +27 -25
  51. package/dist/index172.js.map +1 -1
  52. package/dist/index181.js +1 -1
  53. package/dist/index181.js.map +1 -1
  54. package/dist/index182.js +145 -162
  55. package/dist/index182.js.map +1 -1
  56. package/dist/index184.js +6 -8
  57. package/dist/index184.js.map +1 -1
  58. package/dist/index186.js +2 -8
  59. package/dist/index186.js.map +1 -1
  60. package/dist/index19.js +1 -1
  61. package/dist/index19.js.map +1 -1
  62. package/dist/index195.js +1 -1
  63. package/dist/index195.js.map +1 -1
  64. package/dist/index196.js +2 -2
  65. package/dist/index196.js.map +1 -1
  66. package/dist/index197.js +1 -1
  67. package/dist/index197.js.map +1 -1
  68. package/dist/index198.js +16 -15
  69. package/dist/index198.js.map +1 -1
  70. package/dist/index199.js +13 -17
  71. package/dist/index199.js.map +1 -1
  72. package/dist/index200.js +3 -2
  73. package/dist/index200.js.map +1 -1
  74. package/dist/index207.js +5 -90
  75. package/dist/index207.js.map +1 -1
  76. package/dist/index208.js +15 -3
  77. package/dist/index208.js.map +1 -1
  78. package/dist/index209.js +102 -22
  79. package/dist/index209.js.map +1 -1
  80. package/dist/index210.js +3 -28
  81. package/dist/index210.js.map +1 -1
  82. package/dist/index211.js +23 -19
  83. package/dist/index211.js.map +1 -1
  84. package/dist/index212.js +27 -6
  85. package/dist/index212.js.map +1 -1
  86. package/dist/index213.js +19 -14
  87. package/dist/index213.js.map +1 -1
  88. package/dist/index214.js +5 -6
  89. package/dist/index214.js.map +1 -1
  90. package/dist/index215.js +14 -26
  91. package/dist/index215.js.map +1 -1
  92. package/dist/index216.js +7 -22
  93. package/dist/index216.js.map +1 -1
  94. package/dist/index217.js +27 -6
  95. package/dist/index217.js.map +1 -1
  96. package/dist/index218.js +23 -5
  97. package/dist/index218.js.map +1 -1
  98. package/dist/index219.js +6 -4
  99. package/dist/index219.js.map +1 -1
  100. package/dist/index220.js +5 -4
  101. package/dist/index220.js.map +1 -1
  102. package/dist/index221.js +4 -24
  103. package/dist/index221.js.map +1 -1
  104. package/dist/index222.js +4 -3
  105. package/dist/index222.js.map +1 -1
  106. package/dist/index223.js +21 -21
  107. package/dist/index223.js.map +1 -1
  108. package/dist/index224.js +3 -23
  109. package/dist/index224.js.map +1 -1
  110. package/dist/index225.js +23 -6
  111. package/dist/index225.js.map +1 -1
  112. package/dist/index226.js +22 -9
  113. package/dist/index226.js.map +1 -1
  114. package/dist/index227.js +5 -17
  115. package/dist/index227.js.map +1 -1
  116. package/dist/index228.js +8 -49
  117. package/dist/index228.js.map +1 -1
  118. package/dist/index229.js +18 -5
  119. package/dist/index229.js.map +1 -1
  120. package/dist/index230.js +50 -19
  121. package/dist/index230.js.map +1 -1
  122. package/dist/index231.js +20 -28
  123. package/dist/index231.js.map +1 -1
  124. package/dist/index232.js +27 -104
  125. package/dist/index232.js.map +1 -1
  126. package/dist/index233.js +98 -33
  127. package/dist/index233.js.map +1 -1
  128. package/dist/index234.js +28 -113
  129. package/dist/index234.js.map +1 -1
  130. package/dist/index235.js +117 -11
  131. package/dist/index235.js.map +1 -1
  132. package/dist/index236.js +12 -4
  133. package/dist/index236.js.map +1 -1
  134. package/dist/index237.js +4 -15
  135. package/dist/index237.js.map +1 -1
  136. package/dist/index238.js +13 -62
  137. package/dist/index238.js.map +1 -1
  138. package/dist/index239.js +64 -9
  139. package/dist/index239.js.map +1 -1
  140. package/dist/index240.js +10 -106
  141. package/dist/index240.js.map +1 -1
  142. package/dist/index241.js +107 -13
  143. package/dist/index241.js.map +1 -1
  144. package/dist/index242.js +16 -13
  145. package/dist/index242.js.map +1 -1
  146. package/dist/index243.js +13 -5
  147. package/dist/index243.js.map +1 -1
  148. package/dist/index244.js +4 -316
  149. package/dist/index244.js.map +1 -1
  150. package/dist/index245.js +315 -58
  151. package/dist/index245.js.map +1 -1
  152. package/dist/index246.js +58 -223
  153. package/dist/index246.js.map +1 -1
  154. package/dist/index247.js +215 -318
  155. package/dist/index247.js.map +1 -1
  156. package/dist/index248.js +250 -306
  157. package/dist/index248.js.map +1 -1
  158. package/dist/index249.js +308 -173
  159. package/dist/index249.js.map +1 -1
  160. package/dist/index250.js +178 -7
  161. package/dist/index250.js.map +1 -1
  162. package/dist/index251.js +8 -15
  163. package/dist/index251.js.map +1 -1
  164. package/dist/index252.js +41 -5
  165. package/dist/index252.js.map +1 -1
  166. package/dist/index253.js +46 -38
  167. package/dist/index253.js.map +1 -1
  168. package/dist/index254.js +7 -50
  169. package/dist/index254.js.map +1 -1
  170. package/dist/index255.js +49 -6
  171. package/dist/index255.js.map +1 -1
  172. package/dist/index256.js +48 -46
  173. package/dist/index256.js.map +1 -1
  174. package/dist/index257.js +6 -51
  175. package/dist/index257.js.map +1 -1
  176. package/dist/index258.js +10 -9
  177. package/dist/index258.js.map +1 -1
  178. package/dist/index259.js +60 -8
  179. package/dist/index259.js.map +1 -1
  180. package/dist/index26.js.map +1 -1
  181. package/dist/index260.js +41 -60
  182. package/dist/index260.js.map +1 -1
  183. package/dist/index261.js +88 -34
  184. package/dist/index261.js.map +1 -1
  185. package/dist/index262.js +47 -94
  186. package/dist/index262.js.map +1 -1
  187. package/dist/index263.js +36 -49
  188. package/dist/index263.js.map +1 -1
  189. package/dist/index264.js +45 -32
  190. package/dist/index264.js.map +1 -1
  191. package/dist/index265.js +47 -46
  192. package/dist/index265.js.map +1 -1
  193. package/dist/index266.js +18 -48
  194. package/dist/index266.js.map +1 -1
  195. package/dist/index267.js +174 -15
  196. package/dist/index267.js.map +1 -1
  197. package/dist/index268.js +47 -169
  198. package/dist/index268.js.map +1 -1
  199. package/dist/index269.js +17 -34
  200. package/dist/index269.js.map +1 -1
  201. package/dist/index270.js +59 -10
  202. package/dist/index270.js.map +1 -1
  203. package/dist/index271.js +10 -66
  204. package/dist/index271.js.map +1 -1
  205. package/dist/index272.js +4 -4
  206. package/dist/index273.js +71 -69
  207. package/dist/index273.js.map +1 -1
  208. package/dist/index274.js +158 -152
  209. package/dist/index274.js.map +1 -1
  210. package/dist/index275.js +7 -13
  211. package/dist/index275.js.map +1 -1
  212. package/dist/index276.js +12 -5
  213. package/dist/index276.js.map +1 -1
  214. package/dist/index277.js +12 -6
  215. package/dist/index277.js.map +1 -1
  216. package/dist/index278.js +11 -12
  217. package/dist/index278.js.map +1 -1
  218. package/dist/index279.js +65 -9
  219. package/dist/index279.js.map +1 -1
  220. package/dist/index280.js +6 -74
  221. package/dist/index280.js.map +1 -1
  222. package/dist/index281.js +25 -6
  223. package/dist/index281.js.map +1 -1
  224. package/dist/index282.js +24 -24
  225. package/dist/index282.js.map +1 -1
  226. package/dist/index283.js +125 -24
  227. package/dist/index283.js.map +1 -1
  228. package/dist/index284.js +52 -115
  229. package/dist/index284.js.map +1 -1
  230. package/dist/index285.js +59 -55
  231. package/dist/index285.js.map +1 -1
  232. package/dist/index286.js +48 -61
  233. package/dist/index286.js.map +1 -1
  234. package/dist/index287.js +5 -48
  235. package/dist/index287.js.map +1 -1
  236. package/dist/index288.js +14 -8
  237. package/dist/index288.js.map +1 -1
  238. package/dist/index289.js +18 -14
  239. package/dist/index289.js.map +1 -1
  240. package/dist/index290.js +10 -17
  241. package/dist/index290.js.map +1 -1
  242. package/dist/index291.js +23 -11
  243. package/dist/index291.js.map +1 -1
  244. package/dist/index292.js +52 -25
  245. package/dist/index292.js.map +1 -1
  246. package/dist/index293.js +6 -52
  247. package/dist/index293.js.map +1 -1
  248. package/dist/index294.js +137 -5
  249. package/dist/index294.js.map +1 -1
  250. package/dist/index295.js +59 -149
  251. package/dist/index295.js.map +1 -1
  252. package/dist/index296.js +90 -49
  253. package/dist/index296.js.map +1 -1
  254. package/dist/index297.js +11 -117
  255. package/dist/index297.js.map +1 -1
  256. package/dist/index298.js +863 -11
  257. package/dist/index298.js.map +1 -1
  258. package/dist/index299.js +21 -865
  259. package/dist/index299.js.map +1 -1
  260. package/dist/index3.js.map +1 -1
  261. package/dist/index300.js +417 -27
  262. package/dist/index300.js.map +1 -1
  263. package/dist/index301.js +774 -483
  264. package/dist/index301.js.map +1 -1
  265. package/dist/index302.js +7436 -803
  266. package/dist/index302.js.map +1 -1
  267. package/dist/index303.js +7 -7429
  268. package/dist/index303.js.map +1 -1
  269. package/dist/index304.js +12 -6
  270. package/dist/index304.js.map +1 -1
  271. package/dist/index305.js +5 -12
  272. package/dist/index305.js.map +1 -1
  273. package/dist/index306.js +3 -3
  274. package/dist/index306.js.map +1 -1
  275. package/dist/index307.js +469 -5
  276. package/dist/index307.js.map +1 -1
  277. package/dist/index308.js +32 -464
  278. package/dist/index308.js.map +1 -1
  279. package/dist/index309.js +18 -36
  280. package/dist/index309.js.map +1 -1
  281. package/dist/index310.js +28 -17
  282. package/dist/index310.js.map +1 -1
  283. package/dist/index311.js +4 -30
  284. package/dist/index311.js.map +1 -1
  285. package/dist/index312.js +59 -4
  286. package/dist/index312.js.map +1 -1
  287. package/dist/index313.js +11 -59
  288. package/dist/index313.js.map +1 -1
  289. package/dist/index314.js +5 -9
  290. package/dist/index314.js.map +1 -1
  291. package/dist/index315.js +9 -5
  292. package/dist/index315.js.map +1 -1
  293. package/dist/index316.js +12 -9
  294. package/dist/index316.js.map +1 -1
  295. package/dist/index317.js +3 -13
  296. package/dist/index317.js.map +1 -1
  297. package/dist/index318.js +17 -3
  298. package/dist/index318.js.map +1 -1
  299. package/dist/index319.js +23 -14
  300. package/dist/index319.js.map +1 -1
  301. package/dist/index320.js +39 -23
  302. package/dist/index320.js.map +1 -1
  303. package/dist/index321.js +5 -41
  304. package/dist/index321.js.map +1 -1
  305. package/dist/index322.js +25 -5
  306. package/dist/index322.js.map +1 -1
  307. package/dist/index323.js +18 -24
  308. package/dist/index323.js.map +1 -1
  309. package/dist/index324.js +32 -17
  310. package/dist/index324.js.map +1 -1
  311. package/dist/index325.js +5 -34
  312. package/dist/index325.js.map +1 -1
  313. package/dist/index326.js +9 -5
  314. package/dist/index326.js.map +1 -1
  315. package/dist/index327.js +7 -8
  316. package/dist/index327.js.map +1 -1
  317. package/dist/index328.js +9 -8
  318. package/dist/index328.js.map +1 -1
  319. package/dist/index329.js +10 -9
  320. package/dist/index329.js.map +1 -1
  321. package/dist/index330.js +7 -10
  322. package/dist/index330.js.map +1 -1
  323. package/dist/index331.js +75 -7
  324. package/dist/index331.js.map +1 -1
  325. package/dist/index332.js +153 -66
  326. package/dist/index332.js.map +1 -1
  327. package/dist/index333.js +99 -147
  328. package/dist/index333.js.map +1 -1
  329. package/dist/index334.js +13 -113
  330. package/dist/index334.js.map +1 -1
  331. package/dist/index335.js +78 -12
  332. package/dist/index335.js.map +1 -1
  333. package/dist/index336.js +23 -57
  334. package/dist/index336.js.map +1 -1
  335. package/dist/index337.js +12 -45
  336. package/dist/index337.js.map +1 -1
  337. package/dist/index338.js +16 -13
  338. package/dist/index338.js.map +1 -1
  339. package/dist/index339.js +100 -15
  340. package/dist/index339.js.map +1 -1
  341. package/dist/index340.js +50 -95
  342. package/dist/index340.js.map +1 -1
  343. package/dist/index341.js +57 -5
  344. package/dist/index341.js.map +1 -1
  345. package/dist/index342.js +41 -78
  346. package/dist/index342.js.map +1 -1
  347. package/dist/index343.js +100 -58
  348. package/dist/index343.js.map +1 -1
  349. package/dist/index344.js +46 -104
  350. package/dist/index344.js.map +1 -1
  351. package/dist/index345.js +39 -51
  352. package/dist/index345.js.map +1 -1
  353. package/dist/index346.js +143 -42
  354. package/dist/index346.js.map +1 -1
  355. package/dist/index347.js +122 -123
  356. package/dist/index347.js.map +1 -1
  357. package/dist/index348.js +224 -108
  358. package/dist/index348.js.map +1 -1
  359. package/dist/index349.js +158 -174
  360. package/dist/index349.js.map +1 -1
  361. package/dist/index350.js +213 -144
  362. package/dist/index350.js.map +1 -1
  363. package/dist/index351.js +5 -309
  364. package/dist/index351.js.map +1 -1
  365. package/dist/index352.js +6 -5
  366. package/dist/index352.js.map +1 -1
  367. package/dist/index353.js +7 -6
  368. package/dist/index353.js.map +1 -1
  369. package/dist/index354.js +4 -5
  370. package/dist/index354.js.map +1 -1
  371. package/dist/index355.js +4 -4
  372. package/dist/index355.js.map +1 -1
  373. package/dist/index356.js +21 -6
  374. package/dist/index356.js.map +1 -1
  375. package/dist/index357.js +10 -21
  376. package/dist/index357.js.map +1 -1
  377. package/dist/index358.js +128 -10
  378. package/dist/index358.js.map +1 -1
  379. package/dist/index359.js +36 -122
  380. package/dist/index359.js.map +1 -1
  381. package/dist/index360.js +64 -38
  382. package/dist/index360.js.map +1 -1
  383. package/dist/index361.js +115 -66
  384. package/dist/index361.js.map +1 -1
  385. package/dist/index362.js +485 -112
  386. package/dist/index362.js.map +1 -1
  387. package/dist/index363.js +7 -490
  388. package/dist/index363.js.map +1 -1
  389. package/dist/index364.js +1 -1
  390. package/dist/index364.js.map +1 -1
  391. package/dist/index367.js +2 -9
  392. package/dist/index367.js.map +1 -1
  393. package/dist/index368.js +26 -5
  394. package/dist/index368.js.map +1 -1
  395. package/dist/index369.js +43 -27
  396. package/dist/index369.js.map +1 -1
  397. package/dist/index370.js +35 -46
  398. package/dist/index370.js.map +1 -1
  399. package/dist/index371.js +16 -27
  400. package/dist/index371.js.map +1 -1
  401. package/dist/index372.js +41 -16
  402. package/dist/index372.js.map +1 -1
  403. package/dist/index373.js +11 -42
  404. package/dist/index373.js.map +1 -1
  405. package/dist/index374.js +10 -14
  406. package/dist/index374.js.map +1 -1
  407. package/dist/index375.js +51 -9
  408. package/dist/index375.js.map +1 -1
  409. package/dist/index376.js +40 -53
  410. package/dist/index376.js.map +1 -1
  411. package/dist/index377.js +17 -43
  412. package/dist/index377.js.map +1 -1
  413. package/dist/index378.js +4 -15
  414. package/dist/index378.js.map +1 -1
  415. package/dist/index379.js +4 -4
  416. package/dist/index379.js.map +1 -1
  417. package/dist/index380.js +9 -4
  418. package/dist/index380.js.map +1 -1
  419. package/dist/index381.js +304 -9
  420. package/dist/index381.js.map +1 -1
  421. package/dist/index382.js +4 -339
  422. package/dist/index382.js.map +1 -1
  423. package/dist/index383.js +21 -5
  424. package/dist/index383.js.map +1 -1
  425. package/dist/index384.js +106 -16
  426. package/dist/index384.js.map +1 -1
  427. package/dist/index385.js +19 -109
  428. package/dist/index385.js.map +1 -1
  429. package/dist/index386.js +18 -18
  430. package/dist/index386.js.map +1 -1
  431. package/dist/index387.js +14 -19
  432. package/dist/index387.js.map +1 -1
  433. package/dist/index388.js +12 -4
  434. package/dist/index388.js.map +1 -1
  435. package/dist/index389.js +113 -20
  436. package/dist/index389.js.map +1 -1
  437. package/dist/index390.js +5 -11
  438. package/dist/index390.js.map +1 -1
  439. package/dist/index391.js +28 -85
  440. package/dist/index391.js.map +1 -1
  441. package/dist/index392.js +9 -9
  442. package/dist/index392.js.map +1 -1
  443. package/dist/index393.js +6 -29
  444. package/dist/index393.js.map +1 -1
  445. package/dist/index394.js +254 -10
  446. package/dist/index394.js.map +1 -1
  447. package/dist/index395.js +12 -6
  448. package/dist/index395.js.map +1 -1
  449. package/dist/index396.js +11 -252
  450. package/dist/index396.js.map +1 -1
  451. package/dist/index397.js +6 -11
  452. package/dist/index397.js.map +1 -1
  453. package/dist/index398.js +22 -10
  454. package/dist/index398.js.map +1 -1
  455. package/dist/index399.js +22 -6
  456. package/dist/index399.js.map +1 -1
  457. package/dist/index4.js.map +1 -1
  458. package/dist/index400.js +103 -21
  459. package/dist/index400.js.map +1 -1
  460. package/dist/index401.js +15 -23
  461. package/dist/index401.js.map +1 -1
  462. package/dist/index402.js +11 -108
  463. package/dist/index402.js.map +1 -1
  464. package/dist/index403.js +10 -15
  465. package/dist/index403.js.map +1 -1
  466. package/dist/index404.js +237 -10
  467. package/dist/index404.js.map +1 -1
  468. package/dist/index405.js +27 -9
  469. package/dist/index405.js.map +1 -1
  470. package/dist/index406.js +33 -238
  471. package/dist/index406.js.map +1 -1
  472. package/dist/index407.js +11 -30
  473. package/dist/index407.js.map +1 -1
  474. package/dist/index408.js +118 -48
  475. package/dist/index408.js.map +1 -1
  476. package/dist/index409.js +39 -11
  477. package/dist/index409.js.map +1 -1
  478. package/dist/index410.js +18 -121
  479. package/dist/index410.js.map +1 -1
  480. package/dist/index411.js +11 -39
  481. package/dist/index411.js.map +1 -1
  482. package/dist/index412.js +21 -24
  483. package/dist/index412.js.map +1 -1
  484. package/dist/index413.js +17 -11
  485. package/dist/index413.js.map +1 -1
  486. package/dist/index414.js +10 -20
  487. package/dist/index414.js.map +1 -1
  488. package/dist/index415.js +4 -17
  489. package/dist/index415.js.map +1 -1
  490. package/dist/index416.js +300 -14
  491. package/dist/index416.js.map +1 -1
  492. package/dist/index417.js +61 -323
  493. package/dist/index417.js.map +1 -1
  494. package/dist/index418.js +4 -63
  495. package/dist/index418.js.map +1 -1
  496. package/dist/index419.js +28 -4
  497. package/dist/index419.js.map +1 -1
  498. package/dist/index420.js +468 -25
  499. package/dist/index420.js.map +1 -1
  500. package/dist/index421.js +250 -452
  501. package/dist/index421.js.map +1 -1
  502. package/dist/index6.js.map +1 -1
  503. package/dist/index7.js +91 -133
  504. package/dist/index7.js.map +1 -1
  505. package/dist/index70.js +2 -2
  506. package/dist/index70.js.map +1 -1
  507. package/dist/index71.js +11 -4
  508. package/dist/index71.js.map +1 -1
  509. package/dist/index72.js +1 -3
  510. package/dist/index72.js.map +1 -1
  511. package/dist/index8.js.map +1 -1
  512. package/dist/index9.js +16 -19
  513. package/dist/index9.js.map +1 -1
  514. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  516. package/package.json +15 -15
  517. package/dist/index422.js +0 -272
  518. package/dist/index422.js.map +0 -1
package/dist/index241.js CHANGED
@@ -1,19 +1,113 @@
1
- //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
2
- function e() {
3
- let e = /* @__PURE__ */ new Map();
4
- return {
5
- emit(t, n) {
6
- e.get(t)?.forEach((e) => e(n));
7
- },
8
- on(t, n) {
9
- e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
10
- },
11
- off(t, n) {
12
- e.get(t)?.delete(n);
1
+ "use client";
2
+ import { EMPTY_OBJECT as e } from "./index191.js";
3
+ import { useRenderElement as t } from "./index196.js";
4
+ import { isNode as n } from "./index200.js";
5
+ import { useStableCallback as r } from "./index202.js";
6
+ import { useIsoLayoutEffect as i } from "./index204.js";
7
+ import "./index210.js";
8
+ import { createChangeEventDetails as a } from "./index211.js";
9
+ import { useId as o } from "./index213.js";
10
+ import { addEventListener as s } from "./index227.js";
11
+ import { mergeCleanups as c } from "./index228.js";
12
+ import { FocusGuard as l } from "./index232.js";
13
+ import { disableFocusInside as u, enableFocusInside as d, getNextTabbable as f, getPreviousTabbable as p, isOutsideEvent as m } from "./index235.js";
14
+ import { createAttribute as h } from "./index237.js";
15
+ import { ownerVisuallyHidden as g } from "./index240.js";
16
+ import * as _ from "react";
17
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
18
+ import * as b from "react-dom";
19
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
20
+ var x = /*#__PURE__*/ _.createContext(null);
21
+ process.env.NODE_ENV !== "production" && (x.displayName = "PortalContext");
22
+ var S = () => _.useContext(x), C = h("portal");
23
+ function w(a = {}) {
24
+ let { ref: s, container: c, componentProps: l = e, elementProps: u } = a, d = o(), f = S()?.portalNode, [p, m] = _.useState(null), [h, g] = _.useState(null), v = r((e) => {
25
+ e !== null && g(e);
26
+ }), y = _.useRef(null);
27
+ i(() => {
28
+ if (c === null) {
29
+ y.current && (y.current = null, g(null), m(null));
30
+ return;
31
+ }
32
+ let e = (c && (n(c) ? c : c.current)) ?? f ?? document.body;
33
+ if (e == null) {
34
+ y.current && (y.current = null, g(null), m(null));
35
+ return;
13
36
  }
37
+ y.current !== e && (y.current = e, g(null), m(e));
38
+ }, [c, f]);
39
+ let x = t("div", l, {
40
+ ref: [s, v],
41
+ props: [{
42
+ id: d,
43
+ [C]: ""
44
+ }, u]
45
+ }), w = p && x ? /*#__PURE__*/ b.createPortal(x, p) : null;
46
+ return {
47
+ node: h,
48
+ nodeId: /*#__PURE__*/ _.isValidElement(x) ? x.props.id : void 0,
49
+ subtree: w
14
50
  };
15
51
  }
52
+ var T = /*#__PURE__*/ _.forwardRef(function(e, t) {
53
+ let { render: n, className: r, style: o, children: h, container: S, ...C } = e, { node: T, nodeId: E, subtree: D } = w({
54
+ container: S,
55
+ ref: t,
56
+ componentProps: e,
57
+ elementProps: C
58
+ }), O = _.useRef(null), k = _.useRef(null), A = _.useRef(null), j = _.useRef(null), [M, N] = _.useState(null), P = _.useRef(!1), F = M?.modal, I = M?.open, L = !!M && !M.modal && M.open && !!T;
59
+ _.useEffect(() => {
60
+ if (!T || F) return;
61
+ function e(e) {
62
+ T && e.relatedTarget && m(e) && (e.type === "focusin" ? P.current &&= (d(T), !1) : (u(T), P.current = !0));
63
+ }
64
+ return c(s(T, "focusin", e, !0), s(T, "focusout", e, !0));
65
+ }, [T, F]), i(() => {
66
+ !T || I !== !0 || !P.current || (d(T), P.current = !1);
67
+ }, [I, T]);
68
+ let R = _.useMemo(() => ({
69
+ beforeOutsideRef: O,
70
+ afterOutsideRef: k,
71
+ beforeInsideRef: A,
72
+ afterInsideRef: j,
73
+ portalNode: T,
74
+ setFocusManagerState: N
75
+ }), [T]);
76
+ return /*#__PURE__*/ y(_.Fragment, { children: [D, /*#__PURE__*/ y(x.Provider, {
77
+ value: R,
78
+ children: [
79
+ L && T && /*#__PURE__*/ v(l, {
80
+ "data-type": "outside",
81
+ ref: O,
82
+ onFocus: (e) => {
83
+ if (m(e, T)) A.current?.focus();
84
+ else {
85
+ let e = M ? M.domReference : null;
86
+ p(e)?.focus();
87
+ }
88
+ }
89
+ }),
90
+ L && T && /*#__PURE__*/ v("span", {
91
+ "aria-owns": E,
92
+ style: g
93
+ }),
94
+ T && /*#__PURE__*/ b.createPortal(h, T),
95
+ L && T && /*#__PURE__*/ v(l, {
96
+ "data-type": "outside",
97
+ ref: k,
98
+ onFocus: (e) => {
99
+ if (m(e, T)) j.current?.focus();
100
+ else {
101
+ let t = M ? M.domReference : null;
102
+ f(t)?.focus(), M?.closeOnFocusOut && M?.onOpenChange(!1, a("focus-out", e.nativeEvent));
103
+ }
104
+ }
105
+ })
106
+ ]
107
+ })] });
108
+ });
109
+ process.env.NODE_ENV !== "production" && (T.displayName = "FloatingPortal");
16
110
  //#endregion
17
- export { e as createEventEmitter };
111
+ export { T as FloatingPortal, w as useFloatingPortalNode, S as usePortalContext };
18
112
 
19
113
  //# sourceMappingURL=index241.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index241.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs"],"sourcesContent":["export function createEventEmitter() {\n const map = new Map();\n return {\n emit(event, data) {\n map.get(event)?.forEach(listener => listener(data));\n },\n on(event, listener) {\n if (!map.has(event)) {\n map.set(event, new Set());\n }\n map.get(event).add(listener);\n },\n off(event, listener) {\n map.get(event)?.delete(listener);\n }\n };\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,IAAqB;CACnC,IAAM,oBAAM,IAAI,IAAI;CACpB,OAAO;EACL,KAAK,GAAO,GAAM;GAChB,EAAI,IAAI,CAAK,CAAC,EAAE,SAAQ,MAAY,EAAS,CAAI,CAAC;EACpD;EACA,GAAG,GAAO,GAAU;GAIlB,AAHK,EAAI,IAAI,CAAK,KAChB,EAAI,IAAI,mBAAO,IAAI,IAAI,CAAC,GAE1B,EAAI,IAAI,CAAK,CAAC,CAAC,IAAI,CAAQ;EAC7B;EACA,IAAI,GAAO,GAAU;GACnB,EAAI,IAAI,CAAK,CAAC,EAAE,OAAO,CAAQ;EACjC;CACF;AACF"}
1
+ {"version":3,"file":"index241.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { isNode } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from \"../utils/tabbable.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { ownerVisuallyHidden } from \"../../internals/constants.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") PortalContext.displayName = \"PortalContext\";\nexport const usePortalContext = () => React.useContext(PortalContext);\nconst attr = createAttribute('portal');\nexport function useFloatingPortalNode(props = {}) {\n const {\n ref,\n container: containerProp,\n componentProps = EMPTY_OBJECT,\n elementProps\n } = props;\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const parentPortalNode = portalContext?.portalNode;\n const [containerElement, setContainerElement] = React.useState(null);\n const [portalNode, setPortalNode] = React.useState(null);\n const setPortalNodeRef = useStableCallback(node => {\n if (node !== null) {\n // the useIsoLayoutEffect below watching containerProp / parentPortalNode\n // sets setPortalNode(null) when the container becomes null or changes.\n // So even though the ref callback now ignores null, the portal node still gets cleared.\n setPortalNode(node);\n }\n });\n const containerRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n // Wait for the container to be resolved if explicitly `null`.\n if (containerProp === null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;\n if (resolvedContainer == null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n if (containerRef.current !== resolvedContainer) {\n containerRef.current = resolvedContainer;\n setPortalNode(null);\n setContainerElement(resolvedContainer);\n }\n }, [containerProp, parentPortalNode]);\n const portalElement = useRenderElement('div', componentProps, {\n ref: [ref, setPortalNodeRef],\n props: [{\n id: uniqueId,\n [attr]: ''\n }, elementProps]\n });\n\n // This `createPortal` call injects `portalElement` into the `container`.\n // Another call inside `FloatingPortal`/`FloatingPortalLite` then injects the children into `portalElement`.\n const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ReactDOM.createPortal(portalElement, containerElement) : null;\n return {\n node: portalNode,\n // `id` and `render` props can override or remove the generated ID. Use the exact\n // rendered value so `aria-owns` never points at an ID absent from the DOM.\n nodeId: /*#__PURE__*/React.isValidElement(portalElement) ? portalElement.props.id : undefined,\n subtree: portalSubtree\n };\n}\n\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n * @internal\n */\nexport const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPortal(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n children,\n container,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n nodeId: portalNodeId,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const focusInsideDisabledRef = React.useRef(false);\n const modal = focusManagerState?.modal;\n const open = focusManagerState?.open;\n const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || modal) {\n return undefined;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && event.relatedTarget && isOutsideEvent(event)) {\n if (event.type === 'focusin') {\n if (focusInsideDisabledRef.current) {\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }\n } else {\n disableFocusInside(portalNode);\n focusInsideDisabledRef.current = true;\n }\n }\n }\n\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));\n }, [portalNode, modal]);\n useIsoLayoutEffect(() => {\n if (!portalNode || open !== true || !focusInsideDisabledRef.current) {\n return;\n }\n\n // Restore tabbability before the focus manager's queued focus-on-open step runs.\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }, [open, portalNode]);\n const portalContextValue = React.useMemo(() => ({\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [portalNode]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, /*#__PURE__*/_jsxs(PortalContext.Provider, {\n value: portalContextValue,\n children: [shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n beforeInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(\"span\", {\n \"aria-owns\": portalNodeId,\n style: ownerVisuallyHidden\n }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n afterInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n if (focusManagerState?.closeOnFocusOut) {\n focusManagerState?.onOpenChange(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n }\n }\n }\n })]\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortal.displayName = \"FloatingPortal\";"],"x_google_ignoreList":[0],"mappings":"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"}
package/dist/index242.js CHANGED
@@ -1,16 +1,19 @@
1
- "use client";
2
- import * as e from "react";
3
- import "react/jsx-runtime";
4
- //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
5
- var t = /*#__PURE__*/ e.createContext(null);
6
- process.env.NODE_ENV !== "production" && (t.displayName = "FloatingNodeContext");
7
- var n = /*#__PURE__*/ e.createContext(null);
8
- process.env.NODE_ENV !== "production" && (n.displayName = "FloatingTreeContext");
9
- var r = () => e.useContext(t)?.id || null, i = (t) => {
10
- let r = e.useContext(n);
11
- return t ?? r;
12
- };
1
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
2
+ function e() {
3
+ let e = /* @__PURE__ */ new Map();
4
+ return {
5
+ emit(t, n) {
6
+ e.get(t)?.forEach((e) => e(n));
7
+ },
8
+ on(t, n) {
9
+ e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
10
+ },
11
+ off(t, n) {
12
+ e.get(t)?.delete(n);
13
+ }
14
+ };
15
+ }
13
16
  //#endregion
14
- export { r as useFloatingParentNodeId, i as useFloatingTree };
17
+ export { e as createEventEmitter };
15
18
 
16
19
  //# sourceMappingURL=index242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index242.js","names":["React"],"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}"],"x_google_ignoreList":[0],"mappings":";;;;AAQA,IAAM,IAAmC,gBAAM,cAAc,IAAI;AACjE,QAAA,IAAA,aAA6B,iBAAc,EAAoB,cAAc;AAC7E,IAAM,IAAmC,gBAAM,cAAc,IAAI;AAMjE,QAAA,IAAA,aAA6B,iBAAc,EAAoB,cAAc;AAC7E,IAAa,UAAgCA,EAAM,WAAW,CAAmB,CAAC,EAAE,MAAM,MAK7E,KAAkB,MAAgB;CAC7C,IAAM,IAAcA,EAAM,WAAW,CAAmB;CACxD,OAAO,KAAgB;AACzB"}
1
+ {"version":3,"file":"index242.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs"],"sourcesContent":["export function createEventEmitter() {\n const map = new Map();\n return {\n emit(event, data) {\n map.get(event)?.forEach(listener => listener(data));\n },\n on(event, listener) {\n if (!map.has(event)) {\n map.set(event, new Set());\n }\n map.get(event).add(listener);\n },\n off(event, listener) {\n map.get(event)?.delete(listener);\n }\n };\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,IAAqB;CACnC,IAAM,oBAAM,IAAI,IAAI;CACpB,OAAO;EACL,KAAK,GAAO,GAAM;GAChB,EAAI,IAAI,CAAK,CAAC,EAAE,SAAQ,MAAY,EAAS,CAAI,CAAC;EACpD;EACA,GAAG,GAAO,GAAU;GAIlB,AAHK,EAAI,IAAI,CAAK,KAChB,EAAI,IAAI,mBAAO,IAAI,IAAI,CAAC,GAE1B,EAAI,IAAI,CAAK,CAAC,CAAC,IAAI,CAAQ;EAC7B;EACA,IAAI,GAAO,GAAU;GACnB,EAAI,IAAI,CAAK,CAAC,EAAE,OAAO,CAAQ;EACjC;CACF;AACF"}
package/dist/index243.js CHANGED
@@ -1,8 +1,16 @@
1
- //#region ../../node_modules/@base-ui/react/utils/resolveRef.mjs
2
- function e(e) {
3
- return e == null ? e : "current" in e ? e.current : e;
4
- }
1
+ "use client";
2
+ import * as e from "react";
3
+ import "react/jsx-runtime";
4
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
5
+ var t = /*#__PURE__*/ e.createContext(null);
6
+ process.env.NODE_ENV !== "production" && (t.displayName = "FloatingNodeContext");
7
+ var n = /*#__PURE__*/ e.createContext(null);
8
+ process.env.NODE_ENV !== "production" && (n.displayName = "FloatingTreeContext");
9
+ var r = () => e.useContext(t)?.id || null, i = (t) => {
10
+ let r = e.useContext(n);
11
+ return t ?? r;
12
+ };
5
13
  //#endregion
6
- export { e as resolveRef };
14
+ export { r as useFloatingParentNodeId, i as useFloatingTree };
7
15
 
8
16
  //# sourceMappingURL=index243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index243.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";AAIA,SAAgB,EAAW,GAAU;CAInC,OAHI,KAAY,OACP,IAEF,aAAa,IAAW,EAAS,UAAU;AACpD"}
1
+ {"version":3,"file":"index243.js","names":["React"],"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}"],"x_google_ignoreList":[0],"mappings":";;;;AAQA,IAAM,IAAmC,gBAAM,cAAc,IAAI;AACjE,QAAA,IAAA,aAA6B,iBAAc,EAAoB,cAAc;AAC7E,IAAM,IAAmC,gBAAM,cAAc,IAAI;AAMjE,QAAA,IAAA,aAA6B,iBAAc,EAAoB,cAAc;AAC7E,IAAa,UAAgCA,EAAM,WAAW,CAAmB,CAAC,EAAE,MAAM,MAK7E,KAAkB,MAAgB;CAC7C,IAAM,IAAcA,EAAM,WAAW,CAAmB;CACxD,OAAO,KAAgB;AACzB"}
package/dist/index244.js CHANGED
@@ -1,320 +1,8 @@
1
- "use client";
2
- import { useMergedRefs as e } from "./index186.js";
3
- import { getNodeName as t, getWindow as n, isHTMLElement as r } from "./index200.js";
4
- import { useStableCallback as i } from "./index202.js";
5
- import { useIsoLayoutEffect as a } from "./index204.js";
6
- import { focusOut as o } from "./index208.js";
7
- import { createChangeEventDetails as s } from "./index209.js";
8
- import { useTimeout as c } from "./index215.js";
9
- import { webkit as l } from "./index218.js";
10
- import { isVirtualClick as ee, isVirtualPointerEvent as te, stopEvent as u } from "./index221.js";
11
- import { activeElement as d, contains as f, getTarget as p } from "./index223.js";
12
- import { getFloatingFocusElement as ne, isTypeableCombobox as m, isTypeableElement as re } from "./index224.js";
13
- import { addEventListener as h } from "./index225.js";
14
- import { mergeCleanups as ie } from "./index226.js";
15
- import { useValueAsRef as g } from "./index227.js";
16
- import { useAnimationFrame as ae } from "./index228.js";
17
- import { ownerDocument as _ } from "./index229.js";
18
- import { FocusGuard as oe } from "./index231.js";
19
- import { isElementVisible as se } from "./index233.js";
20
- import { focusable as v, getNextTabbable as ce, getPreviousTabbable as le, isOutsideEvent as ue, isTabbable as y, tabbable as de } from "./index234.js";
21
- import { getNodeAncestors as fe, getNodeChildren as pe } from "./index235.js";
22
- import { createAttribute as me } from "./index236.js";
23
- import { enqueueFocus as b } from "./index237.js";
24
- import { markOthers as he } from "./index238.js";
25
- import "./index239.js";
26
- import { usePortalContext as ge } from "./index240.js";
27
- import { useFloatingTree as _e } from "./index242.js";
28
- import { resolveRef as x } from "./index243.js";
29
- import * as S from "react";
30
- import { jsx as ve, jsxs as ye } from "react/jsx-runtime";
31
- //#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
32
- function be(e, t) {
33
- let r = n(p(e));
34
- return e instanceof r.KeyboardEvent ? "keyboard" : e instanceof r.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof r.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
35
- }
36
- var C = 20, w = [];
37
- function T() {
38
- w = w.filter((e) => e.deref()?.isConnected);
39
- }
40
- function xe(e) {
41
- T(), e && t(e) !== "body" && (w.push(new WeakRef(e)), w.length > C && (w = w.slice(-20)));
42
- }
43
- function Se() {
44
- return T(), w[w.length - 1]?.deref();
45
- }
46
- function Ce(e) {
47
- return e ? y(e) ? e : de(e)[0] || e : null;
48
- }
49
- function we(e) {
50
- if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !e.getAttribute("role")?.includes("dialog")) return;
51
- let t = v(e).filter((e) => {
52
- let t = e.getAttribute("data-tabindex") || "";
53
- return y(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
54
- }), n = e.getAttribute("tabindex");
55
- t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
56
- }
57
- function E(n) {
58
- let { context: v, children: C, disabled: w = !1, initialFocus: E = !0, returnFocus: Te = !0, restoreFocus: D = !1, modal: O = !0, closeOnFocusOut: k = !0, openInteractionType: Ee = "", nextFocusableElement: A, previousFocusableElement: j, beforeContentFocusGuardRef: De, externalTree: Oe, getInsideElements: ke } = n, M = "rootStore" in v ? v.rootStore : v, N = M.useState("open"), P = M.useState("domReferenceElement"), F = M.useState("floatingElement"), { events: I, dataRef: L } = M.context, R = i(() => L.current.floatingContext?.nodeId), Ae = E === !1, z = m(P) && Ae, je = g(E), B = g(Te), V = g(Ee), Me = g(N), H = _e(Oe), U = ge(), W = S.useRef(!1), G = S.useRef(!1), K = S.useRef(!1), Ne = S.useRef(null), Pe = S.useRef(""), q = S.useRef(""), J = S.useRef(null), Y = S.useRef(null), Fe = e(J, De, U?.beforeInsideRef), Ie = e(Y, U?.afterInsideRef), Le = c(), X = c(), Re = ae(), ze = U != null, Z = ne(F), Q = i((e = Z) => e ? de(e) : []), $ = i(() => ke?.().filter((e) => e != null) ?? []);
59
- S.useEffect(() => {
60
- if (w || !O) return;
61
- function e(e) {
62
- e.key === "Tab" && f(Z, d(_(Z))) && Q().length === 0 && !z && u(e);
63
- }
64
- return h(_(Z), "keydown", e);
65
- }, [
66
- w,
67
- Z,
68
- O,
69
- z,
70
- Q
71
- ]), S.useEffect(() => {
72
- if (w || !N) return;
73
- let e = _(Z);
74
- function t() {
75
- K.current = !1;
76
- }
77
- function n(e) {
78
- let t = p(e), n = $(), r = f(F, t) || f(P, t) || f(U?.portalNode, t) || n.some((e) => e === t || f(e, t));
79
- K.current = !r, q.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (G.current = !0, X.start(0, () => {
80
- G.current = !1;
81
- }));
82
- }
83
- function r() {
84
- q.current = "keyboard";
85
- }
86
- return ie(h(e, "pointerdown", n, !0), h(e, "pointerup", t, !0), h(e, "pointercancel", t, !0), h(e, "keydown", r, !0), t);
87
- }, [
88
- w,
89
- F,
90
- P,
91
- Z,
92
- N,
93
- U,
94
- X,
95
- $
96
- ]), S.useEffect(() => {
97
- if (w || !k) return;
98
- let e = _(Z);
99
- function t() {
100
- G.current = !0, X.start(0, () => {
101
- G.current = !1;
102
- });
103
- }
104
- function n(e) {
105
- let t = p(e);
106
- y(t) && (Ne.current = t);
107
- }
108
- function i(t) {
109
- let n = t.relatedTarget, i = t.currentTarget, a = p(t);
110
- O && n == null && a != null && f(F, a) && xe(a), queueMicrotask(() => {
111
- let c = R(), l = M.context.triggerElements, ee = $(), te = n?.hasAttribute(me("focus-guard")) && [
112
- J.current,
113
- Y.current,
114
- U?.beforeInsideRef.current,
115
- U?.afterInsideRef.current,
116
- U?.beforeOutsideRef.current,
117
- U?.afterOutsideRef.current,
118
- x(j),
119
- x(A)
120
- ].includes(n), u = !(f(P, n) || f(F, n) || f(n, F) || f(U?.portalNode, n) || ee.some((e) => e === n || f(e, n)) || n != null && l.hasElement(n) || l.hasMatchingElement((e) => f(e, n)) || te || H && (pe(H.nodesRef.current, c).find((e) => f(e.context?.elements.floating, n) || f(e.context?.elements.domReference, n)) || fe(H.nodesRef.current, c).find((e) => [e.context?.elements.floating, ne(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
121
- if (i === P && Z && we(Z), D && i !== P && !se(a) && d(e) === e.body) {
122
- if (r(Z) && (Z.focus(), D === "popup")) {
123
- Re.request(() => {
124
- Z.focus();
125
- });
126
- return;
127
- }
128
- let e = Q(), t = Ne.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || Z;
129
- r(n) && n.focus();
130
- }
131
- if (L.current.insideReactTree) {
132
- L.current.insideReactTree = !1;
133
- return;
134
- }
135
- (z || !O) && n && u && !G.current && (z || n !== Se()) && (W.current = !0, M.setOpen(!1, s(o, t)));
136
- });
137
- }
138
- function a() {
139
- K.current || (L.current.insideReactTree = !0, Le.start(0, () => {
140
- L.current.insideReactTree = !1;
141
- }));
142
- }
143
- let c = r(P) ? P : null;
144
- if (!(!F && !c)) return ie(c && h(c, "focusout", i), c && h(c, "pointerdown", t), F && h(F, "focusin", n), F && h(F, "focusout", i), F && U && h(F, "focusout", a, !0));
145
- }, [
146
- w,
147
- P,
148
- F,
149
- Z,
150
- O,
151
- H,
152
- U,
153
- M,
154
- k,
155
- D,
156
- Q,
157
- z,
158
- R,
159
- L,
160
- Le,
161
- X,
162
- Re,
163
- A,
164
- j,
165
- $
166
- ]), S.useEffect(() => {
167
- if (w || !F || !N) return;
168
- let e = Array.from(U?.portalNode?.querySelectorAll(`[${me("portal")}]`) || []), t = (H ? fe(H.nodesRef.current, R()) : []).find((e) => m(e.context?.elements.domReference || null))?.context?.elements.domReference, n = he([
169
- F,
170
- ...e,
171
- J.current,
172
- Y.current,
173
- U?.beforeOutsideRef.current,
174
- U?.afterOutsideRef.current,
175
- ...$(),
176
- t,
177
- x(j),
178
- x(A),
179
- z ? P : null
180
- ].filter((e) => e != null), {
181
- ariaHidden: O || z,
182
- mark: !1
183
- }), r = he([F, ...e].filter((e) => e != null));
184
- return () => {
185
- r(), n();
186
- };
187
- }, [
188
- N,
189
- w,
190
- P,
191
- F,
192
- O,
193
- U,
194
- z,
195
- H,
196
- R,
197
- A,
198
- j,
199
- $
200
- ]), a(() => {
201
- if (!N || w || !r(Z)) return;
202
- let e = _(Z), t = d(e);
203
- queueMicrotask(() => {
204
- let n = je.current, r = typeof n == "function" ? n(V.current || "") : n;
205
- if (r === void 0 || r === !1 || f(Z, t)) return;
206
- let i = null, a = () => (i ??= Q(Z), i[0] || Z), o;
207
- o = r === !0 || r === null ? a() : x(r), o ||= a();
208
- let s = f(Z, d(e));
209
- b(o, {
210
- preventScroll: o === Z,
211
- shouldFocus() {
212
- if (!Me.current) return !1;
213
- if (s) return !0;
214
- let t = d(e);
215
- return !(t !== o && f(Z, t));
216
- }
217
- });
218
- });
219
- }, [
220
- w,
221
- N,
222
- Z,
223
- Q,
224
- je,
225
- V,
226
- Me
227
- ]), a(() => {
228
- if (w || !Z) return;
229
- let e = _(Z), n = d(e), i = V.current == null;
230
- xe(n);
231
- function a(e) {
232
- if (e.open || (Pe.current = be(e.nativeEvent, q.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (W.current = !0), e.reason === "outside-press") if (e.nested) W.current = !1;
233
- else if (ee(e.nativeEvent) || te(e.nativeEvent)) W.current = !1;
234
- else {
235
- let e = !1;
236
- _(Z).createElement("div").focus({ get preventScroll() {
237
- return e = !0, !1;
238
- } }), e ? W.current = !1 : W.current = !0;
239
- }
240
- }
241
- I.on("openchange", a);
242
- function o() {
243
- let e = B.current, r = typeof e == "function" ? e(Pe.current) : e;
244
- if (r === void 0 || r === !1) return null;
245
- r === null && (r = !0);
246
- let a = P?.isConnected ? P : null, o = n?.isConnected && t(n) !== "body" ? n : null, s = i ? o || a : a || o;
247
- return s ||= Se() || null, typeof r == "boolean" ? s : x(r) || s || null;
248
- }
249
- return () => {
250
- I.off("openchange", a);
251
- let t = d(e), n = $(), i = f(F, t) || n.some((e) => e === t || f(e, t)) || H && pe(H.nodesRef.current, R(), !1).some((e) => f(e.context?.elements.floating, t)), s = B.current, c = o();
252
- queueMicrotask(() => {
253
- let n = Ce(c), a = typeof s != "boolean";
254
- s && !W.current && r(n) && (!(!a && n !== t && t !== e.body) || i) && n.focus({ preventScroll: !0 }), W.current = !1;
255
- });
256
- };
257
- }, [
258
- w,
259
- F,
260
- Z,
261
- B,
262
- V,
263
- I,
264
- H,
265
- P,
266
- R,
267
- $
268
- ]), a(() => {
269
- if (!l || N || !F) return;
270
- let e = d(_(F));
271
- !r(e) || !re(e) || f(F, e) && e.blur();
272
- }, [N, F]), a(() => {
273
- if (!(w || !U)) return U.setFocusManagerState({
274
- modal: O,
275
- closeOnFocusOut: k,
276
- open: N,
277
- onOpenChange: M.setOpen,
278
- domReference: P
279
- }), () => {
280
- U.setFocusManagerState(null);
281
- };
282
- }, [
283
- w,
284
- U,
285
- O,
286
- N,
287
- M,
288
- k,
289
- P
290
- ]), a(() => {
291
- if (!(w || !Z)) return we(Z), () => {
292
- queueMicrotask(T);
293
- };
294
- }, [w, Z]);
295
- let Be = !w && (!O || !z) && (ze || O);
296
- return /*#__PURE__*/ ye(S.Fragment, { children: [
297
- Be && /*#__PURE__*/ ve(oe, {
298
- "data-type": "inside",
299
- ref: Fe,
300
- onFocus: (e) => {
301
- if (O) {
302
- let e = Q();
303
- b(e[e.length - 1]);
304
- } else U?.portalNode && (W.current = !1, ue(e, U.portalNode) ? ce(P)?.focus() : x(j ?? U.beforeOutsideRef)?.focus());
305
- }
306
- }),
307
- C,
308
- Be && /*#__PURE__*/ ve(oe, {
309
- "data-type": "inside",
310
- ref: Ie,
311
- onFocus: (e) => {
312
- O ? b(Q()[0]) : U?.portalNode && (k && (W.current = !0), ue(e, U.portalNode) ? le(P)?.focus() : x(A ?? U.afterOutsideRef)?.focus());
313
- }
314
- })
315
- ] });
1
+ //#region ../../node_modules/@base-ui/react/utils/resolveRef.mjs
2
+ function e(e) {
3
+ return e == null ? e : "current" in e ? e.current : e;
316
4
  }
317
5
  //#endregion
318
- export { E as FloatingFocusManager };
6
+ export { e as resolveRef };
319
7
 
320
8
  //# sourceMappingURL=index244.js.map