@rpcbase/ui 0.232.0 → 0.233.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 (551) hide show
  1. package/dist/components/FilesUploadField/index.d.ts +2 -1
  2. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  3. package/dist/index100.js +5 -52
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +7 -3
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +5 -4
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +4 -15
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +4 -5
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +6 -7
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +145 -16
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +39 -4
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +4 -4
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +7 -5
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index110.js +13 -5
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +13 -4
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +7 -4
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +31 -6
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +10 -24
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +10 -6
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +8 -4
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +13 -6
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +101 -5
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +20 -5
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +53 -5
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +72 -4
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +9 -8
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +20 -5
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +16 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +23 -4
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +6 -6
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +5 -145
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +23 -39
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +35 -5
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index130.js +16 -8
  64. package/dist/index130.js.map +1 -1
  65. package/dist/index131.js +6 -13
  66. package/dist/index131.js.map +1 -1
  67. package/dist/index132.js +4 -13
  68. package/dist/index132.js.map +1 -1
  69. package/dist/index133.js +4 -7
  70. package/dist/index133.js.map +1 -1
  71. package/dist/index134.js +4 -31
  72. package/dist/index134.js.map +1 -1
  73. package/dist/index135.js +4 -10
  74. package/dist/index135.js.map +1 -1
  75. package/dist/index136.js +3 -10
  76. package/dist/index136.js.map +1 -1
  77. package/dist/index137.js +6 -8
  78. package/dist/index137.js.map +1 -1
  79. package/dist/index138.js +24 -14
  80. package/dist/index138.js.map +1 -1
  81. package/dist/index139.js +7 -101
  82. package/dist/index139.js.map +1 -1
  83. package/dist/index140.js +7 -20
  84. package/dist/index140.js.map +1 -1
  85. package/dist/index141.js +5 -53
  86. package/dist/index141.js.map +1 -1
  87. package/dist/index142.js +3 -72
  88. package/dist/index142.js.map +1 -1
  89. package/dist/index143.js +3 -9
  90. package/dist/index143.js.map +1 -1
  91. package/dist/index144.js +4 -20
  92. package/dist/index144.js.map +1 -1
  93. package/dist/index145.js +3 -16
  94. package/dist/index145.js.map +1 -1
  95. package/dist/index146.js +4 -23
  96. package/dist/index146.js.map +1 -1
  97. package/dist/index147.js +3 -6
  98. package/dist/index147.js.map +1 -1
  99. package/dist/index148.js +3 -5
  100. package/dist/index148.js.map +1 -1
  101. package/dist/index149.js +3 -23
  102. package/dist/index149.js.map +1 -1
  103. package/dist/index150.js +6 -35
  104. package/dist/index150.js.map +1 -1
  105. package/dist/index151.js +69 -16
  106. package/dist/index151.js.map +1 -1
  107. package/dist/index152.js +2 -7
  108. package/dist/index152.js.map +1 -1
  109. package/dist/index153.js +363 -4
  110. package/dist/index153.js.map +1 -1
  111. package/dist/index154.js +261 -4
  112. package/dist/index154.js.map +1 -1
  113. package/dist/index155.js +60 -4
  114. package/dist/index155.js.map +1 -1
  115. package/dist/index156.js +46 -4
  116. package/dist/index156.js.map +1 -1
  117. package/dist/index157.js +169 -3
  118. package/dist/index157.js.map +1 -1
  119. package/dist/index158.js +109 -6
  120. package/dist/index158.js.map +1 -1
  121. package/dist/index159.js +25 -24
  122. package/dist/index159.js.map +1 -1
  123. package/dist/index160.js +8 -8
  124. package/dist/index160.js.map +1 -1
  125. package/dist/index161.js +4 -6
  126. package/dist/index161.js.map +1 -1
  127. package/dist/index162.js +5 -5
  128. package/dist/index162.js.map +1 -1
  129. package/dist/index163.js +4 -3
  130. package/dist/index163.js.map +1 -1
  131. package/dist/index164.js +466 -3
  132. package/dist/index164.js.map +1 -1
  133. package/dist/index165.js +185 -4
  134. package/dist/index165.js.map +1 -1
  135. package/dist/index166.js +107 -3
  136. package/dist/index166.js.map +1 -1
  137. package/dist/index167.js +262 -4
  138. package/dist/index167.js.map +1 -1
  139. package/dist/index168.js +9 -3
  140. package/dist/index168.js.map +1 -1
  141. package/dist/index169.js +42 -3
  142. package/dist/index169.js.map +1 -1
  143. package/dist/index170.js +4 -3
  144. package/dist/index170.js.map +1 -1
  145. package/dist/index172.js +3 -3
  146. package/dist/index175.js +1 -1
  147. package/dist/index176.js +4 -4
  148. package/dist/index182.js +1 -1
  149. package/dist/index184.js +12 -12
  150. package/dist/index187.js +5 -5
  151. package/dist/index189.js +3 -3
  152. package/dist/index190.js +1 -1
  153. package/dist/index193.js +3 -3
  154. package/dist/index194.js +5 -5
  155. package/dist/index196.js +58 -13
  156. package/dist/index196.js.map +1 -1
  157. package/dist/index197.js +8 -154
  158. package/dist/index197.js.map +1 -1
  159. package/dist/index198.js +64 -28
  160. package/dist/index198.js.map +1 -1
  161. package/dist/index199.js +19 -9
  162. package/dist/index199.js.map +1 -1
  163. package/dist/index200.js +14 -46
  164. package/dist/index200.js.map +1 -1
  165. package/dist/index201.js +5 -11
  166. package/dist/index201.js.map +1 -1
  167. package/dist/index202.js +4 -43
  168. package/dist/index202.js.map +1 -1
  169. package/dist/index203.js +6 -95
  170. package/dist/index203.js.map +1 -1
  171. package/dist/index204.js +4 -86
  172. package/dist/index204.js.map +1 -1
  173. package/dist/index205.js +6 -105
  174. package/dist/index205.js.map +1 -1
  175. package/dist/index206.js +16 -52
  176. package/dist/index206.js.map +1 -1
  177. package/dist/index207.js +4 -11
  178. package/dist/index207.js.map +1 -1
  179. package/dist/index208.js +4 -37
  180. package/dist/index208.js.map +1 -1
  181. package/dist/index209.js +12 -8
  182. package/dist/index209.js.map +1 -1
  183. package/dist/index210.js +9 -116
  184. package/dist/index210.js.map +1 -1
  185. package/dist/index211.js +13 -17
  186. package/dist/index211.js.map +1 -1
  187. package/dist/index212.js +13 -15
  188. package/dist/index212.js.map +1 -1
  189. package/dist/index213.js +4 -3
  190. package/dist/index213.js.map +1 -1
  191. package/dist/index214.js +5 -36
  192. package/dist/index214.js.map +1 -1
  193. package/dist/index215.js +6 -20
  194. package/dist/index215.js.map +1 -1
  195. package/dist/index216.js +5 -9
  196. package/dist/index216.js.map +1 -1
  197. package/dist/index217.js +54 -8
  198. package/dist/index217.js.map +1 -1
  199. package/dist/index218.js +8 -19
  200. package/dist/index218.js.map +1 -1
  201. package/dist/index219.js +4 -28
  202. package/dist/index219.js.map +1 -1
  203. package/dist/index220.js +4 -16
  204. package/dist/index220.js.map +1 -1
  205. package/dist/index221.js +8 -58
  206. package/dist/index221.js.map +1 -1
  207. package/dist/index222.js +4 -8
  208. package/dist/index222.js.map +1 -1
  209. package/dist/index223.js +4 -66
  210. package/dist/index223.js.map +1 -1
  211. package/dist/index224.js +3 -19
  212. package/dist/index224.js.map +1 -1
  213. package/dist/index225.js +10 -16
  214. package/dist/index225.js.map +1 -1
  215. package/dist/index226.js +9 -5
  216. package/dist/index226.js.map +1 -1
  217. package/dist/index227.js +9 -5
  218. package/dist/index227.js.map +1 -1
  219. package/dist/index228.js +10 -6
  220. package/dist/index228.js.map +1 -1
  221. package/dist/index229.js +10 -4
  222. package/dist/index229.js.map +1 -1
  223. package/dist/index230.js +9 -6
  224. package/dist/index230.js.map +1 -1
  225. package/dist/index231.js +6 -16
  226. package/dist/index231.js.map +1 -1
  227. package/dist/index232.js +5 -4
  228. package/dist/index232.js.map +1 -1
  229. package/dist/index233.js +4 -4
  230. package/dist/index233.js.map +1 -1
  231. package/dist/index234.js +5 -12
  232. package/dist/index234.js.map +1 -1
  233. package/dist/index235.js +6 -9
  234. package/dist/index235.js.map +1 -1
  235. package/dist/index236.js +5 -13
  236. package/dist/index236.js.map +1 -1
  237. package/dist/index237.js +16 -13
  238. package/dist/index237.js.map +1 -1
  239. package/dist/index238.js +7 -4
  240. package/dist/index238.js.map +1 -1
  241. package/dist/index239.js +10 -5
  242. package/dist/index239.js.map +1 -1
  243. package/dist/index240.js +10 -6
  244. package/dist/index240.js.map +1 -1
  245. package/dist/index241.js +21 -5
  246. package/dist/index241.js.map +1 -1
  247. package/dist/index242.js +10 -54
  248. package/dist/index242.js.map +1 -1
  249. package/dist/index243.js +9 -8
  250. package/dist/index243.js.map +1 -1
  251. package/dist/index244.js +9 -4
  252. package/dist/index244.js.map +1 -1
  253. package/dist/index245.js +4 -4
  254. package/dist/index245.js.map +1 -1
  255. package/dist/index246.js +5 -8
  256. package/dist/index246.js.map +1 -1
  257. package/dist/index247.js +16 -4
  258. package/dist/index247.js.map +1 -1
  259. package/dist/index248.js +9 -4
  260. package/dist/index248.js.map +1 -1
  261. package/dist/index249.js +18 -3
  262. package/dist/index249.js.map +1 -1
  263. package/dist/index250.js +15 -10
  264. package/dist/index250.js.map +1 -1
  265. package/dist/index251.js +12 -9
  266. package/dist/index251.js.map +1 -1
  267. package/dist/index252.js +29 -9
  268. package/dist/index252.js.map +1 -1
  269. package/dist/index253.js +12 -10
  270. package/dist/index253.js.map +1 -1
  271. package/dist/index254.js +25 -10
  272. package/dist/index254.js.map +1 -1
  273. package/dist/index255.js +5 -9
  274. package/dist/index255.js.map +1 -1
  275. package/dist/index256.js +13 -6
  276. package/dist/index256.js.map +1 -1
  277. package/dist/index257.js +154 -5
  278. package/dist/index257.js.map +1 -1
  279. package/dist/index258.js +30 -4
  280. package/dist/index258.js.map +1 -1
  281. package/dist/index259.js +9 -5
  282. package/dist/index259.js.map +1 -1
  283. package/dist/index260.js +48 -6
  284. package/dist/index260.js.map +1 -1
  285. package/dist/index261.js +11 -5
  286. package/dist/index261.js.map +1 -1
  287. package/dist/index262.js +42 -14
  288. package/dist/index262.js.map +1 -1
  289. package/dist/index263.js +95 -7
  290. package/dist/index263.js.map +1 -1
  291. package/dist/index264.js +85 -9
  292. package/dist/index264.js.map +1 -1
  293. package/dist/index265.js +104 -9
  294. package/dist/index265.js.map +1 -1
  295. package/dist/index266.js +52 -21
  296. package/dist/index266.js.map +1 -1
  297. package/dist/index267.js +11 -10
  298. package/dist/index267.js.map +1 -1
  299. package/dist/index268.js +37 -9
  300. package/dist/index268.js.map +1 -1
  301. package/dist/index269.js +7 -8
  302. package/dist/index269.js.map +1 -1
  303. package/dist/index270.js +116 -4
  304. package/dist/index270.js.map +1 -1
  305. package/dist/index271.js +17 -5
  306. package/dist/index271.js.map +1 -1
  307. package/dist/index272.js +14 -15
  308. package/dist/index272.js.map +1 -1
  309. package/dist/index273.js +3 -9
  310. package/dist/index273.js.map +1 -1
  311. package/dist/index274.js +34 -16
  312. package/dist/index274.js.map +1 -1
  313. package/dist/index275.js +20 -15
  314. package/dist/index275.js.map +1 -1
  315. package/dist/index276.js +9 -12
  316. package/dist/index276.js.map +1 -1
  317. package/dist/index277.js +8 -29
  318. package/dist/index277.js.map +1 -1
  319. package/dist/index278.js +20 -13
  320. package/dist/index278.js.map +1 -1
  321. package/dist/index279.js +65 -24
  322. package/dist/index279.js.map +1 -1
  323. package/dist/index280.js +6 -5
  324. package/dist/index280.js.map +1 -1
  325. package/dist/index281.js +12 -20
  326. package/dist/index281.js.map +1 -1
  327. package/dist/index282.js +48 -64
  328. package/dist/index282.js.map +1 -1
  329. package/dist/index283.js +4 -7
  330. package/dist/index283.js.map +1 -1
  331. package/dist/index284.js +29 -11
  332. package/dist/index284.js.map +1 -1
  333. package/dist/index285.js +15 -49
  334. package/dist/index285.js.map +1 -1
  335. package/dist/index286.js +6 -4
  336. package/dist/index286.js.map +1 -1
  337. package/dist/index287.js +20 -28
  338. package/dist/index287.js.map +1 -1
  339. package/dist/index288.js +50 -15
  340. package/dist/index288.js.map +1 -1
  341. package/dist/index289.js +25 -5
  342. package/dist/index289.js.map +1 -1
  343. package/dist/index290.js +41 -21
  344. package/dist/index290.js.map +1 -1
  345. package/dist/index291.js +38 -50
  346. package/dist/index291.js.map +1 -1
  347. package/dist/index292.js +45 -26
  348. package/dist/index292.js.map +1 -1
  349. package/dist/index293.js +19 -40
  350. package/dist/index293.js.map +1 -1
  351. package/dist/index294.js +69 -38
  352. package/dist/index294.js.map +1 -1
  353. package/dist/index295.js +18 -45
  354. package/dist/index295.js.map +1 -1
  355. package/dist/index296.js +11 -20
  356. package/dist/index296.js.map +1 -1
  357. package/dist/index297.js +26 -69
  358. package/dist/index297.js.map +1 -1
  359. package/dist/index298.js +12 -16
  360. package/dist/index298.js.map +1 -1
  361. package/dist/index299.js +17 -10
  362. package/dist/index299.js.map +1 -1
  363. package/dist/index300.js +35 -26
  364. package/dist/index300.js.map +1 -1
  365. package/dist/index301.js +261 -12
  366. package/dist/index301.js.map +1 -1
  367. package/dist/index302.js +275 -15
  368. package/dist/index302.js.map +1 -1
  369. package/dist/index303.js +68 -36
  370. package/dist/index303.js.map +1 -1
  371. package/dist/index304.js +93 -256
  372. package/dist/index304.js.map +1 -1
  373. package/dist/index305.js +75 -270
  374. package/dist/index305.js.map +1 -1
  375. package/dist/index306.js +3 -68
  376. package/dist/index306.js.map +1 -1
  377. package/dist/index307.js +26 -96
  378. package/dist/index307.js.map +1 -1
  379. package/dist/index308.js +16 -83
  380. package/dist/index308.js.map +1 -1
  381. package/dist/index309.js +35 -4
  382. package/dist/index309.js.map +1 -1
  383. package/dist/index31.js +24 -24
  384. package/dist/index310.js +15 -28
  385. package/dist/index310.js.map +1 -1
  386. package/dist/index311.js +3 -16
  387. package/dist/index311.js.map +1 -1
  388. package/dist/index312.js +27 -35
  389. package/dist/index312.js.map +1 -1
  390. package/dist/index313.js +28 -16
  391. package/dist/index313.js.map +1 -1
  392. package/dist/index314.js +4 -4
  393. package/dist/index314.js.map +1 -1
  394. package/dist/index315.js +75 -23
  395. package/dist/index315.js.map +1 -1
  396. package/dist/index316.js +266 -25
  397. package/dist/index316.js.map +1 -1
  398. package/dist/index317.js +12 -4
  399. package/dist/index317.js.map +1 -1
  400. package/dist/index318.js +11 -79
  401. package/dist/index318.js.map +1 -1
  402. package/dist/index319.js +23 -267
  403. package/dist/index319.js.map +1 -1
  404. package/dist/index32.js +3 -3
  405. package/dist/index320.js +16 -11
  406. package/dist/index320.js.map +1 -1
  407. package/dist/index321.js +125 -10
  408. package/dist/index321.js.map +1 -1
  409. package/dist/index322.js +4 -24
  410. package/dist/index322.js.map +1 -1
  411. package/dist/index323.js +40 -16
  412. package/dist/index323.js.map +1 -1
  413. package/dist/index324.js +61 -121
  414. package/dist/index324.js.map +1 -1
  415. package/dist/index325.js +14 -6
  416. package/dist/index325.js.map +1 -1
  417. package/dist/index326.js +7 -40
  418. package/dist/index326.js.map +1 -1
  419. package/dist/index327.js +5 -65
  420. package/dist/index327.js.map +1 -1
  421. package/dist/index328.js +4 -14
  422. package/dist/index328.js.map +1 -1
  423. package/dist/index329.js +10 -7
  424. package/dist/index329.js.map +1 -1
  425. package/dist/index330.js +7 -5
  426. package/dist/index330.js.map +1 -1
  427. package/dist/index331.js +133 -3
  428. package/dist/index331.js.map +1 -1
  429. package/dist/index332.js +398 -9
  430. package/dist/index332.js.map +1 -1
  431. package/dist/index333.js +52 -7
  432. package/dist/index333.js.map +1 -1
  433. package/dist/index334.js +11 -133
  434. package/dist/index334.js.map +1 -1
  435. package/dist/index335.js +11 -399
  436. package/dist/index335.js.map +1 -1
  437. package/dist/index336.js +18 -51
  438. package/dist/index336.js.map +1 -1
  439. package/dist/index337.js +28 -11
  440. package/dist/index337.js.map +1 -1
  441. package/dist/index338.js +16 -11
  442. package/dist/index338.js.map +1 -1
  443. package/dist/index346.js +2 -2
  444. package/dist/index348.js +8 -8
  445. package/dist/index349.js +3 -3
  446. package/dist/index350.js +2 -2
  447. package/dist/index351.js +5 -5
  448. package/dist/index353.js +1 -1
  449. package/dist/index359.js +4 -20
  450. package/dist/index359.js.map +1 -1
  451. package/dist/index360.js +18 -5
  452. package/dist/index360.js.map +1 -1
  453. package/dist/index361.js +13 -18
  454. package/dist/index361.js.map +1 -1
  455. package/dist/index362.js +20 -12
  456. package/dist/index362.js.map +1 -1
  457. package/dist/index368.js +1 -1
  458. package/dist/index371.js +2 -2
  459. package/dist/index372.js +3 -3
  460. package/dist/index374.js +3 -3
  461. package/dist/index375.js +1 -1
  462. package/dist/index376.js +3 -3
  463. package/dist/index378.js +2 -2
  464. package/dist/index380.js +1 -1
  465. package/dist/index381.js +2 -2
  466. package/dist/index394.js +2 -2
  467. package/dist/index397.js +1 -1
  468. package/dist/index398.js +2 -2
  469. package/dist/index400.js +1 -1
  470. package/dist/index401.js +1 -1
  471. package/dist/index402.js +1 -1
  472. package/dist/index403.js +1 -1
  473. package/dist/index407.js +1 -1
  474. package/dist/index44.js +1 -1
  475. package/dist/index45.js +2 -2
  476. package/dist/index48.js +2 -2
  477. package/dist/index49.js +28 -28
  478. package/dist/index50.js +21 -21
  479. package/dist/index51.js +1 -1
  480. package/dist/index52.js +8 -8
  481. package/dist/index53.js +2 -2
  482. package/dist/index55.js +17 -17
  483. package/dist/index56.js +4 -4
  484. package/dist/index57.js +3 -3
  485. package/dist/index58.js +7 -7
  486. package/dist/index59.js +4 -4
  487. package/dist/index60.js +12 -12
  488. package/dist/index61.js +2 -2
  489. package/dist/index62.js +2 -2
  490. package/dist/index66.js +1 -1
  491. package/dist/index67.js +1 -1
  492. package/dist/index70.js +1 -1
  493. package/dist/index71.js +1 -1
  494. package/dist/index72.js +2 -6
  495. package/dist/index72.js.map +1 -1
  496. package/dist/index73.js +2 -8
  497. package/dist/index73.js.map +1 -1
  498. package/dist/index74.js +2 -6
  499. package/dist/index74.js.map +1 -1
  500. package/dist/index75.js +2 -2
  501. package/dist/index76.js +6 -2
  502. package/dist/index76.js.map +1 -1
  503. package/dist/index77.js +8 -2
  504. package/dist/index77.js.map +1 -1
  505. package/dist/index78.js +6 -2
  506. package/dist/index78.js.map +1 -1
  507. package/dist/index79.js +52 -6
  508. package/dist/index79.js.map +1 -1
  509. package/dist/index8.js +525 -517
  510. package/dist/index8.js.map +1 -1
  511. package/dist/index80.js +4 -68
  512. package/dist/index80.js.map +1 -1
  513. package/dist/index81.js +5 -2
  514. package/dist/index81.js.map +1 -1
  515. package/dist/index82.js +15 -363
  516. package/dist/index82.js.map +1 -1
  517. package/dist/index83.js +5 -261
  518. package/dist/index83.js.map +1 -1
  519. package/dist/index84.js +7 -60
  520. package/dist/index84.js.map +1 -1
  521. package/dist/index85.js +16 -46
  522. package/dist/index85.js.map +1 -1
  523. package/dist/index86.js +4 -169
  524. package/dist/index86.js.map +1 -1
  525. package/dist/index87.js +4 -109
  526. package/dist/index87.js.map +1 -1
  527. package/dist/index88.js +5 -24
  528. package/dist/index88.js.map +1 -1
  529. package/dist/index89.js +6 -8
  530. package/dist/index89.js.map +1 -1
  531. package/dist/index90.js +4 -4
  532. package/dist/index90.js.map +1 -1
  533. package/dist/index91.js +4 -5
  534. package/dist/index91.js.map +1 -1
  535. package/dist/index92.js +6 -4
  536. package/dist/index92.js.map +1 -1
  537. package/dist/index93.js +24 -466
  538. package/dist/index93.js.map +1 -1
  539. package/dist/index94.js +6 -185
  540. package/dist/index94.js.map +1 -1
  541. package/dist/index95.js +4 -107
  542. package/dist/index95.js.map +1 -1
  543. package/dist/index96.js +6 -262
  544. package/dist/index96.js.map +1 -1
  545. package/dist/index97.js +5 -9
  546. package/dist/index97.js.map +1 -1
  547. package/dist/index98.js +4 -42
  548. package/dist/index98.js.map +1 -1
  549. package/dist/index99.js +5 -4
  550. package/dist/index99.js.map +1 -1
  551. package/package.json +1 -1
