@rpcbase/ui 0.163.0 → 0.165.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 (682) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/HourPickerField/index.d.ts +1 -3
  3. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  4. package/dist/index100.js +4 -14
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js +5 -2
  7. package/dist/index101.js.map +1 -1
  8. package/dist/index102.js +6 -7
  9. package/dist/index102.js.map +1 -1
  10. package/dist/index103.js +144 -325
  11. package/dist/index103.js.map +1 -1
  12. package/dist/index104.js +36 -46
  13. package/dist/index104.js.map +1 -1
  14. package/dist/index105.js +4 -46
  15. package/dist/index105.js.map +1 -1
  16. package/dist/index106.js +7 -46
  17. package/dist/index106.js.map +1 -1
  18. package/dist/index107.js +12 -204
  19. package/dist/index107.js.map +1 -1
  20. package/dist/index108.js +14 -22
  21. package/dist/index108.js.map +1 -1
  22. package/dist/index109.js +7 -24
  23. package/dist/index109.js.map +1 -1
  24. package/dist/index11.js +187 -185
  25. package/dist/index11.js.map +1 -1
  26. package/dist/index110.js +30 -398
  27. package/dist/index110.js.map +1 -1
  28. package/dist/index111.js +11 -52
  29. package/dist/index111.js.map +1 -1
  30. package/dist/index112.js +10 -4
  31. package/dist/index112.js.map +1 -1
  32. package/dist/index113.js +8 -4
  33. package/dist/index113.js.map +1 -1
  34. package/dist/index114.js +13 -15
  35. package/dist/index114.js.map +1 -1
  36. package/dist/index115.js +101 -5
  37. package/dist/index115.js.map +1 -1
  38. package/dist/index116.js +20 -8
  39. package/dist/index116.js.map +1 -1
  40. package/dist/index117.js +53 -16
  41. package/dist/index117.js.map +1 -1
  42. package/dist/index118.js +72 -4
  43. package/dist/index118.js.map +1 -1
  44. package/dist/index119.js +9 -4
  45. package/dist/index119.js.map +1 -1
  46. package/dist/index120.js +20 -5
  47. package/dist/index120.js.map +1 -1
  48. package/dist/index121.js +16 -5
  49. package/dist/index121.js.map +1 -1
  50. package/dist/index122.js +23 -4
  51. package/dist/index122.js.map +1 -1
  52. package/dist/index123.js +6 -4
  53. package/dist/index123.js.map +1 -1
  54. package/dist/index124.js +5 -6
  55. package/dist/index124.js.map +1 -1
  56. package/dist/index125.js +23 -24
  57. package/dist/index125.js.map +1 -1
  58. package/dist/index126.js +35 -7
  59. package/dist/index126.js.map +1 -1
  60. package/dist/index127.js +16 -5
  61. package/dist/index127.js.map +1 -1
  62. package/dist/index128.js +6 -6
  63. package/dist/index128.js.map +1 -1
  64. package/dist/index129.js +4 -5
  65. package/dist/index129.js.map +1 -1
  66. package/dist/index13.js +1 -1
  67. package/dist/index130.js +4 -4
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +4 -5
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -4
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +3 -8
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +6 -5
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +24 -5
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +7 -4
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +6 -6
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +5 -145
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +3 -39
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index14.js +3 -3
  88. package/dist/index140.js +3 -4
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +4 -7
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +3 -13
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +4 -13
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +3 -7
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +3 -31
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +3 -10
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +46 -10
  103. package/dist/index147.js.map +1 -1
  104. package/dist/index148.js +45 -7
  105. package/dist/index148.js.map +1 -1
  106. package/dist/index149.js +204 -12
  107. package/dist/index149.js.map +1 -1
  108. package/dist/index150.js +21 -101
  109. package/dist/index150.js.map +1 -1
  110. package/dist/index151.js +25 -20
  111. package/dist/index151.js.map +1 -1
  112. package/dist/index152.js +395 -49
  113. package/dist/index152.js.map +1 -1
  114. package/dist/index153.js +5 -72
  115. package/dist/index153.js.map +1 -1
  116. package/dist/index154.js +67 -8
  117. package/dist/index154.js.map +1 -1
  118. package/dist/index155.js +2 -21
  119. package/dist/index155.js.map +1 -1
  120. package/dist/index156.js +362 -15
  121. package/dist/index156.js.map +1 -1
  122. package/dist/index157.js +261 -23
  123. package/dist/index157.js.map +1 -1
  124. package/dist/index158.js +60 -6
  125. package/dist/index158.js.map +1 -1
  126. package/dist/index159.js +46 -5
  127. package/dist/index159.js.map +1 -1
  128. package/dist/index160.js +164 -18
  129. package/dist/index160.js.map +1 -1
  130. package/dist/index161.js +108 -33
  131. package/dist/index161.js.map +1 -1
  132. package/dist/index162.js +25 -16
  133. package/dist/index162.js.map +1 -1
  134. package/dist/index163.js +8 -7
  135. package/dist/index163.js.map +1 -1
  136. package/dist/index164.js +4 -4
  137. package/dist/index164.js.map +1 -1
  138. package/dist/index165.js +5 -4
  139. package/dist/index165.js.map +1 -1
  140. package/dist/index166.js +4 -4
  141. package/dist/index166.js.map +1 -1
  142. package/dist/index167.js +466 -4
  143. package/dist/index167.js.map +1 -1
  144. package/dist/index168.js +185 -3
  145. package/dist/index168.js.map +1 -1
  146. package/dist/index169.js +107 -6
  147. package/dist/index169.js.map +1 -1
  148. package/dist/index170.js +263 -24
  149. package/dist/index170.js.map +1 -1
  150. package/dist/index171.js +9 -7
  151. package/dist/index171.js.map +1 -1
  152. package/dist/index172.js +42 -6
  153. package/dist/index172.js.map +1 -1
  154. package/dist/index173.js +4 -5
  155. package/dist/index173.js.map +1 -1
  156. package/dist/index174.js +67 -3
  157. package/dist/index174.js.map +1 -1
  158. package/dist/index175.js +180 -3
  159. package/dist/index175.js.map +1 -1
  160. package/dist/index176.js +46 -4
  161. package/dist/index176.js.map +1 -1
  162. package/dist/index177.js +58 -3
  163. package/dist/index177.js.map +1 -1
  164. package/dist/index178.js +8 -4
  165. package/dist/index178.js.map +1 -1
  166. package/dist/index179.js +66 -3
  167. package/dist/index179.js.map +1 -1
  168. package/dist/index18.js +407 -396
  169. package/dist/index18.js.map +1 -1
  170. package/dist/index180.js +19 -3
  171. package/dist/index180.js.map +1 -1
  172. package/dist/index181.js +16 -3
  173. package/dist/index181.js.map +1 -1
  174. package/dist/index182.js +5 -5
  175. package/dist/index182.js.map +1 -1
  176. package/dist/index183.js +4 -67
  177. package/dist/index183.js.map +1 -1
  178. package/dist/index184.js +7 -2
  179. package/dist/index184.js.map +1 -1
  180. package/dist/index185.js +4 -363
  181. package/dist/index185.js.map +1 -1
  182. package/dist/index186.js +7 -261
  183. package/dist/index186.js.map +1 -1
  184. package/dist/index187.js +17 -60
  185. package/dist/index187.js.map +1 -1
  186. package/dist/index188.js +5 -46
  187. package/dist/index188.js.map +1 -1
  188. package/dist/index189.js +5 -169
  189. package/dist/index189.js.map +1 -1
  190. package/dist/index19.js +6 -6
  191. package/dist/index190.js +13 -109
  192. package/dist/index190.js.map +1 -1
  193. package/dist/index191.js +10 -24
  194. package/dist/index191.js.map +1 -1
  195. package/dist/index192.js +15 -8
  196. package/dist/index192.js.map +1 -1
  197. package/dist/index193.js +14 -4
  198. package/dist/index193.js.map +1 -1
  199. package/dist/index194.js +5 -5
  200. package/dist/index194.js.map +1 -1
  201. package/dist/index195.js +6 -4
  202. package/dist/index195.js.map +1 -1
  203. package/dist/index196.js +7 -466
  204. package/dist/index196.js.map +1 -1
  205. package/dist/index197.js +6 -185
  206. package/dist/index197.js.map +1 -1
  207. package/dist/index198.js +9 -107
  208. package/dist/index198.js.map +1 -1
  209. package/dist/index199.js +5 -262
  210. package/dist/index199.js.map +1 -1
  211. package/dist/index20.js +1 -1
  212. package/dist/index200.js +5 -9
  213. package/dist/index200.js.map +1 -1
  214. package/dist/index201.js +9 -42
  215. package/dist/index201.js.map +1 -1
  216. package/dist/index202.js +5 -4
  217. package/dist/index202.js.map +1 -1
  218. package/dist/index203.js +5 -605
  219. package/dist/index203.js.map +1 -1
  220. package/dist/index204.js +5 -2
  221. package/dist/index204.js.map +1 -1
  222. package/dist/index205.js +11 -67
  223. package/dist/index205.js.map +1 -1
  224. package/dist/index206.js +10 -84
  225. package/dist/index206.js.map +1 -1
  226. package/dist/index207.js +10 -46
  227. package/dist/index207.js.map +1 -1
  228. package/dist/index208.js +11 -7
  229. package/dist/index208.js.map +1 -1
  230. package/dist/index209.js +11 -4
  231. package/dist/index209.js.map +1 -1
  232. package/dist/index21.js +1 -1
  233. package/dist/index210.js +10 -51
  234. package/dist/index210.js.map +1 -1
  235. package/dist/index211.js +7 -3
  236. package/dist/index211.js.map +1 -1
  237. package/dist/index212.js +6 -64
  238. package/dist/index212.js.map +1 -1
  239. package/dist/index213.js +5 -48
  240. package/dist/index213.js.map +1 -1
  241. package/dist/index214.js +6 -39
  242. package/dist/index214.js.map +1 -1
  243. package/dist/index215.js +7 -100
  244. package/dist/index215.js.map +1 -1
  245. package/dist/index216.js +6 -97
  246. package/dist/index216.js.map +1 -1
  247. package/dist/index217.js +54 -98
  248. package/dist/index217.js.map +1 -1
  249. package/dist/index218.js +22 -23
  250. package/dist/index218.js.map +1 -1
  251. package/dist/index219.js +17 -29
  252. package/dist/index219.js.map +1 -1
  253. package/dist/index220.js +8 -5
  254. package/dist/index220.js.map +1 -1
  255. package/dist/index221.js +10 -58
  256. package/dist/index221.js.map +1 -1
  257. package/dist/index222.js +10 -8
  258. package/dist/index222.js.map +1 -1
  259. package/dist/index223.js +21 -66
  260. package/dist/index223.js.map +1 -1
  261. package/dist/index224.js +10 -19
  262. package/dist/index224.js.map +1 -1
  263. package/dist/index225.js +9 -16
  264. package/dist/index225.js.map +1 -1
  265. package/dist/index226.js +9 -5
  266. package/dist/index226.js.map +1 -1
  267. package/dist/index227.js +4 -5
  268. package/dist/index227.js.map +1 -1
  269. package/dist/index228.js +5 -6
  270. package/dist/index228.js.map +1 -1
  271. package/dist/index229.js +16 -4
  272. package/dist/index229.js.map +1 -1
  273. package/dist/index23.js +1 -1
  274. package/dist/index230.js +9 -7
  275. package/dist/index230.js.map +1 -1
  276. package/dist/index231.js +18 -17
  277. package/dist/index231.js.map +1 -1
  278. package/dist/index232.js +15 -5
  279. package/dist/index232.js.map +1 -1
  280. package/dist/index233.js +12 -5
  281. package/dist/index233.js.map +1 -1
  282. package/dist/index234.js +29 -13
  283. package/dist/index234.js.map +1 -1
  284. package/dist/index235.js +12 -10
  285. package/dist/index235.js.map +1 -1
  286. package/dist/index236.js +25 -14
  287. package/dist/index236.js.map +1 -1
  288. package/dist/index237.js +5 -14
  289. package/dist/index237.js.map +1 -1
  290. package/dist/index238.js +24 -5
  291. package/dist/index238.js.map +1 -1
  292. package/dist/index239.js +29 -7
  293. package/dist/index239.js.map +1 -1
  294. package/dist/index240.js +5 -8
  295. package/dist/index240.js.map +1 -1
  296. package/dist/index241.js +13 -6
  297. package/dist/index241.js.map +1 -1
  298. package/dist/index242.js +154 -9
  299. package/dist/index242.js.map +1 -1
  300. package/dist/index243.js +30 -5
  301. package/dist/index243.js.map +1 -1
  302. package/dist/index244.js +9 -5
  303. package/dist/index244.js.map +1 -1
  304. package/dist/index245.js +47 -9
  305. package/dist/index245.js.map +1 -1
  306. package/dist/index246.js +11 -5
  307. package/dist/index246.js.map +1 -1
  308. package/dist/index247.js +44 -5
  309. package/dist/index247.js.map +1 -1
  310. package/dist/index248.js +95 -4
  311. package/dist/index248.js.map +1 -1
  312. package/dist/index249.js +86 -11
  313. package/dist/index249.js.map +1 -1
  314. package/dist/index250.js +105 -10
  315. package/dist/index250.js.map +1 -1
  316. package/dist/index251.js +52 -10
  317. package/dist/index251.js.map +1 -1
  318. package/dist/index252.js +11 -11
  319. package/dist/index252.js.map +1 -1
  320. package/dist/index253.js +37 -11
  321. package/dist/index253.js.map +1 -1
  322. package/dist/index254.js +8 -10
  323. package/dist/index254.js.map +1 -1
  324. package/dist/index255.js +116 -7
  325. package/dist/index255.js.map +1 -1
  326. package/dist/index256.js +17 -6
  327. package/dist/index256.js.map +1 -1
  328. package/dist/index257.js +15 -5
  329. package/dist/index257.js.map +1 -1
  330. package/dist/index258.js +3 -6
  331. package/dist/index258.js.map +1 -1
  332. package/dist/index259.js +36 -7
  333. package/dist/index259.js.map +1 -1
  334. package/dist/index260.js +20 -6
  335. package/dist/index260.js.map +1 -1
  336. package/dist/index261.js +9 -55
  337. package/dist/index261.js.map +1 -1
  338. package/dist/index262.js +8 -29
  339. package/dist/index262.js.map +1 -1
  340. package/dist/index263.js +19 -23
  341. package/dist/index263.js.map +1 -1
  342. package/dist/index264.js +27 -11
  343. package/dist/index264.js.map +1 -1
  344. package/dist/index265.js +14 -23
  345. package/dist/index265.js.map +1 -1
  346. package/dist/index266.js +4 -5
  347. package/dist/index266.js.map +1 -1
  348. package/dist/index267.js +18 -16
  349. package/dist/index267.js.map +1 -1
  350. package/dist/index268.js +12 -7
  351. package/dist/index268.js.map +1 -1
  352. package/dist/index269.js +5 -11
  353. package/dist/index269.js.map +1 -1
  354. package/dist/index270.js +3 -11
  355. package/dist/index270.js.map +1 -1
  356. package/dist/index271.js +21 -19
  357. package/dist/index271.js.map +1 -1
  358. package/dist/index272.js +112 -10
  359. package/dist/index272.js.map +1 -1
  360. package/dist/index273.js +14 -8
  361. package/dist/index273.js.map +1 -1
  362. package/dist/index274.js +524 -9
  363. package/dist/index274.js.map +1 -1
  364. package/dist/index275.js +127 -4
  365. package/dist/index275.js.map +1 -1
  366. package/dist/index276.js +133 -5
  367. package/dist/index276.js.map +1 -1
  368. package/dist/index277.js +19 -15
  369. package/dist/index277.js.map +1 -1
  370. package/dist/index278.js +5 -9
  371. package/dist/index278.js.map +1 -1
  372. package/dist/index279.js +5 -18
  373. package/dist/index279.js.map +1 -1
  374. package/dist/index28.js +1 -1
  375. package/dist/index280.js +4 -16
  376. package/dist/index280.js.map +1 -1
  377. package/dist/index281.js +15 -12
  378. package/dist/index281.js.map +1 -1
  379. package/dist/index282.js +8 -13
  380. package/dist/index282.js.map +1 -1
  381. package/dist/index283.js +5 -154
  382. package/dist/index283.js.map +1 -1
  383. package/dist/index284.js +4 -30
  384. package/dist/index284.js.map +1 -1
  385. package/dist/index285.js +545 -9
  386. package/dist/index285.js.map +1 -1
  387. package/dist/index286.js +44 -45
  388. package/dist/index286.js.map +1 -1
  389. package/dist/index287.js +16 -10
  390. package/dist/index287.js.map +1 -1
  391. package/dist/index288.js +6 -44
  392. package/dist/index288.js.map +1 -1
  393. package/dist/index289.js +8 -95
  394. package/dist/index289.js.map +1 -1
  395. package/dist/index29.js +5 -5
  396. package/dist/index290.js +7 -86
  397. package/dist/index290.js.map +1 -1
  398. package/dist/index291.js +8 -105
  399. package/dist/index291.js.map +1 -1
  400. package/dist/index292.js +12 -52
  401. package/dist/index292.js.map +1 -1
  402. package/dist/index293.js +9 -11
  403. package/dist/index293.js.map +1 -1
  404. package/dist/index294.js +13 -37
  405. package/dist/index294.js.map +1 -1
  406. package/dist/index295.js +64 -8
  407. package/dist/index295.js.map +1 -1
  408. package/dist/index296.js +62 -110
  409. package/dist/index296.js.map +1 -1
  410. package/dist/index297.js +9 -18
  411. package/dist/index297.js.map +1 -1
  412. package/dist/index298.js +13 -15
  413. package/dist/index298.js.map +1 -1
  414. package/dist/index299.js +66 -4
  415. package/dist/index299.js.map +1 -1
  416. package/dist/index30.js +231 -47
  417. package/dist/index30.js.map +1 -1
  418. package/dist/index300.js +4 -36
  419. package/dist/index300.js.map +1 -1
  420. package/dist/index301.js +55 -20
  421. package/dist/index301.js.map +1 -1
  422. package/dist/index302.js +68 -10
  423. package/dist/index302.js.map +1 -1
  424. package/dist/index303.js +30 -8
  425. package/dist/index303.js.map +1 -1
  426. package/dist/index304.js +9 -20
  427. package/dist/index304.js.map +1 -1
  428. package/dist/index305.js +152 -28
  429. package/dist/index305.js.map +1 -1
  430. package/dist/index306.js +107 -16
  431. package/dist/index306.js.map +1 -1
  432. package/dist/index307.js +3 -67
  433. package/dist/index307.js.map +1 -1
  434. package/dist/index308.js +20 -178
  435. package/dist/index308.js.map +1 -1
  436. package/dist/index309.js +14 -45
  437. package/dist/index309.js.map +1 -1
  438. package/dist/index31.js +49 -218
  439. package/dist/index31.js.map +1 -1
  440. package/dist/index310.js +29 -2
  441. package/dist/index310.js.map +1 -1
  442. package/dist/index311.js +13 -2
  443. package/dist/index311.js.map +1 -1
  444. package/dist/index312.js +7 -5
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +23 -3
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +13 -24
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +26 -111
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +4 -15
  453. package/dist/index316.js.map +1 -1
  454. package/dist/index32.js +2633 -36
  455. package/dist/index32.js.map +1 -1
  456. package/dist/index33.js +388 -35
  457. package/dist/index33.js.map +1 -1
  458. package/dist/index34.js +230 -26
  459. package/dist/index34.js.map +1 -1
  460. package/dist/index35.js +20 -44
  461. package/dist/index35.js.map +1 -1
  462. package/dist/index36.js +137 -27
  463. package/dist/index36.js.map +1 -1
  464. package/dist/index37.js +181 -22
  465. package/dist/index37.js.map +1 -1
  466. package/dist/index38.js +77 -23
  467. package/dist/index38.js.map +1 -1
  468. package/dist/index39.js +89 -127
  469. package/dist/index39.js.map +1 -1
  470. package/dist/index40.js +5 -231
  471. package/dist/index40.js.map +1 -1
  472. package/dist/index41.js +844 -51
  473. package/dist/index41.js.map +1 -1
  474. package/dist/index42.js +61 -2636
  475. package/dist/index42.js.map +1 -1
  476. package/dist/index43.js +7 -393
  477. package/dist/index43.js.map +1 -1
  478. package/dist/index44.js +2 -233
  479. package/dist/index44.js.map +1 -1
  480. package/dist/index45.js +22 -20
  481. package/dist/index45.js.map +1 -1
  482. package/dist/index46.js +232 -140
  483. package/dist/index46.js.map +1 -1
  484. package/dist/index47.js +198 -180
  485. package/dist/index47.js.map +1 -1
  486. package/dist/index48.js +2 -77
  487. package/dist/index48.js.map +1 -1
  488. package/dist/index49.js +2 -91
  489. package/dist/index49.js.map +1 -1
  490. package/dist/index50.js +6 -5
  491. package/dist/index50.js.map +1 -1
  492. package/dist/index51.js +33 -843
  493. package/dist/index51.js.map +1 -1
  494. package/dist/index52.js +26 -65
  495. package/dist/index52.js.map +1 -1
  496. package/dist/index53.js +7 -7
  497. package/dist/index53.js.map +1 -1
  498. package/dist/index54.js +12 -2
  499. package/dist/index54.js.map +1 -1
  500. package/dist/index55.js +3 -23
  501. package/dist/index55.js.map +1 -1
  502. package/dist/index56.js +46 -232
  503. package/dist/index56.js.map +1 -1
  504. package/dist/index57.js +50 -3
  505. package/dist/index57.js.map +1 -1
  506. package/dist/index58.js +7 -6
  507. package/dist/index58.js.map +1 -1
  508. package/dist/index59.js +14 -47
  509. package/dist/index59.js.map +1 -1
  510. package/dist/index60.js +129 -22
  511. package/dist/index60.js.map +1 -1
  512. package/dist/index61.js +10 -50
  513. package/dist/index61.js.map +1 -1
  514. package/dist/index62.js +216 -7
  515. package/dist/index62.js.map +1 -1
  516. package/dist/index63.js +13 -15
  517. package/dist/index63.js.map +1 -1
  518. package/dist/index64.js +41 -128
  519. package/dist/index64.js.map +1 -1
  520. package/dist/index65.js +48 -9
  521. package/dist/index65.js.map +1 -1
  522. package/dist/index66.js +3 -216
  523. package/dist/index66.js.map +1 -1
  524. package/dist/index67.js +6 -13
  525. package/dist/index67.js.map +1 -1
  526. package/dist/index68.js +28 -34
  527. package/dist/index68.js.map +1 -1
  528. package/dist/index69.js +49 -46
  529. package/dist/index69.js.map +1 -1
  530. package/dist/index70.js +9 -8
  531. package/dist/index70.js.map +1 -1
  532. package/dist/index71.js +51 -47
  533. package/dist/index71.js.map +1 -1
  534. package/dist/index72.js +6 -4
  535. package/dist/index72.js.map +1 -1
  536. package/dist/index73.js +6 -4
  537. package/dist/index73.js.map +1 -1
  538. package/dist/index74.js +6 -28
  539. package/dist/index74.js.map +1 -1
  540. package/dist/index75.js +604 -48
  541. package/dist/index75.js.map +1 -1
  542. package/dist/index76.js +52 -9
  543. package/dist/index76.js.map +1 -1
  544. package/dist/index77.js +4 -11
  545. package/dist/index77.js.map +1 -1
  546. package/dist/index78.js +5 -205
  547. package/dist/index78.js.map +1 -1
  548. package/dist/index79.js +15 -5
  549. package/dist/index79.js.map +1 -1
  550. package/dist/index80.js +5 -7
  551. package/dist/index80.js.map +1 -1
  552. package/dist/index81.js +7 -5
  553. package/dist/index81.js.map +1 -1
  554. package/dist/index82.js +17 -2
  555. package/dist/index82.js.map +1 -1
  556. package/dist/index83.js +5 -2
  557. package/dist/index83.js.map +1 -1
  558. package/dist/index84.js +4 -53
  559. package/dist/index84.js.map +1 -1
  560. package/dist/index85.js +5 -3
  561. package/dist/index85.js.map +1 -1
  562. package/dist/index86.js +5 -33
  563. package/dist/index86.js.map +1 -1
  564. package/dist/index87.js +4 -249
  565. package/dist/index87.js.map +1 -1
  566. package/dist/index88.js +4 -114
  567. package/dist/index88.js.map +1 -1
  568. package/dist/index89.js +6 -219
  569. package/dist/index89.js.map +1 -1
  570. package/dist/index90.js +24 -66
  571. package/dist/index90.js.map +1 -1
  572. package/dist/index91.js +6 -20
  573. package/dist/index91.js.map +1 -1
  574. package/dist/index92.js +4 -209
  575. package/dist/index92.js.map +1 -1
  576. package/dist/index93.js +6 -319
  577. package/dist/index93.js.map +1 -1
  578. package/dist/index94.js +5 -130
  579. package/dist/index94.js.map +1 -1
  580. package/dist/index95.js +4 -20
  581. package/dist/index95.js.map +1 -1
  582. package/dist/index96.js +5 -75
  583. package/dist/index96.js.map +1 -1
  584. package/dist/index97.js +4 -18
  585. package/dist/index97.js.map +1 -1
  586. package/dist/index98.js +8 -101
  587. package/dist/index98.js.map +1 -1
  588. package/dist/index99.js +6 -5
  589. package/dist/index99.js.map +1 -1
  590. package/package.json +1 -1
  591. package/dist/index317.js +0 -528
  592. package/dist/index317.js.map +0 -1
  593. package/dist/index318.js +0 -131
  594. package/dist/index318.js.map +0 -1
  595. package/dist/index319.js +0 -137
  596. package/dist/index319.js.map +0 -1
  597. package/dist/index320.js +0 -8
  598. package/dist/index320.js.map +0 -1
  599. package/dist/index321.js +0 -22
  600. package/dist/index321.js.map +0 -1
  601. package/dist/index322.js +0 -16
  602. package/dist/index322.js.map +0 -1
  603. package/dist/index323.js +0 -24
  604. package/dist/index323.js.map +0 -1
  605. package/dist/index324.js +0 -72
  606. package/dist/index324.js.map +0 -1
  607. package/dist/index325.js +0 -12
  608. package/dist/index325.js.map +0 -1
  609. package/dist/index326.js +0 -17
  610. package/dist/index326.js.map +0 -1
  611. package/dist/index327.js +0 -69
  612. package/dist/index327.js.map +0 -1
  613. package/dist/index328.js +0 -68
  614. package/dist/index328.js.map +0 -1
  615. package/dist/index329.js +0 -9
  616. package/dist/index329.js.map +0 -1
  617. package/dist/index330.js +0 -9
  618. package/dist/index330.js.map +0 -1
  619. package/dist/index331.js +0 -7
  620. package/dist/index331.js.map +0 -1
  621. package/dist/index332.js +0 -19
  622. package/dist/index332.js.map +0 -1
  623. package/dist/index333.js +0 -12
  624. package/dist/index333.js.map +0 -1
  625. package/dist/index334.js +0 -9
  626. package/dist/index334.js.map +0 -1
  627. package/dist/index335.js +0 -8
  628. package/dist/index335.js.map +0 -1
  629. package/dist/index336.js +0 -549
  630. package/dist/index336.js.map +0 -1
  631. package/dist/index337.js +0 -50
  632. package/dist/index337.js.map +0 -1
  633. package/dist/index338.js +0 -21
  634. package/dist/index338.js.map +0 -1
  635. package/dist/index339.js +0 -10
  636. package/dist/index339.js.map +0 -1
  637. package/dist/index340.js +0 -12
  638. package/dist/index340.js.map +0 -1
  639. package/dist/index341.js +0 -11
  640. package/dist/index341.js.map +0 -1
  641. package/dist/index342.js +0 -12
  642. package/dist/index342.js.map +0 -1
  643. package/dist/index343.js +0 -16
  644. package/dist/index343.js.map +0 -1
  645. package/dist/index344.js +0 -13
  646. package/dist/index344.js.map +0 -1
  647. package/dist/index345.js +0 -17
  648. package/dist/index345.js.map +0 -1
  649. package/dist/index346.js +0 -7
  650. package/dist/index346.js.map +0 -1
  651. package/dist/index347.js +0 -26
  652. package/dist/index347.js.map +0 -1
  653. package/dist/index348.js +0 -8
  654. package/dist/index348.js.map +0 -1
  655. package/dist/index349.js +0 -59
  656. package/dist/index349.js.map +0 -1
  657. package/dist/index350.js +0 -71
  658. package/dist/index350.js.map +0 -1
  659. package/dist/index351.js +0 -34
  660. package/dist/index351.js.map +0 -1
  661. package/dist/index352.js +0 -12
  662. package/dist/index352.js.map +0 -1
  663. package/dist/index353.js +0 -156
  664. package/dist/index353.js.map +0 -1
  665. package/dist/index354.js +0 -111
  666. package/dist/index354.js.map +0 -1
  667. package/dist/index355.js +0 -26
  668. package/dist/index355.js.map +0 -1
  669. package/dist/index356.js +0 -16
  670. package/dist/index356.js.map +0 -1
  671. package/dist/index357.js +0 -31
  672. package/dist/index357.js.map +0 -1
  673. package/dist/index358.js +0 -8
  674. package/dist/index358.js.map +0 -1
  675. package/dist/index359.js +0 -19
  676. package/dist/index359.js.map +0 -1
  677. package/dist/index360.js +0 -32
  678. package/dist/index360.js.map +0 -1
  679. package/dist/index361.js +0 -16
  680. package/dist/index361.js.map +0 -1
  681. package/dist/index362.js +0 -10
  682. package/dist/index362.js.map +0 -1
