@rpcbase/ui 0.167.0 → 0.168.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 (630) hide show
  1. package/dist/index100.js +52 -320
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -130
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +4 -20
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +15 -75
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -18
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +7 -101
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +17 -5
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -14
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +5 -2
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +5 -7
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index11.js +3 -2
  22. package/dist/index11.js.map +1 -1
  23. package/dist/index110.js +5 -326
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +4 -49
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +5 -52
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +5 -3
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +24 -4
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +6 -15
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +3 -4
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +5 -6
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +5 -16
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +3 -3
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +5 -4
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +3 -4
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +8 -5
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +5 -4
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +4 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +4 -6
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +6 -24
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +145 -6
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +39 -4
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +4 -6
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index130.js +7 -5
  64. package/dist/index130.js.map +1 -1
  65. package/dist/index131.js +13 -4
  66. package/dist/index131.js.map +1 -1
  67. package/dist/index132.js +13 -5
  68. package/dist/index132.js.map +1 -1
  69. package/dist/index133.js +7 -4
  70. package/dist/index133.js.map +1 -1
  71. package/dist/index134.js +31 -8
  72. package/dist/index134.js.map +1 -1
  73. package/dist/index135.js +10 -5
  74. package/dist/index135.js.map +1 -1
  75. package/dist/index136.js +10 -4
  76. package/dist/index136.js.map +1 -1
  77. package/dist/index137.js +8 -4
  78. package/dist/index137.js.map +1 -1
  79. package/dist/index138.js +13 -6
  80. package/dist/index138.js.map +1 -1
  81. package/dist/index139.js +101 -145
  82. package/dist/index139.js.map +1 -1
  83. package/dist/index140.js +20 -40
  84. package/dist/index140.js.map +1 -1
  85. package/dist/index141.js +53 -4
  86. package/dist/index141.js.map +1 -1
  87. package/dist/index142.js +70 -5
  88. package/dist/index142.js.map +1 -1
  89. package/dist/index143.js +9 -13
  90. package/dist/index143.js.map +1 -1
  91. package/dist/index144.js +20 -13
  92. package/dist/index144.js.map +1 -1
  93. package/dist/index145.js +16 -7
  94. package/dist/index145.js.map +1 -1
  95. package/dist/index146.js +22 -30
  96. package/dist/index146.js.map +1 -1
  97. package/dist/index147.js +6 -10
  98. package/dist/index147.js.map +1 -1
  99. package/dist/index148.js +5 -10
  100. package/dist/index148.js.map +1 -1
  101. package/dist/index149.js +23 -8
  102. package/dist/index149.js.map +1 -1
  103. package/dist/index150.js +35 -14
  104. package/dist/index150.js.map +1 -1
  105. package/dist/index151.js +16 -102
  106. package/dist/index151.js.map +1 -1
  107. package/dist/index152.js +7 -20
  108. package/dist/index152.js.map +1 -1
  109. package/dist/index153.js +4 -53
  110. package/dist/index153.js.map +1 -1
  111. package/dist/index154.js +4 -72
  112. package/dist/index154.js.map +1 -1
  113. package/dist/index155.js +4 -9
  114. package/dist/index155.js.map +1 -1
  115. package/dist/index156.js +4 -20
  116. package/dist/index156.js.map +1 -1
  117. package/dist/index157.js +3 -16
  118. package/dist/index157.js.map +1 -1
  119. package/dist/index158.js +6 -23
  120. package/dist/index158.js.map +1 -1
  121. package/dist/index159.js +24 -7
  122. package/dist/index159.js.map +1 -1
  123. package/dist/index160.js +7 -5
  124. package/dist/index160.js.map +1 -1
  125. package/dist/index161.js +6 -23
  126. package/dist/index161.js.map +1 -1
  127. package/dist/index162.js +6 -35
  128. package/dist/index162.js.map +1 -1
  129. package/dist/index163.js +4 -16
  130. package/dist/index163.js.map +1 -1
  131. package/dist/index164.js +3 -6
  132. package/dist/index164.js.map +1 -1
  133. package/dist/index165.js +4 -4
  134. package/dist/index165.js.map +1 -1
  135. package/dist/index166.js +3 -4
  136. package/dist/index166.js.map +1 -1
  137. package/dist/index167.js +4 -4
  138. package/dist/index167.js.map +1 -1
  139. package/dist/index168.js +3 -4
  140. package/dist/index168.js.map +1 -1
  141. package/dist/index169.js +3 -3
  142. package/dist/index169.js.map +1 -1
  143. package/dist/index170.js +3 -6
  144. package/dist/index170.js.map +1 -1
  145. package/dist/index171.js +47 -24
  146. package/dist/index171.js.map +1 -1
  147. package/dist/index172.js +46 -7
  148. package/dist/index172.js.map +1 -1
  149. package/dist/index173.js +205 -6
  150. package/dist/index173.js.map +1 -1
  151. package/dist/index174.js +22 -6
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +24 -3
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +399 -3
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js +5 -4
  158. package/dist/index177.js.map +1 -1
  159. package/dist/index178.js +68 -3
  160. package/dist/index178.js.map +1 -1
  161. package/dist/index179.js +2 -5
  162. package/dist/index179.js.map +1 -1
  163. package/dist/index18.js +1 -0
  164. package/dist/index18.js.map +1 -1
  165. package/dist/index180.js +363 -3
  166. package/dist/index180.js.map +1 -1
  167. package/dist/index181.js +261 -3
  168. package/dist/index181.js.map +1 -1
  169. package/dist/index182.js +60 -3
  170. package/dist/index182.js.map +1 -1
  171. package/dist/index183.js +46 -3
  172. package/dist/index183.js.map +1 -1
  173. package/dist/index184.js +170 -2
  174. package/dist/index184.js.map +1 -1
  175. package/dist/index185.js +107 -65
  176. package/dist/index185.js.map +1 -1
  177. package/dist/index186.js +24 -84
  178. package/dist/index186.js.map +1 -1
  179. package/dist/index187.js +8 -47
  180. package/dist/index187.js.map +1 -1
  181. package/dist/index188.js +4 -7
  182. package/dist/index188.js.map +1 -1
  183. package/dist/index189.js +5 -4
  184. package/dist/index189.js.map +1 -1
  185. package/dist/index190.js +4 -51
  186. package/dist/index190.js.map +1 -1
  187. package/dist/index191.js +465 -23
  188. package/dist/index191.js.map +1 -1
  189. package/dist/index192.js +185 -28
  190. package/dist/index192.js.map +1 -1
  191. package/dist/index193.js +108 -5
  192. package/dist/index193.js.map +1 -1
  193. package/dist/index194.js +262 -5
  194. package/dist/index194.js.map +1 -1
  195. package/dist/index195.js +8 -67
  196. package/dist/index195.js.map +1 -1
  197. package/dist/index196.js +43 -2
  198. package/dist/index196.js.map +1 -1
  199. package/dist/index197.js +4 -363
  200. package/dist/index197.js.map +1 -1
  201. package/dist/index198.js +64 -258
  202. package/dist/index198.js.map +1 -1
  203. package/dist/index199.js +176 -56
  204. package/dist/index199.js.map +1 -1
  205. package/dist/index200.js +42 -42
  206. package/dist/index200.js.map +1 -1
  207. package/dist/index201.js +57 -162
  208. package/dist/index201.js.map +1 -1
  209. package/dist/index202.js +45 -106
  210. package/dist/index202.js.map +1 -1
  211. package/dist/index203.js +39 -24
  212. package/dist/index203.js.map +1 -1
  213. package/dist/index204.js +101 -8
  214. package/dist/index204.js.map +1 -1
  215. package/dist/index205.js +97 -4
  216. package/dist/index205.js.map +1 -1
  217. package/dist/index206.js +99 -5
  218. package/dist/index206.js.map +1 -1
  219. package/dist/index207.js +58 -4
  220. package/dist/index207.js.map +1 -1
  221. package/dist/index208.js +8 -466
  222. package/dist/index208.js.map +1 -1
  223. package/dist/index209.js +59 -178
  224. package/dist/index209.js.map +1 -1
  225. package/dist/index210.js +17 -105
  226. package/dist/index210.js.map +1 -1
  227. package/dist/index211.js +14 -260
  228. package/dist/index211.js.map +1 -1
  229. package/dist/index212.js +5 -9
  230. package/dist/index212.js.map +1 -1
  231. package/dist/index213.js +4 -41
  232. package/dist/index213.js.map +1 -1
  233. package/dist/index214.js +6 -4
  234. package/dist/index214.js.map +1 -1
  235. package/dist/index215.js +4 -64
  236. package/dist/index215.js.map +1 -1
  237. package/dist/index216.js +7 -48
  238. package/dist/index216.js.map +1 -1
  239. package/dist/index217.js +17 -67
  240. package/dist/index217.js.map +1 -1
  241. package/dist/index218.js +5 -180
  242. package/dist/index218.js.map +1 -1
  243. package/dist/index219.js +5 -46
  244. package/dist/index219.js.map +1 -1
  245. package/dist/index220.js +13 -39
  246. package/dist/index220.js.map +1 -1
  247. package/dist/index221.js +10 -100
  248. package/dist/index221.js.map +1 -1
  249. package/dist/index222.js +14 -97
  250. package/dist/index222.js.map +1 -1
  251. package/dist/index223.js +14 -99
  252. package/dist/index223.js.map +1 -1
  253. package/dist/index224.js +5 -58
  254. package/dist/index224.js.map +1 -1
  255. package/dist/index225.js +6 -8
  256. package/dist/index225.js.map +1 -1
  257. package/dist/index226.js +7 -66
  258. package/dist/index226.js.map +1 -1
  259. package/dist/index227.js +6 -19
  260. package/dist/index227.js.map +1 -1
  261. package/dist/index228.js +9 -16
  262. package/dist/index228.js.map +1 -1
  263. package/dist/index229.js +5 -5
  264. package/dist/index229.js.map +1 -1
  265. package/dist/index230.js +5 -5
  266. package/dist/index230.js.map +1 -1
  267. package/dist/index231.js +9 -6
  268. package/dist/index231.js.map +1 -1
  269. package/dist/index232.js +5 -4
  270. package/dist/index232.js.map +1 -1
  271. package/dist/index233.js +5 -7
  272. package/dist/index233.js.map +1 -1
  273. package/dist/index234.js +4 -17
  274. package/dist/index234.js.map +1 -1
  275. package/dist/index235.js +11 -5
  276. package/dist/index235.js.map +1 -1
  277. package/dist/index236.js +10 -5
  278. package/dist/index236.js.map +1 -1
  279. package/dist/index237.js +10 -13
  280. package/dist/index237.js.map +1 -1
  281. package/dist/index238.js +11 -10
  282. package/dist/index238.js.map +1 -1
  283. package/dist/index239.js +10 -13
  284. package/dist/index239.js.map +1 -1
  285. package/dist/index240.js +10 -14
  286. package/dist/index240.js.map +1 -1
  287. package/dist/index241.js +7 -5
  288. package/dist/index241.js.map +1 -1
  289. package/dist/index242.js +6 -6
  290. package/dist/index242.js.map +1 -1
  291. package/dist/index243.js +5 -7
  292. package/dist/index243.js.map +1 -1
  293. package/dist/index244.js +6 -6
  294. package/dist/index244.js.map +1 -1
  295. package/dist/index245.js +7 -9
  296. package/dist/index245.js.map +1 -1
  297. package/dist/index246.js +6 -5
  298. package/dist/index246.js.map +1 -1
  299. package/dist/index247.js +55 -5
  300. package/dist/index247.js.map +1 -1
  301. package/dist/index248.js +23 -9
  302. package/dist/index248.js.map +1 -1
  303. package/dist/index249.js +16 -5
  304. package/dist/index249.js.map +1 -1
  305. package/dist/index250.js +7 -5
  306. package/dist/index250.js.map +1 -1
  307. package/dist/index251.js +10 -4
  308. package/dist/index251.js.map +1 -1
  309. package/dist/index252.js +10 -11
  310. package/dist/index252.js.map +1 -1
  311. package/dist/index253.js +21 -10
  312. package/dist/index253.js.map +1 -1
  313. package/dist/index254.js +10 -10
  314. package/dist/index254.js.map +1 -1
  315. package/dist/index255.js +9 -11
  316. package/dist/index255.js.map +1 -1
  317. package/dist/index256.js +9 -11
  318. package/dist/index256.js.map +1 -1
  319. package/dist/index257.js +4 -10
  320. package/dist/index257.js.map +1 -1
  321. package/dist/index258.js +5 -7
  322. package/dist/index258.js.map +1 -1
  323. package/dist/index259.js +16 -6
  324. package/dist/index259.js.map +1 -1
  325. package/dist/index260.js +9 -5
  326. package/dist/index260.js.map +1 -1
  327. package/dist/index261.js +18 -6
  328. package/dist/index261.js.map +1 -1
  329. package/dist/index262.js +15 -7
  330. package/dist/index262.js.map +1 -1
  331. package/dist/index263.js +12 -6
  332. package/dist/index263.js.map +1 -1
  333. package/dist/index264.js +29 -55
  334. package/dist/index264.js.map +1 -1
  335. package/dist/index265.js +12 -23
  336. package/dist/index265.js.map +1 -1
  337. package/dist/index266.js +23 -14
  338. package/dist/index266.js.map +1 -1
  339. package/dist/index267.js +5 -7
  340. package/dist/index267.js.map +1 -1
  341. package/dist/index268.js +23 -9
  342. package/dist/index268.js.map +1 -1
  343. package/dist/index269.js +29 -11
  344. package/dist/index269.js.map +1 -1
  345. package/dist/index270.js +5 -22
  346. package/dist/index270.js.map +1 -1
  347. package/dist/index271.js +13 -10
  348. package/dist/index271.js.map +1 -1
  349. package/dist/index272.js +154 -9
  350. package/dist/index272.js.map +1 -1
  351. package/dist/index273.js +30 -9
  352. package/dist/index273.js.map +1 -1
  353. package/dist/index274.js +9 -4
  354. package/dist/index274.js.map +1 -1
  355. package/dist/index275.js +47 -5
  356. package/dist/index275.js.map +1 -1
  357. package/dist/index276.js +10 -15
  358. package/dist/index276.js.map +1 -1
  359. package/dist/index277.js +44 -9
  360. package/dist/index277.js.map +1 -1
  361. package/dist/index278.js +95 -18
  362. package/dist/index278.js.map +1 -1
  363. package/dist/index279.js +86 -15
  364. package/dist/index279.js.map +1 -1
  365. package/dist/index280.js +103 -10
  366. package/dist/index280.js.map +1 -1
  367. package/dist/index281.js +51 -28
  368. package/dist/index281.js.map +1 -1
  369. package/dist/index282.js +10 -11
  370. package/dist/index282.js.map +1 -1
  371. package/dist/index283.js +36 -24
  372. package/dist/index283.js.map +1 -1
  373. package/dist/index284.js +8 -5
  374. package/dist/index284.js.map +1 -1
  375. package/dist/index285.js +117 -2
  376. package/dist/index285.js.map +1 -1
  377. package/dist/index286.js +18 -2
  378. package/dist/index286.js.map +1 -1
  379. package/dist/index287.js +16 -5
  380. package/dist/index287.js.map +1 -1
  381. package/dist/index288.js +4 -3
  382. package/dist/index288.js.map +1 -1
  383. package/dist/index289.js +36 -23
  384. package/dist/index289.js.map +1 -1
  385. package/dist/index29.js +3 -3
  386. package/dist/index290.js +20 -112
  387. package/dist/index290.js.map +1 -1
  388. package/dist/index291.js +9 -15
  389. package/dist/index291.js.map +1 -1
  390. package/dist/index292.js +7 -523
  391. package/dist/index292.js.map +1 -1
  392. package/dist/index293.js +16 -124
  393. package/dist/index293.js.map +1 -1
  394. package/dist/index294.js +25 -130
  395. package/dist/index294.js.map +1 -1
  396. package/dist/index295.js +16 -13
  397. package/dist/index295.js.map +1 -1
  398. package/dist/index296.js +4 -154
  399. package/dist/index296.js.map +1 -1
  400. package/dist/index297.js +18 -30
  401. package/dist/index297.js.map +1 -1
  402. package/dist/index298.js +12 -9
  403. package/dist/index298.js.map +1 -1
  404. package/dist/index299.js +5 -48
  405. package/dist/index299.js.map +1 -1
  406. package/dist/index30.js +14 -14
  407. package/dist/index300.js +3 -12
  408. package/dist/index300.js.map +1 -1
  409. package/dist/index301.js +22 -43
  410. package/dist/index301.js.map +1 -1
  411. package/dist/index302.js +109 -92
  412. package/dist/index302.js.map +1 -1
  413. package/dist/index303.js +15 -86
  414. package/dist/index303.js.map +1 -1
  415. package/dist/index304.js +513 -94
  416. package/dist/index304.js.map +1 -1
  417. package/dist/index305.js +125 -50
  418. package/dist/index305.js.map +1 -1
  419. package/dist/index306.js +132 -10
  420. package/dist/index306.js.map +1 -1
  421. package/dist/index307.js +19 -36
  422. package/dist/index307.js.map +1 -1
  423. package/dist/index308.js +5 -8
  424. package/dist/index308.js.map +1 -1
  425. package/dist/index309.js +5 -3
  426. package/dist/index309.js.map +1 -1
  427. package/dist/index31.js +3 -3
  428. package/dist/index310.js +4 -10
  429. package/dist/index310.js.map +1 -1
  430. package/dist/index311.js +15 -116
  431. package/dist/index311.js.map +1 -1
  432. package/dist/index312.js +8 -17
  433. package/dist/index312.js.map +1 -1
  434. package/dist/index313.js +5 -15
  435. package/dist/index313.js.map +1 -1
  436. package/dist/index314.js +4 -36
  437. package/dist/index314.js.map +1 -1
  438. package/dist/index315.js +544 -19
  439. package/dist/index315.js.map +1 -1
  440. package/dist/index316.js +46 -8
  441. package/dist/index316.js.map +1 -1
  442. package/dist/index317.js +17 -19
  443. package/dist/index317.js.map +1 -1
  444. package/dist/index318.js +6 -28
  445. package/dist/index318.js.map +1 -1
  446. package/dist/index319.js +8 -16
  447. package/dist/index319.js.map +1 -1
  448. package/dist/index32.js +2 -2
  449. package/dist/index320.js +7 -4
  450. package/dist/index320.js.map +1 -1
  451. package/dist/index321.js +9 -19
  452. package/dist/index321.js.map +1 -1
  453. package/dist/index322.js +12 -12
  454. package/dist/index322.js.map +1 -1
  455. package/dist/index323.js +10 -69
  456. package/dist/index323.js.map +1 -1
  457. package/dist/index324.js +14 -9
  458. package/dist/index324.js.map +1 -1
  459. package/dist/index325.js +64 -13
  460. package/dist/index325.js.map +1 -1
  461. package/dist/index326.js +68 -65
  462. package/dist/index326.js.map +1 -1
  463. package/dist/index327.js +8 -64
  464. package/dist/index327.js.map +1 -1
  465. package/dist/index328.js +14 -21
  466. package/dist/index328.js.map +1 -1
  467. package/dist/index329.js +66 -6
  468. package/dist/index329.js.map +1 -1
  469. package/dist/index33.js +1 -1
  470. package/dist/index330.js +4 -5
  471. package/dist/index330.js.map +1 -1
  472. package/dist/index331.js +56 -4
  473. package/dist/index331.js.map +1 -1
  474. package/dist/index332.js +68 -16
  475. package/dist/index332.js.map +1 -1
  476. package/dist/index333.js +31 -9
  477. package/dist/index333.js.map +1 -1
  478. package/dist/index334.js +9 -6
  479. package/dist/index334.js.map +1 -1
  480. package/dist/index335.js +153 -5
  481. package/dist/index335.js.map +1 -1
  482. package/dist/index336.js +106 -544
  483. package/dist/index336.js.map +1 -1
  484. package/dist/index337.js +4 -47
  485. package/dist/index337.js.map +1 -1
  486. package/dist/index338.js +22 -17
  487. package/dist/index338.js.map +1 -1
  488. package/dist/index339.js +15 -6
  489. package/dist/index339.js.map +1 -1
  490. package/dist/index34.js +1 -1
  491. package/dist/index340.js +28 -8
  492. package/dist/index340.js.map +1 -1
  493. package/dist/index341.js +12 -7
  494. package/dist/index341.js.map +1 -1
  495. package/dist/index342.js +6 -8
  496. package/dist/index342.js.map +1 -1
  497. package/dist/index343.js +13 -13
  498. package/dist/index343.js.map +1 -1
  499. package/dist/index344.js +27 -9
  500. package/dist/index344.js.map +1 -1
  501. package/dist/index345.js +5 -14
  502. package/dist/index345.js.map +1 -1
  503. package/dist/index346.js +23 -4
  504. package/dist/index346.js.map +1 -1
  505. package/dist/index35.js +1 -1
  506. package/dist/index36.js +1 -1
  507. package/dist/index38.js +10 -9
  508. package/dist/index38.js.map +1 -1
  509. package/dist/index39.js +2 -2
  510. package/dist/index40.js +24 -24
  511. package/dist/index42.js +1 -1
  512. package/dist/index46.js +1 -1
  513. package/dist/index47.js +2 -2
  514. package/dist/index50.js +2 -2
  515. package/dist/index51.js +18 -18
  516. package/dist/index55.js +1 -1
  517. package/dist/index56.js +1 -1
  518. package/dist/index57.js +5 -5
  519. package/dist/index58.js +53 -3
  520. package/dist/index58.js.map +1 -1
  521. package/dist/index60.js +33 -47
  522. package/dist/index60.js.map +1 -1
  523. package/dist/index62.js +7 -50
  524. package/dist/index62.js.map +1 -1
  525. package/dist/index63.js +11 -7
  526. package/dist/index63.js.map +1 -1
  527. package/dist/index64.js +3 -14
  528. package/dist/index64.js.map +1 -1
  529. package/dist/index65.js +43 -129
  530. package/dist/index65.js.map +1 -1
  531. package/dist/index66.js +50 -10
  532. package/dist/index66.js.map +1 -1
  533. package/dist/index67.js +7 -216
  534. package/dist/index67.js.map +1 -1
  535. package/dist/index68.js +15 -13
  536. package/dist/index68.js.map +1 -1
  537. package/dist/index69.js +132 -32
  538. package/dist/index69.js.map +1 -1
  539. package/dist/index70.js +10 -46
  540. package/dist/index70.js.map +1 -1
  541. package/dist/index71.js +216 -7
  542. package/dist/index71.js.map +1 -1
  543. package/dist/index72.js +12 -49
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +47 -4
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +49 -5
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +4 -28
  550. package/dist/index75.js.map +1 -1
  551. package/dist/index76.js +6 -50
  552. package/dist/index76.js.map +1 -1
  553. package/dist/index77.js +28 -9
  554. package/dist/index77.js.map +1 -1
  555. package/dist/index78.js +50 -12
  556. package/dist/index78.js.map +1 -1
  557. package/dist/index79.js +9 -2
  558. package/dist/index79.js.map +1 -1
  559. package/dist/index80.js +2 -2
  560. package/dist/index81.js +2 -54
  561. package/dist/index81.js.map +1 -1
  562. package/dist/index82.js +5 -46
  563. package/dist/index82.js.map +1 -1
  564. package/dist/index83.js +7 -205
  565. package/dist/index83.js.map +1 -1
  566. package/dist/index84.js +6 -22
  567. package/dist/index84.js.map +1 -1
  568. package/dist/index85.js +605 -24
  569. package/dist/index85.js.map +1 -1
  570. package/dist/index86.js +3 -399
  571. package/dist/index86.js.map +1 -1
  572. package/dist/index87.js +32 -45
  573. package/dist/index87.js.map +1 -1
  574. package/dist/index88.js +249 -5
  575. package/dist/index88.js.map +1 -1
  576. package/dist/index89.js +114 -7
  577. package/dist/index89.js.map +1 -1
  578. package/dist/index90.js +219 -5
  579. package/dist/index90.js.map +1 -1
  580. package/dist/index91.js +60 -599
  581. package/dist/index91.js.map +1 -1
  582. package/dist/index92.js +20 -3
  583. package/dist/index92.js.map +1 -1
  584. package/dist/index93.js +208 -32
  585. package/dist/index93.js.map +1 -1
  586. package/dist/index94.js +279 -209
  587. package/dist/index94.js.map +1 -1
  588. package/dist/index95.js +115 -99
  589. package/dist/index95.js.map +1 -1
  590. package/dist/index96.js +20 -219
  591. package/dist/index96.js.map +1 -1
  592. package/dist/index97.js +60 -51
  593. package/dist/index97.js.map +1 -1
  594. package/dist/index98.js +11 -13
  595. package/dist/index98.js.map +1 -1
  596. package/dist/index99.js +89 -197
  597. package/dist/index99.js.map +1 -1
  598. package/package.json +1 -1
  599. package/dist/index347.js +0 -26
  600. package/dist/index347.js.map +0 -1
  601. package/dist/index348.js +0 -8
  602. package/dist/index348.js.map +0 -1
  603. package/dist/index349.js +0 -59
  604. package/dist/index349.js.map +0 -1
  605. package/dist/index350.js +0 -71
  606. package/dist/index350.js.map +0 -1
  607. package/dist/index351.js +0 -34
  608. package/dist/index351.js.map +0 -1
  609. package/dist/index352.js +0 -12
  610. package/dist/index352.js.map +0 -1
  611. package/dist/index353.js +0 -156
  612. package/dist/index353.js.map +0 -1
  613. package/dist/index354.js +0 -111
  614. package/dist/index354.js.map +0 -1
  615. package/dist/index355.js +0 -26
  616. package/dist/index355.js.map +0 -1
  617. package/dist/index356.js +0 -16
  618. package/dist/index356.js.map +0 -1
  619. package/dist/index357.js +0 -31
  620. package/dist/index357.js.map +0 -1
  621. package/dist/index358.js +0 -8
  622. package/dist/index358.js.map +0 -1
  623. package/dist/index359.js +0 -19
  624. package/dist/index359.js.map +0 -1
  625. package/dist/index360.js +0 -32
  626. package/dist/index360.js.map +0 -1
  627. package/dist/index361.js +0 -16
  628. package/dist/index361.js.map +0 -1
  629. package/dist/index362.js +0 -10
  630. package/dist/index362.js.map +0 -1
