@rpcbase/ui 0.158.0 → 0.159.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 (664) hide show
  1. package/dist/components/DayPicker/index.d.ts.map +1 -1
  2. package/dist/components/HoursPicker/index.d.ts.map +1 -1
  3. package/dist/index100.js +130 -4
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +20 -6
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +75 -5
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +18 -4
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +101 -5
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +5 -5
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +14 -8
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +2 -6
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +7 -4
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +326 -4
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js +105 -104
  24. package/dist/index11.js.map +1 -1
  25. package/dist/index110.js +49 -6
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +5 -145
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +66 -37
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +2 -5
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +363 -7
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +261 -13
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +60 -13
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +46 -7
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +169 -31
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +109 -10
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index120.js +24 -10
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +8 -9
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +4 -13
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +5 -101
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +5 -20
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +464 -51
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +182 -69
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +107 -9
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +262 -20
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +9 -16
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index13.js +1 -1
  66. package/dist/index130.js +40 -21
  67. package/dist/index130.js.map +1 -1
  68. package/dist/index131.js +4 -6
  69. package/dist/index131.js.map +1 -1
  70. package/dist/index132.js +52 -6
  71. package/dist/index132.js.map +1 -1
  72. package/dist/index133.js +4 -23
  73. package/dist/index133.js.map +1 -1
  74. package/dist/index134.js +5 -35
  75. package/dist/index134.js.map +1 -1
  76. package/dist/index135.js +16 -16
  77. package/dist/index135.js.map +1 -1
  78. package/dist/index136.js +5 -6
  79. package/dist/index136.js.map +1 -1
  80. package/dist/index137.js +7 -4
  81. package/dist/index137.js.map +1 -1
  82. package/dist/index138.js +16 -4
  83. package/dist/index138.js.map +1 -1
  84. package/dist/index139.js +4 -4
  85. package/dist/index139.js.map +1 -1
  86. package/dist/index14.js +3 -3
  87. package/dist/index140.js +4 -4
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +5 -3
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +5 -6
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +5 -24
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +4 -7
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +6 -6
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +24 -5
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +6 -3
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +4 -3
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +6 -4
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index150.js +5 -3
  108. package/dist/index150.js.map +1 -1
  109. package/dist/index151.js +4 -4
  110. package/dist/index151.js.map +1 -1
  111. package/dist/index152.js +5 -3
  112. package/dist/index152.js.map +1 -1
  113. package/dist/index153.js +4 -3
  114. package/dist/index153.js.map +1 -1
  115. package/dist/index154.js +8 -3
  116. package/dist/index154.js.map +1 -1
  117. package/dist/index155.js +5 -3
  118. package/dist/index155.js.map +1 -1
  119. package/dist/index156.js +4 -33
  120. package/dist/index156.js.map +1 -1
  121. package/dist/index157.js +4 -249
  122. package/dist/index157.js.map +1 -1
  123. package/dist/index158.js +6 -114
  124. package/dist/index158.js.map +1 -1
  125. package/dist/index159.js +144 -218
  126. package/dist/index159.js.map +1 -1
  127. package/dist/index160.js +36 -63
  128. package/dist/index160.js.map +1 -1
  129. package/dist/index161.js +4 -20
  130. package/dist/index161.js.map +1 -1
  131. package/dist/index162.js +7 -209
  132. package/dist/index162.js.map +1 -1
  133. package/dist/index163.js +13 -319
  134. package/dist/index163.js.map +1 -1
  135. package/dist/index164.js +13 -130
  136. package/dist/index164.js.map +1 -1
  137. package/dist/index165.js +7 -20
  138. package/dist/index165.js.map +1 -1
  139. package/dist/index166.js +31 -75
  140. package/dist/index166.js.map +1 -1
  141. package/dist/index167.js +10 -18
  142. package/dist/index167.js.map +1 -1
  143. package/dist/index168.js +10 -101
  144. package/dist/index168.js.map +1 -1
  145. package/dist/index169.js +9 -5
  146. package/dist/index169.js.map +1 -1
  147. package/dist/index170.js +13 -14
  148. package/dist/index170.js.map +1 -1
  149. package/dist/index171.js +102 -2
  150. package/dist/index171.js.map +1 -1
  151. package/dist/index172.js +19 -7
  152. package/dist/index172.js.map +1 -1
  153. package/dist/index173.js +51 -324
  154. package/dist/index173.js.map +1 -1
  155. package/dist/index174.js +71 -48
  156. package/dist/index174.js.map +1 -1
  157. package/dist/index175.js +9 -605
  158. package/dist/index175.js.map +1 -1
  159. package/dist/index176.js +19 -45
  160. package/dist/index176.js.map +1 -1
  161. package/dist/index177.js +16 -11
  162. package/dist/index177.js.map +1 -1
  163. package/dist/index178.js +21 -203
  164. package/dist/index178.js.map +1 -1
  165. package/dist/index179.js +7 -22
  166. package/dist/index179.js.map +1 -1
  167. package/dist/index18.js +45 -44
  168. package/dist/index18.js.map +1 -1
  169. package/dist/index180.js +5 -24
  170. package/dist/index180.js.map +1 -1
  171. package/dist/index181.js +18 -394
  172. package/dist/index181.js.map +1 -1
  173. package/dist/index182.js +33 -45
  174. package/dist/index182.js.map +1 -1
  175. package/dist/index183.js +16 -6
  176. package/dist/index183.js.map +1 -1
  177. package/dist/index184.js +6 -68
  178. package/dist/index184.js.map +1 -1
  179. package/dist/index185.js +5 -2
  180. package/dist/index185.js.map +1 -1
  181. package/dist/index186.js +4 -363
  182. package/dist/index186.js.map +1 -1
  183. package/dist/index187.js +4 -261
  184. package/dist/index187.js.map +1 -1
  185. package/dist/index188.js +4 -60
  186. package/dist/index188.js.map +1 -1
  187. package/dist/index189.js +3 -46
  188. package/dist/index189.js.map +1 -1
  189. package/dist/index19.js +6 -6
  190. package/dist/index190.js +6 -169
  191. package/dist/index190.js.map +1 -1
  192. package/dist/index191.js +24 -110
  193. package/dist/index191.js.map +1 -1
  194. package/dist/index192.js +7 -24
  195. package/dist/index192.js.map +1 -1
  196. package/dist/index193.js +7 -8
  197. package/dist/index193.js.map +1 -1
  198. package/dist/index194.js +5 -4
  199. package/dist/index194.js.map +1 -1
  200. package/dist/index195.js +3 -5
  201. package/dist/index195.js.map +1 -1
  202. package/dist/index196.js +3 -4
  203. package/dist/index196.js.map +1 -1
  204. package/dist/index197.js +4 -466
  205. package/dist/index197.js.map +1 -1
  206. package/dist/index198.js +3 -185
  207. package/dist/index198.js.map +1 -1
  208. package/dist/index199.js +4 -107
  209. package/dist/index199.js.map +1 -1
  210. package/dist/index20.js +1 -1
  211. package/dist/index200.js +3 -262
  212. package/dist/index200.js.map +1 -1
  213. package/dist/index201.js +3 -9
  214. package/dist/index201.js.map +1 -1
  215. package/dist/index202.js +3 -42
  216. package/dist/index202.js.map +1 -1
  217. package/dist/index203.js +605 -4
  218. package/dist/index203.js.map +1 -1
  219. package/dist/index204.js +25 -2
  220. package/dist/index204.js.map +1 -1
  221. package/dist/index205.js +29 -68
  222. package/dist/index205.js.map +1 -1
  223. package/dist/index206.js +5 -85
  224. package/dist/index206.js.map +1 -1
  225. package/dist/index207.js +3 -46
  226. package/dist/index207.js.map +1 -1
  227. package/dist/index208.js +2 -8
  228. package/dist/index208.js.map +1 -1
  229. package/dist/index209.js +67 -4
  230. package/dist/index209.js.map +1 -1
  231. package/dist/index21.js +1 -1
  232. package/dist/index210.js +81 -48
  233. package/dist/index210.js.map +1 -1
  234. package/dist/index211.js +44 -14
  235. package/dist/index211.js.map +1 -1
  236. package/dist/index212.js +7 -5
  237. package/dist/index212.js.map +1 -1
  238. package/dist/index213.js +4 -5
  239. package/dist/index213.js.map +1 -1
  240. package/dist/index214.js +51 -58
  241. package/dist/index214.js.map +1 -1
  242. package/dist/index215.js +60 -62
  243. package/dist/index215.js.map +1 -1
  244. package/dist/index216.js +48 -6
  245. package/dist/index216.js.map +1 -1
  246. package/dist/index217.js +39 -4
  247. package/dist/index217.js.map +1 -1
  248. package/dist/index218.js +100 -7
  249. package/dist/index218.js.map +1 -1
  250. package/dist/index219.js +97 -17
  251. package/dist/index219.js.map +1 -1
  252. package/dist/index220.js +99 -5
  253. package/dist/index220.js.map +1 -1
  254. package/dist/index221.js +13 -5
  255. package/dist/index221.js.map +1 -1
  256. package/dist/index222.js +154 -13
  257. package/dist/index222.js.map +1 -1
  258. package/dist/index223.js +30 -10
  259. package/dist/index223.js.map +1 -1
  260. package/dist/index224.js +9 -14
  261. package/dist/index224.js.map +1 -1
  262. package/dist/index225.js +47 -14
  263. package/dist/index225.js.map +1 -1
  264. package/dist/index226.js +11 -5
  265. package/dist/index226.js.map +1 -1
  266. package/dist/index227.js +44 -6
  267. package/dist/index227.js.map +1 -1
  268. package/dist/index228.js +95 -7
  269. package/dist/index228.js.map +1 -1
  270. package/dist/index229.js +86 -6
  271. package/dist/index229.js.map +1 -1
  272. package/dist/index23.js +1 -1
  273. package/dist/index230.js +105 -9
  274. package/dist/index230.js.map +1 -1
  275. package/dist/index231.js +52 -5
  276. package/dist/index231.js.map +1 -1
  277. package/dist/index232.js +11 -5
  278. package/dist/index232.js.map +1 -1
  279. package/dist/index233.js +37 -9
  280. package/dist/index233.js.map +1 -1
  281. package/dist/index234.js +8 -5
  282. package/dist/index234.js.map +1 -1
  283. package/dist/index235.js +116 -5
  284. package/dist/index235.js.map +1 -1
  285. package/dist/index236.js +17 -4
  286. package/dist/index236.js.map +1 -1
  287. package/dist/index237.js +15 -11
  288. package/dist/index237.js.map +1 -1
  289. package/dist/index238.js +3 -10
  290. package/dist/index238.js.map +1 -1
  291. package/dist/index239.js +36 -10
  292. package/dist/index239.js.map +1 -1
  293. package/dist/index240.js +20 -11
  294. package/dist/index240.js.map +1 -1
  295. package/dist/index241.js +9 -11
  296. package/dist/index241.js.map +1 -1
  297. package/dist/index242.js +8 -10
  298. package/dist/index242.js.map +1 -1
  299. package/dist/index243.js +19 -7
  300. package/dist/index243.js.map +1 -1
  301. package/dist/index244.js +28 -6
  302. package/dist/index244.js.map +1 -1
  303. package/dist/index245.js +16 -5
  304. package/dist/index245.js.map +1 -1
  305. package/dist/index246.js +58 -6
  306. package/dist/index246.js.map +1 -1
  307. package/dist/index247.js +8 -7
  308. package/dist/index247.js.map +1 -1
  309. package/dist/index248.js +66 -6
  310. package/dist/index248.js.map +1 -1
  311. package/dist/index249.js +18 -54
  312. package/dist/index249.js.map +1 -1
  313. package/dist/index250.js +16 -8
  314. package/dist/index250.js.map +1 -1
  315. package/dist/index251.js +4 -18
  316. package/dist/index251.js.map +1 -1
  317. package/dist/index252.js +5 -23
  318. package/dist/index252.js.map +1 -1
  319. package/dist/index253.js +6 -16
  320. package/dist/index253.js.map +1 -1
  321. package/dist/index254.js +4 -7
  322. package/dist/index254.js.map +1 -1
  323. package/dist/index255.js +7 -10
  324. package/dist/index255.js.map +1 -1
  325. package/dist/index256.js +17 -10
  326. package/dist/index256.js.map +1 -1
  327. package/dist/index257.js +5 -21
  328. package/dist/index257.js.map +1 -1
  329. package/dist/index258.js +5 -10
  330. package/dist/index258.js.map +1 -1
  331. package/dist/index259.js +13 -9
  332. package/dist/index259.js.map +1 -1
  333. package/dist/index260.js +10 -9
  334. package/dist/index260.js.map +1 -1
  335. package/dist/index261.js +14 -4
  336. package/dist/index261.js.map +1 -1
  337. package/dist/index262.js +14 -5
  338. package/dist/index262.js.map +1 -1
  339. package/dist/index263.js +5 -16
  340. package/dist/index263.js.map +1 -1
  341. package/dist/index264.js +6 -9
  342. package/dist/index264.js.map +1 -1
  343. package/dist/index265.js +7 -18
  344. package/dist/index265.js.map +1 -1
  345. package/dist/index266.js +6 -15
  346. package/dist/index266.js.map +1 -1
  347. package/dist/index267.js +9 -12
  348. package/dist/index267.js.map +1 -1
  349. package/dist/index268.js +5 -29
  350. package/dist/index268.js.map +1 -1
  351. package/dist/index269.js +5 -12
  352. package/dist/index269.js.map +1 -1
  353. package/dist/index270.js +9 -25
  354. package/dist/index270.js.map +1 -1
  355. package/dist/index271.js +5 -5
  356. package/dist/index271.js.map +1 -1
  357. package/dist/index272.js +5 -64
  358. package/dist/index272.js.map +1 -1
  359. package/dist/index273.js +4 -48
  360. package/dist/index273.js.map +1 -1
  361. package/dist/index274.js +11 -39
  362. package/dist/index274.js.map +1 -1
  363. package/dist/index275.js +10 -100
  364. package/dist/index275.js.map +1 -1
  365. package/dist/index276.js +10 -97
  366. package/dist/index276.js.map +1 -1
  367. package/dist/index277.js +11 -99
  368. package/dist/index277.js.map +1 -1
  369. package/dist/index278.js +11 -3
  370. package/dist/index278.js.map +1 -1
  371. package/dist/index279.js +10 -67
  372. package/dist/index279.js.map +1 -1
  373. package/dist/index28.js +1 -1
  374. package/dist/index280.js +7 -180
  375. package/dist/index280.js.map +1 -1
  376. package/dist/index281.js +6 -46
  377. package/dist/index281.js.map +1 -1
  378. package/dist/index282.js +5 -24
  379. package/dist/index282.js.map +1 -1
  380. package/dist/index283.js +7 -29
  381. package/dist/index283.js.map +1 -1
  382. package/dist/index284.js +8 -5
  383. package/dist/index284.js.map +1 -1
  384. package/dist/index285.js +6 -13
  385. package/dist/index285.js.map +1 -1
  386. package/dist/index286.js +54 -153
  387. package/dist/index286.js.map +1 -1
  388. package/dist/index287.js +22 -29
  389. package/dist/index287.js.map +1 -1
  390. package/dist/index288.js +16 -9
  391. package/dist/index288.js.map +1 -1
  392. package/dist/index289.js +7 -47
  393. package/dist/index289.js.map +1 -1
  394. package/dist/index29.js +124 -47
  395. package/dist/index29.js.map +1 -1
  396. package/dist/index290.js +10 -11
  397. package/dist/index290.js.map +1 -1
  398. package/dist/index291.js +9 -43
  399. package/dist/index291.js.map +1 -1
  400. package/dist/index292.js +19 -93
  401. package/dist/index292.js.map +1 -1
  402. package/dist/index293.js +10 -86
  403. package/dist/index293.js.map +1 -1
  404. package/dist/index294.js +9 -105
  405. package/dist/index294.js.map +1 -1
  406. package/dist/index295.js +9 -52
  407. package/dist/index295.js.map +1 -1
  408. package/dist/index296.js +4 -11
  409. package/dist/index296.js.map +1 -1
  410. package/dist/index297.js +5 -37
  411. package/dist/index297.js.map +1 -1
  412. package/dist/index298.js +16 -8
  413. package/dist/index298.js.map +1 -1
  414. package/dist/index299.js +9 -116
  415. package/dist/index299.js.map +1 -1
  416. package/dist/index30.js +47 -219
  417. package/dist/index30.js.map +1 -1
  418. package/dist/index300.js +18 -17
  419. package/dist/index300.js.map +1 -1
  420. package/dist/index301.js +15 -15
  421. package/dist/index301.js.map +1 -1
  422. package/dist/index302.js +12 -3
  423. package/dist/index302.js.map +1 -1
  424. package/dist/index303.js +28 -35
  425. package/dist/index303.js.map +1 -1
  426. package/dist/index304.js +11 -19
  427. package/dist/index304.js.map +1 -1
  428. package/dist/index305.js +25 -9
  429. package/dist/index305.js.map +1 -1
  430. package/dist/index306.js +5 -8
  431. package/dist/index306.js.map +1 -1
  432. package/dist/index307.js +65 -17
  433. package/dist/index307.js.map +1 -1
  434. package/dist/index308.js +178 -26
  435. package/dist/index308.js.map +1 -1
  436. package/dist/index309.js +44 -14
  437. package/dist/index309.js.map +1 -1
  438. package/dist/index31.js +216 -40
  439. package/dist/index31.js.map +1 -1
  440. package/dist/index310.js +5 -2
  441. package/dist/index310.js.map +1 -1
  442. package/dist/index311.js +3 -2
  443. package/dist/index311.js.map +1 -1
  444. package/dist/index312.js +23 -4
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +113 -19
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +15 -12
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +525 -5
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +128 -3
  453. package/dist/index316.js.map +1 -1
  454. package/dist/index317.js +132 -22
  455. package/dist/index317.js.map +1 -1
  456. package/dist/index318.js +2 -113
  457. package/dist/index318.js.map +1 -1
  458. package/dist/index319.js +2 -16
  459. package/dist/index319.js.map +1 -1
  460. package/dist/index32.js +41 -38
  461. package/dist/index32.js.map +1 -1
  462. package/dist/index320.js +19 -523
  463. package/dist/index320.js.map +1 -1
  464. package/dist/index321.js +4 -127
  465. package/dist/index321.js.map +1 -1
  466. package/dist/index322.js +18 -133
  467. package/dist/index322.js.map +1 -1
  468. package/dist/index323.js +12 -20
  469. package/dist/index323.js.map +1 -1
  470. package/dist/index324.js +64 -5
  471. package/dist/index324.js.map +1 -1
  472. package/dist/index325.js +69 -6
  473. package/dist/index325.js.map +1 -1
  474. package/dist/index326.js +9 -4
  475. package/dist/index326.js.map +1 -1
  476. package/dist/index327.js +14 -16
  477. package/dist/index327.js.map +1 -1
  478. package/dist/index328.js +65 -8
  479. package/dist/index328.js.map +1 -1
  480. package/dist/index329.js +5 -5
  481. package/dist/index329.js.map +1 -1
  482. package/dist/index33.js +36 -24
  483. package/dist/index33.js.map +1 -1
  484. package/dist/index330.js +5 -4
  485. package/dist/index330.js.map +1 -1
  486. package/dist/index331.js +4 -546
  487. package/dist/index331.js.map +1 -1
  488. package/dist/index332.js +16 -47
  489. package/dist/index332.js.map +1 -1
  490. package/dist/index333.js +8 -17
  491. package/dist/index333.js.map +1 -1
  492. package/dist/index334.js +5 -6
  493. package/dist/index334.js.map +1 -1
  494. package/dist/index335.js +4 -8
  495. package/dist/index335.js.map +1 -1
  496. package/dist/index336.js +545 -7
  497. package/dist/index336.js.map +1 -1
  498. package/dist/index337.js +47 -9
  499. package/dist/index337.js.map +1 -1
  500. package/dist/index338.js +17 -12
  501. package/dist/index338.js.map +1 -1
  502. package/dist/index339.js +6 -9
  503. package/dist/index339.js.map +1 -1
  504. package/dist/index34.js +21 -38
  505. package/dist/index34.js.map +1 -1
  506. package/dist/index340.js +8 -13
  507. package/dist/index340.js.map +1 -1
  508. package/dist/index341.js +8 -69
  509. package/dist/index341.js.map +1 -1
  510. package/dist/index342.js +9 -9
  511. package/dist/index342.js.map +1 -1
  512. package/dist/index343.js +13 -14
  513. package/dist/index343.js.map +1 -1
  514. package/dist/index344.js +10 -66
  515. package/dist/index344.js.map +1 -1
  516. package/dist/index345.js +13 -64
  517. package/dist/index345.js.map +1 -1
  518. package/dist/index346.js +3 -4
  519. package/dist/index346.js.map +1 -1
  520. package/dist/index347.js +23 -56
  521. package/dist/index347.js.map +1 -1
  522. package/dist/index348.js +5 -68
  523. package/dist/index348.js.map +1 -1
  524. package/dist/index349.js +55 -30
  525. package/dist/index349.js.map +1 -1
  526. package/dist/index35.js +44 -30
  527. package/dist/index35.js.map +1 -1
  528. package/dist/index350.js +68 -9
  529. package/dist/index350.js.map +1 -1
  530. package/dist/index351.js +26 -148
  531. package/dist/index351.js.map +1 -1
  532. package/dist/index352.js +9 -108
  533. package/dist/index352.js.map +1 -1
  534. package/dist/index353.js +153 -4
  535. package/dist/index353.js.map +1 -1
  536. package/dist/index354.js +108 -23
  537. package/dist/index354.js.map +1 -1
  538. package/dist/index355.js +22 -15
  539. package/dist/index355.js.map +1 -1
  540. package/dist/index356.js +12 -28
  541. package/dist/index356.js.map +1 -1
  542. package/dist/index357.js +27 -12
  543. package/dist/index357.js.map +1 -1
  544. package/dist/index358.js +5 -7
  545. package/dist/index358.js.map +1 -1
  546. package/dist/index359.js +15 -22
  547. package/dist/index359.js.map +1 -1
  548. package/dist/index36.js +30 -26
  549. package/dist/index36.js.map +1 -1
  550. package/dist/index360.js +28 -12
  551. package/dist/index360.js.map +1 -1
  552. package/dist/index361.js +12 -27
  553. package/dist/index361.js.map +1 -1
  554. package/dist/index362.js +7 -5
  555. package/dist/index362.js.map +1 -1
  556. package/dist/index37.js +28 -23
  557. package/dist/index37.js.map +1 -1
  558. package/dist/index38.js +17 -123
  559. package/dist/index38.js.map +1 -1
  560. package/dist/index39.js +127 -230
  561. package/dist/index39.js.map +1 -1
  562. package/dist/index40.js +230 -49
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index41.js +50 -2640
  565. package/dist/index41.js.map +1 -1
  566. package/dist/index42.js +2598 -351
  567. package/dist/index42.js.map +1 -1
  568. package/dist/index43.js +375 -214
  569. package/dist/index43.js.map +1 -1
  570. package/dist/index44.js +230 -19
  571. package/dist/index44.js.map +1 -1
  572. package/dist/index45.js +18 -138
  573. package/dist/index45.js.map +1 -1
  574. package/dist/index46.js +125 -170
  575. package/dist/index46.js.map +1 -1
  576. package/dist/index47.js +174 -64
  577. package/dist/index47.js.map +1 -1
  578. package/dist/index48.js +74 -88
  579. package/dist/index48.js.map +1 -1
  580. package/dist/index49.js +90 -5
  581. package/dist/index49.js.map +1 -1
  582. package/dist/index50.js +5 -843
  583. package/dist/index50.js.map +1 -1
  584. package/dist/index51.js +832 -54
  585. package/dist/index51.js.map +1 -1
  586. package/dist/index52.js +66 -8
  587. package/dist/index52.js.map +1 -1
  588. package/dist/index53.js +8 -2
  589. package/dist/index53.js.map +1 -1
  590. package/dist/index54.js +2 -24
  591. package/dist/index54.js.map +1 -1
  592. package/dist/index55.js +22 -232
  593. package/dist/index55.js.map +1 -1
  594. package/dist/index56.js +229 -200
  595. package/dist/index56.js.map +1 -1
  596. package/dist/index59.js +1 -1
  597. package/dist/index63.js +12 -122
  598. package/dist/index63.js.map +1 -1
  599. package/dist/index64.js +133 -14
  600. package/dist/index64.js.map +1 -1
  601. package/dist/index65.js +10 -133
  602. package/dist/index65.js.map +1 -1
  603. package/dist/index66.js +216 -10
  604. package/dist/index66.js.map +1 -1
  605. package/dist/index67.js +12 -216
  606. package/dist/index67.js.map +1 -1
  607. package/dist/index68.js +34 -13
  608. package/dist/index68.js.map +1 -1
  609. package/dist/index69.js +44 -31
  610. package/dist/index69.js.map +1 -1
  611. package/dist/index70.js +7 -46
  612. package/dist/index70.js.map +1 -1
  613. package/dist/index71.js +49 -7
  614. package/dist/index71.js.map +1 -1
  615. package/dist/index72.js +4 -50
  616. package/dist/index72.js.map +1 -1
  617. package/dist/index73.js +6 -4
  618. package/dist/index73.js.map +1 -1
  619. package/dist/index74.js +28 -6
  620. package/dist/index74.js.map +1 -1
  621. package/dist/index75.js +50 -28
  622. package/dist/index75.js.map +1 -1
  623. package/dist/index76.js +9 -50
  624. package/dist/index76.js.map +1 -1
  625. package/dist/index77.js +205 -9
  626. package/dist/index77.js.map +1 -1
  627. package/dist/index78.js +11 -53
  628. package/dist/index78.js.map +1 -1
  629. package/dist/index79.js +1 -1
  630. package/dist/index80.js +2 -2
  631. package/dist/index81.js +2 -2
  632. package/dist/index84.js +47 -52
  633. package/dist/index84.js.map +1 -1
  634. package/dist/index85.js +205 -4
  635. package/dist/index85.js.map +1 -1
  636. package/dist/index86.js +22 -5
  637. package/dist/index86.js.map +1 -1
  638. package/dist/index87.js +24 -15
  639. package/dist/index87.js.map +1 -1
  640. package/dist/index88.js +399 -5
  641. package/dist/index88.js.map +1 -1
  642. package/dist/index89.js +46 -7
  643. package/dist/index89.js.map +1 -1
  644. package/dist/index90.js +53 -16
  645. package/dist/index90.js.map +1 -1
  646. package/dist/index91.js +3 -4
  647. package/dist/index91.js.map +1 -1
  648. package/dist/index92.js +33 -4
  649. package/dist/index92.js.map +1 -1
  650. package/dist/index93.js +249 -5
  651. package/dist/index93.js.map +1 -1
  652. package/dist/index94.js +114 -5
  653. package/dist/index94.js.map +1 -1
  654. package/dist/index95.js +219 -4
  655. package/dist/index95.js.map +1 -1
  656. package/dist/index96.js +66 -4
  657. package/dist/index96.js.map +1 -1
  658. package/dist/index97.js +20 -6
  659. package/dist/index97.js.map +1 -1
  660. package/dist/index98.js +209 -24
  661. package/dist/index98.js.map +1 -1
  662. package/dist/index99.js +319 -6
  663. package/dist/index99.js.map +1 -1
  664. package/package.json +2 -1
