@rpcbase/ui 0.247.0 → 0.249.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 (593) hide show
  1. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  2. package/dist/index105.js +36 -36
  3. package/dist/index117.js +6 -6
  4. package/dist/index120.js +10 -10
  5. package/dist/index122.js +2 -2
  6. package/dist/index123.js +3 -3
  7. package/dist/index124.js +1 -1
  8. package/dist/index126.js +2 -2
  9. package/dist/index128.js +2 -2
  10. package/dist/index150.js +3 -3
  11. package/dist/index156.js +1 -1
  12. package/dist/index16.js +157 -157
  13. package/dist/index16.js.map +1 -1
  14. package/dist/index163.js +2 -2
  15. package/dist/index164.js +7 -7
  16. package/dist/index167.js +4 -4
  17. package/dist/index169.js +1 -1
  18. package/dist/index171.js +14 -58
  19. package/dist/index171.js.map +1 -1
  20. package/dist/index172.js +68 -8
  21. package/dist/index172.js.map +1 -1
  22. package/dist/index173.js +37 -87
  23. package/dist/index173.js.map +1 -1
  24. package/dist/index174.js +13 -19
  25. package/dist/index174.js.map +1 -1
  26. package/dist/index175.js +23 -16
  27. package/dist/index175.js.map +1 -1
  28. package/dist/index176.js +111 -5
  29. package/dist/index176.js.map +1 -1
  30. package/dist/index177.js +13 -6
  31. package/dist/index177.js.map +1 -1
  32. package/dist/index178.js +4 -6
  33. package/dist/index178.js.map +1 -1
  34. package/dist/index179.js +4 -5
  35. package/dist/index179.js.map +1 -1
  36. package/dist/index180.js +5 -7
  37. package/dist/index180.js.map +1 -1
  38. package/dist/index181.js +11 -16
  39. package/dist/index181.js.map +1 -1
  40. package/dist/index182.js +19 -4
  41. package/dist/index182.js.map +1 -1
  42. package/dist/index183.js +11 -5
  43. package/dist/index183.js.map +1 -1
  44. package/dist/index184.js +176 -12
  45. package/dist/index184.js.map +1 -1
  46. package/dist/index185.js +279 -9
  47. package/dist/index185.js.map +1 -1
  48. package/dist/index186.js +4 -13
  49. package/dist/index186.js.map +1 -1
  50. package/dist/index187.js +28 -14
  51. package/dist/index187.js.map +1 -1
  52. package/dist/index188.js +126 -4
  53. package/dist/index188.js.map +1 -1
  54. package/dist/index189.js +63 -5
  55. package/dist/index189.js.map +1 -1
  56. package/dist/index190.js +8 -6
  57. package/dist/index190.js.map +1 -1
  58. package/dist/index191.js +16 -6
  59. package/dist/index191.js.map +1 -1
  60. package/dist/index192.js +29 -53
  61. package/dist/index192.js.map +1 -1
  62. package/dist/index193.js +69 -8
  63. package/dist/index193.js.map +1 -1
  64. package/dist/index194.js +20 -5
  65. package/dist/index194.js.map +1 -1
  66. package/dist/index195.js +66 -4
  67. package/dist/index195.js.map +1 -1
  68. package/dist/index196.js +6 -8
  69. package/dist/index196.js.map +1 -1
  70. package/dist/index197.js +5 -4
  71. package/dist/index197.js.map +1 -1
  72. package/dist/index198.js +11 -4
  73. package/dist/index198.js.map +1 -1
  74. package/dist/index199.js +3 -3
  75. package/dist/index199.js.map +1 -1
  76. package/dist/index200.js +50 -10
  77. package/dist/index200.js.map +1 -1
  78. package/dist/index201.js +4 -10
  79. package/dist/index201.js.map +1 -1
  80. package/dist/index202.js +29 -9
  81. package/dist/index202.js.map +1 -1
  82. package/dist/index203.js +16 -10
  83. package/dist/index203.js.map +1 -1
  84. package/dist/index204.js +5 -10
  85. package/dist/index204.js.map +1 -1
  86. package/dist/index205.js +21 -9
  87. package/dist/index205.js.map +1 -1
  88. package/dist/index206.js +53 -6
  89. package/dist/index206.js.map +1 -1
  90. package/dist/index207.js +20 -5
  91. package/dist/index207.js.map +1 -1
  92. package/dist/index208.js +41 -4
  93. package/dist/index208.js.map +1 -1
  94. package/dist/index209.js +39 -5
  95. package/dist/index209.js.map +1 -1
  96. package/dist/index210.js +46 -7
  97. package/dist/index210.js.map +1 -1
  98. package/dist/index211.js +20 -5
  99. package/dist/index211.js.map +1 -1
  100. package/dist/index212.js +67 -13
  101. package/dist/index212.js.map +1 -1
  102. package/dist/index213.js +17 -7
  103. package/dist/index213.js.map +1 -1
  104. package/dist/index214.js +3 -10
  105. package/dist/index214.js.map +1 -1
  106. package/dist/index215.js +11 -10
  107. package/dist/index215.js.map +1 -1
  108. package/dist/index216.js +13 -21
  109. package/dist/index216.js.map +1 -1
  110. package/dist/index217.js +18 -8
  111. package/dist/index217.js.map +1 -1
  112. package/dist/index218.js +36 -9
  113. package/dist/index218.js.map +1 -1
  114. package/dist/index219.js +239 -9
  115. package/dist/index219.js.map +1 -1
  116. package/dist/index220.js +252 -4
  117. package/dist/index220.js.map +1 -1
  118. package/dist/index221.js +68 -5
  119. package/dist/index221.js.map +1 -1
  120. package/dist/index222.js +98 -15
  121. package/dist/index222.js.map +1 -1
  122. package/dist/index223.js +83 -9
  123. package/dist/index223.js.map +1 -1
  124. package/dist/index224.js +3 -18
  125. package/dist/index224.js.map +1 -1
  126. package/dist/index225.js +28 -19
  127. package/dist/index225.js.map +1 -1
  128. package/dist/index226.js +16 -12
  129. package/dist/index226.js.map +1 -1
  130. package/dist/index227.js +34 -29
  131. package/dist/index227.js.map +1 -1
  132. package/dist/index228.js +17 -12
  133. package/dist/index228.js.map +1 -1
  134. package/dist/index229.js +3 -25
  135. package/dist/index229.js.map +1 -1
  136. package/dist/index230.js +26 -5
  137. package/dist/index230.js.map +1 -1
  138. package/dist/index231.js +28 -14
  139. package/dist/index231.js.map +1 -1
  140. package/dist/index232.js +4 -69
  141. package/dist/index232.js.map +1 -1
  142. package/dist/index233.js +79 -38
  143. package/dist/index233.js.map +1 -1
  144. package/dist/index234.js +273 -14
  145. package/dist/index234.js.map +1 -1
  146. package/dist/index235.js +11 -23
  147. package/dist/index235.js.map +1 -1
  148. package/dist/index236.js +10 -111
  149. package/dist/index236.js.map +1 -1
  150. package/dist/index237.js +26 -13
  151. package/dist/index237.js.map +1 -1
  152. package/dist/index238.js +16 -4
  153. package/dist/index238.js.map +1 -1
  154. package/dist/index239.js +126 -4
  155. package/dist/index239.js.map +1 -1
  156. package/dist/index240.js +6 -5
  157. package/dist/index240.js.map +1 -1
  158. package/dist/index241.js +65 -11
  159. package/dist/index241.js.map +1 -1
  160. package/dist/index242.js +14 -20
  161. package/dist/index242.js.map +1 -1
  162. package/dist/index243.js +8 -11
  163. package/dist/index243.js.map +1 -1
  164. package/dist/index244.js +5 -176
  165. package/dist/index244.js.map +1 -1
  166. package/dist/index245.js +3 -279
  167. package/dist/index245.js.map +1 -1
  168. package/dist/index246.js +10 -4
  169. package/dist/index246.js.map +1 -1
  170. package/dist/index247.js +8 -28
  171. package/dist/index247.js.map +1 -1
  172. package/dist/index248.js +131 -124
  173. package/dist/index248.js.map +1 -1
  174. package/dist/index249.js +397 -61
  175. package/dist/index249.js.map +1 -1
  176. package/dist/index250.js +5 -9
  177. package/dist/index250.js.map +1 -1
  178. package/dist/index251.js +53 -16
  179. package/dist/index251.js.map +1 -1
  180. package/dist/index252.js +11 -30
  181. package/dist/index252.js.map +1 -1
  182. package/dist/index253.js +27 -69
  183. package/dist/index253.js.map +1 -1
  184. package/dist/index254.js +10 -153
  185. package/dist/index254.js.map +1 -1
  186. package/dist/index255.js +58 -32
  187. package/dist/index255.js.map +1 -1
  188. package/dist/index256.js +8 -11
  189. package/dist/index256.js.map +1 -1
  190. package/dist/index257.js +81 -43
  191. package/dist/index257.js.map +1 -1
  192. package/dist/index258.js +19 -9
  193. package/dist/index258.js.map +1 -1
  194. package/dist/index259.js +16 -11
  195. package/dist/index259.js.map +1 -1
  196. package/dist/index260.js +4 -42
  197. package/dist/index260.js.map +1 -1
  198. package/dist/index261.js +4 -96
  199. package/dist/index261.js.map +1 -1
  200. package/dist/index262.js +6 -86
  201. package/dist/index262.js.map +1 -1
  202. package/dist/index263.js +4 -105
  203. package/dist/index263.js.map +1 -1
  204. package/dist/index264.js +6 -52
  205. package/dist/index264.js.map +1 -1
  206. package/dist/index265.js +16 -11
  207. package/dist/index265.js.map +1 -1
  208. package/dist/index266.js +4 -4
  209. package/dist/index266.js.map +1 -1
  210. package/dist/index267.js +4 -37
  211. package/dist/index267.js.map +1 -1
  212. package/dist/index268.js +12 -8
  213. package/dist/index268.js.map +1 -1
  214. package/dist/index269.js +9 -3
  215. package/dist/index269.js.map +1 -1
  216. package/dist/index270.js +13 -9
  217. package/dist/index270.js.map +1 -1
  218. package/dist/index271.js +13 -135
  219. package/dist/index271.js.map +1 -1
  220. package/dist/index272.js +4 -17
  221. package/dist/index272.js.map +1 -1
  222. package/dist/index273.js +5 -15
  223. package/dist/index273.js.map +1 -1
  224. package/dist/index274.js +6 -36
  225. package/dist/index274.js.map +1 -1
  226. package/dist/index275.js +5 -20
  227. package/dist/index275.js.map +1 -1
  228. package/dist/index276.js +54 -8
  229. package/dist/index276.js.map +1 -1
  230. package/dist/index277.js +8 -24
  231. package/dist/index277.js.map +1 -1
  232. package/dist/index278.js +4 -28
  233. package/dist/index278.js.map +1 -1
  234. package/dist/index279.js +4 -16
  235. package/dist/index279.js.map +1 -1
  236. package/dist/index280.js +9 -20
  237. package/dist/index280.js.map +1 -1
  238. package/dist/index281.js +4 -66
  239. package/dist/index281.js.map +1 -1
  240. package/dist/index282.js +4 -6
  241. package/dist/index282.js.map +1 -1
  242. package/dist/index283.js +3 -5
  243. package/dist/index283.js.map +1 -1
  244. package/dist/index284.js +10 -11
  245. package/dist/index284.js.map +1 -1
  246. package/dist/index285.js +9 -3
  247. package/dist/index285.js.map +1 -1
  248. package/dist/index286.js +9 -50
  249. package/dist/index286.js.map +1 -1
  250. package/dist/index287.js +11 -4
  251. package/dist/index287.js.map +1 -1
  252. package/dist/index288.js +10 -29
  253. package/dist/index288.js.map +1 -1
  254. package/dist/index289.js +9 -16
  255. package/dist/index289.js.map +1 -1
  256. package/dist/index290.js +6 -5
  257. package/dist/index290.js.map +1 -1
  258. package/dist/index291.js +5 -21
  259. package/dist/index291.js.map +1 -1
  260. package/dist/index292.js +4 -53
  261. package/dist/index292.js.map +1 -1
  262. package/dist/index293.js +5 -20
  263. package/dist/index293.js.map +1 -1
  264. package/dist/index294.js +6 -41
  265. package/dist/index294.js.map +1 -1
  266. package/dist/index295.js +5 -39
  267. package/dist/index295.js.map +1 -1
  268. package/dist/index296.js +30 -46
  269. package/dist/index296.js.map +1 -1
  270. package/dist/index297.js +11 -19
  271. package/dist/index297.js.map +1 -1
  272. package/dist/index298.js +23 -68
  273. package/dist/index298.js.map +1 -1
  274. package/dist/index299.js +5 -17
  275. package/dist/index299.js.map +1 -1
  276. package/dist/index300.js +16 -3
  277. package/dist/index300.js.map +1 -1
  278. package/dist/index301.js +7 -11
  279. package/dist/index301.js.map +1 -1
  280. package/dist/index302.js +10 -13
  281. package/dist/index302.js.map +1 -1
  282. package/dist/index303.js +10 -18
  283. package/dist/index303.js.map +1 -1
  284. package/dist/index304.js +21 -36
  285. package/dist/index304.js.map +1 -1
  286. package/dist/index305.js +8 -239
  287. package/dist/index305.js.map +1 -1
  288. package/dist/index306.js +9 -252
  289. package/dist/index306.js.map +1 -1
  290. package/dist/index307.js +9 -68
  291. package/dist/index307.js.map +1 -1
  292. package/dist/index308.js +4 -99
  293. package/dist/index308.js.map +1 -1
  294. package/dist/index309.js +5 -83
  295. package/dist/index309.js.map +1 -1
  296. package/dist/index310.js +16 -3
  297. package/dist/index310.js.map +1 -1
  298. package/dist/index311.js +9 -29
  299. package/dist/index311.js.map +1 -1
  300. package/dist/index312.js +18 -16
  301. package/dist/index312.js.map +1 -1
  302. package/dist/index313.js +21 -35
  303. package/dist/index313.js.map +1 -1
  304. package/dist/index314.js +10 -15
  305. package/dist/index314.js.map +1 -1
  306. package/dist/index315.js +154 -3
  307. package/dist/index315.js.map +1 -1
  308. package/dist/index316.js +31 -25
  309. package/dist/index316.js.map +1 -1
  310. package/dist/index317.js +11 -28
  311. package/dist/index317.js.map +1 -1
  312. package/dist/index318.js +50 -4
  313. package/dist/index318.js.map +1 -1
  314. package/dist/index319.js +9 -78
  315. package/dist/index319.js.map +1 -1
  316. package/dist/index320.js +10 -271
  317. package/dist/index320.js.map +1 -1
  318. package/dist/index321.js +43 -11
  319. package/dist/index321.js.map +1 -1
  320. package/dist/index322.js +97 -10
  321. package/dist/index322.js.map +1 -1
  322. package/dist/index323.js +86 -25
  323. package/dist/index323.js.map +1 -1
  324. package/dist/index324.js +104 -15
  325. package/dist/index324.js.map +1 -1
  326. package/dist/index325.js +50 -123
  327. package/dist/index325.js.map +1 -1
  328. package/dist/index326.js +11 -5
  329. package/dist/index326.js.map +1 -1
  330. package/dist/index327.js +4 -65
  331. package/dist/index327.js.map +1 -1
  332. package/dist/index328.js +37 -13
  333. package/dist/index328.js.map +1 -1
  334. package/dist/index329.js +8 -7
  335. package/dist/index329.js.map +1 -1
  336. package/dist/index330.js +3 -5
  337. package/dist/index330.js.map +1 -1
  338. package/dist/index331.js +135 -3
  339. package/dist/index331.js.map +1 -1
  340. package/dist/index332.js +17 -10
  341. package/dist/index332.js.map +1 -1
  342. package/dist/index333.js +15 -7
  343. package/dist/index333.js.map +1 -1
  344. package/dist/index334.js +32 -129
  345. package/dist/index334.js.map +1 -1
  346. package/dist/index335.js +18 -397
  347. package/dist/index335.js.map +1 -1
  348. package/dist/index336.js +9 -5
  349. package/dist/index336.js.map +1 -1
  350. package/dist/index337.js +9 -52
  351. package/dist/index337.js.map +1 -1
  352. package/dist/index338.js +24 -11
  353. package/dist/index338.js.map +1 -1
  354. package/dist/index339.js +28 -27
  355. package/dist/index339.js.map +1 -1
  356. package/dist/index34.js +2 -2
  357. package/dist/index340.js +16 -11
  358. package/dist/index340.js.map +1 -1
  359. package/dist/index341.js +8 -4
  360. package/dist/index341.js.map +1 -1
  361. package/dist/index342.js +12 -18
  362. package/dist/index342.js.map +1 -1
  363. package/dist/index343.js +8 -12
  364. package/dist/index343.js.map +1 -1
  365. package/dist/index344.js +13 -8
  366. package/dist/index344.js.map +1 -1
  367. package/dist/index345.js +3 -11
  368. package/dist/index345.js.map +1 -1
  369. package/dist/index346.js +3 -8
  370. package/dist/index346.js.map +1 -1
  371. package/dist/index347.js +16 -12
  372. package/dist/index347.js.map +1 -1
  373. package/dist/index348.js +51 -3
  374. package/dist/index348.js.map +1 -1
  375. package/dist/index349.js +5 -3
  376. package/dist/index349.js.map +1 -1
  377. package/dist/index35.js +5 -5
  378. package/dist/index350.js +60 -16
  379. package/dist/index350.js.map +1 -1
  380. package/dist/index351.js +66 -5
  381. package/dist/index351.js.map +1 -1
  382. package/dist/index352.js +140 -47
  383. package/dist/index352.js.map +1 -1
  384. package/dist/index353.js +77 -59
  385. package/dist/index353.js.map +1 -1
  386. package/dist/index354.js +59 -64
  387. package/dist/index354.js.map +1 -1
  388. package/dist/index355.js +15 -9
  389. package/dist/index355.js.map +1 -1
  390. package/dist/index356.js +9 -5
  391. package/dist/index356.js.map +1 -1
  392. package/dist/index357.js +4 -11
  393. package/dist/index357.js.map +1 -1
  394. package/dist/index358.js +11 -21
  395. package/dist/index358.js.map +1 -1
  396. package/dist/index359.js +19 -14
  397. package/dist/index359.js.map +1 -1
  398. package/dist/index36.js +11 -11
  399. package/dist/index360.js +17 -8
  400. package/dist/index360.js.map +1 -1
  401. package/dist/index361.js +8 -145
  402. package/dist/index361.js.map +1 -1
  403. package/dist/index362.js +4 -80
  404. package/dist/index362.js.map +1 -1
  405. package/dist/index363.js +5 -61
  406. package/dist/index363.js.map +1 -1
  407. package/dist/index364.js +3 -15
  408. package/dist/index364.js.map +1 -1
  409. package/dist/index365.js +11 -4
  410. package/dist/index365.js.map +1 -1
  411. package/dist/index366.js +20 -20
  412. package/dist/index366.js.map +1 -1
  413. package/dist/index367.js +45 -4
  414. package/dist/index367.js.map +1 -1
  415. package/dist/index368.js +18 -6
  416. package/dist/index368.js.map +1 -1
  417. package/dist/index369.js +5 -3
  418. package/dist/index369.js.map +1 -1
  419. package/dist/index37.js +3 -3
  420. package/dist/index370.js +199 -10
  421. package/dist/index370.js.map +1 -1
  422. package/dist/index371.js +73 -20
  423. package/dist/index371.js.map +1 -1
  424. package/dist/index372.js +122 -43
  425. package/dist/index372.js.map +1 -1
  426. package/dist/index373.js +5 -18
  427. package/dist/index373.js.map +1 -1
  428. package/dist/index374.js +17 -4
  429. package/dist/index374.js.map +1 -1
  430. package/dist/index375.js +12 -200
  431. package/dist/index375.js.map +1 -1
  432. package/dist/index376.js +4 -73
  433. package/dist/index376.js.map +1 -1
  434. package/dist/index377.js +19 -122
  435. package/dist/index377.js.map +1 -1
  436. package/dist/index378.js +8 -4
  437. package/dist/index378.js.map +1 -1
  438. package/dist/index379.js +27 -5
  439. package/dist/index379.js.map +1 -1
  440. package/dist/index38.js +4 -4
  441. package/dist/index380.js +138 -4
  442. package/dist/index380.js.map +1 -1
  443. package/dist/index381.js +12 -15
  444. package/dist/index381.js.map +1 -1
  445. package/dist/index382.js +46 -8
  446. package/dist/index382.js.map +1 -1
  447. package/dist/index383.js +3 -5
  448. package/dist/index383.js.map +1 -1
  449. package/dist/index384.js +21 -4
  450. package/dist/index384.js.map +1 -1
  451. package/dist/index385.js +72 -542
  452. package/dist/index385.js.map +1 -1
  453. package/dist/index386.js +11 -46
  454. package/dist/index386.js.map +1 -1
  455. package/dist/index387.js +3 -17
  456. package/dist/index387.js.map +1 -1
  457. package/dist/index388.js +71 -5
  458. package/dist/index388.js.map +1 -1
  459. package/dist/index389.js +35 -7
  460. package/dist/index389.js.map +1 -1
  461. package/dist/index39.js +5 -5
  462. package/dist/index390.js +7 -7
  463. package/dist/index390.js.map +1 -1
  464. package/dist/index391.js +15 -7
  465. package/dist/index391.js.map +1 -1
  466. package/dist/index392.js +3 -12
  467. package/dist/index392.js.map +1 -1
  468. package/dist/index393.js +3 -9
  469. package/dist/index393.js.map +1 -1
  470. package/dist/index394.js +4 -12
  471. package/dist/index394.js.map +1 -1
  472. package/dist/index395.js +4 -8
  473. package/dist/index395.js.map +1 -1
  474. package/dist/index396.js +4 -27
  475. package/dist/index396.js.map +1 -1
  476. package/dist/index397.js +14 -136
  477. package/dist/index397.js.map +1 -1
  478. package/dist/index398.js +8 -12
  479. package/dist/index398.js.map +1 -1
  480. package/dist/index399.js +5 -46
  481. package/dist/index399.js.map +1 -1
  482. package/dist/index40.js +3 -3
  483. package/dist/index400.js +4 -3
  484. package/dist/index400.js.map +1 -1
  485. package/dist/index401.js +544 -20
  486. package/dist/index401.js.map +1 -1
  487. package/dist/index402.js +46 -75
  488. package/dist/index402.js.map +1 -1
  489. package/dist/index403.js +18 -12
  490. package/dist/index403.js.map +1 -1
  491. package/dist/index404.js +5 -3
  492. package/dist/index404.js.map +1 -1
  493. package/dist/index405.js +7 -71
  494. package/dist/index405.js.map +1 -1
  495. package/dist/index406.js +6 -35
  496. package/dist/index406.js.map +1 -1
  497. package/dist/index407.js +8 -7
  498. package/dist/index407.js.map +1 -1
  499. package/dist/index408.js +11 -15
  500. package/dist/index408.js.map +1 -1
  501. package/dist/index409.js +9 -3
  502. package/dist/index409.js.map +1 -1
  503. package/dist/index41.js +10 -10
  504. package/dist/index410.js +13 -3
  505. package/dist/index410.js.map +1 -1
  506. package/dist/index411.js +3 -5
  507. package/dist/index411.js.map +1 -1
  508. package/dist/index412.js +14 -55
  509. package/dist/index412.js.map +1 -1
  510. package/dist/index413.js +490 -66
  511. package/dist/index413.js.map +1 -1
  512. package/dist/index414.js +8 -31
  513. package/dist/index414.js.map +1 -1
  514. package/dist/index415.js +2 -9
  515. package/dist/index415.js.map +1 -1
  516. package/dist/index416.js +41 -150
  517. package/dist/index416.js.map +1 -1
  518. package/dist/index417.js +56 -108
  519. package/dist/index417.js.map +1 -1
  520. package/dist/index418.js +7 -14
  521. package/dist/index418.js.map +1 -1
  522. package/dist/index419.js +2 -3
  523. package/dist/index419.js.map +1 -1
  524. package/dist/index420.js +50 -487
  525. package/dist/index420.js.map +1 -1
  526. package/dist/index421.js +55 -7
  527. package/dist/index421.js.map +1 -1
  528. package/dist/index422.js +33 -2
  529. package/dist/index422.js.map +1 -1
  530. package/dist/index423.js +4 -43
  531. package/dist/index423.js.map +1 -1
  532. package/dist/index424.js +55 -55
  533. package/dist/index424.js.map +1 -1
  534. package/dist/index425.js +68 -8
  535. package/dist/index425.js.map +1 -1
  536. package/dist/index426.js +31 -2
  537. package/dist/index426.js.map +1 -1
  538. package/dist/index427.js +9 -55
  539. package/dist/index427.js.map +1 -1
  540. package/dist/index428.js +152 -55
  541. package/dist/index428.js.map +1 -1
  542. package/dist/index429.js +107 -32
  543. package/dist/index429.js.map +1 -1
  544. package/dist/index430.js +2 -16
  545. package/dist/index430.js.map +1 -1
  546. package/dist/index431.js +2 -29
  547. package/dist/index431.js.map +1 -1
  548. package/dist/index432.js +2 -13
  549. package/dist/index432.js.map +1 -1
  550. package/dist/index433.js +2 -7
  551. package/dist/index433.js.map +1 -1
  552. package/dist/index434.js +16 -2
  553. package/dist/index434.js.map +1 -1
  554. package/dist/index435.js +29 -2
  555. package/dist/index435.js.map +1 -1
  556. package/dist/index436.js +13 -2
  557. package/dist/index436.js.map +1 -1
  558. package/dist/index437.js +7 -2
  559. package/dist/index437.js.map +1 -1
  560. package/dist/index44.js +1 -1
  561. package/dist/index45.js +2 -2
  562. package/dist/index49.js +36 -36
  563. package/dist/index50.js +29 -29
  564. package/dist/index51.js +2 -2
  565. package/dist/index52.js +12 -12
  566. package/dist/index53.js +4 -4
  567. package/dist/index54.js +1 -1
  568. package/dist/index55.js +21 -21
  569. package/dist/index56.js +5 -5
  570. package/dist/index57.js +5 -5
  571. package/dist/index58.js +8 -8
  572. package/dist/index59.js +5 -5
  573. package/dist/index60.js +17 -17
  574. package/dist/index61.js +5 -5
  575. package/dist/index62.js +3 -3
  576. package/dist/index66.js +1 -1
  577. package/dist/index67.js +1 -1
  578. package/dist/index70.js +1 -1
  579. package/dist/index71.js +1 -1
  580. package/dist/index72.js +6 -2
  581. package/dist/index72.js.map +1 -1
  582. package/dist/index73.js +8 -2
  583. package/dist/index73.js.map +1 -1
  584. package/dist/index74.js +6 -2
  585. package/dist/index74.js.map +1 -1
  586. package/dist/index75.js +2 -2
  587. package/dist/index76.js +2 -6
  588. package/dist/index76.js.map +1 -1
  589. package/dist/index77.js +2 -8
  590. package/dist/index77.js.map +1 -1
  591. package/dist/index78.js +2 -6
  592. package/dist/index78.js.map +1 -1
  593. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index213.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":["getDays","calendarMonths","initialDays","days","month","weekDays","week"],"mappings":"AAQO,SAASA,EAAQC,GAAgB;AACpC,QAAMC,IAAc,CAAA;AACpB,SAAOD,EAAe,OAAO,CAACE,GAAMC,MAAU;AAC1C,UAAMC,IAAWD,EAAM,MAAM,OAAO,CAACC,GAAUC,MACpCD,EAAS,OAAOC,EAAK,KAAK,MAAK,CAAE,GACzCJ,EAAY,OAAO;AACtB,WAAOC,EAAK,OAAOE,EAAS,MAAK,CAAE;AAAA,EACvC,GAAGH,EAAY,OAAO;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index213.js","sources":["../../../node_modules/@base-ui/react/internals/itemEquality.mjs"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