package/dist/index141.js CHANGED
@@ -1,8 +1,57 @@
1
- import { DayFlag as e, SelectionState as n, UI as d } from "./index152.js";
2
- function p(o, i, f = {}) {
3
- return Object.entries(o).filter(([, t]) => t === !0).reduce((t, [r]) => (f[r] ? t.push(f[r]) : i[e[r]] ? t.push(i[e[r]]) : i[n[r]] && t.push(i[n[r]]), t), [i[d.Day]]);
1
+ import { useRef as k, useLayoutEffect as z } from "react";
2
+ import { Animation as o } from "./index140.js";
3
+ const l = (e) => e instanceof HTMLElement ? e : null, q = (e) => [
4
+ ...e.querySelectorAll("[data-animated-month]") ?? []
5
+ ], I = (e) => l(e.querySelector("[data-animated-month]")), w = (e) => l(e.querySelector("[data-animated-caption]")), h = (e) => l(e.querySelector("[data-animated-weeks]")), B = (e) => l(e.querySelector("[data-animated-nav]")), P = (e) => l(e.querySelector("[data-animated-weekdays]"));
6
+ function D(e, M, { classNames: s, months: a, focused: b, dateLib: S }) {
7
+ const y = k(null), A = k(a), p = k(!1);
8
+ z(() => {
9
+ const f = A.current;
10
+ if (A.current = a, !M || !e.current || // safety check because the ref can be set to anything by consumers
11
+ !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
12
+ a.length === 0 || f.length === 0 || a.length !== f.length)
13
+ return;
14
+ const g = S.isSameMonth(a[0].date, f[0].date), u = S.isAfter(a[0].date, f[0].date), v = u ? s[o.caption_after_enter] : s[o.caption_before_enter], m = u ? s[o.weeks_after_enter] : s[o.weeks_before_enter], H = y.current, L = e.current.cloneNode(!0);
15
+ if (L instanceof HTMLElement ? (q(L).forEach((t) => {
16
+ if (!(t instanceof HTMLElement))
17
+ return;
18
+ const c = I(t);
19
+ c && t.contains(c) && t.removeChild(c);
20
+ const n = w(t);
21
+ n && n.classList.remove(v);
22
+ const r = h(t);
23
+ r && r.classList.remove(m);
24
+ }), y.current = L) : y.current = null, p.current || g || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
25
+ b)
26
+ return;
27
+ const _ = H instanceof HTMLElement ? q(H) : [], x = q(e.current);
28
+ if (x?.every((i) => i instanceof HTMLElement) && _ && _.every((i) => i instanceof HTMLElement)) {
29
+ p.current = !0, e.current.style.isolation = "isolate";
30
+ const i = B(e.current);
31
+ i && (i.style.zIndex = "1"), x.forEach((t, c) => {
32
+ const n = _[c];
33
+ if (!n)
34
+ return;
35
+ t.style.position = "relative", t.style.overflow = "hidden";
36
+ const r = w(t);
37
+ r && r.classList.add(v);
38
+ const d = h(t);
39
+ d && d.classList.add(m);
40
+ const W = () => {
41
+ p.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(v), d && d.classList.remove(m), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
42
+ };
43
+ n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
44
+ const C = P(n);
45
+ C && (C.style.opacity = "0");
46
+ const E = w(n);
47
+ E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
48
+ const T = h(n);
49
+ T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
50
+ });
51
+ }
52
+ });
4
53
  }
5
54
  export {
6
- p as getClassNamesForModifiers
55
+ D as useAnimation
7
56
  };
8
57
  //# sourceMappingURL=index141.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index141.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js"],"sourcesContent":["import { DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the class names for a day based on its modifiers.\n *\n * This function combines the base class name for the day with any class names\n * associated with active modifiers.\n *\n * @param modifiers The modifiers applied to the day.\n * @param classNames The base class names for the calendar elements.\n * @param modifiersClassNames The class names associated with specific\n * modifiers.\n * @returns An array of class names for the day.\n */\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n"],"names":["getClassNamesForModifiers","modifiers","classNames","modifiersClassNames","active","previousValue","key","DayFlag","SelectionState","UI"],"mappings":";AAaO,SAASA,EAA0BC,GAAWC,GAAYC,IAAsB,CAAA,GAAI;AAevF,SAd2B,OAAO,QAAQF,CAAS,EAC9C,OAAO,CAAC,CAAA,EAAGG,CAAM,MAAMA,MAAW,EAAI,EACtC,OAAO,CAACC,GAAe,CAACC,CAAG,OACxBH,EAAoBG,CAAG,IACvBD,EAAc,KAAKF,EAAoBG,CAAG,CAAC,IAEtCJ,EAAWK,EAAQD,CAAG,CAAC,IAC5BD,EAAc,KAAKH,EAAWK,EAAQD,CAAG,CAAC,CAAC,IAEtCJ,EAAWM,EAAeF,CAAG,CAAC,KACnCD,EAAc,KAAKH,EAAWM,EAAeF,CAAG,CAAC,CAAC,GAE/CD,IACR,CAACH,EAAWO,EAAG,GAAG,CAAC,CAAC;AAE3B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index141.js","sources":["../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"names":["asHtmlElement","element","queryMonthEls","queryMonthEl","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","isSameMonth","isAfterPreviousMonth","captionAnimationClass","Animation","weeksAnimationClass","previousRootElSnapshot","rootElSnapshot","currentMonthElSnapshot","previousMonthElSnapshot","captionEl","weeksEl","previousMonthEls","currentMonthEls","el","navEl","currentMonthEl","index","previousMonthEl","cleanUp","previousWeekdaysEl","previousCaptionEl","previousWeeksEl"],"mappings":";;AAEA,MAAMA,IAAgB,CAACC,MACfA,aAAmB,cACZA,IACJ,MAELC,IAAgB,CAACD,MAAY;AAAA,EAC/B,GAAIA,EAAQ,iBAAiB,uBAAuB,KAAK,CAAA;AAC7D,GACME,IAAe,CAACF,MAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,GACxFG,IAAiB,CAACH,MAAYD,EAAcC,EAAQ,cAAc,yBAAyB,CAAC,GAC5FI,IAAe,CAACJ,MAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,GACxFK,IAAa,CAACL,MAAYD,EAAcC,EAAQ,cAAc,qBAAqB,CAAC,GACpFM,IAAkB,CAACN,MAAYD,EAAcC,EAAQ,cAAc,0BAA0B,CAAC;AAY7F,SAASO,EAAaC,GAAWC,GAAS,EAAE,YAAAC,GAAY,QAAAC,GAAQ,SAAAC,GAAS,SAAAC,KAAY;AACxF,QAAMC,IAA4BC,EAAO,IAAI,GACvCC,IAAoBD,EAAOJ,CAAM,GACjCM,IAAeF,EAAO,EAAK;AACjC,EAAAG,EAAgB,MAAM;AAElB,UAAMC,IAAiBH,EAAkB;AAGzC,QADAA,EAAkB,UAAUL,GACxB,CAACF,KACD,CAACD,EAAU;AAAA,IAEX,EAAEA,EAAU,mBAAmB;AAAA,IAE/BG,EAAO,WAAW,KAClBQ,EAAe,WAAW,KAC1BR,EAAO,WAAWQ,EAAe;AACjC;AAEJ,UAAMC,IAAcP,EAAQ,YAAYF,EAAO,CAAC,EAAE,MAAMQ,EAAe,CAAC,EAAE,IAAI,GACxEE,IAAuBR,EAAQ,QAAQF,EAAO,CAAC,EAAE,MAAMQ,EAAe,CAAC,EAAE,IAAI,GAC7EG,IAAwBD,IACxBX,EAAWa,EAAU,mBAAmB,IACxCb,EAAWa,EAAU,oBAAoB,GACzCC,IAAsBH,IACtBX,EAAWa,EAAU,iBAAiB,IACtCb,EAAWa,EAAU,kBAAkB,GAEvCE,IAAyBX,EAA0B,SAEnDY,IAAiBlB,EAAU,QAAQ,UAAU,EAAI;AA6BvD,QA5BIkB,aAA0B,eAGMzB,EAAcyB,CAAc,EACpC,QAAQ,CAACC,MAA2B;AACxD,UAAI,EAAEA,aAAkC;AACpC;AAEJ,YAAMC,IAA0B1B,EAAayB,CAAsB;AACnE,MAAIC,KACAD,EAAuB,SAASC,CAAuB,KACvDD,EAAuB,YAAYC,CAAuB;AAG9D,YAAMC,IAAY1B,EAAewB,CAAsB;AACvD,MAAIE,KACAA,EAAU,UAAU,OAAOP,CAAqB;AAEpD,YAAMQ,IAAU1B,EAAauB,CAAsB;AACnD,MAAIG,KACAA,EAAQ,UAAU,OAAON,CAAmB;AAAA,IAEpD,CAAC,GACDV,EAA0B,UAAUY,KAGpCZ,EAA0B,UAAU,MAEpCG,EAAa,WACbG;AAAA,IAEAR;AACA;AAEJ,UAAMmB,IAAmBN,aAAkC,cACrDxB,EAAcwB,CAAsB,IACpC,CAAA,GACAO,IAAkB/B,EAAcO,EAAU,OAAO;AACvD,QAAIwB,GAAiB,MAAM,CAACC,MAAOA,aAAc,WAAW,KACxDF,KACAA,EAAiB,MAAM,CAACE,MAAOA,aAAc,WAAW,GAAG;AAC3D,MAAAhB,EAAa,UAAU,IAGvBT,EAAU,QAAQ,MAAM,YAAY;AAEpC,YAAM0B,IAAQ7B,EAAWG,EAAU,OAAO;AAC1C,MAAI0B,MACAA,EAAM,MAAM,SAAS,MAEzBF,EAAgB,QAAQ,CAACG,GAAgBC,MAAU;AAC/C,cAAMC,IAAkBN,EAAiBK,CAAK;AAC9C,YAAI,CAACC;AACD;AAGJ,QAAAF,EAAe,MAAM,WAAW,YAChCA,EAAe,MAAM,WAAW;AAChC,cAAMN,IAAY1B,EAAegC,CAAc;AAC/C,QAAIN,KACAA,EAAU,UAAU,IAAIP,CAAqB;AAEjD,cAAMQ,IAAU1B,EAAa+B,CAAc;AAC3C,QAAIL,KACAA,EAAQ,UAAU,IAAIN,CAAmB;AAG7C,cAAMc,IAAU,MAAM;AAClB,UAAArB,EAAa,UAAU,IACnBT,EAAU,YACVA,EAAU,QAAQ,MAAM,YAAY,KAEpC0B,MACAA,EAAM,MAAM,SAAS,KAErBL,KACAA,EAAU,UAAU,OAAOP,CAAqB,GAEhDQ,KACAA,EAAQ,UAAU,OAAON,CAAmB,GAEhDW,EAAe,MAAM,WAAW,IAChCA,EAAe,MAAM,WAAW,IAC5BA,EAAe,SAASE,CAAe,KACvCF,EAAe,YAAYE,CAAe;AAAA,QAElD;AAGA,QAAAA,EAAgB,MAAM,gBAAgB,QACtCA,EAAgB,MAAM,WAAW,YACjCA,EAAgB,MAAM,WAAW,UACjCA,EAAgB,aAAa,eAAe,MAAM;AAElD,cAAME,IAAqBjC,EAAgB+B,CAAe;AAC1D,QAAIE,MACAA,EAAmB,MAAM,UAAU;AAEvC,cAAMC,IAAoBrC,EAAekC,CAAe;AACxD,QAAIG,MACAA,EAAkB,UAAU,IAAInB,IAC1BX,EAAWa,EAAU,mBAAmB,IACxCb,EAAWa,EAAU,kBAAkB,CAAC,GAC9CiB,EAAkB,iBAAiB,gBAAgBF,CAAO;AAE9D,cAAMG,IAAkBrC,EAAaiC,CAAe;AACpD,QAAII,KACAA,EAAgB,UAAU,IAAIpB,IACxBX,EAAWa,EAAU,iBAAiB,IACtCb,EAAWa,EAAU,gBAAgB,CAAC,GAEhDY,EAAe,aAAaE,GAAiBF,EAAe,UAAU;AAAA,MAC1E,CAAC;AAAA,IACL;AAAA,EACJ,CAAC;AACL;","x_google_ignoreList":[0]}
package/dist/index142.js CHANGED
@@ -1,11 +1,76 @@
1
- import * as t from "./index112.js";
2
- function n(o) {
1
+ import { useEffect as D, useMemo as S } from "react";
2
+ import { getDates as N } from "./index249.js";
3
+ import { getDays as w } from "./index250.js";
4
+ import { getDisplayMonths as E } from "./index251.js";
5
+ import { getInitialMonth as c } from "./index252.js";
6
+ import { getMonths as b } from "./index253.js";
7
+ import { getNavMonths as q } from "./index254.js";
8
+ import { getNextMonth as F } from "./index255.js";
9
+ import { getPreviousMonth as P } from "./index256.js";
10
+ import { getWeeks as V } from "./index257.js";
11
+ import { useControlledValue as Z } from "./index258.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
+ };
3
59
  return {
4
- ...t,
5
- ...o
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);
70
+ }
6
71
  };
