@rpcbase/ui 0.173.0 → 0.174.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 (511) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/index10.js +1 -1
  3. package/dist/index100.js +5 -4
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +4 -6
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +4 -145
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +6 -39
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +145 -4
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +38 -6
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +4 -13
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +7 -13
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +12 -6
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +13 -31
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js +299 -281
  24. package/dist/index11.js.map +1 -1
  25. package/dist/index110.js +7 -10
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +31 -10
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +10 -8
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +9 -12
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +8 -101
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +14 -20
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +99 -51
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +20 -73
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +53 -9
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +69 -17
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index12.js +1 -1
  46. package/dist/index120.js +9 -16
  47. package/dist/index120.js.map +1 -1
  48. package/dist/index121.js +20 -23
  49. package/dist/index121.js.map +1 -1
  50. package/dist/index122.js +16 -6
  51. package/dist/index122.js.map +1 -1
  52. package/dist/index123.js +23 -5
  53. package/dist/index123.js.map +1 -1
  54. package/dist/index124.js +6 -23
  55. package/dist/index124.js.map +1 -1
  56. package/dist/index125.js +6 -35
  57. package/dist/index125.js.map +1 -1
  58. package/dist/index126.js +24 -16
  59. package/dist/index126.js.map +1 -1
  60. package/dist/index127.js +35 -7
  61. package/dist/index127.js.map +1 -1
  62. package/dist/index128.js +16 -5
  63. package/dist/index128.js.map +1 -1
  64. package/dist/index129.js +6 -4
  65. package/dist/index129.js.map +1 -1
  66. package/dist/index13.js +2 -2
  67. package/dist/index130.js +4 -4
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +4 -4
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -3
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +4 -6
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +4 -24
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +6 -7
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +24 -7
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +7 -5
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +6 -3
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +5 -3
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index14.js +4 -4
  88. package/dist/index140.js +3 -4
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +3 -3
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +4 -4
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +3 -3
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +4 -3
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +3 -3
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +3 -46
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +3 -5
  103. package/dist/index147.js.map +1 -1
  104. package/dist/index148.js +40 -62
  105. package/dist/index148.js.map +1 -1
  106. package/dist/index149.js +47 -2
  107. package/dist/index149.js.map +1 -1
  108. package/dist/index15.js +1 -1
  109. package/dist/index150.js +199 -357
  110. package/dist/index150.js.map +1 -1
  111. package/dist/index151.js +22 -262
  112. package/dist/index151.js.map +1 -1
  113. package/dist/index152.js +24 -60
  114. package/dist/index152.js.map +1 -1
  115. package/dist/index153.js +396 -43
  116. package/dist/index153.js.map +1 -1
  117. package/dist/index154.js +5 -169
  118. package/dist/index154.js.map +1 -1
  119. package/dist/index155.js +61 -102
  120. package/dist/index155.js.map +1 -1
  121. package/dist/index156.js +2 -25
  122. package/dist/index156.js.map +1 -1
  123. package/dist/index157.js +364 -8
  124. package/dist/index157.js.map +1 -1
  125. package/dist/index158.js +261 -4
  126. package/dist/index158.js.map +1 -1
  127. package/dist/index159.js +60 -5
  128. package/dist/index159.js.map +1 -1
  129. package/dist/index16.js +1 -1
  130. package/dist/index160.js +46 -4
  131. package/dist/index160.js.map +1 -1
  132. package/dist/index161.js +153 -450
  133. package/dist/index161.js.map +1 -1
  134. package/dist/index162.js +102 -178
  135. package/dist/index162.js.map +1 -1
  136. package/dist/index163.js +24 -107
  137. package/dist/index163.js.map +1 -1
  138. package/dist/index164.js +8 -263
  139. package/dist/index164.js.map +1 -1
  140. package/dist/index165.js +4 -9
  141. package/dist/index165.js.map +1 -1
  142. package/dist/index166.js +5 -42
  143. package/dist/index166.js.map +1 -1
  144. package/dist/index167.js +3 -3
  145. package/dist/index167.js.map +1 -1
  146. package/dist/index168.js +464 -44
  147. package/dist/index168.js.map +1 -1
  148. package/dist/index169.js +176 -196
  149. package/dist/index169.js.map +1 -1
  150. package/dist/index17.js +1 -1
  151. package/dist/index170.js +108 -22
  152. package/dist/index170.js.map +1 -1
  153. package/dist/index171.js +260 -22
  154. package/dist/index171.js.map +1 -1
  155. package/dist/index172.js +9 -399
  156. package/dist/index172.js.map +1 -1
  157. package/dist/index173.js +36 -599
  158. package/dist/index173.js.map +1 -1
  159. package/dist/index174.js +4 -16
  160. package/dist/index174.js.map +1 -1
  161. package/dist/index175.js +67 -5
  162. package/dist/index175.js.map +1 -1
  163. package/dist/index176.js +179 -4
  164. package/dist/index176.js.map +1 -1
  165. package/dist/index177.js +46 -58
  166. package/dist/index177.js.map +1 -1
  167. package/dist/index178.js +47 -55
  168. package/dist/index178.js.map +1 -1
  169. package/dist/index179.js +8 -6
  170. package/dist/index179.js.map +1 -1
  171. package/dist/index18.js +2 -2
  172. package/dist/index180.js +66 -4
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +19 -7
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +16 -17
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +5 -5
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +5 -5
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +6 -13
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +4 -10
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +7 -14
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +17 -14
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +5 -5
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +7 -7
  193. package/dist/index190.js +5 -6
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +13 -7
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +9 -5
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +14 -9
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +14 -5
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +5 -5
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +6 -9
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +7 -5
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +6 -5
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +9 -4
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +2 -2
  214. package/dist/index200.js +5 -11
  215. package/dist/index200.js.map +1 -1
  216. package/dist/index201.js +5 -10
  217. package/dist/index201.js.map +1 -1
  218. package/dist/index202.js +9 -10
  219. package/dist/index202.js.map +1 -1
  220. package/dist/index203.js +5 -11
  221. package/dist/index203.js.map +1 -1
  222. package/dist/index204.js +5 -11
  223. package/dist/index204.js.map +1 -1
  224. package/dist/index205.js +4 -10
  225. package/dist/index205.js.map +1 -1
  226. package/dist/index206.js +11 -7
  227. package/dist/index206.js.map +1 -1
  228. package/dist/index207.js +10 -6
  229. package/dist/index207.js.map +1 -1
  230. package/dist/index208.js +10 -5
  231. package/dist/index208.js.map +1 -1
  232. package/dist/index209.js +11 -6
  233. package/dist/index209.js.map +1 -1
  234. package/dist/index21.js +1 -1
  235. package/dist/index210.js +10 -6
  236. package/dist/index210.js.map +1 -1
  237. package/dist/index211.js +10 -6
  238. package/dist/index211.js.map +1 -1
  239. package/dist/index212.js +7 -55
  240. package/dist/index212.js.map +1 -1
  241. package/dist/index213.js +6 -8
  242. package/dist/index213.js.map +1 -1
  243. package/dist/index214.js +5 -19
  244. package/dist/index214.js.map +1 -1
  245. package/dist/index215.js +6 -23
  246. package/dist/index215.js.map +1 -1
  247. package/dist/index216.js +7 -16
  248. package/dist/index216.js.map +1 -1
  249. package/dist/index217.js +6 -7
  250. package/dist/index217.js.map +1 -1
  251. package/dist/index218.js +55 -10
  252. package/dist/index218.js.map +1 -1
  253. package/dist/index219.js +15 -9
  254. package/dist/index219.js.map +1 -1
  255. package/dist/index22.js +1 -1
  256. package/dist/index220.js +7 -21
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +10 -10
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +10 -9
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +21 -9
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +10 -4
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +9 -5
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -16
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +4 -9
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +5 -18
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +16 -15
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +2 -2
  277. package/dist/index230.js +9 -12
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +18 -29
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +15 -12
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +12 -25
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +29 -5
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +12 -13
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +23 -152
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +5 -30
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +24 -9
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +29 -48
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index24.js +1 -1
  298. package/dist/index240.js +5 -12
  299. package/dist/index240.js.map +1 -1
  300. package/dist/index241.js +13 -44
  301. package/dist/index241.js.map +1 -1
  302. package/dist/index242.js +145 -86
  303. package/dist/index242.js.map +1 -1
  304. package/dist/index243.js +27 -83
  305. package/dist/index243.js.map +1 -1
  306. package/dist/index244.js +9 -105
  307. package/dist/index244.js.map +1 -1
  308. package/dist/index245.js +40 -45
  309. package/dist/index245.js.map +1 -1
  310. package/dist/index246.js +11 -11
  311. package/dist/index246.js.map +1 -1
  312. package/dist/index247.js +42 -35
  313. package/dist/index247.js.map +1 -1
  314. package/dist/index248.js +95 -8
  315. package/dist/index248.js.map +1 -1
  316. package/dist/index249.js +80 -110
  317. package/dist/index249.js.map +1 -1
  318. package/dist/index250.js +105 -17
  319. package/dist/index250.js.map +1 -1
  320. package/dist/index251.js +51 -14
  321. package/dist/index251.js.map +1 -1
  322. package/dist/index252.js +11 -3
  323. package/dist/index252.js.map +1 -1
  324. package/dist/index253.js +33 -32
  325. package/dist/index253.js.map +1 -1
  326. package/dist/index254.js +8 -20
  327. package/dist/index254.js.map +1 -1
  328. package/dist/index255.js +116 -9
  329. package/dist/index255.js.map +1 -1
  330. package/dist/index256.js +17 -8
  331. package/dist/index256.js.map +1 -1
  332. package/dist/index257.js +12 -16
  333. package/dist/index257.js.map +1 -1
  334. package/dist/index258.js +3 -28
  335. package/dist/index258.js.map +1 -1
  336. package/dist/index259.js +35 -15
  337. package/dist/index259.js.map +1 -1
  338. package/dist/index260.js +20 -24
  339. package/dist/index260.js.map +1 -1
  340. package/dist/index261.js +10 -29
  341. package/dist/index261.js.map +1 -1
  342. package/dist/index262.js +9 -5
  343. package/dist/index262.js.map +1 -1
  344. package/dist/index263.js +17 -65
  345. package/dist/index263.js.map +1 -1
  346. package/dist/index264.js +26 -178
  347. package/dist/index264.js.map +1 -1
  348. package/dist/index265.js +14 -44
  349. package/dist/index265.js.map +1 -1
  350. package/dist/index269.js +5 -21
  351. package/dist/index269.js.map +1 -1
  352. package/dist/index27.js +37 -3
  353. package/dist/index27.js.map +1 -1
  354. package/dist/index270.js +3 -5
  355. package/dist/index270.js.map +1 -1
  356. package/dist/index271.js +24 -3
  357. package/dist/index271.js.map +1 -1
  358. package/dist/index272.js +111 -22
  359. package/dist/index272.js.map +1 -1
  360. package/dist/index273.js +14 -111
  361. package/dist/index273.js.map +1 -1
  362. package/dist/index274.js +523 -14
  363. package/dist/index274.js.map +1 -1
  364. package/dist/index275.js +114 -511
  365. package/dist/index275.js.map +1 -1
  366. package/dist/index276.js +117 -111
  367. package/dist/index276.js.map +1 -1
  368. package/dist/index277.js +20 -133
  369. package/dist/index277.js.map +1 -1
  370. package/dist/index28.js +3 -125
  371. package/dist/index28.js.map +1 -1
  372. package/dist/index285.js +2 -2
  373. package/dist/index288.js +1 -1
  374. package/dist/index289.js +2 -2
  375. package/dist/index29.js +120 -227
  376. package/dist/index29.js.map +1 -1
  377. package/dist/index291.js +1 -1
  378. package/dist/index292.js +1 -1
  379. package/dist/index293.js +1 -1
  380. package/dist/index294.js +1 -1
  381. package/dist/index295.js +65 -69
  382. package/dist/index295.js.map +1 -1
  383. package/dist/index296.js +68 -8
  384. package/dist/index296.js.map +1 -1
  385. package/dist/index297.js +9 -14
  386. package/dist/index297.js.map +1 -1
  387. package/dist/index298.js +14 -66
  388. package/dist/index298.js.map +1 -1
  389. package/dist/index299.js +65 -64
  390. package/dist/index299.js.map +1 -1
  391. package/dist/index30.js +230 -49
  392. package/dist/index30.js.map +1 -1
  393. package/dist/index31.js +20 -2637
  394. package/dist/index31.js.map +1 -1
  395. package/dist/index32.js +47 -390
  396. package/dist/index32.js.map +1 -1
  397. package/dist/index33.js +2604 -196
  398. package/dist/index33.js.map +1 -1
  399. package/dist/index34.js +390 -18
  400. package/dist/index34.js.map +1 -1
  401. package/dist/index35.js +222 -131
  402. package/dist/index35.js.map +1 -1
  403. package/dist/index36.js +18 -183
  404. package/dist/index36.js.map +1 -1
  405. package/dist/index37.js +130 -65
  406. package/dist/index37.js.map +1 -1
  407. package/dist/index38.js +185 -89
  408. package/dist/index38.js.map +1 -1
  409. package/dist/index39.js +76 -5
  410. package/dist/index39.js.map +1 -1
  411. package/dist/index40.js +84 -837
  412. package/dist/index40.js.map +1 -1
  413. package/dist/index41.js +6 -66
  414. package/dist/index41.js.map +1 -1
  415. package/dist/index42.js +840 -33
  416. package/dist/index42.js.map +1 -1
  417. package/dist/index43.js +66 -8
  418. package/dist/index43.js.map +1 -1
  419. package/dist/index44.js +8 -2
  420. package/dist/index44.js.map +1 -1
  421. package/dist/index45.js +2 -24
  422. package/dist/index45.js.map +1 -1
  423. package/dist/index46.js +22 -232
  424. package/dist/index46.js.map +1 -1
  425. package/dist/index47.js +233 -6
  426. package/dist/index47.js.map +1 -1
  427. package/dist/index48.js +203 -32
  428. package/dist/index48.js.map +1 -1
  429. package/dist/index49.js +5 -25
  430. package/dist/index49.js.map +1 -1
  431. package/dist/index5.js +1 -1
  432. package/dist/index50.js +33 -7
  433. package/dist/index50.js.map +1 -1
  434. package/dist/index51.js +26 -11
  435. package/dist/index51.js.map +1 -1
  436. package/dist/index52.js +7 -53
  437. package/dist/index52.js.map +1 -1
  438. package/dist/index53.js +12 -205
  439. package/dist/index53.js.map +1 -1
  440. package/dist/index55.js +3 -3
  441. package/dist/index56.js +1 -1
  442. package/dist/index57.js +1 -1
  443. package/dist/index59.js +4 -4
  444. package/dist/index61.js +8 -8
  445. package/dist/index62.js +2 -2
  446. package/dist/index63.js +2 -2
  447. package/dist/index67.js +2 -2
  448. package/dist/index69.js +3 -3
  449. package/dist/index70.js +53 -5
  450. package/dist/index70.js.map +1 -1
  451. package/dist/index71.js +2 -8
  452. package/dist/index71.js.map +1 -1
  453. package/dist/index72.js +2 -6
  454. package/dist/index72.js.map +1 -1
  455. package/dist/index73.js +6 -2
  456. package/dist/index73.js.map +1 -1
  457. package/dist/index74.js +8 -2
  458. package/dist/index74.js.map +1 -1
  459. package/dist/index75.js +6 -52
  460. package/dist/index75.js.map +1 -1
  461. package/dist/index76.js +605 -4
  462. package/dist/index76.js.map +1 -1
  463. package/dist/index77.js +52 -5
  464. package/dist/index77.js.map +1 -1
  465. package/dist/index78.js +3 -14
  466. package/dist/index78.js.map +1 -1
  467. package/dist/index79.js +4 -5
  468. package/dist/index79.js.map +1 -1
  469. package/dist/index8.js +1 -1
  470. package/dist/index80.js +14 -6
  471. package/dist/index80.js.map +1 -1
  472. package/dist/index81.js +5 -16
  473. package/dist/index81.js.map +1 -1
  474. package/dist/index82.js +7 -4
  475. package/dist/index82.js.map +1 -1
  476. package/dist/index83.js +16 -4
  477. package/dist/index83.js.map +1 -1
  478. package/dist/index84.js +4 -5
  479. package/dist/index84.js.map +1 -1
  480. package/dist/index85.js +4 -5
  481. package/dist/index85.js.map +1 -1
  482. package/dist/index86.js +5 -4
  483. package/dist/index86.js.map +1 -1
  484. package/dist/index87.js +5 -4
  485. package/dist/index87.js.map +1 -1
  486. package/dist/index88.js +3 -5
  487. package/dist/index88.js.map +1 -1
  488. package/dist/index89.js +4 -24
  489. package/dist/index89.js.map +1 -1
  490. package/dist/index9.js +1 -1
  491. package/dist/index90.js +6 -6
  492. package/dist/index90.js.map +1 -1
  493. package/dist/index91.js +24 -4
  494. package/dist/index91.js.map +1 -1
  495. package/dist/index92.js +6 -6
  496. package/dist/index92.js.map +1 -1
  497. package/dist/index93.js +3 -4
  498. package/dist/index93.js.map +1 -1
  499. package/dist/index94.js +6 -4
  500. package/dist/index94.js.map +1 -1
  501. package/dist/index95.js +4 -4
  502. package/dist/index95.js.map +1 -1
  503. package/dist/index96.js +3 -3
  504. package/dist/index96.js.map +1 -1
  505. package/dist/index97.js +5 -8
  506. package/dist/index97.js.map +1 -1
  507. package/dist/index98.js +4 -5
  508. package/dist/index98.js.map +1 -1
  509. package/dist/index99.js +8 -4
  510. package/dist/index99.js.map +1 -1
  511. package/package.json +1 -1
