@rpcbase/ui 0.279.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
@@ -1 +1 @@
1
- {"version":3,"file":"index196.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/internals/useRenderElement.mjs"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.mjs\";\nimport { resolveClassName } from \"../utils/resolveClassName.mjs\";\nimport { resolveStyle } from \"../utils/resolveStyle.mjs\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.mjs\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/facebook/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n\n // Workaround for https://github.com/facebook/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAmBA,SAAgB,EAAiB,GAAS,GAAgB,IAAS,CAAC,GAAG;CACrE,IAAM,IAAa,EAAe,QAC5B,IAAW,EAAsB,GAAgB,CAAM;CAK7D,OAJI,EAAO,YAAY,KACd,OAGF,EAAmB,GAAS,GAAY,GADjC,EAAO,SAAS,CACgC;AAChE;AAKA,SAAS,EAAsB,GAAgB,IAAS,CAAC,GAAG;CAC1D,IAAM,EACJ,WAAW,GACX,OAAO,GACP,QAAQ,MACN,GACE,EACJ,WAAQ,GACR,QACA,UACA,2BACA,aAAU,OACR,GACE,IAAY,IAAU,EAAiB,GAAe,CAAK,IAAI,KAAA,GAC/D,IAAQ,IAAU,EAAa,GAAW,CAAK,IAAI,KAAA,GACnD,IAAa,IAAU,EAAwB,GAAO,CAAsB,IAAI,GAChF,IAAgB,KAAW,IAAQ,EAA2B,CAAK,IAAI,KAAA,GAKvE,IAAW,IAAU,EAAa,GAAY,CAAa,KAAK,CAAC,IAAI;CA0B3E,OAlBI,OAAO,WAAa,QACjB,IAEM,MAAM,QAAQ,CAAG,IAC1B,EAAS,MAAM,EAAe;EAAC,EAAS;EAAK,EAAmB,CAAU;EAAG,GAAG;CAAG,CAAC,IAEpF,EAAS,MAAM,EAAc,EAAS,KAAK,EAAmB,CAAU,GAAG,CAAG,IAJ9E,EAAc,MAAM,IAAI,IAOvB,KAGD,MAAc,KAAA,MAChB,EAAS,YAAY,EAAgB,EAAS,WAAW,CAAS,IAEh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MAAQ,QACU,gBAAe,OAAO;EACxC,KAAK;EACL,GAAG;EACH,KAAK,EAAM;CACb,CAAC,IAEiB,gBAAM,cAAc,GAAK,CAAK;AACpD"}
1
+ {"version":3,"file":"index196.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/internals/useRenderElement.mjs"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.mjs\";\nimport { resolveClassName } from \"../utils/resolveClassName.mjs\";\nimport { resolveStyle } from \"../utils/resolveStyle.mjs\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.mjs\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n // Called only to keep the hook order stable when disabled; the merged ref is unused.\n void useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/react/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n // Workaround for https://github.com/react/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/react/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAmBA,SAAgB,EAAiB,GAAS,GAAgB,IAAS,CAAC,GAAG;CACrE,IAAM,IAAa,EAAe,QAC5B,IAAW,EAAsB,GAAgB,CAAM;CAK7D,OAJI,EAAO,YAAY,KACd,OAGF,EAAmB,GAAS,GAAY,GADjC,EAAO,SAAS,CACgC;AAChE;AAKA,SAAS,EAAsB,GAAgB,IAAS,CAAC,GAAG;CAC1D,IAAM,EACJ,WAAW,GACX,OAAO,GACP,QAAQ,MACN,GACE,EACJ,WAAQ,GACR,QACA,UACA,2BACA,aAAU,OACR,GACE,IAAY,IAAU,EAAiB,GAAe,CAAK,IAAI,KAAA,GAC/D,IAAQ,IAAU,EAAa,GAAW,CAAK,IAAI,KAAA,GACnD,IAAa,IAAU,EAAwB,GAAO,CAAsB,IAAI,GAChF,IAAgB,KAAW,IAAQ,EAA2B,CAAK,IAAI,KAAA,GAKvE,IAAW,IAAU,EAAa,GAAY,CAAa,KAAK,CAAC,IAAI;CA2B3E,OAnBI,OAAO,WAAa,QACjB,IAGE,AAGL,EAAS,MAHA,MAAM,QAAQ,CAAG,IACX,EAAe;EAAC,EAAS;EAAK,EAAmB,CAAU;EAAG,GAAG;CAAG,CAAC,IAErE,EAAc,EAAS,KAAK,EAAmB,CAAU,GAAG,CAAG,IAJ9E,EAAmB,MAAM,IAAI,IAO5B,KAGD,MAAc,KAAA,MAChB,EAAS,YAAY,EAAgB,EAAS,WAAW,CAAS,IAEhE,MAAU,KAAA,MACZ,EAAS,QAAQ,EAAa,EAAS,OAAO,C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AK,EAAM;CACb,CAAC,IAEiB,gBAAM,cAAc,GAAK,CAAK;AACpD"}
package/dist/index197.js CHANGED
@@ -1,7 +1,7 @@
1
1
  //#region ../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
