@rpcbase/ui 0.229.0 → 0.230.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 (708) hide show
  1. package/dist/index100.js +52 -12
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -68
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +5 -38
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +16 -14
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -23
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +7 -110
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +17 -13
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -4
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +5 -4
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +6 -5
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +5 -11
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +4 -19
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +5 -13
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +6 -261
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +24 -4
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +7 -28
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +4 -126
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +6 -5
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +5 -78
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +4 -66
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +5 -8
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +5 -16
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +8 -92
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +5 -65
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +4 -45
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +5 -52
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +6 -4
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +145 -4
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +39 -15
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +4 -5
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +7 -7
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +13 -16
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +13 -4
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +7 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +31 -5
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +10 -5
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +10 -4
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +8 -4
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +13 -6
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +101 -24
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +20 -7
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +53 -4
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +72 -6
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +9 -5
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +20 -4
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +16 -5
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +23 -4
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +6 -8
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +5 -5
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +23 -4
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +35 -5
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +16 -7
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +6 -145
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +4 -39
  108. package/dist/index153.js.map +1 -1
  109. package/dist/index154.js +4 -4
  110. package/dist/index154.js.map +1 -1
  111. package/dist/index155.js +4 -7
  112. package/dist/index155.js.map +1 -1
  113. package/dist/index156.js +4 -13
  114. package/dist/index156.js.map +1 -1
  115. package/dist/index157.js +3 -13
  116. package/dist/index157.js.map +1 -1
  117. package/dist/index158.js +6 -7
  118. package/dist/index158.js.map +1 -1
  119. package/dist/index159.js +24 -32
  120. package/dist/index159.js.map +1 -1
  121. package/dist/index160.js +7 -10
  122. package/dist/index160.js.map +1 -1
  123. package/dist/index161.js +6 -10
  124. package/dist/index161.js.map +1 -1
  125. package/dist/index162.js +5 -8
  126. package/dist/index162.js.map +1 -1
  127. package/dist/index163.js +3 -13
  128. package/dist/index163.js.map +1 -1
  129. package/dist/index164.js +3 -101
  130. package/dist/index164.js.map +1 -1
  131. package/dist/index165.js +5 -20
  132. package/dist/index165.js.map +1 -1
  133. package/dist/index166.js +3 -53
  134. package/dist/index166.js.map +1 -1
  135. package/dist/index167.js +4 -72
  136. package/dist/index167.js.map +1 -1
  137. package/dist/index168.js +3 -9
  138. package/dist/index168.js.map +1 -1
  139. package/dist/index169.js +3 -20
  140. package/dist/index169.js.map +1 -1
  141. package/dist/index170.js +3 -16
  142. package/dist/index170.js.map +1 -1
  143. package/dist/index171.js +12 -22
  144. package/dist/index171.js.map +1 -1
  145. package/dist/index172.js +154 -6
  146. package/dist/index172.js.map +1 -1
  147. package/dist/index173.js +30 -5
  148. package/dist/index173.js.map +1 -1
  149. package/dist/index174.js +9 -23
  150. package/dist/index174.js.map +1 -1
  151. package/dist/index175.js +47 -33
  152. package/dist/index175.js.map +1 -1
  153. package/dist/index176.js +12 -16
  154. package/dist/index176.js.map +1 -1
  155. package/dist/index177.js +44 -6
  156. package/dist/index177.js.map +1 -1
  157. package/dist/index178.js +95 -4
  158. package/dist/index178.js.map +1 -1
  159. package/dist/index179.js +86 -4
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js +105 -4
  162. package/dist/index180.js.map +1 -1
  163. package/dist/index181.js +52 -4
  164. package/dist/index181.js.map +1 -1
  165. package/dist/index182.js +11 -3
  166. package/dist/index182.js.map +1 -1
  167. package/dist/index183.js +37 -6
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +9 -24
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +116 -7
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +17 -6
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +15 -5
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +3 -3
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +36 -3
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index190.js +20 -4
  182. package/dist/index190.js.map +1 -1
  183. package/dist/index191.js +9 -3
  184. package/dist/index191.js.map +1 -1
  185. package/dist/index192.js +8 -4
  186. package/dist/index192.js.map +1 -1
  187. package/dist/index193.js +19 -3
  188. package/dist/index193.js.map +1 -1
  189. package/dist/index194.js +28 -3
  190. package/dist/index194.js.map +1 -1
  191. package/dist/index195.js +16 -3
  192. package/dist/index195.js.map +1 -1
  193. package/dist/index196.js +58 -13
  194. package/dist/index196.js.map +1 -1
  195. package/dist/index197.js +8 -154
  196. package/dist/index197.js.map +1 -1
  197. package/dist/index198.js +64 -28
  198. package/dist/index198.js.map +1 -1
  199. package/dist/index199.js +19 -9
  200. package/dist/index199.js.map +1 -1
  201. package/dist/index200.js +14 -46
  202. package/dist/index200.js.map +1 -1
  203. package/dist/index201.js +5 -11
  204. package/dist/index201.js.map +1 -1
  205. package/dist/index202.js +4 -43
  206. package/dist/index202.js.map +1 -1
  207. package/dist/index203.js +6 -95
  208. package/dist/index203.js.map +1 -1
  209. package/dist/index204.js +4 -86
  210. package/dist/index204.js.map +1 -1
  211. package/dist/index205.js +6 -105
  212. package/dist/index205.js.map +1 -1
  213. package/dist/index206.js +16 -52
  214. package/dist/index206.js.map +1 -1
  215. package/dist/index207.js +4 -11
  216. package/dist/index207.js.map +1 -1
  217. package/dist/index208.js +4 -37
  218. package/dist/index208.js.map +1 -1
  219. package/dist/index209.js +12 -8
  220. package/dist/index209.js.map +1 -1
  221. package/dist/index210.js +9 -3
  222. package/dist/index210.js.map +1 -1
  223. package/dist/index211.js +13 -9
  224. package/dist/index211.js.map +1 -1
  225. package/dist/index212.js +13 -116
  226. package/dist/index212.js.map +1 -1
  227. package/dist/index213.js +4 -17
  228. package/dist/index213.js.map +1 -1
  229. package/dist/index214.js +5 -15
  230. package/dist/index214.js.map +1 -1
  231. package/dist/index215.js +6 -36
  232. package/dist/index215.js.map +1 -1
  233. package/dist/index216.js +5 -20
  234. package/dist/index216.js.map +1 -1
  235. package/dist/index217.js +54 -8
  236. package/dist/index217.js.map +1 -1
  237. package/dist/index218.js +8 -19
  238. package/dist/index218.js.map +1 -1
  239. package/dist/index219.js +4 -28
  240. package/dist/index219.js.map +1 -1
  241. package/dist/index220.js +4 -16
  242. package/dist/index220.js.map +1 -1
  243. package/dist/index221.js +9 -20
  244. package/dist/index221.js.map +1 -1
  245. package/dist/index222.js +4 -66
  246. package/dist/index222.js.map +1 -1
  247. package/dist/index223.js +4 -6
  248. package/dist/index223.js.map +1 -1
  249. package/dist/index224.js +3 -11
  250. package/dist/index224.js.map +1 -1
  251. package/dist/index225.js +10 -50
  252. package/dist/index225.js.map +1 -1
  253. package/dist/index226.js +10 -4
  254. package/dist/index226.js.map +1 -1
  255. package/dist/index227.js +9 -29
  256. package/dist/index227.js.map +1 -1
  257. package/dist/index228.js +10 -16
  258. package/dist/index228.js.map +1 -1
  259. package/dist/index229.js +10 -5
  260. package/dist/index229.js.map +1 -1
  261. package/dist/index230.js +9 -21
  262. package/dist/index230.js.map +1 -1
  263. package/dist/index231.js +6 -51
  264. package/dist/index231.js.map +1 -1
  265. package/dist/index232.js +5 -25
  266. package/dist/index232.js.map +1 -1
  267. package/dist/index233.js +4 -41
  268. package/dist/index233.js.map +1 -1
  269. package/dist/index234.js +5 -39
  270. package/dist/index234.js.map +1 -1
  271. package/dist/index235.js +7 -45
  272. package/dist/index235.js.map +1 -1
  273. package/dist/index236.js +5 -20
  274. package/dist/index236.js.map +1 -1
  275. package/dist/index237.js +13 -67
  276. package/dist/index237.js.map +1 -1
  277. package/dist/index238.js +7 -17
  278. package/dist/index238.js.map +1 -1
  279. package/dist/index239.js +10 -11
  280. package/dist/index239.js.map +1 -1
  281. package/dist/index240.js +10 -27
  282. package/dist/index240.js.map +1 -1
  283. package/dist/index241.js +21 -13
  284. package/dist/index241.js.map +1 -1
  285. package/dist/index242.js +10 -18
  286. package/dist/index242.js.map +1 -1
  287. package/dist/index243.js +9 -36
  288. package/dist/index243.js.map +1 -1
  289. package/dist/index244.js +9 -262
  290. package/dist/index244.js.map +1 -1
  291. package/dist/index245.js +4 -278
  292. package/dist/index245.js.map +1 -1
  293. package/dist/index246.js +5 -68
  294. package/dist/index246.js.map +1 -1
  295. package/dist/index247.js +15 -98
  296. package/dist/index247.js.map +1 -1
  297. package/dist/index248.js +9 -83
  298. package/dist/index248.js.map +1 -1
  299. package/dist/index249.js +18 -3
  300. package/dist/index249.js.map +1 -1
  301. package/dist/index250.js +14 -28
  302. package/dist/index250.js.map +1 -1
  303. package/dist/index251.js +12 -16
  304. package/dist/index251.js.map +1 -1
  305. package/dist/index252.js +29 -34
  306. package/dist/index252.js.map +1 -1
  307. package/dist/index253.js +12 -16
  308. package/dist/index253.js.map +1 -1
  309. package/dist/index254.js +25 -3
  310. package/dist/index254.js.map +1 -1
  311. package/dist/index255.js +5 -26
  312. package/dist/index255.js.map +1 -1
  313. package/dist/index256.js +20 -29
  314. package/dist/index256.js.map +1 -1
  315. package/dist/index257.js +67 -4
  316. package/dist/index257.js.map +1 -1
  317. package/dist/index258.js +6 -78
  318. package/dist/index258.js.map +1 -1
  319. package/dist/index259.js +5 -269
  320. package/dist/index259.js.map +1 -1
  321. package/dist/index260.js +11 -11
  322. package/dist/index260.js.map +1 -1
  323. package/dist/index261.js +50 -10
  324. package/dist/index261.js.map +1 -1
  325. package/dist/index262.js +4 -26
  326. package/dist/index262.js.map +1 -1
  327. package/dist/index263.js +28 -15
  328. package/dist/index263.js.map +1 -1
  329. package/dist/index264.js +15 -124
  330. package/dist/index264.js.map +1 -1
  331. package/dist/index265.js +5 -5
  332. package/dist/index265.js.map +1 -1
  333. package/dist/index266.js +19 -38
  334. package/dist/index266.js.map +1 -1
  335. package/dist/index267.js +50 -64
  336. package/dist/index267.js.map +1 -1
  337. package/dist/index268.js +26 -14
  338. package/dist/index268.js.map +1 -1
  339. package/dist/index269.js +41 -7
  340. package/dist/index269.js.map +1 -1
  341. package/dist/index270.js +39 -5
  342. package/dist/index270.js.map +1 -1
  343. package/dist/index271.js +45 -4
  344. package/dist/index271.js.map +1 -1
  345. package/dist/index272.js +23 -10
  346. package/dist/index272.js.map +1 -1
  347. package/dist/index273.js +19 -7
  348. package/dist/index273.js.map +1 -1
  349. package/dist/index274.js +19 -132
  350. package/dist/index274.js.map +1 -1
  351. package/dist/index275.js +61 -390
  352. package/dist/index275.js.map +1 -1
  353. package/dist/index276.js +17 -52
  354. package/dist/index276.js.map +1 -1
  355. package/dist/index277.js +11 -11
  356. package/dist/index277.js.map +1 -1
  357. package/dist/index278.js +27 -11
  358. package/dist/index278.js.map +1 -1
  359. package/dist/index279.js +13 -8
  360. package/dist/index279.js.map +1 -1
  361. package/dist/index280.js +18 -11
  362. package/dist/index280.js.map +1 -1
  363. package/dist/index281.js +34 -6
  364. package/dist/index281.js.map +1 -1
  365. package/dist/index282.js +64 -12
  366. package/dist/index282.js.map +1 -1
  367. package/dist/index283.js +262 -3
  368. package/dist/index283.js.map +1 -1
  369. package/dist/index284.js +278 -3
  370. package/dist/index284.js.map +1 -1
  371. package/dist/index285.js +68 -17
  372. package/dist/index285.js.map +1 -1
  373. package/dist/index286.js +45 -51
  374. package/dist/index286.js.map +1 -1
  375. package/dist/index287.js +99 -5
  376. package/dist/index287.js.map +1 -1
  377. package/dist/index288.js +76 -115
  378. package/dist/index288.js.map +1 -1
  379. package/dist/index289.js +13 -33
  380. package/dist/index289.js.map +1 -1
  381. package/dist/index290.js +3 -73
  382. package/dist/index290.js.map +1 -1
  383. package/dist/index291.js +24 -137
  384. package/dist/index291.js.map +1 -1
  385. package/dist/index292.js +16 -61
  386. package/dist/index292.js.map +1 -1
  387. package/dist/index293.js +37 -49
  388. package/dist/index293.js.map +1 -1
  389. package/dist/index294.js +34 -14
  390. package/dist/index294.js.map +1 -1
  391. package/dist/index295.js +67 -7
  392. package/dist/index295.js.map +1 -1
  393. package/dist/index296.js +17 -5
  394. package/dist/index296.js.map +1 -1
  395. package/dist/index297.js +3 -11
  396. package/dist/index297.js.map +1 -1
  397. package/dist/index298.js +106 -17
  398. package/dist/index298.js.map +1 -1
  399. package/dist/index299.js +26 -58
  400. package/dist/index299.js.map +1 -1
  401. package/dist/index300.js +28 -8
  402. package/dist/index300.js.map +1 -1
  403. package/dist/index301.js +4 -67
  404. package/dist/index301.js.map +1 -1
  405. package/dist/index302.js +126 -19
  406. package/dist/index302.js.map +1 -1
  407. package/dist/index303.js +4 -16
  408. package/dist/index303.js.map +1 -1
  409. package/dist/index304.js +78 -5
  410. package/dist/index304.js.map +1 -1
  411. package/dist/index305.js +269 -5
  412. package/dist/index305.js.map +1 -1
  413. package/dist/index306.js +11 -6
  414. package/dist/index306.js.map +1 -1
  415. package/dist/index307.js +28 -5
  416. package/dist/index307.js.map +1 -1
  417. package/dist/index308.js +16 -7
  418. package/dist/index308.js.map +1 -1
  419. package/dist/index309.js +10 -16
  420. package/dist/index309.js.map +1 -1
  421. package/dist/index31.js +24 -24
  422. package/dist/index310.js +25 -4
  423. package/dist/index310.js.map +1 -1
  424. package/dist/index311.js +16 -4
  425. package/dist/index311.js.map +1 -1
  426. package/dist/index312.js +125 -12
  427. package/dist/index312.js.map +1 -1
  428. package/dist/index313.js +5 -9
  429. package/dist/index313.js.map +1 -1
  430. package/dist/index314.js +40 -13
  431. package/dist/index314.js.map +1 -1
  432. package/dist/index315.js +65 -13
  433. package/dist/index315.js.map +1 -1
  434. package/dist/index316.js +14 -5
  435. package/dist/index316.js.map +1 -1
  436. package/dist/index317.js +14 -6
  437. package/dist/index317.js.map +1 -1
  438. package/dist/index318.js +7 -6
  439. package/dist/index318.js.map +1 -1
  440. package/dist/index319.js +13 -6
  441. package/dist/index319.js.map +1 -1
  442. package/dist/index32.js +3 -3
  443. package/dist/index320.js +5 -54
  444. package/dist/index320.js.map +1 -1
  445. package/dist/index321.js +3 -8
  446. package/dist/index321.js.map +1 -1
  447. package/dist/index322.js +10 -4
  448. package/dist/index322.js.map +1 -1
  449. package/dist/index323.js +7 -4
  450. package/dist/index323.js.map +1 -1
  451. package/dist/index324.js +133 -8
  452. package/dist/index324.js.map +1 -1
  453. package/dist/index325.js +261 -4
  454. package/dist/index325.js.map +1 -1
  455. package/dist/index326.js +399 -4
  456. package/dist/index326.js.map +1 -1
  457. package/dist/index327.js +52 -3
  458. package/dist/index327.js.map +1 -1
  459. package/dist/index328.js +11 -10
  460. package/dist/index328.js.map +1 -1
  461. package/dist/index329.js +11 -9
  462. package/dist/index329.js.map +1 -1
  463. package/dist/index330.js +4 -9
  464. package/dist/index330.js.map +1 -1
  465. package/dist/index331.js +11 -10
  466. package/dist/index331.js.map +1 -1
  467. package/dist/index332.js +4 -11
  468. package/dist/index332.js.map +1 -1
  469. package/dist/index333.js +5 -10
  470. package/dist/index333.js.map +1 -1
  471. package/dist/index334.js +11 -6
  472. package/dist/index334.js.map +1 -1
  473. package/dist/index335.js +78 -5
  474. package/dist/index335.js.map +1 -1
  475. package/dist/index336.js +66 -4
  476. package/dist/index336.js.map +1 -1
  477. package/dist/index337.js +8 -5
  478. package/dist/index337.js.map +1 -1
  479. package/dist/index338.js +92 -6
  480. package/dist/index338.js.map +1 -1
  481. package/dist/index339.js +20 -5
  482. package/dist/index339.js.map +1 -1
  483. package/dist/index34.js +4 -4
  484. package/dist/index340.js +4 -16
  485. package/dist/index340.js.map +1 -1
  486. package/dist/index341.js +18 -8
  487. package/dist/index341.js.map +1 -1
  488. package/dist/index342.js +12 -10
  489. package/dist/index342.js.map +1 -1
  490. package/dist/index343.js +8 -10
  491. package/dist/index343.js.map +1 -1
  492. package/dist/index344.js +11 -21
  493. package/dist/index344.js.map +1 -1
  494. package/dist/index345.js +8 -10
  495. package/dist/index345.js.map +1 -1
  496. package/dist/index346.js +13 -9
  497. package/dist/index346.js.map +1 -1
  498. package/dist/index347.js +3 -9
  499. package/dist/index347.js.map +1 -1
  500. package/dist/index348.js +3 -4
  501. package/dist/index348.js.map +1 -1
  502. package/dist/index349.js +4 -6
  503. package/dist/index349.js.map +1 -1
  504. package/dist/index35.js +5 -5
  505. package/dist/index350.js +15 -17
  506. package/dist/index350.js.map +1 -1
  507. package/dist/index351.js +8 -9
  508. package/dist/index351.js.map +1 -1
  509. package/dist/index352.js +50 -17
  510. package/dist/index352.js.map +1 -1
  511. package/dist/index353.js +11 -15
  512. package/dist/index353.js.map +1 -1
  513. package/dist/index354.js +14 -10
  514. package/dist/index354.js.map +1 -1
  515. package/dist/index355.js +5 -29
  516. package/dist/index355.js.map +1 -1
  517. package/dist/index356.js +5 -12
  518. package/dist/index356.js.map +1 -1
  519. package/dist/index357.js +19 -24
  520. package/dist/index357.js.map +1 -1
  521. package/dist/index358.js +45 -6
  522. package/dist/index358.js.map +1 -1
  523. package/dist/index359.js +18 -21
  524. package/dist/index359.js.map +1 -1
  525. package/dist/index36.js +10 -10
  526. package/dist/index360.js +5 -4
  527. package/dist/index360.js.map +1 -1
  528. package/dist/index361.js +199 -10
  529. package/dist/index361.js.map +1 -1
  530. package/dist/index362.js +76 -15
  531. package/dist/index362.js.map +1 -1
  532. package/dist/index363.js +122 -5
  533. package/dist/index363.js.map +1 -1
  534. package/dist/index364.js +16 -19
  535. package/dist/index364.js.map +1 -1
  536. package/dist/index365.js +32 -44
  537. package/dist/index365.js.map +1 -1
  538. package/dist/index366.js +72 -16
  539. package/dist/index366.js.map +1 -1
  540. package/dist/index367.js +143 -5
  541. package/dist/index367.js.map +1 -1
  542. package/dist/index368.js +59 -198
  543. package/dist/index368.js.map +1 -1
  544. package/dist/index369.js +49 -77
  545. package/dist/index369.js.map +1 -1
  546. package/dist/index37.js +3 -3
  547. package/dist/index370.js +5 -9
  548. package/dist/index370.js.map +1 -1
  549. package/dist/index371.js +12 -26
  550. package/dist/index371.js.map +1 -1
  551. package/dist/index372.js +21 -26
  552. package/dist/index372.js.map +1 -1
  553. package/dist/index373.js +4 -137
  554. package/dist/index373.js.map +1 -1
  555. package/dist/index374.js +4 -12
  556. package/dist/index374.js.map +1 -1
  557. package/dist/index375.js +4 -227
  558. package/dist/index375.js.map +1 -1
  559. package/dist/index376.js +15 -3
  560. package/dist/index376.js.map +1 -1
  561. package/dist/index377.js +8 -19
  562. package/dist/index377.js.map +1 -1
  563. package/dist/index378.js +5 -77
  564. package/dist/index378.js.map +1 -1
  565. package/dist/index379.js +5 -12
  566. package/dist/index379.js.map +1 -1
  567. package/dist/index38.js +4 -4
  568. package/dist/index380.js +545 -3
  569. package/dist/index380.js.map +1 -1
  570. package/dist/index381.js +46 -71
  571. package/dist/index381.js.map +1 -1
  572. package/dist/index382.js +18 -9
  573. package/dist/index382.js.map +1 -1
  574. package/dist/index383.js +5 -15
  575. package/dist/index383.js.map +1 -1
  576. package/dist/index384.js +7 -4
  577. package/dist/index384.js.map +1 -1
  578. package/dist/index385.js +7 -18
  579. package/dist/index385.js.map +1 -1
  580. package/dist/index386.js +7 -12
  581. package/dist/index386.js.map +1 -1
  582. package/dist/index387.js +12 -3
  583. package/dist/index387.js.map +1 -1
  584. package/dist/index388.js +9 -3
  585. package/dist/index388.js.map +1 -1
  586. package/dist/index389.js +12 -14
  587. package/dist/index389.js.map +1 -1
  588. package/dist/index39.js +5 -5
  589. package/dist/index390.js +3 -492
  590. package/dist/index390.js.map +1 -1
  591. package/dist/index391.js +3 -5
  592. package/dist/index391.js.map +1 -1
  593. package/dist/index392.js +8 -4
  594. package/dist/index392.js.map +1 -1
  595. package/dist/index393.js +26 -4
  596. package/dist/index393.js.map +1 -1
  597. package/dist/index394.js +26 -15
  598. package/dist/index394.js.map +1 -1
  599. package/dist/index395.js +137 -8
  600. package/dist/index395.js.map +1 -1
  601. package/dist/index396.js +12 -5
  602. package/dist/index396.js.map +1 -1
  603. package/dist/index397.js +226 -4
  604. package/dist/index397.js.map +1 -1
  605. package/dist/index398.js +3 -545
  606. package/dist/index398.js.map +1 -1
  607. package/dist/index399.js +20 -47
  608. package/dist/index399.js.map +1 -1
  609. package/dist/index40.js +3 -3
  610. package/dist/index400.js +74 -14
  611. package/dist/index400.js.map +1 -1
  612. package/dist/index401.js +12 -6
  613. package/dist/index401.js.map +1 -1
  614. package/dist/index402.js +3 -7
  615. package/dist/index402.js.map +1 -1
  616. package/dist/index403.js +71 -6
  617. package/dist/index403.js.map +1 -1
  618. package/dist/index404.js +9 -8
  619. package/dist/index404.js.map +1 -1
  620. package/dist/index405.js +15 -11
  621. package/dist/index405.js.map +1 -1
  622. package/dist/index406.js +4 -8
  623. package/dist/index406.js.map +1 -1
  624. package/dist/index407.js +56 -13
  625. package/dist/index407.js.map +1 -1
  626. package/dist/index408.js +68 -8
  627. package/dist/index408.js.map +1 -1
  628. package/dist/index409.js +31 -2
  629. package/dist/index409.js.map +1 -1
  630. package/dist/index41.js +10 -10
  631. package/dist/index410.js +9 -44
  632. package/dist/index410.js.map +1 -1
  633. package/dist/index411.js +152 -55
  634. package/dist/index411.js.map +1 -1
  635. package/dist/index412.js +108 -8
  636. package/dist/index412.js.map +1 -1
  637. package/dist/index413.js +8 -2
  638. package/dist/index413.js.map +1 -1
  639. package/dist/index414.js +2 -55
  640. package/dist/index414.js.map +1 -1
  641. package/dist/index415.js +42 -54
  642. package/dist/index415.js.map +1 -1
  643. package/dist/index416.js +55 -4
  644. package/dist/index416.js.map +1 -1
  645. package/dist/index417.js +8 -56
  646. package/dist/index417.js.map +1 -1
  647. package/dist/index418.js +2 -68
  648. package/dist/index418.js.map +1 -1
  649. package/dist/index419.js +55 -31
  650. package/dist/index419.js.map +1 -1
  651. package/dist/index420.js +56 -9
  652. package/dist/index420.js.map +1 -1
  653. package/dist/index421.js +14 -152
  654. package/dist/index421.js.map +1 -1
  655. package/dist/index422.js +490 -106
  656. package/dist/index422.js.map +1 -1
  657. package/dist/index423.js +16 -2
  658. package/dist/index423.js.map +1 -1
  659. package/dist/index424.js +29 -2
  660. package/dist/index424.js.map +1 -1
  661. package/dist/index425.js +13 -2
  662. package/dist/index425.js.map +1 -1
  663. package/dist/index426.js +7 -2
  664. package/dist/index426.js.map +1 -1
  665. package/dist/index427.js +2 -16
  666. package/dist/index427.js.map +1 -1
  667. package/dist/index428.js +2 -29
  668. package/dist/index428.js.map +1 -1
  669. package/dist/index429.js +2 -13
  670. package/dist/index429.js.map +1 -1
  671. package/dist/index430.js +2 -7
  672. package/dist/index430.js.map +1 -1
  673. package/dist/index44.js +1 -1
  674. package/dist/index45.js +2 -2
  675. package/dist/index49.js +34 -34
  676. package/dist/index50.js +29 -29
  677. package/dist/index51.js +2 -2
  678. package/dist/index52.js +12 -12
  679. package/dist/index53.js +4 -4
  680. package/dist/index54.js +1 -1
  681. package/dist/index55.js +22 -22
  682. package/dist/index56.js +5 -5
  683. package/dist/index57.js +5 -5
  684. package/dist/index58.js +8 -8
  685. package/dist/index59.js +5 -5
  686. package/dist/index60.js +17 -17
  687. package/dist/index61.js +5 -5
  688. package/dist/index62.js +3 -3
  689. package/dist/index66.js +1 -1
  690. package/dist/index67.js +1 -1
  691. package/dist/index72.js +2 -6
  692. package/dist/index72.js.map +1 -1
  693. package/dist/index73.js +2 -8
  694. package/dist/index73.js.map +1 -1
  695. package/dist/index74.js +5 -5
  696. package/dist/index74.js.map +1 -1
  697. package/dist/index75.js +8 -2
  698. package/dist/index75.js.map +1 -1
  699. package/dist/index76.js +6 -2
  700. package/dist/index76.js.map +1 -1
  701. package/dist/index80.js +4 -4
  702. package/dist/index85.js +1 -1
  703. package/dist/index86.js +1 -1
  704. package/dist/index93.js +1 -1
  705. package/dist/index94.js +6 -6
  706. package/dist/index96.js +4 -4
  707. package/dist/index98.js +1 -1
  708. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index350.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n"],"names":["FocusTargetPriority","isFocusableDay","modifiers","DayFlag","calculateFocusTarget","days","getModifiers","isSelected","lastFocused","focusTarget","foundFocusTargetPriority","day"],"mappings":";AACA,IAAIA;AAAA,CACH,SAAUA,GAAqB;AAC5B,EAAAA,EAAoBA,EAAoB,QAAW,CAAC,IAAI,SACxDA,EAAoBA,EAAoB,WAAc,CAAC,IAAI,YAC3DA,EAAoBA,EAAoB,cAAiB,CAAC,IAAI,eAC9DA,EAAoBA,EAAoB,kBAAqB,CAAC,IAAI;AACtE,GAAGA,MAAwBA,IAAsB,CAAA,EAAG;AAUpD,SAASC,EAAeC,GAAW;AAC/B,SAAQ,CAACA,EAAUC,EAAQ,QAAQ,KAC/B,CAACD,EAAUC,EAAQ,MAAM,KACzB,CAACD,EAAUC,EAAQ,OAAO;AAClC;AAeO,SAASC,EAAqBC,GAAMC,GAAcC,GAAYC,GAAa;AAC9E,MAAIC,GACAC,IAA2B;AAC/B,aAAWC,KAAON,GAAM;AACpB,UAAMH,IAAYI,EAAaK,CAAG;AAClC,IAAIV,EAAeC,CAAS,MACpBA,EAAUC,EAAQ,OAAO,KACzBO,IAA2BV,EAAoB,mBAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,mBAE1CQ,GAAa,UAAUG,CAAG,KAC/BD,IAA2BV,EAAoB,eAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,eAE1CO,EAAWI,EAAI,IAAI,KACxBD,IAA2BV,EAAoB,YAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,YAE1CE,EAAUC,EAAQ,KAAK,KAC5BO,IAA2BV,EAAoB,UAC/CS,IAAcE,GACdD,IAA2BV,EAAoB;AAAA,EAG3D;AACA,SAAKS,MAEDA,IAAcJ,EAAK,KAAK,CAACM,MAAQV,EAAeK,EAAaK,CAAG,CAAC,CAAC,IAE/DF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index350.js","sources":["../../../node_modules/@base-ui/utils/esm/store/createSelector.js"],"sourcesContent":["import _formatErrorMessage from \"../formatErrorMessage.js\";\n/**\n * The NoOptionalParams type is a utility type that checks if a function has optional or default parameters.\n * If the function has optional or default parameters, it returns a string literal type with an error message.\n * Otherwise, it returns the original function type.\n *\n * This is used to enforce that the combiner function passed to createSelector does not have optional or default parameters,\n * as memoization relies on the Function.length property, which does not account for optional or default parameters.\n */\n\n/**\n * Creates a selector function that can be used to derive values from the store's state.\n *\n * The combiner function can have up to three additional parameters, but it **cannot have optional or default parameters**.\n *\n * This function accepts up to six functions and combines them into a single selector function.\n * The resulting selector will take the state from the combined selectors and any additional parameters required by the combiner.\n *\n * The return type of the resulting selector is determined by the return type of the combiner function.\n *\n * @example\n * const selector = createSelector(\n * (state) => state.disabled\n * );\n *\n * @example\n * const selector = createSelector(\n * (state) => state.disabled,\n * (state) => state.open,\n * (disabled, open) => ({ disabled, open })\n * );\n */\n/* eslint-disable id-denylist */\nexport const createSelector = (a, b, c, d, e, f, ...other) => {\n if (other.length > 0) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Unsupported number of selectors' : _formatErrorMessage(1));\n }\n let selector;\n if (a && b && c && d && e && f) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n const vd = d(state, a1, a2, a3);\n const ve = e(state, a1, a2, a3);\n return f(va, vb, vc, vd, ve, a1, a2, a3);\n };\n } else if (a && b && c && d && e) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n const vd = d(state, a1, a2, a3);\n return e(va, vb, vc, vd, a1, a2, a3);\n };\n } else if (a && b && c && d) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n const vc = c(state, a1, a2, a3);\n return d(va, vb, vc, a1, a2, a3);\n };\n } else if (a && b && c) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n const vb = b(state, a1, a2, a3);\n return c(va, vb, a1, a2, a3);\n };\n } else if (a && b) {\n selector = (state, a1, a2, a3) => {\n const va = a(state, a1, a2, a3);\n return b(va, a1, a2, a3);\n };\n } else if (a) {\n selector = a;\n } else {\n throw /* minify-error-disabled */new Error('Missing arguments');\n }\n return selector;\n};\n/* eslint-enable id-denylist */"],"names":["createSelector","a","b","c","d","e","f","other","_formatErrorMessage","selector"],"mappings":";AAiCY,MAACA,IAAiB,CAACC,GAAGC,GAAGC,GAAGC,GAAGC,GAAGC,MAAMC,MAAU;AAC5D,MAAIA,EAAM,SAAS;AACjB,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,oCAAoCC,EAAoB,CAAC,CAAC;AAEpH,MAAIC;AAoCG,MAAIR;AACT,IAAAQ,IAAWR;AAAA;AAEX;AAAA;AAAA,MAAiC,IAAI,MAAM,mBAAmB;AAAA;AAEhE,SAAOQ;AACT;","x_google_ignoreList":[0]}