package/dist/index214.js CHANGED
@@ -1,14 +1,7 @@
1
- function i(e, o, h, r) {
2
- const { numberOfMonths: f = 1 } = h, n = [];
3
- for (let t = 0; t < f; t++) {
4
- const s = r.addMonths(e, t);
5
- if (o && s > o)
6
- break;
7
- n.push(s);
8
- }
9
- return n;
1
+ function u(t, l, r = (e, n) => e === n) {
2
+ return t.length === l.length && t.every((e, n) => r(e, l[n]));
10
3
  }
11
4
  export {
12
- i as getDisplayMonths
5
+ u as areArraysEqual
13
6
  };
14
7
  //# sourceMappingURL=index214.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index214.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month"],"mappings":"AAUO,SAASA,EAAiBC,GAAqBC,GAAkBC,GAAOC,GAAS;AACpF,QAAM,EAAE,gBAAAC,IAAiB,EAAC,IAAKF,GACzBG,IAAS,CAAA;AACf,WAASC,IAAI,GAAGA,IAAIF,GAAgBE,KAAK;AACrC,UAAMC,IAAQJ,EAAQ,UAAUH,GAAqBM,CAAC;AACtD,QAAIL,KAAoBM,IAAQN;AAC5B;AAEJ,IAAAI,EAAO,KAAKE,CAAK;AAAA,EACrB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index214.js","sources":["../../../node_modules/@base-ui/react/internals/areArraysEqual.mjs"],"sourcesContent":["export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {\n return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));\n}"],"names":["areArraysEqual","array1","array2","itemComparer","a","b","value","index"],"mappings":"AAAO,SAASA,EAAeC,GAAQC,GAAQC,IAAe,CAACC,GAAGC,MAAMD,MAAMC,GAAG;AAC/E,SAAOJ,EAAO,WAAWC,EAAO,UAAUD,EAAO,MAAM,CAACK,GAAOC,MAAUJ,EAAaG,GAAOJ,EAAOK,CAAK,CAAC,CAAC;AAC7G;","x_google_ignoreList":[0]}
package/dist/index215.js CHANGED
@@ -1,14 +1,15 @@
1
- function u(i, o, n, e) {
2
- const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
3
- let t = s || M || c;
4
- const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
5
- if (n && h(n, t) < f - 1) {
6
- const d = -1 * (f - 1);
7
- t = l(n, d);
8
- }
9
- return o && h(t, o) < 0 && (t = o), r(t);
1
+ import * as c from "react";
2
+ import { useIsoLayoutEffect as o } from "./index201.js";
3
+ import { useStableCallback as f } from "./index202.js";
4
+ function u(r, n) {
5
+ const t = c.useRef(r), e = f(n);
6
+ o(() => {
7
+ t.current !== r && e(t.current);
8
+ }, [r, e]), o(() => {
9
+ t.current = r;
10
+ }, [r]);
10
11
  }
11
12
  export {
12
- u as getInitialMonth
13
+ u as useValueChanged
13
14
  };
14
15
  //# sourceMappingURL=index215.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index215.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, navStart, navEnd, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n if (navEnd &&\n differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(navEnd, offset);\n }\n if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {\n initialMonth = navStart;\n }\n return startOfMonth(initialMonth);\n}\n"],"names":["getInitialMonth","props","navStart","navEnd","dateLib","month","defaultMonth","today","numberOfMonths","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAWO,SAASA,EAAgBC,GAAOC,GAAUC,GAAQC,GAAS;AAC9D,QAAM,EAAE,OAAAC,GAAO,cAAAC,GAAc,OAAAC,IAAQH,EAAQ,SAAS,gBAAAI,IAAiB,EAAC,IAAMP;AAC9E,MAAIQ,IAAeJ,KAASC,KAAgBC;AAC5C,QAAM,EAAE,4BAAAG,GAA4B,WAAAC,GAAW,cAAAC,EAAY,IAAKR;AAChE,MAAID,KACAO,EAA2BP,GAAQM,CAAY,IAAID,IAAiB,GAAG;AACvE,UAAMK,IAAS,MAAML,IAAiB;AACtC,IAAAC,IAAeE,EAAUR,GAAQU,CAAM;AAAA,EAC3C;AACA,SAAIX,KAAYQ,EAA2BD,GAAcP,CAAQ,IAAI,MACjEO,IAAeP,IAEZU,EAAaH,CAAY;AACpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index215.js","sources":["../../../node_modules/@base-ui/react/internals/useValueChanged.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
package/dist/index216.js CHANGED
@@ -1,25 +1,17 @@
1
- import { CalendarDay as F } from "./index175.js";
2
- import { CalendarWeek as N } from "./index177.js";
3
- import { CalendarMonth as P } from "./index176.js";
4
- function j(l, f, e, c) {
5
- const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
6
- const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
7
- if (e.fixedWeeks && a.length < O) {
8
- const r = f.filter((n) => {
9
- const s = O - a.length;
10
- return n > d && n <= y(d, s);
11
- });
12
- a.push(...r);
13
- }
14
- const b = a.reduce((r, n) => {
15
- const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
16
- return i ? i.days.push(u) : r.push(new N(s, [u])), r;
17
- }, []), v = new P(t, b);
18
- return W.push(v), W;
19
- }, []);
20
- return e.reverseMonths ? o.reverse() : o;
1
+ import { clamp as s } from "./index245.js";
2
+ const f = 1;
3
+ function a(n, t) {
4
+ return Math.max(0, n - t);
5
+ }
6
+ function u(n, t) {
7
+ if (t <= 0)
8
+ return 0;
9
+ const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
+ return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
21
11
  }
22
12
  export {
23
- j as getMonths
13
+ f as SCROLL_EDGE_TOLERANCE_PX,
14
+ a as getMaxScrollOffset,
15
+ u as normalizeScrollOffset
24
16
  };
25
17
  //# sourceMappingURL=index216.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index216.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":";;;AAeO,SAASA,EAAUC,GAAeC,GAAOC,GAAOC,GAAS;AAC5D,QAAM,EAAE,SAAAC,GAAS,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMV,GAChJW,IAAkBd,EAAc,OAAO,CAACe,GAAQC,MAAU;AAC5D,UAAMC,IAAuBf,EAAM,oBAC7BS,EAAqBK,GAAOb,CAAO,IACnCD,EAAM,UACFU,EAAeI,CAAK,IACpBH,EAAYG,CAAK,GACrBE,IAAqBhB,EAAM,oBAC3BG,EAAmBW,CAAK,IACxBd,EAAM,UACFI,EAAaC,EAAWS,CAAK,CAAC,IAC9BR,EAAUD,EAAWS,CAAK,CAAC,GAE/BG,IAAalB,EAAM,OAAO,CAACmB,MACtBA,KAAQH,KAAwBG,KAAQF,CAClD,GACKG,IAAyBnB,EAAM,oBAAoB,KAAK;AAC9D,QAAIA,EAAM,cAAciB,EAAW,SAASE,GAAwB;AAChE,YAAMC,IAAarB,EAAM,OAAO,CAACmB,MAAS;AACtC,cAAMG,IAAYF,IAAyBF,EAAW;AACtD,eAAQC,IAAOF,KACXE,KAAQhB,EAAQc,GAAoBK,CAAS;AAAA,MACrD,CAAC;AACD,MAAAJ,EAAW,KAAK,GAAGG,CAAU;AAAA,IACjC;AACA,UAAME,IAAQL,EAAW,OAAO,CAACK,GAAOJ,MAAS;AAC7C,YAAMK,IAAavB,EAAM,UAAUO,EAAWW,CAAI,IAAIV,EAAQU,CAAI,GAC5DM,IAAOF,EAAM,KAAK,CAACE,MAASA,EAAK,eAAeD,CAAU,GAC1DE,IAAM,IAAIC,EAAYR,GAAMJ,GAAOb,CAAO;AAChD,aAAKuB,IAIDA,EAAK,KAAK,KAAKC,CAAG,IAHlBH,EAAM,KAAK,IAAIK,EAAaJ,GAAY,CAACE,CAAG,CAAC,CAAC,GAK3CH;AAAA,IACX,GAAG,CAAA,CAAE,GACCM,IAAiB,IAAIC,EAAcf,GAAOQ,CAAK;AACrD,WAAAT,EAAO,KAAKe,CAAc,GACnBf;AAAA,EACX,GAAG,CAAA,CAAE;AACL,SAAKb,EAAM,gBAIAY,EAAgB,QAAO,IAHvBA;AAKf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index216.js","sources":["../../../node_modules/@base-ui/react/utils/scrollEdges.mjs"],"sourcesContent":["import { clamp } from \"../internals/clamp.mjs\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
package/dist/index217.js CHANGED
@@ -1,12 +1,22 @@
1
- function c(n, r) {
2
- let { startMonth: t, endMonth: a } = n;
3
- const { startOfYear: f, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: y, endOfYear: h, today: e } = r, d = n.captionLayout === "dropdown" || n.captionLayout === "dropdown-years";
4
- return t ? t = s(t) : !t && d && (t = f(y(n.today ?? e(), -100))), a ? a = i(a) : !a && d && (a = h(n.today ?? e())), [
5
- t && o(t),
6
- a && o(a)
7
- ];
1
+ import * as c from "react";
2
+ import { s as u } from "./index392.js";
3
+ import { w as i } from "./index393.js";
4
+ import { isReactVersionAtLeast as S } from "./index349.js";
5
+ const a = S(19), m = a ? f : l;
6
+ function g(t, e, r, n, o) {
7
+ return m(t, e, r, n, o);
8
+ }
9
+ function p(t, e, r, n, o) {
10
+ const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
+ return u.useSyncExternalStore(t.subscribe, s, s);
12
+ }
13
+ function f(t, e, r, n, o) {
14
+ return p(t, e, r, n, o);
15
+ }
16
+ function l(t, e, r, n, o) {
17
+ return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
8
18
  }
9
19
  export {
10
- c as getNavMonths
20
+ g as useStore
11
21
  };
12
22
  //# sourceMappingURL=index217.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index217.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, today, } = dateLib;\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","today","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,GAAOC,GAAS;AACzC,MAAI,EAAE,YAAAC,GAAY,UAAAC,EAAQ,IAAKH;AAC/B,QAAM,EAAE,aAAAI,GAAa,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,UAAAC,GAAU,WAAAC,GAAW,OAAAC,EAAK,IAAMT,GACrFU,IAAkBX,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/B,CAACA,KAAcS,MACpBT,IAAaE,EAAYI,EAASR,EAAM,SAASU,EAAK,GAAI,IAAI,CAAC,IAE/DP,IACAA,IAAWI,EAAWJ,CAAQ,IAEzB,CAACA,KAAYQ,MAClBR,IAAWM,EAAUT,EAAM,SAASU,EAAK,CAAE,IAExC;AAAA,IACHR,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index217.js","sources":["../../../node_modules/@base-ui/utils/store/useStore.mjs"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAkDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA8BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
package/dist/index218.js CHANGED
@@ -1,13 +1,40 @@
1
- function h(n, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
5
- if (!t)
6
- return o(r, i);
7
- if (!(d(t, n) < f))
8
- return o(r, i);
1
+ import { isElement as l } from "./index248.js";
2
+ import { useId as c } from "./index347.js";
3
+ import { useIsoLayoutEffect as a } from "./index201.js";
4
+ import { useRefWithInit as m } from "./index196.js";
5
+ import { useFloatingParentNodeId as u } from "./index386.js";
6
+ import { FloatingRootStore as p } from "./index388.js";
7
+ import { PopupTriggerMap as d } from "./index354.js";
8
+ function y(s) {
9
+ const {
10
+ open: o = !1,
11
+ onOpenChange: f,
12
+ elements: e = {}
13
+ } = s, r = c(), i = u() != null;
14
+ if (process.env.NODE_ENV !== "production") {
15
+ const n = e.reference;
16
+ n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
17
+ }
18
+ const t = m(() => new p({
19
+ open: o,
20
+ transitionStatus: void 0,
21
+ onOpenChange: f,
22
+ referenceElement: e.reference ?? null,
23
+ floatingElement: e.floating ?? null,
24
+ triggerElements: new d(),
25
+ floatingId: r,
26
+ syncOnly: !1,
27
+ nested: i
28
+ })).current;
29
+ return a(() => {
30
+ const n = {
31
+ open: o,
32
+ floatingId: r
33
+ };
34
+ e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
+ }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
9
36
  }
10
37
  export {
11
- h as getNextMonth
38
+ y as useFloatingRootContext
12
39
  };
13
40
  //# sourceMappingURL=index218.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index218.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,GAAqBC,GAAkBC,GAASC,GAAS;AAClF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,IAAiB,EAAC,IAAKH,GAC1C,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAkBC,IAAiB,GAC5CK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAOD,CAAM;AAGlC,MAAI,EADeD,EAA2BP,GAAkBD,CAAmB,IAClEK;AAGjB,WAAOE,EAAUG,GAAOD,CAAM;AAClC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index218.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { PopupTriggerMap } from \"../../utils/popups/index.mjs\";\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.mjs\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.mjs\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useFloatingRootContext","options","open","onOpenChange","elements","floatingId","useId","nested","useFloatingParentNodeId","optionDomReference","isElement","store","useRefWithInit","FloatingRootStore","PopupTriggerMap","useIsoLayoutEffect","valuesToSync"],"mappings":";;;;;;;AASO,SAASA,EAAuBC,GAAS;AAC9C,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC,IAAW,CAAA;AAAA,EACf,IAAMH,GACEI,IAAaC,EAAK,GAClBC,IAASC,EAAuB,KAAM;AAC5C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAqBL,EAAS;AACpC,IAAIK,KAAsB,CAACC,EAAUD,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;AAAA,EAE3K;AACA,QAAME,IAAQC,EAAe,MAAM,IAAIC,EAAkB;AAAA,IACvD,MAAAX;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,kBAAkBC,EAAS,aAAa;AAAA,IACxC,iBAAiBA,EAAS,YAAY;AAAA,IACtC,iBAAiB,IAAIU,EAAe;AAAA,IACpC,YAAAT;AAAA,IACA,UAAU;AAAA,IACV,QAAAE;AAAA,EACJ,CAAG,CAAC,EAAE;AACJ,SAAAQ,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAd;AAAA,MACA,YAAAG;AAAA,IACN;AAGI,IAAID,EAAS,cAAc,WACzBY,EAAa,mBAAmBZ,EAAS,WACzCY,EAAa,sBAAsBN,EAAUN,EAAS,SAAS,IAAIA,EAAS,YAAY,OAEtFA,EAAS,aAAa,WACxBY,EAAa,kBAAkBZ,EAAS,WAE1CO,EAAM,OAAOK,CAAY;AAAA,EAC3B,GAAG,CAACd,GAAMG,GAAYD,EAAS,WAAWA,EAAS,UAAUO,CAAK,CAAC,GACnEA,EAAM,QAAQ,eAAeR,GAC7BQ,EAAM,QAAQ,SAASJ,GAChBI;AACT;","x_google_ignoreList":[0]}
package/dist/index219.js CHANGED
@@ -1,13 +1,243 @@
1
- function c(i, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
5
- if (!t)
6
- return f(n, -o);
7
- if (!(a(n, t) <= 0))
8
- return f(n, -o);
1
+ import * as l from "react";
2
+ import { addEventListener as i } from "./index240.js";
3
+ import { mergeCleanups as G } from "./index378.js";
4
+ import { ownerDocument as fe } from "./index224.js";
5
+ import { useStableCallback as p } from "./index202.js";
6
+ import { useTimeout as de, Timeout as pe } from "./index225.js";
7
+ import { isElement as _, isShadowRoot as Be, isLastTraversableNode as J, getParentNode as ve, isHTMLElement as Ae, getComputedStyle as He } from "./index248.js";
8
+ import { useFloatingTree as Ne } from "./index386.js";
9
+ import { createChangeEventDetails as Q } from "./index175.js";
10
+ import { createAttribute as Le } from "./index383.js";
11
+ import { isEventTargetWithin as Z, isRootElement as Fe } from "./index230.js";
12
+ import { isReactEvent as $e } from "./index253.js";
13
+ import { getNodeChildren as me } from "./index381.js";
14
+ import { getTarget as z, contains as B } from "./index231.js";
15
+ import { triggerPress as qe, escapeKey as Ve, outsidePress as Ue } from "./index177.js";
16
+ import { webkit as je } from "./index250.js";
17
+ function Ge() {
18
+ return !1;
19
+ }
20
+ function Je(f) {
21
+ return {
22
+ escapeKey: typeof f == "boolean" ? f : f?.escapeKey ?? !1,
23
+ outsidePress: typeof f == "boolean" ? f : f?.outsidePress ?? !0
24
+ };
25
+ }
26
+ function dt(f, he = {}) {
27
+ const {
28
+ enabled: m = !0,
29
+ escapeKey: v = !0,
30
+ outsidePress: I = !0,
31
+ outsidePressEvent: ge = "sloppy",
32
+ referencePress: ye = Ge,
33
+ bubbles: Pe,
34
+ externalTree: Ee
35
+ } = he, n = "rootStore" in f ? f.rootStore : f, C = n.useState("open"), ee = n.useState("floatingElement"), {
36
+ dataRef: h
37
+ } = n.context, S = Ne(Ee), Te = p(typeof I == "function" ? I : () => !1), y = typeof I == "function" ? Te : I, te = y !== !1, re = p(() => ge), {
38
+ escapeKey: K,
39
+ outsidePress: ne
40
+ } = Je(Pe), O = l.useRef(!1), X = l.useRef(!1), P = l.useRef(!1), A = l.useRef(!1), H = l.useRef(""), s = l.useRef(null), D = de(), se = de(), g = p(() => {
41
+ se.clear(), h.current.insideReactTree = !1;
42
+ }), N = p((r) => {
43
+ const a = h.current.floatingContext?.nodeId;
44
+ return (S ? me(S.nodesRef.current, a) : []).some((x) => x.context?.open && !x.context.dataRef.current[r]);
45
+ }), E = p((r) => Z(r, n.select("floatingElement")) || Z(r, n.select("domReferenceElement"))), L = p((r) => {
46
+ ye() && n.setOpen(!1, Q(qe, r.nativeEvent));
47
+ }), b = p((r) => {
48
+ if (!C || !m || !v || r.key !== "Escape" || A.current || !K && N("__escapeKeyBubbles"))
49
+ return;
50
+ const a = $e(r) ? r.nativeEvent : r, w = Q(Ve, a);
51
+ n.setOpen(!1, w), w.isCanceled || r.preventDefault(), !K && !w.isPropagationAllowed && r.stopPropagation();
52
+ }), T = p(() => {
53
+ h.current.insideReactTree = !0, se.start(0, g);
54
+ }), F = p((r) => {
55
+ if (!C || !m || r.button !== 0)
56
+ return;
57
+ const a = z(r.nativeEvent);
58
+ B(n.select("floatingElement"), a) && (O.current || (O.current = !0, X.current = !1));
59
+ }), $ = p((r) => {
60
+ !C || !m || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && O.current && (X.current = !0);
61
+ });
62
+ l.useEffect(() => {
63
+ if (!C || !m)
64
+ return;
65
+ h.current.__escapeKeyBubbles = K, h.current.__outsidePressBubbles = ne;
66
+ const r = new pe(), a = new pe();
67
+ function w() {
68
+ r.clear(), A.current = !0;
69
+ }
70
+ function x() {
71
+ r.start(
72
+ // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
73
+ // Only apply to WebKit for the test to remain 0ms.
74
+ je ? 5 : 0,
75
+ () => {
76
+ A.current = !1;
77
+ }
78
+ );
79
+ }
80
+ function ce() {
81
+ P.current = !0, a.start(0, () => {
82
+ P.current = !1;
83
+ });
84
+ }
85
+ function ie() {
86
+ O.current = !1, X.current = !1;
87
+ }
88
+ function R() {
89
+ const e = H.current, t = e === "pen" || !e ? "mouse" : e, o = re(), c = typeof o == "function" ? o() : o;
90
+ return typeof c == "string" ? c : c[t];
91
+ }
92
+ function Re(e) {
93
+ const t = R();
94
+ return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
95
+ }
96
+ function ue(e) {
97
+ const t = h.current.floatingContext?.nodeId, o = S && me(S.nodesRef.current, t).some((c) => Z(e, c.context?.elements.floating));
98
+ return E(e) || o;
99
+ }
100
+ function W(e) {
101
+ if (Re(e)) {
102
+ e.type !== "click" && !E(e) && (a.clear(), P.current = !1), g();
103
+ return;
104
+ }
105
+ if (h.current.insideReactTree) {
106
+ g();
107
+ return;
108
+ }
109
+ const t = z(e), o = `[${Le("inert")}]`, c = _(t) ? t.getRootNode() : null, k = Array.from((Be(c) ? c : fe(n.select("floatingElement"))).querySelectorAll(o)), ae = n.context.triggerElements;
110
+ if (t && (ae.hasElement(t) || ae.hasMatchingElement((d) => B(d, t))))
111
+ return;
112
+ let M = _(t) ? t : null;
113
+ for (; M && !J(M); ) {
114
+ const d = ve(M);
115
+ if (J(d) || !_(d))
116
+ break;
117
+ M = d;
118
+ }
119
+ if (!(k.length && _(t) && !Fe(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
120
+ !B(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
121
+ // element was injected after the floating element rendered.
122
+ k.every((d) => !B(M, d)))) {
123
+ if (Ae(t) && !("touches" in e)) {
124
+ const d = J(t), j = He(t), le = /auto|scroll/, Ie = d || le.test(j.overflowX), Ke = d || le.test(j.overflowY), Xe = Ie && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, xe = Ke && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, We = j.direction === "rtl", Ye = xe && (We ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), _e = Xe && e.offsetY > t.clientHeight;
125
+ if (Ye || _e)
126
+ return;
127
+ }
128
+ if (!ue(e)) {
129
+ if (R() === "intentional" && P.current) {
130
+ a.clear(), P.current = !1;
131
+ return;
132
+ }
133
+ typeof y == "function" && !y(e) || N("__outsidePressBubbles") || (n.setOpen(!1, Q(Ue, e)), g());
134
+ }
135
+ }
136
+ }
137
+ function be(e) {
138
+ R() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !m || E(e) || W(e);
139
+ }
140
+ function we(e) {
141
+ if (R() !== "sloppy" || !n.select("open") || !m || E(e))
142
+ return;
143
+ const t = e.touches[0];
144
+ t && (s.current = {
145
+ startTime: Date.now(),
146
+ startX: t.clientX,
147
+ startY: t.clientY,
148
+ dismissOnTouchEnd: !1,
149
+ dismissOnMouseDown: !0
150
+ }, D.start(1e3, () => {
151
+ s.current && (s.current.dismissOnTouchEnd = !1, s.current.dismissOnMouseDown = !1);
152
+ }));
153
+ }
154
+ function Y(e, t) {
155
+ const o = z(e);
156
+ if (!o)
157
+ return;
158
+ const c = i(o, e.type, () => {
159
+ t(e), c();
160
+ });
161
+ }
162
+ function Ce(e) {
163
+ H.current = "touch", Y(e, we);
164
+ }
165
+ function V(e) {
166
+ D.clear(), e.type === "pointerdown" && (H.current = e.pointerType), !(e.type === "mousedown" && s.current && !s.current.dismissOnMouseDown) && Y(e, (t) => {
167
+ t.type === "pointerdown" ? be(t) : W(t);
168
+ });
169
+ }
170
+ function U(e) {
171
+ if (!O.current)
172
+ return;
173
+ const t = X.current;
174
+ if (ie(), R() === "intentional") {
175
+ if (e.type === "pointercancel") {
176
+ t && ce();
177
+ return;
178
+ }
179
+ if (!ue(e)) {
180
+ if (t) {
181
+ ce();
182
+ return;
183
+ }
184
+ typeof y == "function" && !y(e) || (a.clear(), P.current = !0, g());
185
+ }
186
+ }
187
+ }
188
+ function Se(e) {
189
+ if (R() !== "sloppy" || !s.current || E(e))
190
+ return;
191
+ const t = e.touches[0];
192
+ if (!t)
193
+ return;
194
+ const o = Math.abs(t.clientX - s.current.startX), c = Math.abs(t.clientY - s.current.startY), k = Math.sqrt(o * o + c * c);
195
+ k > 5 && (s.current.dismissOnTouchEnd = !0), k > 10 && (W(e), D.clear(), s.current = null);
196
+ }
197
+ function Oe(e) {
198
+ Y(e, Se);
199
+ }
200
+ function De(e) {
201
+ R() !== "sloppy" || !s.current || E(e) || (s.current.dismissOnTouchEnd && W(e), D.clear(), s.current = null);
202
+ }
203
+ function ke(e) {
204
+ Y(e, De);
205
+ }
206
+ const u = fe(ee), Me = G(v && G(i(u, "keydown", b), i(u, "compositionstart", w), i(u, "compositionend", x)), te && G(i(u, "click", V, !0), i(u, "pointerdown", V, !0), i(u, "pointerup", U, !0), i(u, "pointercancel", U, !0), i(u, "mousedown", V, !0), i(u, "mouseup", U, !0), i(u, "touchstart", Ce, !0), i(u, "touchmove", Oe, !0), i(u, "touchend", ke, !0)));
207
+ return () => {
208
+ Me(), r.clear(), a.clear(), ie(), P.current = !1;
209
+ };
210
+ }, [h, ee, v, te, y, C, m, K, ne, b, g, re, N, E, S, n, D]), l.useEffect(g, [y, g]);
211
+ const q = l.useMemo(() => ({
212
+ onKeyDown: b,
213
+ onPointerDown: L,
214
+ onClick: L
215
+ }), [b, L]), oe = l.useMemo(() => ({
216
+ onKeyDown: b,
217
+ // `onMouseDown` may be blocked if `event.preventDefault()` is called in
218
+ // `onPointerDown`, such as with <NumberField.ScrubArea>.
219
+ // See https://github.com/mui/base-ui/pull/3379
220
+ onPointerDown: $,
221
+ onMouseDown: $,
222
+ onClickCapture: T,
223
+ onMouseDownCapture(r) {
224
+ T(), F(r);
225
+ },
226
+ onPointerDownCapture(r) {
227
+ T(), F(r);
228
+ },
229
+ onMouseUpCapture: T,
230
+ onTouchEndCapture: T,
231
+ onTouchMoveCapture: T
232
+ }), [b, T, F, $]);
233
+ return l.useMemo(() => m ? {
234
+ reference: q,
235
+ floating: oe,
236
+ trigger: q
237
+ } : {}, [m, q, oe]);
9
238
  }
10
239
  export {
11
- c as getPreviousMonth
240
+ Je as normalizeProp,
241
+ dt as useDismiss
12
242
  };
13
243
  //# sourceMappingURL=index219.js.map