package/dist/index113.js CHANGED
@@ -1,8 +1,12 @@
1
- import t from "react";
2
- function n(e) {
3
- return t.createElement("span", { ...e });
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;
4
8
  }
5
9
  export {
6
- n as CaptionLabel
10
+ y as getWeekdays
7
11
  };
8
12
  //# sourceMappingURL=index113.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index113.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/CaptionLabel.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the label in the month caption.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function CaptionLabel(props) {\n return React.createElement(\"span\", { ...props });\n}\n"],"names":["CaptionLabel","props","React"],"mappings":";AAOO,SAASA,EAAaC,GAAO;AAChC,SAAOC,EAAM,cAAc,QAAQ,EAAE,GAAGD,EAAK,CAAE;AACnD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index113.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]}
package/dist/index114.js CHANGED
@@ -1,19 +1,17 @@
1
- import e from "react";
2
- function r(n) {
3
- const { size: o = 24, orientation: t = "left", className: l } = n;
4
- return (
5
- // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
6
- e.createElement(
7
- "svg",
8
- { className: l, width: o, height: o, viewBox: "0 0 24 24" },
9
- t === "up" && e.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
10
- t === "down" && e.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
11
- t === "left" && e.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
12
- t === "right" && e.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
13
- )
14
- );
1
+ function p(e, r, s, t, f = !1) {
2
+ if (!e || !r)
3
+ return;
4
+ const { startOfYear: o, endOfYear: i, eachYearOfInterval: l, getYear: u } = t, Y = o(e), c = i(r), a = l({ start: Y, end: c });
5
+ return f && a.reverse(), a.map((n) => {
6
+ const d = s.formatYearDropdown(n, t);
7
+ return {
8
+ value: u(n),
9
+ label: d,
10
+ disabled: !1
11
+ };
12
+ });
15
13
  }
16
14
  export {
17
- r as Chevron
15
+ p as getYearOptions
18
16
  };
19
17
  //# sourceMappingURL=index114.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index114.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Chevron.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the chevron icon used in the navigation buttons and dropdowns.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Chevron(props) {\n const { size = 24, orientation = \"left\", className } = props;\n return (\n // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component\n React.createElement(\"svg\", { className: className, width: size, height: size, viewBox: \"0 0 24 24\" },\n orientation === \"up\" && (React.createElement(\"polygon\", { points: \"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28\" })),\n orientation === \"down\" && (React.createElement(\"polygon\", { points: \"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72\" })),\n orientation === \"left\" && (React.createElement(\"polygon\", { points: \"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20\" })),\n orientation === \"right\" && (React.createElement(\"polygon\", { points: \"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20\" }))));\n}\n"],"names":["Chevron","props","size","orientation","className","React"],"mappings":";AAOO,SAASA,EAAQC,GAAO;AAC3B,QAAM,EAAE,MAAAC,IAAO,IAAI,aAAAC,IAAc,QAAQ,WAAAC,EAAS,IAAKH;AACvD;AAAA;AAAA,IAEAI,EAAM;AAAA,MAAc;AAAA,MAAO,EAAE,WAAWD,GAAW,OAAOF,GAAM,QAAQA,GAAM,SAAS,YAAW;AAAA,MAC9FC,MAAgB,QAASE,EAAM,cAAc,WAAW,EAAE,QAAQ,sDAAqD,CAAE;AAAA,MACzHF,MAAgB,UAAWE,EAAM,cAAc,WAAW,EAAE,QAAQ,mDAAkD,CAAE;AAAA,MACxHF,MAAgB,UAAWE,EAAM,cAAc,WAAW,EAAE,QAAQ,wEAAuE,CAAE;AAAA,MAC7IF,MAAgB,WAAYE,EAAM,cAAc,WAAW,EAAE,QAAQ,wEAAuE,CAAE;AAAA,IAAE;AAAA;AACxJ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index114.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\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 year labels.\n * @param dateLib The date library to use for date manipulation.\n * @param reverse If true, reverses the order of the years (descending).\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, eachYearOfInterval, getYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = eachYearOfInterval({ start: firstNavYear, end: lastNavYear });\n if (reverse)\n years.reverse();\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false,\n };\n });\n}\n"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","reverse","startOfYear","endOfYear","eachYearOfInterval","getYear","firstNavYear","lastNavYear","years","year","label"],"mappings":"AAcO,SAASA,EAAeC,GAAUC,GAAQC,GAAYC,GAASC,IAAU,IAAO;AAGnF,MAFI,CAACJ,KAED,CAACC;AACD;AACJ,QAAM,EAAE,aAAAI,GAAa,WAAAC,GAAW,oBAAAC,GAAoB,SAAAC,EAAO,IAAKL,GAC1DM,IAAeJ,EAAYL,CAAQ,GACnCU,IAAcJ,EAAUL,CAAM,GAC9BU,IAAQJ,EAAmB,EAAE,OAAOE,GAAc,KAAKC,GAAa;AAC1E,SAAIN,KACAO,EAAM,QAAO,GACVA,EAAM,IAAI,CAACC,MAAS;AACvB,UAAMC,IAAQX,EAAW,mBAAmBU,GAAMT,CAAO;AACzD,WAAO;AAAA,MACH,OAAOK,EAAQI,CAAI;AAAA,MACnB,OAAAC;AAAA,MACA,UAAU;AAAA,IACtB;AAAA,EACI,CAAC;AACL;","x_google_ignoreList":[0]}
package/dist/index115.js CHANGED
@@ -1,9 +1,105 @@
1
- import r from "react";
2
- function n(t) {
3
- const { day: o, modifiers: a, ...e } = t;
4
- return r.createElement("td", { ...e });
1
+ import { TZDate as c } from "./index177.js";
2
+ import "./index179.js";
3
+ import { differenceInCalendarMonths as h } from "./index191.js";
4
+ import { differenceInCalendarDays as O } from "./index190.js";
5
+ import { getISOWeek as k } from "./index198.js";
6
+ import { getWeek as w } from "./index201.js";
7
+ function W(o, D = {}) {
8
+ const { weekStartsOn: d, locale: g } = D, l = d ?? g?.options?.weekStartsOn ?? 0, r = (t) => {
9
+ const e = typeof t == "number" || typeof t == "string" ? new Date(t) : t;
10
+ return new c(e.getFullYear(), e.getMonth(), e.getDate(), 12, 0, 0, o);
11
+ }, u = (t) => {
12
+ const e = r(t);
13
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate(), 0, 0, 0, 0);
14
+ };
15
+ return {
16
+ today: () => r(c.tz(o)),
17
+ newDate: (t, e, n) => new c(t, e, n, 12, 0, 0, o),
18
+ startOfDay: (t) => r(t),
19
+ startOfWeek: (t, e) => {
20
+ const n = r(t), a = e?.weekStartsOn ?? l, s = (n.getDay() - a + 7) % 7;
21
+ return n.setDate(n.getDate() - s), n;
22
+ },
23
+ startOfISOWeek: (t) => {
24
+ const e = r(t), n = (e.getDay() - 1 + 7) % 7;
25
+ return e.setDate(e.getDate() - n), e;
26
+ },
27
+ startOfMonth: (t) => {
28
+ const e = r(t);
29
+ return e.setDate(1), e;
30
+ },
31
+ startOfYear: (t) => {
32
+ const e = r(t);
33
+ return e.setMonth(0, 1), e;
34
+ },
35
+ endOfWeek: (t, e) => {
36
+ const n = r(t), f = (((e?.weekStartsOn ?? l) + 6) % 7 - n.getDay() + 7) % 7;
37
+ return n.setDate(n.getDate() + f), n;
38
+ },
39
+ endOfISOWeek: (t) => {
40
+ const e = r(t), n = (7 - e.getDay()) % 7;
41
+ return e.setDate(e.getDate() + n), e;
42
+ },
43
+ endOfMonth: (t) => {
44
+ const e = r(t);
45
+ return e.setMonth(e.getMonth() + 1, 0), e;
46
+ },
47
+ endOfYear: (t) => {
48
+ const e = r(t);
49
+ return e.setMonth(11, 31), e;
50
+ },
51
+ eachMonthOfInterval: (t) => {
52
+ const e = r(t.start), n = r(t.end), a = [], s = new c(e.getFullYear(), e.getMonth(), 1, 12, 0, 0, o), f = n.getFullYear() * 12 + n.getMonth();
53
+ for (; s.getFullYear() * 12 + s.getMonth() <= f; )
54
+ a.push(new c(s, o)), s.setMonth(s.getMonth() + 1, 1);
55
+ return a;
56
+ },
57
+ // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
58
+ // mutate the same TZDate, and return it.
59
+ addDays: (t, e) => {
60
+ const n = r(t);
61
+ return n.setDate(n.getDate() + e), n;
62
+ },
63
+ addWeeks: (t, e) => {
64
+ const n = r(t);
65
+ return n.setDate(n.getDate() + e * 7), n;
66
+ },
67
+ addMonths: (t, e) => {
68
+ const n = r(t);
69
+ return n.setMonth(n.getMonth() + e), n;
70
+ },
71
+ addYears: (t, e) => {
72
+ const n = r(t);
73
+ return n.setFullYear(n.getFullYear() + e), n;
74
+ },
75
+ eachYearOfInterval: (t) => {
76
+ const e = r(t.start), n = r(t.end), a = [], s = new c(e.getFullYear(), 0, 1, 12, 0, 0, o);
77
+ for (; s.getFullYear() <= n.getFullYear(); )
78
+ a.push(new c(s, o)), s.setFullYear(s.getFullYear() + 1, 0, 1);
79
+ return a;
80
+ },
81
+ getWeek: (t, e) => {
82
+ const n = u(t);
83
+ return w(n, {
84
+ weekStartsOn: e?.weekStartsOn ?? l,
85
+ firstWeekContainsDate: e?.firstWeekContainsDate ?? g?.options?.firstWeekContainsDate ?? 1
86
+ });
87
+ },
88
+ getISOWeek: (t) => {
89
+ const e = u(t);
90
+ return k(e);
91
+ },
92
+ differenceInCalendarDays: (t, e) => {
93
+ const n = u(t), a = u(e);
94
+ return O(n, a);
95
+ },
96
+ differenceInCalendarMonths: (t, e) => {
97
+ const n = u(t), a = u(e);
98
+ return h(n, a);
99
+ }
100
+ };
5
101
  }
6
102
  export {
7
- n as Day
103
+ W as createNoonOverrides
8
104
  };
9
105
  //# sourceMappingURL=index115.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index115.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Day.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render a grid cell for a specific day in the calendar.\n *\n * Handles interaction and focus for the day. If you only need to change the\n * content of the day cell, consider swapping the `DayButton` component\n * instead.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Day(props) {\n const { day, modifiers, ...tdProps } = props;\n return React.createElement(\"td\", { ...tdProps });\n}\n"],"names":["Day","props","day","modifiers","tdProps","React"],"mappings":";AAWO,SAASA,EAAIC,GAAO;AACvB,QAAM,EAAE,KAAAC,GAAK,WAAAC,GAAW,GAAGC,EAAO,IAAKH;AACvC,SAAOI,EAAM,cAAc,MAAM,EAAE,GAAGD,EAAO,CAAE;AACnD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index115.js","sources":["../../../node_modules/react-day-picker/dist/esm/noonDateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { differenceInCalendarDays as differenceInCalendarDaysFn, differenceInCalendarMonths as differenceInCalendarMonthsFn, getISOWeek as getISOWeekFn, getWeek as getWeekFn, } from \"date-fns\";\n/**\n * Creates `dateLib` overrides that keep all calendar math at noon in the target\n * time zone. This avoids second-level offset changes (e.g., historical zones\n * with +03:41:12) from pushing dates backward across midnight.\n */\nexport function createNoonOverrides(timeZone, options = {}) {\n const { weekStartsOn, locale } = options;\n const fallbackWeekStartsOn = (weekStartsOn ??\n locale?.options?.weekStartsOn ??\n 0);\n // Keep all internal math anchored at noon in the target zone to avoid\n // historical second-level offsets from crossing midnight.\n const toNoonTZDate = (date) => {\n const normalizedDate = typeof date === \"number\" || typeof date === \"string\"\n ? new Date(date)\n : date;\n return new TZDate(normalizedDate.getFullYear(), normalizedDate.getMonth(), normalizedDate.getDate(), 12, 0, 0, timeZone);\n };\n // Convert a value into a host `Date` that represents the same calendar day\n // as the target-zone noon. This is useful for helpers (e.g., date-fns week\n // utilities) that expect local `Date` instances rather than `TZDate`s.\n const toCalendarDate = (date) => {\n const zoned = toNoonTZDate(date);\n return new Date(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 0, 0, 0, 0);\n };\n return {\n today: () => {\n return toNoonTZDate(TZDate.tz(timeZone));\n },\n newDate: (year, monthIndex, date) => {\n return new TZDate(year, monthIndex, date, 12, 0, 0, timeZone);\n },\n startOfDay: (date) => {\n return toNoonTZDate(date);\n },\n startOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const diff = (base.getDay() - weekStartsOnValue + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (base.getDay() - 1 + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setDate(1);\n return base;\n },\n startOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(0, 1);\n return base;\n },\n endOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const endDow = (weekStartsOnValue + 6) % 7;\n const diff = (endDow - base.getDay() + 7) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (7 - base.getDay()) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + 1, 0);\n return base;\n },\n endOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(11, 31);\n return base;\n },\n eachMonthOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const result = [];\n const cursor = new TZDate(start.getFullYear(), start.getMonth(), 1, 12, 0, 0, timeZone);\n const endKey = end.getFullYear() * 12 + end.getMonth();\n while (cursor.getFullYear() * 12 + cursor.getMonth() <= endKey) {\n result.push(new TZDate(cursor, timeZone));\n cursor.setMonth(cursor.getMonth() + 1, 1);\n }\n return result;\n },\n // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),\n // mutate the same TZDate, and return it.\n addDays: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount);\n return base;\n },\n addWeeks: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount * 7);\n return base;\n },\n addMonths: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + amount);\n return base;\n },\n addYears: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setFullYear(base.getFullYear() + amount);\n return base;\n },\n eachYearOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const years = [];\n const cursor = new TZDate(start.getFullYear(), 0, 1, 12, 0, 0, timeZone);\n while (cursor.getFullYear() <= end.getFullYear()) {\n years.push(new TZDate(cursor, timeZone));\n cursor.setFullYear(cursor.getFullYear() + 1, 0, 1);\n }\n return years;\n },\n getWeek: (date, options) => {\n const base = toCalendarDate(date);\n return getWeekFn(base, {\n weekStartsOn: options?.weekStartsOn ?? fallbackWeekStartsOn,\n firstWeekContainsDate: options?.firstWeekContainsDate ??\n locale?.options?.firstWeekContainsDate ??\n 1,\n });\n },\n getISOWeek: (date) => {\n const base = toCalendarDate(date);\n return getISOWeekFn(base);\n },\n differenceInCalendarDays: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarDaysFn(left, right);\n },\n differenceInCalendarMonths: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarMonthsFn(left, right);\n },\n };\n}\n"],"names":["createNoonOverrides","timeZone","options","weekStartsOn","locale","fallbackWeekStartsOn","toNoonTZDate","date","normalizedDate","TZDate","toCalendarDate","zoned","year","monthIndex","base","weekStartsOnValue","diff","interval","start","end","result","cursor","endKey","amount","years","getWeekFn","getISOWeekFn","dateLeft","dateRight","left","right","differenceInCalendarDaysFn","differenceInCalendarMonthsFn"],"mappings":";;;;;;AAOO,SAASA,EAAoBC,GAAUC,IAAU,IAAI;AACxD,QAAM,EAAE,cAAAC,GAAc,QAAAC,EAAM,IAAKF,GAC3BG,IAAwBF,KAC1BC,GAAQ,SAAS,gBACjB,GAGEE,IAAe,CAACC,MAAS;AAC3B,UAAMC,IAAiB,OAAOD,KAAS,YAAY,OAAOA,KAAS,WAC7D,IAAI,KAAKA,CAAI,IACbA;AACN,WAAO,IAAIE,EAAOD,EAAe,YAAW,GAAIA,EAAe,SAAQ,GAAIA,EAAe,QAAO,GAAI,IAAI,GAAG,GAAGP,CAAQ;AAAA,EAC3H,GAIMS,IAAiB,CAACH,MAAS;AAC7B,UAAMI,IAAQL,EAAaC,CAAI;AAC/B,WAAO,IAAI,KAAKI,EAAM,YAAW,GAAIA,EAAM,SAAQ,GAAIA,EAAM,QAAO,GAAI,GAAG,GAAG,GAAG,CAAC;AAAA,EACtF;AACA,SAAO;AAAA,IACH,OAAO,MACIL,EAAaG,EAAO,GAAGR,CAAQ,CAAC;AAAA,IAE3C,SAAS,CAACW,GAAMC,GAAYN,MACjB,IAAIE,EAAOG,GAAMC,GAAYN,GAAM,IAAI,GAAG,GAAGN,CAAQ;AAAA,IAEhE,YAAY,CAACM,MACFD,EAAaC,CAAI;AAAA,IAE5B,aAAa,CAACA,GAAML,MAAY;AAC5B,YAAMY,IAAOR,EAAaC,CAAI,GACxBQ,IAAqBb,GAAS,gBAChCG,GACEW,KAAQF,EAAK,OAAM,IAAKC,IAAoB,KAAK;AACvD,aAAAD,EAAK,QAAQA,EAAK,QAAO,IAAKE,CAAI,GAC3BF;AAAA,IAC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AYA,EAAO,YAAW,IAAK,GAAG,GAAG,CAAC;AAErD,aAAOG;AAAA,IACX;AAAA,IACA,SAAS,CAACjB,GAAML,MAAY;AACxB,YAAMY,IAAOJ,EAAeH,CAAI;AAChC,aAAOkB,EAAUX,GAAM;AAAA,QACnB,cAAcZ,GAAS,gBAAgBG;AAAA,QACvC,uBAAuBH,GAAS,yBAC5BE,GAAQ,SAAS,yBACjB;AAAA,MACpB,CAAa;AAAA,IACL;AAAA,IACA,YAAY,CAACG,MAAS;AAClB,YAAMO,IAAOJ,EAAeH,CAAI;AAChC,aAAOmB,EAAaZ,CAAI;AAAA,IAC5B;AAAA,IACA,0BAA0B,CAACa,GAAUC,MAAc;AAC/C,YAAMC,IAAOnB,EAAeiB,CAAQ,GAC9BG,IAAQpB,EAAekB,CAAS;AACtC,aAAOG,EAA2BF,GAAMC,CAAK;AAAA,IACjD;AAAA,IACA,4BAA4B,CAACH,GAAUC,MAAc;AACjD,YAAMC,IAAOnB,EAAeiB,CAAQ,GAC9BG,IAAQpB,EAAekB,CAAS;AACtC,aAAOI,EAA6BH,GAAMC,CAAK;AAAA,IACnD;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
package/dist/index116.js CHANGED
@@ -1,11 +1,23 @@
1
- import e from "react";
2
- function c(f) {
3
- const { day: r, modifiers: t, ...u } = f, o = e.useRef(null);
4
- return e.useEffect(() => {
5
- t.focused && o.current?.focus();
6
- }, [t.focused]), e.createElement("button", { ref: o, ...u });
7
- }
1
+ var o;
2
+ (function(e) {
3
+ e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
4
+ })(o || (o = {}));
5
+ var t;
6
+ (function(e) {
7
+ e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
8
+ })(t || (t = {}));
9
+ var r;
10
+ (function(e) {
11
+ e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
12
+ })(r || (r = {}));
13
+ var n;
14
+ (function(e) {
15
+ e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
16
+ })(n || (n = {}));
8
17
  export {
9
- c as DayButton
18
+ n as Animation,
19
+ t as DayFlag,
20
+ r as SelectionState,
21
+ o as UI
10
22
  };
11
23
  //# sourceMappingURL=index116.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index116.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/DayButton.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render a button for a specific day in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function DayButton(props) {\n const { day, modifiers, ...buttonProps } = props;\n const ref = React.useRef(null);\n React.useEffect(() => {\n if (modifiers.focused)\n ref.current?.focus();\n }, [modifiers.focused]);\n return React.createElement(\"button\", { ref: ref, ...buttonProps });\n}\n"],"names":["DayButton","props","day","modifiers","buttonProps","ref","React"],"mappings":";AAOO,SAASA,EAAUC,GAAO;AAC7B,QAAM,EAAE,KAAAC,GAAK,WAAAC,GAAW,GAAGC,EAAW,IAAKH,GACrCI,IAAMC,EAAM,OAAO,IAAI;AAC7BA,SAAAA,EAAM,UAAU,MAAM;AAClB,IAAIH,EAAU,WACVE,EAAI,SAAS,MAAK;AAAA,EAC1B,GAAG,CAACF,EAAU,OAAO,CAAC,GACfG,EAAM,cAAc,UAAU,EAAE,KAAKD,GAAK,GAAGD,GAAa;AACrE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index116.js","sources":["../../../node_modules/react-day-picker/dist/esm/UI.js"],"sourcesContent":["/**\n * Enum representing the UI elements composing DayPicker. These elements are\n * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.\n *\n * Some elements are extended by flags and modifiers.\n */\nexport var UI;\n(function (UI) {\n /** The root component displaying the months and the navigation bar. */\n UI[\"Root\"] = \"root\";\n /** The Chevron SVG element used by navigation buttons and dropdowns. */\n UI[\"Chevron\"] = \"chevron\";\n /**\n * The grid cell with the day's date. Extended by {@link DayFlag} and\n * {@link SelectionState}.\n */\n UI[\"Day\"] = \"day\";\n /** The button containing the formatted day's date, inside the grid cell. */\n UI[\"DayButton\"] = \"day_button\";\n /** The caption label of the month (when not showing the dropdown navigation). */\n UI[\"CaptionLabel\"] = \"caption_label\";\n /** The container of the dropdown navigation (when enabled). */\n UI[\"Dropdowns\"] = \"dropdowns\";\n /** The dropdown element to select for years and months. */\n UI[\"Dropdown\"] = \"dropdown\";\n /** The container element of the dropdown. */\n UI[\"DropdownRoot\"] = \"dropdown_root\";\n /** The root element of the footer. */\n UI[\"Footer\"] = \"footer\";\n /** The month grid. */\n UI[\"MonthGrid\"] = \"month_grid\";\n /** Contains the dropdown navigation or the caption label. */\n UI[\"MonthCaption\"] = \"month_caption\";\n /** The dropdown with the months. */\n UI[\"MonthsDropdown\"] = \"months_dropdown\";\n /** Wrapper of the month grid. */\n UI[\"Month\"] = \"month\";\n /** The container of the displayed months. */\n UI[\"Months\"] = \"months\";\n /** The navigation bar with the previous and next buttons. */\n UI[\"Nav\"] = \"nav\";\n /**\n * The next month button in the navigation. *\n *\n * @since 9.1.0\n */\n UI[\"NextMonthButton\"] = \"button_next\";\n /**\n * The previous month button in the navigation.\n *\n * @since 9.1.0\n */\n UI[\"PreviousMonthButton\"] = \"button_previous\";\n /** The row containing the week. */\n UI[\"Week\"] = \"week\";\n /** The group of row weeks in a month (`tbody`). */\n UI[\"Weeks\"] = \"weeks\";\n /** The column header with the weekday. */\n UI[\"Weekday\"] = \"weekday\";\n /** The row grouping the weekdays in the column headers. */\n UI[\"Weekdays\"] = \"weekdays\";\n /** The cell containing the week number. */\n UI[\"WeekNumber\"] = \"week_number\";\n /** The cell header of the week numbers column. */\n UI[\"WeekNumberHeader\"] = \"week_number_header\";\n /** The dropdown with the years. */\n UI[\"YearsDropdown\"] = \"years_dropdown\";\n})(UI || (UI = {}));\n/** Enum representing flags for the {@link UI.Day} element. */\nexport var DayFlag;\n(function (DayFlag) {\n /** The day is disabled. */\n DayFlag[\"disabled\"] = \"disabled\";\n /** The day is hidden. */\n DayFlag[\"hidden\"] = \"hidden\";\n /** The day is outside the current month. */\n DayFlag[\"outside\"] = \"outside\";\n /** The day is focused. */\n DayFlag[\"focused\"] = \"focused\";\n /** The day is today. */\n DayFlag[\"today\"] = \"today\";\n})(DayFlag || (DayFlag = {}));\n/**\n * Enum representing selection states that can be applied to the {@link UI.Day}\n * element in selection mode.\n */\nexport var SelectionState;\n(function (SelectionState) {\n /** The day is at the end of a selected range. */\n SelectionState[\"range_end\"] = \"range_end\";\n /** The day is at the middle of a selected range. */\n SelectionState[\"range_middle\"] = \"range_middle\";\n /** The day is at the start of a selected range. */\n SelectionState[\"range_start\"] = \"range_start\";\n /** The day is selected. */\n SelectionState[\"selected\"] = \"selected\";\n})(SelectionState || (SelectionState = {}));\n/**\n * Enum representing different animation states for transitioning between\n * months.\n */\nexport var Animation;\n(function (Animation) {\n /** The entering weeks when they appear before the exiting month. */\n Animation[\"weeks_before_enter\"] = \"weeks_before_enter\";\n /** The exiting weeks when they disappear before the entering month. */\n Animation[\"weeks_before_exit\"] = \"weeks_before_exit\";\n /** The entering weeks when they appear after the exiting month. */\n Animation[\"weeks_after_enter\"] = \"weeks_after_enter\";\n /** The exiting weeks when they disappear after the entering month. */\n Animation[\"weeks_after_exit\"] = \"weeks_after_exit\";\n /** The entering caption when it appears after the exiting month. */\n Animation[\"caption_after_enter\"] = \"caption_after_enter\";\n /** The exiting caption when it disappears after the entering month. */\n Animation[\"caption_after_exit\"] = \"caption_after_exit\";\n /** The entering caption when it appears before the exiting month. */\n Animation[\"caption_before_enter\"] = \"caption_before_enter\";\n /** The exiting caption when it disappears before the entering month. */\n Animation[\"caption_before_exit\"] = \"caption_before_exit\";\n})(Animation || (Animation = {}));\n"],"names":["UI","DayFlag","SelectionState","Animation"],"mappings":"AAMU,IAACA;AAAA,CACV,SAAUA,GAAI;AAEX,EAAAA,EAAG,OAAU,QAEbA,EAAG,UAAa,WAKhBA,EAAG,MAAS,OAEZA,EAAG,YAAe,cAElBA,EAAG,eAAkB,iBAErBA,EAAG,YAAe,aAElBA,EAAG,WAAc,YAEjBA,EAAG,eAAkB,iBAErBA,EAAG,SAAY,UAEfA,EAAG,YAAe,cAElBA,EAAG,eAAkB,iBAErBA,EAAG,iBAAoB,mBAEvBA,EAAG,QAAW,SAEdA,EAAG,SAAY,UAEfA,EAAG,MAAS,OAMZA,EAAG,kBAAqB,eAMxBA,EAAG,sBAAyB,mBAE5BA,EAAG,OAAU,QAEbA,EAAG,QAAW,SAEdA,EAAG,UAAa,WAEhBA,EAAG,WAAc,YAEjBA,EAAG,aAAgB,eAEnBA,EAAG,mBAAsB,sBAEzBA,EAAG,gBAAmB;AAC1B,GAAGA,MAAOA,IAAK,CAAA,EAAG;AAER,IAACC;AAAA,CACV,SAAUA,GAAS;AAEhB,EAAAA,EAAQ,WAAc,YAEtBA,EAAQ,SAAY,UAEpBA,EAAQ,UAAa,WAErBA,EAAQ,UAAa,WAErBA,EAAQ,QAAW;AACvB,GAAGA,MAAYA,IAAU,CAAA,EAAG;AAKlB,IAACC;AAAA,CACV,SAAUA,GAAgB;AAEvB,EAAAA,EAAe,YAAe,aAE9BA,EAAe,eAAkB,gBAEjCA,EAAe,cAAiB,eAEhCA,EAAe,WAAc;AACjC,GAAGA,MAAmBA,IAAiB,CAAA,EAAG;AAKhC,IAACC;AAAA,CACV,SAAUA,GAAW;AAElB,EAAAA,EAAU,qBAAwB,sBAElCA,EAAU,oBAAuB,qBAEjCA,EAAU,oBAAuB,qBAEjCA,EAAU,mBAAsB,oBAEhCA,EAAU,sBAAyB,uBAEnCA,EAAU,qBAAwB,sBAElCA,EAAU,uBAA0B,wBAEpCA,EAAU,sBAAyB;AACvC,GAAGA,MAAcA,IAAY,CAAA,EAAG;","x_google_ignoreList":[0]}
package/dist/index117.js CHANGED
@@ -1,20 +1,57 @@
1
- import e from "react";
2
- import { UI as o } from "./index151.js";
3
- function f(c) {
4
- const { options: l, className: r, components: s, classNames: a, ...n } = c, i = [a[o.Dropdown], r].join(" "), m = l?.find(({ value: t }) => t === n.value);
5
- return e.createElement(
6
- "span",
7
- { "data-disabled": n.disabled, className: a[o.DropdownRoot] },
8
- e.createElement(s.Select, { className: i, ...n }, l?.map(({ value: t, label: d, disabled: p }) => e.createElement(s.Option, { key: t, value: t, disabled: p }, d))),
9
- e.createElement(
10
- "span",
11
- { className: a[o.CaptionLabel], "aria-hidden": !0 },
12
- m?.label,
13
- e.createElement(s.Chevron, { orientation: "down", size: 18, className: a[o.Chevron] })
14
- )
15
- );
1
+ import { useRef as k, useLayoutEffect as z } from "react";
2
+ import { Animation as o } from "./index116.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
+ });
16
53
  }