7
72
  }
8
73
  export {
9
- n as getComponents
74
+ _ as useCalendar
10
75
  };
11
76
  //# sourceMappingURL=index142.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index142.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents,\n };\n}\n"],"names":["getComponents","customComponents","components"],"mappings":";AAWO,SAASA,EAAcC,GAAkB;AAC5C,SAAO;AAAA,IACH,GAAGC;AAAAA,IACH,GAAGD;AAAAA,EACX;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index142.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/index143.js CHANGED
@@ -1,17 +1,13 @@
1
- function n(e) {
2
- const t = {
3
- "data-mode": e.mode ?? void 0,
4
- "data-required": "required" in e ? e.required : void 0,
5
- "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
6
- "data-week-numbers": e.showWeekNumber || void 0,
7
- "data-broadcast-calendar": e.broadcastCalendar || void 0,
8
- "data-nav-layout": e.navLayout || void 0
9
- };
10
- return Object.entries(e).forEach(([a, d]) => {
11
- a.startsWith("data-") && (t[a] = d);
12
- }), t;
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;
13
8
  }
14
9
  export {
15
- n as getDataAttributes
10
+ o as dayPickerContext,
11
+ c as useDayPicker
16
12
  };
17
13
  //# sourceMappingURL=index143.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index143.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["/**\n * Extracts `data-` attributes from the DayPicker props.\n *\n * This function collects all `data-` attributes from the props and adds\n * additional attributes based on the DayPicker configuration.\n *\n * @param props The DayPicker props.\n * @returns An object containing the `data-` attributes.\n */\nexport function getDataAttributes(props) {\n const dataAttributes = {\n \"data-mode\": props.mode ?? undefined,\n \"data-required\": \"required\" in props ? props.required : undefined,\n \"data-multiple-months\": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,\n \"data-week-numbers\": props.showWeekNumber || undefined,\n \"data-broadcast-calendar\": props.broadcastCalendar || undefined,\n \"data-nav-layout\": props.navLayout || undefined,\n };\n Object.entries(props).forEach(([key, val]) => {\n if (key.startsWith(\"data-\")) {\n dataAttributes[key] = val;\n }\n });\n return dataAttributes;\n}\n"],"names":["getDataAttributes","props","dataAttributes","key","val"],"mappings":"AASO,SAASA,EAAkBC,GAAO;AACrC,QAAMC,IAAiB;AAAA,IACnB,aAAaD,EAAM,QAAQ;AAAA,IAC3B,iBAAiB,cAAcA,IAAQA,EAAM,WAAW;AAAA,IACxD,wBAAyBA,EAAM,kBAAkBA,EAAM,iBAAiB,KAAM;AAAA,IAC9E,qBAAqBA,EAAM,kBAAkB;AAAA,IAC7C,2BAA2BA,EAAM,qBAAqB;AAAA,IACtD,mBAAmBA,EAAM,aAAa;AAAA,EAC9C;AACI,gBAAO,QAAQA,CAAK,EAAE,QAAQ,CAAC,CAACE,GAAKC,CAAG,MAAM;AAC1C,IAAID,EAAI,WAAW,OAAO,MACtBD,EAAeC,CAAG,IAAIC;AAAA,EAE9B,CAAC,GACMF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index143.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/index144.js CHANGED