package/dist/index119.js CHANGED
@@ -1,24 +1,76 @@
1
- import { useState as a } from "react";
2
- import { calculateFocusTarget as T } from "./index226.js";
3
- import { getNextFocus as v } from "./index227.js";
4
- function I(e, o, r, i, f) {
5
- const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
1
+ import { useEffect as D, useMemo as S } from "react";
2
+ import { getDates as N } from "./index219.js";
3
+ import { getDays as w } from "./index220.js";
4
+ import { getDisplayMonths as E } from "./index221.js";
5
+ import { getInitialMonth as c } from "./index222.js";
6
+ import { getMonths as b } from "./index223.js";
7
+ import { getNavMonths as q } from "./index224.js";
8
+ import { getNextMonth as F } from "./index225.js";
9
+ import { getPreviousMonth as P } from "./index226.js";
10
+ import { getWeeks as V } from "./index227.js";
11
+ import { useControlledValue as Z } from "./index228.js";
12
+ function _(e, n) {
13
+ const [s, a] = q(e, n), { startOfMonth: i, endOfMonth: g } = n, h = c(e, s, a, n), [m, f] = Z(
14
+ h,
15
+ // initialMonth is always computed from props.month if provided
16
+ e.month ? h : void 0
17
+ );
18
+ D(() => {
19
+ const t = c(e, s, a, n);
20
+ f(t);
21
+ }, [e.timeZone]);
22
+ const { months: l, weeks: M, days: u, previousMonth: k, nextMonth: v } = S(() => {
23
+ const t = E(m, a, { numberOfMonths: e.numberOfMonths }, n), o = N(t, e.endMonth ? g(e.endMonth) : void 0, {
24
+ ISOWeek: e.ISOWeek,
25
+ fixedWeeks: e.fixedWeeks,
26
+ broadcastCalendar: e.broadcastCalendar
27
+ }, n), r = b(t, o, {
28
+ broadcastCalendar: e.broadcastCalendar,
29
+ fixedWeeks: e.fixedWeeks,
30
+ ISOWeek: e.ISOWeek,
31
+ reverseMonths: e.reverseMonths
32
+ }, n), C = V(r), y = w(r), I = P(m, s, e, n), T = F(m, a, e, n);
33
+ return {
34
+ months: r,
35
+ weeks: C,
36
+ days: y,
37
+ previousMonth: I,
38
+ nextMonth: T
39
+ };
40
+ }, [
41
+ n,
42
+ m.getTime(),
43
+ a?.getTime(),
44
+ s?.getTime(),
45
+ e.disableNavigation,
46
+ e.broadcastCalendar,
47
+ e.endMonth?.getTime(),
48
+ e.fixedWeeks,
49
+ e.ISOWeek,
50
+ e.numberOfMonths,
51
+ e.pagedNavigation,
52
+ e.reverseMonths
53
+ ]), { disableNavigation: W, onMonthChange: O } = e, x = (t) => M.some((o) => o.days.some((r) => r.isEqualTo(t))), d = (t) => {
54
+ if (W)
55
+ return;
56
+ let o = i(t);
57
+ s && o < i(s) && (o = i(s)), a && o > i(a) && (o = i(a)), f(o), O?.(o);
58
+ };
6
59
  return {
7
- isFocusTarget: (n) => !!c?.isEqualTo(n),
8
- setFocused: u,
9
- focused: s,
10
- blur: () => {
11
- m(s), u(void 0);
12
- },
13
- moveFocus: (n, l) => {
14
- if (!s)
15
- return;
16
- const t = v(n, l, s, o.navStart, o.navEnd, e, f);
17
- t && (e.disableNavigation && !o.days.some((g) => g.isEqualTo(t)) || (o.goToDay(t), u(t)));
60
+ months: l,
61
+ weeks: M,
62
+ days: u,
63
+ navStart: s,
64
+ navEnd: a,
65
+ previousMonth: k,
66
+ nextMonth: v,
67
+ goToMonth: d,
68
+ goToDay: (t) => {
69
+ x(t) || d(t.date);
18
70
  }
19
71
  };
20
72
  }
21
73
  export {
22
- I as useFocus
74
+ _ as useCalendar
23
75
  };
24
76
  //# sourceMappingURL=index119.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index119.js","sources":["../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":";;;AAiBO,SAASA,EAASC,GAAOC,GAAUC,GAAcC,GAAYC,GAAS;AACzE,QAAM,EAAE,WAAAC,EAAS,IAAKL,GAChB,CAACM,GAAaC,CAAc,IAAIC,EAAQ,GACxCC,IAAcC,EAAqBT,EAAS,MAAMC,GAAcC,MAAe,MAAM,KAAQG,CAAW,GACxG,CAACK,GAAYC,CAAU,IAAIJ,EAASH,IAAYI,IAAc,MAAS;AA8B7E,SAPiB;AAAA,IACb,eAJkB,CAACI,MACZ,EAAQJ,GAAa,UAAUI,CAAG;AAAA,IAIzC,YAAAD;AAAA,IACA,SAASD;AAAA,IACT,MA1BS,MAAM;AACf,MAAAJ,EAAeI,CAAU,GACzBC,EAAW,MAAS;AAAA,IACxB;AAAA,IAwBI,WAvBc,CAACE,GAAQC,MAAY;AACnC,UAAI,CAACJ;AACD;AACJ,YAAMK,IAAYC,EAAaH,GAAQC,GAASJ,GAAYV,EAAS,UAAUA,EAAS,QAAQD,GAAOI,CAAO;AAC9G,MAAKY,MAEDhB,EAAM,qBAEF,CADqBC,EAAS,KAAK,KAAK,CAACY,MAAQA,EAAI,UAAUG,CAAS,CAAC,MAKjFf,EAAS,QAAQe,CAAS,GAC1BJ,EAAWI,CAAS;AAAA,IACxB;AAAA,EAUJ;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index119.js","sources":["../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n // biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.\n const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {\n const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {\n ISOWeek: props.ISOWeek,\n fixedWeeks: props.fixedWeeks,\n broadcastCalendar: props.broadcastCalendar,\n }, dateLib);\n const months = getMonths(displayMonths, dates, {\n broadcastCalendar: props.broadcastCalendar,\n fixedWeeks: props.fixedWeeks,\n ISOWeek: props.ISOWeek,\n reverseMonths: props.reverseMonths,\n }, dateLib);\n const weeks = getWeeks(months);\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n return {\n months,\n weeks,\n days,\n previousMonth,\n nextMonth,\n };\n }, [\n dateLib,\n firstMonth.getTime(),\n navEnd?.getTime(),\n navStart?.getTime(),\n props.disableNavigation,\n props.broadcastCalendar,\n props.endMonth?.getTime(),\n props.fixedWeeks,\n props.ISOWeek,\n props.numberOfMonths,\n props.pagedNavigation,\n props.reverseMonths,\n ]);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay,\n };\n return calendar;\n}\n"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","useEffect","newInitialMonth","months","weeks","days","previousMonth","nextMonth","useMemo","displayMonths","getDisplayMonths","dates","getDates","getMonths","getWeeks","getDays","getPreviousMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","week","d","goToMonth","date","newMonth"],"mappings":";;;;;;;;;;;AAoBO,SAASA,EAAYC,GAAOC,GAAS;AACxC,QAAM,CAACC,GAAUC,CAAM,IAAIC,EAAaJ,GAAOC,CAAO,GAChD,EAAE,cAAAI,GAAc,YAAAC,EAAU,IAAKL,GAC/BM,IAAeC,EAAgBR,GAAOE,GAAUC,GAAQF,CAAO,GAC/D,CAACQ,GAAYC,CAAa,IAAIC;AAAA,IAAmBJ;AAAA;AAAA,IAEvDP,EAAM,QAAQO,IAAe;AAAA,EAAS;AAEtC,EAAAK,EAAU,MAAM;AACZ,UAAMC,IAAkBL,EAAgBR,GAAOE,GAAUC,GAAQF,CAAO;AACxE,IAAAS,EAAcG,CAAe;AAAA,EACjC,GAAG,CAACb,EAAM,QAAQ,CAAC;AAGnB,QAAM,EAAE,QAAAc,GAAQ,OAAAC,GAAO,MAAAC,GAAM,eAAAC,GAAe,WAAAC,EAAS,IAAKC,EAAQ,MAAM;AACpE,UAAMC,IAAgBC,EAAiBZ,GAAYN,GAAQ,EAAE,gBAAgBH,EAAM,eAAc,GAAIC,CAAO,GACtGqB,IAAQC,EAASH,GAAepB,EAAM,WAAWM,EAAWN,EAAM,QAAQ,IAAI,QAAW;AAAA,MAC3F,SAASA,EAAM;AAAA,MACf,YAAYA,EAAM;AAAA,MAClB,mBAAmBA,EAAM;AAAA,IACrC,GAAWC,CAAO,GACJa,IAASU,EAAUJ,GAAeE,GAAO;AAAA,MAC3C,mBAAmBtB,EAAM;AAAA,MACzB,YAAYA,EAAM;AAAA,MAClB,SAASA,EAAM;AAAA,MACf,eAAeA,EAAM;AAAA,IACjC,GAAWC,CAAO,GACJc,IAAQU,EAASX,CAAM,GACvBE,IAAOU,EAAQZ,CAAM,GACrBG,IAAgBU,EAAiBlB,GAAYP,GAAUF,GAAOC,CAAO,GACrEiB,IAAYU,EAAanB,GAAYN,GAAQH,GAAOC,CAAO;AACjE,WAAO;AAAA,MACH,QAAAa;AAAA,MACA,OAAAC;AAAA,MACA,MAAAC;AAAA,MACA,eAAAC;AAAA,MACA,WAAAC;AAAA,IACZ;AAAA,EACI,GAAG;AAAA,IACCjB;AAAA,IACAQ,EAAW,QAAO;AAAA,IAClBN,GAAQ,QAAO;AAAA,IACfD,GAAU,QAAO;AAAA,IACjBF,EAAM;AAAA,IACNA,EAAM;AAAA,IACNA,EAAM,UAAU,QAAO;AAAA,IACvBA,EAAM;AAAA,IACNA,EAAM;AAAA,IACNA,EAAM;AAAA,IACNA,EAAM;AAAA,IACNA,EAAM;AAAA,EACd,CAAK,GACK,EAAE,mBAAA6B,GAAmB,eAAAC,EAAa,IAAK9B,GACvC+B,IAAkB,CAACC,MAAQjB,EAAM,KAAK,CAACkB,MAASA,EAAK,KAAK,KAAK,CAACC,MAAMA,EAAE,UAAUF,CAAG,CAAC,CAAC,GACvFG,IAAY,CAACC,MAAS;AACxB,QAAIP;AACA;AAEJ,QAAIQ,IAAWhC,EAAa+B,CAAI;AAEhC,IAAIlC,KAAYmC,IAAWhC,EAAaH,CAAQ,MAC5CmC,IAAWhC,EAAaH,CAAQ,IAGhCC,KAAUkC,IAAWhC,EAAaF,CAAM,MACxCkC,IAAWhC,EAAaF,CAAM,IAElCO,EAAc2B,CAAQ,GACtBP,IAAgBO,CAAQ;AAAA,EAC5B;AAmBA,SAXiB;AAAA,IACb,QAAAvB;AAAA,IACA,OAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAd;AAAA,IACA,QAAAC;AAAA,IACA,eAAAc;AAAA,IACA,WAAAC;AAAA,IACA,WAAAiB;AAAA,IACA,SAhBY,CAACH,MAAQ;AAErB,MAAID,EAAgBC,CAAG,KAGvBG,EAAUH,EAAI,IAAI;AAAA,IACtB;AAAA,EAWJ;AAEA;","x_google_ignoreList":[0]}
package/dist/index12.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as a } from "./index27.js";
1
+ import { j as a } from "./index28.js";
2
2
  import * as d from "react";
3
3
  import * as o from "@radix-ui/react-dialog";
4
4
  import { XIcon as c } from "lucide-react";
package/dist/index120.js CHANGED
@@ -1,20 +1,13 @@
1
- import { useMulti as i } from "./index228.js";
2
- import { useRange as o } from "./index229.js";
3
- import { useSingle as s } from "./index230.js";
4
- function f(e, n) {
5
- const t = s(e, n), r = i(e, n), u = o(e, n);
6
- switch (e.mode) {
7
- case "single":
8
- return t;
9
- case "multiple":
10
- return r;
11
- case "range":
12
- return u;
13
- default:
14
- return;
15
- }
1
+ import { createContext as t, useContext as n } from "react";
2
+ const o = t(void 0);
3
+ function c() {
4
+ const e = n(o);
5
+ if (e === void 0)
6
+ throw new Error("useDayPicker() must be used within a custom component.");
7
+ return e;
16
8
  }
17
9
  export {
18
- f as useSelection
10
+ o as dayPickerContext,
11
+ c as useDayPicker
19
12
  };
20
13
  //# sourceMappingURL=index120.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index120.js","sources":["../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\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 The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":";;;AAaO,SAASA,EAAaC,GAAOC,GAAS;AACzC,QAAMC,IAASC,EAAUH,GAAOC,CAAO,GACjCG,IAAQC,EAASL,GAAOC,CAAO,GAC/BK,IAAQC,EAASP,GAAOC,CAAO;AACrC,UAAQD,EAAM,MAAI;AAAA,IACd,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX;AACI;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index120.js","sources":["../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","useDayPicker","context","useContext"],"mappings":";AAEY,MAACA,IAAmBC,EAAc,MAAS;AAahD,SAASC,IAAe;AAC3B,QAAMC,IAAUC,EAAWJ,CAAgB;AAC3C,MAAIG,MAAY;AACZ,UAAM,IAAI,MAAM,wDAAwD;AAE5E,SAAOA;AACX;","x_google_ignoreList":[0]}
package/dist/index121.js CHANGED
@@ -1,27 +1,24 @@
1
- import "./index178.js";
2
- import { toTimeZone as i } from "./index123.js";
3
- import { isDateRange as e, isDateInterval as p, isDateAfterType as y, isDateBeforeType as D } from "./index124.js";
4
- function n(o, f, u) {
5
- return i(o, f);
6
- }
7
- function t(o, f, u) {
8
- return typeof o == "boolean" || typeof o == "function" ? o : o instanceof Date ? n(o, f) : Array.isArray(o) ? o.map((r) => r instanceof Date ? n(r, f) : r) : e(o) ? {
9
- ...o,
10
- from: o.from ? i(o.from, f) : o.from,
11
- to: o.to ? i(o.to, f) : o.to
12
- } : p(o) ? {
13
- before: n(o.before, f),
14
- after: n(o.after, f)
15
- } : y(o) ? {
16
- after: n(o.after, f)
17
- } : D(o) ? {
18
- before: n(o.before, f)
19
- } : o;
20
- }
21
- function T(o, f, u) {
22
- return o && (Array.isArray(o) ? o.map((r) => t(r, f)) : t(o, f));
1
+ import { useState as a } from "react";
2
+ import { calculateFocusTarget as T } from "./index229.js";
3
+ import { getNextFocus as v } from "./index230.js";
4
+ function I(e, o, r, i, f) {
5
+ const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
6
+ return {
7
+ isFocusTarget: (n) => !!c?.isEqualTo(n),
8
+ setFocused: u,
9
+ focused: s,
10
+ blur: () => {
11
+ m(s), u(void 0);
12
+ },
13
+ moveFocus: (n, l) => {
14
+ if (!s)
15
+ return;
16
+ const t = v(n, l, s, o.navStart, o.navEnd, e, f);
17
+ t && (e.disableNavigation && !o.days.some((g) => g.isEqualTo(t)) || (o.goToDay(t), u(t)));
18
+ }
19
+ };
23
20
  }
24
21
  export {
25
- T as convertMatchersToTimeZone
22
+ I as useFocus
26
23
  };
27
24
  //# sourceMappingURL=index121.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index121.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { toTimeZone } from \"./toTimeZone.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, } from \"./typeguards.js\";\nfunction toZoneNoon(date, timeZone, noonSafe) {\n if (!noonSafe)\n return toTimeZone(date, timeZone);\n const zoned = toTimeZone(date, timeZone);\n const noonZoned = new TZDate(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 12, 0, 0, timeZone);\n return new Date(noonZoned.getTime());\n}\nfunction convertMatcher(matcher, timeZone, noonSafe) {\n if (typeof matcher === \"boolean\" || typeof matcher === \"function\") {\n return matcher;\n }\n if (matcher instanceof Date) {\n return toZoneNoon(matcher, timeZone, noonSafe);\n }\n if (Array.isArray(matcher)) {\n return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone, noonSafe) : value);\n }\n if (isDateRange(matcher)) {\n return {\n ...matcher,\n from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,\n to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,\n };\n }\n if (isDateInterval(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateAfterType(matcher)) {\n return {\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateBeforeType(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n };\n }\n return matcher;\n}\n/**\n * Convert any {@link Matcher} or array of matchers to the specified time zone.\n *\n * @param matchers - The matcher or matchers to convert.\n * @param timeZone - The target IANA time zone.\n * @returns The converted matcher(s).\n * @group Utilities\n */\nexport function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {\n if (!matchers) {\n return matchers;\n }\n if (Array.isArray(matchers)) {\n return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));\n }\n return convertMatcher(matchers, timeZone, noonSafe);\n}\n"],"names":["toZoneNoon","date","timeZone","noonSafe","toTimeZone","convertMatcher","matcher","value","isDateRange","isDateInterval","isDateAfterType","isDateBeforeType","convertMatchersToTimeZone","matchers"],"mappings":";;;AAGA,SAASA,EAAWC,GAAMC,GAAUC,GAAU;AAEtC,SAAOC,EAAWH,GAAMC,CAAQ;AAIxC;AACA,SAASG,EAAeC,GAASJ,GAAUC,GAAU;AACjD,SAAI,OAAOG,KAAY,aAAa,OAAOA,KAAY,aAC5CA,IAEPA,aAAmB,OACZN,EAAWM,GAASJ,CAAkB,IAE7C,MAAM,QAAQI,CAAO,IACdA,EAAQ,IAAI,CAACC,MAAUA,aAAiB,OAAOP,EAAWO,GAAOL,CAAkB,IAAIK,CAAK,IAEnGC,EAAYF,CAAO,IACZ;AAAA,IACH,GAAGA;AAAA,IACH,MAAMA,EAAQ,OAAOF,EAAWE,EAAQ,MAAMJ,CAAQ,IAAII,EAAQ;AAAA,IAClE,IAAIA,EAAQ,KAAKF,EAAWE,EAAQ,IAAIJ,CAAQ,IAAII,EAAQ;AAAA,EACxE,IAEQG,EAAeH,CAAO,IACf;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,IACrD,OAAOF,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQQ,EAAgBJ,CAAO,IAChB;AAAA,IACH,OAAON,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQS,EAAiBL,CAAO,IACjB;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,EACjE,IAEWI;AACX;AASO,SAASM,EAA0BC,GAAUX,GAAUC,GAAU;AACpE,SAAKU,MAGD,MAAM,QAAQA,CAAQ,IACfA,EAAS,IAAI,CAACP,MAAYD,EAAeC,GAASJ,CAAkB,CAAC,IAEzEG,EAAeQ,GAAUX,CAAkB;AACtD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index121.js","sources":["../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":";;;AAiBO,SAASA,EAASC,GAAOC,GAAUC,GAAcC,GAAYC,GAAS;AACzE,QAAM,EAAE,WAAAC,EAAS,IAAKL,GAChB,CAACM,GAAaC,CAAc,IAAIC,EAAQ,GACxCC,IAAcC,EAAqBT,EAAS,MAAMC,GAAcC,MAAe,MAAM,KAAQG,CAAW,GACxG,CAACK,GAAYC,CAAU,IAAIJ,EAASH,IAAYI,IAAc,MAAS;AA8B7E,SAPiB;AAAA,IACb,eAJkB,CAACI,MACZ,EAAQJ,GAAa,UAAUI,CAAG;AAAA,IAIzC,YAAAD;AAAA,IACA,SAASD;AAAA,IACT,MA1BS,MAAM;AACf,MAAAJ,EAAeI,CAAU,GACzBC,EAAW,MAAS;AAAA,IACxB;AAAA,IAwBI,WAvBc,CAACE,GAAQC,MAAY;AACnC,UAAI,CAACJ;AACD;AACJ,YAAMK,IAAYC,EAAaH,GAAQC,GAASJ,GAAYV,EAAS,UAAUA,EAAS,QAAQD,GAAOI,CAAO;AAC9G,MAAKY,MAEDhB,EAAM,qBAEF,CADqBC,EAAS,KAAK,KAAK,CAACY,MAAQA,EAAI,UAAUG,CAAS,CAAC,MAKjFf,EAAS,QAAQe,CAAS,GAC1BJ,EAAWI,CAAS;AAAA,IACxB;AAAA,EAUJ;AAEA;","x_google_ignoreList":[0]}
package/dist/index122.js CHANGED
@@ -1,10 +1,20 @@
1
- import { defaultDateLib as s } from "./index102.js";
2
- function u(f, r, t = !1, o = s) {
3
- let { from: n, to: e } = f;
4
- const { differenceInCalendarDays: i, isSameDay: a } = o;
5
- return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
1
+ import { useMulti as i } from "./index231.js";
2
+ import { useRange as o } from "./index232.js";
3
+ import { useSingle as s } from "./index233.js";
4
+ function f(e, n) {
5
+ const t = s(e, n), r = i(e, n), u = o(e, n);
6
+ switch (e.mode) {
7
+ case "single":
8
+ return t;
9
+ case "multiple":
10
+ return r;
11
+ case "range":
12
+ return u;
13
+ default:
14
+ return;
15
+ }
6
16
  }
7
17
  export {
8
- u as rangeIncludesDate
18
+ f as useSelection
9
19
  };
10
20
  //# sourceMappingURL=index122.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index122.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay"],"mappings":";AAYO,SAASA,EAAkBC,GAAOC,GAAMC,IAAc,IAAOC,IAAUC,GAAgB;AAC1F,MAAI,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKN;AACnB,QAAM,EAAE,0BAAAO,GAA0B,WAAAC,EAAS,IAAKL;AAChD,SAAIE,KAAQC,KACgBC,EAAyBD,GAAID,CAAI,IAAI,MAEzD,CAACA,GAAMC,CAAE,IAAI,CAACA,GAAID,CAAI,IAERE,EAAyBN,GAAMI,CAAI,MAAMH,IAAc,IAAI,MACzEK,EAAyBD,GAAIL,CAAI,MAAMC,IAAc,IAAI,MAG7D,CAACA,KAAeI,IACTE,EAAUF,GAAIL,CAAI,IAEzB,CAACC,KAAeG,IACTG,EAAUH,GAAMJ,CAAI,IAExB;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index122.js","sources":["../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\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 The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":";;;AAaO,SAASA,EAAaC,GAAOC,GAAS;AACzC,QAAMC,IAASC,EAAUH,GAAOC,CAAO,GACjCG,IAAQC,EAASL,GAAOC,CAAO,GAC/BK,IAAQC,EAASP,GAAOC,CAAO;AACrC,UAAQD,EAAM,MAAI;AAAA,IACd,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX;AACI;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
package/dist/index123.js CHANGED
@@ -1,9 +1,27 @@
1
- import { TZDate as r } from "./index177.js";
2
- import "./index178.js";
3
- function e(n, o) {
4
- return n instanceof r && n.timeZone === o ? n : new r(n, o);
1
+ import "./index180.js";
2
+ import { toTimeZone as i } from "./index125.js";
3
+ import { isDateRange as e, isDateInterval as p, isDateAfterType as y, isDateBeforeType as D } from "./index126.js";
4
+ function n(o, f, u) {
5
+ return i(o, f);
6
+ }
7
+ function t(o, f, u) {
8
+ return typeof o == "boolean" || typeof o == "function" ? o : o instanceof Date ? n(o, f) : Array.isArray(o) ? o.map((r) => r instanceof Date ? n(r, f) : r) : e(o) ? {
9
+ ...o,
10
+ from: o.from ? i(o.from, f) : o.from,
11
+ to: o.to ? i(o.to, f) : o.to
12
+ } : p(o) ? {
13
+ before: n(o.before, f),
14
+ after: n(o.after, f)
15
+ } : y(o) ? {
16
+ after: n(o.after, f)
17
+ } : D(o) ? {
18
+ before: n(o.before, f)
19
+ } : o;
20
+ }
21
+ function T(o, f, u) {
22
+ return o && (Array.isArray(o) ? o.map((r) => t(r, f)) : t(o, f));
5
23
  }
6
24
  export {
7
- e as toTimeZone
25
+ T as convertMatchersToTimeZone
8
26
  };
9
27
  //# sourceMappingURL=index123.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index123.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/toTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\n/**\n * Convert a {@link Date} or {@link TZDate} instance to the given time zone.\n * Reuses the same instance when it is already a {@link TZDate} using the target\n * time zone to avoid extra allocations.\n */\nexport function toTimeZone(date, timeZone) {\n if (date instanceof TZDate && date.timeZone === timeZone) {\n return date;\n }\n return new TZDate(date, timeZone);\n}\n"],"names":["toTimeZone","date","timeZone","TZDate"],"mappings":";;AAMO,SAASA,EAAWC,GAAMC,GAAU;AACvC,SAAID,aAAgBE,KAAUF,EAAK,aAAaC,IACrCD,IAEJ,IAAIE,EAAOF,GAAMC,CAAQ;AACpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index123.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { toTimeZone } from \"./toTimeZone.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, } from \"./typeguards.js\";\nfunction toZoneNoon(date, timeZone, noonSafe) {\n if (!noonSafe)\n return toTimeZone(date, timeZone);\n const zoned = toTimeZone(date, timeZone);\n const noonZoned = new TZDate(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 12, 0, 0, timeZone);\n return new Date(noonZoned.getTime());\n}\nfunction convertMatcher(matcher, timeZone, noonSafe) {\n if (typeof matcher === \"boolean\" || typeof matcher === \"function\") {\n return matcher;\n }\n if (matcher instanceof Date) {\n return toZoneNoon(matcher, timeZone, noonSafe);\n }\n if (Array.isArray(matcher)) {\n return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone, noonSafe) : value);\n }\n if (isDateRange(matcher)) {\n return {\n ...matcher,\n from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,\n to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,\n };\n }\n if (isDateInterval(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateAfterType(matcher)) {\n return {\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateBeforeType(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n };\n }\n return matcher;\n}\n/**\n * Convert any {@link Matcher} or array of matchers to the specified time zone.\n *\n * @param matchers - The matcher or matchers to convert.\n * @param timeZone - The target IANA time zone.\n * @returns The converted matcher(s).\n * @group Utilities\n */\nexport function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {\n if (!matchers) {\n return matchers;\n }\n if (Array.isArray(matchers)) {\n return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));\n }\n return convertMatcher(matchers, timeZone, noonSafe);\n}\n"],"names":["toZoneNoon","date","timeZone","noonSafe","toTimeZone","convertMatcher","matcher","value","isDateRange","isDateInterval","isDateAfterType","isDateBeforeType","convertMatchersToTimeZone","matchers"],"mappings":";;;AAGA,SAASA,EAAWC,GAAMC,GAAUC,GAAU;AAEtC,SAAOC,EAAWH,GAAMC,CAAQ;AAIxC;AACA,SAASG,EAAeC,GAASJ,GAAUC,GAAU;AACjD,SAAI,OAAOG,KAAY,aAAa,OAAOA,KAAY,aAC5CA,IAEPA,aAAmB,OACZN,EAAWM,GAASJ,CAAkB,IAE7C,MAAM,QAAQI,CAAO,IACdA,EAAQ,IAAI,CAACC,MAAUA,aAAiB,OAAOP,EAAWO,GAAOL,CAAkB,IAAIK,CAAK,IAEnGC,EAAYF,CAAO,IACZ;AAAA,IACH,GAAGA;AAAA,IACH,MAAMA,EAAQ,OAAOF,EAAWE,EAAQ,MAAMJ,CAAQ,IAAII,EAAQ;AAAA,IAClE,IAAIA,EAAQ,KAAKF,EAAWE,EAAQ,IAAIJ,CAAQ,IAAII,EAAQ;AAAA,EACxE,IAEQG,EAAeH,CAAO,IACf;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,IACrD,OAAOF,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQQ,EAAgBJ,CAAO,IAChB;AAAA,IACH,OAAON,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQS,EAAiBL,CAAO,IACjB;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,EACjE,IAEWI;AACX;AASO,SAASM,EAA0BC,GAAUX,GAAUC,GAAU;AACpE,SAAKU,MAGD,MAAM,QAAQA,CAAQ,IACfA,EAAS,IAAI,CAACP,MAAYD,EAAeC,GAASJ,CAAkB,CAAC,IAEzEG,EAAeQ,GAAUX,CAAkB;AACtD;","x_google_ignoreList":[0]}
package/dist/index124.js CHANGED
@@ -1,27 +1,10 @@
1
- function o(e) {
2
- return !!(e && typeof e == "object" && "before" in e && "after" in e);
3
- }
4
- function t(e) {
5
- return !!(e && typeof e == "object" && "from" in e);
6
- }
7
- function r(e) {
8
- return !!(e && typeof e == "object" && "after" in e);
9
- }
10
- function f(e) {
11
- return !!(e && typeof e == "object" && "before" in e);
12
- }
13
- function i(e) {
14
- return !!(e && typeof e == "object" && "dayOfWeek" in e);
15
- }
16
- function y(e, n) {
17
- return Array.isArray(e) && e.every(n.isDate);
1
+ import { defaultDateLib as s } from "./index104.js";
2
+ function u(f, r, t = !1, o = s) {
3
+ let { from: n, to: e } = f;
4
+ const { differenceInCalendarDays: i, isSameDay: a } = o;
5
+ return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
18
6
  }
19
7
  export {
20
- r as isDateAfterType,
21
- f as isDateBeforeType,
22
- o as isDateInterval,
23
- t as isDateRange,
24
- y as isDatesArray,
25
- i as isDayOfWeekType
8
+ u as rangeIncludesDate
26
9
  };
27
10
  //# sourceMappingURL=index124.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index124.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib"],"mappings":"AAOO,SAASA,EAAeC,GAAS;AACpC,SAAO,GAAQA,KACX,OAAOA,KAAY,YACnB,YAAYA,KACZ,WAAWA;AACnB;AAQO,SAASC,EAAYC,GAAO;AAC/B,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,UAAUA;AACnE;AAQO,SAASC,EAAgBD,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,WAAWA;AACpE;AAQO,SAASE,EAAiBF,GAAO;AACpC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,YAAYA;AACrE;AAQO,SAASG,EAAgBH,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,eAAeA;AACxE;AASO,SAASI,EAAaJ,GAAOK,GAAS;AACzC,SAAO,MAAM,QAAQL,CAAK,KAAKA,EAAM,MAAMK,EAAQ,MAAM;AAC7D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index124.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay"],"mappings":";AAYO,SAASA,EAAkBC,GAAOC,GAAMC,IAAc,IAAOC,IAAUC,GAAgB;AAC1F,MAAI,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKN;AACnB,QAAM,EAAE,0BAAAO,GAA0B,WAAAC,EAAS,IAAKL;AAChD,SAAIE,KAAQC,KACgBC,EAAyBD,GAAID,CAAI,IAAI,MAEzD,CAACA,GAAMC,CAAE,IAAI,CAACA,GAAID,CAAI,IAERE,EAAyBN,GAAMI,CAAI,MAAMH,IAAc,IAAI,MACzEK,EAAyBD,GAAIL,CAAI,MAAMC,IAAc,IAAI,MAG7D,CAACA,KAAeI,IACTE,EAAUF,GAAIL,CAAI,IAEzB,CAACC,KAAeG,IACTG,EAAUH,GAAMJ,CAAI,IAExB;AACX;","x_google_ignoreList":[0]}
package/dist/index125.js CHANGED
@@ -1,38 +1,9 @@
1
- import { enUS as f } from "./index267.js";
2
- import { formatDate as n } from "./index212.js";
3
- const s = {
4
- ...f,
5
- labels: {
6
- labelDayButton: (a, r, o, e) => {
7
- let t;
8
- e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
9
- let l = t(a, "PPPP");
10
- return r.today && (l = `Today, ${l}`), r.selected && (l = `${l}, selected`), l;
11
- },
12
- labelMonthDropdown: "Choose the Month",
13
- labelNext: "Go to the Next Month",
14
- labelPrevious: "Go to the Previous Month",
15
- labelWeekNumber: (a) => `Week ${a}`,
16
- labelYearDropdown: "Choose the Year",
17
- labelGrid: (a, r, o) => {
18
- let e;
19
- return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...r }), e(a, "LLLL yyyy");
20
- },
21
- labelGridcell: (a, r, o, e) => {
22
- let t;
23
- e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
24
- let l = t(a, "PPPP");
25
- return r?.today && (l = `Today, ${l}`), l;
26
- },
27
- labelNav: "Navigation bar",
28
- labelWeekNumberHeader: "Week Number",
29
- labelWeekday: (a, r, o) => {
30
- let e;
31
- return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...r }), e(a, "cccc");
32
- }
33
- }
34
- };
1
+ import { TZDate as r } from "./index178.js";
2
+ import "./index180.js";
3
+ function e(n, o) {
4
+ return n instanceof r && n.timeZone === o ? n : new r(n, o);
5
+ }
35
6
  export {
36
- s as enUS
7
+ e as toTimeZone
37
8
  };
38
9
  //# sourceMappingURL=index125.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index125.js","sources":["../../../node_modules/react-day-picker/dist/esm/locale/en-US.js"],"sourcesContent":["import { format } from \"date-fns\";\nimport { enUS as dateFnsEnUS } from \"date-fns/locale\";\n/** English (United States) locale extended with DayPicker-specific translations. */\nexport const enUS = {\n ...dateFnsEnUS,\n labels: {\n labelDayButton: (date, modifiers, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n let label = formatDate(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n },\n labelMonthDropdown: \"Choose the Month\",\n labelNext: \"Go to the Next Month\",\n labelPrevious: \"Go to the Previous Month\",\n labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,\n labelYearDropdown: \"Choose the Year\",\n labelGrid: (date, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n return formatDate(date, \"LLLL yyyy\");\n },\n labelGridcell: (date, modifiers, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n let label = formatDate(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n },\n labelNav: \"Navigation bar\",\n labelWeekNumberHeader: \"Week Number\",\n labelWeekday: (date, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n return formatDate(date, \"cccc\");\n },\n },\n};\n"],"names":["enUS","dateFnsEnUS","date","modifiers","options","dateLib","formatDate","d","pattern","format","label","weekNumber"],"mappings":";;AAGY,MAACA,IAAO;AAAA,EAChB,GAAGC;AAAAA,EACH,QAAQ;AAAA,IACJ,gBAAgB,CAACC,GAAMC,GAAWC,GAASC,MAAY;AACnD,UAAIC;AACJ,MAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE;AAEvF,UAAIM,IAAQJ,EAAWJ,GAAM,MAAM;AACnC,aAAIC,EAAU,UACVO,IAAQ,UAAUA,CAAK,KACvBP,EAAU,aACVO,IAAQ,GAAGA,CAAK,eACbA;AAAA,IACX;AAAA,IACA,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,iBAAiB,CAACC,MAAe,QAAQA,CAAU;AAAA,IACnD,mBAAmB;AAAA,IACnB,WAAW,CAACT,GAAME,GAASC,MAAY;AACnC,UAAIC;AACJ,aAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE,GAEhFE,EAAWJ,GAAM,WAAW;AAAA,IACvC;AAAA,IACA,eAAe,CAACA,GAAMC,GAAWC,GAASC,MAAY;AAClD,UAAIC;AACJ,MAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE;AAEvF,UAAIM,IAAQJ,EAAWJ,GAAM,MAAM;AACnC,aAAIC,GAAW,UACXO,IAAQ,UAAUA,CAAK,KAEpBA;AAAA,IACX;AAAA,IACA,UAAU;AAAA,IACV,uBAAuB;AAAA,IACvB,cAAc,CAACR,GAAME,GAASC,MAAY;AACtC,UAAIC;AACJ,aAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE,GAEhFE,EAAWJ,GAAM,MAAM;AAAA,IAClC;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index125.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/toTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\n/**\n * Convert a {@link Date} or {@link TZDate} instance to the given time zone.\n * Reuses the same instance when it is already a {@link TZDate} using the target\n * time zone to avoid extra allocations.\n */\nexport function toTimeZone(date, timeZone) {\n if (date instanceof TZDate && date.timeZone === timeZone) {\n return date;\n }\n return new TZDate(date, timeZone);\n}\n"],"names":["toTimeZone","date","timeZone","TZDate"],"mappings":";;AAMO,SAASA,EAAWC,GAAMC,GAAU;AACvC,SAAID,aAAgBE,KAAUF,EAAK,aAAaC,IACrCD,IAEJ,IAAIE,EAAOF,GAAMC,CAAQ;AACpC;","x_google_ignoreList":[0]}
package/dist/index126.js CHANGED
@@ -1,19 +1,27 @@
1
- import { formatCaption as t, formatMonthCaption as e } from "./index127.js";
2
- import { formatDay as a } from "./index128.js";
3
- import { formatMonthDropdown as p } from "./index129.js";
4
- import { formatWeekdayName as x } from "./index130.js";
5
- import { formatWeekNumber as i } from "./index131.js";
6
- import { formatWeekNumberHeader as C } from "./index132.js";
7
- import { formatYearCaption as N, formatYearDropdown as W } from "./index133.js";
1
+ function o(e) {
2
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
3
+ }
4
+ function t(e) {
5
+ return !!(e && typeof e == "object" && "from" in e);
6
+ }
7
+ function r(e) {
8
+ return !!(e && typeof e == "object" && "after" in e);
9
+ }
10
+ function f(e) {
11
+ return !!(e && typeof e == "object" && "before" in e);
12
+ }
13
+ function i(e) {
14
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
15
+ }
16
+ function y(e, n) {
17
+ return Array.isArray(e) && e.every(n.isDate);
18
+ }
8
19
  export {
9
- t as formatCaption,
10
- a as formatDay,
11
- e as formatMonthCaption,
12
- p as formatMonthDropdown,
13
- i as formatWeekNumber,
14
- C as formatWeekNumberHeader,
15
- x as formatWeekdayName,
16
- N as formatYearCaption,
17
- W as formatYearDropdown
20
+ r as isDateAfterType,
21
+ f as isDateBeforeType,
22
+ o as isDateInterval,
23
+ t as isDateRange,
24
+ y as isDatesArray,
25
+ i as isDayOfWeekType
18
26
  };
19
27
  //# sourceMappingURL=index126.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index126.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"index126.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib"],"mappings":"AAOO,SAASA,EAAeC,GAAS;AACpC,SAAO,GAAQA,KACX,OAAOA,KAAY,YACnB,YAAYA,KACZ,WAAWA;AACnB;AAQO,SAASC,EAAYC,GAAO;AAC/B,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,UAAUA;AACnE;AAQO,SAASC,EAAgBD,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,WAAWA;AACpE;AAQO,SAASE,EAAiBF,GAAO;AACpC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,YAAYA;AACrE;AAQO,SAASG,EAAgBH,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,eAAeA;AACxE;AASO,SAASI,EAAaJ,GAAOK,GAAS;AACzC,SAAO,MAAM,QAAQL,CAAK,KAAKA,EAAM,MAAMK,EAAQ,MAAM;AAC7D;","x_google_ignoreList":[0]}
package/dist/index127.js CHANGED
@@ -1,10 +1,38 @@
1
- import { DateLib as r } from "./index102.js";
2
- function a(t, o, n) {
3
- return (n ?? new r(o)).formatMonthYear(t);
4
- }
5
- const f = a;
1
+ import { enUS as f } from "./index267.js";
2
+ import { formatDate as n } from "./index218.js";
3
+ const s = {
4
+ ...f,
5
+ labels: {
6
+ labelDayButton: (a, r, o, e) => {
7
+ let t;
8
+ e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
9
+ let l = t(a, "PPPP");
10
+ return r.today && (l = `Today, ${l}`), r.selected && (l = `${l}, selected`), l;
11
+ },
12
+ labelMonthDropdown: "Choose the Month",
13
+ labelNext: "Go to the Next Month",
14
+ labelPrevious: "Go to the Previous Month",
15
+ labelWeekNumber: (a) => `Week ${a}`,
16
+ labelYearDropdown: "Choose the Year",
17
+ labelGrid: (a, r, o) => {
18
+ let e;
19
+ return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...r }), e(a, "LLLL yyyy");
20
+ },
21
+ labelGridcell: (a, r, o, e) => {
22
+ let t;
23
+ e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
24
+ let l = t(a, "PPPP");
25
+ return r?.today && (l = `Today, ${l}`), l;
26
+ },
27
+ labelNav: "Navigation bar",
28
+ labelWeekNumberHeader: "Week Number",
29
+ labelWeekday: (a, r, o) => {
30
+ let e;
31
+ return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...r }), e(a, "cccc");
32
+ }
33
+ }
34
+ };
6
35
  export {
7
- a as formatCaption,
8
- f as formatMonthCaption
36
+ s as enUS
9
37
  };
10
38
  //# sourceMappingURL=index127.js.map