@rpcbase/ui 0.226.0 → 0.228.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 (758) hide show
  1. package/dist/components/PhoneNumberInput/index.d.ts +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
  4. package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
  5. package/dist/components/PhoneNumberInput/types.d.ts +4 -4
  6. package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
  7. package/dist/index100.js +4 -11
  8. package/dist/index100.js.map +1 -1
  9. package/dist/index101.js +8 -68
  10. package/dist/index101.js.map +1 -1
  11. package/dist/index102.js +6 -38
  12. package/dist/index102.js.map +1 -1
  13. package/dist/index103.js +5 -14
  14. package/dist/index103.js.map +1 -1
  15. package/dist/index104.js +4 -23
  16. package/dist/index104.js.map +1 -1
  17. package/dist/index105.js +6 -110
  18. package/dist/index105.js.map +1 -1
  19. package/dist/index106.js +146 -13
  20. package/dist/index106.js.map +1 -1
  21. package/dist/index107.js +39 -4
  22. package/dist/index107.js.map +1 -1
  23. package/dist/index108.js +5 -4
  24. package/dist/index108.js.map +1 -1
  25. package/dist/index109.js +8 -5
  26. package/dist/index109.js.map +1 -1
  27. package/dist/index110.js +13 -11
  28. package/dist/index110.js.map +1 -1
  29. package/dist/index111.js +13 -19
  30. package/dist/index111.js.map +1 -1
  31. package/dist/index112.js +8 -13
  32. package/dist/index112.js.map +1 -1
  33. package/dist/index113.js +31 -261
  34. package/dist/index113.js.map +1 -1
  35. package/dist/index114.js +10 -4
  36. package/dist/index114.js.map +1 -1
  37. package/dist/index115.js +11 -28
  38. package/dist/index115.js.map +1 -1
  39. package/dist/index116.js +8 -126
  40. package/dist/index116.js.map +1 -1
  41. package/dist/index117.js +13 -5
  42. package/dist/index117.js.map +1 -1
  43. package/dist/index118.js +101 -78
  44. package/dist/index118.js.map +1 -1
  45. package/dist/index119.js +20 -67
  46. package/dist/index119.js.map +1 -1
  47. package/dist/index120.js +53 -8
  48. package/dist/index120.js.map +1 -1
  49. package/dist/index121.js +73 -16
  50. package/dist/index121.js.map +1 -1
  51. package/dist/index122.js +9 -92
  52. package/dist/index122.js.map +1 -1
  53. package/dist/index123.js +17 -62
  54. package/dist/index123.js.map +1 -1
  55. package/dist/index124.js +15 -44
  56. package/dist/index124.js.map +1 -1
  57. package/dist/index125.js +24 -52
  58. package/dist/index125.js.map +1 -1
  59. package/dist/index126.js +6 -4
  60. package/dist/index126.js.map +1 -1
  61. package/dist/index127.js +5 -4
  62. package/dist/index127.js.map +1 -1
  63. package/dist/index128.js +23 -15
  64. package/dist/index128.js.map +1 -1
  65. package/dist/index129.js +35 -6
  66. package/dist/index129.js.map +1 -1
  67. package/dist/index130.js +16 -8
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +6 -16
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -4
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +4 -4
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +4 -5
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +4 -5
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +3 -4
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +6 -4
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +24 -7
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +7 -24
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index140.js +6 -6
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +5 -4
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +3 -6
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +3 -5
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +4 -4
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +3 -5
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +4 -4
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +3 -8
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +3 -5
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +3 -4
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index150.js +5 -4
  108. package/dist/index150.js.map +1 -1
  109. package/dist/index151.js +68 -6
  110. package/dist/index151.js.map +1 -1
  111. package/dist/index152.js +2 -146
  112. package/dist/index152.js.map +1 -1
  113. package/dist/index153.js +362 -38
  114. package/dist/index153.js.map +1 -1
  115. package/dist/index154.js +261 -4
  116. package/dist/index154.js.map +1 -1
  117. package/dist/index155.js +60 -7
  118. package/dist/index155.js.map +1 -1
  119. package/dist/index156.js +46 -13
  120. package/dist/index156.js.map +1 -1
  121. package/dist/index157.js +169 -13
  122. package/dist/index157.js.map +1 -1
  123. package/dist/index158.js +109 -7
  124. package/dist/index158.js.map +1 -1
  125. package/dist/index159.js +24 -31
  126. package/dist/index159.js.map +1 -1
  127. package/dist/index160.js +8 -11
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +4 -10
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +5 -8
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +4 -13
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +465 -100
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +186 -20
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js +107 -53
  140. package/dist/index166.js.map +1 -1
  141. package/dist/index167.js +261 -71
  142. package/dist/index167.js.map +1 -1
  143. package/dist/index168.js +9 -9
  144. package/dist/index168.js.map +1 -1
  145. package/dist/index169.js +42 -20
  146. package/dist/index169.js.map +1 -1
  147. package/dist/index170.js +4 -16
  148. package/dist/index170.js.map +1 -1
  149. package/dist/index171.js +11 -23
  150. package/dist/index171.js.map +1 -1
  151. package/dist/index172.js +68 -6
  152. package/dist/index172.js.map +1 -1
  153. package/dist/index173.js +38 -6
  154. package/dist/index173.js.map +1 -1
  155. package/dist/index174.js +14 -24
  156. package/dist/index174.js.map +1 -1
  157. package/dist/index175.js +21 -32
  158. package/dist/index175.js.map +1 -1
  159. package/dist/index176.js +111 -16
  160. package/dist/index176.js.map +1 -1
  161. package/dist/index177.js +13 -7
  162. package/dist/index177.js.map +1 -1
  163. package/dist/index178.js +4 -4
  164. package/dist/index178.js.map +1 -1
  165. package/dist/index179.js +4 -5
  166. package/dist/index179.js.map +1 -1
  167. package/dist/index18.js +377 -414
  168. package/dist/index18.js.map +1 -1
  169. package/dist/index180.js +5 -5
  170. package/dist/index180.js.map +1 -1
  171. package/dist/index181.js +11 -4
  172. package/dist/index181.js.map +1 -1
  173. package/dist/index182.js +19 -3
  174. package/dist/index182.js.map +1 -1
  175. package/dist/index183.js +13 -7
  176. package/dist/index183.js.map +1 -1
  177. package/dist/index184.js +262 -24
  178. package/dist/index184.js.map +1 -1
  179. package/dist/index185.js +4 -7
  180. package/dist/index185.js.map +1 -1
  181. package/dist/index186.js +28 -7
  182. package/dist/index186.js.map +1 -1
  183. package/dist/index187.js +126 -5
  184. package/dist/index187.js.map +1 -1
  185. package/dist/index188.js +5 -3
  186. package/dist/index188.js.map +1 -1
  187. package/dist/index189.js +78 -3
  188. package/dist/index189.js.map +1 -1
  189. package/dist/index190.js +66 -4
  190. package/dist/index190.js.map +1 -1
  191. package/dist/index191.js +8 -3
  192. package/dist/index191.js.map +1 -1
  193. package/dist/index192.js +16 -5
  194. package/dist/index192.js.map +1 -1
  195. package/dist/index193.js +92 -3
  196. package/dist/index193.js.map +1 -1
  197. package/dist/index194.js +65 -3
  198. package/dist/index194.js.map +1 -1
  199. package/dist/index195.js +45 -3
  200. package/dist/index195.js.map +1 -1
  201. package/dist/index196.js +16 -13
  202. package/dist/index196.js.map +1 -1
  203. package/dist/index197.js +4 -153
  204. package/dist/index197.js.map +1 -1
  205. package/dist/index198.js +4 -29
  206. package/dist/index198.js.map +1 -1
  207. package/dist/index199.js +58 -9
  208. package/dist/index199.js.map +1 -1
  209. package/dist/index200.js +61 -43
  210. package/dist/index200.js.map +1 -1
  211. package/dist/index201.js +6 -11
  212. package/dist/index201.js.map +1 -1
  213. package/dist/index202.js +4 -44
  214. package/dist/index202.js.map +1 -1
  215. package/dist/index203.js +6 -95
  216. package/dist/index203.js.map +1 -1
  217. package/dist/index204.js +16 -86
  218. package/dist/index204.js.map +1 -1
  219. package/dist/index205.js +4 -105
  220. package/dist/index205.js.map +1 -1
  221. package/dist/index206.js +4 -52
  222. package/dist/index206.js.map +1 -1
  223. package/dist/index207.js +12 -11
  224. package/dist/index207.js.map +1 -1
  225. package/dist/index208.js +9 -37
  226. package/dist/index208.js.map +1 -1
  227. package/dist/index209.js +13 -8
  228. package/dist/index209.js.map +1 -1
  229. package/dist/index210.js +13 -116
  230. package/dist/index210.js.map +1 -1
  231. package/dist/index211.js +4 -17
  232. package/dist/index211.js.map +1 -1
  233. package/dist/index212.js +5 -15
  234. package/dist/index212.js.map +1 -1
  235. package/dist/index213.js +6 -3
  236. package/dist/index213.js.map +1 -1
  237. package/dist/index214.js +5 -36
  238. package/dist/index214.js.map +1 -1
  239. package/dist/index215.js +53 -19
  240. package/dist/index215.js.map +1 -1
  241. package/dist/index216.js +8 -9
  242. package/dist/index216.js.map +1 -1
  243. package/dist/index217.js +4 -8
  244. package/dist/index217.js.map +1 -1
  245. package/dist/index218.js +4 -19
  246. package/dist/index218.js.map +1 -1
  247. package/dist/index219.js +8 -28
  248. package/dist/index219.js.map +1 -1
  249. package/dist/index220.js +4 -16
  250. package/dist/index220.js.map +1 -1
  251. package/dist/index221.js +4 -66
  252. package/dist/index221.js.map +1 -1
  253. package/dist/index222.js +3 -8
  254. package/dist/index222.js.map +1 -1
  255. package/dist/index223.js +10 -11
  256. package/dist/index223.js.map +1 -1
  257. package/dist/index224.js +9 -8
  258. package/dist/index224.js.map +1 -1
  259. package/dist/index225.js +9 -5
  260. package/dist/index225.js.map +1 -1
  261. package/dist/index226.js +10 -13
  262. package/dist/index226.js.map +1 -1
  263. package/dist/index227.js +10 -3
  264. package/dist/index227.js.map +1 -1
  265. package/dist/index228.js +9 -3
  266. package/dist/index228.js.map +1 -1
  267. package/dist/index229.js +6 -99
  268. package/dist/index229.js.map +1 -1
  269. package/dist/index230.js +5 -29
  270. package/dist/index230.js.map +1 -1
  271. package/dist/index231.js +4 -51
  272. package/dist/index231.js.map +1 -1
  273. package/dist/index232.js +5 -17
  274. package/dist/index232.js.map +1 -1
  275. package/dist/index233.js +6 -5
  276. package/dist/index233.js.map +1 -1
  277. package/dist/index234.js +5 -122
  278. package/dist/index234.js.map +1 -1
  279. package/dist/index235.js +8 -27
  280. package/dist/index235.js.map +1 -1
  281. package/dist/index236.js +19 -32
  282. package/dist/index236.js.map +1 -1
  283. package/dist/index237.js +15 -72
  284. package/dist/index237.js.map +1 -1
  285. package/dist/index238.js +7 -262
  286. package/dist/index238.js.map +1 -1
  287. package/dist/index239.js +9 -27
  288. package/dist/index239.js.map +1 -1
  289. package/dist/index240.js +10 -6
  290. package/dist/index240.js.map +1 -1
  291. package/dist/index241.js +19 -140
  292. package/dist/index241.js.map +1 -1
  293. package/dist/index242.js +10 -61
  294. package/dist/index242.js.map +1 -1
  295. package/dist/index243.js +9 -49
  296. package/dist/index243.js.map +1 -1
  297. package/dist/index244.js +10 -15
  298. package/dist/index244.js.map +1 -1
  299. package/dist/index245.js +4 -133
  300. package/dist/index245.js.map +1 -1
  301. package/dist/index246.js +5 -8
  302. package/dist/index246.js.map +1 -1
  303. package/dist/index247.js +17 -5
  304. package/dist/index247.js.map +1 -1
  305. package/dist/index248.js +10 -4
  306. package/dist/index248.js.map +1 -1
  307. package/dist/index249.js +18 -11
  308. package/dist/index249.js.map +1 -1
  309. package/dist/index250.js +13 -19
  310. package/dist/index250.js.map +1 -1
  311. package/dist/index251.js +13 -20
  312. package/dist/index251.js.map +1 -1
  313. package/dist/index252.js +29 -11
  314. package/dist/index252.js.map +1 -1
  315. package/dist/index253.js +11 -49
  316. package/dist/index253.js.map +1 -1
  317. package/dist/index254.js +24 -15
  318. package/dist/index254.js.map +1 -1
  319. package/dist/index255.js +5 -21
  320. package/dist/index255.js.map +1 -1
  321. package/dist/index256.js +20 -52
  322. package/dist/index256.js.map +1 -1
  323. package/dist/index257.js +65 -24
  324. package/dist/index257.js.map +1 -1
  325. package/dist/index258.js +6 -41
  326. package/dist/index258.js.map +1 -1
  327. package/dist/index259.js +11 -39
  328. package/dist/index259.js.map +1 -1
  329. package/dist/index260.js +50 -44
  330. package/dist/index260.js.map +1 -1
  331. package/dist/index261.js +4 -21
  332. package/dist/index261.js.map +1 -1
  333. package/dist/index262.js +26 -67
  334. package/dist/index262.js.map +1 -1
  335. package/dist/index263.js +15 -16
  336. package/dist/index263.js.map +1 -1
  337. package/dist/index264.js +5 -11
  338. package/dist/index264.js.map +1 -1
  339. package/dist/index265.js +20 -12
  340. package/dist/index265.js.map +1 -1
  341. package/dist/index266.js +51 -18
  342. package/dist/index266.js.map +1 -1
  343. package/dist/index267.js +24 -35
  344. package/dist/index267.js.map +1 -1
  345. package/dist/index268.js +35 -272
  346. package/dist/index268.js.map +1 -1
  347. package/dist/index269.js +36 -65
  348. package/dist/index269.js.map +1 -1
  349. package/dist/index270.js +45 -84
  350. package/dist/index270.js.map +1 -1
  351. package/dist/index271.js +20 -3
  352. package/dist/index271.js.map +1 -1
  353. package/dist/index272.js +66 -25
  354. package/dist/index272.js.map +1 -1
  355. package/dist/index273.js +17 -16
  356. package/dist/index273.js.map +1 -1
  357. package/dist/index274.js +12 -35
  358. package/dist/index274.js.map +1 -1
  359. package/dist/index275.js +27 -16
  360. package/dist/index275.js.map +1 -1
  361. package/dist/index276.js +13 -3
  362. package/dist/index276.js.map +1 -1
  363. package/dist/index277.js +15 -23
  364. package/dist/index277.js.map +1 -1
  365. package/dist/index278.js +37 -4
  366. package/dist/index278.js.map +1 -1
  367. package/dist/index279.js +258 -74
  368. package/dist/index279.js.map +1 -1
  369. package/dist/index280.js +269 -260
  370. package/dist/index280.js.map +1 -1
  371. package/dist/index281.js +68 -11
  372. package/dist/index281.js.map +1 -1
  373. package/dist/index282.js +100 -11
  374. package/dist/index282.js.map +1 -1
  375. package/dist/index283.js +82 -24
  376. package/dist/index283.js.map +1 -1
  377. package/dist/index284.js +3 -16
  378. package/dist/index284.js.map +1 -1
  379. package/dist/index285.js +26 -122
  380. package/dist/index285.js.map +1 -1
  381. package/dist/index286.js +16 -5
  382. package/dist/index286.js.map +1 -1
  383. package/dist/index287.js +34 -40
  384. package/dist/index287.js.map +1 -1
  385. package/dist/index288.js +15 -64
  386. package/dist/index288.js.map +1 -1
  387. package/dist/index289.js +4 -14
  388. package/dist/index289.js.map +1 -1
  389. package/dist/index290.js +26 -7
  390. package/dist/index290.js.map +1 -1
  391. package/dist/index291.js +28 -5
  392. package/dist/index291.js.map +1 -1
  393. package/dist/index292.js +4 -4
  394. package/dist/index292.js.map +1 -1
  395. package/dist/index293.js +78 -10
  396. package/dist/index293.js.map +1 -1
  397. package/dist/index294.js +269 -7
  398. package/dist/index294.js.map +1 -1
  399. package/dist/index295.js +11 -399
  400. package/dist/index295.js.map +1 -1
  401. package/dist/index296.js +10 -52
  402. package/dist/index296.js.map +1 -1
  403. package/dist/index297.js +25 -11
  404. package/dist/index297.js.map +1 -1
  405. package/dist/index298.js +16 -11
  406. package/dist/index298.js.map +1 -1
  407. package/dist/index299.js +124 -57
  408. package/dist/index299.js.map +1 -1
  409. package/dist/index300.js +5 -8
  410. package/dist/index300.js.map +1 -1
  411. package/dist/index301.js +38 -64
  412. package/dist/index301.js.map +1 -1
  413. package/dist/index302.js +63 -17
  414. package/dist/index302.js.map +1 -1
  415. package/dist/index303.js +13 -16
  416. package/dist/index303.js.map +1 -1
  417. package/dist/index304.js +7 -5
  418. package/dist/index304.js.map +1 -1
  419. package/dist/index305.js +5 -5
  420. package/dist/index305.js.map +1 -1
  421. package/dist/index306.js +3 -6
  422. package/dist/index306.js.map +1 -1
  423. package/dist/index307.js +10 -4
  424. package/dist/index307.js.map +1 -1
  425. package/dist/index308.js +7 -6
  426. package/dist/index308.js.map +1 -1
  427. package/dist/index309.js +132 -15
  428. package/dist/index309.js.map +1 -1
  429. package/dist/index31.js +24 -24
  430. package/dist/index310.js +399 -4
  431. package/dist/index310.js.map +1 -1
  432. package/dist/index311.js +52 -4
  433. package/dist/index311.js.map +1 -1
  434. package/dist/index312.js +11 -12
  435. package/dist/index312.js.map +1 -1
  436. package/dist/index313.js +11 -9
  437. package/dist/index313.js.map +1 -1
  438. package/dist/index314.js +13 -13
  439. package/dist/index314.js.map +1 -1
  440. package/dist/index315.js +154 -13
  441. package/dist/index315.js.map +1 -1
  442. package/dist/index316.js +30 -4
  443. package/dist/index316.js.map +1 -1
  444. package/dist/index317.js +9 -5
  445. package/dist/index317.js.map +1 -1
  446. package/dist/index318.js +48 -6
  447. package/dist/index318.js.map +1 -1
  448. package/dist/index319.js +11 -5
  449. package/dist/index319.js.map +1 -1
  450. package/dist/index32.js +3 -3
  451. package/dist/index320.js +43 -53
  452. package/dist/index320.js.map +1 -1
  453. package/dist/index321.js +95 -8
  454. package/dist/index321.js.map +1 -1
  455. package/dist/index322.js +86 -4
  456. package/dist/index322.js.map +1 -1
  457. package/dist/index323.js +105 -4
  458. package/dist/index323.js.map +1 -1
  459. package/dist/index324.js +52 -8
  460. package/dist/index324.js.map +1 -1
  461. package/dist/index325.js +11 -4
  462. package/dist/index325.js.map +1 -1
  463. package/dist/index326.js +37 -4
  464. package/dist/index326.js.map +1 -1
  465. package/dist/index327.js +8 -3
  466. package/dist/index327.js.map +1 -1
  467. package/dist/index328.js +116 -10
  468. package/dist/index328.js.map +1 -1
  469. package/dist/index329.js +17 -9
  470. package/dist/index329.js.map +1 -1
  471. package/dist/index330.js +15 -9
  472. package/dist/index330.js.map +1 -1
  473. package/dist/index331.js +3 -10
  474. package/dist/index331.js.map +1 -1
  475. package/dist/index332.js +36 -10
  476. package/dist/index332.js.map +1 -1
  477. package/dist/index333.js +20 -9
  478. package/dist/index333.js.map +1 -1
  479. package/dist/index334.js +9 -6
  480. package/dist/index334.js.map +1 -1
  481. package/dist/index335.js +8 -5
  482. package/dist/index335.js.map +1 -1
  483. package/dist/index336.js +8 -4
  484. package/dist/index336.js.map +1 -1
  485. package/dist/index337.js +11 -5
  486. package/dist/index337.js.map +1 -1
  487. package/dist/index338.js +8 -6
  488. package/dist/index338.js.map +1 -1
  489. package/dist/index339.js +13 -5
  490. package/dist/index339.js.map +1 -1
  491. package/dist/index34.js +4 -4
  492. package/dist/index340.js +3 -16
  493. package/dist/index340.js.map +1 -1
  494. package/dist/index341.js +3 -7
  495. package/dist/index341.js.map +1 -1
  496. package/dist/index342.js +18 -9
  497. package/dist/index342.js.map +1 -1
  498. package/dist/index343.js +27 -9
  499. package/dist/index343.js.map +1 -1
  500. package/dist/index344.js +15 -20
  501. package/dist/index344.js.map +1 -1
  502. package/dist/index345.js +17 -10
  503. package/dist/index345.js.map +1 -1
  504. package/dist/index346.js +51 -9
  505. package/dist/index346.js.map +1 -1
  506. package/dist/index347.js +5 -9
  507. package/dist/index347.js.map +1 -1
  508. package/dist/index348.js +122 -4
  509. package/dist/index348.js.map +1 -1
  510. package/dist/index349.js +32 -5
  511. package/dist/index349.js.map +1 -1
  512. package/dist/index35.js +5 -5
  513. package/dist/index350.js +73 -16
  514. package/dist/index350.js.map +1 -1
  515. package/dist/index351.js +142 -9
  516. package/dist/index351.js.map +1 -1
  517. package/dist/index352.js +61 -18
  518. package/dist/index352.js.map +1 -1
  519. package/dist/index353.js +47 -13
  520. package/dist/index353.js.map +1 -1
  521. package/dist/index354.js +15 -13
  522. package/dist/index354.js.map +1 -1
  523. package/dist/index355.js +7 -28
  524. package/dist/index355.js.map +1 -1
  525. package/dist/index356.js +5 -13
  526. package/dist/index356.js.map +1 -1
  527. package/dist/index357.js +11 -25
  528. package/dist/index357.js.map +1 -1
  529. package/dist/index358.js +21 -5
  530. package/dist/index358.js.map +1 -1
  531. package/dist/index359.js +4 -20
  532. package/dist/index359.js.map +1 -1
  533. package/dist/index36.js +10 -10
  534. package/dist/index360.js +18 -9
  535. package/dist/index360.js.map +1 -1
  536. package/dist/index361.js +13 -26
  537. package/dist/index361.js.map +1 -1
  538. package/dist/index362.js +4 -27
  539. package/dist/index362.js.map +1 -1
  540. package/dist/index363.js +10 -136
  541. package/dist/index363.js.map +1 -1
  542. package/dist/index364.js +16 -12
  543. package/dist/index364.js.map +1 -1
  544. package/dist/index365.js +5 -226
  545. package/dist/index365.js.map +1 -1
  546. package/dist/index366.js +20 -3
  547. package/dist/index366.js.map +1 -1
  548. package/dist/index367.js +45 -20
  549. package/dist/index367.js.map +1 -1
  550. package/dist/index368.js +17 -77
  551. package/dist/index368.js.map +1 -1
  552. package/dist/index369.js +4 -11
  553. package/dist/index369.js.map +1 -1
  554. package/dist/index37.js +3 -3
  555. package/dist/index370.js +200 -3
  556. package/dist/index370.js.map +1 -1
  557. package/dist/index371.js +5 -5
  558. package/dist/index372.js +19 -199
  559. package/dist/index372.js.map +1 -1
  560. package/dist/index373.js +6 -69
  561. package/dist/index373.js.map +1 -1
  562. package/dist/index374.js +26 -9
  563. package/dist/index374.js.map +1 -1
  564. package/dist/index375.js +26 -16
  565. package/dist/index375.js.map +1 -1
  566. package/dist/index376.js +136 -14
  567. package/dist/index376.js.map +1 -1
  568. package/dist/index377.js +13 -4
  569. package/dist/index377.js.map +1 -1
  570. package/dist/index378.js +225 -10
  571. package/dist/index378.js.map +1 -1
  572. package/dist/index379.js +3 -5
  573. package/dist/index379.js.map +1 -1
  574. package/dist/index38.js +4 -4
  575. package/dist/index380.js +19 -20
  576. package/dist/index380.js.map +1 -1
  577. package/dist/index381.js +77 -44
  578. package/dist/index381.js.map +1 -1
  579. package/dist/index382.js +11 -17
  580. package/dist/index382.js.map +1 -1
  581. package/dist/index383.js +4 -5
  582. package/dist/index383.js.map +1 -1
  583. package/dist/index384.js +71 -4
  584. package/dist/index384.js.map +1 -1
  585. package/dist/index385.js +9 -18
  586. package/dist/index385.js.map +1 -1
  587. package/dist/index386.js +15 -12
  588. package/dist/index386.js.map +1 -1
  589. package/dist/index387.js +4 -14
  590. package/dist/index387.js.map +1 -1
  591. package/dist/index388.js +4 -491
  592. package/dist/index388.js.map +1 -1
  593. package/dist/index389.js +4 -3
  594. package/dist/index389.js.map +1 -1
  595. package/dist/index39.js +5 -5
  596. package/dist/index390.js +16 -3
  597. package/dist/index390.js.map +1 -1
  598. package/dist/index391.js +8 -4
  599. package/dist/index391.js.map +1 -1
  600. package/dist/index392.js +5 -4
  601. package/dist/index392.js.map +1 -1
  602. package/dist/index393.js +5 -4
  603. package/dist/index393.js.map +1 -1
  604. package/dist/index394.js +545 -15
  605. package/dist/index394.js.map +1 -1
  606. package/dist/index395.js +47 -9
  607. package/dist/index395.js.map +1 -1
  608. package/dist/index396.js +17 -5
  609. package/dist/index396.js.map +1 -1
  610. package/dist/index397.js +5 -4
  611. package/dist/index397.js.map +1 -1
  612. package/dist/index398.js +7 -545
  613. package/dist/index398.js.map +1 -1
  614. package/dist/index399.js +7 -47
  615. package/dist/index399.js.map +1 -1
  616. package/dist/index40.js +3 -3
  617. package/dist/index400.js +7 -17
  618. package/dist/index400.js.map +1 -1
  619. package/dist/index401.js +11 -5
  620. package/dist/index401.js.map +1 -1
  621. package/dist/index402.js +8 -7
  622. package/dist/index402.js.map +1 -1
  623. package/dist/index403.js +12 -6
  624. package/dist/index403.js.map +1 -1
  625. package/dist/index404.js +3 -8
  626. package/dist/index404.js.map +1 -1
  627. package/dist/index405.js +3 -12
  628. package/dist/index405.js.map +1 -1
  629. package/dist/index406.js +14 -8
  630. package/dist/index406.js.map +1 -1
  631. package/dist/index407.js +491 -12
  632. package/dist/index407.js.map +1 -1
  633. package/dist/index408.js +4 -7
  634. package/dist/index408.js.map +1 -1
  635. package/dist/index409.js +56 -2
  636. package/dist/index409.js.map +1 -1
  637. package/dist/index41.js +10 -10
  638. package/dist/index410.js +67 -43
  639. package/dist/index410.js.map +1 -1
  640. package/dist/index411.js +31 -56
  641. package/dist/index411.js.map +1 -1
  642. package/dist/index412.js +9 -8
  643. package/dist/index412.js.map +1 -1
  644. package/dist/index413.js +153 -2
  645. package/dist/index413.js.map +1 -1
  646. package/dist/index414.js +107 -54
  647. package/dist/index414.js.map +1 -1
  648. package/dist/index415.js +7 -55
  649. package/dist/index415.js.map +1 -1
  650. package/dist/index416.js +2 -5
  651. package/dist/index416.js.map +1 -1
  652. package/dist/index417.js +42 -54
  653. package/dist/index417.js.map +1 -1
  654. package/dist/index418.js +56 -68
  655. package/dist/index418.js.map +1 -1
  656. package/dist/index419.js +8 -31
  657. package/dist/index419.js.map +1 -1
  658. package/dist/index420.js +2 -9
  659. package/dist/index420.js.map +1 -1
  660. package/dist/index421.js +54 -152
  661. package/dist/index421.js.map +1 -1
  662. package/dist/index422.js +56 -108
  663. package/dist/index422.js.map +1 -1
  664. package/dist/index423.js +16 -2
  665. package/dist/index423.js.map +1 -1
  666. package/dist/index424.js +29 -2
  667. package/dist/index424.js.map +1 -1
  668. package/dist/index425.js +13 -2
  669. package/dist/index425.js.map +1 -1
  670. package/dist/index426.js +7 -2
  671. package/dist/index426.js.map +1 -1
  672. package/dist/index427.js +2 -16
  673. package/dist/index427.js.map +1 -1
  674. package/dist/index428.js +2 -29
  675. package/dist/index428.js.map +1 -1
  676. package/dist/index429.js +2 -13
  677. package/dist/index429.js.map +1 -1
  678. package/dist/index430.js +2 -7
  679. package/dist/index430.js.map +1 -1
  680. package/dist/index44.js +23 -22
  681. package/dist/index44.js.map +1 -1
  682. package/dist/index45.js +22 -196
  683. package/dist/index45.js.map +1 -1
  684. package/dist/index48.js +2 -2
  685. package/dist/index49.js +34 -34
  686. package/dist/index50.js +29 -29
  687. package/dist/index51.js +2 -2
  688. package/dist/index52.js +12 -12
  689. package/dist/index53.js +4 -4
  690. package/dist/index54.js +1 -1
  691. package/dist/index55.js +22 -22
  692. package/dist/index56.js +5 -5
  693. package/dist/index57.js +5 -5
  694. package/dist/index58.js +8 -8
  695. package/dist/index59.js +5 -5
  696. package/dist/index60.js +17 -17
  697. package/dist/index61.js +5 -5
  698. package/dist/index62.js +3 -3
  699. package/dist/index66.js +1 -1
  700. package/dist/index67.js +1 -1
  701. package/dist/index70.js +1 -1
  702. package/dist/index71.js +1 -1
  703. package/dist/index72.js +2 -6
  704. package/dist/index72.js.map +1 -1
  705. package/dist/index73.js +2 -8
  706. package/dist/index73.js.map +1 -1
  707. package/dist/index74.js +2 -6
  708. package/dist/index74.js.map +1 -1
  709. package/dist/index75.js +2 -2
  710. package/dist/index76.js +6 -2
  711. package/dist/index76.js.map +1 -1
  712. package/dist/index77.js +8 -2
  713. package/dist/index77.js.map +1 -1
  714. package/dist/index78.js +6 -2
  715. package/dist/index78.js.map +1 -1
  716. package/dist/index79.js +52 -6
  717. package/dist/index79.js.map +1 -1
  718. package/dist/index80.js +4 -68
  719. package/dist/index80.js.map +1 -1
  720. package/dist/index81.js +5 -2
  721. package/dist/index81.js.map +1 -1
  722. package/dist/index82.js +15 -363
  723. package/dist/index82.js.map +1 -1
  724. package/dist/index83.js +5 -261
  725. package/dist/index83.js.map +1 -1
  726. package/dist/index84.js +7 -60
  727. package/dist/index84.js.map +1 -1
  728. package/dist/index85.js +16 -46
  729. package/dist/index85.js.map +1 -1
  730. package/dist/index86.js +4 -169
  731. package/dist/index86.js.map +1 -1
  732. package/dist/index87.js +4 -109
  733. package/dist/index87.js.map +1 -1
  734. package/dist/index88.js +5 -24
  735. package/dist/index88.js.map +1 -1
  736. package/dist/index89.js +6 -8
  737. package/dist/index89.js.map +1 -1
  738. package/dist/index90.js +4 -4
  739. package/dist/index90.js.map +1 -1
  740. package/dist/index91.js +4 -5
  741. package/dist/index91.js.map +1 -1
  742. package/dist/index92.js +6 -4
  743. package/dist/index92.js.map +1 -1
  744. package/dist/index93.js +24 -466
  745. package/dist/index93.js.map +1 -1
  746. package/dist/index94.js +6 -185
  747. package/dist/index94.js.map +1 -1
  748. package/dist/index95.js +4 -107
  749. package/dist/index95.js.map +1 -1
  750. package/dist/index96.js +6 -262
  751. package/dist/index96.js.map +1 -1
  752. package/dist/index97.js +5 -9
  753. package/dist/index97.js.map +1 -1
  754. package/dist/index98.js +4 -42
  755. package/dist/index98.js.map +1 -1
  756. package/dist/index99.js +5 -4
  757. package/dist/index99.js.map +1 -1
  758. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js"],"sourcesContent":["import { getComputedStyle, getNodeName, isHTMLElement, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { activeElement, contains } from \"./element.js\";\nimport { isElementVisible } from \"./composite.js\";\nconst CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';\nfunction getParentElement(element) {\n const assignedSlot = element.assignedSlot;\n if (assignedSlot) {\n return assignedSlot;\n }\n if (element.parentElement) {\n return element.parentElement;\n }\n const rootNode = element.getRootNode();\n return isShadowRoot(rootNode) ? rootNode.host : null;\n}\nfunction getDetailsSummary(details) {\n for (const child of Array.from(details.children)) {\n if (getNodeName(child) === 'summary') {\n return child;\n }\n }\n return null;\n}\nfunction isWithinOpenDetailsSummary(element, details) {\n const summary = getDetailsSummary(details);\n return !!summary && (element === summary || contains(summary, element));\n}\nfunction isFocusableCandidate(element) {\n const nodeName = element ? getNodeName(element) : '';\n return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== 'summary' || element.parentElement != null && getNodeName(element.parentElement) === 'details' && getDetailsSummary(element.parentElement) === element) && (nodeName !== 'details' || getDetailsSummary(element) == null) && (nodeName !== 'input' || element.type !== 'hidden');\n}\nfunction isFocusableElement(element) {\n if (!isFocusableCandidate(element) || !element.isConnected || element.matches(':disabled')) {\n return false;\n }\n for (let current = element; current; current = getParentElement(current)) {\n const isAncestor = current !== element;\n const isSlot = getNodeName(current) === 'slot';\n if (current.hasAttribute('inert')) {\n return false;\n }\n if (isAncestor && getNodeName(current) === 'details' && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute('hidden') || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {\n return false;\n }\n }\n return true;\n}\nfunction isVisibleInTabbableTree(element, isAncestor) {\n const styles = getComputedStyle(element);\n if (!isAncestor) {\n return isElementVisible(element, styles);\n }\n return styles.display !== 'none';\n}\nfunction getTabIndex(element) {\n const tabIndex = element.tabIndex;\n if (tabIndex < 0) {\n const nodeName = getNodeName(element);\n if (nodeName === 'details' || nodeName === 'audio' || nodeName === 'video' || isHTMLElement(element) && element.isContentEditable) {\n return 0;\n }\n }\n return tabIndex;\n}\nfunction getNamedRadioInput(element) {\n if (getNodeName(element) !== 'input') {\n return null;\n }\n const input = element;\n return input.type === 'radio' && input.name !== '' ? input : null;\n}\nfunction isTabbableRadio(element, candidates) {\n const input = getNamedRadioInput(element);\n if (!input) {\n return true;\n }\n const checkedRadio = candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form && radio.checked;\n });\n if (checkedRadio) {\n return checkedRadio === input;\n }\n return candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form;\n }) === input;\n}\nfunction getComposedChildren(container) {\n if (isHTMLElement(container) && getNodeName(container) === 'slot') {\n const assignedElements = container.assignedElements({\n flatten: true\n });\n if (assignedElements.length > 0) {\n return assignedElements;\n }\n }\n if (isHTMLElement(container) && container.shadowRoot) {\n return Array.from(container.shadowRoot.children);\n }\n return Array.from(container.children);\n}\nfunction appendCandidates(container, list) {\n getComposedChildren(container).forEach(child => {\n if (isFocusableCandidate(child)) {\n list.push(child);\n }\n appendCandidates(child, list);\n });\n}\nfunction appendMatchingElements(container, selector, list) {\n getComposedChildren(container).forEach(child => {\n if (isHTMLElement(child) && child.matches(selector)) {\n list.push(child);\n }\n appendMatchingElements(child, selector, list);\n });\n}\nexport function isTabbable(element) {\n return isFocusableElement(element) && getTabIndex(element) >= 0;\n}\nexport function focusable(container) {\n const candidates = [];\n appendCandidates(container, candidates);\n return candidates.filter(isFocusableElement);\n}\nexport function tabbable(container) {\n const candidates = focusable(container);\n return candidates.filter(element => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));\n}\nfunction getTabbableIn(container, dir) {\n const list = tabbable(container);\n const len = list.length;\n if (len === 0) {\n return undefined;\n }\n const active = activeElement(ownerDocument(container));\n const index = list.indexOf(active);\n // eslint-disable-next-line no-nested-ternary\n const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n return list[nextIndex];\n}\nexport function getNextTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;\n}\nexport function getPreviousTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;\n}\nfunction getTabbableNearElement(referenceElement, dir) {\n if (!referenceElement) {\n return null;\n }\n const list = tabbable(ownerDocument(referenceElement).body);\n const elementCount = list.length;\n if (elementCount === 0) {\n return null;\n }\n const index = list.indexOf(referenceElement);\n if (index === -1) {\n return null;\n }\n const nextIndex = (index + dir + elementCount) % elementCount;\n return list[nextIndex];\n}\nexport function getTabbableAfterElement(referenceElement) {\n return getTabbableNearElement(referenceElement, 1);\n}\nexport function getTabbableBeforeElement(referenceElement) {\n return getTabbableNearElement(referenceElement, -1);\n}\nexport function isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nexport function disableFocusInside(container) {\n const tabbableElements = tabbable(container);\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nexport function enableFocusInside(container) {\n const elements = [];\n appendMatchingElements(container, '[data-tabindex]', elements);\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}"],"names":["CANDIDATE_SELECTOR","getParentElement","element","assignedSlot","rootNode","isShadowRoot","getDetailsSummary","details","child","getNodeName","isWithinOpenDetailsSummary","summary","contains","isFocusableCandidate","nodeName","isFocusableElement","current","isAncestor","isSlot","isVisibleInTabbableTree","styles","getComputedStyle","isElementVisible","getTabIndex","tabIndex","isHTMLElement","getNamedRadioInput","input","isTabbableRadio","candidates","checkedRadio","candidate","radio","getComposedChildren","container","assignedElements","appendCandidates","list","appendMatchingElements","selector","isTabbable","focusable","tabbable","getTabbableIn","dir","len","active","activeElement","ownerDocument","index","nextIndex","getNextTabbable","referenceElement","getPreviousTabbable","isOutsideEvent","event","containerElement","relatedTarget","disableFocusInside","enableFocusInside","elements","tabindex"],"mappings":";;;;AAIA,MAAMA,IAAqB;AAC3B,SAASC,EAAiBC,GAAS;AACjC,QAAMC,IAAeD,EAAQ;AAC7B,MAAIC;AACF,WAAOA;AAET,MAAID,EAAQ;AACV,WAAOA,EAAQ;AAEjB,QAAME,IAAWF,EAAQ,YAAW;AACpC,SAAOG,EAAaD,CAAQ,IAAIA,EAAS,OAAO;AAClD;AACA,SAASE,EAAkBC,GAAS;AAClC,aAAWC,KAAS,MAAM,KAAKD,EAAQ,QAAQ;AAC7C,QAAIE,EAAYD,CAAK,MAAM;AACzB,aAAOA;AAGX,SAAO;AACT;AACA,SAASE,EAA2BR,GAASK,GAAS;AACpD,QAAMI,IAAUL,EAAkBC,CAAO;AACzC,SAAO,CAAC,CAACI,MAAYT,MAAYS,KAAWC,EAASD,GAAST,CAAO;AACvE;AACA,SAASW,EAAqBX,GAAS;AACrC,QAAMY,IAAWZ,IAAUO,EAAYP,CAAO,IAAI;AAClD,SAAOA,KAAW,QAAQA,EAAQ,QAAQF,CAAkB,MAAMc,MAAa,aA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B,EAAAtB,EAAuBJ,GAAW,mBAAmB0B,CAAQ,GAC7DA,EAAS,QAAQ,CAAA1D,MAAW;AAC1B,UAAM2D,IAAW3D,EAAQ,QAAQ;AACjC,WAAOA,EAAQ,QAAQ,UACnB2D,IACF3D,EAAQ,aAAa,YAAY2D,CAAQ,IAEzC3D,EAAQ,gBAAgB,UAAU;AAAA,EAEtC,CAAC;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index363.js","sources":["../../../node_modules/@base-ui/react/esm/internals/serializeValue.js"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"names":["serializeValue","value"],"mappings":"AAAO,SAASA,EAAeC,GAAO;AACpC,MAAIA,KAAS;AACX,WAAO;AAET,MAAI,OAAOA,KAAU;AACnB,WAAOA;AAET,MAAI;AACF,WAAO,KAAK,UAAUA,CAAK;AAAA,EAC7B,QAAQ;AACN,WAAO,OAAOA,CAAK;AAAA,EACrB;AACF;","x_google_ignoreList":[0]}