17
54
  export {
18
- f as Dropdown
55
+ D as useAnimation
19
56
  };
20
57
  //# sourceMappingURL=index117.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index117.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Dropdown.js"],"sourcesContent":["import React from \"react\";\nimport { UI } from \"../UI.js\";\n/**\n * Render a dropdown component for navigation in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Dropdown(props) {\n const { options, className, components, classNames, ...selectProps } = props;\n const cssClassSelect = [classNames[UI.Dropdown], className].join(\" \");\n const selectedOption = options?.find(({ value }) => value === selectProps.value);\n return (React.createElement(\"span\", { \"data-disabled\": selectProps.disabled, className: classNames[UI.DropdownRoot] },\n React.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => (React.createElement(components.Option, { key: value, value: value, disabled: disabled }, label)))),\n React.createElement(\"span\", { className: classNames[UI.CaptionLabel], \"aria-hidden\": true },\n selectedOption?.label,\n React.createElement(components.Chevron, { orientation: \"down\", size: 18, className: classNames[UI.Chevron] }))));\n}\n"],"names":["Dropdown","props","options","className","components","classNames","selectProps","cssClassSelect","UI","selectedOption","value","React","label","disabled"],"mappings":";;AAQO,SAASA,EAASC,GAAO;AAC5B,QAAM,EAAE,SAAAC,GAAS,WAAAC,GAAW,YAAAC,GAAY,YAAAC,GAAY,GAAGC,EAAW,IAAKL,GACjEM,IAAiB,CAACF,EAAWG,EAAG,QAAQ,GAAGL,CAAS,EAAE,KAAK,GAAG,GAC9DM,IAAiBP,GAAS,KAAK,CAAC,EAAE,OAAAQ,QAAYA,MAAUJ,EAAY,KAAK;AAC/E,SAAQK,EAAM;AAAA,IAAc;AAAA,IAAQ,EAAE,iBAAiBL,EAAY,UAAU,WAAWD,EAAWG,EAAG,YAAY,EAAC;AAAA,IAC/GG,EAAM,cAAcP,EAAW,QAAQ,EAAE,WAAWG,GAAgB,GAAGD,EAAW,GAAIJ,GAAS,IAAI,CAAC,EAAE,OAAAQ,GAAO,OAAAE,GAAO,UAAAC,QAAgBF,EAAM,cAAcP,EAAW,QAAQ,EAAE,KAAKM,GAAO,OAAOA,GAAO,UAAUG,EAAQ,GAAID,CAAK,CAAE,CAAC;AAAA,IACrOD,EAAM;AAAA,MAAc;AAAA,MAAQ,EAAE,WAAWN,EAAWG,EAAG,YAAY,GAAG,eAAe,GAAI;AAAA,MACrFC,GAAgB;AAAA,MAChBE,EAAM,cAAcP,EAAW,SAAS,EAAE,aAAa,QAAQ,MAAM,IAAI,WAAWC,EAAWG,EAAG,OAAO,EAAC,CAAE;AAAA,IAAC;AAAA,EAAC;AAC1H;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index117.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,G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AAe;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/index118.js CHANGED
