@rpcbase/ui 0.280.0 → 0.282.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 (519) 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 +88 -88
  41. package/dist/index14.js.map +1 -1
  42. package/dist/index15.js.map +1 -1
  43. package/dist/index154.js +19 -7
  44. package/dist/index154.js.map +1 -1
  45. package/dist/index16.js +36 -45
  46. package/dist/index16.js.map +1 -1
  47. package/dist/index160.js +3 -3
  48. package/dist/index160.js.map +1 -1
  49. package/dist/index166.js +5 -5
  50. package/dist/index166.js.map +1 -1
  51. package/dist/index172.js +27 -25
  52. package/dist/index172.js.map +1 -1
  53. package/dist/index181.js +1 -1
  54. package/dist/index181.js.map +1 -1
  55. package/dist/index182.js +145 -162
  56. package/dist/index182.js.map +1 -1
  57. package/dist/index184.js +6 -8
  58. package/dist/index184.js.map +1 -1
  59. package/dist/index186.js +2 -8
  60. package/dist/index186.js.map +1 -1
  61. package/dist/index19.js +1 -1
  62. package/dist/index19.js.map +1 -1
  63. package/dist/index195.js +1 -1
  64. package/dist/index195.js.map +1 -1
  65. package/dist/index196.js +2 -2
  66. package/dist/index196.js.map +1 -1
  67. package/dist/index197.js +1 -1
  68. package/dist/index197.js.map +1 -1
  69. package/dist/index198.js +16 -15
  70. package/dist/index198.js.map +1 -1
  71. package/dist/index199.js +13 -17
  72. package/dist/index199.js.map +1 -1
  73. package/dist/index200.js +3 -2
  74. package/dist/index200.js.map +1 -1
  75. package/dist/index207.js +5 -90
  76. package/dist/index207.js.map +1 -1
  77. package/dist/index208.js +15 -3
  78. package/dist/index208.js.map +1 -1
  79. package/dist/index209.js +102 -22
  80. package/dist/index209.js.map +1 -1
  81. package/dist/index210.js +3 -28
  82. package/dist/index210.js.map +1 -1
  83. package/dist/index211.js +23 -19
  84. package/dist/index211.js.map +1 -1
  85. package/dist/index212.js +27 -6
  86. package/dist/index212.js.map +1 -1
  87. package/dist/index213.js +19 -14
  88. package/dist/index213.js.map +1 -1
  89. package/dist/index214.js +5 -6
  90. package/dist/index214.js.map +1 -1
  91. package/dist/index215.js +14 -26
  92. package/dist/index215.js.map +1 -1
  93. package/dist/index216.js +7 -22
  94. package/dist/index216.js.map +1 -1
  95. package/dist/index217.js +27 -6
  96. package/dist/index217.js.map +1 -1
  97. package/dist/index218.js +23 -5
  98. package/dist/index218.js.map +1 -1
  99. package/dist/index219.js +6 -4
  100. package/dist/index219.js.map +1 -1
  101. package/dist/index220.js +5 -4
  102. package/dist/index220.js.map +1 -1
  103. package/dist/index221.js +4 -24
  104. package/dist/index221.js.map +1 -1
  105. package/dist/index222.js +4 -3
  106. package/dist/index222.js.map +1 -1
  107. package/dist/index223.js +21 -21
  108. package/dist/index223.js.map +1 -1
  109. package/dist/index224.js +3 -23
  110. package/dist/index224.js.map +1 -1
  111. package/dist/index225.js +23 -6
  112. package/dist/index225.js.map +1 -1
  113. package/dist/index226.js +22 -9
  114. package/dist/index226.js.map +1 -1
  115. package/dist/index227.js +5 -17
  116. package/dist/index227.js.map +1 -1
  117. package/dist/index228.js +8 -49
  118. package/dist/index228.js.map +1 -1
  119. package/dist/index229.js +18 -5
  120. package/dist/index229.js.map +1 -1
  121. package/dist/index230.js +50 -19
  122. package/dist/index230.js.map +1 -1
  123. package/dist/index231.js +20 -28
  124. package/dist/index231.js.map +1 -1
  125. package/dist/index232.js +27 -104
  126. package/dist/index232.js.map +1 -1
  127. package/dist/index233.js +98 -33
  128. package/dist/index233.js.map +1 -1
  129. package/dist/index234.js +28 -113
  130. package/dist/index234.js.map +1 -1
  131. package/dist/index235.js +117 -11
  132. package/dist/index235.js.map +1 -1
  133. package/dist/index236.js +12 -4
  134. package/dist/index236.js.map +1 -1
  135. package/dist/index237.js +4 -15
  136. package/dist/index237.js.map +1 -1
  137. package/dist/index238.js +13 -62
  138. package/dist/index238.js.map +1 -1
  139. package/dist/index239.js +64 -9
  140. package/dist/index239.js.map +1 -1
  141. package/dist/index240.js +10 -106
  142. package/dist/index240.js.map +1 -1
  143. package/dist/index241.js +107 -13
  144. package/dist/index241.js.map +1 -1
  145. package/dist/index242.js +16 -13
  146. package/dist/index242.js.map +1 -1
  147. package/dist/index243.js +13 -5
  148. package/dist/index243.js.map +1 -1
  149. package/dist/index244.js +4 -316
  150. package/dist/index244.js.map +1 -1
  151. package/dist/index245.js +315 -58
  152. package/dist/index245.js.map +1 -1
  153. package/dist/index246.js +58 -223
  154. package/dist/index246.js.map +1 -1
  155. package/dist/index247.js +215 -318
  156. package/dist/index247.js.map +1 -1
  157. package/dist/index248.js +250 -306
  158. package/dist/index248.js.map +1 -1
  159. package/dist/index249.js +308 -173
  160. package/dist/index249.js.map +1 -1
  161. package/dist/index250.js +178 -7
  162. package/dist/index250.js.map +1 -1
  163. package/dist/index251.js +8 -15
  164. package/dist/index251.js.map +1 -1
  165. package/dist/index252.js +41 -5
  166. package/dist/index252.js.map +1 -1
  167. package/dist/index253.js +46 -38
  168. package/dist/index253.js.map +1 -1
  169. package/dist/index254.js +7 -50
  170. package/dist/index254.js.map +1 -1
  171. package/dist/index255.js +49 -6
  172. package/dist/index255.js.map +1 -1
  173. package/dist/index256.js +48 -46
  174. package/dist/index256.js.map +1 -1
  175. package/dist/index257.js +6 -51
  176. package/dist/index257.js.map +1 -1
  177. package/dist/index258.js +10 -9
  178. package/dist/index258.js.map +1 -1
  179. package/dist/index259.js +60 -8
  180. package/dist/index259.js.map +1 -1
  181. package/dist/index26.js.map +1 -1
  182. package/dist/index260.js +41 -60
  183. package/dist/index260.js.map +1 -1
  184. package/dist/index261.js +88 -34
  185. package/dist/index261.js.map +1 -1
  186. package/dist/index262.js +47 -94
  187. package/dist/index262.js.map +1 -1
  188. package/dist/index263.js +36 -49
  189. package/dist/index263.js.map +1 -1
  190. package/dist/index264.js +45 -32
  191. package/dist/index264.js.map +1 -1
  192. package/dist/index265.js +47 -46
  193. package/dist/index265.js.map +1 -1
  194. package/dist/index266.js +18 -48
  195. package/dist/index266.js.map +1 -1
  196. package/dist/index267.js +174 -15
  197. package/dist/index267.js.map +1 -1
  198. package/dist/index268.js +47 -169
  199. package/dist/index268.js.map +1 -1
  200. package/dist/index269.js +17 -34
  201. package/dist/index269.js.map +1 -1
  202. package/dist/index270.js +59 -10
  203. package/dist/index270.js.map +1 -1
  204. package/dist/index271.js +10 -66
  205. package/dist/index271.js.map +1 -1
  206. package/dist/index272.js +4 -4
  207. package/dist/index273.js +71 -69
  208. package/dist/index273.js.map +1 -1
  209. package/dist/index274.js +158 -152
  210. package/dist/index274.js.map +1 -1
  211. package/dist/index275.js +7 -13
  212. package/dist/index275.js.map +1 -1
  213. package/dist/index276.js +12 -5
  214. package/dist/index276.js.map +1 -1
  215. package/dist/index277.js +12 -6
  216. package/dist/index277.js.map +1 -1
  217. package/dist/index278.js +11 -12
  218. package/dist/index278.js.map +1 -1
  219. package/dist/index279.js +65 -9
  220. package/dist/index279.js.map +1 -1
  221. package/dist/index280.js +6 -74
  222. package/dist/index280.js.map +1 -1
  223. package/dist/index281.js +25 -6
  224. package/dist/index281.js.map +1 -1
  225. package/dist/index282.js +24 -24
  226. package/dist/index282.js.map +1 -1
  227. package/dist/index283.js +125 -24
  228. package/dist/index283.js.map +1 -1
  229. package/dist/index284.js +52 -115
  230. package/dist/index284.js.map +1 -1
  231. package/dist/index285.js +59 -55
  232. package/dist/index285.js.map +1 -1
  233. package/dist/index286.js +48 -61
  234. package/dist/index286.js.map +1 -1
  235. package/dist/index287.js +5 -48
  236. package/dist/index287.js.map +1 -1
  237. package/dist/index288.js +14 -8
  238. package/dist/index288.js.map +1 -1
  239. package/dist/index289.js +18 -14
  240. package/dist/index289.js.map +1 -1
  241. package/dist/index290.js +10 -17
  242. package/dist/index290.js.map +1 -1
  243. package/dist/index291.js +23 -11
  244. package/dist/index291.js.map +1 -1
  245. package/dist/index292.js +52 -25
  246. package/dist/index292.js.map +1 -1
  247. package/dist/index293.js +6 -52
  248. package/dist/index293.js.map +1 -1
  249. package/dist/index294.js +137 -5
  250. package/dist/index294.js.map +1 -1
  251. package/dist/index295.js +59 -149
  252. package/dist/index295.js.map +1 -1
  253. package/dist/index296.js +90 -49
  254. package/dist/index296.js.map +1 -1
  255. package/dist/index297.js +11 -117
  256. package/dist/index297.js.map +1 -1
  257. package/dist/index298.js +863 -11
  258. package/dist/index298.js.map +1 -1
  259. package/dist/index299.js +21 -865
  260. package/dist/index299.js.map +1 -1
  261. package/dist/index3.js.map +1 -1
  262. package/dist/index300.js +417 -27
  263. package/dist/index300.js.map +1 -1
  264. package/dist/index301.js +774 -483
  265. package/dist/index301.js.map +1 -1
  266. package/dist/index302.js +7436 -803
  267. package/dist/index302.js.map +1 -1
  268. package/dist/index303.js +7 -7429
  269. package/dist/index303.js.map +1 -1
  270. package/dist/index304.js +12 -6
  271. package/dist/index304.js.map +1 -1
  272. package/dist/index305.js +5 -12
  273. package/dist/index305.js.map +1 -1
  274. package/dist/index306.js +3 -3
  275. package/dist/index306.js.map +1 -1
  276. package/dist/index307.js +469 -5
  277. package/dist/index307.js.map +1 -1
  278. package/dist/index308.js +32 -464
  279. package/dist/index308.js.map +1 -1
  280. package/dist/index309.js +18 -36
  281. package/dist/index309.js.map +1 -1
  282. package/dist/index310.js +28 -17
  283. package/dist/index310.js.map +1 -1
  284. package/dist/index311.js +4 -30
  285. package/dist/index311.js.map +1 -1
  286. package/dist/index312.js +59 -4
  287. package/dist/index312.js.map +1 -1
  288. package/dist/index313.js +11 -59
  289. package/dist/index313.js.map +1 -1
  290. package/dist/index314.js +5 -9
  291. package/dist/index314.js.map +1 -1
  292. package/dist/index315.js +9 -5
  293. package/dist/index315.js.map +1 -1
  294. package/dist/index316.js +12 -9
  295. package/dist/index316.js.map +1 -1
  296. package/dist/index317.js +3 -13
  297. package/dist/index317.js.map +1 -1
  298. package/dist/index318.js +17 -3
  299. package/dist/index318.js.map +1 -1
  300. package/dist/index319.js +23 -14
  301. package/dist/index319.js.map +1 -1
  302. package/dist/index320.js +39 -23
  303. package/dist/index320.js.map +1 -1
  304. package/dist/index321.js +5 -41
  305. package/dist/index321.js.map +1 -1
  306. package/dist/index322.js +25 -5
  307. package/dist/index322.js.map +1 -1
  308. package/dist/index323.js +18 -24
  309. package/dist/index323.js.map +1 -1
  310. package/dist/index324.js +32 -17
  311. package/dist/index324.js.map +1 -1
  312. package/dist/index325.js +5 -34
  313. package/dist/index325.js.map +1 -1
  314. package/dist/index326.js +9 -5
  315. package/dist/index326.js.map +1 -1
  316. package/dist/index327.js +7 -8
  317. package/dist/index327.js.map +1 -1
  318. package/dist/index328.js +9 -8
  319. package/dist/index328.js.map +1 -1
  320. package/dist/index329.js +10 -9
  321. package/dist/index329.js.map +1 -1
  322. package/dist/index330.js +7 -10
  323. package/dist/index330.js.map +1 -1
  324. package/dist/index331.js +75 -7
  325. package/dist/index331.js.map +1 -1
  326. package/dist/index332.js +153 -66
  327. package/dist/index332.js.map +1 -1
  328. package/dist/index333.js +99 -147
  329. package/dist/index333.js.map +1 -1
  330. package/dist/index334.js +13 -113
  331. package/dist/index334.js.map +1 -1
  332. package/dist/index335.js +78 -12
  333. package/dist/index335.js.map +1 -1
  334. package/dist/index336.js +23 -57
  335. package/dist/index336.js.map +1 -1
  336. package/dist/index337.js +12 -45
  337. package/dist/index337.js.map +1 -1
  338. package/dist/index338.js +16 -13
  339. package/dist/index338.js.map +1 -1
  340. package/dist/index339.js +100 -15
  341. package/dist/index339.js.map +1 -1
  342. package/dist/index340.js +50 -95
  343. package/dist/index340.js.map +1 -1
  344. package/dist/index341.js +57 -5
  345. package/dist/index341.js.map +1 -1
  346. package/dist/index342.js +41 -78
  347. package/dist/index342.js.map +1 -1
  348. package/dist/index343.js +100 -58
  349. package/dist/index343.js.map +1 -1
  350. package/dist/index344.js +46 -104
  351. package/dist/index344.js.map +1 -1
  352. package/dist/index345.js +39 -51
  353. package/dist/index345.js.map +1 -1
  354. package/dist/index346.js +143 -42
  355. package/dist/index346.js.map +1 -1
  356. package/dist/index347.js +122 -123
  357. package/dist/index347.js.map +1 -1
  358. package/dist/index348.js +224 -108
  359. package/dist/index348.js.map +1 -1
  360. package/dist/index349.js +158 -174
  361. package/dist/index349.js.map +1 -1
  362. package/dist/index350.js +213 -144
  363. package/dist/index350.js.map +1 -1
  364. package/dist/index351.js +5 -309
  365. package/dist/index351.js.map +1 -1
  366. package/dist/index352.js +6 -5
  367. package/dist/index352.js.map +1 -1
  368. package/dist/index353.js +7 -6
  369. package/dist/index353.js.map +1 -1
  370. package/dist/index354.js +4 -5
  371. package/dist/index354.js.map +1 -1
  372. package/dist/index355.js +4 -4
  373. package/dist/index355.js.map +1 -1
  374. package/dist/index356.js +21 -6
  375. package/dist/index356.js.map +1 -1
  376. package/dist/index357.js +10 -21
  377. package/dist/index357.js.map +1 -1
  378. package/dist/index358.js +128 -10
  379. package/dist/index358.js.map +1 -1
  380. package/dist/index359.js +36 -122
  381. package/dist/index359.js.map +1 -1
  382. package/dist/index360.js +64 -38
  383. package/dist/index360.js.map +1 -1
  384. package/dist/index361.js +115 -66
  385. package/dist/index361.js.map +1 -1
  386. package/dist/index362.js +485 -112
  387. package/dist/index362.js.map +1 -1
  388. package/dist/index363.js +7 -490
  389. package/dist/index363.js.map +1 -1
  390. package/dist/index364.js +1 -1
  391. package/dist/index364.js.map +1 -1
  392. package/dist/index367.js +2 -9
  393. package/dist/index367.js.map +1 -1
  394. package/dist/index368.js +26 -5
  395. package/dist/index368.js.map +1 -1
  396. package/dist/index369.js +43 -27
  397. package/dist/index369.js.map +1 -1
  398. package/dist/index370.js +35 -46
  399. package/dist/index370.js.map +1 -1
  400. package/dist/index371.js +16 -27
  401. package/dist/index371.js.map +1 -1
  402. package/dist/index372.js +41 -16
  403. package/dist/index372.js.map +1 -1
  404. package/dist/index373.js +11 -42
  405. package/dist/index373.js.map +1 -1
  406. package/dist/index374.js +10 -14
  407. package/dist/index374.js.map +1 -1
  408. package/dist/index375.js +51 -9
  409. package/dist/index375.js.map +1 -1
  410. package/dist/index376.js +40 -53
  411. package/dist/index376.js.map +1 -1
  412. package/dist/index377.js +17 -43
  413. package/dist/index377.js.map +1 -1
  414. package/dist/index378.js +4 -15
  415. package/dist/index378.js.map +1 -1
  416. package/dist/index379.js +4 -4
  417. package/dist/index379.js.map +1 -1
  418. package/dist/index380.js +9 -4
  419. package/dist/index380.js.map +1 -1
  420. package/dist/index381.js +304 -9
  421. package/dist/index381.js.map +1 -1
  422. package/dist/index382.js +4 -339
  423. package/dist/index382.js.map +1 -1
  424. package/dist/index383.js +21 -5
  425. package/dist/index383.js.map +1 -1
  426. package/dist/index384.js +106 -16
  427. package/dist/index384.js.map +1 -1
  428. package/dist/index385.js +19 -109
  429. package/dist/index385.js.map +1 -1
  430. package/dist/index386.js +18 -18
  431. package/dist/index386.js.map +1 -1
  432. package/dist/index387.js +14 -19
  433. package/dist/index387.js.map +1 -1
  434. package/dist/index388.js +12 -4
  435. package/dist/index388.js.map +1 -1
  436. package/dist/index389.js +113 -20
  437. package/dist/index389.js.map +1 -1
  438. package/dist/index390.js +5 -11
  439. package/dist/index390.js.map +1 -1
  440. package/dist/index391.js +28 -85
  441. package/dist/index391.js.map +1 -1
  442. package/dist/index392.js +9 -9
  443. package/dist/index392.js.map +1 -1
  444. package/dist/index393.js +6 -29
  445. package/dist/index393.js.map +1 -1
  446. package/dist/index394.js +254 -10
  447. package/dist/index394.js.map +1 -1
  448. package/dist/index395.js +12 -6
  449. package/dist/index395.js.map +1 -1
  450. package/dist/index396.js +11 -252
  451. package/dist/index396.js.map +1 -1
  452. package/dist/index397.js +6 -11
  453. package/dist/index397.js.map +1 -1
  454. package/dist/index398.js +22 -10
  455. package/dist/index398.js.map +1 -1
  456. package/dist/index399.js +22 -6
  457. package/dist/index399.js.map +1 -1
  458. package/dist/index4.js.map +1 -1
  459. package/dist/index400.js +103 -21
  460. package/dist/index400.js.map +1 -1
  461. package/dist/index401.js +15 -23
  462. package/dist/index401.js.map +1 -1
  463. package/dist/index402.js +11 -108
  464. package/dist/index402.js.map +1 -1
  465. package/dist/index403.js +10 -15
  466. package/dist/index403.js.map +1 -1
  467. package/dist/index404.js +237 -10
  468. package/dist/index404.js.map +1 -1
  469. package/dist/index405.js +27 -9
  470. package/dist/index405.js.map +1 -1
  471. package/dist/index406.js +33 -238
  472. package/dist/index406.js.map +1 -1
  473. package/dist/index407.js +11 -30
  474. package/dist/index407.js.map +1 -1
  475. package/dist/index408.js +118 -48
  476. package/dist/index408.js.map +1 -1
  477. package/dist/index409.js +39 -11
  478. package/dist/index409.js.map +1 -1
  479. package/dist/index410.js +18 -121
  480. package/dist/index410.js.map +1 -1
  481. package/dist/index411.js +11 -39
  482. package/dist/index411.js.map +1 -1
  483. package/dist/index412.js +21 -24
  484. package/dist/index412.js.map +1 -1
  485. package/dist/index413.js +17 -11
  486. package/dist/index413.js.map +1 -1
  487. package/dist/index414.js +10 -20
  488. package/dist/index414.js.map +1 -1
  489. package/dist/index415.js +4 -17
  490. package/dist/index415.js.map +1 -1
  491. package/dist/index416.js +300 -14
  492. package/dist/index416.js.map +1 -1
  493. package/dist/index417.js +61 -323
  494. package/dist/index417.js.map +1 -1
  495. package/dist/index418.js +4 -63
  496. package/dist/index418.js.map +1 -1
  497. package/dist/index419.js +28 -4
  498. package/dist/index419.js.map +1 -1
  499. package/dist/index420.js +468 -25
  500. package/dist/index420.js.map +1 -1
  501. package/dist/index421.js +250 -452
  502. package/dist/index421.js.map +1 -1
  503. package/dist/index6.js.map +1 -1
  504. package/dist/index7.js +91 -133
  505. package/dist/index7.js.map +1 -1
  506. package/dist/index70.js +2 -2
  507. package/dist/index70.js.map +1 -1
  508. package/dist/index71.js +11 -4
  509. package/dist/index71.js.map +1 -1
  510. package/dist/index72.js +1 -3
  511. package/dist/index72.js.map +1 -1
  512. package/dist/index8.js.map +1 -1
  513. package/dist/index9.js +16 -19
  514. package/dist/index9.js.map +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  516. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  517. package/package.json +15 -15
  518. package/dist/index422.js +0 -272
  519. package/dist/index422.js.map +0 -1
