@rpcbase/ui 0.229.0 → 0.231.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 (733) hide show
  1. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  2. package/dist/index100.js +4 -11
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +8 -68
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +6 -38
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +5 -14
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +4 -23
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +6 -110
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +146 -13
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +39 -4
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +5 -4
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +8 -5
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index110.js +13 -11
  23. package/dist/index110.js.map +1 -1
  24. package/dist/index111.js +13 -19
  25. package/dist/index111.js.map +1 -1
  26. package/dist/index112.js +8 -13
  27. package/dist/index112.js.map +1 -1
  28. package/dist/index113.js +31 -261
  29. package/dist/index113.js.map +1 -1
  30. package/dist/index114.js +10 -4
  31. package/dist/index114.js.map +1 -1
  32. package/dist/index115.js +11 -28
  33. package/dist/index115.js.map +1 -1
  34. package/dist/index116.js +8 -126
  35. package/dist/index116.js.map +1 -1
  36. package/dist/index117.js +13 -5
  37. package/dist/index117.js.map +1 -1
  38. package/dist/index118.js +101 -78
  39. package/dist/index118.js.map +1 -1
  40. package/dist/index119.js +20 -67
  41. package/dist/index119.js.map +1 -1
  42. package/dist/index120.js +53 -8
  43. package/dist/index120.js.map +1 -1
  44. package/dist/index121.js +73 -16
  45. package/dist/index121.js.map +1 -1
  46. package/dist/index122.js +9 -92
  47. package/dist/index122.js.map +1 -1
  48. package/dist/index123.js +17 -62
  49. package/dist/index123.js.map +1 -1
  50. package/dist/index124.js +15 -44
  51. package/dist/index124.js.map +1 -1
  52. package/dist/index125.js +24 -52
  53. package/dist/index125.js.map +1 -1
  54. package/dist/index126.js +6 -4
  55. package/dist/index126.js.map +1 -1
  56. package/dist/index127.js +5 -4
  57. package/dist/index127.js.map +1 -1
  58. package/dist/index128.js +23 -15
  59. package/dist/index128.js.map +1 -1
  60. package/dist/index129.js +35 -6
  61. package/dist/index129.js.map +1 -1
  62. package/dist/index130.js +16 -8
  63. package/dist/index130.js.map +1 -1
  64. package/dist/index131.js +6 -16
  65. package/dist/index131.js.map +1 -1
  66. package/dist/index132.js +4 -4
  67. package/dist/index132.js.map +1 -1
  68. package/dist/index133.js +4 -4
  69. package/dist/index133.js.map +1 -1
  70. package/dist/index134.js +4 -5
  71. package/dist/index134.js.map +1 -1
  72. package/dist/index135.js +4 -5
  73. package/dist/index135.js.map +1 -1
  74. package/dist/index136.js +3 -4
  75. package/dist/index136.js.map +1 -1
  76. package/dist/index137.js +6 -4
  77. package/dist/index137.js.map +1 -1
  78. package/dist/index138.js +24 -7
  79. package/dist/index138.js.map +1 -1
  80. package/dist/index139.js +7 -24
  81. package/dist/index139.js.map +1 -1
  82. package/dist/index140.js +6 -6
  83. package/dist/index140.js.map +1 -1
  84. package/dist/index141.js +5 -4
  85. package/dist/index141.js.map +1 -1
  86. package/dist/index142.js +3 -6
  87. package/dist/index142.js.map +1 -1
  88. package/dist/index143.js +3 -5
  89. package/dist/index143.js.map +1 -1
  90. package/dist/index144.js +4 -4
  91. package/dist/index144.js.map +1 -1
  92. package/dist/index145.js +3 -5
  93. package/dist/index145.js.map +1 -1
  94. package/dist/index146.js +4 -4
  95. package/dist/index146.js.map +1 -1
  96. package/dist/index147.js +3 -8
  97. package/dist/index147.js.map +1 -1
  98. package/dist/index148.js +3 -5
  99. package/dist/index148.js.map +1 -1
  100. package/dist/index149.js +3 -4
  101. package/dist/index149.js.map +1 -1
  102. package/dist/index150.js +5 -4
  103. package/dist/index150.js.map +1 -1
  104. package/dist/index151.js +68 -6
  105. package/dist/index151.js.map +1 -1
  106. package/dist/index152.js +2 -146
  107. package/dist/index152.js.map +1 -1
  108. package/dist/index153.js +362 -38
  109. package/dist/index153.js.map +1 -1
  110. package/dist/index154.js +261 -4
  111. package/dist/index154.js.map +1 -1
  112. package/dist/index155.js +60 -7
  113. package/dist/index155.js.map +1 -1
  114. package/dist/index156.js +46 -13
  115. package/dist/index156.js.map +1 -1
  116. package/dist/index157.js +169 -13
  117. package/dist/index157.js.map +1 -1
  118. package/dist/index158.js +109 -7
  119. package/dist/index158.js.map +1 -1
  120. package/dist/index159.js +24 -31
  121. package/dist/index159.js.map +1 -1
  122. package/dist/index160.js +8 -11
  123. package/dist/index160.js.map +1 -1
  124. package/dist/index161.js +4 -10
  125. package/dist/index161.js.map +1 -1
  126. package/dist/index162.js +5 -8
  127. package/dist/index162.js.map +1 -1
  128. package/dist/index163.js +4 -13
  129. package/dist/index163.js.map +1 -1
  130. package/dist/index164.js +465 -100
  131. package/dist/index164.js.map +1 -1
  132. package/dist/index165.js +186 -20
  133. package/dist/index165.js.map +1 -1
  134. package/dist/index166.js +107 -53
  135. package/dist/index166.js.map +1 -1
  136. package/dist/index167.js +261 -71
  137. package/dist/index167.js.map +1 -1
  138. package/dist/index168.js +9 -9
  139. package/dist/index168.js.map +1 -1
  140. package/dist/index169.js +42 -20
  141. package/dist/index169.js.map +1 -1
  142. package/dist/index170.js +4 -16
  143. package/dist/index170.js.map +1 -1
  144. package/dist/index171.js +11 -23
  145. package/dist/index171.js.map +1 -1
  146. package/dist/index172.js +68 -6
  147. package/dist/index172.js.map +1 -1
  148. package/dist/index173.js +38 -6
  149. package/dist/index173.js.map +1 -1
  150. package/dist/index174.js +14 -24
  151. package/dist/index174.js.map +1 -1
  152. package/dist/index175.js +21 -32
  153. package/dist/index175.js.map +1 -1
  154. package/dist/index176.js +111 -16
  155. package/dist/index176.js.map +1 -1
  156. package/dist/index177.js +13 -7
  157. package/dist/index177.js.map +1 -1
  158. package/dist/index178.js +4 -4
  159. package/dist/index178.js.map +1 -1
  160. package/dist/index179.js +4 -5
  161. package/dist/index179.js.map +1 -1
  162. package/dist/index18.js +247 -240
  163. package/dist/index18.js.map +1 -1
  164. package/dist/index180.js +5 -5
  165. package/dist/index180.js.map +1 -1
  166. package/dist/index181.js +11 -4
  167. package/dist/index181.js.map +1 -1
  168. package/dist/index182.js +19 -3
  169. package/dist/index182.js.map +1 -1
  170. package/dist/index183.js +13 -7
  171. package/dist/index183.js.map +1 -1
  172. package/dist/index184.js +262 -24
  173. package/dist/index184.js.map +1 -1
  174. package/dist/index185.js +4 -7
  175. package/dist/index185.js.map +1 -1
  176. package/dist/index186.js +28 -7
  177. package/dist/index186.js.map +1 -1
  178. package/dist/index187.js +126 -5
  179. package/dist/index187.js.map +1 -1
  180. package/dist/index188.js +5 -3
  181. package/dist/index188.js.map +1 -1
  182. package/dist/index189.js +78 -3
  183. package/dist/index189.js.map +1 -1
  184. package/dist/index190.js +66 -4
  185. package/dist/index190.js.map +1 -1
  186. package/dist/index191.js +8 -3
  187. package/dist/index191.js.map +1 -1
  188. package/dist/index192.js +16 -5
  189. package/dist/index192.js.map +1 -1
  190. package/dist/index193.js +92 -3
  191. package/dist/index193.js.map +1 -1
  192. package/dist/index194.js +65 -3
  193. package/dist/index194.js.map +1 -1
  194. package/dist/index195.js +45 -3
  195. package/dist/index195.js.map +1 -1
  196. package/dist/index196.js +58 -13
  197. package/dist/index196.js.map +1 -1
  198. package/dist/index197.js +8 -154
  199. package/dist/index197.js.map +1 -1
  200. package/dist/index198.js +64 -28
  201. package/dist/index198.js.map +1 -1
  202. package/dist/index199.js +19 -9
  203. package/dist/index199.js.map +1 -1
  204. package/dist/index200.js +14 -46
  205. package/dist/index200.js.map +1 -1
  206. package/dist/index201.js +5 -11
  207. package/dist/index201.js.map +1 -1
  208. package/dist/index202.js +4 -43
  209. package/dist/index202.js.map +1 -1
  210. package/dist/index203.js +6 -95
  211. package/dist/index203.js.map +1 -1
  212. package/dist/index204.js +4 -86
  213. package/dist/index204.js.map +1 -1
  214. package/dist/index205.js +6 -105
  215. package/dist/index205.js.map +1 -1
  216. package/dist/index206.js +16 -52
  217. package/dist/index206.js.map +1 -1
  218. package/dist/index207.js +4 -11
  219. package/dist/index207.js.map +1 -1
  220. package/dist/index208.js +4 -37
  221. package/dist/index208.js.map +1 -1
  222. package/dist/index209.js +12 -8
  223. package/dist/index209.js.map +1 -1
  224. package/dist/index210.js +9 -3
  225. package/dist/index210.js.map +1 -1
  226. package/dist/index211.js +13 -9
  227. package/dist/index211.js.map +1 -1
  228. package/dist/index212.js +13 -116
  229. package/dist/index212.js.map +1 -1
  230. package/dist/index213.js +4 -17
  231. package/dist/index213.js.map +1 -1
  232. package/dist/index214.js +5 -15
  233. package/dist/index214.js.map +1 -1
  234. package/dist/index215.js +6 -36
  235. package/dist/index215.js.map +1 -1
  236. package/dist/index216.js +5 -20
  237. package/dist/index216.js.map +1 -1
  238. package/dist/index217.js +54 -8
  239. package/dist/index217.js.map +1 -1
  240. package/dist/index218.js +8 -19
  241. package/dist/index218.js.map +1 -1
  242. package/dist/index219.js +4 -28
  243. package/dist/index219.js.map +1 -1
  244. package/dist/index220.js +4 -16
  245. package/dist/index220.js.map +1 -1
  246. package/dist/index221.js +9 -20
  247. package/dist/index221.js.map +1 -1
  248. package/dist/index222.js +4 -66
  249. package/dist/index222.js.map +1 -1
  250. package/dist/index223.js +4 -6
  251. package/dist/index223.js.map +1 -1
  252. package/dist/index224.js +3 -11
  253. package/dist/index224.js.map +1 -1
  254. package/dist/index225.js +10 -50
  255. package/dist/index225.js.map +1 -1
  256. package/dist/index226.js +10 -4
  257. package/dist/index226.js.map +1 -1
  258. package/dist/index227.js +9 -29
  259. package/dist/index227.js.map +1 -1
  260. package/dist/index228.js +10 -16
  261. package/dist/index228.js.map +1 -1
  262. package/dist/index229.js +10 -5
  263. package/dist/index229.js.map +1 -1
  264. package/dist/index230.js +9 -21
  265. package/dist/index230.js.map +1 -1
  266. package/dist/index231.js +6 -51
  267. package/dist/index231.js.map +1 -1
  268. package/dist/index232.js +5 -25
  269. package/dist/index232.js.map +1 -1
  270. package/dist/index233.js +4 -41
  271. package/dist/index233.js.map +1 -1
  272. package/dist/index234.js +5 -39
  273. package/dist/index234.js.map +1 -1
  274. package/dist/index235.js +7 -45
  275. package/dist/index235.js.map +1 -1
  276. package/dist/index236.js +5 -20
  277. package/dist/index236.js.map +1 -1
  278. package/dist/index237.js +13 -67
  279. package/dist/index237.js.map +1 -1
  280. package/dist/index238.js +7 -17
  281. package/dist/index238.js.map +1 -1
  282. package/dist/index239.js +10 -11
  283. package/dist/index239.js.map +1 -1
  284. package/dist/index240.js +10 -27
  285. package/dist/index240.js.map +1 -1
  286. package/dist/index241.js +21 -13
  287. package/dist/index241.js.map +1 -1
  288. package/dist/index242.js +10 -18
  289. package/dist/index242.js.map +1 -1
  290. package/dist/index243.js +9 -36
  291. package/dist/index243.js.map +1 -1
  292. package/dist/index244.js +9 -262
  293. package/dist/index244.js.map +1 -1
  294. package/dist/index245.js +4 -278
  295. package/dist/index245.js.map +1 -1
  296. package/dist/index246.js +5 -68
  297. package/dist/index246.js.map +1 -1
  298. package/dist/index247.js +15 -98
  299. package/dist/index247.js.map +1 -1
  300. package/dist/index248.js +9 -83
  301. package/dist/index248.js.map +1 -1
  302. package/dist/index249.js +18 -3
  303. package/dist/index249.js.map +1 -1
  304. package/dist/index250.js +14 -28
  305. package/dist/index250.js.map +1 -1
  306. package/dist/index251.js +12 -16
  307. package/dist/index251.js.map +1 -1
  308. package/dist/index252.js +29 -34
  309. package/dist/index252.js.map +1 -1
  310. package/dist/index253.js +12 -16
  311. package/dist/index253.js.map +1 -1
  312. package/dist/index254.js +25 -3
  313. package/dist/index254.js.map +1 -1
  314. package/dist/index255.js +5 -26
  315. package/dist/index255.js.map +1 -1
  316. package/dist/index256.js +20 -29
  317. package/dist/index256.js.map +1 -1
  318. package/dist/index257.js +67 -4
  319. package/dist/index257.js.map +1 -1
  320. package/dist/index258.js +6 -78
  321. package/dist/index258.js.map +1 -1
  322. package/dist/index259.js +10 -268
  323. package/dist/index259.js.map +1 -1
  324. package/dist/index260.js +50 -11
  325. package/dist/index260.js.map +1 -1
  326. package/dist/index261.js +4 -11
  327. package/dist/index261.js.map +1 -1
  328. package/dist/index262.js +28 -24
  329. package/dist/index262.js.map +1 -1
  330. package/dist/index263.js +15 -15
  331. package/dist/index263.js.map +1 -1
  332. package/dist/index264.js +5 -125
  333. package/dist/index264.js.map +1 -1
  334. package/dist/index265.js +21 -5
  335. package/dist/index265.js.map +1 -1
  336. package/dist/index266.js +51 -40
  337. package/dist/index266.js.map +1 -1
  338. package/dist/index267.js +25 -65
  339. package/dist/index267.js.map +1 -1
  340. package/dist/index268.js +42 -14
  341. package/dist/index268.js.map +1 -1
  342. package/dist/index269.js +39 -7
  343. package/dist/index269.js.map +1 -1
  344. package/dist/index270.js +45 -6
  345. package/dist/index270.js.map +1 -1
  346. package/dist/index271.js +20 -3
  347. package/dist/index271.js.map +1 -1
  348. package/dist/index272.js +70 -10
  349. package/dist/index272.js.map +1 -1
  350. package/dist/index273.js +17 -7
  351. package/dist/index273.js.map +1 -1
  352. package/dist/index274.js +11 -133
  353. package/dist/index274.js.map +1 -1
  354. package/dist/index275.js +24 -396
  355. package/dist/index275.js.map +1 -1
  356. package/dist/index276.js +13 -52
  357. package/dist/index276.js.map +1 -1
  358. package/dist/index277.js +18 -11
  359. package/dist/index277.js.map +1 -1
  360. package/dist/index278.js +36 -11
  361. package/dist/index278.js.map +1 -1
  362. package/dist/index279.js +262 -8
  363. package/dist/index279.js.map +1 -1
  364. package/dist/index280.js +276 -9
  365. package/dist/index280.js.map +1 -1
  366. package/dist/index281.js +68 -8
  367. package/dist/index281.js.map +1 -1
  368. package/dist/index282.js +97 -11
  369. package/dist/index282.js.map +1 -1
  370. package/dist/index283.js +83 -3
  371. package/dist/index283.js.map +1 -1
  372. package/dist/index284.js +3 -3
  373. package/dist/index284.js.map +1 -1
  374. package/dist/index285.js +28 -16
  375. package/dist/index285.js.map +1 -1
  376. package/dist/index286.js +16 -51
  377. package/dist/index286.js.map +1 -1
  378. package/dist/index287.js +35 -6
  379. package/dist/index287.js.map +1 -1
  380. package/dist/index288.js +15 -121
  381. package/dist/index288.js.map +1 -1
  382. package/dist/index289.js +3 -32
  383. package/dist/index289.js.map +1 -1
  384. package/dist/index290.js +26 -73
  385. package/dist/index290.js.map +1 -1
  386. package/dist/index291.js +26 -140
  387. package/dist/index291.js.map +1 -1
  388. package/dist/index292.js +4 -62
  389. package/dist/index292.js.map +1 -1
  390. package/dist/index293.js +78 -49
  391. package/dist/index293.js.map +1 -1
  392. package/dist/index294.js +270 -15
  393. package/dist/index294.js.map +1 -1
  394. package/dist/index295.js +11 -8
  395. package/dist/index295.js.map +1 -1
  396. package/dist/index296.js +10 -4
  397. package/dist/index296.js.map +1 -1
  398. package/dist/index297.js +25 -11
  399. package/dist/index297.js.map +1 -1
  400. package/dist/index298.js +16 -21
  401. package/dist/index298.js.map +1 -1
  402. package/dist/index299.js +124 -57
  403. package/dist/index299.js.map +1 -1
  404. package/dist/index300.js +5 -8
  405. package/dist/index300.js.map +1 -1
  406. package/dist/index301.js +38 -64
  407. package/dist/index301.js.map +1 -1
  408. package/dist/index302.js +63 -17
  409. package/dist/index302.js.map +1 -1
  410. package/dist/index303.js +13 -16
  411. package/dist/index303.js.map +1 -1
  412. package/dist/index304.js +7 -5
  413. package/dist/index304.js.map +1 -1
  414. package/dist/index305.js +5 -5
  415. package/dist/index305.js.map +1 -1
  416. package/dist/index306.js +3 -6
  417. package/dist/index306.js.map +1 -1
  418. package/dist/index307.js +10 -4
  419. package/dist/index307.js.map +1 -1
  420. package/dist/index308.js +7 -6
  421. package/dist/index308.js.map +1 -1
  422. package/dist/index309.js +132 -15
  423. package/dist/index309.js.map +1 -1
  424. package/dist/index31.js +24 -24
  425. package/dist/index310.js +399 -4
  426. package/dist/index310.js.map +1 -1
  427. package/dist/index311.js +52 -4
  428. package/dist/index311.js.map +1 -1
  429. package/dist/index312.js +11 -12
  430. package/dist/index312.js.map +1 -1
  431. package/dist/index313.js +11 -9
  432. package/dist/index313.js.map +1 -1
  433. package/dist/index314.js +13 -13
  434. package/dist/index314.js.map +1 -1
  435. package/dist/index315.js +154 -13
  436. package/dist/index315.js.map +1 -1
  437. package/dist/index316.js +30 -4
  438. package/dist/index316.js.map +1 -1
  439. package/dist/index317.js +9 -5
  440. package/dist/index317.js.map +1 -1
  441. package/dist/index318.js +48 -6
  442. package/dist/index318.js.map +1 -1
  443. package/dist/index319.js +11 -5
  444. package/dist/index319.js.map +1 -1
  445. package/dist/index32.js +3 -3
  446. package/dist/index320.js +43 -53
  447. package/dist/index320.js.map +1 -1
  448. package/dist/index321.js +95 -8
  449. package/dist/index321.js.map +1 -1
  450. package/dist/index322.js +86 -4
  451. package/dist/index322.js.map +1 -1
  452. package/dist/index323.js +105 -4
  453. package/dist/index323.js.map +1 -1
  454. package/dist/index324.js +52 -8
  455. package/dist/index324.js.map +1 -1
  456. package/dist/index325.js +11 -4
  457. package/dist/index325.js.map +1 -1
  458. package/dist/index326.js +37 -4
  459. package/dist/index326.js.map +1 -1
  460. package/dist/index327.js +8 -3
  461. package/dist/index327.js.map +1 -1
  462. package/dist/index328.js +3 -10
  463. package/dist/index328.js.map +1 -1
  464. package/dist/index329.js +9 -9
  465. package/dist/index329.js.map +1 -1
  466. package/dist/index330.js +116 -9
  467. package/dist/index330.js.map +1 -1
  468. package/dist/index331.js +17 -10
  469. package/dist/index331.js.map +1 -1
  470. package/dist/index332.js +15 -10
  471. package/dist/index332.js.map +1 -1
  472. package/dist/index333.js +36 -9
  473. package/dist/index333.js.map +1 -1
  474. package/dist/index334.js +20 -6
  475. package/dist/index334.js.map +1 -1
  476. package/dist/index335.js +8 -5
  477. package/dist/index335.js.map +1 -1
  478. package/dist/index336.js +19 -4
  479. package/dist/index336.js.map +1 -1
  480. package/dist/index337.js +28 -5
  481. package/dist/index337.js.map +1 -1
  482. package/dist/index338.js +16 -6
  483. package/dist/index338.js.map +1 -1
  484. package/dist/index339.js +8 -5
  485. package/dist/index339.js.map +1 -1
  486. package/dist/index34.js +4 -4
  487. package/dist/index340.js +11 -16
  488. package/dist/index340.js.map +1 -1
  489. package/dist/index341.js +8 -7
  490. package/dist/index341.js.map +1 -1
  491. package/dist/index342.js +12 -9
  492. package/dist/index342.js.map +1 -1
  493. package/dist/index343.js +3 -10
  494. package/dist/index343.js.map +1 -1
  495. package/dist/index344.js +3 -21
  496. package/dist/index344.js.map +1 -1
  497. package/dist/index345.js +17 -10
  498. package/dist/index345.js.map +1 -1
  499. package/dist/index346.js +51 -9
  500. package/dist/index346.js.map +1 -1
  501. package/dist/index347.js +5 -9
  502. package/dist/index347.js.map +1 -1
  503. package/dist/index348.js +122 -4
  504. package/dist/index348.js.map +1 -1
  505. package/dist/index349.js +32 -5
  506. package/dist/index349.js.map +1 -1
  507. package/dist/index35.js +5 -5
  508. package/dist/index350.js +73 -16
  509. package/dist/index350.js.map +1 -1
  510. package/dist/index351.js +142 -9
  511. package/dist/index351.js.map +1 -1
  512. package/dist/index352.js +61 -18
  513. package/dist/index352.js.map +1 -1
  514. package/dist/index353.js +47 -13
  515. package/dist/index353.js.map +1 -1
  516. package/dist/index354.js +15 -13
  517. package/dist/index354.js.map +1 -1
  518. package/dist/index355.js +7 -28
  519. package/dist/index355.js.map +1 -1
  520. package/dist/index356.js +5 -13
  521. package/dist/index356.js.map +1 -1
  522. package/dist/index357.js +11 -25
  523. package/dist/index357.js.map +1 -1
  524. package/dist/index358.js +21 -5
  525. package/dist/index358.js.map +1 -1
  526. package/dist/index359.js +4 -20
  527. package/dist/index359.js.map +1 -1
  528. package/dist/index36.js +10 -10
  529. package/dist/index360.js +18 -4
  530. package/dist/index360.js.map +1 -1
  531. package/dist/index361.js +12 -11
  532. package/dist/index361.js.map +1 -1
  533. package/dist/index362.js +4 -17
  534. package/dist/index362.js.map +1 -1
  535. package/dist/index363.js +11 -5
  536. package/dist/index363.js.map +1 -1
  537. package/dist/index364.js +15 -19
  538. package/dist/index364.js.map +1 -1
  539. package/dist/index365.js +6 -45
  540. package/dist/index365.js.map +1 -1
  541. package/dist/index366.js +20 -17
  542. package/dist/index366.js.map +1 -1
  543. package/dist/index367.js +45 -5
  544. package/dist/index367.js.map +1 -1
  545. package/dist/index368.js +15 -198
  546. package/dist/index368.js.map +1 -1
  547. package/dist/index369.js +5 -78
  548. package/dist/index369.js.map +1 -1
  549. package/dist/index37.js +3 -3
  550. package/dist/index370.js +199 -7
  551. package/dist/index370.js.map +1 -1
  552. package/dist/index371.js +78 -26
  553. package/dist/index371.js.map +1 -1
  554. package/dist/index372.js +19 -25
  555. package/dist/index372.js.map +1 -1
  556. package/dist/index373.js +8 -137
  557. package/dist/index373.js.map +1 -1
  558. package/dist/index374.js +26 -13
  559. package/dist/index374.js.map +1 -1
  560. package/dist/index375.js +21 -221
  561. package/dist/index375.js.map +1 -1
  562. package/dist/index376.js +137 -3
  563. package/dist/index376.js.map +1 -1
  564. package/dist/index377.js +12 -19
  565. package/dist/index377.js.map +1 -1
  566. package/dist/index378.js +221 -72
  567. package/dist/index378.js.map +1 -1
  568. package/dist/index379.js +4 -12
  569. package/dist/index379.js.map +1 -1
  570. package/dist/index38.js +4 -4
  571. package/dist/index380.js +19 -3
  572. package/dist/index380.js.map +1 -1
  573. package/dist/index381.js +74 -68
  574. package/dist/index381.js.map +1 -1
  575. package/dist/index382.js +12 -9
  576. package/dist/index382.js.map +1 -1
  577. package/dist/index383.js +3 -15
  578. package/dist/index383.js.map +1 -1
  579. package/dist/index384.js +71 -4
  580. package/dist/index384.js.map +1 -1
  581. package/dist/index385.js +9 -18
  582. package/dist/index385.js.map +1 -1
  583. package/dist/index386.js +15 -12
  584. package/dist/index386.js.map +1 -1
  585. package/dist/index387.js +5 -3
  586. package/dist/index387.js.map +1 -1
  587. package/dist/index388.js +5 -3
  588. package/dist/index388.js.map +1 -1
  589. package/dist/index389.js +4 -15
  590. package/dist/index389.js.map +1 -1
  591. package/dist/index39.js +5 -5
  592. package/dist/index390.js +15 -491
  593. package/dist/index390.js.map +1 -1
  594. package/dist/index391.js +8 -4
  595. package/dist/index391.js.map +1 -1
  596. package/dist/index392.js +5 -4
  597. package/dist/index392.js.map +1 -1
  598. package/dist/index393.js +5 -4
  599. package/dist/index393.js.map +1 -1
  600. package/dist/index394.js +545 -15
  601. package/dist/index394.js.map +1 -1
  602. package/dist/index395.js +47 -9
  603. package/dist/index395.js.map +1 -1
  604. package/dist/index396.js +17 -5
  605. package/dist/index396.js.map +1 -1
  606. package/dist/index397.js +5 -4
  607. package/dist/index397.js.map +1 -1
  608. package/dist/index398.js +7 -545
  609. package/dist/index398.js.map +1 -1
  610. package/dist/index399.js +7 -47
  611. package/dist/index399.js.map +1 -1
  612. package/dist/index40.js +3 -3
  613. package/dist/index400.js +7 -17
  614. package/dist/index400.js.map +1 -1
  615. package/dist/index401.js +11 -5
  616. package/dist/index401.js.map +1 -1
  617. package/dist/index402.js +8 -7
  618. package/dist/index402.js.map +1 -1
  619. package/dist/index403.js +12 -6
  620. package/dist/index403.js.map +1 -1
  621. package/dist/index404.js +3 -8
  622. package/dist/index404.js.map +1 -1
  623. package/dist/index405.js +3 -12
  624. package/dist/index405.js.map +1 -1
  625. package/dist/index406.js +14 -8
  626. package/dist/index406.js.map +1 -1
  627. package/dist/index407.js +491 -12
  628. package/dist/index407.js.map +1 -1
  629. package/dist/index408.js +4 -7
  630. package/dist/index408.js.map +1 -1
  631. package/dist/index409.js +56 -2
  632. package/dist/index409.js.map +1 -1
  633. package/dist/index41.js +10 -10
  634. package/dist/index410.js +67 -43
  635. package/dist/index410.js.map +1 -1
  636. package/dist/index411.js +31 -56
  637. package/dist/index411.js.map +1 -1
  638. package/dist/index412.js +9 -8
  639. package/dist/index412.js.map +1 -1
  640. package/dist/index413.js +153 -2
  641. package/dist/index413.js.map +1 -1
  642. package/dist/index414.js +107 -54
  643. package/dist/index414.js.map +1 -1
  644. package/dist/index415.js +7 -55
  645. package/dist/index415.js.map +1 -1
  646. package/dist/index416.js +2 -5
  647. package/dist/index416.js.map +1 -1
  648. package/dist/index417.js +42 -54
  649. package/dist/index417.js.map +1 -1
  650. package/dist/index418.js +56 -68
  651. package/dist/index418.js.map +1 -1
  652. package/dist/index419.js +8 -31
  653. package/dist/index419.js.map +1 -1
  654. package/dist/index420.js +2 -9
  655. package/dist/index420.js.map +1 -1
  656. package/dist/index421.js +54 -152
  657. package/dist/index421.js.map +1 -1
  658. package/dist/index422.js +56 -108
  659. package/dist/index422.js.map +1 -1
  660. package/dist/index423.js +2 -2
  661. package/dist/index425.js +2 -2
  662. package/dist/index44.js +1 -1
  663. package/dist/index45.js +2 -2
  664. package/dist/index48.js +2 -2
  665. package/dist/index49.js +34 -34
  666. package/dist/index50.js +29 -29
  667. package/dist/index51.js +2 -2
  668. package/dist/index52.js +12 -12
  669. package/dist/index53.js +4 -4
  670. package/dist/index54.js +1 -1
  671. package/dist/index55.js +22 -22
  672. package/dist/index56.js +5 -5
  673. package/dist/index57.js +5 -5
  674. package/dist/index58.js +8 -8
  675. package/dist/index59.js +5 -5
  676. package/dist/index60.js +17 -17
  677. package/dist/index61.js +5 -5
  678. package/dist/index62.js +3 -3
  679. package/dist/index66.js +1 -1
  680. package/dist/index67.js +1 -1
  681. package/dist/index72.js +2 -6
  682. package/dist/index72.js.map +1 -1
  683. package/dist/index73.js +2 -8
  684. package/dist/index73.js.map +1 -1
  685. package/dist/index74.js +5 -5
  686. package/dist/index74.js.map +1 -1
  687. package/dist/index75.js +8 -2
  688. package/dist/index75.js.map +1 -1
  689. package/dist/index76.js +6 -2
  690. package/dist/index76.js.map +1 -1
  691. package/dist/index79.js +52 -6
  692. package/dist/index79.js.map +1 -1
  693. package/dist/index80.js +4 -68
  694. package/dist/index80.js.map +1 -1
  695. package/dist/index81.js +5 -2
  696. package/dist/index81.js.map +1 -1
  697. package/dist/index82.js +15 -363
  698. package/dist/index82.js.map +1 -1
  699. package/dist/index83.js +5 -261
  700. package/dist/index83.js.map +1 -1
  701. package/dist/index84.js +7 -60
  702. package/dist/index84.js.map +1 -1
  703. package/dist/index85.js +16 -46
  704. package/dist/index85.js.map +1 -1
  705. package/dist/index86.js +4 -169
  706. package/dist/index86.js.map +1 -1
  707. package/dist/index87.js +4 -109
  708. package/dist/index87.js.map +1 -1
  709. package/dist/index88.js +5 -24
  710. package/dist/index88.js.map +1 -1
  711. package/dist/index89.js +6 -8
  712. package/dist/index89.js.map +1 -1
  713. package/dist/index90.js +4 -4
  714. package/dist/index90.js.map +1 -1
  715. package/dist/index91.js +4 -5
  716. package/dist/index91.js.map +1 -1
  717. package/dist/index92.js +6 -4
  718. package/dist/index92.js.map +1 -1
  719. package/dist/index93.js +24 -466
  720. package/dist/index93.js.map +1 -1
  721. package/dist/index94.js +6 -185
  722. package/dist/index94.js.map +1 -1
  723. package/dist/index95.js +4 -107
  724. package/dist/index95.js.map +1 -1
  725. package/dist/index96.js +6 -262
  726. package/dist/index96.js.map +1 -1
  727. package/dist/index97.js +5 -9
  728. package/dist/index97.js.map +1 -1
  729. package/dist/index98.js +4 -42
  730. package/dist/index98.js.map +1 -1
  731. package/dist/index99.js +5 -4
  732. package/dist/index99.js.map +1 -1
  733. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index240.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index240.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]}