@@ -1,8 +1,76 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("div", { ...e });
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
+ };
59
+ return {
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
+ }
71
+ };
4
72
  }
5
73
  export {
6
- o as DropdownNav
74
+ _ as useCalendar
7
75
  };
8
76
  //# sourceMappingURL=index118.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index118.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/DropdownNav.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the navigation dropdowns for the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function DropdownNav(props) {\n return React.createElement(\"div\", { ...props });\n}\n"],"names":["DropdownNav","props","React"],"mappings":";AAOO,SAASA,EAAYC,GAAO;AAC/B,SAAOC,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAK,CAAE;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index118.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,M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AiB;AAAA,IACA,SAhBY,CAACH,MAAQ;AAErB,MAAID,EAAgBC,CAAG,KAGvBG,EAAUH,EAAI,IAAI;AAAA,IACtB;AAAA,EAWJ;AAEA;","x_google_ignoreList":[0]}
package/dist/index119.js CHANGED
@@ -1,8 +1,13 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("div", { ...e });
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;
4
8
  }
5
9
  export {
6
- o as Footer
10
+ o as dayPickerContext,
11
+ c as useDayPicker
7
12
  };
8
13
  //# sourceMappingURL=index119.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index119.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Footer.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the footer of the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Footer(props) {\n return React.createElement(\"div\", { ...props });\n}\n"],"names":["Footer","props","React"],"mappings":";AAOO,SAASA,EAAOC,GAAO;AAC1B,SAAOC,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAK,CAAE;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index119.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/index120.js CHANGED