package/dist/index235.js CHANGED
@@ -1,16 +1,122 @@
1
- //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
2
- function e(t, n, r = !0) {
3
- return t.filter((e) => e.parentId === n).flatMap((n) => [...!r || n.context?.open ? [n] : [], ...e(t, n.id, r)]);
4
- }
5
- function t(e, t) {
6
- let n = [], r = e.find((e) => e.id === t)?.parentId;
7
- for (; r;) {
8
- let t = e.find((e) => e.id === r);
9
- r = t?.parentId, t && (n = n.concat(t));
1
+ import { getComputedStyle as e, getNodeName as t, isHTMLElement as n, isShadowRoot as r } from "./index200.js";
2
+ import { ownerDocument as i } from "./index207.js";
3
+ import { activeElement as a, contains as o } from "./index225.js";
4
+ import { isElementVisible as s } from "./index234.js";
5
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs
6
+ var c = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
7
+ function l(e) {
8
+ let t = e.assignedSlot;
9
+ if (t) return t;
10
+ if (e.parentElement) return e.parentElement;
11
+ let n = e.getRootNode();
12
+ return r(n) ? n.host : null;
13
+ }
14
+ function u(e) {
15
+ for (let n of Array.from(e.children)) if (t(n) === "summary") return n;
16
+ return null;
17
+ }
18
+ function d(e, t) {
19
+ let n = u(t);
20
+ return !!n && (e === n || o(n, e));
21
+ }
22
+ function f(e) {
23
+ let n = e ? t(e) : "";
24
+ return e != null && e.matches(c) && (n !== "summary" || e.parentElement != null && t(e.parentElement) === "details" && u(e.parentElement) === e) && (n !== "details" || u(e) == null) && (n !== "input" || e.type !== "hidden");
25
+ }
26
+ function p(e) {
27
+ if (!f(e) || !e.isConnected || e.matches(":disabled")) return !1;
28
+ for (let n = e; n; n = l(n)) {
29
+ let r = n !== e, i = t(n) === "slot";
30
+ if (n.hasAttribute("inert") || r && t(n) === "details" && !n.open && !d(e, n) || n.hasAttribute("hidden") || !i && !m(n, r)) return !1;
31
+ }
32
+ return !0;
33
+ }
34
+ function m(t, n) {
35
+ let r = e(t);
36
+ return n ? r.display !== "none" : s(t, r);
37
+ }
38
+ function h(e) {
39
+ let r = e.tabIndex;
40
+ if (r < 0) {
41
+ let r = t(e);
42
+ if (r === "details" || r === "audio" || r === "video" || n(e) && e.isContentEditable) return 0;
43
+ }
44
+ return r;
45
+ }
46
+ function g(e) {
47
+ if (t(e) !== "input") return null;
48
+ let n = e;
49
+ return n.type === "radio" && n.name !== "" ? n : null;
50
+ }
51
+ function _(e, t) {
52
+ let n = g(e);
53
+ if (!n) return !0;
54
+ let r = t.find((e) => {
55
+ let t = g(e);
56
+ return t?.name === n.name && t.form === n.form && t.checked;
57
+ });
58
+ return r ? r === n : t.find((e) => {
59
+ let t = g(e);
60
+ return t?.name === n.name && t.form === n.form;
61
+ }) === n;
62
+ }
63
+ function v(e) {
64
+ if (n(e) && t(e) === "slot") {
65
+ let t = e.assignedElements({ flatten: !0 });
66
+ if (t.length > 0) return t;
10
67
  }
11
- return n;
68
+ return n(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
69
+ }
70
+ function y(e, t) {
71
+ v(e).forEach((e) => {
72
+ f(e) && t.push(e), y(e, t);
73
+ });
74
+ }
75
+ function b(e, t, r) {
76
+ v(e).forEach((e) => {
77
+ n(e) && e.matches(t) && r.push(e), b(e, t, r);
78
+ });
79
+ }
80
+ function x(e) {
81
+ return p(e) && h(e) >= 0;
82
+ }
83
+ function S(e) {
84
+ let t = [];
85
+ return y(e, t), t.filter(p);
86
+ }
87
+ function C(e) {
88
+ let t = S(e);
89
+ return t.filter((e) => h(e) >= 0 && _(e, t));
90
+ }
91
+ function w(e, t) {
92
+ let n = C(e), r = n.length;
93
+ if (r === 0) return;
94
+ let o = a(i(e)), s = n.indexOf(o);
95
+ return n[s === -1 ? t === 1 ? 0 : r - 1 : s + t];
96
+ }
97
+ function T(e) {
98
+ return w(i(e).body, 1) || e;
99
+ }
100
+ function E(e) {
101
+ return w(i(e).body, -1) || e;
102
+ }
103
+ function D(e, t) {
104
+ let n = t || e.currentTarget, r = e.relatedTarget;
105
+ return !r || !o(n, r);
106
+ }
107
+ function O(e) {
108
+ C(e).forEach((e) => {
109
+ e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
110
+ });
111
+ }
112
+ function k(e) {
113
+ let t = [];
114
+ b(e, "[data-tabindex]", t), t.forEach((e) => {
115
+ let t = e.dataset.tabindex;
116
+ delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
117
+ });
12
118
  }
13
119
  //#endregion
14
- export { t as getNodeAncestors, e as getNodeChildren };
120
+ export { O as disableFocusInside, k as enableFocusInside, S as focusable, T as getNextTabbable, E as getPreviousTabbable, D as isOutsideEvent, x as isTabbable, C as tabbable };
15
121
 
16
122
  //# sourceMappingURL=index235.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index235.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAgB,EAAgB,GAAO,GAAI,IAAmB,IAAM;CAElE,OADuB,EAAM,QAAO,MAAQ,EAAK,aAAa,CAC1C,CAAC,CAAC,SAAQ,MAAS,CAAC,GAAI,CAAC,KAAoB,EAAM,SAAS,OAAO,CAAC,CAAK,IAAI,CAAC,GAAI,GAAG,EAAgB,GAAO,EAAM,IAAI,CAAgB,CAAC,CAAC;AAC9J;AAiBA,SAAgB,EAAiB,GAAO,GAAI;CAC1C,IAAI,IAAe,CAAC,GAChB,IAAkB,EAAM,MAAK,MAAQ,EAAK,OAAO,CAAE,CAAC,EAAE;CAC1D,OAAO,IAAiB;EACtB,IAAM,IAAc,EAAM,MAAK,MAAQ,EAAK,OAAO,CAAe;EAElE,AADA,IAAkB,GAAa,UAC3B,MACF,IAAe,EAAa,OAAO,CAAW;CAElD;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"index235.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs"],"sourcesContent":["import { getComputedStyle, getNodeName, isHTMLElement, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { activeElement, contains } from \"./element.mjs\";\nimport { isElementVisible } from \"./composite.mjs\";\nconst CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';\nfunction getParentElement(element) {\n const assignedSlot = element.assignedSlot;\n if (assignedSlot) {\n return assignedSlot;\n }\n if (element.parentElement) {\n return element.parentElement;\n }\n const rootNode = element.getRootNode();\n return isShadowRoot(rootNode) ? rootNode.host : null;\n}\nfunction getDetailsSummary(details) {\n for (const child of Array.from(details.children)) {\n if (getNodeName(child) === 'summary') {\n return child;\n }\n }\n return null;\n}\nfunction isWithinOpenDetailsSummary(element, details) {\n const summary = getDetailsSummary(details);\n return !!summary && (element === summary || contains(summary, element));\n}\nfunction isFocusableCandidate(element) {\n const nodeName = element ? getNodeName(element) : '';\n return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== 'summary' || element.parentElement != null && getNodeName(element.parentElement) === 'details' && getDetailsSummary(element.parentElement) === element) && (nodeName !== 'details' || getDetailsSummary(element) == null) && (nodeName !== 'input' || element.type !== 'hidden');\n}\nfunction isFocusableElement(element) {\n if (!isFocusableCandidate(element) || !element.isConnected || element.matches(':disabled')) {\n return false;\n }\n for (let current = element; current; current = getParentElement(current)) {\n const isAncestor = current !== element;\n const isSlot = getNodeName(current) === 'slot';\n if (current.hasAttribute('inert')) {\n return false;\n }\n if (isAncestor && getNodeName(current) === 'details' && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute('hidden') || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {\n return false;\n }\n }\n return true;\n}\nfunction isVisibleInTabbableTree(element, isAncestor) {\n const styles = getComputedStyle(element);\n if (!isAncestor) {\n return isElementVisible(element, styles);\n }\n return styles.display !== 'none';\n}\nfunction getTabIndex(element) {\n const tabIndex = element.tabIndex;\n if (tabIndex < 0) {\n const nodeName = getNodeName(element);\n if (nodeName === 'details' || nodeName === 'audio' || nodeName === 'video' || isHTMLElement(element) && element.isContentEditable) {\n return 0;\n }\n }\n return tabIndex;\n}\nfunction getNamedRadioInput(element) {\n if (getNodeName(element) !== 'input') {\n return null;\n }\n const input = element;\n return input.type === 'radio' && input.name !== '' ? input : null;\n}\nfunction isTabbableRadio(element, candidates) {\n const input = getNamedRadioInput(element);\n if (!input) {\n return true;\n }\n const checkedRadio = candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form && radio.checked;\n });\n if (checkedRadio) {\n return checkedRadio === input;\n }\n return candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form;\n }) === input;\n}\nfunction getComposedChildren(container) {\n if (isHTMLElement(container) && getNodeName(container) === 'slot') {\n const assignedElements = container.assignedElements({\n flatten: true\n });\n if (assignedElements.length > 0) {\n return assignedElements;\n }\n }\n if (isHTMLElement(container) && container.shadowRoot) {\n return Array.from(container.shadowRoot.children);\n }\n return Array.from(container.children);\n}\nfunction appendCandidates(container, list) {\n getComposedChildren(container).forEach(child => {\n if (isFocusableCandidate(child)) {\n list.push(child);\n }\n appendCandidates(child, list);\n });\n}\nfunction appendMatchingElements(container, selector, list) {\n getComposedChildren(container).forEach(child => {\n if (isHTMLElement(child) && child.matches(selector)) {\n list.push(child);\n }\n appendMatchingElements(child, selector, list);\n });\n}\nexport function isTabbable(element) {\n return isFocusableElement(element) && getTabIndex(element) >= 0;\n}\nexport function focusable(container) {\n const candidates = [];\n appendCandidates(container, candidates);\n return candidates.filter(isFocusableElement);\n}\nexport function tabbable(container) {\n const candidates = focusable(container);\n return candidates.filter(element => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));\n}\nfunction getTabbableIn(container, dir) {\n const list = tabbable(container);\n const len = list.length;\n if (len === 0) {\n return undefined;\n }\n const active = activeElement(ownerDocument(container));\n const index = list.indexOf(active);\n // eslint-disable-next-line no-nested-ternary\n const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n return list[nextIndex];\n}\nexport function getNextTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;\n}\nexport function getPreviousTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;\n}\nfunction getTabbableNearElement(referenceElement, dir) {\n if (!referenceElement) {\n return null;\n }\n const list = tabbable(ownerDocument(referenceElement).body);\n const elementCount = list.length;\n if (elementCount === 0) {\n return null;\n }\n const index = list.indexOf(referenceElement);\n if (index === -1) {\n return null;\n }\n const nextIndex = (index + dir + elementCount) % elementCount;\n return list[nextIndex];\n}\nexport function getTabbableAfterElement(referenceElement) {\n return getTabbableNearElement(referenceElement, 1);\n}\nexport function getTabbableBeforeElement(referenceElement) {\n return getTabbableNearElement(referenceElement, -1);\n}\nexport function isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nexport function disableFocusInside(container) {\n const tabbableElements = tabbable(container);\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nexport function enableFocusInside(container) {\n const elements = [];\n appendMatchingElements(container, '[data-tabindex]', elements);\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AAIA,IAAM,IAAqB;AAC3B,SAAS,EAAiB,GAAS;CACjC,IAAM,IAAe,EAAQ;CAC7B,IAAI,GACF,OAAO;CAET,IAAI,EAAQ,eACV,OAAO,EAAQ;CAEjB,IAAM,IAAW,EAAQ,YAAY;CACrC,OAAO,EAAa,CAAQ,IAAI,EAAS,OAAO;AAClD;AACA,SAAS,EAAkB,GAAS;CAClC,KAAK,IAAM,KAAS,MAAM,KAAK,EAAQ,QAAQ,GAC7C,IAAI,EAAY,CAAK,MAAM,WACzB,OAAO;CAGX,OAAO;AACT;AACA,SAAS,EAA2B,GAAS,GAAS;CACpD,IAAM,IAAU,EAAkB,CAAO;CACzC,OAAO,CAAC,CAAC,MAAY,MAAY,KAAW,EAAS,GAAS,CAAO;AACvE;AACA,SAAS,EAAqB,GAAS;CACrC,IAAM,IAAW,IAAU,EAAY,CAAO,IA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-base-ui-${e}`;
1
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
2
+ function e(t, n, r = !0) {
3
+ return t.filter((e) => e.parentId === n).flatMap((n) => [...!r || n.context?.open ? [n] : [], ...e(t, n.id, r)]);
4
+ }
5
+ function t(e, t) {
6
+ let n = [], r = e.find((e) => e.id === t)?.parentId;
7
+ for (; r;) {
8
+ let t = e.find((e) => e.id === r);
9
+ r = t?.parentId, t && (n = n.concat(t));
10
+ }
11
+ return n;
4
12
  }
5
13
  //#endregion
6
- export { e as createAttribute };
14
+ export { t as getNodeAncestors, e as getNodeChildren };
7
15
 
8
16
  //# sourceMappingURL=index236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index236.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs"],"sourcesContent":["export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAgB,GAAM;CACpC,OAAO,gBAAgB;AACzB"}
1
+ {"version":3,"file":"index236.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAgB,EAAgB,GAAO,GAAI,IAAmB,IAAM;CAElE,OADuB,EAAM,QAAO,MAAQ,EAAK,aAAa,CAC1C,CAAC,CAAC,SAAQ,MAAS,CAAC,GAAI,CAAC,KAAoB,EAAM,SAAS,OAAO,CAAC,CAAK,IAAI,CAAC,GAAI,GAAG,EAAgB,GAAO,EAAM,IAAI,CAAgB,CAAC,CAAC;AAC9J;AAiBA,SAAgB,EAAiB,GAAO,GAAI;CAC1C,IAAI,IAAe,CAAC,GAChB,IAAkB,EAAM,MAAK,MAAQ,EAAK,OAAO,CAAE,CAAC,EAAE;CAC1D,OAAO,IAAiB;EACtB,IAAM,IAAc,EAAM,MAAK,MAAQ,EAAK,OAAO,CAAe;EAElE,AADA,IAAkB,GAAa,UAC3B,MACF,IAAe,EAAa,OAAO,CAAW;CAElD;CACA,OAAO;AACT"}
package/dist/index237.js CHANGED
@@ -1,19 +1,8 @@
1
- import { NOOP as e } from "./index191.js";
2
- //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
3
- var t = 0;
4
- function n(n, r = {}) {
5
- let { preventScroll: i = !1, sync: a = !1, shouldFocus: o } = r;
6
- cancelAnimationFrame(t);
7
- function s() {
8
- o && !o() || n?.focus({ preventScroll: i });
9
- }
10
- if (a) return s(), e;
11
- let c = requestAnimationFrame(s);
12
- return t = c, () => {
13
- t === c && (cancelAnimationFrame(c), t = 0);
14
- };
1
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
2
+ function e(e) {
3
+ return `data-base-ui-${e}`;
15
4
  }
16
5
  //#endregion
17
- export { n as enqueueFocus };
6
+ export { e as createAttribute };
18
7
 
19
8
  //# sourceMappingURL=index237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index237.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAI,IAAQ;AACZ,SAAgB,EAAa,GAAI,IAAU,CAAC,GAAG;CAC7C,IAAM,EACJ,mBAAgB,IAChB,UAAO,IACP,mBACE;CACJ,qBAAqB,CAAK;CAC1B,SAAS,IAAO;EACV,KAAe,CAAC,EAAY,KAGhC,GAAI,MAAM,EACR,iBACF,CAAC;CACH;CACA,IAAI,GAEF,OADA,EAAK,GACE;CAET,IAAM,IAAe,sBAAsB,CAAI;CAE/C,OADA,IAAQ,SACK;EACX,AAAI,MAAU,MACZ,qBAAqB,CAAY,GACjC,IAAQ;CAEZ;AACF"}
1
+ {"version":3,"file":"index237.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs"],"sourcesContent":["export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAgB,GAAM;CACpC,OAAO,gBAAgB;AACzB"}
package/dist/index238.js CHANGED
@@ -1,68 +1,19 @@
1
- import { getNodeName as e, isShadowRoot as t } from "./index200.js";
2
- import { ownerDocument as n } from "./index229.js";
3
- //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
4
- var r = {
5
- inert: /* @__PURE__ */ new WeakMap(),
6
- "aria-hidden": /* @__PURE__ */ new WeakMap()
7
- }, i = "data-base-ui-inert", a = {
8
- inert: /* @__PURE__ */ new WeakSet(),
9
- "aria-hidden": /* @__PURE__ */ new WeakSet()
10
- }, o = /* @__PURE__ */ new WeakMap(), s = 0;
11
- function c(e) {
12
- return a[e];
13
- }
14
- function l(e) {
15
- return e ? t(e) ? e.host : l(e.parentNode) : null;
16
- }
17
- var u = (e, t) => t.map((t) => {
18
- if (e.contains(t)) return t;
19
- let n = l(t);
20
- return e.contains(n) ? n : null;
21
- }).filter((e) => e != null), d = (e) => {
22
- let t = /* @__PURE__ */ new Set();
23
- return e.forEach((e) => {
24
- let n = e;
25
- for (; n && !t.has(n);) t.add(n), n = n.parentNode;
26
- }), t;
27
- }, f = (t, n, r) => {
28
- let i = [], a = (t) => {
29
- !t || r.has(t) || Array.from(t.children).forEach((t) => {
30
- e(t) !== "script" && (n.has(t) ? a(t) : i.push(t));
31
- });
32
- };
33
- return a(t), i;
34
- };
35
- function p(e, t, n, l, { mark: p = !0 }) {
36
- let m = null;
37
- l ? m = "inert" : n && (m = "aria-hidden");
38
- let h = null, g = null, _ = u(t, e), v = p ? f(t, d(_), new Set(_)) : [], y = [], b = [];
39
- if (m) {
40
- let e = r[m], n = c(m);
41
- g = n, h = e;
42
- let i = u(t, Array.from(t.querySelectorAll("[aria-live]"))), a = _.concat(i);
43
- f(t, d(a), new Set(a)).forEach((t) => {
44
- let r = t.getAttribute(m), i = r !== null && r !== "false", a = (e.get(t) || 0) + 1;
45
- e.set(t, a), y.push(t), a === 1 && i && n.add(t), i || t.setAttribute(m, m === "inert" ? "" : "true");
46
- });
1
+ import { NOOP as e } from "./index191.js";
2
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
3
+ var t = 0;
4
+ function n(n, r = {}) {
5
+ let { preventScroll: i = !1, sync: a = !1, shouldFocus: o } = r;
6
+ cancelAnimationFrame(t);
7
+ function s() {
8
+ o && !o() || n?.focus({ preventScroll: i });
47
9
  }
48
- return p && v.forEach((e) => {
49
- let t = (o.get(e) || 0) + 1;
50
- o.set(e, t), b.push(e), t === 1 && e.setAttribute(i, "");
51
- }), s += 1, () => {
52
- h && y.forEach((e) => {
53
- let t = (h.get(e) || 0) - 1;
54
- h.set(e, t), t || (!g?.has(e) && m && e.removeAttribute(m), g?.delete(e));
55
- }), p && b.forEach((e) => {
56
- let t = (o.get(e) || 0) - 1;
57
- o.set(e, t), t || e.removeAttribute(i);
58
- }), --s, s || (r.inert = /* @__PURE__ */ new WeakMap(), r["aria-hidden"] = /* @__PURE__ */ new WeakMap(), a.inert = /* @__PURE__ */ new WeakSet(), a["aria-hidden"] = /* @__PURE__ */ new WeakSet(), o = /* @__PURE__ */ new WeakMap());
10
+ if (a) return s(), e;
11
+ let c = requestAnimationFrame(s);
12
+ return t = c, () => {
13
+ t === c && (cancelAnimationFrame(c), t = 0);
59
14
  };
60
15
  }
61
- function m(e, t = {}) {
62
- let { ariaHidden: r = !1, inert: i = !1, mark: a = !0 } = t, o = n(e[0]).body;
63
- return p(e, o, r, i, { mark: a });
64
- }
65
16
  //#endregion
66
- export { m as markOthers };
17
+ export { n as enqueueFocus };
67
18
 
68
19
  //# sourceMappingURL=index238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index238.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";;;AAIA,IAAM,IAAW;CACf,uBAAO,IAAI,QAAQ;CACnB,+BAAe,IAAI,QAAQ;AAC7B,GACM,IAAa,sBACb,IAA2B;CAC/B,uBAAO,IAAI,QAAQ;CACnB,+BAAe,IAAI,QAAQ;AAC7B,GACI,oBAAmB,IAAI,QAAQ,GAC/B,IAAY;AAChB,SAAS,EAA2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iB,IAAI,QAAQ,GACtC,EAAyB,wBAAQ,IAAI,QAAQ,GAC7C,EAAyB,iCAAiB,IAAI,QAAQ,GACtD,oBAAmB,IAAI,QAAQ;CAEnC;AACF;AACA,SAAgB,EAAW,GAAe,IAAU,CAAC,GAAG;CACtD,IAAM,EACJ,gBAAa,IACb,WAAQ,IACR,UAAO,OACL,GACE,IAAO,EAAc,EAAc,EAAE,CAAC,CAAC;CAC7C,OAAO,EAAuB,GAAe,GAAM,GAAY,GAAO,EACpE,QACF,CAAC;AACH"}
1
+ {"version":3,"file":"index238.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAI,IAAQ;AACZ,SAAgB,EAAa,GAAI,IAAU,CAAC,GAAG;CAC7C,IAAM,EACJ,mBAAgB,IAChB,UAAO,IACP,mBACE;CACJ,qBAAqB,CAAK;CAC1B,SAAS,IAAO;EACV,KAAe,CAAC,EAAY,KAGhC,GAAI,MAAM,EACR,iBACF,CAAC;CACH;CACA,IAAI,GAEF,OADA,EAAK,GACE;CAET,IAAM,IAAe,sBAAsB,CAAI;CAE/C,OADA,IAAQ,SACK;EACX,AAAI,MAAU,MACZ,qBAAqB,CAAY,GACjC,IAAQ;CAEZ;AACF"}
package/dist/index239.js CHANGED
@@ -1,13 +1,68 @@
1
- //#region ../../node_modules/@base-ui/react/internals/constants.mjs
2
- var e = { style: { transition: "none" } }, t = "data-base-ui-click-trigger", n = "data-base-ui-swipe-ignore", r = "data-swipe-ignore";
3
- `${n}`, `${r}`;
4
- var i = { fallbackAxisSide: "none" }, a = {
5
- clipPath: "inset(50%)",
6
- position: "fixed",
7
- top: 0,
8
- left: 0
1
+ import { getNodeName as e, isShadowRoot as t } from "./index200.js";
2
+ import { ownerDocument as n } from "./index207.js";
3
+ //#region ../../node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
4
+ var r = {
5
+ inert: /* @__PURE__ */ new WeakMap(),
6
+ "aria-hidden": /* @__PURE__ */ new WeakMap()
7
+ }, i = "data-base-ui-inert", a = {
8
+ inert: /* @__PURE__ */ new WeakSet(),
9
+ "aria-hidden": /* @__PURE__ */ new WeakSet()
10
+ }, o = /* @__PURE__ */ new WeakMap(), s = 0;
11
+ function c(e) {
12
+ return a[e];
13
+ }
14
+ function l(e) {
15
+ return e ? t(e) ? e.host : l(e.parentNode) : null;
16
+ }
17
+ var u = (e, t) => t.map((t) => {
18
+ if (e.contains(t)) return t;
19
+ let n = l(t);
20
+ return e.contains(n) ? n : null;
21
+ }).filter((e) => e != null), d = (e) => {
22
+ let t = /* @__PURE__ */ new Set();
23
+ return e.forEach((e) => {
24
+ let n = e;
25
+ for (; n && !t.has(n);) t.add(n), n = n.parentNode;
26
+ }), t;
27
+ }, f = (t, n, r) => {
28
+ let i = [], a = (t) => {
29
+ !t || r.has(t) || Array.from(t.children).forEach((t) => {
30
+ e(t) !== "script" && (n.has(t) ? a(t) : i.push(t));
31
+ });
32
+ };
33
+ return a(t), i;
9
34
  };
35
+ function p(e, t, n, l, { mark: p = !0 }) {
36
+ let m = null;
37
+ l ? m = "inert" : n && (m = "aria-hidden");
38
+ let h = null, g = null, _ = u(t, e), v = p ? f(t, d(_), new Set(_)) : [], y = [], b = [];
39
+ if (m) {
40
+ let e = r[m], n = c(m);
41
+ g = n, h = e;
42
+ let i = u(t, Array.from(t.querySelectorAll("[aria-live]"))), a = _.concat(i);
43
+ f(t, d(a), new Set(a)).forEach((t) => {
44
+ let r = t.getAttribute(m), i = r !== null && r !== "false", a = (e.get(t) || 0) + 1;
45
+ e.set(t, a), y.push(t), a === 1 && i && n.add(t), i || t.setAttribute(m, m === "inert" ? "" : "true");
46
+ });
47
+ }
48
+ return p && v.forEach((e) => {
49
+ let t = (o.get(e) || 0) + 1;
50
+ o.set(e, t), b.push(e), t === 1 && e.setAttribute(i, "");
51
+ }), s += 1, () => {
52
+ h && y.forEach((e) => {
53
+ let t = (h.get(e) || 0) - 1;
54
+ h.set(e, t), t || (!g?.has(e) && m && e.removeAttribute(m), g?.delete(e));
55
+ }), p && b.forEach((e) => {
56
+ let t = (o.get(e) || 0) - 1;
57
+ o.set(e, t), t || e.removeAttribute(i);
58
+ }), --s, s || (r.inert = /* @__PURE__ */ new WeakMap(), r["aria-hidden"] = /* @__PURE__ */ new WeakMap(), a.inert = /* @__PURE__ */ new WeakSet(), a["aria-hidden"] = /* @__PURE__ */ new WeakSet(), o = /* @__PURE__ */ new WeakMap());
59
+ };
60
+ }
61
+ function m(e, t = {}) {
62
+ let { ariaHidden: r = !1, inert: i = !1, mark: a = !0 } = t, o = n(e[0]).body;
63
+ return p(e, o, r, i, { mark: a });
64
+ }
10
65
  //#endregion
11
- export { n as BASE_UI_SWIPE_IGNORE_ATTRIBUTE, t as CLICK_TRIGGER_IDENTIFIER, e as DISABLED_TRANSITIONS_STYLE, i as DROPDOWN_COLLISION_AVOIDANCE, r as LEGACY_SWIPE_IGNORE_ATTRIBUTE, a as ownerVisuallyHidden };
66
+ export { m as markOthers };
12
67
 
13
68
  //# sourceMappingURL=index239.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index239.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/constants.mjs"],"sourcesContent":["export const TYPEAHEAD_RESET_MS = 500;\nexport const PATIENT_CLICK_THRESHOLD = 500;\nexport const DISABLED_TRANSITIONS_STYLE = {\n style: {\n transition: 'none'\n }\n};\nexport const CLICK_TRIGGER_IDENTIFIER = 'data-base-ui-click-trigger';\nexport const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = 'data-base-ui-swipe-ignore';\nexport const LEGACY_SWIPE_IGNORE_ATTRIBUTE = 'data-swipe-ignore';\nexport const BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;\nexport const LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;\n\n/**\n * Used for dropdowns that usually strictly prefer top/bottom placements and\n * use `var(--available-height)` to limit their height.\n */\nexport const DROPDOWN_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'none'\n};\n\n/**\n * Used by regular popups that usually aren't scrollable and are allowed to\n * freely flip to any axis of placement.\n */\nexport const POPUP_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'end'\n};\n\n/**\n * Special visually hidden styles for the aria-owns owner element to ensure owned element\n * accessibility in iOS/Safari/VoiceControl.\n * The owner element is an empty span, so most of the common visually hidden styles are not needed.\n * @see https://github.com/floating-ui/floating-ui/issues/3403\n */\nexport const ownerVisuallyHidden = {\n clipPath: 'inset(50%)',\n position: 'fixed',\n top: 0,\n left: 0\n};"],"x_google_ignoreList":[0],"mappings":";AAEA,IAAa,IAA6B,EACxC,OAAO,EACL,YAAY,OACd,EACF,GACa,IAA2B,8BAC3B,IAAiC,6BACjC,IAAgC;AACA,GAAI,EAAJ,GACD,GAAI,EAAJ;AAM5C,IAAa,IAA+B,EAC1C,kBAAkB,OACpB,GAgBa,IAAsB;CACjC,UAAU;CACV,UAAU;CACV,KAAK;CACL,MAAM;AACR"}
1
+ {"version":3,"file":"index239.js","names":[],"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,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,GAE1C,GAAyB,OAAO,CAAO;EAE3C,CAAC,GAEC,KACF,EAAe,SAAQ,MAAW;GAChC,IAAM,KAAe,EAAiB,IAAI,CAAO,KAAK,KAAK;GAE3D,AADA,EAAiB,IAAI,GAAS,CAAW,GACpC,KACH,EAAQ,gBAAgB,CAAU;EAEtC,CAAC,GAEH,KACK,MACH,EAAS,wBAAQ,IAAI,QAAQ,GAC7B,EAAS,iCAAiB,IAAI,QAAQ,GACtC,EAAyB,wBAAQ,IAAI,QAAQ,GAC7C,EAAyB,iCAAiB,IAAI,QAAQ,GACtD,oBAAmB,IAAI,QAAQ;CAEnC;AACF;AACA,SAAgB,EAAW,GAAe,IAAU,CAAC,GAAG;CACtD,IAAM,EACJ,gBAAa,IACb,WAAQ,IACR,UAAO,OACL,GACE,IAAO,EAAc,EAAc,EAAE,CAAC,CAAC;CAC7C,OAAO,EAAuB,GAAe,GAAM,GAAY,GAAO,EACpE,QACF,CAAC;AACH"}
package/dist/index240.js CHANGED
@@ -1,109 +1,13 @@
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 "./index208.js";
8
- import { createChangeEventDetails as a } from "./index209.js";
9
- import { useId as o } from "./index211.js";
10
- import { addEventListener as s } from "./index225.js";
11
- import { mergeCleanups as c } from "./index226.js";
12
- import { FocusGuard as l } from "./index231.js";
13
- import { disableFocusInside as u, enableFocusInside as d, getNextTabbable as f, getPreviousTabbable as p, isOutsideEvent as m } from "./index234.js";
14
- import { createAttribute as h } from "./index236.js";
15
- import { ownerVisuallyHidden as g } from "./index239.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
- if (d == null) return;
33
- let e = (c && (n(c) ? c : c.current)) ?? f ?? document.body;
34
- if (e == null) {
35
- y.current && (y.current = null, g(null), m(null));
36
- return;
37
- }
38
- y.current !== e && (y.current = e, g(null), m(e));
39
- }, [
40
- c,
41
- f,
42
- d
43
- ]);
44
- let x = t("div", l, {
45
- ref: [s, v],
46
- props: [{
47
- id: d,
48
- [C]: ""
49
- }, u]
50
- });
51
- return {
52
- portalNode: h,
53
- portalSubtree: p && x ? /*#__PURE__*/ b.createPortal(x, p) : null
54
- };
55
- }
56
- var T = /*#__PURE__*/ _.forwardRef(function(e, t) {
57
- let { render: n, className: r, style: o, children: h, container: S, renderGuards: C, ...T } = e, { portalNode: E, portalSubtree: D } = w({
58
- container: S,
59
- ref: t,
60
- componentProps: e,
61
- elementProps: T
62
- }), 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 = typeof C == "boolean" ? C : !!M && !M.modal && M.open && !!E;
63
- _.useEffect(() => {
64
- if (!E || F) return;
65
- function e(e) {
66
- E && e.relatedTarget && m(e) && (e.type === "focusin" ? P.current &&= (d(E), !1) : (u(E), P.current = !0));
67
- }
68
- return c(s(E, "focusin", e, !0), s(E, "focusout", e, !0));
69
- }, [E, F]), i(() => {
70
- !E || I !== !0 || !P.current || (d(E), P.current = !1);
71
- }, [I, E]);
72
- let R = _.useMemo(() => ({
73
- beforeOutsideRef: O,
74
- afterOutsideRef: k,
75
- beforeInsideRef: A,
76
- afterInsideRef: j,
77
- portalNode: E,
78
- setFocusManagerState: N
79
- }), [E]);
80
- return /*#__PURE__*/ y(_.Fragment, { children: [D, /*#__PURE__*/ y(x.Provider, {
81
- value: R,
82
- children: [
83
- L && E && /*#__PURE__*/ v(l, {
84
- "data-type": "outside",
85
- ref: O,
86
- onFocus: (e) => {
87
- m(e, E) ? A.current?.focus() : p(M ? M.domReference : null)?.focus();
88
- }
89
- }),
90
- L && E && /*#__PURE__*/ v("span", {
91
- "aria-owns": E.id,
92
- style: g
93
- }),
94
- E && /*#__PURE__*/ b.createPortal(h, E),
95
- L && E && /*#__PURE__*/ v(l, {
96
- "data-type": "outside",
97
- ref: k,
98
- onFocus: (e) => {
99
- m(e, E) ? j.current?.focus() : (f(M ? M.domReference : null)?.focus(), M?.closeOnFocusOut && M?.onOpenChange(!1, a("focus-out", e.nativeEvent)));
100
- }
101
- })
102
- ]
103
- })] });
104
- });
105
- process.env.NODE_ENV !== "production" && (T.displayName = "FloatingPortal");
1
+ //#region ../../node_modules/@base-ui/react/internals/constants.mjs
2
+ var e = { style: { transition: "none" } }, t = "data-base-ui-click-trigger", n = "data-base-ui-swipe-ignore", r = "data-swipe-ignore";
3
+ `${n}`, `${r}`;
4
+ var i = { fallbackAxisSide: "none" }, a = {
5
+ clipPath: "inset(50%)",
6
+ position: "fixed",
7
+ top: 0,
8
+ left: 0
9
+ };
106
10
  //#endregion
107
- export { T as FloatingPortal, w as useFloatingPortalNode, S as usePortalContext };
11
+ export { n as BASE_UI_SWIPE_IGNORE_ATTRIBUTE, t as CLICK_TRIGGER_IDENTIFIER, e as DISABLED_TRANSITIONS_STYLE, i as DROPDOWN_COLLISION_AVOIDANCE, r as LEGACY_SWIPE_IGNORE_ATTRIBUTE, a as ownerVisuallyHidden };
108
12
 
109
13
  //# sourceMappingURL=index240.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index240.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\n // React 17 does not use React.useId().\n if (uniqueId == null) {\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, uniqueId]);\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 portalNode,\n 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 renderGuards,\n ...elementProps\n } = componentProps;\n const {\n portalNode,\n 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 = typeof renderGuards === 'boolean' ? renderGuards : !!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\": portalNode.id,\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":";;;;;;;;;;;;;;;;;;;AAmBA,IAAM,IAA6B,gBAAM,cAAc,IAAI;AAC3D,QAAA,IAAA,aAA6B,iBAAc,EAAc,cAAc;AACvE,IAAa,UAAyBA,EAAM,WAAW,CAAa,GAC9D,IAAO,EAAgB,QAAQ;AACrC,SAAgB,EAAsB,IAAQ,CAAC,GAAG;CAChD,IAAM,EACJ,QACA,WAAW,GACX,oBAAiB,GACjB,oBACE,GACE,IAAW,EAAM,GAEjB,IADgB,EACe,CAAC,EAAE,YAClC,CAAC,GAAkB,KAAuBA,EAAM,SAAS,IAAI,GAC7D,CAAC,GAAY,KAAiBA,EAAM,SAAS,IAAI,GACjD,IAAmB,GAAkB,MAAQ;EACjD,AAAI,MAAS,QAIX,EAAc,CAAI;CAEtB,CAAC,GACK,IAAeA,EAAM,OAAO,IAAI;CACtC,QAAyB;EAEvB,IAAI,MAAkB,MAAM;GAC1B,AAAI,EAAa,YACf,EAAa,UAAU,MACvB,EAAc,IAAI,GAClB,EAAoB,IAAI;GAE1B;EACF;EAGA,IAAI,KAAY,MACd;EAEF,IAAM,KAAqB,MAAkB,EAAO,CAAa,IAAI,IAAgB,EAAc,a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mjs"],"sourcesContent":["export const TYPEAHEAD_RESET_MS = 500;\nexport const PATIENT_CLICK_THRESHOLD = 500;\nexport const DISABLED_TRANSITIONS_STYLE = {\n style: {\n transition: 'none'\n }\n};\nexport const CLICK_TRIGGER_IDENTIFIER = 'data-base-ui-click-trigger';\nexport const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = 'data-base-ui-swipe-ignore';\nexport const LEGACY_SWIPE_IGNORE_ATTRIBUTE = 'data-swipe-ignore';\nexport const BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;\nexport const LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;\n\n/**\n * Used for dropdowns that usually strictly prefer top/bottom placements and\n * use `var(--available-height)` to limit their height.\n */\nexport const DROPDOWN_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'none'\n};\n\n/**\n * Used by regular popups that usually aren't scrollable and are allowed to\n * freely flip to any axis of placement.\n */\nexport const POPUP_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'end'\n};\n\n/**\n * Special visually hidden styles for the aria-owns owner element to ensure owned element\n * accessibility in iOS/Safari/VoiceControl.\n * The owner element is an empty span, so most of the common visually hidden styles are not needed.\n * @see https://github.com/floating-ui/floating-ui/issues/3403\n */\nexport const ownerVisuallyHidden = {\n clipPath: 'inset(50%)',\n position: 'fixed',\n top: 0,\n left: 0\n};"],"x_google_ignoreList":[0],"mappings":";AAEA,IAAa,IAA6B,EACxC,OAAO,EACL,YAAY,OACd,EACF,GACa,IAA2B,8BAC3B,IAAiC,6BACjC,IAAgC;AACA,GAAI,EAAJ,GACD,GAAI,EAAJ;AAM5C,IAAa,IAA+B,EAC1C,kBAAkB,OACpB,GAgBa,IAAsB;CACjC,UAAU;CACV,UAAU;CACV,KAAK;CACL,MAAM;AACR"}