package/dist/index241.js CHANGED
@@ -1,17 +1,25 @@
1
- import { clamp as s } from "./index271.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;
1
+ import { CalendarDay as F } from "./index200.js";
2
+ import { CalendarWeek as N } from "./index202.js";
3
+ import { CalendarMonth as P } from "./index201.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;
11
21
  }
12
22
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
23
+ j as getMonths
16
24
  };
17
25
  //# sourceMappingURL=index241.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index241.js","sources":["../../../node_modules/@base-ui/react/esm/utils/scrollEdges.js"],"sourcesContent":["import { clamp } from \"../internals/clamp.js\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index241.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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AAaJ,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]}
package/dist/index242.js CHANGED
@@ -1,22 +1,14 @@
1
- import * as c from "react";
2
- import { s as u } from "./index387.js";
3
- import { w as i } from "./index388.js";
4
- import { isReactVersionAtLeast as S } from "./index287.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));
1
+ function O(o, r) {
2
+ let { startMonth: t, endMonth: e } = o;
3
+ const { startOfYear: M, startOfDay: d, startOfMonth: c, endOfMonth: Y, addYears: l, endOfYear: w, newDate: f, today: i } = r, { fromYear: a, toYear: n, fromMonth: s, toMonth: h } = o;
4
+ !t && s && (t = s), !t && a && (t = r.newDate(a, 0, 1)), !e && h && (e = h), !e && n && (e = f(n, 11, 31));
5
+ const y = o.captionLayout === "dropdown" || o.captionLayout === "dropdown-years";
6
+ return t ? t = c(t) : a ? t = f(a, 0, 1) : !t && y && (t = M(l(o.today ?? i(), -100))), e ? e = Y(e) : n ? e = f(n, 11, 31) : !e && y && (e = w(o.today ?? i())), [
7
+ t && d(t),
8
+ e && d(e)
9
+ ];
18
10
  }