@@ -1,9 +1,24 @@
1
- import n from "react";
2
- function a(e) {
3
- const { calendarMonth: r, displayIndex: d, ...t } = e;
4
- return n.createElement("div", { ...t }, e.children);
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
+ };
5
20
  }
6
21
  export {
7
- a as Month
22
+ I as useFocus
8
23
  };
9
24
  //# sourceMappingURL=index120.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index120.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Month.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the grid with the weekday header row and the weeks for a specific\n * month.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Month(props) {\n const { calendarMonth, displayIndex, ...divProps } = props;\n return React.createElement(\"div\", { ...divProps }, props.children);\n}\n"],"names":["Month","props","calendarMonth","displayIndex","divProps","React"],"mappings":";AAQO,SAASA,EAAMC,GAAO;AACzB,QAAM,EAAE,eAAAC,GAAe,cAAAC,GAAc,GAAGC,EAAQ,IAAKH;AACrD,SAAOI,EAAM,cAAc,OAAO,EAAE,GAAGD,EAAQ,GAAIH,EAAM,QAAQ;AACrE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index120.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/index121.js CHANGED
@@ -1,9 +1,20 @@
1
- import n from "react";
2
- function d(t) {
3
- const { calendarMonth: o, displayIndex: r, ...e } = t;
4
- return n.createElement("div", { ...e });
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
+ }
5
16
  }
6
17
  export {
7
- d as MonthCaption
18
+ f as useSelection
8
19
  };
9
20
  //# sourceMappingURL=index121.js.map