@@ -1,17 +1,24 @@
1
- import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "./index152.js";
2
- function i() {
3
- const o = {};
4
- for (const n in t)
5
- o[t[n]] = `rdp-${t[n]}`;
6
- for (const n in e)
7
- o[e[n]] = `rdp-${e[n]}`;
8
- for (const n in r)
9
- o[r[n]] = `rdp-${r[n]}`;
10
- for (const n in s)
11
- o[s[n]] = `rdp-${s[n]}`;
12
- return o;
1
+ import { useState as a } from "react";
2
+ import { calculateFocusTarget as T } from "./index259.js";
3
+ import { getNextFocus as v } from "./index260.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
+ };
13
20
  }
14
21
  export {
15
- i as getDefaultClassNames
22
+ I as useFocus
16
23
  };
17
24
  //# sourceMappingURL=index144.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index144.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { Animation, DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";AAUO,SAASA,IAAuB;AACnC,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAAOC;AACd,IAAAF,EAAWE,EAAGD,CAAG,CAAC,IACd,OAAOC,EAAGD,CAAG,CAAC;AAEtB,aAAWA,KAAOE;AACd,IAAAH,EAAWG,EAAQF,CAAG,CAAC,IACnB,OAAOE,EAAQF,CAAG,CAAC;AAE3B,aAAWA,KAAOG;AACd,IAAAJ,EAAWI,EAAeH,CAAG,CAAC,IAC1B,OAAOG,EAAeH,CAAG,CAAC;AAElC,aAAWA,KAAOI;AACd,IAAAL,EAAWK,EAAUJ,CAAG,CAAC,IACrB,OAAOI,EAAUJ,CAAG,CAAC;AAE7B,SAAOD;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index144.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/index145.js CHANGED