package/dist/index351.js CHANGED
@@ -1,13 +1,12 @@
1
- import { dateMatchModifiers as u } from "./index32.js";
2
- import { getFocusableDate as g } from "./index386.js";
3
- import { CalendarDay as m } from "./index303.js";
4
- function h(t, i, a, d, f, e, n, s = 0) {
5
- if (s > 365)
6
- return;
7
- const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
8
- return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
1
+ let o;
2
+ process.env.NODE_ENV !== "production" && (o = /* @__PURE__ */ new Set());
3
+ function s(...r) {
4
+ if (process.env.NODE_ENV !== "production") {
5
+ const e = r.join(" ");
6
+ o.has(e) || (o.add(e), console.error(`Base UI: ${e}`));
7
+ }
9
8
  }
10
9
  export {
11
- h as getNextFocus
10
+ s as error
12
11
  };
13
12
  //# sourceMappingURL=index351.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index351.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;AAoBO,SAASA,EAAaC,GAAQC,GAASC,GAAQC,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,GAAG;AACrH,MAAIA,IAAU;AAEV;AAEJ,QAAMC,IAAgBC,EAAiBT,GAAQC,GAASC,EAAO,MAAMC,GAAoBC,GAAkBC,GAAOC,CAAO,GACnHI,IAAa,GAAQL,EAAM,YAC7BM,EAAmBH,GAAeH,EAAM,UAAUC,CAAO,IACvDM,IAAW,GAAQP,EAAM,UAAUM,EAAmBH,GAAeH,EAAM,QAAQC,CAAO,IAC1FO,IAAcL,GACdM,IAAW,IAAIC,EAAYP,GAAeK,GAAaP,CAAO;AACpE,SAAI,CAACI,KAAc,CAACE,IACTE,IAGJf,EAAaC,GAAQC,GAASa,GAAUX,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,CAAC;AACpH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index351.js","sources":["../../../node_modules/@base-ui/utils/esm/error.js"],"sourcesContent":["let set;\nif (process.env.NODE_ENV !== 'production') {\n set = new Set();\n}\nexport function error(...messages) {\n if (process.env.NODE_ENV !== 'production') {\n const messageKey = messages.join(' ');\n if (!set.has(messageKey)) {\n set.add(messageKey);\n console.error(`Base UI: ${messageKey}`);\n }\n }\n}\nexport function reset() {\n set?.clear();\n}"],"names":["set","error","messages","messageKey"],"mappings":"AAAA,IAAIA;AACA,QAAQ,IAAI,aAAa,iBAC3BA,IAAM,oBAAI,IAAG;AAER,SAASC,KAASC,GAAU;AACjC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAaD,EAAS,KAAK,GAAG;AACpC,IAAKF,EAAI,IAAIG,CAAU,MACrBH,EAAI,IAAIG,CAAU,GAClB,QAAQ,MAAM,YAAYA,CAAU,EAAE;AAAA,EAE1C;AACF;","x_google_ignoreList":[0]}
package/dist/index352.js CHANGED
@@ -1,22 +1,55 @@
1
- import { useControlledValue as x } from "./index349.js";
2
- function C(i, d) {
3
- const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
4
- return {
5
- selected: e,
6
- select: (t, c, h) => {
7
- let n = [...e ?? []];
8
- if (u(t)) {
9
- if (e?.length === S || f && e?.length === 1)
1
+ import * as l from "react-dom";
2
+ import { useAnimationFrame as b } from "./index315.js";
3
+ import { useStableCallback as A } from "./index263.js";
4
+ import { resolveRef as d } from "./index402.js";
5
+ import { TransitionStatusDataAttributes as h } from "./index317.js";
6
+ function y(c, f = !1, m = !0) {
7
+ const o = b();
8
+ return A((s, n = null) => {
9
+ o.cancel();
10
+ const a = d(c);
11
+ if (a == null)
12
+ return;
13
+ const e = a, u = () => {
14
+ l.flushSync(s);
15
+ };
16
+ if (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
17
+ s();
18
+ return;
19
+ }
20
+ function i() {
21
+ Promise.all(e.getAnimations().map((t) => t.finished)).then(() => {
22
+ n?.aborted || u();
23
+ }).catch(() => {
24
+ if (m) {
25
+ n?.aborted || u();
10
26
  return;
11
- n = e?.filter((y) => !o(y, t));
12
- } else
13
- e?.length === a ? n = [t] : n = [...n, t];
14
- return l || m(n), l?.(n, t, c, h), n;
15
- },
16
- isSelected: u
17
- };
27
+ }
28
+ const t = e.getAnimations();
29
+ !n?.aborted && t.length > 0 && t.some((r) => r.pending || r.playState !== "finished") && i();
30
+ });
31
+ }
32
+ if (f) {
33
+ const t = h.startingStyle;
34
+ if (!e.hasAttribute(t)) {
35
+ o.request(i);
36
+ return;
37
+ }
38
+ const r = new MutationObserver(() => {
39
+ e.hasAttribute(t) || (r.disconnect(), i());
40
+ });
41
+ r.observe(e, {
42
+ attributes: !0,
43
+ attributeFilter: [t]
44
+ }), n?.addEventListener("abort", () => r.disconnect(), {
45
+ once: !0
46
+ });
47
+ return;
48
+ }
49
+ o.request(i);
50
+ });
18
51
  }
19
52
  export {
20
- C as useMulti
53
+ y as useAnimationsFinished
21
54
  };
22
55
  //# sourceMappingURL=index352.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index352.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index352.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useAnimationsFinished.js"],"sourcesContent":["'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { resolveRef } from \"../utils/resolveRef.js\";\nimport { TransitionStatusDataAttributes } from \"./stateAttributesMapping.js\";\n\n/**\n * Executes a function once all animations have finished on the provided element.\n * @param elementOrRef - The element to watch for animations.\n * @param waitForStartingStyleRemoved - Whether to wait for [data-starting-style] to be removed before checking for animations.\n * @param treatAbortedAsFinished - Whether to treat aborted animations as finished. If `false`, and there are aborted animations,\n * the function will check again if any new animations have started and wait for them to finish.\n * @returns A function that takes a callback to execute once all animations have finished, and an optional AbortSignal to abort the callback\n */\nexport function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, treatAbortedAsFinished = true) {\n const frame = useAnimationFrame();\n return useStableCallback((fnToExecute,\n /**\n * An optional [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that\n * can be used to abort `fnToExecute` before all the animations have finished.\n * @default null\n */\n signal = null) => {\n frame.cancel();\n const element = resolveRef(elementOrRef);\n if (element == null) {\n return;\n }\n const resolvedElement = element;\n const done = () => {\n // Synchronously flush the unmounting of the component so that the browser doesn't\n // paint: https://github.com/mui/base-ui/issues/979\n ReactDOM.flushSync(fnToExecute);\n };\n if (typeof resolvedElement.getAnimations !== 'function' || globalThis.BASE_UI_ANIMATIONS_DISABLED) {\n fnToExecute();\n return;\n }\n function exec() {\n Promise.all(resolvedElement.getAnimations().map(animation => animation.finished)).then(() => {\n if (!signal?.aborted) {\n done();\n }\n }).catch(() => {\n if (treatAbortedAsFinished) {\n if (!signal?.aborted) {\n done();\n }\n return;\n }\n const currentAnimations = resolvedElement.getAnimations();\n if (!signal?.aborted && currentAnimations.length > 0 && currentAnimations.some(animation => animation.pending || animation.playState !== 'finished')) {\n // Sometimes animations can be aborted because a property they depend on changes while the animation plays.\n // In such cases, we need to re-check if any new animations have started.\n exec();\n }\n });\n }\n if (waitForStartingStyleRemoved) {\n const startingStyleAttribute = TransitionStatusDataAttributes.startingStyle;\n\n // If `[data-starting-style]` isn't present, fall back to waiting one more frame\n // to give \"open\" animations a chance to be registered.\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n frame.request(exec);\n return;\n }\n\n // Wait for `[data-starting-style]` to have been removed.\n const attributeObserver = new MutationObserver(() => {\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n attributeObserver.disconnect();\n exec();\n }\n });\n attributeObserver.observe(resolvedElement, {\n attributes: true,\n attributeFilter: [startingStyleAttribute]\n });\n signal?.addEventListener('abort', () => attributeObserver.disconnect(), {\n once: true\n });\n return;\n }\n frame.request(exec);\n });\n}"],"names":["useAnimationsFinished","elementOrRef","waitForStartingStyleRemoved","treatAbortedAsFinished","frame","useAnimationFrame","useStableCallback","fnToExecute","signal","element","resolveRef","resolvedElement","done","ReactDOM","exec","animation","currentAnimations","startingStyleAttribute","TransitionStatusDataAttributes","attributeObserver"],"mappings":";;;;;AAgBO,SAASA,EAAsBC,GAAcC,IAA8B,IAAOC,IAAyB,IAAM;AACtH,QAAMC,IAAQC,EAAiB;AAC/B,SAAOC,EAAkB,CAACC,GAM1BC,IAAS,SAAS;AAChB,IAAAJ,EAAM,OAAM;AACZ,UAAMK,IAAUC,EAAWT,CAAY;AACvC,QAAIQ,KAAW;AACb;AAEF,UAAME,IAAkBF,GAClBG,IAAO,MAAM;AAGjB,MAAAC,EAAS,UAAUN,CAAW;AAAA,IAChC;AACA,QAAI,OAAOI,EAAgB,iBAAkB,cAAc,WAAW,6BAA6B;AACjG,MAAAJ,EAAW;AACX;AAAA,IACF;AACA,aAASO,IAAO;AACd,cAAQ,IAAIH,EAAgB,gBAAgB,IAAI,CAAAI,MAAaA,EAAU,QAAQ,CAAC,EAAE,KAAK,MAAM;AAC3F,QAAKP,GAAQ,WACXI,EAAI;AAAA,MAER,CAAC,EAAE,MAAM,MAAM;AACb,YAAIT,GAAwB;AAC1B,UAAKK,GAAQ,WACXI,EAAI;AAEN;AAAA,QACF;AACA,cAAMI,IAAoBL,EAAgB,cAAa;AACvD,QAAI,CAACH,GAAQ,WAAWQ,EAAkB,SAAS,KAAKA,EAAkB,KAAK,CAAAD,MAAaA,EAAU,WAAWA,EAAU,cAAc,UAAU,KAGjJD,EAAI;AAAA,MAER,CAAC;AAAA,IACH;AACA,QAAIZ,GAA6B;AAC/B,YAAMe,IAAyBC,EAA+B;AAI9D,UAAI,CAACP,EAAgB,aAAaM,CAAsB,GAAG;AACzD,QAAAb,EAAM,QAAQU,CAAI;AAClB;AAAA,MACF;AAGA,YAAMK,IAAoB,IAAI,iBAAiB,MAAM;AACnD,QAAKR,EAAgB,aAAaM,CAAsB,MACtDE,EAAkB,WAAU,GAC5BL,EAAI;AAAA,MAER,CAAC;AACD,MAAAK,EAAkB,QAAQR,GAAiB;AAAA,QACzC,YAAY;AAAA,QACZ,iBAAiB,CAACM,CAAsB;AAAA,MAChD,CAAO,GACDT,GAAQ,iBAAiB,SAAS,MAAMW,EAAkB,WAAU,GAAI;AAAA,QACtE,MAAM;AAAA,MACd,CAAO;AACD;AAAA,IACF;AACA,IAAAf,EAAM,QAAQU,CAAI;AAAA,EACpB,CAAC;AACH;","x_google_ignoreList":[0]}
package/dist/index353.js CHANGED
@@ -1,19 +1,15 @@
1
- import { useControlledValue as x } from "./index349.js";
2
- import { rangeIncludesDate as R } from "./index172.js";
3
- import { addToRange as y } from "./index355.js";
4
- import { rangeContainsModifiers as C } from "./index357.js";
5
- function b(s, l) {
6
- const { disabled: c, excludeDisabled: i, selected: d, required: f, onSelect: o } = s, [r, m] = x(d, o ? d : void 0), t = o ? d : r;
7
- return {
8
- selected: t,
9
- select: (n, u, a) => {
10
- const { min: S, max: p } = s, e = n ? y(n, t, S, p, f, l) : void 0;
11
- return i && c && e?.from && e.to && C({ from: e.from, to: e.to }, c, l) && (e.from = n, e.to = void 0), o || m(e), o?.(e, n, u, a), e;
12
- },
13
- isSelected: (n) => t && R(t, n, !1, l)
14
- };
1
+ function t(r) {
2
+ if (r == null)
3
+ return "";
4
+ if (typeof r == "string")
5
+ return r;
6
+ try {
7
+ return JSON.stringify(r);
8
+ } catch {
9
+ return String(r);
10
+ }
15
11
  }
16
12
  export {
17
- b as useRange
13
+ t as serializeValue
18
14
  };
19
15
  //# sourceMappingURL=index353.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index353.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMN,GAClF,CAACO,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAoB7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QApBW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKf,GACfgB,IAAWL,IACXM,EAAWN,GAAaD,GAAUI,GAAKC,GAAKV,GAAUJ,CAAO,IAC7D;AACN,aAAIE,KAAmBD,KAAYc,GAAU,QAAQA,EAAS,MACtDE,EAAuB,EAAE,MAAMF,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAId,GAAUD,CAAO,MAElFe,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAtBe,CAACG,MAAST,KAAYU,EAAkBV,GAAUS,GAAM,IAAOlB,CAAO;AAAA,EAuB7F;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index353.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/index354.js CHANGED
@@ -1,16 +1,20 @@
1
- import { useControlledValue as a } from "./index349.js";
2
- function q(u, S) {
3
- const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
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]);
4
6
  return {
5
- selected: e,
6
- select: (n, o, i) => {
7
- let l = n;
8
- return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
9
- },
10
- isSelected: (n) => e ? d(e, n) : !1
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
11
15
  };
12
16
  }
13
17
  export {
14
- q as useSingle
18
+ t as useEnhancedClickHandler
15
19
  };
16
20
  //# sourceMappingURL=index354.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index354.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index354.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/index355.js CHANGED
@@ -1,33 +1,9 @@
1
- import { defaultDateLib as D } from "./index152.js";
2
- function w(f, g, n = 0, s = 0, l = !1, u = D) {
3
- const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
4
- let e;
5
- if (!o && !i)
6
- e = { from: f, to: n > 0 ? void 0 : f };
7
- else if (o && !i)
8
- r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
9
- else if (o && i)
10
- if (r(o, f) && r(i, f))
11
- l ? e = { from: o, to: i } : e = void 0;
12
- else if (r(o, f))
13
- e = { from: o, to: n > 0 ? void 0 : f };
14
- else if (r(i, f))
15
- e = { from: f, to: n > 0 ? void 0 : f };
16
- else if (c(f, o))
17
- e = { from: f, to: i };
18
- else if (m(f, o))
19
- e = { from: o, to: f };
20
- else if (m(f, i))
21
- e = { from: o, to: f };
22
- else
23
- throw new Error("Invalid range");
24
- if (e?.from && e?.to) {
25
- const t = u.differenceInCalendarDays(e.to, e.from);
26
- s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
27
- }
28
- return e;
1
+ import * as o from "react";
2
+ const e = [];
3
+ function n(t) {
4
+ o.useEffect(t, e);
29
5
  }
30
6
  export {
31
- w as addToRange
7
+ n as useOnMount
32
8
  };
33
9
  //# sourceMappingURL=index355.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index355.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAcC,IAAM,GAAGC,IAAM,GAAGC,IAAW,IAAOC,IAAUC,GAAgB;AACzG,QAAM,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKP,KAAgB,CAAA,GAC/B,EAAE,WAAAQ,GAAW,SAAAC,GAAS,UAAAC,EAAQ,IAAKN;AACzC,MAAIO;AACJ,MAAI,CAACL,KAAQ,CAACC;AAEV,IAAAI,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,WAE/CO,KAAQ,CAACC;AAEd,IAAIC,EAAUF,GAAMP,CAAI,IAEhBE,MAAQ,IACRU,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI,IAEnBI,IACLQ,IAAQ,EAAE,MAAAL,GAAM,IAAI,OAAS,IAG7BK,IAAQ,SAGPD,EAASX,GAAMO,CAAI,IAExBK,IAAQ,EAAE,MAAMZ,GAAM,IAAIO,EAAI,IAI9BK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,WAGvBO,KAAQC;AAEb,QAAIC,EAAUF,GAAMP,CAAI,KAAKS,EAAUD,GAAIR,CAAI;AAE3C,MAAII,IACAQ,IAAQ,EAAE,MAAAL,GAAM,IAAAC,EAAE,IAGlBI,IAAQ;AAAA,aAGPH,EAAUF,GAAMP,CAAI;AAEzB,MAAAY,IAAQ,EAAE,MAAAL,GAAM,IAAIL,IAAM,IAAI,SAAYF,EAAI;AAAA,aAEzCS,EAAUD,GAAIR,CAAI;AAEvB,MAAAY,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,aAE/CW,EAASX,GAAMO,CAAI;AAExB,MAAAK,IAAQ,EAAE,MAAMZ,GAAM,IAAIQ,EAAE;AAAA,aAEvBE,EAAQV,GAAMO,CAAI;AAEvB,MAAAK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,aAEnBU,EAAQV,GAAMQ,CAAE;AAErB,MAAAI,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA;AAGxB,YAAM,IAAI,MAAM,eAAe;AAIvC,MAAIY,GAAO,QAAQA,GAAO,IAAI;AAC1B,UAAMC,IAAOR,EAAQ,yBAAyBO,EAAM,IAAIA,EAAM,IAAI;AAClE,IAAIT,IAAM,KAAKU,IAAOV,IAClBS,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS,IAE9BE,IAAM,KAAKW,IAAOX,MACvBU,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS;AAAA,EAE3C;AACA,SAAOY;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index355.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/index356.js CHANGED
@@ -1,16 +1,9 @@
1
- import { defaultDateLib as f } from "./index152.js";
2
- function y(t, r, e = f) {
3
- const n = Array.isArray(r) ? r : [r];
4
- let a = t.from;
5
- const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
6
- for (let o = 0; o <= s; o++) {
7
- if (n.includes(a.getDay()))
8
- return !0;
9
- a = e.addDays(a, 1);
10
- }
11
- return !1;
1
+ import * as t from "react";
2
+ const e = parseInt(t.version, 10);
3
+ function o(r) {
4
+ return e >= r;
12
5
  }
13
6
  export {
14
- y as rangeContainsDayOfWeek
7
+ o as isReactVersionAtLeast
15
8
  };
16
9
  //# sourceMappingURL=index356.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index356.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","date","totalDays","totalDaysLimit","i"],"mappings":";AAaO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAgB,MAAM,QAAQH,CAAS,IAAkBA,IAAd,CAACA,CAAS;AAC3D,MAAII,IAAOL,EAAM;AACjB,QAAMM,IAAYJ,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI,GAEjEO,IAAiB,KAAK,IAAID,GAAW,CAAC;AAC5C,WAASE,IAAI,GAAGA,KAAKD,GAAgBC,KAAK;AACtC,QAAIJ,EAAa,SAASC,EAAK,OAAM,CAAE;AACnC,aAAO;AAEX,IAAAA,IAAOH,EAAQ,QAAQG,GAAM,CAAC;AAAA,EAClC;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index356.js","sources":["../../../node_modules/@base-ui/utils/esm/reactVersion.js"],"sourcesContent":["import * as React from 'react';\nconst majorVersion = parseInt(React.version, 10);\nexport function isReactVersionAtLeast(reactVersionToCheck) {\n return majorVersion >= reactVersionToCheck;\n}"],"names":["majorVersion","React","isReactVersionAtLeast","reactVersionToCheck"],"mappings":";AACA,MAAMA,IAAe,SAASC,EAAM,SAAS,EAAE;AACxC,SAASC,EAAsBC,GAAqB;AACzD,SAAOH,KAAgBG;AACzB;","x_google_ignoreList":[0]}
package/dist/index357.js CHANGED
@@ -1,29 +1,24 @@
1
- import { defaultDateLib as p } from "./index152.js";
2
- import { dateMatchModifiers as s } from "./index32.js";
3
- import { rangeContainsDayOfWeek as M } from "./index356.js";
4
- import { rangeIncludesDate as l } from "./index172.js";
5
- import { rangeOverlaps as y } from "./index358.js";
6
- import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index174.js";
7
- function d(n, t, f = p) {
8
- const e = Array.isArray(t) ? t : [t];
9
- if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
10
- from: f.addDays(o.after, 1),
11
- to: f.addDays(o.before, -1)
12
- }, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
13
- return !0;
14
- const i = e.filter((o) => typeof o == "function");
15
- if (i.length) {
16
- let o = n.from;
17
- const r = f.differenceInCalendarDays(n.to, n.from);
18
- for (let u = 0; u <= r; u++) {
19
- if (i.some((D) => D(o)))
20
- return !0;
21
- o = f.addDays(o, 1);
22
- }
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
23
14
  }
24
- return !1;
15
+ });
16
+ process.env.NODE_ENV !== "production" && (t.displayName = "CompositeListContext");
17
+ function n() {
18
+ return e.useContext(t);
25
19
  }
26
20
  export {
27
- d as rangeContainsModifiers
21
+ t as CompositeListContext,
22
+ n as useCompositeListContext
28
23
  };
29
24
  //# sourceMappingURL=index357.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index357.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","matcher","rangeIncludesDate","isDatesArray","date","isDateRange","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","isDateInterval","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","totalDays","i"],"mappings":";;;;;;AAgBO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAW,MAAM,QAAQH,CAAS,IAAIA,IAAY,CAACA,CAAS;AAsClE,MApC4BG,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU,EAChC,KAAK,CAACA,MACpD,OAAOA,KAAY,YACZA,IACPH,EAAQ,OAAOG,CAAO,IACfC,EAAkBN,GAAOK,GAAS,IAAOH,CAAO,IAEvDK,EAAaF,GAASH,CAAO,IACtBG,EAAQ,KAAK,CAACG,MAASF,EAAkBN,GAAOQ,GAAM,IAAON,CAAO,CAAC,IAE5EO,EAAYJ,CAAO,IACfA,EAAQ,QAAQA,EAAQ,KACjBK,EAAcV,GAAO,EAAE,MAAMK,EAAQ,MAAM,IAAIA,EAAQ,GAAE,GAAIH,CAAO,IAExE,KAEPS,EAAgBN,CAAO,IAChBO,EAAuBZ,GAAOK,EAAQ,WAAWH,CAAO,IAE/DW,EAAeR,CAAO,IACGH,EAAQ,QAAQG,EAAQ,QAAQA,EAAQ,KAAK,IAE3DK,EAAcV,GAAO;AAAA,IACxB,MAAME,EAAQ,QAAQG,EAAQ,OAAO,CAAC;AAAA,IACtC,IAAIH,EAAQ,QAAQG,EAAQ,QAAQ,EAAE;AAAA,EAC1D,GAAmBH,CAAO,IAENY,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAEjDa,EAAgBV,CAAO,KAAKW,EAAiBX,CAAO,IAC5CS,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAE9C,EACV;AAEG,WAAO;AAEX,QAAMe,IAAmBb,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU;AACnF,MAAIY,EAAiB,QAAQ;AACzB,QAAIT,IAAOR,EAAM;AACjB,UAAMkB,IAAYhB,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI;AACvE,aAASmB,IAAI,GAAGA,KAAKD,GAAWC,KAAK;AACjC,UAAIF,EAAiB,KAAK,CAACZ,MAAYA,EAAQG,CAAI,CAAC;AAChD,eAAO;AAEX,MAAAA,IAAON,EAAQ,QAAQM,GAAM,CAAC;AAAA,IAClC;AAAA,EACJ;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index357.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/index358.js CHANGED
@@ -1,9 +1,48 @@
1
- import { rangeIncludesDate as m } from "./index172.js";
2
- import { defaultDateLib as r } from "./index152.js";
3
- function u(o, f, l = r) {
4
- return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
5
- }
1
+ import { evaluate as W, getPaddingObject as Y, getAlignmentAxis as k, getAlignment as q, getAxisLength as B, clamp as C } from "./index312.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
+ });
6
44
  export {
7
- u as rangeOverlaps
45
+ I as arrow,
46
+ F as baseArrow
8
47
  };