19
11
  export {
20
- g as useStore
12
+ O as getNavMonths
21
13
  };
22
14
  //# sourceMappingURL=index242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index242.js","sources":["../../../node_modules/@base-ui/utils/esm/store/useStore.js"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.js\";\nimport { register, getInstance } from \"../fastHooks.js\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (hook.didChange || !Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n hook.didChange = false;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3),\n didChange: false\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.didChange = true;\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAmDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA+BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index242.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, newDate, today, } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\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 (toYear) {\n endMonth = newDate(toYear, 11, 31);\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","newDate","today","fromYear","toYear","fromMonth","toMonth","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,SAAAC,GAAS,OAAAC,EAAK,IAAMV,GAE9F,EAAE,UAAAW,GAAU,QAAAC,GAAQ,WAAAC,GAAW,SAAAC,EAAO,IAAKf;AACjD,EAAI,CAACE,KAAcY,MACfZ,IAAaY,IAEb,CAACZ,KAAcU,MACfV,IAAaD,EAAQ,QAAQW,GAAU,GAAG,CAAC,IAE3C,CAACT,KAAYY,MACbZ,IAAWY,IAEX,CAACZ,KAAYU,MACbV,IAAWO,EAAQG,GAAQ,IAAI,EAAE;AAErC,QAAMG,IAAkBhB,EAAM,kBAAkB,cAC5CA,EAAM,kBAAkB;AAC5B,SAAIE,IACAA,IAAaI,EAAaJ,CAAU,IAE/BU,IACLV,IAAaQ,EAAQE,GAAU,GAAG,CAAC,IAE9B,CAACV,KAAcc,MACpBd,IAAaE,EAAYI,EAASR,EAAM,SAASW,EAAK,GAAI,IAAI,CAAC,IAE/DR,IACAA,IAAWI,EAAWJ,CAAQ,IAEzBU,IACLV,IAAWO,EAAQG,GAAQ,IAAI,EAAE,IAE5B,CAACV,KAAYa,MAClBb,IAAWM,EAAUT,EAAM,SAASW,EAAK,CAAE,IAExC;AAAA,IACHT,KAAaG,EAAWH,CAAU;AAAA,IAClCC,KAAWE,EAAWF,CAAQ;AAAA,EACtC;AACA;","x_google_ignoreList":[0]}