2
2
  var e = /*#__PURE__*/ function(e) {
3
3
  return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
4
- }({}), t = { [e.startingStyle]: "" }, n = { [e.endingStyle]: "" }, r = { transitionStatus(e) {
4
+ }({}), t = { "data-starting-style": "" }, n = { "data-ending-style": "" }, r = { transitionStatus(e) {
5
5
  return e === "starting" ? t : e === "ending" ? n : null;
6
6
  } };
7
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index197.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["export let TransitionStatusDataAttributes = /*#__PURE__*/function (TransitionStatusDataAttributes) {\n /**\n * Present when the component is animating in.\n */\n TransitionStatusDataAttributes[\"startingStyle\"] = \"data-starting-style\";\n /**\n * Present when the component is animating out.\n */\n TransitionStatusDataAttributes[\"endingStyle\"] = \"data-ending-style\";\n return TransitionStatusDataAttributes;\n}({});\nconst STARTING_HOOK = {\n [TransitionStatusDataAttributes.startingStyle]: ''\n};\nconst ENDING_HOOK = {\n [TransitionStatusDataAttributes.endingStyle]: ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAA8C,uBAAU,GAAgC;CASjG,OALA,EAA+B,gBAAmB,uBAIlD,EAA+B,cAAiB,qBACzC;AACT,EAAE,CAAC,CAAC,GACE,IAAgB,GACnB,EAA+B,gBAAgB,GAClD,GACM,IAAc,GACjB,EAA+B,cAAc,GAChD,GACa,IAA0B,EACrC,iBAAiB,GAAO;CAOtB,OANI,MAAU,aACL,IAEL,MAAU,WACL,IAEF;AACT,EACF"}
1
+ {"version":3,"file":"index197.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["export let TransitionStatusDataAttributes = /*#__PURE__*/function (TransitionStatusDataAttributes) {\n /**\n * Present when the component begins animating in.\n */\n TransitionStatusDataAttributes[\"startingStyle\"] = \"data-starting-style\";\n /**\n * Present when the component is animating out.\n */\n TransitionStatusDataAttributes[\"endingStyle\"] = \"data-ending-style\";\n return TransitionStatusDataAttributes;\n}({});\nconst STARTING_HOOK = {\n 'data-starting-style': ''\n};\nconst ENDING_HOOK = {\n 'data-ending-style': ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAA8C,uBAAU,GAAgC;CASjG,OALA,EAA+B,gBAAmB,uBAIlD,EAA+B,cAAiB,qBACzC;AACT,EAAE,CAAC,CAAC,GACE,IAAgB,EACpB,uBAAuB,GACzB,GACM,IAAc,EAClB,qBAAqB,GACvB,GACa,IAA0B,EACrC,iBAAiB,GAAO;CAOtB,OANI,MAAU,aACL,IAEL,MAAU,WACL,IAEF;AACT,EACF"}
package/dist/index198.js CHANGED
@@ -1,25 +1,26 @@
1
- import { TransitionStatusDataAttributes as e } from "./index197.js";
2
- //#region ../../node_modules/@base-ui/react/utils/popupStateMapping.mjs
3
- var t = function(t) {
1
+ import { TransitionStatusDataAttributes as e, transitionStatusMapping as t } from "./index197.js";
2
+ (function(t) {
4
3
  return t.open = "data-open", t.closed = "data-closed", t[t.startingStyle = e.startingStyle] = "startingStyle", t[t.endingStyle = e.endingStyle] = "endingStyle", t.anchorHidden = "data-anchor-hidden", t.side = "data-side", t.align = "data-align", t;
5
- }({}), n = /*#__PURE__*/ function(e) {
6
- return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
7
- }({}), r = { [n.popupOpen]: "" }, i = {
8
- [n.popupOpen]: "",
9
- [n.pressed]: ""
10
- }, a = { [t.open]: "" }, o = { [t.closed]: "" }, s = { [t.anchorHidden]: "" }, c = { open(e) {
4
+ })({});
5
+ var n = { "data-popup-open": "" }, r = {
6
+ "data-popup-open": "",
7
+ "data-pressed": ""
8
+ }, i = { "data-open": "" }, a = { "data-closed": "" }, o = { "data-anchor-hidden": "" }, s = { open(e) {
9
+ return e ? n : null;
10
+ } }, c = { open(e) {
11
11
  return e ? r : null;
12
- } }, l = { open(e) {
13
- return e ? i : null;
14
- } }, u = {
12
+ } }, l = {
15
13
  open(e) {
16
- return e ? a : o;
14
+ return e ? i : a;
17
15
  },
18
16
  anchorHidden(e) {
19
- return e ? s : null;
17
+ return e ? o : null;
20
18
  }
19
+ }, u = {
20
+ ...l,
21
+ ...t
21
22
  };
22
23
  //#endregion
23
- export { t as CommonPopupDataAttributes, n as CommonTriggerDataAttributes, u as popupStateMapping, l as pressableTriggerOpenStateMapping, c as triggerOpenStateMapping };
24
+ export { l as popupStateMapping, u as popupTransitionStateMapping, c as pressableTriggerOpenStateMapping, s as triggerOpenStateMapping };
24
25
 
25
26
  //# sourceMappingURL=index198.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index198.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/popupStateMapping.mjs"],"sourcesContent":["import { TransitionStatusDataAttributes } from \"../internals/stateAttributesMapping.mjs\";\nexport let CommonPopupDataAttributes = function (CommonPopupDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonPopupDataAttributes[\"open\"] = \"data-open\";\n /**\n * Present when the popup is closed.\n */\n CommonPopupDataAttributes[\"closed\"] = \"data-closed\";\n /**\n * Present when the popup is animating in.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"startingStyle\"] = TransitionStatusDataAttributes.startingStyle] = \"startingStyle\";\n /**\n * Present when the popup is animating out.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"endingStyle\"] = TransitionStatusDataAttributes.endingStyle] = \"endingStyle\";\n /**\n * Present when the anchor is hidden.\n */\n CommonPopupDataAttributes[\"anchorHidden\"] = \"data-anchor-hidden\";\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type { 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n CommonPopupDataAttributes[\"side\"] = \"data-side\";\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n CommonPopupDataAttributes[\"align\"] = \"data-align\";\n return CommonPopupDataAttributes;\n}({});\nexport let CommonTriggerDataAttributes = /*#__PURE__*/function (CommonTriggerDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonTriggerDataAttributes[\"popupOpen\"] = \"data-popup-open\";\n /**\n * Present when a pressable trigger is pressed.\n */\n CommonTriggerDataAttributes[\"pressed\"] = \"data-pressed\";\n return CommonTriggerDataAttributes;\n}({});\nconst TRIGGER_HOOK = {\n [CommonTriggerDataAttributes.popupOpen]: ''\n};\nconst PRESSABLE_TRIGGER_HOOK = {\n [CommonTriggerDataAttributes.popupOpen]: '',\n [CommonTriggerDataAttributes.pressed]: ''\n};\nconst POPUP_OPEN_HOOK = {\n [CommonPopupDataAttributes.open]: ''\n};\nconst POPUP_CLOSED_HOOK = {\n [CommonPopupDataAttributes.closed]: ''\n};\nconst ANCHOR_HIDDEN_HOOK = {\n [CommonPopupDataAttributes.anchorHidden]: ''\n};\nexport const triggerOpenStateMapping = {\n open(value) {\n if (value) {\n return TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const pressableTriggerOpenStateMapping = {\n open(value) {\n if (value) {\n return PRESSABLE_TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const popupStateMapping = {\n open(value) {\n if (value) {\n return POPUP_OPEN_HOOK;\n }\n return POPUP_CLOSED_HOOK;\n },\n anchorHidden(value) {\n if (value) {\n return ANCHOR_HIDDEN_HOOK;\n }\n return null;\n }\n};"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAW,IAA4B,SAAU,GAA2B;CA+B1E,OA3BA,EAA0B,OAAU,aAIpC,EAA0B,SAAY,eAItC,EAA0B,EAA0B,gBAAmB,EAA+B,iBAAiB,iBAIvH,EAA0B,EAA0B,cAAiB,EAA+B,eAAe,eAInH,EAA0B,eAAkB,sBAK5C,EAA0B,OAAU,aAKpC,EAA0B,QAAW,cAC9B;AACT,EAAE,CAAC,CAAC,GACO,IAA2C,uBAAU,GAA6B;CAS3F,OALA,EAA4B,YAAe,mBAI3C,EAA4B,UAAa,gBAClC;AACT,EAAE,CAAC,CAAC,GACE,IAAe,GAClB,EAA4B,YAAY,GAC3C,GACM,IAAyB;EAC5B,EAA4B,YAAY;EACxC,EAA4B,UAAU;AACzC,GACM,IAAkB,GACrB,EAA0B,OAAO,GACpC,GACM,IAAoB,GACvB,EAA0B,SAAS,GACtC,GACM,IAAqB,GACxB,EAA0B,eAAe,GAC5C,GACa,IAA0B,EACrC,KAAK,GAAO;CAIV,OAHI,IACK,IAEF;AACT,EACF,GACa,IAAmC,EAC9C,KAAK,GAAO;CAIV,OAHI,IACK,IAEF;AACT,EACF,GACa,IAAoB;CAC/B,KAAK,GAAO;EAIV,OAHI,IACK,IAEF;CACT;CACA,aAAa,GAAO;EAIlB,OAHI,IACK,IAEF;CACT;AACF"}
1
+ {"version":3,"file":"index198.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/popupStateMapping.mjs"],"sourcesContent":["import { TransitionStatusDataAttributes, transitionStatusMapping } from \"../internals/stateAttributesMapping.mjs\";\nexport let CommonPopupDataAttributes = function (CommonPopupDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonPopupDataAttributes[\"open\"] = \"data-open\";\n /**\n * Present when the popup is closed.\n */\n CommonPopupDataAttributes[\"closed\"] = \"data-closed\";\n /**\n * Present when the popup begins animating in.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"startingStyle\"] = TransitionStatusDataAttributes.startingStyle] = \"startingStyle\";\n /**\n * Present when the popup is animating out.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"endingStyle\"] = TransitionStatusDataAttributes.endingStyle] = \"endingStyle\";\n /**\n * Present when the anchor is hidden.\n */\n CommonPopupDataAttributes[\"anchorHidden\"] = \"data-anchor-hidden\";\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type { 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n CommonPopupDataAttributes[\"side\"] = \"data-side\";\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n CommonPopupDataAttributes[\"align\"] = \"data-align\";\n return CommonPopupDataAttributes;\n}({});\nexport let CommonTriggerDataAttributes = /*#__PURE__*/function (CommonTriggerDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonTriggerDataAttributes[\"popupOpen\"] = \"data-popup-open\";\n /**\n * Present when a pressable trigger is pressed.\n */\n CommonTriggerDataAttributes[\"pressed\"] = \"data-pressed\";\n return CommonTriggerDataAttributes;\n}({});\n\n// Literal keys (instead of enum member references) keep the docs-only enums above\n// tree-shakeable: a runtime reference would retain the whole enum IIFE in every bundle.\nconst TRIGGER_HOOK = {\n 'data-popup-open': ''\n};\nconst PRESSABLE_TRIGGER_HOOK = {\n 'data-popup-open': '',\n 'data-pressed': ''\n};\nconst POPUP_OPEN_HOOK = {\n 'data-open': ''\n};\nconst POPUP_CLOSED_HOOK = {\n 'data-closed': ''\n};\nconst ANCHOR_HIDDEN_HOOK = {\n 'data-anchor-hidden': ''\n};\nexport const triggerOpenStateMapping = {\n open(value) {\n if (value) {\n return TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const pressableTriggerOpenStateMapping = {\n open(value) {\n if (value) {\n return PRESSABLE_TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const popupStateMapping = {\n open(value) {\n if (value) {\n return POPUP_OPEN_HOOK;\n }\n return POPUP_CLOSED_HOOK;\n },\n anchorHidden(value) {\n if (value) {\n return ANCHOR_HIDDEN_HOOK;\n }\n return null;\n }\n};\nexport const popupTransitionStateMapping = {\n ...popupStateMapping,\n ...transitionStatusMapping\n};"],"x_google_ignoreList":[0],"mappings":";CACuC,SAAU,GAA2B;CA+B1E,OA3BA,EAA0B,OAAU,aAIpC,EAA0B,SAAY,eAItC,EAA0B,EAA0B,gBAAmB,EAA+B,iBAAiB,iBAIvH,EAA0B,EAA0B,cAAiB,EAA+B,eAAe,eAInH,EAA0B,eAAkB,sBAK5C,EAA0B,OAAU,aAKpC,EAA0B,QAAW,cAC9B;AACT,EAAA,CAAE,CAAC,CAAC;AAeJ,IAAM,IAAe,EACnB,mBAAmB,GACrB,GACM,IAAyB;CAC7B,mBAAmB;CACnB,gBAAgB;AAClB,GACM,IAAkB,EACtB,aAAa,GACf,GACM,IAAoB,EACxB,eAAe,GACjB,GACM,IAAqB,EACzB,sBAAsB,GACxB,GACa,IAA0B,EACrC,KAAK,GAAO;CAIV,OAHI,IACK,IAEF;AACT,EACF,GACa,IAAmC,EAC9C,KAAK,GAAO;CAIV,OAHI,IACK,IAEF;AACT,EACF,GACa,IAAoB;CAC/B,KAAK,GAAO;EAIV,OAHI,IACK,IAEF;CACT;CACA,aAAa,GAAO;EAIlB,OAHI,IACK,IAEF;CACT;AACF,GACa,IAA8B;CACzC,GAAG;CACH,GAAG;AACL"}
package/dist/index199.js CHANGED
@@ -1,22 +1,18 @@
1
1
  "use client";
2
2
  import { useDialogRootContext as e } from "./index184.js";
3
3
  import { useRenderElement as t } from "./index196.js";
4
- import { transitionStatusMapping as n } from "./index197.js";
5
- import { popupStateMapping as r } from "./index198.js";
6
- import * as i from "react";
4
+ import { popupTransitionStateMapping as n } from "./index198.js";
5
+ import * as r from "react";
7
6
  //#region ../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
8
- var a = {
9
- ...r,
10
- ...n
11
- }, o = /*#__PURE__*/ i.forwardRef(function(n, r) {
12
- let { render: i, className: o, style: s, forceRender: c = !1, ...l } = n, { store: u } = e(), d = u.useState("open"), f = u.useState("nested"), p = u.useState("mounted");
13
- return t("div", n, {
14
- state: {
15
- open: d,
16
- transitionStatus: u.useState("transitionStatus")
17
- },
18
- ref: [u.context.backdropRef, r],
19
- stateAttributesMapping: a,
7
+ var i = /*#__PURE__*/ r.forwardRef(function(r, i) {
8
+ let { render: a, className: o, style: s, forceRender: c = !1, ...l } = r, u = e(), d = u.useState("open"), f = u.useState("nested"), p = u.useState("mounted"), m = {
9
+ open: d,
10
+ transitionStatus: u.useState("transitionStatus")
11
+ };
12
+ return t("div", r, {
13
+ state: m,
14
+ ref: [u.context.backdropRef, i],
15
+ stateAttributesMapping: n,
20
16
  props: [{
21
17
  role: "presentation",
22
18
  hidden: !p,
@@ -28,8 +24,8 @@ var a = {
28
24
  enabled: c || !f
29
25
  });
30
26
  });
31
- process.env.NODE_ENV !== "production" && (o.displayName = "DialogBackdrop");
27
+ process.env.NODE_ENV !== "production" && (i.displayName = "DialogBackdrop");
32
28
  //#endregion
33
- export { o as DialogBackdrop };
29
+ export { i as DialogBackdrop };
34
30
 
35
31
  //# sourceMappingURL=index199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","names":["baseMapping"],"sources":["../../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { popupStateMapping as baseMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nconst stateAttributesMapping = {\n ...baseMapping,\n ...transitionStatusMapping\n};\n\n/**\n * An overlay displayed beneath the popup.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogBackdrop = /*#__PURE__*/React.forwardRef(function DialogBackdrop(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n forceRender = false,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const open = store.useState('open');\n const nested = store.useState('nested');\n const mounted = store.useState('mounted');\n const transitionStatus = store.useState('transitionStatus');\n const state = {\n open,\n transitionStatus\n };\n return useRenderElement('div', componentProps, {\n state,\n ref: [store.context.backdropRef, forwardedRef],\n stateAttributesMapping,\n props: [{\n role: 'presentation',\n hidden: !mounted,\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n }\n }, elementProps],\n enabled: forceRender || !nested\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogBackdrop.displayName = \"DialogBackdrop\";"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,IAAM,IAAyB;CAC7B,GAAGA;CACH,GAAG;AACL,GAQa,IAA8B,gBAAM,WAAW,SAAwB,GAAgB,GAAc;CAChH,IAAM,EACJ,WACA,cACA,UACA,iBAAc,IACd,GAAG,MACD,GACE,EACJ,aACE,EAAqB,GACnB,IAAO,EAAM,SAAS,MAAM,GAC5B,IAAS,EAAM,SAAS,QAAQ,GAChC,IAAU,EAAM,SAAS,SAAS;CAMxC,OAAO,EAAiB,OAAO,GAAgB;EAC7C,OAAA;GAJA;GACA,kBAHuB,EAAM,SAAS,kBAGvB;EAGX;EACJ,KAAK,CAAC,EAAM,QAAQ,aAAa,CAAY;EAC7C;EACA,OAAO,CAAC;GACN,MAAM;GACN,QAAQ,CAAC;GACT,OAAO;IACL,YAAY;IACZ,kBAAkB;GACpB;EACF,GAAG,CAAY;EACf,SAAS,KAAe,CAAC;CAC3B,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAe,cAAc"}
1
+ {"version":3,"file":"index199.js","names":[],"sources":["../../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { popupTransitionStateMapping } from \"../../utils/popupStateMapping.mjs\";\n\n/**\n * An overlay displayed beneath the popup.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogBackdrop = /*#__PURE__*/React.forwardRef(function DialogBackdrop(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n forceRender = false,\n ...elementProps\n } = componentProps;\n const store = useDialogRootContext();\n const open = store.useState('open');\n const nested = store.useState('nested');\n const mounted = store.useState('mounted');\n const transitionStatus = store.useState('transitionStatus');\n const state = {\n open,\n transitionStatus\n };\n return useRenderElement('div', componentProps, {\n state,\n ref: [store.context.backdropRef, forwardedRef],\n stateAttributesMapping: popupTransitionStateMapping,\n props: [{\n role: 'presentation',\n hidden: !mounted,\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n }\n }, elementProps],\n enabled: forceRender || !nested\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogBackdrop.displayName = \"DialogBackdrop\";"],"x_google_ignoreList":[0],"mappings":";;;;;;AAaA,IAAa,IAA8B,gBAAM,WAAW,SAAwB,GAAgB,GAAc;CAChH,IAAM,EACJ,WACA,cACA,UACA,iBAAc,IACd,GAAG,MACD,GACE,IAAQ,EAAqB,GAC7B,IAAO,EAAM,SAAS,MAAM,GAC5B,IAAS,EAAM,SAAS,QAAQ,GAChC,IAAU,EAAM,SAAS,SAAS,GAElC,IAAQ;EACZ;EACA,kBAHuB,EAAM,SAAS,kBAGvB;CACjB;CACA,OAAO,EAAiB,OAAO,GAAgB;EAC7C;EACA,KAAK,CAAC,EAAM,QAAQ,aAAa,CAAY;EAC7C,wBAAwB;EACxB,OAAO,CAAC;GACN,MAAM;GACN,QAAQ,CAAC;GACT,OAAO;IACL,YAAY;IACZ,kBAAkB;GACpB;EACF,GAAG,CAAY;EACf,SAAS,KAAe,CAAC;CAC3B,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAe,cAAc"}
package/dist/index200.js CHANGED
@@ -80,7 +80,7 @@ function x(e) {
80
80
  }
81
81
  function S(e) {
82
82
  let t = x(e);
83
- return v(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : o(t) && c(t) ? t : S(t);
83
+ return v(t) ? (e.ownerDocument || e).body : o(t) && c(t) ? t : S(t);
84
84
  }
85
85
  function C(e, t, r) {
86
86
  t === void 0 && (t = []), r === void 0 && (r = !0);
@@ -88,7 +88,8 @@ function C(e, t, r) {
88
88
  if (a) {
89
89
  let e = w(o);
90
90
  return t.concat(o, o.visualViewport || [], c(i) ? i : [], e && r ? C(e) : []);
91
- } else return t.concat(i, C(i, [], r));
91
+ }
92
+ return t.concat(i, C(i, [], r));
92
93
  }
93
94
  function w(e) {
94
95
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","names":[],"sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowR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EAAa,CAAI,KAAK,EAAK,QAE3B,EAAmB,CAAI;CACvB,OAAO,EAAa,CAAM,IAAI,EAAO,OAAO;AAC9C;AACA,SAAS,EAA2B,GAAM;CACxC,IAAM,IAAa,EAAc,CAAI;CAOrC,OANI,EAAsB,CAAU,IAC3B,EAAK,gBAAgB,EAAK,cAAc,OAAO,EAAK,OAEzD,EAAc,CAAU,KAAK,EAAkB,CAAU,IACpD,IAEF,EAA2B,CAAU;AAC9C;AACA,SAAS,EAAqB,GAAM,GAAM,GAAiB;CAKzD,AAHI,MAAS,KAAK,MAChB,IAAO,CAAC,IAEN,MAAoB,KAAK,MAC3B,IAAkB;CAEpB,IAAM,IAAqB,EAA2B,CAAI,GACpD,IAAS,MAAgD,EAAK,eAAuD,MACrH,IAAM,EAAU,CAAkB;CACxC,IAAI,GAAQ;EACV,IAAM,IAAe,EAAgB,CAAG;EACxC,OAAO,EAAK,OAAO,GAAK,EAAI,kBAAkB,CAAC,GAAG,EAAkB,CAAkB,IAAI,IAAqB,CAAC,GAAG,KAAgB,IAAkB,EAAqB,CAAY,IAAI,CAAC,CAAC;CAC9L,OACE,OAAO,EAAK,OAAO,GAAoB,EAAqB,GAAoB,CAAC,GAAG,CAAe,CAAC;AAExG;AACA,SAAS,EAAgB,GAAK;CAC5B,OAAO,EAAI,UAAU,OAAO,eAAe,EAAI,MAAM,IAAI,EAAI,eAAe;AAC9E"}
1
+ {"version":3,"file":"index200.js","names":[],"sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return (node.ownerDocument || node).body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,IAAY;CACnB,OAAO,OAAO,SAAW;AAC3B;AACA,SAAS,EAAY,GAAM;CAOzB,OANI,EAAO,CAAI,KACL,EAAK,YAAY,GAAA,CAAI,YAAY,IAKpC;AACT;AACA,SAAS,EAAU,GAAM;CACvB,IAAI;CACJ,QAAQ,KAAQ,SAAS,IAAsB,EAAK,kBAAkB,OAAO,KAAK,IAAI,EAAoB,gBAAgB;AAC5H;AACA,SAAS,EAAmB,GAAM;CAEhC,SAAgB,EAAO,CAAI,IAAI,EAAK,gBAAgB,EAAK,aAAa,OAAO,SAAA,EAAkC;AACjH;AACA,SAAS,EAAO,GAAO;CAIrB,OAHK,EAAU,IAGR,aAAiB,QAAQ,aAAiB,EAAU,CAAK,CAAC,CAAC,OAFzD;AAGX;AACA,SAAS,EAAU,GAAO;CAIxB,OAHK,EAAU,IAGR,aAAiB,WAAW,aAAiB,EAAU,CAAK,CAAC,CAAC,UAF5D;AAGX;AACA,SAAS,EAAc,GAAO;CAI5B,OAHK,EAAU,IAGR,aAAiB,eAAe,aAAiB,EAAU,CAAK,CAAC,CAAC,cAFhE;AAGX;AACA,SAAS,EAAa,GAAO;CAI3B,OAHI,CAAC,EAAU,KAAK,OAAO,aAAe,MACjC,KAEF,aAAiB,cAAc,aAAiB,EAAU,CAAK,CAAC,CAAC;AAC1E;AACA,SAAS,EAAk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
- "use client";
2
- import { makeEventPreventable as e, mergeProps as t } from "./index195.js";
3
- import { isHTMLElement as n } from "./index200.js";
4
- import { SafeReact as r } from "./index201.js";
5
- import { useStableCallback as i } from "./index202.js";
6
- import { error as a } from "./index203.js";
7
- import { useIsoLayoutEffect as o } from "./index204.js";
8
- import { useCompositeRootContext as s } from "./index205.js";
9
- import { useFocusableWhenDisabled as c } from "./index206.js";
10
- import * as l from "react";
11
- //#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
12
- function u(n = {}) {
13
- let { disabled: u = !1, focusableWhenDisabled: p, tabIndex: m = 0, native: h = !0, composite: g } = n, _ = l.useRef(null), v = s(!0), y = g ?? v !== void 0, { props: b } = c({
14
- focusableWhenDisabled: p,
15
- disabled: u,
16
- composite: y,
17
- tabIndex: m,
18
- isNativeButton: h
19
- });
20
- process.env.NODE_ENV !== "production" && l.useEffect(() => {
21
- if (!_.current) return;
22
- let e = d(_.current);
23
- h ? e || a(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${r.captureOwnerStack?.() || ""}`) : e && a(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${r.captureOwnerStack?.() || ""}`);
24
- }, [h]);
25
- let x = l.useCallback(() => {
26
- let e = _.current;
27
- d(e) && y && u && b.disabled === void 0 && e.disabled && (e.disabled = !1);
28
- }, [
29
- u,
30
- b.disabled,
31
- y
32
- ]);
33
- return o(x, [x]), {
34
- getButtonProps: l.useCallback((n = {}) => {
35
- let { onClick: r, onMouseDown: i, onKeyUp: a, onKeyDown: o, onPointerDown: s, ...c } = n;
36
- return t({
37
- onClick(e) {
38
- if (u) {
39
- e.preventDefault();
40
- return;
41
- }
42
- r?.(e);
43
- },
44
- onMouseDown(e) {
45
- u || i?.(e);
46
- },
47
- onKeyDown(t) {
48
- if (u || (e(t), o?.(t), t.baseUIHandlerPrevented)) return;
49
- let n = t.target === t.currentTarget, i = t.currentTarget, a = d(i), s = !h && f(i), c = n && (h ? a : !s), l = t.key === "Enter", p = t.key === " ", m = i.getAttribute("role"), g = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
50
- if (n && y && p) {
51
- if (t.defaultPrevented && g) return;
52
- t.preventDefault(), s || h && a ? (i.click(), t.preventBaseUIHandler()) : c && (r?.(t), t.preventBaseUIHandler());
53
- return;
54
- }
55
- c && (!h && (p || l) && t.preventDefault(), !h && l && r?.(t));
56
- },
57
- onKeyUp(t) {
58
- if (!u) {
59
- if (e(t), a?.(t), t.target === t.currentTarget && h && y && d(t.currentTarget) && t.key === " ") {
60
- t.preventDefault();
61
- return;
62
- }
63
- t.baseUIHandlerPrevented || t.target === t.currentTarget && !h && !y && t.key === " " && r?.(t);
64
- }
65
- },
66
- onPointerDown(e) {
67
- if (u) {
68
- e.preventDefault();
69
- return;
70
- }
71
- s?.(e);
72
- }
73
- }, h ? { type: "button" } : { role: "button" }, b, c);
74
- }, [
75
- u,
76
- b,
77
- y,
78
- h
79
- ]),
80
- buttonRef: i((e) => {
81
- _.current = e, x();
82
- })
83
- };
84
- }
85
- function d(e) {
86
- return n(e) && e.tagName === "BUTTON";
87
- }
88
- function f(e) {
89
- return !!(e?.tagName === "A" && e?.href);
1
+ import { getWindow as e } from "./index200.js";
2
+ //#region ../../node_modules/@base-ui/utils/owner.mjs
3
+ function t(e) {
4
+ return e?.ownerDocument || document;
90
5
  }
91
6
  //#endregion
92
- export { u as useButton };
7
+ export { t as ownerDocument, e as ownerWindow };
93
8
 
94
9
  //# sourceMappingURL=index207.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index207.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n if (isLink || isNativeButton && isButton) {\n currentTarget.click();\n event.preventBaseUIHandler();\n } else if (shouldClick) {\n externalOnClick?.(event);\n event.preventBaseUIHandler();\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (shouldClick) {\n if (!isNativeButton && (isSpaceKey || isEnterKey)) {\n event.preventDefault();\n }\n if (!isNativeButton && isEnterKey) {\n externalOnClick?.(event);\n }\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && event.key === ' ') {\n externalOnClick?.(event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return Boolean(elem?.tagName === 'A' && elem?.href);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAWA,SAAgB,EAAU,IAAa,CAAC,GAAG;CACzC,IAAM,EACJ,cAAW,IACX,0BACA,cAAW,GACX,QAAQ,IAAiB,IACzB,WAAW,MACT,GACE,IAAaA,EAAM,OAAO,IAAI,GAC9B,IAAuB,EAAwB,EAAI,GACnD,IAAkB,KAAiB,MAAyB,KAAA,GAC5D,EACJ,OAAO,MACL,EAAyB;EAC3B;EACA;EACA,WAAW;EACX;EACA;CACF,CAAC;CACD,AAAA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Y;MACpD,IAAI,EAAM,oBAAoB,GAC5B;MAGF,AADA,EAAM,eAAe,GACjB,KAAU,KAAkB,KAC9B,EAAc,MAAM,GACpB,EAAM,qBAAqB,KAClB,MACT,IAAkB,CAAK,GACvB,EAAM,qBAAqB;MAE7B;KACF;KAGA,AAAI,MACE,CAAC,MAAmB,KAAc,MACpC,EAAM,eAAe,GAEnB,CAAC,KAAkB,KACrB,IAAkB,CAAK;IAG7B;IACA,QAAQ,GAAO;KACT,QAQJ;UAFA,EAAqB,CAAK,GAC1B,IAAkB,CAAK,GACnB,EAAM,WAAW,EAAM,iBAAiB,KAAkB,KAAmB,EAAgB,EAAM,aAAa,KAAK,EAAM,QAAQ,KAAK;OAC1I,EAAM,eAAe;OACrB;MACF;MACI,EAAM,0BAKN,EAAM,WAAW,EAAM,iBAAiB,CAAC,KAAkB,CAAC,KAAmB,EAAM,QAAQ,OAC/F,IAAkB,CAAK;KAPzB;IASF;IACA,cAAc,GAAO;KACnB,IAAI,GAAU;MACZ,EAAM,eAAe;MACrB;KACF;KACA,IAAwB,CAAK;IAC/B;GACF,GAAG,IAAiB,EAClB,MAAM,SACR,IAAI,EACF,MAAM,SACR,GAAG,GAA4B,CAAkB;EACnD,GAAG;GAAC;GAAU;GAA4B;GAAiB;EAAc,CAM1D;EACb,WANgB,GAAkB,MAAW;GAE7C,AADA,EAAW,UAAU,GACrB,EAAe;EACjB,CAGU;CACV;AACF;AACA,SAAS,EAAgB,GAAM;CAC7B,OAAO,EAAc,CAAI,KAAK,EAAK,YAAY;AACjD;AACA,SAAS,EAAmB,GAAM;CAChC,OAAO,GAAQ,GAAM,YAAY,OAAO,GAAM;AAChD"}
1
+ {"version":3,"file":"index207.js","names":[],"sources":["../../../node_modules/@base-ui/utils/owner.mjs"],"sourcesContent":["export { getWindow as ownerWindow } from '@floating-ui/utils/dom';\nexport function ownerDocument(node) {\n return node?.ownerDocument || document;\n}"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,EAAc,GAAM;CAClC,OAAO,GAAM,iBAAiB;AAChC"}
package/dist/index208.js CHANGED
@@ -1,6 +1,18 @@
1
- //#region ../../node_modules/@base-ui/react/internals/reason-parts.mjs
2
- var e = "none", t = "trigger-press", n = "trigger-hover", r = "outside-press", i = "item-press", a = "close-press", o = "focus-out", s = "escape-key", c = "list-navigation", l = "cancel-open", u = "imperative-action", d = "window-resize";
1
+ import { getWindow as e } from "./index200.js";
2
+ //#region ../../node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
3
+ function t(t, n, { detail: r = 0 } = {}) {
4
+ t.dispatchEvent(new (e(t)).PointerEvent("click", {
5
+ bubbles: !0,
6
+ cancelable: !0,
7
+ composed: !0,
8
+ detail: r,
9
+ shiftKey: n.shiftKey,
10
+ ctrlKey: n.ctrlKey,
11
+ altKey: n.altKey,
12
+ metaKey: n.metaKey
13
+ }));
14
+ }
3
15
  //#endregion
4
- export { l as cancelOpen, a as closePress, s as escapeKey, o as focusOut, u as imperativeAction, i as itemPress, c as listNavigation, e as none, r as outsidePress, n as triggerHover, t as triggerPress, d as windowResize };
16
+ export { t as dispatchClickWithModifiers };
5
17
 
6
18
  //# sourceMappingURL=index208.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index208.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/reason-parts.mjs"],"sourcesContent":["export const none = 'none';\nexport const triggerPress = 'trigger-press';\nexport const triggerHover = 'trigger-hover';\nexport const triggerFocus = 'trigger-focus';\nexport const outsidePress = 'outside-press';\nexport const itemPress = 'item-press';\nexport const closePress = 'close-press';\nexport const linkPress = 'link-press';\nexport const clearPress = 'clear-press';\nexport const chipRemovePress = 'chip-remove-press';\nexport const trackPress = 'track-press';\nexport const incrementPress = 'increment-press';\nexport const decrementPress = 'decrement-press';\nexport const inputChange = 'input-change';\nexport const inputClear = 'input-clear';\nexport const inputBlur = 'input-blur';\nexport const inputPaste = 'input-paste';\nexport const inputPress = 'input-press';\nexport const focusOut = 'focus-out';\nexport const escapeKey = 'escape-key';\nexport const closeWatcher = 'close-watcher';\nexport const listNavigation = 'list-navigation';\nexport const keyboard = 'keyboard';\nexport const pointer = 'pointer';\nexport const drag = 'drag';\nexport const wheel = 'wheel';\nexport const scrub = 'scrub';\nexport const cancelOpen = 'cancel-open';\nexport const siblingOpen = 'sibling-open';\nexport const disabled = 'disabled';\nexport const missing = 'missing';\nexport const initial = 'initial';\nexport const imperativeAction = 'imperative-action';\nexport const swipe = 'swipe';\nexport const windowResize = 'window-resize';"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,IAAO,QACP,IAAe,iBACf,IAAe,iBAEf,IAAe,iBACf,IAAY,cACZ,IAAa,eAYb,IAAW,aACX,IAAY,cAEZ,IAAiB,mBAMjB,IAAa,eAKb,IAAmB,qBAEnB,IAAe"}
1
+ {"version":3,"file":"index208.js","names":["ownerWindow"],"sources":["../../../node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs"],"sourcesContent":["import { ownerWindow } from '@base-ui/utils/owner';\n/**\n * Dispatches a constructed click on the target so it carries the source event's\n * modifier state, which `click()` always reports as unpressed. Like `click()`,\n * the untrusted click still runs native activation behavior (form submission,\n * link navigation).\n * `detail` defaults to 0 (the native convention for keyboard-generated clicks);\n * pass `detail: 1` when the click represents a mouse gesture so consumers keying\n * off `detail === 0` don't classify it as a keyboard activation.\n */\nexport function dispatchClickWithModifiers(target, sourceEvent, {\n detail = 0\n} = {}) {\n target.dispatchEvent(new (ownerWindow(target).PointerEvent)('click', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail,\n shiftKey: sourceEvent.shiftKey,\n ctrlKey: sourceEvent.ctrlKey,\n altKey: sourceEvent.altKey,\n metaKey: sourceEvent.metaKey\n }));\n}"],"x_google_ignoreList":[0],"mappings":";;AAUA,SAAgB,EAA2B,GAAQ,GAAa,EAC9D,YAAS,MACP,CAAC,GAAG;CACN,EAAO,cAAc,KAAKA,EAAY,CAAM,EAAA,CAAE,aAAc,SAAS;EACnE,SAAS;EACT,YAAY;EACZ,UAAU;EACV;EACA,UAAU,EAAY;EACtB,SAAS,EAAY;EACrB,QAAQ,EAAY;EACpB,SAAS,EAAY;CACvB,CAAC,CAAC;AACJ"}
package/dist/index209.js CHANGED
@@ -1,27 +1,107 @@
1
- import { EMPTY_OBJECT as e } from "./index191.js";
2
- //#region ../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs
3
- function t(t, n, r, i) {
4
- let a = !1, o = !1, s = i ?? e;
5
- return {
6
- reason: t,
7
- event: n ?? new Event("base-ui"),
8
- cancel() {
9
- a = !0;
10
- },
11
- allowPropagation() {
12
- o = !0;
13
- },
14
- get isCanceled() {
15
- return a;
16
- },
17
- get isPropagationAllowed() {
18
- return o;
19
- },
20
- trigger: r,
21
- ...s
1
+ "use client";
2
+ import { makeEventPreventable as e, mergeProps as t } from "./index195.js";
3
+ import { isHTMLElement as n } from "./index200.js";
4
+ import { SafeReact as r } from "./index201.js";
5
+ import { useStableCallback as i } from "./index202.js";
6
+ import { error as a } from "./index203.js";
7
+ import { useIsoLayoutEffect as o } from "./index204.js";
8
+ import { useCompositeRootContext as s } from "./index205.js";
9
+ import { useFocusableWhenDisabled as c } from "./index206.js";
10
+ import { dispatchClickWithModifiers as l } from "./index208.js";
11
+ import * as u from "react";
12
+ //#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
13
+ function d(n = {}) {
14
+ let { disabled: d = !1, focusableWhenDisabled: m, tabIndex: h = 0, native: g = !0, composite: _ } = n, v = u.useRef(null), y = s(!0), b = _ ?? y !== void 0, { props: x } = c({
15
+ focusableWhenDisabled: m,
16
+ disabled: d,
17
+ composite: b,
18
+ tabIndex: h,
19
+ isNativeButton: g
20
+ });
21
+ process.env.NODE_ENV !== "production" && u.useEffect(() => {
22
+ if (!v.current) return;
23
+ let e = f(v.current);
24
+ if (g) {
25
+ if (!e) {
26
+ let e = r.captureOwnerStack?.() || "";
27
+ a(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${e}`);
28
+ }
29
+ } else if (e) {
30
+ let e = r.captureOwnerStack?.() || "";
31
+ a(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${e}`);
32
+ }
33
+ }, [g]);
34
+ let S = u.useCallback(() => {
35
+ let e = v.current;
36
+ f(e) && b && d && x.disabled === void 0 && e.disabled && (e.disabled = !1);
37
+ }, [
38
+ d,
39
+ x.disabled,
40
+ b
41
+ ]);
42
+ return o(S, [S]), {
43
+ getButtonProps: u.useCallback((n = {}) => {
44
+ let { onClick: r, onMouseDown: i, onKeyUp: a, onKeyDown: o, onPointerDown: s, ...c } = n;
45
+ return t({
46
+ onClick(e) {
47
+ if (d) {
48
+ e.preventDefault();
49
+ return;
50
+ }
51
+ r?.(e);
52
+ },
53
+ onMouseDown(e) {
54
+ d || i?.(e);
55
+ },
56
+ onKeyDown(t) {
57
+ if (d || (e(t), o?.(t), t.baseUIHandlerPrevented)) return;
58
+ let n = t.target === t.currentTarget, r = t.currentTarget, i = f(r), a = !g && p(r), s = n && (g ? i : !a), c = t.key === "Enter", u = t.key === " ", m = r.getAttribute("role"), h = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
59
+ if (n && b && u) {
60
+ if (t.defaultPrevented && h) return;
61
+ t.preventDefault(), (!g || i) && (t.preventBaseUIHandler(), l(r, t));
62
+ return;
63
+ }
64
+ if (!s || g || !u && !c) {
65
+ n && a && u && t.preventDefault();
66
+ return;
67
+ }
68
+ t.defaultPrevented || (t.preventDefault(), c && (t.preventBaseUIHandler(), l(r, t)));
69
+ },
70
+ onKeyUp(t) {
71
+ if (!d) {
72
+ if (e(t), a?.(t), t.target === t.currentTarget && g && b && f(t.currentTarget) && t.key === " ") {
73
+ t.preventDefault();
74
+ return;
75
+ }
76
+ t.baseUIHandlerPrevented || t.target === t.currentTarget && !g && !b && !t.defaultPrevented && t.key === " " && (t.preventBaseUIHandler(), l(t.currentTarget, t));
77
+ }
78
+ },
79
+ onPointerDown(e) {
80
+ if (d) {
81
+ e.preventDefault();
82
+ return;
83
+ }
84
+ s?.(e);
85
+ }
86
+ }, g ? { type: "button" } : { role: "button" }, x, c);
87
+ }, [
88
+ d,
89
+ x,
90
+ b,
91
+ g
92
+ ]),
93
+ buttonRef: i((e) => {
94
+ v.current = e, S();
95
+ })
22
96
  };
23
97
  }
98
+ function f(e) {
99
+ return n(e) && e.tagName === "BUTTON";
100
+ }
101
+ function p(e) {
102
+ return n(e) && e.tagName === "A" && !!e.href;
103
+ }
24
104
  //#endregion
25
- export { t as createChangeEventDetails };
105
+ export { d as useButton };
26
106
 
27
107
  //# sourceMappingURL=index209.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index209.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.mjs\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}"],"x_google_ignoreList":[0],"mappings":";;AAmBA,SAAgB,EAAyB,GAAQ,GAAO,GAAS,GAAkB;CACjF,IAAI,IAAW,IACX,IAAmB,IACjB,IAAS,KAAoB;CAmBnC,OAAO;EAjBL;EACA,OAAO,KAAS,IAAI,MAAM,SAAS;EACnC,SAAS;GACP,IAAW;EACb;EACA,mBAAmB;GACjB,IAAmB;EACrB;EACA,IAAI,aAAa;GACf,OAAO;EACT;EACA,IAAI,uBAAuB;GACzB,OAAO;EACT;EACA;EACA,GAAG;CAEQ;AACf"}
1
+ {"version":3,"file":"index209.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nimport { dispatchClickWithModifiers } from \"../../utils/dispatchClickWithModifiers.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n\n // Only a native-mode item that isn't a real <button> is excluded.\n if (!isNativeButton || isButton) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (!shouldClick || isNativeButton || !isSpaceKey && !isEnterKey) {\n // Space activates links on keyup (`role=\"button\"` semantics, matching the\n // composite path); prevent the page scroll Space would otherwise trigger.\n // Enter is left to the browser's native link activation.\n if (isCurrentTarget && isLink && isSpaceKey) {\n event.preventDefault();\n }\n return;\n }\n\n // Match native buttons: preventing the keydown's default cancels activation.\n if (event.defaultPrevented) {\n return;\n }\n event.preventDefault();\n if (isEnterKey) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements.\n // Match native buttons: preventing the keyup's default cancels Space activation.\n // Limitation: unlike a native <button>, a prevented *keydown* cannot cancel the\n // activation — no state is kept between keydown and keyup, so we can't tell\n // whether the keydown was prevented or even happened on this element.\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && !event.defaultPrevented && event.key === ' ') {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(event.currentTarget, event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'A' && Boolean(elem.href);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAYA,SAAgB,EAAU,IAAa,CAAC,GAAG;CACzC,IAAM,EACJ,cAAW,IACX,0BACA,cAAW,GACX,QAAQ,IAAiB,IACzB,WAAW,MACT,GACE,IAAaA,EAAM,OAAO,IAAI,GAC9B,IAAuB,EAAwB,EAAI,GACnD,IAAkB,KAAiB,MAAyB,KAAA,GAC5D,EACJ,OAAO,MACL,EAAyB;EAC3B;EACA;EACA,WAAW;EACX;EACA;CACF,CAAC;CACD,AAAA,QAAA,IAAA,aAA6B,gBAE3B,EAAM,gBAAgB;EACpB,IAAI,CAAC,EAAW,SACd;EAEF,IAAM,IAAc,EAAgB,EAAW,OAAO;EACtD,IAAI,GACE;OAAA,CAAC,GAAa;IAChB,IAAM,IAAoB,EAAU,oBAAoB,KAAK;IAE7D,EAAM,gSAAa,GAAmB;GACxC;SACK,IAAI,GAAa;GACtB,IAAM,IAAoB,EAAU,oBAAoB,KAAK;GAE7D,EAAM,gXAAa,GAAmB;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