@@ -1,11 +1,20 @@
1
- import * as a from "./index163.js";
2
- function f(n) {
3
- return n?.formatMonthCaption && !n.formatCaption && (n.formatCaption = n.formatMonthCaption), n?.formatYearCaption && !n.formatYearDropdown && (n.formatYearDropdown = n.formatYearCaption), {
4
- ...a,
5
- ...n
6
- };
1
+ import { useMulti as i } from "./index261.js";
2
+ import { useRange as o } from "./index262.js";
3
+ import { useSingle as s } from "./index263.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
+ }
7
16
  }
8
17
  export {
9
- f as getFormatters
18
+ f as useSelection
10
19
  };
11
20
  //# sourceMappingURL=index145.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index145.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/**\n * Merges custom formatters from the props with the default formatters.\n *\n * @param customFormatters The custom formatters provided in the DayPicker\n * props.\n * @returns The merged formatters object.\n */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters,\n };\n}\n"],"names":["getFormatters","customFormatters","defaultFormatters"],"mappings":";AAQO,SAASA,EAAcC,GAAkB;AAC5C,SAAIA,GAAkB,sBAAsB,CAACA,EAAiB,kBAC1DA,EAAiB,gBAAgBA,EAAiB,qBAElDA,GAAkB,qBAClB,CAACA,EAAiB,uBAClBA,EAAiB,qBAAqBA,EAAiB,oBAEpD;AAAA,IACH,GAAGC;AAAAA,IACH,GAAGD;AAAA,EACX;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index145.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/index146.js CHANGED