package/dist/index243.js CHANGED
@@ -1,40 +1,13 @@
1
- import { isElement as l } from "./index274.js";
2
- import { useId as c } from "./index285.js";
3
- import { useRefWithInit as a } from "./index223.js";
4
- import { useIsoLayoutEffect as m } from "./index226.js";
5
- import { useFloatingParentNodeId as u } from "./index379.js";
6
- import { FloatingRootStore as p } from "./index381.js";
7
- import { PopupTriggerMap as d } from "./index292.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 = a(() => new p({
19
- open: o,
20
- transitionStatus: void 0,
21
- onOpenChange: f,
22
- referenceElement: e.reference ?? null,
23
- floatingElement: e.floating ?? null,
24
- triggerElements: new d(),
25
- floatingId: r,
26
- syncOnly: !1,
27
- nested: i
28
- })).current;
29
- return m(() => {
30
- const n = {
31
- open: o,
32
- floatingId: r
33
- };
34
- e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
- }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
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);
36
9
  }
37
10
  export {
38
- y as useFloatingRootContext
11
+ h as getNextMonth
39
12
  };
40
13
  //# sourceMappingURL=index243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index243.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.js\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.js\";\nimport { PopupTriggerMap } from \"../../utils/popups/index.js\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useFloatingRootContext","options","open","onOpenChange","elements","floatingId","useId","nested","useFloatingParentNodeId","optionDomReference","isElement","store","useRefWithInit","FloatingRootStore","PopupTriggerMap","useIsoLayoutEffect","valuesToSync"],"mappings":";;;;;;;AASO,SAASA,EAAuBC,GAAS;AAC9C,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC,IAAW,CAAA;AAAA,EACf,IAAMH,GACEI,IAAaC,EAAK,GAClBC,IAASC,EAAuB,KAAM;AAC5C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAqBL,EAAS;AACpC,IAAIK,KAAsB,CAACC,EAAUD,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;AAAA,EAE3K;AACA,QAAME,IAAQC,EAAe,MAAM,IAAIC,EAAkB;AAAA,IACvD,MAAAX;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,kBAAkBC,EAAS,aAAa;AAAA,IACxC,iBAAiBA,EAAS,YAAY;AAAA,IACtC,iBAAiB,IAAIU,EAAe;AAAA,IACpC,YAAAT;AAAA,IACA,UAAU;AAAA,IACV,QAAAE;AAAA,EACJ,CAAG,CAAC,EAAE;AACJ,SAAAQ,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAd;AAAA,MACA,YAAAG;AAAA,IACN;AAGI,IAAID,EAAS,cAAc,WACzBY,EAAa,mBAAmBZ,EAAS,WACzCY,EAAa,sBAAsBN,EAAUN,EAAS,SAAS,IAAIA,EAAS,YAAY,OAEtFA,EAAS,aAAa,WACxBY,EAAa,kBAAkBZ,EAAS,WAE1CO,EAAM,OAAOK,CAAY;AAAA,EAC3B,GAAG,CAACd,GAAMG,GAAYD,EAAS,WAAWA,EAAS,UAAUO,CAAK,CAAC,GACnEA,EAAM,QAAQ,eAAeR,GAC7BQ,EAAM,QAAQ,SAASJ,GAChBI;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index243.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]}