9
48
  //# sourceMappingURL=index358.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index358.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate"],"mappings":";;AAYO,SAASA,EAAcC,GAAWC,GAAYC,IAAUC,GAAgB;AAC3E,SAAQC,EAAkBJ,GAAWC,EAAW,MAAM,IAAOC,CAAO,KAChEE,EAAkBJ,GAAWC,EAAW,IAAI,IAAOC,CAAO,KAC1DE,EAAkBH,GAAYD,EAAU,MAAM,IAAOE,CAAO,KAC5DE,EAAkBH,GAAYD,EAAU,IAAI,IAAOE,CAAO;AAClE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index358.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,KAAW;AACb,aAAO,CAAA;AAET,UAAMI,IAAgBC,EAAiBJ,CAAO,GACxCK,IAAS;AAAA,MACb,GAAAb;AAAA,MACA,GAAAC;AAAA,IACN,GACUa,IAAOC,EAAiBb,CAAS,GACjCc,IAASC,EAAcH,CAAI,GAC3BI,IAAkB,MAAMd,EAAS,cAAcG,CAAO,GACtDY,IAAUL,MAAS,KACnBM,IAAUD,IAAU,QAAQ,QAC5BE,IAAUF,IAAU,WAAW,SAC/BG,IAAaH,IAAU,iBAAiB,eACxCI,IAAUpB,EAAM,UAAUa,CAAM,IAAIb,EAAM,UAAUW,CAAI,IAAID,EAAOC,CAAI,IAAIX,EAAM,SAASa,CAAM,GAChGQ,IAAYX,EAAOC,CAAI,IAAIX,EAAM,UAAUW,CAAI,GAC/CW,IAAoBhB,MAAiB,SAAS,MAAML,EAAS,kBAAkBG,CAAO,IAAIF,EAAS;AACzG,QAAIqB,IAAarB,EAAS,SAASiB,CAAU,KAAKnB,EAAM,SAASa,CAAM;AAGvE,KAAI,CAACU,KAAc,CAAE,MAAMtB,EAAS,YAAYqB,CAAiB,OAC/DC,IAAarB,EAAS,SAASiB,CAAU,KAAKnB,EAAM,SAASa,CAAM;AAErE,UAAMW,IAAoBJ,IAAU,IAAIC,IAAY,GAI9CI,IAAyBF,IAAa,IAAIR,EAAgBF,CAAM,IAAI,IAAI,GACxEa,IAAa,KAAK,IAAIlB,EAAcS,CAAO,GAAGQ,CAAsB,GACpEE,IAAa,KAAK,IAAInB,EAAcU,CAAO,GAAGO,CAAsB,GAIpEG,IAAMF,GACNG,IAAMN,IAAaR,EAAgBF,CAAM,IAAIc,GAC7CG,IAASP,IAAa,IAAIR,EAAgBF,CAAM,IAAI,IAAIW,GACxDO,IAASC,EAAMJ,GAAKE,GAAQD,CAAG,GAM/BI,IAAkB,CAAC9B,EAAe,SAAS+B,EAAanC,CAAS,KAAK,QAAQ+B,MAAWC,KAAU/B,EAAM,UAAUa,CAAM,IAAI,KAAKiB,IAASF,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/index359.js CHANGED
@@ -1,24 +1,21 @@
1
- import { VALID_DIGITS as n } from "./index89.js";
2
- var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
3
- function D(_) {
4
- var t = _.indexOf(a);
5
- if (t < 0)
6
- return null;
7
- var e = t + a.length;
8
- if (e >= _.length)
9
- return "";
10
- var A = _.indexOf(";", e);
11
- return A >= 0 ? _.substring(e, A) : _.substring(e);
12
- }
13
- function S(_) {
14
- return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
15
- }
1
+ import { hide as a } from "./index361.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
+ };
16
+ }
17
+ };
16
18
  export {
17
- v as PLUS_SIGN,
18
- u as RFC3966_ISDN_SUBADDRESS_,
19
- a as RFC3966_PHONE_CONTEXT_,
20
- l as RFC3966_PREFIX_,
21
- D as default,
22
- S as isPhoneContextValid
19
+ o as hide
23
20
  };
24
21
  //# sourceMappingURL=index359.js.map