@@ -1,35 +1,27 @@
1
- import * as o from "./index171.js";
2
- import { labelWeekday as b } from "./index179.js";
3
- import { labelWeekNumberHeader as i } from "./index181.js";
4
- import { labelNav as n } from "./index176.js";
5
- import { labelGridcell as t } from "./index174.js";
6
- import { labelGrid as d } from "./index173.js";
7
- import { labelYearDropdown as p } from "./index182.js";
8
- import { labelWeekNumber as m } from "./index180.js";
9
- import { labelPrevious as f } from "./index178.js";
10
- import { labelNext as N } from "./index177.js";
11
- import { labelMonthDropdown as k } from "./index175.js";
12
- import { labelDayButton as D } from "./index172.js";
13
- const r = (l, a, e) => a || (e ? typeof e == "function" ? e : (...W) => e : l);
14
- function Y(l, a) {
15
- const e = a.locale?.labels ?? {};
16
- return {
1
+ import "./index209.js";
2
+ import { toTimeZone as i } from "./index148.js";
3
+ import { isDateRange as e, isDateInterval as p, isDateAfterType as y, isDateBeforeType as D } from "./index149.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) ? {
17
9
  ...o,
18
- ...l ?? {},
19
- labelDayButton: r(D, l?.labelDayButton, e.labelDayButton),
20
- labelMonthDropdown: r(k, l?.labelMonthDropdown, e.labelMonthDropdown),
21
- labelNext: r(N, l?.labelNext, e.labelNext),
22
- labelPrevious: r(f, l?.labelPrevious, e.labelPrevious),
23
- labelWeekNumber: r(m, l?.labelWeekNumber, e.labelWeekNumber),
24
- labelYearDropdown: r(p, l?.labelYearDropdown, e.labelYearDropdown),
25
- labelGrid: r(d, l?.labelGrid, e.labelGrid),
26
- labelGridcell: r(t, l?.labelGridcell, e.labelGridcell),
27
- labelNav: r(n, l?.labelNav, e.labelNav),
28
- labelWeekNumberHeader: r(i, l?.labelWeekNumberHeader, e.labelWeekNumberHeader),
29
- labelWeekday: r(b, l?.labelWeekday, e.labelWeekday)
30
- };
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));
31
23
  }