package/dist/index254.js CHANGED
@@ -1,11 +1,8 @@
1
- function a(c) {
2
- const e = [];
3
- return c.reduce((s, t) => {
4
- const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
5
- return s.concat(n.slice());
6
- }, e.slice());
1
+ function n(s, e) {
2
+ const t = e.startOfMonth(s), r = t.getDay();
3
+ return r === 1 ? t : r === 0 ? e.addDays(t, -6) : e.addDays(t, -1 * (r - 1));
7
4
  }
8
5
  export {
9
- a as getDays
6
+ n as startOfBroadcastWeek
10
7
  };
11
8
  //# sourceMappingURL=index254.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index254.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"names":["getDays","calendarMonths","initialDays","days","month","weekDays","week"],"mappings":"AAQO,SAASA,EAAQC,GAAgB;AACpC,QAAMC,IAAc,CAAA;AACpB,SAAOD,EAAe,OAAO,CAACE,GAAMC,MAAU;AAC1C,UAAMC,IAAWD,EAAM,MAAM,OAAO,CAACC,GAAUC,MACpCD,EAAS,OAAOC,EAAK,KAAK,MAAK,CAAE,GACzCJ,EAAY,OAAO;AACtB,WAAOC,EAAK,OAAOE,EAAS,MAAK,CAAE;AAAA,EACvC,GAAGH,EAAY,OAAO;AAC1B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index254.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","dayOfWeek"],"mappings":"AAYO,SAASA,EAAqBC,GAAMC,GAAS;AAChD,QAAMC,IAAeD,EAAQ,aAAaD,CAAI,GACxCG,IAAYD,EAAa,OAAM;AACrC,SAAIC,MAAc,IACPD,IAEFC,MAAc,IACZF,EAAQ,QAAQC,GAAc,EAAM,IAGpCD,EAAQ,QAAQC,GAAc,MAAMC,IAAY,EAAE;AAEjE;","x_google_ignoreList":[0]}
package/dist/index255.js CHANGED
@@ -1,14 +1,11 @@
1
- function i(e, o, h, r) {
2
- const { numberOfMonths: f = 1 } = h, n = [];
3
- for (let t = 0; t < f; t++) {
4
- const s = r.addMonths(e, t);
5
- if (o && s > o)
6
- break;
7
- n.push(s);
8
- }
9
- return n;
1
+ import { constructFrom as a } from "./index329.js";
2
+ import { toDate as i } from "./index330.js";
3
+ function s(e, r, o) {
4
+ const t = i(e, o?.in);
5
+ return isNaN(r) ? a(e, NaN) : (r && t.setDate(t.getDate() + r), t);
10
6
  }
11
7
  export {
12
- i as getDisplayMonths
8
+ s as addDays,
9
+ s as default
13
10
  };
14
11
  //# sourceMappingURL=index255.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index255.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month"],"mappings":"AAUO,SAASA,EAAiBC,GAAqBC,GAAkBC,GAAOC,GAAS;AACpF,QAAM,EAAE,gBAAAC,IAAiB,EAAC,IAAKF,GACzBG,IAAS,CAAA;AACf,WAASC,IAAI,GAAGA,IAAIF,GAAgBE,KAAK;AACrC,UAAMC,IAAQJ,EAAQ,UAAUH,GAAqBM,CAAC;AACtD,QAAIL,KAAoBM,IAAQN;AAC5B;AAEJ,IAAAI,EAAO,KAAKE,CAAK;AAAA,EACrB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index255.js","sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"names":["addDays","date","amount","options","_date","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAQC,GAAS;AAC7C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,SAAI,MAAMD,CAAM,IAAUI,EAA6BL,GAAM,GAAG,KAG3DC,KAELE,EAAM,QAAQA,EAAM,QAAO,IAAKF,CAAM,GAC/BE;AACT;","x_google_ignoreList":[0]}
package/dist/index256.js CHANGED
@@ -1,14 +1,21 @@
1
- function u(i, o, n, e) {
2
- const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
3
- let t = s || M || c;
4
- const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
5
- if (n && h(n, t) < f - 1) {
6
- const d = -1 * (f - 1);
7
- t = l(n, d);
8
- }
9
- return o && h(t, o) < 0 && (t = o), r(t);
1
+ import { constructFrom as s } from "./index329.js";
2
+ import { toDate as f } from "./index330.js";
3
+ function u(n, o, i) {
4
+ const t = f(n, i?.in);
5
+ if (isNaN(o)) return s(n, NaN);
6
+ if (!o)
7
+ return t;
8
+ const r = t.getDate(), e = s(n, t.getTime());
9
+ e.setMonth(t.getMonth() + o + 1, 0);
10
+ const a = e.getDate();
11
+ return r >= a ? e : (t.setFullYear(
12
+ e.getFullYear(),
13
+ e.getMonth(),
14
+ r
15
+ ), t);
10
16
  }
11
17
  export {
12
- u as getInitialMonth
18
+ u as addMonths,
19
+ u as default
13
20
  };
14
21
  //# sourceMappingURL=index256.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index256.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, navStart, navEnd, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n if (navEnd &&\n differenceInCalendarMonths(navEnd, initialMonth) < numberOfMonths - 1) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(navEnd, offset);\n }\n if (navStart && differenceInCalendarMonths(initialMonth, navStart) < 0) {\n initialMonth = navStart;\n }\n return startOfMonth(initialMonth);\n}\n"],"names":["getInitialMonth","props","navStart","navEnd","dateLib","month","defaultMonth","today","numberOfMonths","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAWO,SAASA,EAAgBC,GAAOC,GAAUC,GAAQC,GAAS;AAC9D,QAAM,EAAE,OAAAC,GAAO,cAAAC,GAAc,OAAAC,IAAQH,EAAQ,SAAS,gBAAAI,IAAiB,EAAC,IAAMP;AAC9E,MAAIQ,IAAeJ,KAASC,KAAgBC;AAC5C,QAAM,EAAE,4BAAAG,GAA4B,WAAAC,GAAW,cAAAC,EAAY,IAAKR;AAChE,MAAID,KACAO,EAA2BP,GAAQM,CAAY,IAAID,IAAiB,GAAG;AACvE,UAAMK,IAAS,MAAML,IAAiB;AACtC,IAAAC,IAAeE,EAAUR,GAAQU,CAAM;AAAA,EAC3C;AACA,SAAIX,KAAYQ,EAA2BD,GAAcP,CAAQ,IAAI,MACjEO,IAAeP,IAEZU,EAAaH,CAAY;AACpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index256.js","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":";;AAiCO,SAASA,EAAUC,GAAMC,GAAQC,GAAS;AAC/C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,MAAI,MAAMD,CAAM,EAAG,QAAOI,EAA6BL,GAAM,GAAG;AAChE,MAAI,CAACC;AAEH,WAAOE;AAET,QAAMG,IAAaH,EAAM,QAAO,GAU1BI,IAAoBF,EAA6BL,GAAMG,EAAM,QAAO,CAAE;AAC5E,EAAAI,EAAkB,SAASJ,EAAM,SAAQ,IAAKF,IAAS,GAAG,CAAC;AAC3D,QAAMO,IAAcD,EAAkB,QAAO;AAC7C,SAAID,KAAcE,IAGTD,KASPJ,EAAM;AAAA,IACJI,EAAkB,YAAW;AAAA,IAC7BA,EAAkB,SAAQ;AAAA,IAC1BD;AAAA,EACN,GACWH;AAEX;","x_google_ignoreList":[0]}
package/dist/index257.js CHANGED
@@ -1,25 +1,9 @@
1
- import { CalendarDay as F } from "./index211.js";
2
- import { CalendarWeek as N } from "./index213.js";
3
- import { CalendarMonth as P } from "./index212.js";
4
- function j(l, f, e, c) {
5
- const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
6
- const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
7
- if (e.fixedWeeks && a.length < O) {
8
- const r = f.filter((n) => {
9
- const s = O - a.length;
10
- return n > d && n <= y(d, s);
11
- });
12
- a.push(...r);
13
- }
14
- const b = a.reduce((r, n) => {
15
- const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
16
- return i ? i.days.push(u) : r.push(new N(s, [u])), r;
17
- }, []), v = new P(t, b);
18
- return W.push(v), W;
19
- }, []);
20
- return e.reverseMonths ? o.reverse() : o;
1
+ import { addDays as r } from "./index255.js";
2
+ function o(a, d, e) {
3
+ return r(a, d * 7, e);
21
4
  }
22
5
  export {
23
- j as getMonths
6
+ o as addWeeks,
7
+ o as default
24
8
  };
25
9
  //# sourceMappingURL=index257.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index257.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":";;;AAeO,SAASA,EAAUC,GAAeC,GAAOC,GAAOC,GAAS;AAC5D,QAAM,EAAE,SAAAC,GAAS,oBAAAC,GAAoB,cAAAC,GAAc,YAAAC,GAAY,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,sBAAAC,GAAsB,gBAAAC,GAAgB,aAAAC,EAAW,IAAMV,GAChJW,IAAkBd,EAAc,OAAO,CAACe,GAAQC,MAAU;AAC5D,UAAMC,IAAuBf,EAAM,oBAC7BS,EAAqBK,GAAOb,CAAO,IACnCD,EAAM,UACFU,EAAeI,CAAK,IACpBH,EAAYG,CAAK,GACrBE,IAAqBhB,EAAM,oBAC3BG,EAAmBW,CAAK,IACxBd,EAAM,UACFI,EAAaC,EAAWS,CAAK,CAAC,IAC9BR,EAAUD,EAAWS,CAAK,CAAC,GAE/BG,IAAalB,EAAM,OAAO,CAACmB,MACtBA,KAAQH,KAAwBG,KAAQF,CAClD,GACKG,IAAyBnB,EAAM,oBAAoB,KAAK;AAC9D,QAAIA,EAAM,cAAciB,EAAW,SAASE,GAAwB;AAChE,YAAMC,IAAarB,EAAM,OAAO,CAACmB,MAAS;AACtC,cAAMG,IAAYF,IAAyBF,EAAW;AACtD,eAAQC,IAAOF,KACXE,KAAQhB,EAAQc,GAAoBK,CAAS;AAAA,MACrD,CAAC;AACD,MAAAJ,EAAW,KAAK,GAAGG,CAAU;AAAA,IACjC;AACA,UAAME,IAAQL,EAAW,OAAO,CAACK,GAAOJ,MAAS;AAC7C,YAAMK,IAAavB,EAAM,UAAUO,EAAWW,CAAI,IAAIV,EAAQU,CAAI,GAC5DM,IAAOF,EAAM,KAAK,CAACE,MAASA,EAAK,eAAeD,CAAU,GAC1DE,IAAM,IAAIC,EAAYR,GAAMJ,GAAOb,CAAO;AAChD,aAAKuB,IAIDA,EAAK,KAAK,KAAKC,CAAG,IAHlBH,EAAM,KAAK,IAAIK,EAAaJ,GAAY,CAACE,CAAG,CAAC,CAAC,GAK3CH;AAAA,IACX,GAAG,CAAA,CAAE,GACCM,IAAiB,IAAIC,EAAcf,GAAOQ,CAAK;AACrD,WAAAT,EAAO,KAAKe,CAAc,GACnBf;AAAA,EACX,GAAG,CAAA,CAAE;AACL,SAAKb,EAAM,gBAIAY,EAAgB,QAAO,IAHvBA;AAKf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index257.js","sources":["../../../node_modules/date-fns/addWeeks.js"],"sourcesContent":["import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link addWeeks} function options.\n */\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of weeks to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be added.\n * @param options - An object with options\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount, options) {\n return addDays(date, amount * 7, options);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n"],"names":["addWeeks","date","amount","options","addDays"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAQH,GAAMC,IAAS,GAAGC,CAAO;AAC1C;","x_google_ignoreList":[0]}
package/dist/index258.js CHANGED
@@ -1,14 +1,9 @@
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
- ];
1
+ import { addMonths as d } from "./index256.js";
2
+ function e(r, t, a) {
3
+ return d(r, t * 12, a);
10
4
  }
11
5
  export {
12
- O as getNavMonths
6
+ e as addYears,
7
+ e as default
13
8
  };
14
9
  //# sourceMappingURL=index258.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index258.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]}
1
+ {"version":3,"file":"index258.js","sources":["../../../node_modules/date-fns/addYears.js"],"sourcesContent":["import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n"],"names":["addYears","date","amount","options","addMonths"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAUH,GAAMC,IAAS,IAAIC,CAAO;AAC7C;","x_google_ignoreList":[0]}
package/dist/index259.js CHANGED
@@ -1,13 +1,17 @@
1
- function h(n, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
5
- if (!t)
6
- return o(r, i);
7
- if (!(d(t, n) < f))
8
- return o(r, i);
1
+ import { getTimezoneOffsetInMilliseconds as r } from "./index332.js";
2
+ import { normalizeDates as c } from "./index333.js";
3
+ import { millisecondsInDay as D } from "./index331.js";
4
+ import { startOfDay as a } from "./index281.js";
5
+ function O(o, n, i) {
6
+ const [s, m] = c(
7
+ i?.in,
8
+ o,
9
+ n
10
+ ), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
11
+ return Math.round((f - l) / D);
9
12
  }
10
13
  export {
11
- h as getNextMonth
14
+ O as default,
15
+ O as differenceInCalendarDays
12
16
  };
13
17
  //# sourceMappingURL=index259.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index259.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,GAAqBC,GAAkBC,GAASC,GAAS;AAClF,MAAID,EAAQ;AACR;AAEJ,QAAM,EAAE,iBAAAE,GAAiB,gBAAAC,IAAiB,EAAC,IAAKH,GAC1C,EAAE,cAAAI,GAAc,WAAAC,GAAW,4BAAAC,EAA0B,IAAKL,GAC1DM,IAASL,IAAkBC,IAAiB,GAC5CK,IAAQJ,EAAaN,CAAmB;AAC9C,MAAI,CAACC;AACD,WAAOM,EAAUG,GAAOD,CAAM;AAGlC,MAAI,EADeD,EAA2BP,GAAkBD,CAAmB,IAClEK;AAGjB,WAAOE,EAAUG,GAAOD,CAAM;AAClC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index259.js","sources":["../../../node_modules/date-fns/differenceInCalendarDays.js"],"sourcesContent":["import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n"],"names":["differenceInCalendarDays","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","laterStartOfDay","startOfDay","earlierStartOfDay","laterTimestamp","getTimezoneOffsetInMilliseconds","earlierTimestamp","millisecondsInDay"],"mappings":";;;;AAwCO,SAASA,EAAyBC,GAAWC,GAAaC,GAAS;AACxE,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAkBC,EAAWJ,CAAU,GACvCK,IAAoBD,EAAWH,CAAY,GAE3CK,IACJ,CAACH,IAAkBI,EAAgCJ,CAAe,GAC9DK,IACJ,CAACH,IAAoBE,EAAgCF,CAAiB;AAKxE,SAAO,KAAK,OAAOC,IAAiBE,KAAoBC,CAAiB;AAC3E;","x_google_ignoreList":[0]}
package/dist/index260.js CHANGED
@@ -1,13 +1,14 @@
1
- function c(i, t, e, s) {
2
- if (e.disableNavigation)
3
- return;
4
- const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
5
- if (!t)
6
- return f(n, -o);
7
- if (!(a(n, t) <= 0))
8
- return f(n, -o);
1
+ import { normalizeDates as l } from "./index333.js";
2
+ function s(n, r, a) {
3
+ const [e, t] = l(
4
+ a?.in,
5
+ n,
6
+ r
7
+ ), o = e.getFullYear() - t.getFullYear(), f = e.getMonth() - t.getMonth();
8
+ return o * 12 + f;
9
9
  }
10
10
  export {
11
- c as getPreviousMonth
11
+ s as default,
12
+ s as differenceInCalendarMonths
12
13
  };
13
14
  //# sourceMappingURL=index260.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index260.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]}
1
+ {"version":3,"file":"index260.js","sources":["../../../node_modules/date-fns/differenceInCalendarMonths.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link differenceInCalendarMonths} function options.\n */\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n\n return yearsDiff * 12 + monthsDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n"],"names":["differenceInCalendarMonths","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates","yearsDiff","monthsDiff"],"mappings":";AA4BO,SAASA,EAA2BC,GAAWC,GAAaC,GAAS;AAC1E,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ,GAEQK,IAAYH,EAAW,YAAW,IAAKC,EAAa,YAAW,GAC/DG,IAAaJ,EAAW,SAAQ,IAAKC,EAAa,SAAQ;AAEhE,SAAOE,IAAY,KAAKC;AAC1B;","x_google_ignoreList":[0]}
package/dist/index261.js CHANGED
@@ -1,8 +1,18 @@
1
- function i(e) {
2
- const t = [];
3
- return e.reduce((c, n) => c.concat(n.weeks.slice()), t.slice());
1
+ import { normalizeInterval as l } from "./index334.js";
2
+ import { constructFrom as m } from "./index329.js";
3
+ function u(s, a) {
4
+ const { start: e, end: r } = l(a?.in, s);
5
+ let n = +e > +r;
6
+ const c = n ? +e : +r, t = n ? r : e;
7
+ t.setHours(0, 0, 0, 0), t.setDate(1);
8
+ let i = 1;
9
+ const o = [];
10
+ for (; +t <= c; )
11
+ o.push(m(e, t)), t.setMonth(t.getMonth() + i);
12
+ return n ? o.reverse() : o;
4
13
  }
5
14
  export {
6
- i as getWeeks
15
+ u as default,
16
+ u as eachMonthOfInterval
7
17
  };
8
18
  //# sourceMappingURL=index261.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index261.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return weeks.concat(month.weeks.slice());\n }, initialWeeks.slice());\n}\n"],"names":["getWeeks","months","initialWeeks","weeks","month"],"mappings":"AAMO,SAASA,EAASC,GAAQ;AAC7B,QAAMC,IAAe,CAAA;AACrB,SAAOD,EAAO,OAAO,CAACE,GAAOC,MAClBD,EAAM,OAAOC,EAAM,MAAM,MAAK,CAAE,GACxCF,EAAa,OAAO;AAC3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index261.js","sources":["../../../node_modules/date-fns/eachMonthOfInterval.js"],"sourcesContent":["import { normalizeInterval } from \"./_lib/normalizeInterval.js\";\nimport { constructFrom } from \"./constructFrom.js\";\n\n/**\n * The {@link eachMonthOfInterval} function options.\n */\n\n/**\n * The {@link eachMonthOfInterval} function result type. It resolves the proper data type.\n */\n\n/**\n * @name eachMonthOfInterval\n * @category Interval Helpers\n * @summary Return the array of months within the specified time interval.\n *\n * @description\n * Return the array of months within the specified time interval.\n *\n * @typeParam IntervalType - Interval type.\n * @typeParam Options - Options type.\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of months from the month of the interval start to the month of the interval end\n *\n * @example\n * // Each month between 6 February 2014 and 10 August 2014:\n * const result = eachMonthOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2014, 7, 10)\n * })\n * //=> [\n * // Sat Feb 01 2014 00:00:00,\n * // Sat Mar 01 2014 00:00:00,\n * // Tue Apr 01 2014 00:00:00,\n * // Thu May 01 2014 00:00:00,\n * // Sun Jun 01 2014 00:00:00,\n * // Tue Jul 01 2014 00:00:00,\n * // Fri Aug 01 2014 00:00:00\n * // ]\n */\nexport function eachMonthOfInterval(interval, options) {\n const { start, end } = normalizeInterval(options?.in, interval);\n\n let reversed = +start > +end;\n const endTime = reversed ? +start : +end;\n const date = reversed ? end : start;\n date.setHours(0, 0, 0, 0);\n date.setDate(1);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+date <= endTime) {\n dates.push(constructFrom(start, date));\n date.setMonth(date.getMonth() + step);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachMonthOfInterval;\n"],"names":["eachMonthOfInterval","interval","options","start","end","normalizeInterval","reversed","endTime","date","step","dates","constructFrom"],"mappings":";;AA2CO,SAASA,EAAoBC,GAAUC,GAAS;AACrD,QAAM,EAAE,OAAAC,GAAO,KAAAC,EAAG,IAAKC,EAAkBH,GAAS,IAAID,CAAQ;AAE9D,MAAIK,IAAW,CAACH,IAAQ,CAACC;AACzB,QAAMG,IAAUD,IAAW,CAACH,IAAQ,CAACC,GAC/BI,IAAOF,IAAWF,IAAMD;AAC9B,EAAAK,EAAK,SAAS,GAAG,GAAG,GAAG,CAAC,GACxBA,EAAK,QAAQ,CAAC;AAEd,MAAIC,IAAwB;AAO5B,QAAMC,IAAQ,CAAA;AAEd,SAAO,CAACF,KAAQD;AACd,IAAAG,EAAM,KAAKC,EAAcR,GAAOK,CAAI,CAAC,GACrCA,EAAK,SAASA,EAAK,SAAQ,IAAKC,CAAI;AAGtC,SAAOH,IAAWI,EAAM,QAAO,IAAKA;AACtC;","x_google_ignoreList":[0]}
package/dist/index262.js CHANGED
@@ -1,9 +1,18 @@
1
- import { useState as o } from "react";
2
- function a(t, e) {
3
- const [u, n] = o(t);
4
- return [e === void 0 ? u : e, n];
1
+ import { normalizeInterval as u } from "./index334.js";
2
+ import { constructFrom as i } from "./index329.js";
3
+ function f(o, a) {
4
+ const { start: t, end: r } = u(a?.in, o);
5
+ let s = +t > +r;
6
+ const l = s ? +t : +r, e = s ? r : t;
7
+ e.setHours(0, 0, 0, 0), e.setMonth(0, 1);
8
+ let c = 1;
9
+ const n = [];
10
+ for (; +e <= l; )
11
+ n.push(i(t, e)), e.setFullYear(e.getFullYear() + c);
12
+ return s ? n.reverse() : n;
5
13
  }
6
14
  export {
7
- a as useControlledValue
15
+ f as default,
16
+ f as eachYearOfInterval
8
17
  };
9
18
  //# sourceMappingURL=index262.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index262.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState"],"mappings":";AAuBO,SAASA,EAAmBC,GAAcC,GAAiB;AAC9D,QAAM,CAACC,GAAmBC,CAAQ,IAAIC,EAASJ,CAAY;AAE3D,SAAO,CADOC,MAAoB,SAAYC,IAAoBD,GACnDE,CAAQ;AAC3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index262.js","sources":["../../../node_modules/date-fns/eachYearOfInterval.js"],"sourcesContent":["import { normalizeInterval } from \"./_lib/normalizeInterval.js\";\nimport { constructFrom } from \"./constructFrom.js\";\n\n/**\n * The {@link eachYearOfInterval} function options.\n */\n\n/**\n * The {@link eachYearOfInterval} function result type. It resolves the proper data type.\n * It uses the first argument date object type, starting from the date argument,\n * then the start interval date, and finally the end interval date. If\n * a context function is passed, it uses the context function return type.\n */\n\n/**\n * @name eachYearOfInterval\n * @category Interval Helpers\n * @summary Return the array of yearly timestamps within the specified time interval.\n *\n * @description\n * Return the array of yearly timestamps within the specified time interval.\n *\n * @typeParam IntervalType - Interval type.\n * @typeParam Options - Options type.\n *\n * @param interval - The interval.\n * @param options - An object with options.\n *\n * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end\n *\n * @example\n * // Each year between 6 February 2014 and 10 August 2017:\n * const result = eachYearOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2017, 7, 10)\n * })\n * //=> [\n * // Wed Jan 01 2014 00:00:00,\n * // Thu Jan 01 2015 00:00:00,\n * // Fri Jan 01 2016 00:00:00,\n * // Sun Jan 01 2017 00:00:00\n * // ]\n */\nexport function eachYearOfInterval(interval, options) {\n const { start, end } = normalizeInterval(options?.in, interval);\n\n let reversed = +start > +end;\n const endTime = reversed ? +start : +end;\n const date = reversed ? end : start;\n date.setHours(0, 0, 0, 0);\n date.setMonth(0, 1);\n\n let step = options?.step ?? 1;\n if (!step) return [];\n if (step < 0) {\n step = -step;\n reversed = !reversed;\n }\n\n const dates = [];\n\n while (+date <= endTime) {\n dates.push(constructFrom(start, date));\n date.setFullYear(date.getFullYear() + step);\n }\n\n return reversed ? dates.reverse() : dates;\n}\n\n// Fallback for modularized imports:\nexport default eachYearOfInterval;\n"],"names":["eachYearOfInterval","interval","options","start","end","normalizeInterval","reversed","endTime","date","step","dates","constructFrom"],"mappings":";;AA2CO,SAASA,EAAmBC,GAAUC,GAAS;AACpD,QAAM,EAAE,OAAAC,GAAO,KAAAC,EAAG,IAAKC,EAAkBH,GAAS,IAAID,CAAQ;AAE9D,MAAIK,IAAW,CAACH,IAAQ,CAACC;AACzB,QAAMG,IAAUD,IAAW,CAACH,IAAQ,CAACC,GAC/BI,IAAOF,IAAWF,IAAMD;AAC9B,EAAAK,EAAK,SAAS,GAAG,GAAG,GAAG,CAAC,GACxBA,EAAK,SAAS,GAAG,CAAC;AAElB,MAAIC,IAAwB;AAO5B,QAAMC,IAAQ,CAAA;AAEd,SAAO,CAACF,KAAQD;AACd,IAAAG,EAAM,KAAKC,EAAcR,GAAOK,CAAI,CAAC,GACrCA,EAAK,YAAYA,EAAK,YAAW,IAAKC,CAAI;AAG5C,SAAOH,IAAWI,EAAM,QAAO,IAAKA;AACtC;","x_google_ignoreList":[0]}
package/dist/index263.js CHANGED
@@ -1,20 +1,9 @@
1
- import { DayFlag as s } from "./index124.js";
2
- var d;
3
- (function(e) {
4
- e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
5
- })(d || (d = {}));
6
- function l(e) {
7
- return !e[s.disabled] && !e[s.hidden] && !e[s.outside];
8
- }
9
- function F(e, u, t, n) {
10
- let f, c = -1;
11
- for (const o of e) {
12
- const a = u(o);
13
- l(a) && (a[s.focused] && c < d.FocusedModifier ? (f = o, c = d.FocusedModifier) : n?.isEqualTo(o) && c < d.LastFocused ? (f = o, c = d.LastFocused) : t(o.date) && c < d.Selected ? (f = o, c = d.Selected) : a[s.today] && c < d.Today && (f = o, c = d.Today));
14
- }
15
- return f || (f = e.find((o) => l(u(o)))), f;
1
+ import { endOfWeek as n } from "./index265.js";
2
+ function f(e, t) {
3
+ return n(e, { ...t, weekStartsOn: 1 });
16
4
  }
17
5
  export {
18
- F as calculateFocusTarget
6
+ f as default,
7
+ f as endOfISOWeek
19
8
  };
20
9
  //# sourceMappingURL=index263.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index263.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nvar FocusTargetPriority;\n(function (FocusTargetPriority) {\n FocusTargetPriority[FocusTargetPriority[\"Today\"] = 0] = \"Today\";\n FocusTargetPriority[FocusTargetPriority[\"Selected\"] = 1] = \"Selected\";\n FocusTargetPriority[FocusTargetPriority[\"LastFocused\"] = 2] = \"LastFocused\";\n FocusTargetPriority[FocusTargetPriority[\"FocusedModifier\"] = 3] = \"FocusedModifier\";\n})(FocusTargetPriority || (FocusTargetPriority = {}));\n/**\n * Determines if a day is focusable based on its modifiers.\n *\n * A day is considered focusable if it is not disabled, hidden, or outside the\n * displayed month.\n *\n * @param modifiers The modifiers applied to the day.\n * @returns `true` if the day is focusable, otherwise `false`.\n */\nfunction isFocusableDay(modifiers) {\n return (!modifiers[DayFlag.disabled] &&\n !modifiers[DayFlag.hidden] &&\n !modifiers[DayFlag.outside]);\n}\n/**\n * Calculates the focus target day based on priority.\n *\n * This function determines the day that should receive focus in the calendar,\n * prioritizing days with specific modifiers (e.g., \"focused\", \"today\") or\n * selection states.\n *\n * @param days The array of `CalendarDay` objects to evaluate.\n * @param getModifiers A function to retrieve the modifiers for a given day.\n * @param isSelected A function to determine if a day is selected.\n * @param lastFocused The last focused day, if any.\n * @returns The `CalendarDay` that should receive focus, or `undefined` if no\n * focusable day is found.\n */\nexport function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {\n let focusTarget;\n let foundFocusTargetPriority = -1;\n for (const day of days) {\n const modifiers = getModifiers(day);\n if (isFocusableDay(modifiers)) {\n if (modifiers[DayFlag.focused] &&\n foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;\n }\n else if (lastFocused?.isEqualTo(day) &&\n foundFocusTargetPriority < FocusTargetPriority.LastFocused) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.LastFocused;\n }\n else if (isSelected(day.date) &&\n foundFocusTargetPriority < FocusTargetPriority.Selected) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Selected;\n }\n else if (modifiers[DayFlag.today] &&\n foundFocusTargetPriority < FocusTargetPriority.Today) {\n focusTarget = day;\n foundFocusTargetPriority = FocusTargetPriority.Today;\n }\n }\n }\n if (!focusTarget) {\n // Return the first day that is focusable\n focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));\n }\n return focusTarget;\n}\n"],"names":["FocusTargetPriority","isFocusableDay","modifiers","DayFlag","calculateFocusTarget","days","getModifiers","isSelected","lastFocused","focusTarget","foundFocusTargetPriority","day"],"mappings":";AACA,IAAIA;AAAA,CACH,SAAUA,GAAqB;AAC5B,EAAAA,EAAoBA,EAAoB,QAAW,CAAC,IAAI,SACxDA,EAAoBA,EAAoB,WAAc,CAAC,IAAI,YAC3DA,EAAoBA,EAAoB,cAAiB,CAAC,IAAI,eAC9DA,EAAoBA,EAAoB,kBAAqB,CAAC,IAAI;AACtE,GAAGA,MAAwBA,IAAsB,CAAA,EAAG;AAUpD,SAASC,EAAeC,GAAW;AAC/B,SAAQ,CAACA,EAAUC,EAAQ,QAAQ,KAC/B,CAACD,EAAUC,EAAQ,MAAM,KACzB,CAACD,EAAUC,EAAQ,OAAO;AAClC;AAeO,SAASC,EAAqBC,GAAMC,GAAcC,GAAYC,GAAa;AAC9E,MAAIC,GACAC,IAA2B;AAC/B,aAAWC,KAAON,GAAM;AACpB,UAAMH,IAAYI,EAAaK,CAAG;AAClC,IAAIV,EAAeC,CAAS,MACpBA,EAAUC,EAAQ,OAAO,KACzBO,IAA2BV,EAAoB,mBAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,mBAE1CQ,GAAa,UAAUG,CAAG,KAC/BD,IAA2BV,EAAoB,eAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,eAE1CO,EAAWI,EAAI,IAAI,KACxBD,IAA2BV,EAAoB,YAC/CS,IAAcE,GACdD,IAA2BV,EAAoB,YAE1CE,EAAUC,EAAQ,KAAK,KAC5BO,IAA2BV,EAAoB,UAC/CS,IAAcE,GACdD,IAA2BV,EAAoB;AAAA,EAG3D;AACA,SAAKS,MAEDA,IAAcJ,EAAK,KAAK,CAACM,MAAQV,EAAeK,EAAaK,CAAG,CAAC,CAAC,IAE/DF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index263.js","sources":["../../../node_modules/date-fns/endOfISOWeek.js"],"sourcesContent":["import { endOfWeek } from \"./endOfWeek.js\";\n\n/**\n * The {@link endOfISOWeek} function options.\n */\n\n/**\n * @name endOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the end of an ISO week for the given date.\n *\n * @description\n * Return the end of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of an ISO week\n *\n * @example\n * // The end of an ISO week for 2 September 2014 11:55:00:\n * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfISOWeek(date, options) {\n return endOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default endOfISOWeek;\n"],"names":["endOfISOWeek","date","options","endOfWeek"],"mappings":";AA8BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,SAAOC,EAAUF,GAAM,EAAE,GAAGC,GAAS,cAAc,GAAG;AACxD;","x_google_ignoreList":[0]}
package/dist/index264.js CHANGED
@@ -1,13 +1,10 @@
1
- import { dateMatchModifiers as u } from "./index252.js";
2
- import { getFocusableDate as g } from "./index314.js";
3
- import { CalendarDay as m } from "./index211.js";
4
- function h(t, i, a, d, f, e, n, s = 0) {
5
- if (s > 365)
6
- return;
7
- const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
8
- return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
1
+ import { toDate as r } from "./index330.js";
2
+ function s(e, o) {
3
+ const t = r(e, o?.in), n = t.getMonth();
4
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
9
5
  }
10
6
  export {
11
- h as getNextFocus
7
+ s as default,
8
+ s as endOfMonth
12
9
  };
13
10
  //# sourceMappingURL=index264.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index264.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;AAoBO,SAASA,EAAaC,GAAQC,GAASC,GAAQC,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,GAAG;AACrH,MAAIA,IAAU;AAEV;AAEJ,QAAMC,IAAgBC,EAAiBT,GAAQC,GAASC,EAAO,MAAMC,GAAoBC,GAAkBC,GAAOC,CAAO,GACnHI,IAAa,GAAQL,EAAM,YAC7BM,EAAmBH,GAAeH,EAAM,UAAUC,CAAO,IACvDM,IAAW,GAAQP,EAAM,UAAUM,EAAmBH,GAAeH,EAAM,QAAQC,CAAO,IAC1FO,IAAcL,GACdM,IAAW,IAAIC,EAAYP,GAAeK,GAAaP,CAAO;AACpE,SAAI,CAACI,KAAc,CAACE,IACTE,IAGJf,EAAaC,GAAQC,GAASa,GAAUX,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,CAAC;AACpH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index264.js","sources":["../../../node_modules/date-fns/endOfMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n"],"names":["endOfMonth","date","options","_date","toDate","month"],"mappings":";AA4BO,SAASA,EAAWC,GAAMC,GAAS;AACxC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAQF,EAAM,SAAQ;AAC5B,SAAAA,EAAM,YAAYA,EAAM,YAAW,GAAIE,IAAQ,GAAG,CAAC,GACnDF,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;","x_google_ignoreList":[0]}
package/dist/index265.js CHANGED
@@ -1,22 +1,11 @@
1
- import { useControlledValue as x } from "./index262.js";
2
- function C(i, d) {
3
- const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
4
- return {
5
- selected: e,
6
- select: (t, c, h) => {
7
- let n = [...e ?? []];
8
- if (u(t)) {
9
- if (e?.length === S || f && e?.length === 1)
10
- return;
11
- n = e?.filter((y) => !o(y, t));
12
- } else
13
- e?.length === a ? n = [t] : n = [...n, t];
14
- return l || m(n), l?.(n, t, c, h), n;
15
- },
16
- isSelected: u
17
- };
1
+ import { getDefaultOptions as f } from "./index335.js";
2
+ import { toDate as c } from "./index330.js";
3
+ function l(s, e) {
4
+ const a = f(), n = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(s, e?.in), o = t.getDay(), r = (o < n ? -7 : 0) + 6 - (o - n);
5
+ return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
18
6
  }
19
7
  export {
20
- C as useMulti
8
+ l as default,
9
+ l as endOfWeek
21
10
  };
22
11
  //# sourceMappingURL=index265.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index265.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index265.js","sources":["../../../node_modules/date-fns/endOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n"],"names":["endOfWeek","date","options","defaultOptions","getDefaultOptions","weekStartsOn","_date","toDate","day","diff"],"mappings":";;AAkCO,SAASA,EAAUC,GAAMC,GAAS;AACvC,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIG,IAAQC,EAAON,GAAMC,GAAS,EAAE,GAChCM,IAAMF,EAAM,OAAM,GAClBG,KAAQD,IAAMH,IAAe,KAAK,KAAK,KAAKG,IAAMH;AAExD,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKG,CAAI,GACpCH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT;","x_google_ignoreList":[0]}