package/dist/index297.js CHANGED
@@ -1,74 +1,31 @@
1
- import * as c from "react";
2
- import { serializeValue as a } from "./index364.js";
3
- import { j as i } from "./index30.js";
4
- function s(r) {
5
- return r != null && r.length > 0 && typeof r[0] == "object" && r[0] != null && "items" in r[0];
6
- }
7
- function A(r) {
8
- if (!Array.isArray(r))
9
- return r != null && "null" in r;
10
- const n = r;
11
- if (s(n)) {
12
- for (const l of n)
13
- for (const u of l.items)
14
- if (u && u.value == null && u.label != null)
15
- return !0;
16
- return !1;
17
- }
18
- for (const l of n)
19
- if (l && l.value == null && l.label != null)
20
- return !0;
21
- return !1;
22
- }
23
- function b(r, n) {
24
- if (n && r != null)
25
- return n(r) ?? "";
26
- if (r && typeof r == "object") {
27
- if ("label" in r && r.label != null)
28
- return String(r.label);
29
- if ("value" in r)
30
- return String(r.value);
31
- }
32
- return a(r);
33
- }
34
- function h(r, n) {
35
- return n && r != null ? n(r) ?? "" : r && typeof r == "object" && "value" in r && "label" in r ? a(r.value) : a(r);
36
- }
37
- function p(r, n, l) {
38
- function u() {
39
- return b(r, l);
40
- }
41
- if (l && r != null)
42
- return l(r);
43
- if (r && typeof r == "object" && "label" in r && r.label != null)
44
- return r.label;
45
- if (n && !Array.isArray(n))
46
- return n[r] ?? u();
47
- if (Array.isArray(n)) {
48
- const e = n, t = s(e) ? e.flatMap((f) => f.items) : e;
49
- if (r == null || typeof r != "object") {
50
- const f = t.find((o) => o.value === r);
51
- return f && f.label != null ? f.label : u();
52
- }
53
- if ("value" in r) {
54
- const f = t.find((o) => o && o.value === r.value);
55
- if (f && f.label != null)
56
- return f.label;
1
+ import * as l from "react";
2
+ import { useStableCallback as c } from "./index284.js";
3
+ import { useEnhancedClickHandler as u } from "./index365.js";
4
+ import { isIOS as m } from "./index323.js";
5
+ import { useValueChanged as p } from "./index296.js";
6
+ function C(e) {
7
+ const [o, t] = l.useState(null), s = c((i, a) => {
8
+ e || t(a || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9
+ // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
10
+ // will be "" in that case.
11
+ (m ? "touch" : ""));
12
+ });
13
+ p(e, (i) => {
14
+ i && !e && t(null);
15
+ });
16
+ const {
17
+ onClick: r,
18
+ onPointerDown: n
19
+ } = u(s);
20
+ return l.useMemo(() => ({
21
+ openMethod: o,
22
+ triggerProps: {
23
+ onClick: r,
24
+ onPointerDown: n
57
25
  }
58
- }
59
- return u();
60
- }
61
- function d(r, n, l) {
62
- return r.reduce((u, e, t) => (t > 0 && u.push(", "), u.push(/* @__PURE__ */ i.jsx(c.Fragment, {
63
- children: p(e, n, l)
64
- }, t)), u), []);
26
+ }), [o, r, n]);
65
27
  }
66
28
  export {
67
- A as hasNullItemLabel,
68
- s as isGroupedItems,
69
- d as resolveMultipleLabels,
70
- p as resolveSelectedLabel,
71
- b as stringifyAsLabel,
72
- h as stringifyAsValue
29
+ C as useOpenInteractionType
73
30
  };
74
31
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/internals/resolveValueLabel.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : arrayItems;\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"names":["isGroupedItems","items","hasNullItemLabel","arrayItems","group","item","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","value","fallback","flatItems","match","resolveMultipleLabels","values","acc","index","_jsx","React"],"mappings":";;;AAKO,SAASA,EAAeC,GAAO;AACpC,SAAOA,KAAS,QAAQA,EAAM,SAAS,KAAK,OAAOA,EAAM,CAAC,KAAM,YAAYA,EAAM,CAAC,KAAK,QAAQ,WAAWA,EAAM,CAAC;AACpH;AAKO,SAASC,EAAiBD,GAAO;AACtC,MAAI,CAAC,MAAM,QAAQA,CAAK;AACtB,WAAOA,KAAS,QAAQ,UAAUA;AAEpC,QAAME,IAAaF;AACnB,MAAID,EAAeG,CAAU,GAAG;AAC9B,eAAWC,KAASD;AAClB,iBAAWE,KAAQD,EAAM;AACvB,YAAIC,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,iBAAO;AAIb,WAAO;AAAA,EACT;AACA,aAAWA,KAAQF;AACjB,QAAIE,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,aAAO;AAGX,SAAO;AACT;AACO,SAASC,EAAiBD,GAAME,GAAmB;AACxD,MAAIA,KAAqBF,KAAQ;AAC/B,WAAOE,EAAkBF,CAAI,KAAK;AAEpC,MAAIA,KAAQ,OAAOA,KAAS,UAAU;AACpC,QAAI,WAAWA,KAAQA,EAAK,SAAS;AACnC,aAAO,OAAOA,EAAK,KAAK;AAE1B,QAAI,WAAWA;AACb,aAAO,OAAOA,EAAK,KAAK;AAAA,EAE5B;AACA,SAAOG,EAAeH,CAAI;AAC5B;AACO,SAASI,EAAiBJ,GAAMK,GAAmB;AACxD,SAAIA,KAAqBL,KAAQ,OACxBK,EAAkBL,CAAI,KAAK,KAEhCA,KAAQ,OAAOA,KAAS,YAAY,WAAWA,KAAQ,WAAWA,IAC7DG,EAAeH,EAAK,KAAK,IAE3BG,EAAeH,CAAI;AAC5B;AACO,SAASM,EAAqBC,GAAOX,GAAOM,GAAmB;AACpE,WAASM,IAAW;AAClB,WAAOP,EAAiBM,GAAOL,CAAiB;AAAA,EAClD;AACA,MAAIA,KAAqBK,KAAS;AAChC,WAAOL,EAAkBK,CAAK;AAIhC,MAAIA,KAAS,OAAOA,KAAU,YAAY,WAAWA,KAASA,EAAM,SAAS;AAC3E,WAAOA,EAAM;AAIf,MAAIX,KAAS,CAAC,MAAM,QAAQA,CAAK;AAC/B,WAAOA,EAAMW,CAAK,KAAKC,EAAQ;AAIjC,MAAI,MAAM,QAAQZ,CAAK,GAAG;AACxB,UAAME,IAAaF,GACba,IAAYd,EAAeG,CAAU,IAAIA,EAAW,QAAQ,CAAAC,MAASA,EAAM,KAAK,IAAID;AAC1F,QAAIS,KAAS,QAAQ,OAAOA,KAAU,UAAU;AAC9C,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,EAAK,UAAUO,CAAK;AACzD,aAAIG,KAASA,EAAM,SAAS,OACnBA,EAAM,QAERF,EAAQ;AAAA,IACjB;AAGA,QAAI,WAAWD,GAAO;AACpB,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,KAAQA,EAAK,UAAUO,EAAM,KAAK;AACvE,UAAIG,KAASA,EAAM,SAAS;AAC1B,eAAOA,EAAM;AAAA,IAEjB;AAAA,EACF;AACA,SAAOF,EAAQ;AACjB;AACO,SAASG,EAAsBC,GAAQhB,GAAOM,GAAmB;AACtE,SAAOU,EAAO,OAAO,CAACC,GAAKN,GAAOO,OAC5BA,IAAQ,KACVD,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkBE,gBAAAA,MAAKC,EAAM,UAAU;AAAA,IACzC,UAAUV,EAAqBC,GAAOX,GAAOM,CAAiB;AAAA,EACpE,GAAOY,CAAK,CAAC,GACFD,IACN,CAAA,CAAE;AACP;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","x_google_ignoreList":[0]}
package/dist/index298.js CHANGED
@@ -1,21 +1,17 @@
1
- const i = (n, r) => Object.is(n, r);
2
- function u(n, r, t) {
3
- return n == null || r == null ? Object.is(n, r) : t(n, r);
1
+ import { clamp as s } from "./index328.js";
2
+ const f = 1;
3
+ function a(n, t) {
4
+ return Math.max(0, n - t);
4
5
  }
5
- function e(n, r, t) {
6
- return !n || n.length === 0 ? !1 : n.some((f) => f === void 0 ? !1 : u(r, f, t));
7
- }
8
- function o(n, r, t) {
9
- return !n || n.length === 0 ? -1 : n.findIndex((f) => f === void 0 ? !1 : u(f, r, t));
10
- }
11
- function I(n, r, t) {
12
- return n.filter((f) => !u(r, f, t));
6
+ function u(n, t) {
7
+ if (t <= 0)
8
+ return 0;
9
+ const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
+ return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
13
11
  }
14
12
  export {
15
- u as compareItemEquality,
16
- i as defaultItemEquality,
17
- o as findItemIndex,
18
- I as removeItem,
19
- e as selectedValueIncludes
13
+ f as SCROLL_EDGE_TOLERANCE_PX,
14
+ a as getMaxScrollOffset,
15
+ u as normalizeScrollOffset
20
16
  };
21
17
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/internals/itemEquality.js"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/utils/scrollEdges.js"],"sourcesContent":["import { clamp } from \"../internals/clamp.js\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
package/dist/index299.js CHANGED
@@ -1,15 +1,22 @@
1
1
  import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index286.js";
3
- import { useStableCallback as f } from "./index287.js";
4
- function u(r, n) {
5
- const t = c.useRef(r), e = f(n);
6
- o(() => {
7
- t.current !== r && e(t.current);
8
- }, [r, e]), o(() => {
9
- t.current = r;
10
- }, [r]);
2
+ import { s as u } from "./index404.js";
3
+ import { w as i } from "./index405.js";
4
+ import { isReactVersionAtLeast as S } from "./index347.js";
5
+ const a = S(19), m = a ? f : l;
6
+ function g(t, e, r, n, o) {
7
+ return m(t, e, r, n, o);
8
+ }
9
+ function p(t, e, r, n, o) {
10
+ const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
+ return u.useSyncExternalStore(t.subscribe, s, s);
12
+ }
13
+ function f(t, e, r, n, o) {
14
+ return p(t, e, r, n, o);
15
+ }
16
+ function l(t, e, r, n, o) {
17
+ return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
11
18
  }
12
19
  export {
13
- u as useValueChanged
20
+ g as useStore
14
21
  };
15
22
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useValueChanged.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.js","sources":["../../../node_modules/@base-ui/utils/esm/store/useStore.js"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.js\";\nimport { register, getInstance } from \"../fastHooks.js\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (hook.didChange || !Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n hook.didChange = false;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3),\n didChange: false\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.didChange = true;\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAmDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA+BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
package/dist/index300.js CHANGED
@@ -1,31 +1,40 @@
1
- import * as l from "react";
2
- import { useStableCallback as c } from "./index287.js";
3
- import { useEnhancedClickHandler as u } from "./index365.js";
4
- import { isIOS as m } from "./index326.js";
5
- import { useValueChanged as p } from "./index299.js";
6
- function C(e) {
7
- const [o, t] = l.useState(null), s = c((i, a) => {
8
- e || t(a || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9
- // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
10
- // will be "" in that case.
11
- (m ? "touch" : ""));
12
- });
13
- p(e, (i) => {
14
- i && !e && t(null);
15
- });
1
+ import { isElement as l } from "./index331.js";
2
+ import { useId as c } from "./index345.js";
3
+ import { useRefWithInit as a } from "./index280.js";
4
+ import { useIsoLayoutEffect as m } from "./index283.js";
5
+ import { useFloatingParentNodeId as u } from "./index382.js";
6
+ import { FloatingRootStore as p } from "./index384.js";
7
+ import { PopupTriggerMap as d } from "./index352.js";
8
+ function y(s) {
16
9
  const {
17
- onClick: r,
18
- onPointerDown: n
19
- } = u(s);
20
- return l.useMemo(() => ({
21
- openMethod: o,
22
- triggerProps: {
23
- onClick: r,
24
- onPointerDown: n
25
- }
26
- }), [o, r, n]);
10
+ open: o = !1,
11
+ onOpenChange: f,
12
+ elements: e = {}
13
+ } = s, r = c(), i = u() != null;
14
+ if (process.env.NODE_ENV !== "production") {
15
+ const n = e.reference;
16
+ n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
17
+ }
18
+ const t = a(() => new p({
19
+ open: o,
20
+ transitionStatus: void 0,
21
+ onOpenChange: f,
22
+ referenceElement: e.reference ?? null,
23
+ floatingElement: e.floating ?? null,
24
+ triggerElements: new d(),
25
+ floatingId: r,
26
+ syncOnly: !1,
27
+ nested: i
28
+ })).current;
29
+ return m(() => {
30
+ const n = {
31
+ open: o,
32
+ floatingId: r
33
+ };
34
+ e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
+ }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
27
36
  }
28
37
  export {
29
- C as useOpenInteractionType
38
+ y as useFloatingRootContext
30
39
  };
31
40
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.js\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.js\";\nimport { PopupTriggerMap } from \"../../utils/popups/index.js\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useFloatingRootContext","options","open","onOpenChange","elements","floatingId","useId","nested","useFloatingParentNodeId","optionDomReference","isElement","store","useRefWithInit","FloatingRootStore","PopupTriggerMap","useIsoLayoutEffect","valuesToSync"],"mappings":";;;;;;;AASO,SAASA,EAAuBC,GAAS;AAC9C,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC,IAAW,CAAA;AAAA,EACf,IAAMH,GACEI,IAAaC,EAAK,GAClBC,IAASC,EAAuB,KAAM;AAC5C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAqBL,EAAS;AACpC,IAAIK,KAAsB,CAACC,EAAUD,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;AAAA,EAE3K;AACA,QAAME,IAAQC,EAAe,MAAM,IAAIC,EAAkB;AAAA,IACvD,MAAAX;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,kBAAkBC,EAAS,aAAa;AAAA,IACxC,iBAAiBA,EAAS,YAAY;AAAA,IACtC,iBAAiB,IAAIU,EAAe;AAAA,IACpC,YAAAT;AAAA,IACA,UAAU;AAAA,IACV,QAAAE;AAAA,EACJ,CAAG,CAAC,EAAE;AACJ,SAAAQ,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAd;AAAA,MACA,YAAAG;AAAA,IACN;AAGI,IAAID,EAAS,cAAc,WACzBY,EAAa,mBAAmBZ,EAAS,WACzCY,EAAa,sBAAsBN,EAAUN,EAAS,SAAS,IAAIA,EAAS,YAAY,OAEtFA,EAAS,aAAa,WACxBY,EAAa,kBAAkBZ,EAAS,WAE1CO,EAAM,OAAOK,CAAY;AAAA,EAC3B,GAAG,CAACd,GAAMG,GAAYD,EAAS,WAAWA,EAAS,UAAUO,CAAK,CAAC,GACnEA,EAAM,QAAQ,eAAeR,GAC7BQ,EAAM,QAAQ,SAASJ,GAChBI;AACT;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,17 +1,266 @@
1
- import { clamp as s } from "./index331.js";
2
- const f = 1;
3
- function a(n, t) {
4
- return Math.max(0, n - t);
1
+ import * as a from "react";
2
+ import { isWebKit as Ae, isElement as v, isShadowRoot as Be, isLastTraversableNode as Z, getParentNode as Ne, isHTMLElement as Le, getComputedStyle as Fe } from "./index331.js";
3
+ import { addEventListener as u } from "./index322.js";
4
+ import { mergeCleanups as z } from "./index373.js";
5
+ import { useTimeout as de, Timeout as pe } from "./index307.js";
6
+ import { useStableCallback as y } from "./index284.js";
7
+ import { ownerDocument as me } from "./index306.js";
8
+ import { isEventTargetWithin as f, isRootElement as $e } from "./index312.js";
9
+ import { isReactEvent as qe } from "./index375.js";
10
+ import { getNodeChildren as ee } from "./index377.js";
11
+ import { useFloatingTree as Ve } from "./index382.js";
12
+ import { createChangeEventDetails as A } from "./index175.js";
13
+ import { createAttribute as Ue } from "./index379.js";
14
+ import { getTarget as te, contains as B } from "./index313.js";
15
+ import { triggerPress as he, escapeKey as je, outsidePress as Ge } from "./index177.js";
16
+ const Je = {
17
+ intentional: "onClick",
18
+ sloppy: "onPointerDown"
19
+ };
20
+ function Qe() {
21
+ return !1;
22
+ }
23
+ function Ze(d) {
24
+ return {
25
+ escapeKey: typeof d == "boolean" ? d : d?.escapeKey ?? !1,
26
+ outsidePress: typeof d == "boolean" ? d : d?.outsidePress ?? !0
27
+ };
5
28
  }
6
- function u(n, t) {
7
- if (t <= 0)
8
- return 0;
9
- const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
- return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
29
+ function pt(d, Ee = {}) {
30
+ const n = "rootStore" in d ? d.rootStore : d, S = n.useState("open"), ne = n.useState("floatingElement"), {
31
+ dataRef: m
32
+ } = n.context, {
33
+ enabled: h = !0,
34
+ escapeKey: N = !0,
35
+ outsidePress: x = !0,
36
+ outsidePressEvent: ge = "sloppy",
37
+ referencePress: ye = Qe,
38
+ referencePressEvent: L = "sloppy",
39
+ bubbles: Pe,
40
+ externalTree: Re
41
+ } = Ee, P = Ve(Re), Te = y(typeof x == "function" ? x : () => !1), R = typeof x == "function" ? Te : x, re = R !== !1, se = y(() => ge), O = a.useRef(!1), X = a.useRef(!1), b = a.useRef(!1), {
42
+ escapeKey: W,
43
+ outsidePress: oe
44
+ } = Ze(Pe), s = a.useRef(null), D = de(), ce = de(), E = y(() => {
45
+ ce.clear(), m.current.insideReactTree = !1;
46
+ }), F = a.useRef(!1), $ = a.useRef(""), q = y(ye), w = y((r) => {
47
+ if (!S || !h || !N || r.key !== "Escape" || F.current)
48
+ return;
49
+ const g = m.current.floatingContext?.nodeId, Y = P ? ee(P.nodesRef.current, g) : [];
50
+ if (!W && Y.length > 0) {
51
+ let M = !0;
52
+ if (Y.forEach((p) => {
53
+ p.context?.open && !p.context.dataRef.current.__escapeKeyBubbles && (M = !1);
54
+ }), !M)
55
+ return;
56
+ }
57
+ const G = qe(r) ? r.nativeEvent : r, I = A(je, G);
58
+ n.setOpen(!1, I), !W && !I.isPropagationAllowed && r.stopPropagation();
59
+ }), T = y(() => {
60
+ m.current.insideReactTree = !0, ce.start(0, E);
61
+ });
62
+ a.useEffect(() => {
63
+ if (!S || !h)
64
+ return;
65
+ m.current.__escapeKeyBubbles = W, m.current.__outsidePressBubbles = oe;
66
+ const r = new pe(), g = new pe();
67
+ function Y() {
68
+ r.clear(), F.current = !0;
69
+ }
70
+ function G() {
71
+ r.start(
72
+ // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
73
+ // Only apply to WebKit for the test to remain 0ms.
74
+ Ae() ? 5 : 0,
75
+ () => {
76
+ F.current = !1;
77
+ }
78
+ );
79
+ }
80
+ function I() {
81
+ b.current = !0, g.start(0, () => {
82
+ b.current = !1;
83
+ });
84
+ }
85
+ function M() {
86
+ O.current = !1, X.current = !1;
87
+ }
88
+ function p() {
89
+ const e = $.current, t = e === "pen" || !e ? "mouse" : e, o = se(), c = typeof o == "function" ? o() : o;
90
+ return typeof c == "string" ? c : c[t];
91
+ }
92
+ function be(e) {
93
+ const t = p();
94
+ return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
95
+ }
96
+ function ue(e) {
97
+ const t = m.current.floatingContext?.nodeId, o = P && ee(P.nodesRef.current, t).some((c) => f(e, c.context?.elements.floating));
98
+ return f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || o;
99
+ }
100
+ function _(e) {
101
+ if (be(e)) {
102
+ E();
103
+ return;
104
+ }
105
+ if (m.current.insideReactTree) {
106
+ E();
107
+ return;
108
+ }
109
+ const t = te(e), o = `[${Ue("inert")}]`, c = v(t) ? t.getRootNode() : null, k = Array.from((Be(c) ? c : me(n.select("floatingElement"))).querySelectorAll(o)), le = n.context.triggerElements;
110
+ if (t && (le.hasElement(t) || le.hasMatchingElement((i) => B(i, t))))
111
+ return;
112
+ let K = v(t) ? t : null;
113
+ for (; K && !Z(K); ) {
114
+ const i = Ne(K);
115
+ if (Z(i) || !v(i))
116
+ break;
117
+ K = i;
118
+ }
119
+ if (k.length && v(t) && !$e(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
120
+ !B(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
121
+ // element was injected after the floating element rendered.
122
+ k.every((i) => !B(K, i)))
123
+ return;
124
+ if (Le(t) && !("touches" in e)) {
125
+ const i = Z(t), C = Fe(t), fe = /auto|scroll/, xe = i || fe.test(C.overflowX), Xe = i || fe.test(C.overflowY), We = xe && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, Ye = Xe && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, _e = C.direction === "rtl", He = Ye && (_e ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), ve = We && e.offsetY > t.clientHeight;
126
+ if (He || ve)
127
+ return;
128
+ }
129
+ if (ue(e))
130
+ return;
131
+ if (p() === "intentional" && b.current) {
132
+ g.clear(), b.current = !1;
133
+ return;
134
+ }
135
+ if (typeof R == "function" && !R(e))
136
+ return;
137
+ const Ke = m.current.floatingContext?.nodeId, ae = P ? ee(P.nodesRef.current, Ke) : [];
138
+ if (ae.length > 0) {
139
+ let i = !0;
140
+ if (ae.forEach((C) => {
141
+ C.context?.open && !C.context.dataRef.current.__outsidePressBubbles && (i = !1);
142
+ }), !i)
143
+ return;
144
+ }
145
+ n.setOpen(!1, A(Ge, e)), E();
146
+ }
147
+ function we(e) {
148
+ p() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || _(e);
149
+ }
150
+ function Ce(e) {
151
+ if (p() !== "sloppy" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
152
+ return;
153
+ const t = e.touches[0];
154
+ t && (s.current = {
155
+ startTime: Date.now(),
156
+ startX: t.clientX,
157
+ startY: t.clientY,
158
+ dismissOnTouchEnd: !1,
159
+ dismissOnMouseDown: !0
160
+ }, D.start(1e3, () => {
161
+ s.current && (s.current.dismissOnTouchEnd = !1, s.current.dismissOnMouseDown = !1);
162
+ }));
163
+ }
164
+ function H(e, t) {
165
+ const o = te(e);
166
+ if (!o)
167
+ return;
168
+ const c = u(o, e.type, () => {
169
+ t(e), c();
170
+ });
171
+ }
172
+ function Se(e) {
173
+ $.current = "touch", H(e, Ce);
174
+ }
175
+ function J(e) {
176
+ D.clear(), e.type === "pointerdown" && ($.current = e.pointerType), !(e.type === "mousedown" && s.current && !s.current.dismissOnMouseDown) && H(e, (t) => {
177
+ t.type === "pointerdown" ? we(t) : _(t);
178
+ });
179
+ }
180
+ function Q(e) {
181
+ if (!O.current)
182
+ return;
183
+ const t = X.current;
184
+ if (M(), p() === "intentional") {
185
+ if (e.type === "pointercancel") {
186
+ t && I();
187
+ return;
188
+ }
189
+ if (!ue(e)) {
190
+ if (t) {
191
+ I();
192
+ return;
193
+ }
194
+ typeof R == "function" && !R(e) || (g.clear(), b.current = !0, E());
195
+ }
196
+ }
197
+ }
198
+ function Oe(e) {
199
+ if (p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
200
+ return;
201
+ const t = e.touches[0];
202
+ if (!t)
203
+ return;
204
+ const o = Math.abs(t.clientX - s.current.startX), c = Math.abs(t.clientY - s.current.startY), k = Math.sqrt(o * o + c * c);
205
+ k > 5 && (s.current.dismissOnTouchEnd = !0), k > 10 && (_(e), D.clear(), s.current = null);
206
+ }
207
+ function De(e) {
208
+ H(e, Oe);
209
+ }
210
+ function Ie(e) {
211
+ p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || (s.current.dismissOnTouchEnd && _(e), D.clear(), s.current = null);
212
+ }
213
+ function Me(e) {
214
+ H(e, Ie);
215
+ }
216
+ const l = me(ne), ke = z(N && z(u(l, "keydown", w), u(l, "compositionstart", Y), u(l, "compositionend", G)), re && z(u(l, "click", J, !0), u(l, "pointerdown", J, !0), u(l, "pointerup", Q, !0), u(l, "pointercancel", Q, !0), u(l, "mousedown", J, !0), u(l, "mouseup", Q, !0), u(l, "touchstart", Se, !0), u(l, "touchmove", De, !0), u(l, "touchend", Me, !0)));
217
+ return () => {
218
+ ke(), r.clear(), g.clear(), M(), b.current = !1;
219
+ };
220
+ }, [m, ne, N, re, R, S, h, W, oe, w, E, se, P, n, D]), a.useEffect(E, [R, E]);
221
+ const V = a.useMemo(() => ({
222
+ onKeyDown: w,
223
+ [Je[L]]: (r) => {
224
+ q() && n.setOpen(!1, A(he, r.nativeEvent));
225
+ },
226
+ ...L !== "intentional" && {
227
+ onClick(r) {
228
+ q() && n.setOpen(!1, A(he, r.nativeEvent));
229
+ }
230
+ }
231
+ }), [w, n, L, q]), U = y((r) => {
232
+ if (!S || !h || r.button !== 0)
233
+ return;
234
+ const g = te(r.nativeEvent);
235
+ B(n.select("floatingElement"), g) && (O.current || (O.current = !0, X.current = !1));
236
+ }), j = y((r) => {
237
+ !S || !h || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && O.current && (X.current = !0);
238
+ }), ie = a.useMemo(() => ({
239
+ onKeyDown: w,
240
+ // `onMouseDown` may be blocked if `event.preventDefault()` is called in
241
+ // `onPointerDown`, such as with <NumberField.ScrubArea>.
242
+ // See https://github.com/mui/base-ui/pull/3379
243
+ onPointerDown: j,
244
+ onMouseDown: j,
245
+ onClickCapture: T,
246
+ onMouseDownCapture(r) {
247
+ T(), U(r);
248
+ },
249
+ onPointerDownCapture(r) {
250
+ T(), U(r);
251
+ },
252
+ onMouseUpCapture: T,
253
+ onTouchEndCapture: T,
254
+ onTouchMoveCapture: T
255
+ }), [w, T, U, j]);
256
+ return a.useMemo(() => h ? {
257
+ reference: V,
258
+ floating: ie,
259
+ trigger: V
260
+ } : {}, [h, V, ie]);
11
261
  }
12
262
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
263
+ Ze as normalizeProp,
264
+ pt as useDismiss
16
265
  };
17
266
  //# sourceMappingURL=index301.js.map