package/dist/index364.js CHANGED
@@ -1,16 +1,20 @@
1
- function c(r, d, e = !0) {
2
- return r.filter((t) => t.parentId === d).flatMap((t) => [...!e || t.context?.open ? [t] : [], ...c(r, t.id, e)]);
3
- }
4
- function o(r, d) {
5
- let e = [], n = r.find((t) => t.id === d)?.parentId;
6
- for (; n; ) {
7
- const t = r.find((i) => i.id === n);
8
- n = t?.parentId, t && (e = e.concat(t));
9
- }
10
- return e;
1
+ import * as e from "react";
2
+ function t(i) {
3
+ const o = e.useRef(""), n = e.useCallback((r) => {
4
+ r.defaultPrevented || (o.current = r.pointerType, i(r, r.pointerType));
5
+ }, [i]);
6
+ return {
7
+ onClick: e.useCallback((r) => {
8
+ if (r.detail === 0) {
9
+ i(r, "keyboard");
10
+ return;
11
+ }
12
+ "pointerType" in r ? i(r, r.pointerType) : i(r, o.current), o.current = "";
13
+ }, [i]),
14
+ onPointerDown: n
15
+ };
11
16
  }
12
17
  export {
13
- o as getNodeAncestors,
14
- c as getNodeChildren
18
+ t as useEnhancedClickHandler
15
19
  };
16
20
  //# sourceMappingURL=index364.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-loop-func */\n\nexport function getNodeChildren(nodes, id, onlyOpenChildren = true) {\n const directChildren = nodes.filter(node => node.parentId === id);\n return directChildren.flatMap(child => [...(!onlyOpenChildren || child.context?.open ? [child] : []), ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);\n}\nexport function getDeepestNode(nodes, id) {\n let deepestNodeId;\n let maxDepth = -1;\n function findDeepest(nodeId, depth) {\n if (depth > maxDepth) {\n deepestNodeId = nodeId;\n maxDepth = depth;\n }\n const children = getNodeChildren(nodes, nodeId);\n children.forEach(child => {\n findDeepest(child.id, depth + 1);\n });\n }\n findDeepest(id, 0);\n return nodes.find(node => node.id === deepestNodeId);\n}\nexport function getNodeAncestors(nodes, id) {\n let allAncestors = [];\n let currentParentId = nodes.find(node => node.id === id)?.parentId;\n while (currentParentId) {\n const currentNode = nodes.find(node => node.id === currentParentId);\n currentParentId = currentNode?.parentId;\n if (currentNode) {\n allAncestors = allAncestors.concat(currentNode);\n }\n }\n return allAncestors;\n}"],"names":["getNodeChildren","nodes","id","onlyOpenChildren","node","child","getNodeAncestors","allAncestors","currentParentId","currentNode"],"mappings":"AAEO,SAASA,EAAgBC,GAAOC,GAAIC,IAAmB,IAAM;AAElE,SADuBF,EAAM,OAAO,CAAAG,MAAQA,EAAK,aAAaF,CAAE,EAC1C,QAAQ,CAAAG,MAAS,CAAC,GAAI,CAACF,KAAoBE,EAAM,SAAS,OAAO,CAACA,CAAK,IAAI,CAAA,GAAK,GAAGL,EAAgBC,GAAOI,EAAM,IAAIF,CAAgB,CAAC,CAAC;AAC9J;AAiBO,SAASG,EAAiBL,GAAOC,GAAI;AAC1C,MAAIK,IAAe,CAAA,GACfC,IAAkBP,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOF,CAAE,GAAG;AAC1D,SAAOM,KAAiB;AACtB,UAAMC,IAAcR,EAAM,KAAK,CAAAG,MAAQA,EAAK,OAAOI,CAAe;AAClE,IAAAA,IAAkBC,GAAa,UAC3BA,MACFF,IAAeA,EAAa,OAAOE,CAAW;AAAA,EAElD;AACA,SAAOF;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index364.js","sources":["../../../node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}"],"names":["useEnhancedClickHandler","handler","lastClickInteractionTypeRef","React","handlePointerDown","event"],"mappings":";AAUO,SAASA,EAAwBC,GAAS;AAC/C,QAAMC,IAA8BC,EAAM,OAAO,EAAE,GAC7CC,IAAoBD,EAAM,YAAY,CAAAE,MAAS;AACnD,IAAIA,EAAM,qBAGVH,EAA4B,UAAUG,EAAM,aAC5CJ,EAAQI,GAAOA,EAAM,WAAW;AAAA,EAClC,GAAG,CAACJ,CAAO,CAAC;AAeZ,SAAO;AAAA,IACL,SAfkBE,EAAM,YAAY,CAAAE,MAAS;AAE7C,UAAIA,EAAM,WAAW,GAAG;AACtB,QAAAJ,EAAQI,GAAO,UAAU;AACzB;AAAA,MACF;AACA,MAAI,iBAAiBA,IAEnBJ,EAAQI,GAAOA,EAAM,WAAW,IAEhCJ,EAAQI,GAAOH,EAA4B,OAAO,GAEpDA,EAA4B,UAAU;AAAA,IACxC,GAAG,CAACD,CAAO,CAAC;AAAA,IAGV,eAAeG;AAAA,EACnB;AACA;","x_google_ignoreList":[0]}
package/dist/index365.js CHANGED
@@ -1,230 +1,9 @@
1
- import { floor as _ } from "./index285.js";
2
- import { getComputedStyle as K } from "./index245.js";
3
- import { stopEvent as b } from "./index362.js";
4
- import { ARROW_UP as Q, ARROW_DOWN as X, ARROW_LEFT as z, ARROW_RIGHT as B } from "./index374.js";
5
- function W(t, r, o) {
6
- return Math.floor(t / r) !== o;
7
- }
8
- function j(t, r) {
9
- return r < 0 || r >= t.length;
10
- }
11
- function x(t, r) {
12
- return C(t.current, {
13
- disabledIndices: r
14
- });
15
- }
16
- function v(t, r) {
17
- return C(t.current, {
18
- decrement: !0,
19
- startingIndex: t.current.length,
20
- disabledIndices: r
21
- });
22
- }
23
- function C(t, {
24
- startingIndex: r = -1,
25
- decrement: o = !1,
26
- disabledIndices: a,
27
- amount: n = 1
28
- } = {}) {
29
- let c = r;
30
- do
31
- c += o ? -n : n;
32
- while (c >= 0 && c <= t.length - 1 && H(t, c, a));
33
- return c;
34
- }
35
- function tt(t, {
36
- event: r,
37
- orientation: o,
38
- loopFocus: a,
39
- onLoop: n,
40
- rtl: c,
41
- cols: e,
42
- disabledIndices: w,
43
- minIndex: G,
44
- maxIndex: g,
45
- prevIndex: i,
46
- stopEvent: D = !1
47
- }) {
48
- let f = i, E;
49
- if (r.key === Q ? E = "up" : r.key === X && (E = "down"), E) {
50
- const l = [], V = [];
51
- let P = !1, T = 0;
52
- {
53
- let R = null, u = -1;
54
- t.forEach((y, M) => {
55
- if (y == null)
56
- return;
57
- T += 1;
58
- const s = y.closest('[role="row"]');
59
- s && (P = !0), (s !== R || u === -1) && (R = s, u += 1, l[u] = []), l[u].push(M), V[M] = u;
60
- });
61
- }
62
- let N = !1, S = 0;
63
- if (P)
64
- for (const R of l) {
65
- const u = R.length;
66
- u > S && (S = u), u !== e && (N = !0);
67
- }
68
- const U = N && T < t.length, h = S || e, $ = (R) => {
69
- if (!N || i === -1)
70
- return;
71
- const u = V[i];
72
- if (u == null)
73
- return;
74
- const y = l[u].indexOf(i), M = R === "up" ? -1 : 1;
75
- for (let s = u + M, m = 0; m < l.length; m += 1, s += M) {
76
- if (s < 0 || s >= l.length) {
77
- if (!a || U)
78
- return;
79
- if (s = s < 0 ? l.length - 1 : 0, n) {
80
- const k = Math.min(y, l[s].length - 1), O = l[s][k] ?? l[s][0], J = n(r, i, O);
81
- s = V[J] ?? s;
82
- }
83
- }
84
- const A = l[s];
85
- for (let k = Math.min(y, A.length - 1); k >= 0; k -= 1) {
86
- const O = A[k];
87
- if (!H(t, O, w))
88
- return O;
89
- }
90
- }
91
- }, q = (R) => {
92
- if (!U || i === -1)
93
- return;
94
- const u = i % h, y = R === "up" ? -h : h, M = g - g % h, s = _(g / h) + 1;
95
- for (let m = i - u + y, A = 0; A < s; A += 1, m += y) {
96
- if (m < 0 || m > g) {
97
- if (!a)
98
- return;
99
- m = m < 0 ? M : 0;
100
- }
101
- const k = Math.min(m + h - 1, g);
102
- for (let O = Math.min(m + u, k); O >= m; O -= 1)
103
- if (!H(t, O, w))
104
- return O;
105
- }
106
- };
107
- D && b(r);
108
- const d = $(E) ?? q(E);
109
- if (d !== void 0)
110
- f = d;
111
- else if (i === -1)
112
- f = E === "up" ? g : G;
113
- else if (f = C(t, {
114
- startingIndex: i,
115
- amount: h,
116
- decrement: E === "up",
117
- disabledIndices: w
118
- }), a) {
119
- if (E === "up" && (i - h < G || f < 0)) {
120
- const R = i % h, u = g % h, y = g - (u - R);
121
- u === R ? f = g : f = u > R ? y : y - h, n && (f = n(r, i, f));
122
- }
123
- E === "down" && i + h > g && (f = C(t, {
124
- startingIndex: i % h - h,
125
- amount: h,
126
- disabledIndices: w
127
- }), n && (f = n(r, i, f)));
128
- }
129
- j(t, f) && (f = i);
130
- }
131
- if (o === "both") {
132
- const l = _(i / e);
133
- r.key === (c ? z : B) && (D && b(r), i % e !== e - 1 ? (f = C(t, {
134
- startingIndex: i,
135
- disabledIndices: w
136
- }), a && W(f, e, l) && (f = C(t, {
137
- startingIndex: i - i % e - 1,
138
- disabledIndices: w
139
- }), n && (f = n(r, i, f)))) : a && (f = C(t, {
140
- startingIndex: i - i % e - 1,
141
- disabledIndices: w
142
- }), n && (f = n(r, i, f))), W(f, e, l) && (f = i)), r.key === (c ? B : z) && (D && b(r), i % e !== 0 ? (f = C(t, {
143
- startingIndex: i,
144
- decrement: !0,
145
- disabledIndices: w
146
- }), a && W(f, e, l) && (f = C(t, {
147
- startingIndex: i + (e - i % e),
148
- decrement: !0,
149
- disabledIndices: w
150
- }), n && (f = n(r, i, f)))) : a && (f = C(t, {
151
- startingIndex: i + (e - i % e),
152
- decrement: !0,
153
- disabledIndices: w
154
- }), n && (f = n(r, i, f))), W(f, e, l) && (f = i));
155
- const V = _(g / e) === l;
156
- j(t, f) && (a && V ? (f = r.key === (c ? B : z) ? g : C(t, {
157
- startingIndex: i - i % e - 1,
158
- disabledIndices: w
159
- }), n && (f = n(r, i, f))) : f = i);
160
- }
161
- return f;
162
- }
163
- function it(t, r, o) {
164
- const a = [];
165
- let n = 0;
166
- return t.forEach(({
167
- width: c,
168
- height: e
169
- }, w) => {
170
- if (c > r && process.env.NODE_ENV !== "production")
171
- throw new Error(`[Floating UI]: Invalid grid - item width at index ${w} is greater than grid columns`);
172
- let G = !1;
173
- for (; !G; ) {
174
- const g = [];
175
- for (let i = 0; i < c; i += 1)
176
- for (let D = 0; D < e; D += 1)
177
- g.push(n + i + D * r);
178
- n % r + c <= r && g.every((i) => a[i] == null) ? (g.forEach((i) => {
179
- a[i] = w;
180
- }), G = !0) : n += 1;
181
- }
182
- }), [...a];
183
- }
184
- function rt(t, r, o, a, n) {
185
- if (t === -1)
186
- return -1;
187
- const c = o.indexOf(t), e = r[t];
188
- switch (n) {
189
- case "tl":
190
- return c;
191
- case "tr":
192
- return e ? c + e.width - 1 : c;
193
- case "bl":
194
- return e ? c + (e.height - 1) * a : c;
195
- case "br":
196
- return o.lastIndexOf(t);
197
- default:
198
- return -1;
199
- }
200
- }
201
- function ft(t, r) {
202
- return r.flatMap((o, a) => t.includes(o) ? [a] : []);
203
- }
204
- function H(t, r, o) {
205
- if (typeof o == "function" ? o(r) : o?.includes(r) ?? !1)
206
- return !0;
207
- const n = t[r];
208
- return n ? Z(n) ? !o && (n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") : !0 : !1;
209
- }
210
- function Y(t) {
211
- return t.visibility === "hidden" || t.visibility === "collapse";
212
- }
213
- function Z(t, r = t ? K(t) : null) {
214
- return !t || !t.isConnected || !r || Y(r) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : r.display !== "none" && r.display !== "contents";
1
+ import * as o from "react";
2
+ const e = [];
3
+ function n(t) {
4
+ o.useEffect(t, e);
215
5
  }
216
6
  export {
217
- it as createGridCellMap,
218
- C as findNonDisabledListIndex,
219
- rt as getGridCellIndexOfCorner,
220
- ft as getGridCellIndices,
221
- tt as getGridNavigatedIndex,
222
- v as getMaxListIndex,
223
- x as getMinListIndex,
224
- W as isDifferentGridRow,
225
- Z as isElementVisible,
226
- Y as isHiddenByStyles,
227
- j as isIndexOutOfListBounds,
228
- H as isListIndexDisabled
7
+ n as useOnMount
229
8
  };
230
9
  //# sourceMappingURL=index365.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index365.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js"],"sourcesContent":["import { floor } from '@floating-ui/utils';\nimport { getComputedStyle } from '@floating-ui/utils/dom';\nimport { stopEvent } from \"./event.js\";\nimport { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from \"./constants.js\";\nexport function isDifferentGridRow(index, cols, prevRow) {\n return Math.floor(index / cols) !== prevRow;\n}\nexport function isIndexOutOfListBounds(list, index) {\n return index < 0 || index >= list.length;\n}\nexport function getMinListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n disabledIndices\n });\n}\nexport function getMaxListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n decrement: true,\n startingIndex: listRef.current.length,\n disabledIndices\n });\n}\nexport function findNonDisabledListIndex(list, {\n startingIndex = -1,\n decrement = false,\n disabledIndices,\n amount = 1\n} = {}) {\n let index = startingIndex;\n do {\n index += decrement ? -amount : amount;\n } while (index >= 0 && index <= list.length - 1 && isListIndexDisabled(list, index, disabledIndices));\n return index;\n}\nexport function getGridNavigatedIndex(list, {\n event,\n orientation,\n loopFocus,\n onLoop,\n rtl,\n cols,\n disabledIndices,\n minIndex,\n maxIndex,\n prevIndex,\n stopEvent: stop = false\n}) {\n let nextIndex = prevIndex;\n let verticalDirection;\n if (event.key === ARROW_UP) {\n verticalDirection = 'up';\n } else if (event.key === ARROW_DOWN) {\n verticalDirection = 'down';\n }\n if (verticalDirection) {\n // -------------------------------------------------------------------------\n // Detect row structure only when handling vertical navigation. This keeps\n // the non-vertical key paths free from row inference work.\n // -------------------------------------------------------------------------\n const rows = [];\n const rowIndexMap = [];\n let hasRoleRow = false;\n let visibleItemCount = 0;\n {\n let currentRowEl = null;\n let currentRowIndex = -1;\n list.forEach((el, idx) => {\n if (el == null) {\n return;\n }\n visibleItemCount += 1;\n const rowEl = el.closest('[role=\"row\"]');\n if (rowEl) {\n hasRoleRow = true;\n }\n if (rowEl !== currentRowEl || currentRowIndex === -1) {\n currentRowEl = rowEl;\n currentRowIndex += 1;\n rows[currentRowIndex] = [];\n }\n rows[currentRowIndex].push(idx);\n rowIndexMap[idx] = currentRowIndex;\n });\n }\n let hasDomRows = false;\n let inferredDomCols = 0;\n if (hasRoleRow) {\n for (const row of rows) {\n const rowLength = row.length;\n if (rowLength > inferredDomCols) {\n inferredDomCols = rowLength;\n }\n if (rowLength !== cols) {\n hasDomRows = true;\n }\n }\n }\n const hasVirtualizedGaps = hasDomRows && visibleItemCount < list.length;\n const verticalCols = inferredDomCols || cols;\n const navigateVertically = direction => {\n if (!hasDomRows || prevIndex === -1) {\n return undefined;\n }\n const currentRow = rowIndexMap[prevIndex];\n if (currentRow == null) {\n return undefined;\n }\n const colInRow = rows[currentRow].indexOf(prevIndex);\n const step = direction === 'up' ? -1 : 1;\n for (let nextRow = currentRow + step, i = 0; i < rows.length; i += 1, nextRow += step) {\n if (nextRow < 0 || nextRow >= rows.length) {\n if (!loopFocus || hasVirtualizedGaps) {\n return undefined;\n }\n nextRow = nextRow < 0 ? rows.length - 1 : 0;\n if (onLoop) {\n const clampedCol = Math.min(colInRow, rows[nextRow].length - 1);\n const targetItemIndex = rows[nextRow][clampedCol] ?? rows[nextRow][0];\n const returnedItemIndex = onLoop(event, prevIndex, targetItemIndex);\n nextRow = rowIndexMap[returnedItemIndex] ?? nextRow;\n }\n }\n const targetRow = rows[nextRow];\n for (let col = Math.min(colInRow, targetRow.length - 1); col >= 0; col -= 1) {\n const candidate = targetRow[col];\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n const navigateVerticallyWithInferredRows = direction => {\n if (!hasVirtualizedGaps || prevIndex === -1) {\n return undefined;\n }\n const colInRow = prevIndex % verticalCols;\n const rowStep = direction === 'up' ? -verticalCols : verticalCols;\n const lastRowStart = maxIndex - maxIndex % verticalCols;\n const rowCount = floor(maxIndex / verticalCols) + 1;\n for (let rowStart = prevIndex - colInRow + rowStep, i = 0; i < rowCount; i += 1, rowStart += rowStep) {\n if (rowStart < 0 || rowStart > maxIndex) {\n if (!loopFocus) {\n return undefined;\n }\n rowStart = rowStart < 0 ? lastRowStart : 0;\n }\n const rowEnd = Math.min(rowStart + verticalCols - 1, maxIndex);\n for (let candidate = Math.min(rowStart + colInRow, rowEnd); candidate >= rowStart; candidate -= 1) {\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n if (stop) {\n stopEvent(event);\n }\n const verticalCandidate = navigateVertically(verticalDirection) ?? navigateVerticallyWithInferredRows(verticalDirection);\n if (verticalCandidate !== undefined) {\n nextIndex = verticalCandidate;\n } else if (prevIndex === -1) {\n nextIndex = verticalDirection === 'up' ? maxIndex : minIndex;\n } else {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n amount: verticalCols,\n decrement: verticalDirection === 'up',\n disabledIndices\n });\n if (loopFocus) {\n if (verticalDirection === 'up' && (prevIndex - verticalCols < minIndex || nextIndex < 0)) {\n const col = prevIndex % verticalCols;\n const maxCol = maxIndex % verticalCols;\n const offset = maxIndex - (maxCol - col);\n if (maxCol === col) {\n nextIndex = maxIndex;\n } else {\n nextIndex = maxCol > col ? offset : offset - verticalCols;\n }\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (verticalDirection === 'down' && prevIndex + verticalCols > maxIndex) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex % verticalCols - verticalCols,\n amount: verticalCols,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n }\n }\n if (isIndexOutOfListBounds(list, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n\n // Remains on the same row/column.\n if (orientation === 'both') {\n const prevRow = floor(prevIndex / cols);\n if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== cols - 1) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== 0) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n decrement: true,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n const lastRow = floor(maxIndex / cols) === prevRow;\n if (isIndexOutOfListBounds(list, nextIndex)) {\n if (loopFocus && lastRow) {\n nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n } else {\n nextIndex = prevIndex;\n }\n }\n }\n return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nexport function createGridCellMap(sizes, cols, dense) {\n const cellMap = [];\n let startIndex = 0;\n sizes.forEach(({\n width,\n height\n }, index) => {\n if (width > cols) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(`[Floating UI]: Invalid grid - item width at index ${index} is greater than grid columns`);\n }\n }\n let itemPlaced = false;\n if (dense) {\n startIndex = 0;\n }\n while (!itemPlaced) {\n const targetCells = [];\n for (let i = 0; i < width; i += 1) {\n for (let j = 0; j < height; j += 1) {\n targetCells.push(startIndex + i + j * cols);\n }\n }\n if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n targetCells.forEach(cell => {\n cellMap[cell] = index;\n });\n itemPlaced = true;\n } else {\n startIndex += 1;\n }\n }\n });\n\n // convert into a non-sparse array\n return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nexport function getGridCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n if (index === -1) {\n return -1;\n }\n const firstCellIndex = cellMap.indexOf(index);\n const sizeItem = sizes[index];\n switch (corner) {\n case 'tl':\n return firstCellIndex;\n case 'tr':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + sizeItem.width - 1;\n case 'bl':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + (sizeItem.height - 1) * cols;\n case 'br':\n return cellMap.lastIndexOf(index);\n default:\n return -1;\n }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nexport function getGridCellIndices(indices, cellMap) {\n return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\nexport function isListIndexDisabled(list, index, disabledIndices) {\n const isExplicitlyDisabled = typeof disabledIndices === 'function' ? disabledIndices(index) : disabledIndices?.includes(index) ?? false;\n if (isExplicitlyDisabled) {\n return true;\n }\n const element = list[index];\n if (!element) {\n return false;\n }\n if (!isElementVisible(element)) {\n return true;\n }\n return !disabledIndices && (element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true');\n}\nexport function isHiddenByStyles(styles) {\n return styles.visibility === 'hidden' || styles.visibility === 'collapse';\n}\nexport function isElementVisible(element, styles = element ? getComputedStyle(element) : null) {\n if (!element || !element.isConnected || !styles || isHiddenByStyles(styles)) {\n return false;\n }\n if (typeof element.checkVisibility === 'function') {\n return element.checkVisibility();\n }\n return styles.display !== 'none' && styles.display !== 'contents';\n}"],"names":["isDifferentGridRow","index","cols","prevRow","isIndexOutOfListBounds","list","getMinListIndex","listRef","disabledIndices","findNonDisabledListIndex","getMaxListIndex","startingIndex","decrement","amount","isListIndexDisabled","getGridNavigatedIndex","event","orientation","loopFocus","onLoop","rtl","minIndex","maxIndex","prevIndex","stop","nextIndex","verticalDirection","ARROW_UP","ARROW_DOWN","rows","rowIndexMap","hasRoleRow","visibleItemCount","currentRowEl","currentRowIndex","el","idx","rowEl","hasDomRows","inferredDomCols","row","rowLength","hasVirtualizedGaps","verticalCols","navigateVertically","direction","currentRow","colInRow","step","nextRow","i","clampedCol","targetItemIndex","returnedItemIndex","targetRow","col","candidate","navigateVerticallyWithInferredRows","rowStep","lastRowStart","rowCount","floor","rowStart","rowEnd","stopEvent","verticalCandidate","maxCol","offset","ARROW_LEFT","ARROW_RIGHT","lastRow","createGridCellMap","sizes","dense","cellMap","startIndex","width","height","itemPlaced","targetCells","j","cell","getGridCellIndexOfCorner","corner","firstCellIndex","sizeItem","getGridCellIndices","indices","cellIndex","element","isElementVisible","isHiddenByStyles","styles","getComputedStyle"],"mappings":";;;;AAIO,SAASA,EAAmBC,GAAOC,GAAMC,GAAS;AACvD,SAAO,KAAK,MAAMF,IAAQC,CAAI,MAAMC;AACtC;AACO,SAASC,EAAuBC,GAAMJ,GAAO;AAClD,SAAOA,IAAQ,KAAKA,KAASI,EAAK;AACpC;AACO,SAASC,EAAgBC,GAASC,GAAiB;AACxD,SAAOC,EAAyBF,EAAQ,SAAS;AAAA,IAC/C,iBAAAC;AAAA,EACJ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IAAUpF,EAAKJ,CAAK;AAC1B,SAAKwF,IAGAC,EAAiBD,CAAO,IAGtB,CAACjF,MAAoBiF,EAAQ,aAAa,UAAU,KAAKA,EAAQ,aAAa,eAAe,MAAM,UAFjG,KAHA;AAMX;AACO,SAASE,EAAiBC,GAAQ;AACvC,SAAOA,EAAO,eAAe,YAAYA,EAAO,eAAe;AACjE;AACO,SAASF,EAAiBD,GAASG,IAASH,IAAUI,EAAiBJ,CAAO,IAAI,MAAM;AAC7F,SAAI,CAACA,KAAW,CAACA,EAAQ,eAAe,CAACG,KAAUD,EAAiBC,CAAM,IACjE,KAEL,OAAOH,EAAQ,mBAAoB,aAC9BA,EAAQ,gBAAe,IAEzBG,EAAO,YAAY,UAAUA,EAAO,YAAY;AACzD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index365.js","sources":["../../../node_modules/@base-ui/utils/esm/useOnMount.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}"],"names":["EMPTY","useOnMount","fn","React"],"mappings":";AAGA,MAAMA,IAAQ,CAAA;AAKP,SAASC,EAAWC,GAAI;AAG7B,EAAAC,EAAM,UAAUD,GAAIF,CAAK;AAE3B;","x_google_ignoreList":[0]}
package/dist/index366.js CHANGED
@@ -1,7 +1,24 @@
1
- function e(t) {
2
- return `data-base-ui-${t}`;
1
+ import * as e from "react";
2
+ const t = /* @__PURE__ */ e.createContext({
3
+ register: () => {
4
+ },
5
+ unregister: () => {
6
+ },
7
+ subscribeMapChange: () => () => {
8
+ },
9
+ elementsRef: {
10
+ current: []
11
+ },
12
+ nextIndexRef: {
13
+ current: 0
14
+ }
15
+ });
16
+ process.env.NODE_ENV !== "production" && (t.displayName = "CompositeListContext");
17
+ function n() {
18
+ return e.useContext(t);
3
19
  }
4
20
  export {
5
- e as createAttribute
21
+ t as CompositeListContext,
22
+ n as useCompositeListContext
6
23
  };
7
24
  //# sourceMappingURL=index366.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index366.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js"],"sourcesContent":["export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}"],"names":["createAttribute","name"],"mappings":"AAAO,SAASA,EAAgBC,GAAM;AACpC,SAAO,gBAAgBA,CAAI;AAC7B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index366.js","sources":["../../../node_modules/@base-ui/react/esm/internals/composite/list/CompositeListContext.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport const CompositeListContext = /*#__PURE__*/React.createContext({\n register: () => {},\n unregister: () => {},\n subscribeMapChange: () => {\n return () => {};\n },\n elementsRef: {\n current: []\n },\n nextIndexRef: {\n current: 0\n }\n});\nif (process.env.NODE_ENV !== \"production\") CompositeListContext.displayName = \"CompositeListContext\";\nexport function useCompositeListContext() {\n return React.useContext(CompositeListContext);\n}"],"names":["CompositeListContext","React","useCompositeListContext"],"mappings":";AAGY,MAACA,IAAoC,gBAAAC,EAAM,cAAc;AAAA,EACnE,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,YAAY,MAAM;AAAA,EAAC;AAAA,EACnB,oBAAoB,MACX,MAAM;AAAA,EAAC;AAAA,EAEhB,aAAa;AAAA,IACX,SAAS,CAAA;AAAA,EACb;AAAA,EACE,cAAc;AAAA,IACZ,SAAS;AAAA,EACb;AACA,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,IAA0B;AACxC,SAAOD,EAAM,WAAWD,CAAoB;AAC9C;","x_google_ignoreList":[0]}
package/dist/index367.js CHANGED
@@ -1,23 +1,48 @@
1
- import { NOOP as u } from "./index225.js";
2
- let e = 0;
3
- function s(c, t = {}) {
4
- const {
5
- preventScroll: o = !1,
6
- cancelPrevious: a = !0,
7
- sync: i = !1
8
- } = t;
9
- a && cancelAnimationFrame(e);
10
- const r = () => c?.focus({
11
- preventScroll: o
12
- });
13
- if (i)
14
- return r(), u;
15
- const n = requestAnimationFrame(r);
16
- return e = n, () => {
17
- e === n && (cancelAnimationFrame(n), e = 0);
18
- };
19
- }
1
+ import { evaluate as W, getPaddingObject as Y, getAlignmentAxis as k, getAlignment as q, getAxisLength as B, clamp as C } from "./index299.js";
2
+ const F = (s) => ({
3
+ name: "arrow",
4
+ options: s,
5
+ async fn(i) {
6
+ const {
7
+ x: y,
8
+ y: j,
9
+ placement: x,
10
+ rects: n,
11
+ platform: f,
12
+ elements: l,
13
+ middlewareData: M
14
+ } = i, {
15
+ element: g,
16
+ padding: v = 0,
17
+ offsetParent: z = "real"
18
+ } = W(s, i) || {};
19
+ if (g == null)
20
+ return {};
21
+ const h = Y(v), m = {
22
+ x: y,
23
+ y: j
24
+ }, t = k(x), e = B(t), r = await f.getDimensions(g), d = t === "y", E = d ? "top" : "left", H = d ? "bottom" : "right", A = d ? "clientHeight" : "clientWidth", L = n.reference[e] + n.reference[t] - m[t] - n.floating[e], R = m[t] - n.reference[t], S = z === "real" ? await f.getOffsetParent?.(g) : l.floating;
25
+ let a = l.floating[A] || n.floating[e];
26
+ (!a || !await f.isElement?.(S)) && (a = l.floating[A] || n.floating[e]);
27
+ const T = L / 2 - R / 2, O = a / 2 - r[e] / 2 - 1, u = Math.min(h[E], O), b = Math.min(h[H], O), c = u, D = a - r[e] - b, o = a / 2 - r[e] / 2 + T, P = C(c, o, D), p = !M.arrow && q(x) != null && o !== P && n.reference[e] / 2 - (o < c ? u : b) - r[e] / 2 < 0, w = p ? o < c ? o - c : o - D : 0;
28
+ return {
29
+ [t]: m[t] + w,
30
+ data: {
31
+ [t]: P,
32
+ centerOffset: o - P - w,
33
+ ...p && {
34
+ alignmentOffset: w
35
+ }
36
+ },
37
+ reset: p
38
+ };
39
+ }
40
+ }), I = (s, i) => ({
41
+ ...F(s),
42
+ options: [s, i]
43
+ });
20
44
  export {
21
- s as enqueueFocus
45
+ I as arrow,
46
+ F as baseArrow
22
47
  };
23
48
  //# sourceMappingURL=index367.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index367.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js"],"sourcesContent":["import { NOOP } from '@base-ui/utils/empty';\nlet rafId = 0;\nexport function enqueueFocus(el, options = {}) {\n const {\n preventScroll = false,\n cancelPrevious = true,\n sync = false\n } = options;\n if (cancelPrevious) {\n cancelAnimationFrame(rafId);\n }\n const exec = () => el?.focus({\n preventScroll\n });\n if (sync) {\n exec();\n return NOOP;\n }\n const currentRafId = requestAnimationFrame(exec);\n rafId = currentRafId;\n return () => {\n if (rafId === currentRafId) {\n cancelAnimationFrame(currentRafId);\n rafId = 0;\n }\n };\n}"],"names":["rafId","enqueueFocus","el","options","preventScroll","cancelPrevious","sync","exec","NOOP","currentRafId"],"mappings":";AACA,IAAIA,IAAQ;AACL,SAASC,EAAaC,GAAIC,IAAU,IAAI;AAC7C,QAAM;AAAA,IACJ,eAAAC,IAAgB;AAAA,IAChB,gBAAAC,IAAiB;AAAA,IACjB,MAAAC,IAAO;AAAA,EACX,IAAMH;AACJ,EAAIE,KACF,qBAAqBL,CAAK;AAE5B,QAAMO,IAAO,MAAML,GAAI,MAAM;AAAA,IAC3B,eAAAE;AAAA,EACJ,CAAG;AACD,MAAIE;AACF,WAAAC,EAAI,GACGC;AAET,QAAMC,IAAe,sBAAsBF,CAAI;AAC/C,SAAAP,IAAQS,GACD,MAAM;AACX,IAAIT,MAAUS,MACZ,qBAAqBA,CAAY,GACjCT,IAAQ;AAAA,EAEZ;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index367.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.js"],"sourcesContent":["import { clamp, evaluate, getAlignment, getAlignmentAxis, getAxisLength, getPaddingObject } from '@floating-ui/utils';\n/**\n * Fork of the original `arrow` middleware from Floating UI that allows\n * configuring the offset parent.\n */\nexport const baseArrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0,\n offsetParent = 'real'\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = offsetParent === 'real' ? await platform.getOffsetParent?.(element) : elements.floating;\n let clientSize = elements.floating[clientProp] || rects.floating[length];\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await platform.isElement?.(arrowOffsetParent))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n // eslint-disable-next-line no-nested-ternary\n const alignmentOffset = shouldAddOffset ? center < min ? center - min : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nexport const arrow = (options, deps) => ({\n ...baseArrow(options),\n options: [options, deps]\n});"],"names":["baseArrow","options","state","x","y","placement","rects","platform","elements","middlewareData","element","padding","offsetParent","evaluate","paddingObject","getPaddingObject","coords","axis","getAlignmentAxis","length","getAxisLength","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min","max","center","offset","clamp","shouldAddOffset","getAlignment","alignmentOffset","arrow","deps"],"mappings":";AAKY,MAACA,IAAY,CAAAC,OAAY;AAAA,EACnC,MAAM;AAAA,EACN,SAAAA;AAAA,EACA,MAAM,GAAGC,GAAO;AACd,UAAM;AAAA,MACJ,GAAAC;AAAA,MACA,GAAAC;AAAA,MACA,WAAAC;AAAA,MACA,OAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,gBAAAC;AAAA,IACN,IAAQP,GAEE;AAAA,MACJ,SAAAQ;AAAA,MACA,SAAAC,IAAU;AAAA,MACV,cAAAC,IAAe;AAAA,IACrB,IAAQC,EAASZ,GAASC,CAAK,KAAK,CAAA;AAChC,QAAIQ,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IAAMF,IAAaC,KAAcZ,EAAgBF,CAAM,IAAI,IAAI,GAE1MsB,IAAkBF,IAAkBH,IAASF,IAAME,IAASF,IAAME,IAASD,IAAM;AACvF,WAAO;AAAA,MACL,CAAClB,CAAI,GAAGD,EAAOC,CAAI,IAAIwB;AAAA,MACvB,MAAM;AAAA,QACJ,CAACxB,CAAI,GAAGoB;AAAA,QACR,cAAcD,IAASC,IAASI;AAAA,QAChC,GAAIF,KAAmB;AAAA,UACrB,iBAAAE;AAAA,QACV;AAAA,MACA;AAAA,MACM,OAAOF;AAAA,IACb;AAAA,EACE;AACF,IAQaG,IAAQ,CAACzC,GAAS0C,OAAU;AAAA,EACvC,GAAG3C,EAAUC,CAAO;AAAA,EACpB,SAAS,CAACA,GAAS0C,CAAI;AACzB;","x_google_ignoreList":[0]}
package/dist/index368.js CHANGED
@@ -1,81 +1,21 @@
1
- import { isShadowRoot as O, getNodeName as y } from "./index245.js";
2
- import { ownerDocument as U } from "./index271.js";
3
- const k = {
4
- inert: /* @__PURE__ */ new WeakMap(),
5
- "aria-hidden": /* @__PURE__ */ new WeakMap()
6
- }, T = "data-base-ui-inert", E = {
7
- inert: /* @__PURE__ */ new WeakSet(),
8
- "aria-hidden": /* @__PURE__ */ new WeakSet()
9
- };
10
- let u = /* @__PURE__ */ new WeakMap(), p = 0;
11
- function q(t) {
12
- return E[t];
13
- }
14
- function v(t) {
15
- return t ? O(t) ? t.host : v(t.parentNode) : null;
16
- }
17
- const w = (t, r) => r.map((o) => {
18
- if (t.contains(o))
19
- return o;
20
- const n = v(o);
21
- return t.contains(n) ? n : null;
22
- }).filter((o) => o != null), V = (t) => {
23
- const r = /* @__PURE__ */ new Set();
24
- return t.forEach((o) => {
25
- let n = o;
26
- for (; n && !r.has(n); )
27
- r.add(n), n = n.parentNode;
28
- }), r;
29
- }, N = (t, r, o) => {
30
- const n = [], s = (i) => {
31
- !i || o.has(i) || Array.from(i.children).forEach((a) => {
32
- y(a) !== "script" && (r.has(a) ? s(a) : n.push(a));
33
- });
34
- };
35
- return s(t), n;
36
- };
37
- function x(t, r, o, n, {
38
- mark: s = !0,
39
- markerIgnoreElements: i = []
40
- }) {
41
- const a = n ? "inert" : o ? "aria-hidden" : null;
42
- let f = null, m = null;
43
- const d = w(r, t), C = s ? w(r, i) : [], H = new Set(C), I = s ? N(r, V(d), new Set(d)).filter((e) => !H.has(e)) : [], S = [], g = [];
44
- if (a) {
45
- const e = k[a], c = q(a);
46
- m = c, f = e;
47
- const h = w(r, Array.from(r.querySelectorAll("[aria-live]"))), A = d.concat(h);
48
- N(r, V(A), new Set(A)).forEach((l) => {
49
- const W = l.getAttribute(a), M = W !== null && W !== "false", b = (e.get(l) || 0) + 1;
50
- e.set(l, b), S.push(l), b === 1 && M && c.add(l), M || l.setAttribute(a, a === "inert" ? "" : "true");
51
- });
1
+ import { hide as a } from "./index370.js";
2
+ const o = {
3
+ name: "hide",
4
+ async fn(e) {
5
+ const {
6
+ width: n,
7
+ height: d,
8
+ x: i,
9
+ y: t
10
+ } = e.rects.reference, r = n === 0 && d === 0 && i === 0 && t === 0;
11
+ return {
12
+ data: {
13
+ referenceHidden: (await a().fn(e)).data?.referenceHidden || r
14
+ }
15
+ };
52
16
  }
53
- return s && I.forEach((e) => {
54
- const c = (u.get(e) || 0) + 1;
55
- u.set(e, c), g.push(e), c === 1 && e.setAttribute(T, "");
56
- }), p += 1, () => {
57
- f && S.forEach((e) => {
58
- const h = (f.get(e) || 0) - 1;
59
- f.set(e, h), h || (!m?.has(e) && a && e.removeAttribute(a), m?.delete(e));
60
- }), s && g.forEach((e) => {
61
- const c = (u.get(e) || 0) - 1;
62
- u.set(e, c), c || e.removeAttribute(T);
63
- }), p -= 1, p || (k.inert = /* @__PURE__ */ new WeakMap(), k["aria-hidden"] = /* @__PURE__ */ new WeakMap(), E.inert = /* @__PURE__ */ new WeakSet(), E["aria-hidden"] = /* @__PURE__ */ new WeakSet(), u = /* @__PURE__ */ new WeakMap());
64
- };
65
- }
66
- function R(t, r = {}) {
67
- const {
68
- ariaHidden: o = !1,
69
- inert: n = !1,
70
- mark: s = !0,
71
- markerIgnoreElements: i = []
72
- } = r, a = U(t[0]).body;
73
- return x(t, a, o, n, {
74
- mark: s,
75
- markerIgnoreElements: i
76
- });
77
- }
17
+ };
78
18
  export {
79
- R as markOthers
19
+ o as hide
80
20
  };
81
21
  //# sourceMappingURL=index368.js.map