32
24
  export {
33
- Y as getLabels
25
+ T as convertMatchersToTimeZone
34
26
  };
35
27
  //# sourceMappingURL=index146.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index146.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getLabels.js"],"sourcesContent":["import * as defaultLabels from \"../labels/index.js\";\nconst resolveLabel = (defaultLabel, customLabel, localeLabel) => {\n if (customLabel)\n return customLabel;\n if (localeLabel) {\n return (typeof localeLabel === \"function\"\n ? localeLabel\n : (..._args) => localeLabel);\n }\n return defaultLabel;\n};\n/**\n * Merges custom labels from the props with the default labels.\n *\n * When available, uses the locale-provided translation for `labelNext`.\n *\n * @param customLabels The custom labels provided in the DayPicker props.\n * @param options Options from the date library, used to resolve locale\n * translations.\n * @returns The merged labels object with locale-aware defaults.\n */\nexport function getLabels(customLabels, options) {\n const localeLabels = options.locale?.labels ?? {};\n return {\n ...defaultLabels,\n ...(customLabels ?? {}),\n labelDayButton: resolveLabel(defaultLabels.labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),\n labelMonthDropdown: resolveLabel(defaultLabels.labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),\n labelNext: resolveLabel(defaultLabels.labelNext, customLabels?.labelNext, localeLabels.labelNext),\n labelPrevious: resolveLabel(defaultLabels.labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),\n labelWeekNumber: resolveLabel(defaultLabels.labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),\n labelYearDropdown: resolveLabel(defaultLabels.labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),\n labelGrid: resolveLabel(defaultLabels.labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),\n labelGridcell: resolveLabel(defaultLabels.labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),\n labelNav: resolveLabel(defaultLabels.labelNav, customLabels?.labelNav, localeLabels.labelNav),\n labelWeekNumberHeader: resolveLabel(defaultLabels.labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),\n labelWeekday: resolveLabel(defaultLabels.labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday),\n };\n}\n"],"names":["resolveLabel","defaultLabel","customLabel","localeLabel","_args","getLabels","customLabels","options","localeLabels","defaultLabels","defaultLabels.labelDayButton","defaultLabels.labelMonthDropdown","defaultLabels.labelNext","defaultLabels.labelPrevious","defaultLabels.labelWeekNumber","defaultLabels.labelYearDropdown","defaultLabels.labelGrid","defaultLabels.labelGridcell","defaultLabels.labelNav","defaultLabels.labelWeekNumberHeader","defaultLabels.labelWeekday"],"mappings":";;;;;;;;;;;;AACA,MAAMA,IAAe,CAACC,GAAcC,GAAaC,MACzCD,MAEAC,IACQ,OAAOA,KAAgB,aACzBA,IACA,IAAIC,MAAUD,IAEjBF;AAYJ,SAASI,EAAUC,GAAcC,GAAS;AAC7C,QAAMC,IAAeD,EAAQ,QAAQ,UAAU,CAAA;AAC/C,SAAO;AAAA,IACH,GAAGE;AAAAA,IACH,GAAIH,KAAgB,CAAA;AAAA,IACpB,gBAAgBN,EAAaU,GAA8BJ,GAAc,gBAAgBE,EAAa,cAAc;AAAA,IACpH,oBAAoBR,EAAaW,GAAkCL,GAAc,oBAAoBE,EAAa,kBAAkB;AAAA,IACpI,WAAWR,EAAaY,GAAyBN,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaa,GAA6BP,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,iBAAiBR,EAAac,GAA+BR,GAAc,iBAAiBE,EAAa,eAAe;AAAA,IACxH,mBAAmBR,EAAae,GAAiCT,GAAc,mBAAmBE,EAAa,iBAAiB;AAAA,IAChI,WAAWR,EAAagB,GAAyBV,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaiB,GAA6BX,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,UAAUR,EAAakB,GAAwBZ,GAAc,UAAUE,EAAa,QAAQ;AAAA,IAC5F,uBAAuBR,EAAamB,GAAqCb,GAAc,uBAAuBE,EAAa,qBAAqB;AAAA,IAChJ,cAAcR,EAAaoB,GAA4Bd,GAAc,cAAcE,EAAa,YAAY;AAAA,EACpH;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index146.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/index147.js CHANGED