package/dist/index244.js CHANGED
@@ -1,266 +1,13 @@
1
- import * as a from "react";
2
- import { isWebKit as Ae, isElement as v, isShadowRoot as Be, isLastTraversableNode as Z, getParentNode as Ne, isHTMLElement as Le, getComputedStyle as Fe } from "./index274.js";
3
- import { addEventListener as u } from "./index265.js";
4
- import { mergeCleanups as z } from "./index370.js";
5
- import { useTimeout as de, Timeout as pe } from "./index250.js";
6
- import { useStableCallback as y } from "./index227.js";
7
- import { ownerDocument as me } from "./index249.js";
8
- import { isEventTargetWithin as f, isRootElement as $e } from "./index255.js";
9
- import { isReactEvent as qe } from "./index372.js";
10
- import { getNodeChildren as ee } from "./index374.js";
11
- import { useFloatingTree as Ve } from "./index379.js";
12
- import { createChangeEventDetails as A } from "./index104.js";
13
- import { createAttribute as Ue } from "./index376.js";
14
- import { getTarget as te, contains as B } from "./index256.js";
15
- import { triggerPress as he, escapeKey as je, outsidePress as Ge } from "./index106.js";
16
- const Je = {
17
- intentional: "onClick",
18
- sloppy: "onPointerDown"
19
- };
20
- function Qe() {
21
- return !1;
22
- }
23
- function Ze(d) {
24
- return {
25
- escapeKey: typeof d == "boolean" ? d : d?.escapeKey ?? !1,
26
- outsidePress: typeof d == "boolean" ? d : d?.outsidePress ?? !0
27
- };
28
- }
29
- function pt(d, Ee = {}) {
30
- const n = "rootStore" in d ? d.rootStore : d, S = n.useState("open"), ne = n.useState("floatingElement"), {
31
- dataRef: m
32
- } = n.context, {
33
- enabled: h = !0,
34
- escapeKey: N = !0,
35
- outsidePress: x = !0,
36
- outsidePressEvent: ge = "sloppy",
37
- referencePress: ye = Qe,
38
- referencePressEvent: L = "sloppy",
39
- bubbles: Pe,
40
- externalTree: Re
41
- } = Ee, P = Ve(Re), Te = y(typeof x == "function" ? x : () => !1), R = typeof x == "function" ? Te : x, re = R !== !1, se = y(() => ge), O = a.useRef(!1), X = a.useRef(!1), b = a.useRef(!1), {
42
- escapeKey: W,
43
- outsidePress: oe
44
- } = Ze(Pe), s = a.useRef(null), D = de(), ce = de(), E = y(() => {
45
- ce.clear(), m.current.insideReactTree = !1;
46
- }), F = a.useRef(!1), $ = a.useRef(""), q = y(ye), w = y((r) => {
47
- if (!S || !h || !N || r.key !== "Escape" || F.current)
48
- return;
49
- const g = m.current.floatingContext?.nodeId, Y = P ? ee(P.nodesRef.current, g) : [];
50
- if (!W && Y.length > 0) {
51
- let M = !0;
52
- if (Y.forEach((p) => {
53
- p.context?.open && !p.context.dataRef.current.__escapeKeyBubbles && (M = !1);
54
- }), !M)
55
- return;
56
- }
57
- const G = qe(r) ? r.nativeEvent : r, I = A(je, G);
58
- n.setOpen(!1, I), !W && !I.isPropagationAllowed && r.stopPropagation();
59
- }), T = y(() => {
60
- m.current.insideReactTree = !0, ce.start(0, E);
61
- });
62
- a.useEffect(() => {
63
- if (!S || !h)
64
- return;
65
- m.current.__escapeKeyBubbles = W, m.current.__outsidePressBubbles = oe;
66
- const r = new pe(), g = new pe();
67
- function Y() {
68
- r.clear(), F.current = !0;
69
- }
70
- function G() {
71
- r.start(
72
- // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
73
- // Only apply to WebKit for the test to remain 0ms.
74
- Ae() ? 5 : 0,
75
- () => {
76
- F.current = !1;
77
- }
78
- );
79
- }
80
- function I() {
81
- b.current = !0, g.start(0, () => {
82
- b.current = !1;
83
- });
84
- }
85
- function M() {
86
- O.current = !1, X.current = !1;
87
- }
88
- function p() {
89
- const e = $.current, t = e === "pen" || !e ? "mouse" : e, o = se(), c = typeof o == "function" ? o() : o;
90
- return typeof c == "string" ? c : c[t];
91
- }
92
- function be(e) {
93
- const t = p();
94
- return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
95
- }
96
- function ue(e) {
97
- const t = m.current.floatingContext?.nodeId, o = P && ee(P.nodesRef.current, t).some((c) => f(e, c.context?.elements.floating));
98
- return f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || o;
99
- }
100
- function _(e) {
101
- if (be(e)) {
102
- E();
103
- return;
104
- }
105
- if (m.current.insideReactTree) {
106
- E();
107
- return;
108
- }
109
- const t = te(e), o = `[${Ue("inert")}]`, c = v(t) ? t.getRootNode() : null, k = Array.from((Be(c) ? c : me(n.select("floatingElement"))).querySelectorAll(o)), le = n.context.triggerElements;
110
- if (t && (le.hasElement(t) || le.hasMatchingElement((i) => B(i, t))))
111
- return;
112
- let K = v(t) ? t : null;
113
- for (; K && !Z(K); ) {
114
- const i = Ne(K);
115
- if (Z(i) || !v(i))
116
- break;
117
- K = i;
118
- }
119
- if (k.length && v(t) && !$e(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
120
- !B(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
121
- // element was injected after the floating element rendered.
122
- k.every((i) => !B(K, i)))
123
- return;
124
- if (Le(t) && !("touches" in e)) {
125
- const i = Z(t), C = Fe(t), fe = /auto|scroll/, xe = i || fe.test(C.overflowX), Xe = i || fe.test(C.overflowY), We = xe && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, Ye = Xe && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, _e = C.direction === "rtl", He = Ye && (_e ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), ve = We && e.offsetY > t.clientHeight;
126
- if (He || ve)
127
- return;
128
- }
129
- if (ue(e))
130
- return;
131
- if (p() === "intentional" && b.current) {
132
- g.clear(), b.current = !1;
133
- return;
134
- }
135
- if (typeof R == "function" && !R(e))
136
- return;
137
- const Ke = m.current.floatingContext?.nodeId, ae = P ? ee(P.nodesRef.current, Ke) : [];
138
- if (ae.length > 0) {
139
- let i = !0;
140
- if (ae.forEach((C) => {
141
- C.context?.open && !C.context.dataRef.current.__outsidePressBubbles && (i = !1);
142
- }), !i)
143
- return;
144
- }
145
- n.setOpen(!1, A(Ge, e)), E();
146
- }
147
- function we(e) {
148
- p() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || _(e);
149
- }
150
- function Ce(e) {
151
- if (p() !== "sloppy" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
152
- return;
153
- const t = e.touches[0];
154
- t && (s.current = {
155
- startTime: Date.now(),
156
- startX: t.clientX,
157
- startY: t.clientY,
158
- dismissOnTouchEnd: !1,
159
- dismissOnMouseDown: !0
160
- }, D.start(1e3, () => {
161
- s.current && (s.current.dismissOnTouchEnd = !1, s.current.dismissOnMouseDown = !1);
162
- }));
163
- }
164
- function H(e, t) {
165
- const o = te(e);
166
- if (!o)
167
- return;
168
- const c = u(o, e.type, () => {
169
- t(e), c();
170
- });
171
- }
172
- function Se(e) {
173
- $.current = "touch", H(e, Ce);
174
- }
175
- function J(e) {
176
- D.clear(), e.type === "pointerdown" && ($.current = e.pointerType), !(e.type === "mousedown" && s.current && !s.current.dismissOnMouseDown) && H(e, (t) => {
177
- t.type === "pointerdown" ? we(t) : _(t);
178
- });
179
- }
180
- function Q(e) {
181
- if (!O.current)
182
- return;
183
- const t = X.current;
184
- if (M(), p() === "intentional") {
185
- if (e.type === "pointercancel") {
186
- t && I();
187
- return;
188
- }
189
- if (!ue(e)) {
190
- if (t) {
191
- I();
192
- return;
193
- }
194
- typeof R == "function" && !R(e) || (g.clear(), b.current = !0, E());
195
- }
196
- }
197
- }
198
- function Oe(e) {
199
- if (p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
200
- return;
201
- const t = e.touches[0];
202
- if (!t)
203
- return;
204
- const o = Math.abs(t.clientX - s.current.startX), c = Math.abs(t.clientY - s.current.startY), k = Math.sqrt(o * o + c * c);
205
- k > 5 && (s.current.dismissOnTouchEnd = !0), k > 10 && (_(e), D.clear(), s.current = null);
206
- }
207
- function De(e) {
208
- H(e, Oe);
209
- }
210
- function Ie(e) {
211
- p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || (s.current.dismissOnTouchEnd && _(e), D.clear(), s.current = null);
212
- }
213
- function Me(e) {
214
- H(e, Ie);
215
- }
216
- const l = me(ne), ke = z(N && z(u(l, "keydown", w), u(l, "compositionstart", Y), u(l, "compositionend", G)), re && z(u(l, "click", J, !0), u(l, "pointerdown", J, !0), u(l, "pointerup", Q, !0), u(l, "pointercancel", Q, !0), u(l, "mousedown", J, !0), u(l, "mouseup", Q, !0), u(l, "touchstart", Se, !0), u(l, "touchmove", De, !0), u(l, "touchend", Me, !0)));
217
- return () => {
218
- ke(), r.clear(), g.clear(), M(), b.current = !1;
219
- };
220
- }, [m, ne, N, re, R, S, h, W, oe, w, E, se, P, n, D]), a.useEffect(E, [R, E]);
221
- const V = a.useMemo(() => ({
222
- onKeyDown: w,
223
- [Je[L]]: (r) => {
224
- q() && n.setOpen(!1, A(he, r.nativeEvent));
225
- },
226
- ...L !== "intentional" && {
227
- onClick(r) {
228
- q() && n.setOpen(!1, A(he, r.nativeEvent));
229
- }
230
- }
231
- }), [w, n, L, q]), U = y((r) => {
232
- if (!S || !h || r.button !== 0)
233
- return;
234
- const g = te(r.nativeEvent);
235
- B(n.select("floatingElement"), g) && (O.current || (O.current = !0, X.current = !1));
236
- }), j = y((r) => {
237
- !S || !h || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && O.current && (X.current = !0);
238
- }), ie = a.useMemo(() => ({
239
- onKeyDown: w,
240
- // `onMouseDown` may be blocked if `event.preventDefault()` is called in
241
- // `onPointerDown`, such as with <NumberField.ScrubArea>.
242
- // See https://github.com/mui/base-ui/pull/3379
243
- onPointerDown: j,
244
- onMouseDown: j,
245
- onClickCapture: T,
246
- onMouseDownCapture(r) {
247
- T(), U(r);
248
- },
249
- onPointerDownCapture(r) {
250
- T(), U(r);
251
- },
252
- onMouseUpCapture: T,
253
- onTouchEndCapture: T,
254
- onTouchMoveCapture: T
255
- }), [w, T, U, j]);
256
- return a.useMemo(() => h ? {
257
- reference: V,
258
- floating: ie,
259
- trigger: V
260
- } : {}, [h, V, ie]);
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);
261
9
  }
262
10
  export {
263
- Ze as normalizeProp,
264
- pt as useDismiss
11
+ c as getPreviousMonth
265
12
  };
266
13
  //# sourceMappingURL=index244.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index244.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getComputedStyle, getParentNode, isElement, isHTMLElement, isLastTraversableNode, isShadowRoot, isWebKit } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { Timeout, useTimeout } from '@base-ui/utils/useTimeout';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { contains, getTarget, isEventTargetWithin, isRootElement } from \"../utils/element.js\";\nimport { isReactEvent } from \"../utils/event.js\";\nimport { getNodeChildren } from \"../utils/nodes.js\";\n\n/* eslint-disable no-underscore-dangle */\n\nimport { useFloatingTree } from \"../components/FloatingTree.js\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.js\";\nimport { REASONS } from \"../../internals/reasons.js\";\nimport { createAttribute } from \"../utils/createAttribute.js\";\nconst bubbleHandlerKeys = {\n intentional: 'onClick',\n sloppy: 'onPointerDown'\n};\nfunction alwaysFalse() {\n return false;\n}\nexport function normalizeProp(normalizable) {\n return {\n escapeKey: typeof normalizable === 'boolean' ? normalizable : normalizable?.escapeKey ?? false,\n outsidePress: typeof normalizable === 'boolean' ? normalizable : normalizable?.outsidePress ?? true\n };\n}\n/**\n * Closes the floating element when a dismissal is requested — by default, when\n * the user presses the `escape` key or outside of the floating element.\n * @see https://floating-ui.com/docs/useDismiss\n */\nexport function useDismiss(context, props = {}) {\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const floatingElement = store.useState('floatingElement');\n const {\n dataRef\n } = store.context;\n const {\n enabled = true,\n escapeKey = true,\n outsidePress: outsidePressProp = true,\n outsidePressEvent = 'sloppy',\n referencePress = alwaysFalse,\n referencePressEvent = 'sloppy',\n bubbles,\n externalTree\n } = props;\n const tree = useFloatingTree(externalTree);\n const outsidePressFn = useStableCallback(typeof outsidePressProp === 'function' ? outsidePressProp : () => false);\n const outsidePress = typeof outsidePressProp === 'function' ? outsidePressFn : outsidePressProp;\n const outsidePressEnabled = outsidePress !== false;\n const getOutsidePressEventProp = useStableCallback(() => outsidePressEvent);\n const pressStartedInsideRef = React.useRef(false);\n const pressStartPreventedRef = React.useRef(false);\n // Ignore only the very next outside click after dragging from inside to outside.\n const suppressNextOutsideClickRef = React.useRef(false);\n const {\n escapeKey: escapeKeyBubbles,\n outsidePress: outsidePressBubbles\n } = normalizeProp(bubbles);\n const touchStateRef = React.useRef(null);\n const cancelDismissOnEndTimeout = useTimeout();\n const clearInsideReactTreeTimeout = useTimeout();\n const clearInsideReactTree = useStableCallback(() => {\n clearInsideReactTreeTimeout.clear();\n dataRef.current.insideReactTree = false;\n });\n const isComposingRef = React.useRef(false);\n const currentPointerTypeRef = React.useRef('');\n const isReferencePressEnabled = useStableCallback(referencePress);\n const closeOnEscapeKeyDown = useStableCallback(event => {\n if (!open || !enabled || !escapeKey || event.key !== 'Escape') {\n return;\n }\n\n // Wait until IME is settled. Pressing `Escape` while composing should\n // close the compose menu, but not the floating element.\n if (isComposingRef.current) {\n return;\n }\n const nodeId = dataRef.current.floatingContext?.nodeId;\n const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];\n if (!escapeKeyBubbles) {\n if (children.length > 0) {\n let shouldDismiss = true;\n children.forEach(child => {\n if (child.context?.open && !child.context.dataRef.current.__escapeKeyBubbles) {\n shouldDismiss = false;\n }\n });\n if (!shouldDismiss) {\n return;\n }\n }\n }\n const native = isReactEvent(event) ? event.nativeEvent : event;\n const eventDetails = createChangeEventDetails(REASONS.escapeKey, native);\n store.setOpen(false, eventDetails);\n if (!escapeKeyBubbles && !eventDetails.isPropagationAllowed) {\n event.stopPropagation();\n }\n });\n const markInsideReactTree = useStableCallback(() => {\n dataRef.current.insideReactTree = true;\n clearInsideReactTreeTimeout.start(0, clearInsideReactTree);\n });\n React.useEffect(() => {\n if (!open || !enabled) {\n return undefined;\n }\n dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;\n dataRef.current.__outsidePressBubbles = outsidePressBubbles;\n const compositionTimeout = new Timeout();\n const preventedPressSuppressionTimeout = new Timeout();\n function handleCompositionStart() {\n compositionTimeout.clear();\n isComposingRef.current = true;\n }\n function handleCompositionEnd() {\n // Safari fires `compositionend` before `keydown`, so we need to wait\n // until the next tick to set `isComposing` to `false`.\n // https://bugs.webkit.org/show_bug.cgi?id=165004\n compositionTimeout.start(\n // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.\n // Only apply to WebKit for the test to remain 0ms.\n isWebKit() ? 5 : 0, () => {\n isComposingRef.current = false;\n });\n }\n function suppressImmediateOutsideClickAfterPreventedStart() {\n suppressNextOutsideClickRef.current = true;\n // Firefox can emit the synthetic outside click in a later task after\n // pointer lock exit, so microtask clearing is too early here.\n preventedPressSuppressionTimeout.start(0, () => {\n suppressNextOutsideClickRef.current = false;\n });\n }\n function resetPressStartState() {\n pressStartedInsideRef.current = false;\n pressStartPreventedRef.current = false;\n }\n function getOutsidePressEvent() {\n const type = currentPointerTypeRef.current;\n const computedType = type === 'pen' || !type ? 'mouse' : type;\n const outsidePressEventValue = getOutsidePressEventProp();\n const resolved = typeof outsidePressEventValue === 'function' ? outsidePressEventValue() : outsidePressEventValue;\n if (typeof resolved === 'string') {\n return resolved;\n }\n return resolved[computedType];\n }\n function shouldIgnoreEvent(event) {\n const computedOutsidePressEvent = getOutsidePressEvent();\n return computedOutsidePressEvent === 'intentional' && event.type !== 'click' || computedOutsidePressEvent === 'sloppy' && event.type === 'click';\n }\n function isEventWithinFloatingTree(event) {\n const nodeId = dataRef.current.floatingContext?.nodeId;\n const targetIsInsideChildren = tree && getNodeChildren(tree.nodesRef.current, nodeId).some(node => isEventTargetWithin(event, node.context?.elements.floating));\n return isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement')) || targetIsInsideChildren;\n }\n function closeOnPressOutside(event) {\n if (shouldIgnoreEvent(event)) {\n clearInsideReactTree();\n return;\n }\n if (dataRef.current.insideReactTree) {\n clearInsideReactTree();\n return;\n }\n const target = getTarget(event);\n const inertSelector = `[${createAttribute('inert')}]`;\n const targetRoot = isElement(target) ? target.getRootNode() : null;\n const markers = Array.from((isShadowRoot(targetRoot) ? targetRoot : ownerDocument(store.select('floatingElement'))).querySelectorAll(inertSelector));\n const triggers = store.context.triggerElements;\n\n // If another trigger is clicked, don't close the floating element.\n if (target && (triggers.hasElement(target) || triggers.hasMatchingElement(trigger => contains(trigger, target)))) {\n return;\n }\n let targetRootAncestor = isElement(target) ? target : null;\n while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {\n const nextParent = getParentNode(targetRootAncestor);\n if (isLastTraversableNode(nextParent) || !isElement(nextParent)) {\n break;\n }\n targetRootAncestor = nextParent;\n }\n\n // Check if the click occurred on a third-party element injected after the\n // floating element rendered.\n if (markers.length && isElement(target) && !isRootElement(target) &&\n // Clicked on a direct ancestor (e.g. FloatingOverlay).\n !contains(target, store.select('floatingElement')) &&\n // If the target root element contains none of the markers, then the\n // element was injected after the floating element rendered.\n markers.every(marker => !contains(targetRootAncestor, marker))) {\n return;\n }\n\n // Check if the click occurred on the scrollbar\n // Skip for touch events: scrollbars don't receive touch events on most platforms\n if (isHTMLElement(target) && !('touches' in event)) {\n const lastTraversableNode = isLastTraversableNode(target);\n const style = getComputedStyle(target);\n const scrollRe = /auto|scroll/;\n const isScrollableX = lastTraversableNode || scrollRe.test(style.overflowX);\n const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);\n const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;\n const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;\n const isRTL = style.direction === 'rtl';\n\n // Check click position relative to scrollbar.\n // In some browsers it is possible to change the <body> (or window)\n // scrollbar to the left side, but is very rare and is difficult to\n // check for. Plus, for modal dialogs with backdrops, it is more\n // important that the backdrop is checked but not so much the window.\n const pressedVerticalScrollbar = canScrollY && (isRTL ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);\n const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;\n if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {\n return;\n }\n }\n if (isEventWithinFloatingTree(event)) {\n return;\n }\n\n // In intentional mode, a press that starts inside and ends outside gets\n // one suppressed outside click. Run this after inside-target checks so\n // inside clicks don't consume the one-shot suppression.\n if (getOutsidePressEvent() === 'intentional' && suppressNextOutsideClickRef.current) {\n preventedPressSuppressionTimeout.clear();\n suppressNextOutsideClickRef.current = false;\n return;\n }\n if (typeof outsidePress === 'function' && !outsidePress(event)) {\n return;\n }\n const nodeId = dataRef.current.floatingContext?.nodeId;\n const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];\n if (children.length > 0) {\n let shouldDismiss = true;\n children.forEach(child => {\n if (child.context?.open && !child.context.dataRef.current.__outsidePressBubbles) {\n shouldDismiss = false;\n }\n });\n if (!shouldDismiss) {\n return;\n }\n }\n store.setOpen(false, createChangeEventDetails(REASONS.outsidePress, event));\n clearInsideReactTree();\n }\n function handlePointerDown(event) {\n if (getOutsidePressEvent() !== 'sloppy' || event.pointerType === 'touch' || !store.select('open') || !enabled || isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement'))) {\n return;\n }\n closeOnPressOutside(event);\n }\n function handleTouchStart(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !store.select('open') || !enabled || isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement'))) {\n return;\n }\n const touch = event.touches[0];\n if (touch) {\n touchStateRef.current = {\n startTime: Date.now(),\n startX: touch.clientX,\n startY: touch.clientY,\n dismissOnTouchEnd: false,\n dismissOnMouseDown: true\n };\n cancelDismissOnEndTimeout.start(1000, () => {\n if (touchStateRef.current) {\n touchStateRef.current.dismissOnTouchEnd = false;\n touchStateRef.current.dismissOnMouseDown = false;\n }\n });\n }\n }\n function addTargetEventListenerOnce(event, listener) {\n const target = getTarget(event);\n if (!target) {\n return;\n }\n const unsubscribe = addEventListener(target, event.type, () => {\n listener(event);\n unsubscribe();\n });\n }\n function handleTouchStartCapture(event) {\n currentPointerTypeRef.current = 'touch';\n addTargetEventListenerOnce(event, handleTouchStart);\n }\n function closeOnPressOutsideCapture(event) {\n cancelDismissOnEndTimeout.clear();\n if (event.type === 'pointerdown') {\n currentPointerTypeRef.current = event.pointerType;\n }\n if (event.type === 'mousedown' && touchStateRef.current && !touchStateRef.current.dismissOnMouseDown) {\n return;\n }\n addTargetEventListenerOnce(event, targetEvent => {\n if (targetEvent.type === 'pointerdown') {\n handlePointerDown(targetEvent);\n } else {\n closeOnPressOutside(targetEvent);\n }\n });\n }\n function handlePressEndCapture(event) {\n if (!pressStartedInsideRef.current) {\n return;\n }\n const pressStartedInsideDefaultPrevented = pressStartPreventedRef.current;\n resetPressStartState();\n if (getOutsidePressEvent() !== 'intentional') {\n return;\n }\n if (event.type === 'pointercancel') {\n if (pressStartedInsideDefaultPrevented) {\n suppressImmediateOutsideClickAfterPreventedStart();\n }\n return;\n }\n if (isEventWithinFloatingTree(event)) {\n return;\n }\n\n // If pointerdown was prevented, no click may be generated for that\n // interaction. However, Firefox may still emit an immediate click after\n // pointerup (e.g. NumberField scrub with pointer lock), so suppress for\n // one tick to absorb that synthetic click only.\n if (pressStartedInsideDefaultPrevented) {\n suppressImmediateOutsideClickAfterPreventedStart();\n return;\n }\n\n // Avoid suppressing when outsidePress explicitly ignores this target.\n if (typeof outsidePress === 'function' && !outsidePress(event)) {\n return;\n }\n preventedPressSuppressionTimeout.clear();\n suppressNextOutsideClickRef.current = true;\n clearInsideReactTree();\n }\n function handleTouchMove(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !touchStateRef.current || isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement'))) {\n return;\n }\n const touch = event.touches[0];\n if (!touch) {\n return;\n }\n const deltaX = Math.abs(touch.clientX - touchStateRef.current.startX);\n const deltaY = Math.abs(touch.clientY - touchStateRef.current.startY);\n const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n if (distance > 5) {\n touchStateRef.current.dismissOnTouchEnd = true;\n }\n if (distance > 10) {\n closeOnPressOutside(event);\n cancelDismissOnEndTimeout.clear();\n touchStateRef.current = null;\n }\n }\n function handleTouchMoveCapture(event) {\n addTargetEventListenerOnce(event, handleTouchMove);\n }\n function handleTouchEnd(event) {\n if (getOutsidePressEvent() !== 'sloppy' || !touchStateRef.current || isEventTargetWithin(event, store.select('floatingElement')) || isEventTargetWithin(event, store.select('domReferenceElement'))) {\n return;\n }\n if (touchStateRef.current.dismissOnTouchEnd) {\n closeOnPressOutside(event);\n }\n cancelDismissOnEndTimeout.clear();\n touchStateRef.current = null;\n }\n function handleTouchEndCapture(event) {\n addTargetEventListenerOnce(event, handleTouchEnd);\n }\n const doc = ownerDocument(floatingElement);\n const unsubscribe = mergeCleanups(escapeKey && mergeCleanups(addEventListener(doc, 'keydown', closeOnEscapeKeyDown), addEventListener(doc, 'compositionstart', handleCompositionStart), addEventListener(doc, 'compositionend', handleCompositionEnd)), outsidePressEnabled && mergeCleanups(addEventListener(doc, 'click', closeOnPressOutsideCapture, true), addEventListener(doc, 'pointerdown', closeOnPressOutsideCapture, true), addEventListener(doc, 'pointerup', handlePressEndCapture, true), addEventListener(doc, 'pointercancel', handlePressEndCapture, true), addEventListener(doc, 'mousedown', closeOnPressOutsideCapture, true), addEventListener(doc, 'mouseup', handlePressEndCapture, true), addEventListener(doc, 'touchstart', handleTouchStartCapture, true), addEventListener(doc, 'touchmove', handleTouchMoveCapture, true), addEventListener(doc, 'touchend', handleTouchEndCapture, true)));\n return () => {\n unsubscribe();\n compositionTimeout.clear();\n preventedPressSuppressionTimeout.clear();\n resetPressStartState();\n suppressNextOutsideClickRef.current = false;\n };\n }, [dataRef, floatingElement, escapeKey, outsidePressEnabled, outsidePress, open, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, clearInsideReactTree, getOutsidePressEventProp, tree, store, cancelDismissOnEndTimeout]);\n React.useEffect(clearInsideReactTree, [outsidePress, clearInsideReactTree]);\n const reference = React.useMemo(() => ({\n onKeyDown: closeOnEscapeKeyDown,\n [bubbleHandlerKeys[referencePressEvent]]: event => {\n if (!isReferencePressEnabled()) {\n return;\n }\n store.setOpen(false, createChangeEventDetails(REASONS.triggerPress, event.nativeEvent));\n },\n ...(referencePressEvent !== 'intentional' && {\n onClick(event) {\n if (!isReferencePressEnabled()) {\n return;\n }\n store.setOpen(false, createChangeEventDetails(REASONS.triggerPress, event.nativeEvent));\n }\n })\n }), [closeOnEscapeKeyDown, store, referencePressEvent, isReferencePressEnabled]);\n const markPressStartedInsideReactTree = useStableCallback(event => {\n if (!open || !enabled || event.button !== 0) {\n return;\n }\n const target = getTarget(event.nativeEvent);\n // Only treat presses that start within the floating DOM subtree as inside.\n // This avoids suppressing parent dismissal when interacting with nested portals.\n if (!contains(store.select('floatingElement'), target)) {\n return;\n }\n if (!pressStartedInsideRef.current) {\n pressStartedInsideRef.current = true;\n pressStartPreventedRef.current = false;\n }\n });\n const markInsidePressStartPrevented = useStableCallback(event => {\n if (!open || !enabled) {\n return;\n }\n if (!(event.defaultPrevented || event.nativeEvent.defaultPrevented)) {\n return;\n }\n if (pressStartedInsideRef.current) {\n pressStartPreventedRef.current = true;\n }\n });\n const floating = React.useMemo(() => ({\n onKeyDown: closeOnEscapeKeyDown,\n // `onMouseDown` may be blocked if `event.preventDefault()` is called in\n // `onPointerDown`, such as with <NumberField.ScrubArea>.\n // See https://github.com/mui/base-ui/pull/3379\n onPointerDown: markInsidePressStartPrevented,\n onMouseDown: markInsidePressStartPrevented,\n onClickCapture: markInsideReactTree,\n onMouseDownCapture(event) {\n markInsideReactTree();\n markPressStartedInsideReactTree(event);\n },\n onPointerDownCapture(event) {\n markInsideReactTree();\n markPressStartedInsideReactTree(event);\n },\n onMouseUpCapture: markInsideReactTree,\n onTouchEndCapture: markInsideReactTree,\n onTouchMoveCapture: markInsideReactTree\n }), [closeOnEscapeKeyDown, markInsideReactTree, markPressStartedInsideReactTree, markInsidePressStartPrevented]);\n return React.useMemo(() => enabled ? {\n reference,\n floating,\n trigger: reference\n } : {}, [enabled, reference, floating]);\n}"],"names":["bubbleHandlerKeys","alwaysFalse","normalizeProp","normalizable","useDismiss","context","props","store","open","floatingElement","dataRef","enabled","escapeKey","outsidePressProp","outsidePressEvent","referencePress","referencePressEvent","bubbles","externalTree","tree","useFloatingTree","outsidePressFn","useStableCallback","outsidePress","outsidePressEnabled","getOutsidePressEventProp","pressStartedInsideRef","React","pressStartPreventedRef","suppressNextOutsideClickRef","escapeKeyBubbles","outsidePressBubbles","touchStateRef","cancelDismissOnEndTimeout","useTimeout","clearInsideReactTreeTimeout","clearInsideReactTree","isComposingRef","currentPointerTypeRef","isReferencePressEnabled","closeOnEscapeKeyDown","event","nodeId","children","getNodeChildren","shouldDismiss","child","native","isReactEvent","eventDetails","createChangeEventDetails","REASONS.escapeKey","markInsideReactTree","compositionTimeout","Timeout","preventedPressSuppressionTimeout","handleCompositionStart","handleCompositionEnd","isWebKit","suppressImmediateOutsideClickAfterPreventedStart","resetPressStartState","getOutsidePressEvent","type","computedType","outsidePressEventValue","resolved","shouldIgnoreEvent","computedOutsidePressEvent","isEventWithinFloatingTree","targetIsInsideChildren","node","isEventTargetWithin","closeOnPressOutside","target","getTarget","inertSelector","createAttribute","targetRoot","isElement","markers","isShadowRoot","ownerDocument","triggers","trigger","contains","targetRootAncestor","isLastTraversableNode","nextParent","getParentNode","isRootElement","marker","isHTMLElement","lastTraversableNode","style","getComputedStyle","scrollRe","isScrollableX","isScrollableY","canScrollX","canScrollY","isRTL","pressedVerticalScrollbar","pressedHorizontalScrollbar","REASONS.outsidePress","handlePointerDown","handleTouchStart","touch","addTargetEventListenerOnce","listener","unsubscribe","addEventListener","handleTouchStartCapture","closeOnPressOutsideCapture","targetEvent","handlePressEndCapture","pressStartedInsideDefaultPrevented","handleTouchMove","deltaX","deltaY","distance","handleTouchMoveCapture","handleTouchEnd","handleTouchEndCapture","doc","mergeCleanups","reference","REASONS.triggerPress","markPressStartedInsideReactTree","markInsidePressStartPrevented","floating"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAMA,KAAoB;AAAA,EACxB,aAAa;AAAA,EACb,QAAQ;AACV;AACA,SAASC,KAAc;AACrB,SAAO;AACT;AACO,SAASC,GAAcC,GAAc;AAC1C,SAAO;AAAA,IACL,WAAW,OAAOA,KAAiB,YAAYA,IAAeA,GAAc,aAAa;AAAA,IACzF,cAAc,OAAOA,KAAiB,YAAYA,IAAeA,GAAc,gBAAgB;AAAA,EACnG;AACA;AAMO,SAASC,GAAWC,GAASC,KAAQ,IAAI;AAC9C,QAAMC,IAAQ,eAAeF,IAAUA,EAAQ,YAAYA,GACrDG,IAAOD,EAAM,SAAS,MAAM,GAC5BE,KAAkBF,EAAM,SAAS,iBAAiB,GAClD;AAAA,IACJ,SAAAG;AAAA,EACJ,IAAMH,EAAM,SACJ;AAAA,IACJ,SAAAI,IAAU;AAAA,IACd,WAAIC,IAAY;AAAA,IACZ,cAAcC,IAAmB;AAAA,IACjC,mBAAAC,KAAoB;AAAA,IACpB,gBAAAC,KAAiBd;AAAA,IACjB,qBAAAe,IAAsB;AAAA,IACtB,SAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMZ,IACEa,IAAOC,GAAgBF,EAAY,GACnCG,K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,OAAO;AAAA,IACpC,WAAWa;AAAA;AAAA;AAAA;AAAA,IAIX,eAAewF;AAAA,IACf,aAAaA;AAAA,IACb,gBAAgB5E;AAAA,IAChB,mBAAmBX,GAAO;AACxB,MAAAW,EAAmB,GACnB2E,EAAgCtF,CAAK;AAAA,IACvC;AAAA,IACA,qBAAqBA,GAAO;AAC1B,MAAAW,EAAmB,GACnB2E,EAAgCtF,CAAK;AAAA,IACvC;AAAA,IACA,kBAAkBW;AAAA,IAClB,mBAAmBA;AAAA,IACnB,oBAAoBA;AAAA,EACxB,IAAM,CAACZ,GAAsBY,GAAqB2E,GAAiCC,CAA6B,CAAC;AAC/G,SAAOrG,EAAM,QAAQ,MAAMhB,IAAU;AAAA,IACnC,WAAAkH;AAAA,IACA,UAAAI;AAAA,IACA,SAASJ;AAAA,EACb,IAAM,CAAA,GAAI,CAAClH,GAASkH,GAAWI,EAAQ,CAAC;AACxC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index244.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest 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 previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAkBO,SAASA,EAAiBC,GAAqBC,GAAoBC,GAASC,GAAS;AACxF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,EAAc,IAAKH,GACtC,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAmBC,KAAkB,IAAK,GACnDK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAO,CAACD,CAAM;AAGnC,MAAI,EADeD,EAA2BE,GAAOT,CAAkB,KACrD;AAGlB,WAAOM,EAAUG,GAAO,CAACD,CAAM;AACnC;","x_google_ignoreList":[0]}