@@ -1,14 +1,10 @@
1
- function d(o, n, s, a, e) {
2
- const { startOfMonth: r, startOfYear: c, endOfYear: f, eachMonthOfInterval: l, getMonth: p } = e;
3
- return l({
4
- start: c(o),
5
- end: f(o)
6
- }).map((t) => {
7
- const O = a.formatMonthDropdown(t, e), h = p(t), u = n && t < r(n) || s && t > r(s) || !1;
8
- return { value: h, label: O, disabled: u };
9
- });
1
+ import { defaultDateLib as s } from "./index127.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;
10
6
  }
11
7
  export {
12
- d as getMonthOptions
8
+ u as rangeIncludesDate
13
9
  };
14
10
  //# sourceMappingURL=index147.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index147.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/**\n * Returns the months to show in the dropdown.\n *\n * This function generates a list of months for the current year, formatted\n * using the provided formatter, and determines whether each month should be\n * disabled based on the navigation range.\n *\n * @param displayMonth The currently displayed month.\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the month labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the months, or `undefined`\n * if no months are available.\n */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth, } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth),\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","month","label","value","disabled"],"mappings":"AAeO,SAASA,EAAgBC,GAAcC,GAAUC,GAAQC,GAAYC,GAAS;AACjF,QAAM,EAAE,cAAAC,GAAc,aAAAC,GAAa,WAAAC,GAAW,qBAAAC,GAAqB,UAAAC,EAAQ,IAAML;AAajF,SAZeI,EAAoB;AAAA,IAC/B,OAAOF,EAAYN,CAAY;AAAA,IAC/B,KAAKO,EAAUP,CAAY;AAAA,EACnC,CAAK,EACsB,IAAI,CAACU,MAAU;AAClC,UAAMC,IAAQR,EAAW,oBAAoBO,GAAON,CAAO,GACrDQ,IAAQH,EAASC,CAAK,GACtBG,IAAYZ,KAAYS,IAAQL,EAAaJ,CAAQ,KACtDC,KAAUQ,IAAQL,EAAaH,CAAM,KACtC;AACJ,WAAO,EAAE,OAAAU,GAAO,OAAAD,GAAO,UAAAE,EAAQ;AAAA,EACnC,CAAC;AAEL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index147.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/index148.js CHANGED
@@ -1,14 +1,9 @@
1
- import { UI as f } from "./index152.js";
2
- function n(r, o = {}, i = {}) {
3
- let e = { ...o?.[f.Day] };
4
- return Object.entries(r).filter(([, t]) => t === !0).forEach(([t]) => {
5
- e = {
6
- ...e,
7
- ...i?.[t]
8
- };
9
- }), e;
1
+ import { TZDate as r } from "./index207.js";
2
+ import "./index209.js";
3
+ function e(n, o) {
4
+ return n instanceof r && n.timeZone === o ? n : new r(n, o);
10
5
  }
11
6
  export {
12
- n as getStyleForModifiers
7
+ e as toTimeZone
13
8
  };
14
9
  //# sourceMappingURL=index148.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index148.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier],\n };\n });\n return style;\n}\n"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","active","modifier"],"mappings":";AAYO,SAASA,EAAqBC,GAAcC,IAAS,CAAA,GAAIC,IAAkB,CAAA,GAAI;AAClF,MAAIC,IAAQ,EAAE,GAAGF,IAASG,EAAG,GAAG,EAAC;AACjC,gBAAO,QAAQJ,CAAY,EACtB,OAAO,CAAC,CAAA,EAAGK,CAAM,MAAMA,MAAW,EAAI,EACtC,QAAQ,CAAC,CAACC,CAAQ,MAAM;AACzB,IAAAH,IAAQ;AAAA,MACJ,GAAGA;AAAA,MACH,GAAGD,IAAkBI,CAAQ;AAAA,IACzC;AAAA,EACI,CAAC,GACMH;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index148.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/index149.js CHANGED
@@ -1,12 +1,27 @@
1
- function y(t, o, a, n) {
2
- const s = n ?? t.today(), c = a ? t.startOfBroadcastWeek(s, t) : o ? t.startOfISOWeek(s) : t.startOfWeek(s), r = [];
3
- for (let e = 0; e < 7; e++) {
4
- const f = t.addDays(c, e);
5
- r.push(f);
6
- }
7
- return r;
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);
8
18
  }
9
19
  export {
10
- y as getWeekdays
20
+ r as isDateAfterType,
21
+ f as isDateBeforeType,
22
+ o as isDateInterval,
23
+ t as isDateRange,
24
+ y as isDatesArray,
25
+ i as isDayOfWeekType
11
26
  };
12
27
  //# sourceMappingURL=index149.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index149.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {\n const referenceToday = today ?? dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(referenceToday, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(referenceToday)\n : dateLib.startOfWeek(referenceToday);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","referenceToday","start","days","i","day"],"mappings":"AAUO,SAASA,EAAYC,GAASC,GAASC,GAAmBC,GAAO;AACpE,QAAMC,IAAiBD,KAASH,EAAQ,MAAK,GACvCK,IAAQH,IACRF,EAAQ,qBAAqBI,GAAgBJ,CAAO,IACpDC,IACID,EAAQ,eAAeI,CAAc,IACrCJ,EAAQ,YAAYI,CAAc,GACtCE,IAAO,CAAA;AACb,WAASC,IAAI,GAAGA,IAAI,GAAGA,KAAK;AACxB,UAAMC,IAAMR,EAAQ,QAAQK,GAAOE,CAAC;AACpC,IAAAD,EAAK,KAAKE,CAAG;AAAA,EACjB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index149.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]}