@rpcbase/ui 0.224.0 → 0.225.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 (829) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Dialog/index.d.ts +13 -9
  3. package/dist/components/Dialog/index.d.ts.map +1 -1
  4. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  5. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  6. package/dist/components/Select/index.d.ts +16 -10
  7. package/dist/components/Select/index.d.ts.map +1 -1
  8. package/dist/index10.js +102 -103
  9. package/dist/index10.js.map +1 -1
  10. package/dist/index100.js +4 -4
  11. package/dist/index100.js.map +1 -1
  12. package/dist/index101.js +9 -52
  13. package/dist/index101.js.map +1 -1
  14. package/dist/index102.js +5 -4
  15. package/dist/index102.js.map +1 -1
  16. package/dist/index103.js +3 -3
  17. package/dist/index103.js.map +1 -1
  18. package/dist/index104.js +4 -15
  19. package/dist/index104.js.map +1 -1
  20. package/dist/index105.js +5 -4
  21. package/dist/index105.js.map +1 -1
  22. package/dist/index106.js +145 -7
  23. package/dist/index106.js.map +1 -1
  24. package/dist/index107.js +39 -16
  25. package/dist/index107.js.map +1 -1
  26. package/dist/index108.js +4 -4
  27. package/dist/index108.js.map +1 -1
  28. package/dist/index109.js +7 -4
  29. package/dist/index109.js.map +1 -1
  30. package/dist/index110.js +13 -5
  31. package/dist/index110.js.map +1 -1
  32. package/dist/index111.js +13 -5
  33. package/dist/index111.js.map +1 -1
  34. package/dist/index112.js +7 -4
  35. package/dist/index112.js.map +1 -1
  36. package/dist/index113.js +31 -4
  37. package/dist/index113.js.map +1 -1
  38. package/dist/index114.js +10 -6
  39. package/dist/index114.js.map +1 -1
  40. package/dist/index115.js +10 -24
  41. package/dist/index115.js.map +1 -1
  42. package/dist/index116.js +8 -6
  43. package/dist/index116.js.map +1 -1
  44. package/dist/index117.js +13 -4
  45. package/dist/index117.js.map +1 -1
  46. package/dist/index118.js +101 -6
  47. package/dist/index118.js.map +1 -1
  48. package/dist/index119.js +20 -6
  49. package/dist/index119.js.map +1 -1
  50. package/dist/index12.js +1 -1
  51. package/dist/index120.js +53 -4
  52. package/dist/index120.js.map +1 -1
  53. package/dist/index121.js +72 -5
  54. package/dist/index121.js.map +1 -1
  55. package/dist/index122.js +9 -4
  56. package/dist/index122.js.map +1 -1
  57. package/dist/index123.js +20 -8
  58. package/dist/index123.js.map +1 -1
  59. package/dist/index124.js +16 -5
  60. package/dist/index124.js.map +1 -1
  61. package/dist/index125.js +23 -4
  62. package/dist/index125.js.map +1 -1
  63. package/dist/index126.js +6 -4
  64. package/dist/index126.js.map +1 -1
  65. package/dist/index127.js +5 -6
  66. package/dist/index127.js.map +1 -1
  67. package/dist/index128.js +23 -145
  68. package/dist/index128.js.map +1 -1
  69. package/dist/index129.js +34 -39
  70. package/dist/index129.js.map +1 -1
  71. package/dist/index130.js +16 -5
  72. package/dist/index130.js.map +1 -1
  73. package/dist/index131.js +6 -7
  74. package/dist/index131.js.map +1 -1
  75. package/dist/index132.js +4 -13
  76. package/dist/index132.js.map +1 -1
  77. package/dist/index133.js +4 -13
  78. package/dist/index133.js.map +1 -1
  79. package/dist/index134.js +4 -7
  80. package/dist/index134.js.map +1 -1
  81. package/dist/index135.js +4 -31
  82. package/dist/index135.js.map +1 -1
  83. package/dist/index136.js +3 -10
  84. package/dist/index136.js.map +1 -1
  85. package/dist/index137.js +6 -10
  86. package/dist/index137.js.map +1 -1
  87. package/dist/index138.js +24 -9
  88. package/dist/index138.js.map +1 -1
  89. package/dist/index139.js +7 -13
  90. package/dist/index139.js.map +1 -1
  91. package/dist/index140.js +6 -101
  92. package/dist/index140.js.map +1 -1
  93. package/dist/index141.js +6 -20
  94. package/dist/index141.js.map +1 -1
  95. package/dist/index142.js +3 -53
  96. package/dist/index142.js.map +1 -1
  97. package/dist/index143.js +3 -72
  98. package/dist/index143.js.map +1 -1
  99. package/dist/index144.js +4 -9
  100. package/dist/index144.js.map +1 -1
  101. package/dist/index145.js +3 -20
  102. package/dist/index145.js.map +1 -1
  103. package/dist/index146.js +4 -16
  104. package/dist/index146.js.map +1 -1
  105. package/dist/index147.js +3 -23
  106. package/dist/index147.js.map +1 -1
  107. package/dist/index148.js +3 -6
  108. package/dist/index148.js.map +1 -1
  109. package/dist/index149.js +3 -5
  110. package/dist/index149.js.map +1 -1
  111. package/dist/index150.js +5 -23
  112. package/dist/index150.js.map +1 -1
  113. package/dist/index151.js +68 -34
  114. package/dist/index151.js.map +1 -1
  115. package/dist/index152.js +2 -16
  116. package/dist/index152.js.map +1 -1
  117. package/dist/index153.js +363 -6
  118. package/dist/index153.js.map +1 -1
  119. package/dist/index154.js +261 -4
  120. package/dist/index154.js.map +1 -1
  121. package/dist/index155.js +60 -4
  122. package/dist/index155.js.map +1 -1
  123. package/dist/index156.js +46 -4
  124. package/dist/index156.js.map +1 -1
  125. package/dist/index157.js +169 -4
  126. package/dist/index157.js.map +1 -1
  127. package/dist/index158.js +109 -3
  128. package/dist/index158.js.map +1 -1
  129. package/dist/index159.js +24 -6
  130. package/dist/index159.js.map +1 -1
  131. package/dist/index16.js +77 -72
  132. package/dist/index16.js.map +1 -1
  133. package/dist/index160.js +8 -24
  134. package/dist/index160.js.map +1 -1
  135. package/dist/index161.js +4 -7
  136. package/dist/index161.js.map +1 -1
  137. package/dist/index162.js +5 -6
  138. package/dist/index162.js.map +1 -1
  139. package/dist/index163.js +4 -5
  140. package/dist/index163.js.map +1 -1
  141. package/dist/index164.js +466 -3
  142. package/dist/index164.js.map +1 -1
  143. package/dist/index165.js +185 -3
  144. package/dist/index165.js.map +1 -1
  145. package/dist/index166.js +107 -4
  146. package/dist/index166.js.map +1 -1
  147. package/dist/index167.js +262 -3
  148. package/dist/index167.js.map +1 -1
  149. package/dist/index168.js +9 -4
  150. package/dist/index168.js.map +1 -1
  151. package/dist/index169.js +42 -3
  152. package/dist/index169.js.map +1 -1
  153. package/dist/index170.js +4 -3
  154. package/dist/index170.js.map +1 -1
  155. package/dist/index171.js +11 -3
  156. package/dist/index171.js.map +1 -1
  157. package/dist/index172.js +63 -41
  158. package/dist/index172.js.map +1 -1
  159. package/dist/index173.js +35 -227
  160. package/dist/index173.js.map +1 -1
  161. package/dist/index174.js +14 -22
  162. package/dist/index174.js.map +1 -1
  163. package/dist/index175.js +23 -24
  164. package/dist/index175.js.map +1 -1
  165. package/dist/index176.js +104 -394
  166. package/dist/index176.js.map +1 -1
  167. package/dist/index177.js +13 -14
  168. package/dist/index177.js.map +1 -1
  169. package/dist/index178.js +4 -154
  170. package/dist/index178.js.map +1 -1
  171. package/dist/index179.js +4 -31
  172. package/dist/index179.js.map +1 -1
  173. package/dist/index18.js +6 -6
  174. package/dist/index180.js +5 -10
  175. package/dist/index180.js.map +1 -1
  176. package/dist/index181.js +11 -48
  177. package/dist/index181.js.map +1 -1
  178. package/dist/index182.js +19 -11
  179. package/dist/index182.js.map +1 -1
  180. package/dist/index183.js +13 -45
  181. package/dist/index183.js.map +1 -1
  182. package/dist/index184.js +255 -89
  183. package/dist/index184.js.map +1 -1
  184. package/dist/index185.js +4 -86
  185. package/dist/index185.js.map +1 -1
  186. package/dist/index186.js +26 -104
  187. package/dist/index186.js.map +1 -1
  188. package/dist/index187.js +126 -52
  189. package/dist/index187.js.map +1 -1
  190. package/dist/index188.js +5 -11
  191. package/dist/index188.js.map +1 -1
  192. package/dist/index189.js +78 -37
  193. package/dist/index189.js.map +1 -1
  194. package/dist/index19.js +280 -208
  195. package/dist/index19.js.map +1 -1
  196. package/dist/index190.js +66 -8
  197. package/dist/index190.js.map +1 -1
  198. package/dist/index191.js +7 -115
  199. package/dist/index191.js.map +1 -1
  200. package/dist/index192.js +16 -18
  201. package/dist/index192.js.map +1 -1
  202. package/dist/index193.js +92 -15
  203. package/dist/index193.js.map +1 -1
  204. package/dist/index194.js +65 -3
  205. package/dist/index194.js.map +1 -1
  206. package/dist/index195.js +42 -33
  207. package/dist/index195.js.map +1 -1
  208. package/dist/index196.js +58 -20
  209. package/dist/index196.js.map +1 -1
  210. package/dist/index197.js +8 -9
  211. package/dist/index197.js.map +1 -1
  212. package/dist/index198.js +66 -8
  213. package/dist/index198.js.map +1 -1
  214. package/dist/index199.js +18 -18
  215. package/dist/index199.js.map +1 -1
  216. package/dist/index200.js +15 -27
  217. package/dist/index200.js.map +1 -1
  218. package/dist/index201.js +4 -15
  219. package/dist/index201.js.map +1 -1
  220. package/dist/index202.js +4 -57
  221. package/dist/index202.js.map +1 -1
  222. package/dist/index203.js +6 -8
  223. package/dist/index203.js.map +1 -1
  224. package/dist/index204.js +4 -66
  225. package/dist/index204.js.map +1 -1
  226. package/dist/index205.js +6 -19
  227. package/dist/index205.js.map +1 -1
  228. package/dist/index206.js +16 -16
  229. package/dist/index206.js.map +1 -1
  230. package/dist/index207.js +4 -5
  231. package/dist/index207.js.map +1 -1
  232. package/dist/index208.js +4 -5
  233. package/dist/index208.js.map +1 -1
  234. package/dist/index209.js +12 -6
  235. package/dist/index209.js.map +1 -1
  236. package/dist/index210.js +9 -4
  237. package/dist/index210.js.map +1 -1
  238. package/dist/index211.js +13 -6
  239. package/dist/index211.js.map +1 -1
  240. package/dist/index212.js +13 -16
  241. package/dist/index212.js.map +1 -1
  242. package/dist/index213.js +4 -4
  243. package/dist/index213.js.map +1 -1
  244. package/dist/index214.js +5 -4
  245. package/dist/index214.js.map +1 -1
  246. package/dist/index215.js +6 -12
  247. package/dist/index215.js.map +1 -1
  248. package/dist/index216.js +5 -9
  249. package/dist/index216.js.map +1 -1
  250. package/dist/index217.js +54 -13
  251. package/dist/index217.js.map +1 -1
  252. package/dist/index218.js +8 -13
  253. package/dist/index218.js.map +1 -1
  254. package/dist/index219.js +4 -4
  255. package/dist/index219.js.map +1 -1
  256. package/dist/index220.js +4 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +8 -6
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +4 -5
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +4 -54
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +3 -8
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +10 -4
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -4
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +9 -8
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +10 -4
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +10 -4
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index230.js +9 -3
  277. package/dist/index230.js.map +1 -1
  278. package/dist/index231.js +6 -10
  279. package/dist/index231.js.map +1 -1
  280. package/dist/index232.js +5 -9
  281. package/dist/index232.js.map +1 -1
  282. package/dist/index233.js +4 -9
  283. package/dist/index233.js.map +1 -1
  284. package/dist/index234.js +5 -10
  285. package/dist/index234.js.map +1 -1
  286. package/dist/index235.js +6 -10
  287. package/dist/index235.js.map +1 -1
  288. package/dist/index236.js +5 -9
  289. package/dist/index236.js.map +1 -1
  290. package/dist/index237.js +29 -6
  291. package/dist/index237.js.map +1 -1
  292. package/dist/index238.js +12 -5
  293. package/dist/index238.js.map +1 -1
  294. package/dist/index239.js +25 -4
  295. package/dist/index239.js.map +1 -1
  296. package/dist/index240.js +5 -5
  297. package/dist/index240.js.map +1 -1
  298. package/dist/index241.js +16 -6
  299. package/dist/index241.js.map +1 -1
  300. package/dist/index242.js +7 -5
  301. package/dist/index242.js.map +1 -1
  302. package/dist/index243.js +9 -15
  303. package/dist/index243.js.map +1 -1
  304. package/dist/index244.js +10 -7
  305. package/dist/index244.js.map +1 -1
  306. package/dist/index245.js +21 -10
  307. package/dist/index245.js.map +1 -1
  308. package/dist/index246.js +10 -10
  309. package/dist/index246.js.map +1 -1
  310. package/dist/index247.js +9 -21
  311. package/dist/index247.js.map +1 -1
  312. package/dist/index248.js +9 -10
  313. package/dist/index248.js.map +1 -1
  314. package/dist/index249.js +4 -9
  315. package/dist/index249.js.map +1 -1
  316. package/dist/index250.js +5 -9
  317. package/dist/index250.js.map +1 -1
  318. package/dist/index251.js +16 -4
  319. package/dist/index251.js.map +1 -1
  320. package/dist/index252.js +9 -5
  321. package/dist/index252.js.map +1 -1
  322. package/dist/index253.js +18 -16
  323. package/dist/index253.js.map +1 -1
  324. package/dist/index254.js +15 -9
  325. package/dist/index254.js.map +1 -1
  326. package/dist/index255.js +8 -14
  327. package/dist/index255.js.map +1 -1
  328. package/dist/index256.js +13 -15
  329. package/dist/index256.js.map +1 -1
  330. package/dist/index257.js +154 -12
  331. package/dist/index257.js.map +1 -1
  332. package/dist/index258.js +29 -28
  333. package/dist/index258.js.map +1 -1
  334. package/dist/index259.js +9 -12
  335. package/dist/index259.js.map +1 -1
  336. package/dist/index260.js +46 -23
  337. package/dist/index260.js.map +1 -1
  338. package/dist/index261.js +11 -5
  339. package/dist/index261.js.map +1 -1
  340. package/dist/index262.js +43 -23
  341. package/dist/index262.js.map +1 -1
  342. package/dist/index263.js +95 -28
  343. package/dist/index263.js.map +1 -1
  344. package/dist/index264.js +87 -5
  345. package/dist/index264.js.map +1 -1
  346. package/dist/index265.js +105 -20
  347. package/dist/index265.js.map +1 -1
  348. package/dist/index266.js +52 -4
  349. package/dist/index266.js.map +1 -1
  350. package/dist/index267.js +11 -17
  351. package/dist/index267.js.map +1 -1
  352. package/dist/index268.js +37 -12
  353. package/dist/index268.js.map +1 -1
  354. package/dist/index269.js +9 -5
  355. package/dist/index269.js.map +1 -1
  356. package/dist/index270.js +117 -3
  357. package/dist/index270.js.map +1 -1
  358. package/dist/index271.js +17 -23
  359. package/dist/index271.js.map +1 -1
  360. package/dist/index272.js +14 -111
  361. package/dist/index272.js.map +1 -1
  362. package/dist/index273.js +3 -15
  363. package/dist/index273.js.map +1 -1
  364. package/dist/index274.js +29 -522
  365. package/dist/index274.js.map +1 -1
  366. package/dist/index275.js +19 -124
  367. package/dist/index275.js.map +1 -1
  368. package/dist/index276.js +9 -133
  369. package/dist/index276.js.map +1 -1
  370. package/dist/index277.js +8 -4
  371. package/dist/index277.js.map +1 -1
  372. package/dist/index278.js +19 -4
  373. package/dist/index278.js.map +1 -1
  374. package/dist/index279.js +29 -4
  375. package/dist/index279.js.map +1 -1
  376. package/dist/index28.js +1 -1
  377. package/dist/index280.js +16 -15
  378. package/dist/index280.js.map +1 -1
  379. package/dist/index281.js +66 -8
  380. package/dist/index281.js.map +1 -1
  381. package/dist/index282.js +8 -5
  382. package/dist/index282.js.map +1 -1
  383. package/dist/index283.js +11 -4
  384. package/dist/index283.js.map +1 -1
  385. package/dist/index284.js +7 -544
  386. package/dist/index284.js.map +1 -1
  387. package/dist/index285.js +6 -47
  388. package/dist/index285.js.map +1 -1
  389. package/dist/index286.js +13 -17
  390. package/dist/index286.js.map +1 -1
  391. package/dist/index287.js +3 -5
  392. package/dist/index287.js.map +1 -1
  393. package/dist/index288.js +3 -7
  394. package/dist/index288.js.map +1 -1
  395. package/dist/index289.js +99 -6
  396. package/dist/index289.js.map +1 -1
  397. package/dist/index290.js +17 -7
  398. package/dist/index290.js.map +1 -1
  399. package/dist/index291.js +5 -11
  400. package/dist/index291.js.map +1 -1
  401. package/dist/index292.js +29 -8
  402. package/dist/index292.js.map +1 -1
  403. package/dist/index293.js +51 -12
  404. package/dist/index293.js.map +1 -1
  405. package/dist/index294.js +131 -66
  406. package/dist/index294.js.map +1 -1
  407. package/dist/index295.js +9 -9
  408. package/dist/index295.js.map +1 -1
  409. package/dist/index296.js +5 -14
  410. package/dist/index296.js.map +1 -1
  411. package/dist/index297.js +4 -66
  412. package/dist/index297.js.map +1 -1
  413. package/dist/index298.js +11 -64
  414. package/dist/index298.js.map +1 -1
  415. package/dist/index299.js +21 -4
  416. package/dist/index299.js.map +1 -1
  417. package/dist/index30.js +1 -1
  418. package/dist/index300.js +121 -54
  419. package/dist/index300.js.map +1 -1
  420. package/dist/index301.js +28 -68
  421. package/dist/index301.js.map +1 -1
  422. package/dist/index302.js +33 -31
  423. package/dist/index302.js.map +1 -1
  424. package/dist/index303.js +74 -9
  425. package/dist/index303.js.map +1 -1
  426. package/dist/index304.js +262 -152
  427. package/dist/index304.js.map +1 -1
  428. package/dist/index305.js +28 -107
  429. package/dist/index305.js.map +1 -1
  430. package/dist/index306.js +6 -3
  431. package/dist/index306.js.map +1 -1
  432. package/dist/index307.js +141 -21
  433. package/dist/index307.js.map +1 -1
  434. package/dist/index308.js +61 -15
  435. package/dist/index308.js.map +1 -1
  436. package/dist/index309.js +48 -27
  437. package/dist/index309.js.map +1 -1
  438. package/dist/index31.js +227 -120
  439. package/dist/index31.js.map +1 -1
  440. package/dist/index310.js +15 -13
  441. package/dist/index310.js.map +1 -1
  442. package/dist/index311.js +20 -7
  443. package/dist/index311.js.map +1 -1
  444. package/dist/index312.js +12 -23
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +51 -13
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +14 -25
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +22 -5
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +55 -0
  453. package/dist/index316.js.map +1 -0
  454. package/dist/index317.js +29 -0
  455. package/dist/index317.js.map +1 -0
  456. package/dist/index318.js +45 -0
  457. package/dist/index318.js.map +1 -0
  458. package/dist/index319.js +43 -0
  459. package/dist/index319.js.map +1 -0
  460. package/dist/index32.js +21 -229
  461. package/dist/index32.js.map +1 -1
  462. package/dist/index320.js +48 -0
  463. package/dist/index320.js.map +1 -0
  464. package/dist/index321.js +24 -0
  465. package/dist/index321.js.map +1 -0
  466. package/dist/index322.js +74 -0
  467. package/dist/index322.js.map +1 -0
  468. package/dist/index323.js +21 -0
  469. package/dist/index323.js.map +1 -0
  470. package/dist/index324.js +15 -0
  471. package/dist/index324.js.map +1 -0
  472. package/dist/index325.js +17 -0
  473. package/dist/index325.js.map +1 -0
  474. package/dist/index326.js +22 -0
  475. package/dist/index326.js.map +1 -0
  476. package/dist/index327.js +40 -0
  477. package/dist/index327.js.map +1 -0
  478. package/dist/index328.js +282 -0
  479. package/dist/index328.js.map +1 -0
  480. package/dist/index329.js +72 -0
  481. package/dist/index329.js.map +1 -0
  482. package/dist/index33.js +4 -23
  483. package/dist/index33.js.map +1 -1
  484. package/dist/index330.js +87 -0
  485. package/dist/index330.js.map +1 -0
  486. package/dist/index331.js +7 -0
  487. package/dist/index331.js.map +1 -0
  488. package/dist/index332.js +33 -0
  489. package/dist/index332.js.map +1 -0
  490. package/dist/index333.js +20 -0
  491. package/dist/index333.js.map +1 -0
  492. package/dist/index334.js +38 -0
  493. package/dist/index334.js.map +1 -0
  494. package/dist/index335.js +20 -0
  495. package/dist/index335.js.map +1 -0
  496. package/dist/index336.js +7 -0
  497. package/dist/index336.js.map +1 -0
  498. package/dist/index337.js +30 -0
  499. package/dist/index337.js.map +1 -0
  500. package/dist/index338.js +7 -0
  501. package/dist/index338.js.map +1 -0
  502. package/dist/index339.js +82 -0
  503. package/dist/index339.js.map +1 -0
  504. package/dist/index34.js +62 -51
  505. package/dist/index34.js.map +1 -1
  506. package/dist/index340.js +273 -0
  507. package/dist/index340.js.map +1 -0
  508. package/dist/index341.js +15 -0
  509. package/dist/index341.js.map +1 -0
  510. package/dist/index342.js +14 -0
  511. package/dist/index342.js.map +1 -0
  512. package/dist/index343.js +29 -0
  513. package/dist/index343.js.map +1 -0
  514. package/dist/index344.js +20 -0
  515. package/dist/index344.js.map +1 -0
  516. package/dist/index345.js +129 -0
  517. package/dist/index345.js.map +1 -0
  518. package/dist/index346.js +9 -0
  519. package/dist/index346.js.map +1 -0
  520. package/dist/index347.js +44 -0
  521. package/dist/index347.js.map +1 -0
  522. package/dist/index348.js +69 -0
  523. package/dist/index348.js.map +1 -0
  524. package/dist/index349.js +17 -0
  525. package/dist/index349.js.map +1 -0
  526. package/dist/index35.js +38 -21
  527. package/dist/index35.js.map +1 -1
  528. package/dist/index350.js +11 -0
  529. package/dist/index350.js.map +1 -0
  530. package/dist/index351.js +9 -0
  531. package/dist/index351.js.map +1 -0
  532. package/dist/index352.js +7 -0
  533. package/dist/index352.js.map +1 -0
  534. package/dist/index353.js +14 -0
  535. package/dist/index353.js.map +1 -0
  536. package/dist/index354.js +11 -0
  537. package/dist/index354.js.map +1 -0
  538. package/dist/index355.js +403 -0
  539. package/dist/index355.js.map +1 -0
  540. package/dist/index356.js +56 -0
  541. package/dist/index356.js.map +1 -0
  542. package/dist/index357.js +15 -0
  543. package/dist/index357.js.map +1 -0
  544. package/dist/index358.js +15 -0
  545. package/dist/index358.js.map +1 -0
  546. package/dist/index359.js +8 -0
  547. package/dist/index359.js.map +1 -0
  548. package/dist/index36.js +75 -127
  549. package/dist/index36.js.map +1 -1
  550. package/dist/index360.js +21 -0
  551. package/dist/index360.js.map +1 -0
  552. package/dist/index361.js +16 -0
  553. package/dist/index361.js.map +1 -0
  554. package/dist/index362.js +24 -0
  555. package/dist/index362.js.map +1 -0
  556. package/dist/index363.js +12 -0
  557. package/dist/index363.js.map +1 -0
  558. package/dist/index364.js +29 -0
  559. package/dist/index364.js.map +1 -0
  560. package/dist/index365.js +30 -0
  561. package/dist/index365.js.map +1 -0
  562. package/dist/index366.js +141 -0
  563. package/dist/index366.js.map +1 -0
  564. package/dist/index367.js +16 -0
  565. package/dist/index367.js.map +1 -0
  566. package/dist/index368.js +230 -0
  567. package/dist/index368.js.map +1 -0
  568. package/dist/index369.js +7 -0
  569. package/dist/index369.js.map +1 -0
  570. package/dist/index37.js +22 -221
  571. package/dist/index37.js.map +1 -1
  572. package/dist/index370.js +23 -0
  573. package/dist/index370.js.map +1 -0
  574. package/dist/index371.js +81 -0
  575. package/dist/index371.js.map +1 -0
  576. package/dist/index372.js +15 -0
  577. package/dist/index372.js.map +1 -0
  578. package/dist/index373.js +7 -0
  579. package/dist/index373.js.map +1 -0
  580. package/dist/index374.js +81 -0
  581. package/dist/index374.js.map +1 -0
  582. package/dist/index375.js +204 -0
  583. package/dist/index375.js.map +1 -0
  584. package/dist/index376.js +75 -0
  585. package/dist/index376.js.map +1 -0
  586. package/dist/index377.js +12 -0
  587. package/dist/index377.js.map +1 -0
  588. package/dist/index378.js +19 -0
  589. package/dist/index378.js.map +1 -0
  590. package/dist/index379.js +20 -0
  591. package/dist/index379.js.map +1 -0
  592. package/dist/index38.js +37 -90
  593. package/dist/index38.js.map +1 -1
  594. package/dist/index380.js +7 -0
  595. package/dist/index380.js.map +1 -0
  596. package/dist/index381.js +15 -0
  597. package/dist/index381.js.map +1 -0
  598. package/dist/index382.js +9 -0
  599. package/dist/index382.js.map +1 -0
  600. package/dist/index383.js +24 -0
  601. package/dist/index383.js.map +1 -0
  602. package/dist/index384.js +48 -0
  603. package/dist/index384.js.map +1 -0
  604. package/dist/index385.js +21 -0
  605. package/dist/index385.js.map +1 -0
  606. package/dist/index386.js +8 -0
  607. package/dist/index386.js.map +1 -0
  608. package/dist/index387.js +8 -0
  609. package/dist/index387.js.map +1 -0
  610. package/dist/index388.js +8 -0
  611. package/dist/index388.js.map +1 -0
  612. package/dist/index389.js +7 -0
  613. package/dist/index389.js.map +1 -0
  614. package/dist/index39.js +28 -119
  615. package/dist/index39.js.map +1 -1
  616. package/dist/index390.js +19 -0
  617. package/dist/index390.js.map +1 -0
  618. package/dist/index391.js +12 -0
  619. package/dist/index391.js.map +1 -0
  620. package/dist/index392.js +9 -0
  621. package/dist/index392.js.map +1 -0
  622. package/dist/index393.js +8 -0
  623. package/dist/index393.js.map +1 -0
  624. package/dist/index394.js +549 -0
  625. package/dist/index394.js.map +1 -0
  626. package/dist/index395.js +50 -0
  627. package/dist/index395.js.map +1 -0
  628. package/dist/index396.js +21 -0
  629. package/dist/index396.js.map +1 -0
  630. package/dist/index397.js +9 -0
  631. package/dist/index397.js.map +1 -0
  632. package/dist/index398.js +11 -0
  633. package/dist/index398.js.map +1 -0
  634. package/dist/index399.js +10 -0
  635. package/dist/index399.js.map +1 -0
  636. package/dist/index40.js +23 -6
  637. package/dist/index40.js.map +1 -1
  638. package/dist/index400.js +11 -0
  639. package/dist/index400.js.map +1 -0
  640. package/dist/index401.js +15 -0
  641. package/dist/index401.js.map +1 -0
  642. package/dist/index402.js +12 -0
  643. package/dist/index402.js.map +1 -0
  644. package/dist/index403.js +16 -0
  645. package/dist/index403.js.map +1 -0
  646. package/dist/index404.js +18 -0
  647. package/dist/index404.js.map +1 -0
  648. package/dist/index405.js +495 -0
  649. package/dist/index405.js.map +1 -0
  650. package/dist/index406.js +6 -0
  651. package/dist/index406.js.map +1 -0
  652. package/dist/index407.js +6 -0
  653. package/dist/index407.js.map +1 -0
  654. package/dist/index408.js +8 -0
  655. package/dist/index408.js.map +1 -0
  656. package/dist/index409.js +59 -0
  657. package/dist/index409.js.map +1 -0
  658. package/dist/index41.js +51 -817
  659. package/dist/index41.js.map +1 -1
  660. package/dist/index410.js +71 -0
  661. package/dist/index410.js.map +1 -0
  662. package/dist/index411.js +34 -0
  663. package/dist/index411.js.map +1 -0
  664. package/dist/index412.js +12 -0
  665. package/dist/index412.js.map +1 -0
  666. package/dist/index413.js +156 -0
  667. package/dist/index413.js.map +1 -0
  668. package/dist/index414.js +111 -0
  669. package/dist/index414.js.map +1 -0
  670. package/dist/index415.js +11 -0
  671. package/dist/index415.js.map +1 -0
  672. package/dist/index416.js +5 -0
  673. package/dist/index416.js.map +1 -0
  674. package/dist/index417.js +47 -0
  675. package/dist/index417.js.map +1 -0
  676. package/dist/index418.js +59 -0
  677. package/dist/index418.js.map +1 -0
  678. package/dist/index419.js +11 -0
  679. package/dist/index419.js.map +1 -0
  680. package/dist/index42.js +51 -57
  681. package/dist/index42.js.map +1 -1
  682. package/dist/index420.js +5 -0
  683. package/dist/index420.js.map +1 -0
  684. package/dist/index421.js +58 -0
  685. package/dist/index421.js.map +1 -0
  686. package/dist/index422.js +59 -0
  687. package/dist/index422.js.map +1 -0
  688. package/dist/index423.js +19 -0
  689. package/dist/index423.js.map +1 -0
  690. package/dist/index424.js +32 -0
  691. package/dist/index424.js.map +1 -0
  692. package/dist/index425.js +16 -0
  693. package/dist/index425.js.map +1 -0
  694. package/dist/index426.js +10 -0
  695. package/dist/index426.js.map +1 -0
  696. package/dist/index427.js +5 -0
  697. package/dist/index427.js.map +1 -0
  698. package/dist/index428.js +5 -0
  699. package/dist/index428.js.map +1 -0
  700. package/dist/index429.js +5 -0
  701. package/dist/index429.js.map +1 -0
  702. package/dist/index43.js +21 -7
  703. package/dist/index43.js.map +1 -1
  704. package/dist/index430.js +5 -0
  705. package/dist/index430.js.map +1 -0
  706. package/dist/index44.js +130 -2
  707. package/dist/index44.js.map +1 -1
  708. package/dist/index45.js +221 -11
  709. package/dist/index45.js.map +1 -1
  710. package/dist/index46.js +90 -18
  711. package/dist/index46.js.map +1 -1
  712. package/dist/index47.js +118 -7
  713. package/dist/index47.js.map +1 -1
  714. package/dist/index48.js +6 -2
  715. package/dist/index48.js.map +1 -1
  716. package/dist/index49.js +326 -23
  717. package/dist/index49.js.map +1 -1
  718. package/dist/index50.js +247 -221
  719. package/dist/index50.js.map +1 -1
  720. package/dist/index51.js +27 -2
  721. package/dist/index51.js.map +1 -1
  722. package/dist/index52.js +129 -2
  723. package/dist/index52.js.map +1 -1
  724. package/dist/index53.js +26 -2
  725. package/dist/index53.js.map +1 -1
  726. package/dist/index54.js +23 -2
  727. package/dist/index54.js.map +1 -1
  728. package/dist/index55.js +145 -6
  729. package/dist/index55.js.map +1 -1
  730. package/dist/index56.js +34 -33
  731. package/dist/index56.js.map +1 -1
  732. package/dist/index57.js +28 -48
  733. package/dist/index57.js.map +1 -1
  734. package/dist/index58.js +41 -8
  735. package/dist/index58.js.map +1 -1
  736. package/dist/index59.js +21 -12
  737. package/dist/index59.js.map +1 -1
  738. package/dist/index6.js +84 -85
  739. package/dist/index6.js.map +1 -1
  740. package/dist/index60.js +132 -6
  741. package/dist/index60.js.map +1 -1
  742. package/dist/index61.js +51 -8
  743. package/dist/index61.js.map +1 -1
  744. package/dist/index62.js +30 -6
  745. package/dist/index62.js.map +1 -1
  746. package/dist/index63.js +57 -4
  747. package/dist/index63.js.map +1 -1
  748. package/dist/index64.js +7 -47
  749. package/dist/index64.js.map +1 -1
  750. package/dist/index65.js +2 -51
  751. package/dist/index65.js.map +1 -1
  752. package/dist/index66.js +11 -7
  753. package/dist/index66.js.map +1 -1
  754. package/dist/index67.js +17 -13
  755. package/dist/index67.js.map +1 -1
  756. package/dist/index68.js +7 -133
  757. package/dist/index68.js.map +1 -1
  758. package/dist/index69.js +2 -11
  759. package/dist/index69.js.map +1 -1
  760. package/dist/index7.js +123 -98
  761. package/dist/index7.js.map +1 -1
  762. package/dist/index70.js +22 -215
  763. package/dist/index70.js.map +1 -1
  764. package/dist/index71.js +234 -13
  765. package/dist/index71.js.map +1 -1
  766. package/dist/index72.js +2 -47
  767. package/dist/index72.js.map +1 -1
  768. package/dist/index73.js +2 -50
  769. package/dist/index73.js.map +1 -1
  770. package/dist/index74.js +2 -4
  771. package/dist/index74.js.map +1 -1
  772. package/dist/index75.js +2 -6
  773. package/dist/index75.js.map +1 -1
  774. package/dist/index76.js +6 -28
  775. package/dist/index76.js.map +1 -1
  776. package/dist/index77.js +8 -50
  777. package/dist/index77.js.map +1 -1
  778. package/dist/index78.js +6 -9
  779. package/dist/index78.js.map +1 -1
  780. package/dist/index79.js +52 -47
  781. package/dist/index79.js.map +1 -1
  782. package/dist/index8.js +53 -54
  783. package/dist/index8.js.map +1 -1
  784. package/dist/index80.js +4 -5
  785. package/dist/index80.js.map +1 -1
  786. package/dist/index81.js +4 -68
  787. package/dist/index81.js.map +1 -1
  788. package/dist/index82.js +16 -2
  789. package/dist/index82.js.map +1 -1
  790. package/dist/index83.js +5 -363
  791. package/dist/index83.js.map +1 -1
  792. package/dist/index84.js +7 -261
  793. package/dist/index84.js.map +1 -1
  794. package/dist/index85.js +16 -60
  795. package/dist/index85.js.map +1 -1
  796. package/dist/index86.js +4 -46
  797. package/dist/index86.js.map +1 -1
  798. package/dist/index87.js +4 -169
  799. package/dist/index87.js.map +1 -1
  800. package/dist/index88.js +5 -109
  801. package/dist/index88.js.map +1 -1
  802. package/dist/index89.js +5 -24
  803. package/dist/index89.js.map +1 -1
  804. package/dist/index9.js +1 -1
  805. package/dist/index90.js +5 -8
  806. package/dist/index90.js.map +1 -1
  807. package/dist/index91.js +4 -4
  808. package/dist/index91.js.map +1 -1
  809. package/dist/index92.js +6 -5
  810. package/dist/index92.js.map +1 -1
  811. package/dist/index93.js +24 -4
  812. package/dist/index93.js.map +1 -1
  813. package/dist/index94.js +6 -466
  814. package/dist/index94.js.map +1 -1
  815. package/dist/index95.js +4 -185
  816. package/dist/index95.js.map +1 -1
  817. package/dist/index96.js +6 -107
  818. package/dist/index96.js.map +1 -1
  819. package/dist/index97.js +5 -262
  820. package/dist/index97.js.map +1 -1
  821. package/dist/index98.js +4 -9
  822. package/dist/index98.js.map +1 -1
  823. package/dist/index99.js +5 -42
  824. package/dist/index99.js.map +1 -1
  825. package/dist/lib/render-as-child.d.ts +5 -0
  826. package/dist/lib/render-as-child.d.ts.map +1 -0
  827. package/package.json +3 -6
  828. package/dist/lib/react-compose-refs.d.ts +0 -5
  829. package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index124.js CHANGED
@@ -1,9 +1,20 @@
1
- import r from "react";
2
- function c(e) {
3
- const { week: o, ...t } = e;
4
- return r.createElement("th", { ...t });
1
+ import { useMulti as i } from "./index253.js";
2
+ import { useRange as o } from "./index254.js";
3
+ import { useSingle as s } from "./index255.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
- c as WeekNumber
18
+ f as useSelection
8
19
  };
9
20
  //# sourceMappingURL=index124.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index124.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/WeekNumber.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render a table cell displaying the number of the week.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function WeekNumber(props) {\n const { week, ...thProps } = props;\n return React.createElement(\"th\", { ...thProps });\n}\n"],"names":["WeekNumber","props","week","thProps","React"],"mappings":";AAOO,SAASA,EAAWC,GAAO;AAC9B,QAAM,EAAE,MAAAC,GAAM,GAAGC,EAAO,IAAKF;AAC7B,SAAOG,EAAM,cAAc,MAAM,EAAE,GAAGD,EAAO,CAAE;AACnD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index124.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/index125.js CHANGED
@@ -1,8 +1,27 @@
1
- import t from "react";
2
- function a(e) {
3
- return t.createElement("th", { ...e });
1
+ import "./index198.js";
2
+ import { toTimeZone as i } from "./index127.js";
3
+ import { isDateRange as e, isDateInterval as p, isDateAfterType as y, isDateBeforeType as D } from "./index128.js";
4
+ function n(o, f, u) {
5
+ return i(o, f);
6
+ }
7
+ function t(o, f, u) {
8
+ return typeof o == "boolean" || typeof o == "function" ? o : o instanceof Date ? n(o, f) : Array.isArray(o) ? o.map((r) => r instanceof Date ? n(r, f) : r) : e(o) ? {
9
+ ...o,
10
+ from: o.from ? i(o.from, f) : o.from,
11
+ to: o.to ? i(o.to, f) : o.to
12
+ } : p(o) ? {
13
+ before: n(o.before, f),
14
+ after: n(o.after, f)
15
+ } : y(o) ? {
16
+ after: n(o.after, f)
17
+ } : D(o) ? {
18
+ before: n(o.before, f)
19
+ } : o;
20
+ }
21
+ function T(o, f, u) {
22
+ return o && (Array.isArray(o) ? o.map((r) => t(r, f)) : t(o, f));
4
23
  }
5
24
  export {
6
- a as WeekNumberHeader
25
+ T as convertMatchersToTimeZone
7
26
  };
8
27
  //# sourceMappingURL=index125.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index125.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the header cell for the week numbers column.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function WeekNumberHeader(props) {\n return React.createElement(\"th\", { ...props });\n}\n"],"names":["WeekNumberHeader","props","React"],"mappings":";AAOO,SAASA,EAAiBC,GAAO;AACpC,SAAOC,EAAM,cAAc,MAAM,EAAE,GAAGD,EAAK,CAAE;AACjD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index125.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/index126.js CHANGED
@@ -1,8 +1,10 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("tbody", { ...e });
1
+ import { defaultDateLib as s } from "./index106.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;
4
6
  }
5
7
  export {
6
- o as Weeks
8
+ u as rangeIncludesDate
7
9
  };
8
10
  //# sourceMappingURL=index126.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index126.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Weeks.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the container for the weeks in the month grid.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Weeks(props) {\n return React.createElement(\"tbody\", { ...props });\n}\n"],"names":["Weeks","props","React"],"mappings":";AAOO,SAASA,EAAMC,GAAO;AACzB,SAAOC,EAAM,cAAc,SAAS,EAAE,GAAGD,EAAK,CAAE;AACpD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index126.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/index127.js CHANGED
@@ -1,10 +1,9 @@
1
- import r from "react";
2
- import { useDayPicker as t } from "./index144.js";
3
- function m(o) {
4
- const { components: e } = t();
5
- return r.createElement(e.Dropdown, { ...o });
1
+ import { TZDate as r } from "./index196.js";
2
+ import "./index198.js";
3
+ function e(n, o) {
4
+ return n instanceof r && n.timeZone === o ? n : new r(n, o);
6
5
  }
7
6
  export {
8
- m as YearsDropdown
7
+ e as toTimeZone
9
8
  };
10
9
  //# sourceMappingURL=index127.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index127.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/YearsDropdown.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render a dropdown to navigate between years in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function YearsDropdown(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Dropdown, { ...props });\n}\n"],"names":["YearsDropdown","props","components","useDayPicker","React"],"mappings":";;AAQO,SAASA,EAAcC,GAAO;AACjC,QAAM,EAAE,YAAAC,EAAU,IAAKC,EAAY;AACnC,SAAOC,EAAM,cAAcF,EAAW,UAAU,EAAE,GAAGD,GAAO;AAChE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index127.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/index128.js CHANGED
@@ -1,149 +1,27 @@
1
- import { TZDate as a } from "./index202.js";
2
- import "./index204.js";
3
- import { endOfBroadcastWeek as f } from "./index209.js";
4
- import { startOfBroadcastWeek as d } from "./index210.js";
5
- import { enUS as m } from "./index151.js";
6
- import { addDays as v } from "./index211.js";
7
- import { addMonths as p } from "./index212.js";
8
- import { addWeeks as O } from "./index213.js";
9
- import { addYears as c } from "./index214.js";
10
- import { differenceInCalendarDays as u } from "./index215.js";
11
- import { differenceInCalendarMonths as l } from "./index216.js";
12
- import { eachMonthOfInterval as M } from "./index217.js";
13
- import { eachYearOfInterval as k } from "./index218.js";
14
- import { endOfISOWeek as W } from "./index219.js";
15
- import { endOfMonth as D } from "./index220.js";
16
- import { endOfWeek as Y } from "./index221.js";
17
- import { endOfYear as S } from "./index222.js";
18
- import { format as y } from "./index223.js";
19
- import { getISOWeek as g } from "./index224.js";
20
- import { getMonth as I } from "./index225.js";
21
- import { getYear as w } from "./index226.js";
22
- import { getWeek as B } from "./index227.js";
23
- import { isAfter as L } from "./index228.js";
24
- import { isBefore as C } from "./index229.js";
25
- import { isDate as z } from "./index230.js";
26
- import { isSameDay as Z } from "./index231.js";
27
- import { isSameMonth as b } from "./index232.js";
28
- import { isSameYear as A } from "./index233.js";
29
- import { max as F } from "./index234.js";
30
- import { min as N } from "./index235.js";
31
- import { setMonth as _ } from "./index236.js";
32
- import { setYear as j } from "./index237.js";
33
- import { startOfDay as x } from "./index238.js";
34
- import { startOfISOWeek as H } from "./index239.js";
35
- import { startOfMonth as K } from "./index240.js";
36
- import { startOfWeek as T } from "./index241.js";
37
- import { startOfYear as U } from "./index242.js";
38
- class n {
39
- /**
40
- * Creates an instance of `DateLib`.
41
- *
42
- * @param options Configuration options for the date library.
43
- * @param overrides Custom overrides for the date library functions.
44
- */
45
- constructor(t, i) {
46
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? a.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, e, s) => this.overrides?.newDate ? this.overrides.newDate(r, e, s) : this.options.timeZone ? new a(r, e, s, this.options.timeZone) : new Date(r, e, s), this.addDays = (r, e) => this.overrides?.addDays ? this.overrides.addDays(r, e) : v(r, e), this.addMonths = (r, e) => this.overrides?.addMonths ? this.overrides.addMonths(r, e) : p(r, e), this.addWeeks = (r, e) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, e) : O(r, e), this.addYears = (r, e) => this.overrides?.addYears ? this.overrides.addYears(r, e) : c(r, e), this.differenceInCalendarDays = (r, e) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, e) : u(r, e), this.differenceInCalendarMonths = (r, e) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, e) : l(r, e), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : M(r), this.eachYearOfInterval = (r) => {
47
- const e = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : k(r), s = new Set(e.map((h) => this.getYear(h)));
48
- if (s.size === e.length)
49
- return e;
50
- const o = [];
51
- return s.forEach((h) => {
52
- o.push(new Date(h, 0, 1));
53
- }), o;
54
- }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : f(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : W(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : D(r), this.endOfWeek = (r, e) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, e) : Y(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : S(r), this.format = (r, e, s) => {
55
- const o = this.overrides?.format ? this.overrides.format(r, e, this.options) : y(r, e, this.options);
56
- return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
57
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : g(r), this.getMonth = (r, e) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : I(r, this.options), this.getYear = (r, e) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : w(r, this.options), this.getWeek = (r, e) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : B(r, this.options), this.isAfter = (r, e) => this.overrides?.isAfter ? this.overrides.isAfter(r, e) : L(r, e), this.isBefore = (r, e) => this.overrides?.isBefore ? this.overrides.isBefore(r, e) : C(r, e), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : z(r), this.isSameDay = (r, e) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, e) : Z(r, e), this.isSameMonth = (r, e) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, e) : b(r, e), this.isSameYear = (r, e) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, e) : A(r, e), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : F(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : N(r), this.setMonth = (r, e) => this.overrides?.setMonth ? this.overrides.setMonth(r, e) : _(r, e), this.setYear = (r, e) => this.overrides?.setYear ? this.overrides.setYear(r, e) : j(r, e), this.startOfBroadcastWeek = (r, e) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : d(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : x(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : H(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : K(r), this.startOfWeek = (r, e) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : T(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : U(r), this.options = { locale: m, ...t }, this.overrides = i;
58
- }
59
- /**
60
- * Generates a mapping of Arabic digits (0-9) to the target numbering system
61
- * digits.
62
- *
63
- * @since 9.5.0
64
- * @returns A record mapping Arabic digits to the target numerals.
65
- */
66
- getDigitMap() {
67
- const { numerals: t = "latn" } = this.options, i = new Intl.NumberFormat("en-US", {
68
- numberingSystem: t
69
- }), r = {};
70
- for (let e = 0; e < 10; e++)
71
- r[e.toString()] = i.format(e);
72
- return r;
73
- }
74
- /**
75
- * Replaces Arabic digits in a string with the target numbering system digits.
76
- *
77
- * @since 9.5.0
78
- * @param input The string containing Arabic digits.
79
- * @returns The string with digits replaced.
80
- */
81
- replaceDigits(t) {
82
- const i = this.getDigitMap();
83
- return t.replace(/\d/g, (r) => i[r] || r);
84
- }
85
- /**
86
- * Formats a number using the configured numbering system.
87
- *
88
- * @since 9.5.0
89
- * @param value The number to format.
90
- * @returns The formatted number as a string.
91
- */
92
- formatNumber(t) {
93
- return this.replaceDigits(t.toString());
94
- }
95
- /**
96
- * Returns the preferred ordering for month and year labels for the current
97
- * locale.
98
- */
99
- getMonthYearOrder() {
100
- const t = this.options.locale?.code;
101
- return t && n.yearFirstLocales.has(t) ? "year-first" : "month-first";
102
- }
103
- /**
104
- * Formats the month/year pair respecting locale conventions.
105
- *
106
- * @since 9.11.0
107
- */
108
- formatMonthYear(t) {
109
- const { locale: i, timeZone: r, numerals: e } = this.options, s = i?.code;
110
- if (s && n.yearFirstLocales.has(s))
111
- try {
112
- return new Intl.DateTimeFormat(s, {
113
- month: "long",
114
- year: "numeric",
115
- timeZone: r,
116
- numberingSystem: e
117
- }).format(t);
118
- } catch {
119
- }
120
- const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
121
- return this.format(t, o);
122
- }
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);
123
18
  }
124
- n.yearFirstLocales = /* @__PURE__ */ new Set([
125
- "eu",
126
- "hu",
127
- "ja",
128
- "ja-Hira",
129
- "ja-JP",
130
- "ko",
131
- "ko-KR",
132
- "lt",
133
- "lt-LT",
134
- "lv",
135
- "lv-LV",
136
- "mn",
137
- "mn-MN",
138
- "zh",
139
- "zh-CN",
140
- "zh-HK",
141
- "zh-TW"
142
- ]);
143
- const Br = new n();
144
19
  export {
145
- n as DateLib,
146
- Br as defaultDateLib,
147
- m as defaultLocale
20
+ r as isDateAfterType,
21
+ f as isDateBeforeType,
22
+ o as isDateInterval,
23
+ t as isDateRange,
24
+ y as isDatesArray,
25
+ i as isDayOfWeekType
148
26
  };
149
27
  //# sourceMappingURL=index128.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index128.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/DateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { addDays, addMonths, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarMonths, eachMonthOfInterval, eachYearOfInterval, endOfISOWeek, endOfMonth, endOfWeek, endOfYear, format, getISOWeek, getMonth, getWeek, getYear, isAfter, isBefore, isDate, isSameDay, isSameMonth, isSameYear, max, min, setMonth, setYear, startOfDay, startOfISOWeek, startOfMonth, startOfWeek, startOfYear, } from \"date-fns\";\nimport { endOfBroadcastWeek } from \"../helpers/endOfBroadcastWeek.js\";\nimport { startOfBroadcastWeek } from \"../helpers/startOfBroadcastWeek.js\";\nimport { enUS } from \"../locale/en-US.js\";\n/**\n * A wrapper class around [date-fns](http://date-fns.org) that provides utility\n * methods for date manipulation and formatting.\n *\n * @since 9.2.0\n * @example\n * const dateLib = new DateLib({ locale: es });\n * const newDate = dateLib.addDays(new Date(), 5);\n */\nexport class DateLib {\n /**\n * Creates an instance of `DateLib`.\n *\n * @param options Configuration options for the date library.\n * @param overrides Custom overrides for the date library functions.\n */\n constructor(options, overrides) {\n /**\n * Reference to the built-in Date constructor.\n *\n * @deprecated Use `newDate()` or `today()`.\n */\n this.Date = Date;\n /**\n * Creates a new `Date` object representing today's date.\n *\n * @since 9.5.0\n * @returns A `Date` object for today's date.\n */\n this.today = () => {\n if (this.overrides?.today) {\n return this.overrides.today();\n }\n if (this.options.timeZone) {\n return TZDate.tz(this.options.timeZone);\n }\n return new this.Date();\n };\n /**\n * Creates a new `Date` object with the specified year, month, and day.\n *\n * @since 9.5.0\n * @param year The year.\n * @param monthIndex The month (0-11).\n * @param date The day of the month.\n * @returns A new `Date` object.\n */\n this.newDate = (year, monthIndex, date) => {\n if (this.overrides?.newDate) {\n return this.overrides.newDate(year, monthIndex, date);\n }\n if (this.options.timeZone) {\n return new TZDate(year, monthIndex, date, this.options.timeZone);\n }\n return new Date(year, monthIndex, date);\n };\n /**\n * Adds the specified number of days to the given date.\n *\n * @param date The date to add days to.\n * @param amount The number of days to add.\n * @returns The new date with the days added.\n */\n this.addDays = (date, amount) => {\n return this.overrides?.addDays\n ? this.overrides.addDays(date, amount)\n : addDays(date, amount);\n };\n /**\n * Adds the specified number of months to the given date.\n *\n * @param date The date to add months to.\n * @param amount The number of months to add.\n * @returns The new date with the months added.\n */\n this.addMonths = (date, amount) => {\n return this.overrides?.addMonths\n ? this.overrides.addMonths(date, amount)\n : addMonths(date, amount);\n };\n /**\n * Adds the specified number of weeks to the given date.\n *\n * @param date The date to add weeks to.\n * @param amount The number of weeks to add.\n * @returns The new date with the weeks added.\n */\n this.addWeeks = (date, amount) => {\n return this.overrides?.addWeeks\n ? this.overrides.addWeeks(date, amount)\n : addWeeks(date, amount);\n };\n /**\n * Adds the specified number of years to the given date.\n *\n * @param date The date to add years to.\n * @param amount The number of years to add.\n * @returns The new date with the years added.\n */\n this.addYears = (date, amount) => {\n return this.overrides?.addYears\n ? this.overrides.addYears(date, amount)\n : addYears(date, amount);\n };\n /**\n * Returns the number of calendar days between the given dates.\n *\n * @param dateLeft The later date.\n * @param dateRight The earlier date.\n * @returns The number of calendar days between the dates.\n */\n this.differenceInCalendarDays = (dateLeft, dateRight) => {\n return this.overrides?.differenceInCalendarDays\n ? this.overrides.differenceInCalendarDays(dateLeft, dateRight)\n : differenceInCalendarDays(dateLeft, dateRight);\n };\n /**\n * Returns the number of calendar months between the given dates.\n *\n * @param dateLeft The later date.\n * @param dateRight The earlier date.\n * @returns The number of calendar months between the dates.\n */\n this.differenceInCalendarMonths = (dateLeft, dateRight) => {\n return this.overrides?.differenceInCalendarMonths\n ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight)\n : differenceInCalendarMonths(dateLeft, dateRight);\n };\n /**\n * Returns the months between the given dates.\n *\n * @param interval The interval to get the months for.\n */\n this.eachMonthOfInterval = (interval) => {\n return this.overrides?.eachMonthOfInterval\n ? this.overrides.eachMonthOfInterval(interval)\n : eachMonthOfInterval(interval);\n };\n /**\n * Returns the years between the given dates.\n *\n * @since 9.11.1\n * @param interval The interval to get the years for.\n * @returns The array of years in the interval.\n */\n this.eachYearOfInterval = (interval) => {\n const years = this.overrides?.eachYearOfInterval\n ? this.overrides.eachYearOfInterval(interval)\n : eachYearOfInterval(interval);\n // Remove duplicates that may happen across DST transitions (e.g., \"America/Sao_Paulo\")\n // See https://github.com/date-fns/tz/issues/72\n const uniqueYears = new Set(years.map((d) => this.getYear(d)));\n if (uniqueYears.size === years.length) {\n // No duplicates, return as is\n return years;\n }\n // Rebuild the array to ensure one date per year\n const yearsArray = [];\n uniqueYears.forEach((y) => {\n yearsArray.push(new Date(y, 0, 1));\n });\n return yearsArray;\n };\n /**\n * Returns the end of the broadcast week for the given date.\n *\n * @param date The original date.\n * @returns The end of the broadcast week.\n */\n this.endOfBroadcastWeek = (date) => {\n return this.overrides?.endOfBroadcastWeek\n ? this.overrides.endOfBroadcastWeek(date)\n : endOfBroadcastWeek(date, this);\n };\n /**\n * Returns the end of the ISO week for the given date.\n *\n * @param date The original date.\n * @returns The end of the ISO week.\n */\n this.endOfISOWeek = (date) => {\n return this.overrides?.endOfISOWeek\n ? this.overrides.endOfISOWeek(date)\n : endOfISOWeek(date);\n };\n /**\n * Returns the end of the month for the given date.\n *\n * @param date The original date.\n * @returns The end of the month.\n */\n this.endOfMonth = (date) => {\n return this.overrides?.endOfMonth\n ? this.overrides.endOfMonth(date)\n : endOfMonth(date);\n };\n /**\n * Returns the end of the week for the given date.\n *\n * @param date The original date.\n * @returns The end of the week.\n */\n this.endOfWeek = (date, options) => {\n return this.overrides?.endOfWeek\n ? this.overrides.endOfWeek(date, options)\n : endOfWeek(date, this.options);\n };\n /**\n * Returns the end of the year for the given date.\n *\n * @param date The original date.\n * @returns The end of the year.\n */\n this.endOfYear = (date) => {\n return this.overrides?.endOfYear\n ? this.overrides.endOfYear(date)\n : endOfYear(date);\n };\n /**\n * Formats the given date using the specified format string.\n *\n * @param date The date to format.\n * @param formatStr The format string.\n * @returns The formatted date string.\n */\n this.format = (date, formatStr, _options) => {\n const formatted = this.overrides?.format\n ? this.overrides.format(date, formatStr, this.options)\n : format(date, formatStr, this.options);\n if (this.options.numerals && this.options.numerals !== \"latn\") {\n return this.replaceDigits(formatted);\n }\n return formatted;\n };\n /**\n * Returns the ISO week number for the given date.\n *\n * @param date The date to get the ISO week number for.\n * @returns The ISO week number.\n */\n this.getISOWeek = (date) => {\n return this.overrides?.getISOWeek\n ? this.overrides.getISOWeek(date)\n : getISOWeek(date);\n };\n /**\n * Returns the month of the given date.\n *\n * @param date The date to get the month for.\n * @returns The month.\n */\n this.getMonth = (date, _options) => {\n return this.overrides?.getMonth\n ? this.overrides.getMonth(date, this.options)\n : getMonth(date, this.options);\n };\n /**\n * Returns the year of the given date.\n *\n * @param date The date to get the year for.\n * @returns The year.\n */\n this.getYear = (date, _options) => {\n return this.overrides?.getYear\n ? this.overrides.getYear(date, this.options)\n : getYear(date, this.options);\n };\n /**\n * Returns the local week number for the given date.\n *\n * @param date The date to get the week number for.\n * @returns The week number.\n */\n this.getWeek = (date, _options) => {\n return this.overrides?.getWeek\n ? this.overrides.getWeek(date, this.options)\n : getWeek(date, this.options);\n };\n /**\n * Checks if the first date is after the second date.\n *\n * @param date The date to compare.\n * @param dateToCompare The date to compare with.\n * @returns True if the first date is after the second date.\n */\n this.isAfter = (date, dateToCompare) => {\n return this.overrides?.isAfter\n ? this.overrides.isAfter(date, dateToCompare)\n : isAfter(date, dateToCompare);\n };\n /**\n * Checks if the first date is before the second date.\n *\n * @param date The date to compare.\n * @param dateToCompare The date to compare with.\n * @returns True if the first date is before the second date.\n */\n this.isBefore = (date, dateToCompare) => {\n return this.overrides?.isBefore\n ? this.overrides.isBefore(date, dateToCompare)\n : isBefore(date, dateToCompare);\n };\n /**\n * Checks if the given value is a Date object.\n *\n * @param value The value to check.\n * @returns True if the value is a Date object.\n */\n this.isDate = (value) => {\n return this.overrides?.isDate\n ? this.overrides.isDate(value)\n : isDate(value);\n };\n /**\n * Checks if the given dates are on the same day.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are on the same day.\n */\n this.isSameDay = (dateLeft, dateRight) => {\n return this.overrides?.isSameDay\n ? this.overrides.isSameDay(dateLeft, dateRight)\n : isSameDay(dateLeft, dateRight);\n };\n /**\n * Checks if the given dates are in the same month.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are in the same month.\n */\n this.isSameMonth = (dateLeft, dateRight) => {\n return this.overrides?.isSameMonth\n ? this.overrides.isSameMonth(dateLeft, dateRight)\n : isSameMonth(dateLeft, dateRight);\n };\n /**\n * Checks if the given dates are in the same year.\n *\n * @param dateLeft The first date to compare.\n * @param dateRight The second date to compare.\n * @returns True if the dates are in the same year.\n */\n this.isSameYear = (dateLeft, dateRight) => {\n return this.overrides?.isSameYear\n ? this.overrides.isSameYear(dateLeft, dateRight)\n : isSameYear(dateLeft, dateRight);\n };\n /**\n * Returns the latest date in the given array of dates.\n *\n * @param dates The array of dates to compare.\n * @returns The latest date.\n */\n this.max = (dates) => {\n return this.overrides?.max ? this.overrides.max(dates) : max(dates);\n };\n /**\n * Returns the earliest date in the given array of dates.\n *\n * @param dates The array of dates to compare.\n * @returns The earliest date.\n */\n this.min = (dates) => {\n return this.overrides?.min ? this.overrides.min(dates) : min(dates);\n };\n /**\n * Sets the month of the given date.\n *\n * @param date The date to set the month on.\n * @param month The month to set (0-11).\n * @returns The new date with the month set.\n */\n this.setMonth = (date, month) => {\n return this.overrides?.setMonth\n ? this.overrides.setMonth(date, month)\n : setMonth(date, month);\n };\n /**\n * Sets the year of the given date.\n *\n * @param date The date to set the year on.\n * @param year The year to set.\n * @returns The new date with the year set.\n */\n this.setYear = (date, year) => {\n return this.overrides?.setYear\n ? this.overrides.setYear(date, year)\n : setYear(date, year);\n };\n /**\n * Returns the start of the broadcast week for the given date.\n *\n * @param date The original date.\n * @returns The start of the broadcast week.\n */\n this.startOfBroadcastWeek = (date, _dateLib) => {\n return this.overrides?.startOfBroadcastWeek\n ? this.overrides.startOfBroadcastWeek(date, this)\n : startOfBroadcastWeek(date, this);\n };\n /**\n * Returns the start of the day for the given date.\n *\n * @param date The original date.\n * @returns The start of the day.\n */\n this.startOfDay = (date) => {\n return this.overrides?.startOfDay\n ? this.overrides.startOfDay(date)\n : startOfDay(date);\n };\n /**\n * Returns the start of the ISO week for the given date.\n *\n * @param date The original date.\n * @returns The start of the ISO week.\n */\n this.startOfISOWeek = (date) => {\n return this.overrides?.startOfISOWeek\n ? this.overrides.startOfISOWeek(date)\n : startOfISOWeek(date);\n };\n /**\n * Returns the start of the month for the given date.\n *\n * @param date The original date.\n * @returns The start of the month.\n */\n this.startOfMonth = (date) => {\n return this.overrides?.startOfMonth\n ? this.overrides.startOfMonth(date)\n : startOfMonth(date);\n };\n /**\n * Returns the start of the week for the given date.\n *\n * @param date The original date.\n * @returns The start of the week.\n */\n this.startOfWeek = (date, _options) => {\n return this.overrides?.startOfWeek\n ? this.overrides.startOfWeek(date, this.options)\n : startOfWeek(date, this.options);\n };\n /**\n * Returns the start of the year for the given date.\n *\n * @param date The original date.\n * @returns The start of the year.\n */\n this.startOfYear = (date) => {\n return this.overrides?.startOfYear\n ? this.overrides.startOfYear(date)\n : startOfYear(date);\n };\n this.options = { locale: enUS, ...options };\n this.overrides = overrides;\n }\n /**\n * Generates a mapping of Arabic digits (0-9) to the target numbering system\n * digits.\n *\n * @since 9.5.0\n * @returns A record mapping Arabic digits to the target numerals.\n */\n getDigitMap() {\n const { numerals = \"latn\" } = this.options;\n // Use Intl.NumberFormat to create a formatter with the specified numbering system\n const formatter = new Intl.NumberFormat(\"en-US\", {\n numberingSystem: numerals,\n });\n // Map Arabic digits (0-9) to the target numerals\n const digitMap = {};\n for (let i = 0; i < 10; i++) {\n digitMap[i.toString()] = formatter.format(i);\n }\n return digitMap;\n }\n /**\n * Replaces Arabic digits in a string with the target numbering system digits.\n *\n * @since 9.5.0\n * @param input The string containing Arabic digits.\n * @returns The string with digits replaced.\n */\n replaceDigits(input) {\n const digitMap = this.getDigitMap();\n return input.replace(/\\d/g, (digit) => digitMap[digit] || digit);\n }\n /**\n * Formats a number using the configured numbering system.\n *\n * @since 9.5.0\n * @param value The number to format.\n * @returns The formatted number as a string.\n */\n formatNumber(value) {\n return this.replaceDigits(value.toString());\n }\n /**\n * Returns the preferred ordering for month and year labels for the current\n * locale.\n */\n getMonthYearOrder() {\n const code = this.options.locale?.code;\n if (!code) {\n return \"month-first\";\n }\n return DateLib.yearFirstLocales.has(code) ? \"year-first\" : \"month-first\";\n }\n /**\n * Formats the month/year pair respecting locale conventions.\n *\n * @since 9.11.0\n */\n formatMonthYear(date) {\n const { locale, timeZone, numerals } = this.options;\n const localeCode = locale?.code;\n if (localeCode && DateLib.yearFirstLocales.has(localeCode)) {\n try {\n const intl = new Intl.DateTimeFormat(localeCode, {\n month: \"long\",\n year: \"numeric\",\n timeZone,\n numberingSystem: numerals,\n });\n const formatted = intl.format(date);\n return formatted;\n }\n catch {\n // Fallback to date-fns formatting below.\n }\n }\n const pattern = this.getMonthYearOrder() === \"year-first\" ? \"y LLLL\" : \"LLLL y\";\n return this.format(date, pattern);\n }\n}\nDateLib.yearFirstLocales = new Set([\n \"eu\",\n \"hu\",\n \"ja\",\n \"ja-Hira\",\n \"ja-JP\",\n \"ko\",\n \"ko-KR\",\n \"lt\",\n \"lt-LT\",\n \"lv\",\n \"lv-LV\",\n \"mn\",\n \"mn-MN\",\n \"zh\",\n \"zh-CN\",\n \"zh-HK\",\n \"zh-TW\",\n]);\n/** The default locale (English). */\nexport { enUS as defaultLocale } from \"../locale/en-US.js\";\n/**\n * The default date library with English locale.\n *\n * @since 9.2.0\n */\nexport const defaultDateLib = new DateLib();\n/**\n * @ignore\n * @deprecated Use `defaultDateLib`.\n */\nexport const dateLib = defaultDateLib;\n"],"names":["DateLib","options","overrides","TZDate","year","monthIndex","date","amount","addDays","addMonths","addWeeks","addYears","dateLeft","dateRight","differenceInCalendarDays","differenceInCalendarMonths","interval","eachMonthOfInterval","years","eachYearOfInterval","uniqueYears","d","yearsArray","y","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","endOfYear","formatStr","_options","formatted","format","getISOWeek","getMonth","getYear","getWeek","dateToCompare","isAfter","isBefore","value","isDate","isSameDay","isSameMonth","isSameYear","dates","max","min","month","setMonth","setYear","_dateLib","startOfBroadcastWeek","startOfDay","startOfISOWeek","startOfMonth","startOfWeek","startOfYear","enUS","numerals","formatter","digitMap","i","input","digit","code","locale","timeZone","localeCode","pattern","defaultDateLib"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index128.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib"],"mappings":"AAOO,SAASA,EAAeC,GAAS;AACpC,SAAO,GAAQA,KACX,OAAOA,KAAY,YACnB,YAAYA,KACZ,WAAWA;AACnB;AAQO,SAASC,EAAYC,GAAO;AAC/B,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,UAAUA;AACnE;AAQO,SAASC,EAAgBD,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,WAAWA;AACpE;AAQO,SAASE,EAAiBF,GAAO;AACpC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,YAAYA;AACrE;AAQO,SAASG,EAAgBH,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,eAAeA;AACxE;AASO,SAASI,EAAaJ,GAAOK,GAAS;AACzC,SAAO,MAAM,QAAQL,CAAK,KAAKA,EAAM,MAAMK,EAAQ,MAAM;AAC7D;","x_google_ignoreList":[0]}
package/dist/index129.js CHANGED
@@ -1,43 +1,38 @@
1
- import { DayFlag as e } from "./index141.js";
2
- import { dateMatchModifiers as u } from "./index33.js";
3
- function V(b, S, h, M, a) {
4
- const { disabled: m, hidden: p, modifiers: r, showOutsideDays: y, broadcastCalendar: B, today: g = a.today() } = S, { isSameDay: v, isSameMonth: A, startOfMonth: E, isBefore: F, endOfMonth: j, isAfter: k } = a, O = h && E(h), D = M && j(M), i = {
5
- [e.focused]: [],
6
- [e.outside]: [],
7
- [e.disabled]: [],
8
- [e.hidden]: [],
9
- [e.today]: []
10
- }, d = {};
11
- for (const s of b) {
12
- const { date: o, displayMonth: n } = s, t = !!(n && !A(o, n)), f = !!(O && F(o, O)), l = !!(D && k(o, D)), w = !!(m && u(o, m, a)), x = !!(p && u(o, p, a)) || f || l || // Broadcast calendar will show outside days as default
13
- !B && !y && t || B && y === !1 && t, C = v(o, g);
14
- t && i.outside.push(s), w && i.disabled.push(s), x && i.hidden.push(s), C && i.today.push(s), r && Object.keys(r).forEach((c) => {
15
- const N = r?.[c];
16
- N && u(o, N, a) && (d[c] ? d[c].push(s) : d[c] = [s]);
17
- });
18
- }
19
- return (s) => {
20
- const o = {
21
- [e.focused]: !1,
22
- [e.disabled]: !1,
23
- [e.hidden]: !1,
24
- [e.outside]: !1,
25
- [e.today]: !1
26
- }, n = {};
27
- for (const t in i) {
28
- const f = i[t];
29
- o[t] = f.some((l) => l === s);
1
+ import { enUS as f } from "./index360.js";
2
+ import { format as n } from "./index217.js";
3
+ const s = {
4
+ ...f,
5
+ labels: {
6
+ labelDayButton: (r, a, o, e) => {
7
+ let t;
8
+ e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
9
+ let l = t(r, "PPPP");
10
+ return a.today && (l = `Today, ${l}`), a.selected && (l = `${l}, selected`), l;
11
+ },
12
+ labelMonthDropdown: "Choose the Month",
13
+ labelNext: "Go to the Next Month",
14
+ labelPrevious: "Go to the Previous Month",
15
+ labelWeekNumber: (r) => `Week ${r}`,
16
+ labelYearDropdown: "Choose the Year",
17
+ labelGrid: (r, a, o) => {
18
+ let e;
19
+ return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...a }), e(r, "LLLL yyyy");
20
+ },
21
+ labelGridcell: (r, a, o, e) => {
22
+ let t;
23
+ e && typeof e.format == "function" ? t = e.format.bind(e) : t = (m, c) => n(m, c, { locale: f, ...o });
24
+ let l = t(r, "PPPP");
25
+ return a?.today && (l = `Today, ${l}`), l;
26
+ },
27
+ labelNav: "Navigation bar",
28
+ labelWeekNumberHeader: "Week Number",
29
+ labelWeekday: (r, a, o) => {
30
+ let e;
31
+ return o && typeof o.format == "function" ? e = o.format.bind(o) : e = (t, l) => n(t, l, { locale: f, ...a }), e(r, "cccc");
30
32
  }
31
- for (const t in d)
32
- n[t] = d[t].some((f) => f === s);
33
- return {
34
- ...o,
35
- // custom modifiers should override all the previous ones
36
- ...n
37
- };
38
- };
39
- }
33
+ }
34
+ };
40
35
  export {
41
- V as createGetModifiers
36
+ s as enUS
42
37
  };
43
38
  //# sourceMappingURL=index129.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index129.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\n/**\n * Creates a function to retrieve the modifiers for a given day.\n *\n * This function calculates both internal and custom modifiers for each day\n * based on the provided calendar days and DayPicker props.\n *\n * @private\n * @param days The array of `CalendarDay` objects to process.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A function that retrieves the modifiers for a given `CalendarDay`.\n */\nexport function createGetModifiers(days, props, navStart, navEnd, dateLib) {\n const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;\n const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;\n const computedNavStart = navStart && startOfMonth(navStart);\n const computedNavEnd = navEnd && endOfMonth(navEnd);\n const internalModifiersMap = {\n [DayFlag.focused]: [],\n [DayFlag.outside]: [],\n [DayFlag.disabled]: [],\n [DayFlag.hidden]: [],\n [DayFlag.today]: [],\n };\n const customModifiersMap = {};\n for (const day of days) {\n const { date, displayMonth } = day;\n const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));\n const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));\n const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));\n const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));\n const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||\n isBeforeNavStart ||\n isAfterNavEnd ||\n // Broadcast calendar will show outside days as default\n (!broadcastCalendar && !showOutsideDays && isOutside) ||\n (broadcastCalendar && showOutsideDays === false && isOutside);\n const isToday = isSameDay(date, today);\n if (isOutside)\n internalModifiersMap.outside.push(day);\n if (isDisabled)\n internalModifiersMap.disabled.push(day);\n if (isHidden)\n internalModifiersMap.hidden.push(day);\n if (isToday)\n internalModifiersMap.today.push(day);\n // Add custom modifiers\n if (modifiers) {\n Object.keys(modifiers).forEach((name) => {\n const modifierValue = modifiers?.[name];\n const isMatch = modifierValue\n ? dateMatchModifiers(date, modifierValue, dateLib)\n : false;\n if (!isMatch)\n return;\n if (customModifiersMap[name]) {\n customModifiersMap[name].push(day);\n }\n else {\n customModifiersMap[name] = [day];\n }\n });\n }\n }\n return (day) => {\n // Initialize all the modifiers to false\n const dayFlags = {\n [DayFlag.focused]: false,\n [DayFlag.disabled]: false,\n [DayFlag.hidden]: false,\n [DayFlag.outside]: false,\n [DayFlag.today]: false,\n };\n const customModifiers = {};\n // Find the modifiers for the given day\n for (const name in internalModifiersMap) {\n const days = internalModifiersMap[name];\n dayFlags[name] = days.some((d) => d === day);\n }\n for (const name in customModifiersMap) {\n customModifiers[name] = customModifiersMap[name].some((d) => d === day);\n }\n return {\n ...dayFlags,\n // custom modifiers should override all the previous ones\n ...customModifiers,\n };\n };\n}\n"],"names":["createGetModifiers","days","props","navStart","navEnd","dateLib","disabled","hidden","modifiers","showOutsideDays","broadcastCalendar","today","isSameDay","isSameMonth","startOfMonth","isBefore","endOfMonth","isAfter","computedNavStart","computedNavEnd","internalModifiersMap","DayFlag","customModifiersMap","day","date","displayMonth","isOutside","isBeforeNavStart","isAfterNavEnd","isDisabled","dateMatchModifiers","isHidden","isToday","name","modifierValue","dayFlags","customModifiers","d"],"mappings":";;AAeO,SAASA,EAAmBC,GAAMC,GAAOC,GAAUC,GAAQC,GAAS;AACvE,QAAM,EAAE,UAAAC,GAAU,QAAAC,GAAQ,WAAAC,GAAW,iBAAAC,GAAiB,mBAAAC,GAAmB,OAAAC,IAAQN,EAAQ,MAAK,EAAE,IAAMH,GAChG,EAAE,WAAAU,GAAW,aAAAC,GAAa,cAAAC,GAAc,UAAAC,GAAU,YAAAC,GAAY,SAAAC,EAAO,IAAMZ,GAC3Ea,IAAmBf,KAAYW,EAAaX,CAAQ,GACpDgB,IAAiBf,KAAUY,EAAWZ,CAAM,GAC5CgB,IAAuB;AAAA,IACzB,CAACC,EAAQ,OAAO,GAAG,CAAA;AAAA,IACnB,CAACA,EAAQ,OAAO,GAAG,CAAA;AAAA,IACnB,CAACA,EAAQ,QAAQ,GAAG,CAAA;AAAA,IACpB,CAACA,EAAQ,MAAM,GAAG,CAAA;AAAA,IAClB,CAACA,EAAQ,KAAK,GAAG,CAAA;AAAA,EACzB,GACUC,IAAqB,CAAA;AAC3B,aAAWC,KAAOtB,GAAM;AACpB,UAAM,EAAE,MAAAuB,GAAM,cAAAC,EAAY,IAAKF,GACzBG,IAAY,GAAQD,KAAgB,CAACZ,EAAYW,GAAMC,CAAY,IACnEE,IAAmB,GAAQT,KAAoBH,EAASS,GAAMN,CAAgB,IAC9EU,IAAgB,GAAQT,KAAkBF,EAAQO,GAAML,CAAc,IACtEU,IAAa,GAAQvB,KAAYwB,EAAmBN,GAAMlB,GAAUD,CAAO,IAC3E0B,IAAW,GAAQxB,KAAUuB,EAAmBN,GAAMjB,GAAQF,CAAO,MACvEsB,KACAC;AAAA,IAEC,CAAClB,KAAqB,CAACD,KAAmBiB,KAC1ChB,KAAqBD,MAAoB,MAASiB,GACjDM,IAAUpB,EAAUY,GAAMb,CAAK;AACrC,IAAIe,KACAN,EAAqB,QAAQ,KAAKG,CAAG,GACrCM,KACAT,EAAqB,SAAS,KAAKG,CAAG,GACtCQ,KACAX,EAAqB,OAAO,KAAKG,CAAG,GACpCS,KACAZ,EAAqB,MAAM,KAAKG,CAAG,GAEnCf,KACA,OAAO,KAAKA,CAAS,EAAE,QAAQ,CAACyB,MAAS;AACrC,YAAMC,IAAgB1B,IAAYyB,CAAI;AAItC,MAHgBC,KACVJ,EAAmBN,GAAMU,GAAe7B,CAAO,MAIjDiB,EAAmBW,CAAI,IACvBX,EAAmBW,CAAI,EAAE,KAAKV,CAAG,IAGjCD,EAAmBW,CAAI,IAAI,CAACV,CAAG;AAAA,IAEvC,CAAC;AAAA,EAET;AACA,SAAO,CAACA,MAAQ;AAEZ,UAAMY,IAAW;AAAA,MACb,CAACd,EAAQ,OAAO,GAAG;AAAA,MACnB,CAACA,EAAQ,QAAQ,GAAG;AAAA,MACpB,CAACA,EAAQ,MAAM,GAAG;AAAA,MAClB,CAACA,EAAQ,OAAO,GAAG;AAAA,MACnB,CAACA,EAAQ,KAAK,GAAG;AAAA,IAC7B,GACce,IAAkB,CAAA;AAExB,eAAWH,KAAQb,GAAsB;AACrC,YAAMnB,IAAOmB,EAAqBa,CAAI;AACtC,MAAAE,EAASF,CAAI,IAAIhC,EAAK,KAAK,CAACoC,MAAMA,MAAMd,CAAG;AAAA,IAC/C;AACA,eAAWU,KAAQX;AACf,MAAAc,EAAgBH,CAAI,IAAIX,EAAmBW,CAAI,EAAE,KAAK,CAACI,MAAMA,MAAMd,CAAG;AAE1E,WAAO;AAAA,MACH,GAAGY;AAAA;AAAA,MAEH,GAAGC;AAAA,IACf;AAAA,EACI;AACJ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index129.js","sources":["../../../node_modules/react-day-picker/dist/esm/locale/en-US.js"],"sourcesContent":["import { format } from \"date-fns\";\nimport { enUS as dateFnsEnUS } from \"date-fns/locale\";\n/** English (United States) locale extended with DayPicker-specific translations. */\nexport const enUS = {\n ...dateFnsEnUS,\n labels: {\n labelDayButton: (date, modifiers, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n let label = formatDate(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n },\n labelMonthDropdown: \"Choose the Month\",\n labelNext: \"Go to the Next Month\",\n labelPrevious: \"Go to the Previous Month\",\n labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,\n labelYearDropdown: \"Choose the Year\",\n labelGrid: (date, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n return formatDate(date, \"LLLL yyyy\");\n },\n labelGridcell: (date, modifiers, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n let label = formatDate(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n },\n labelNav: \"Navigation bar\",\n labelWeekNumberHeader: \"Week Number\",\n labelWeekday: (date, options, dateLib) => {\n let formatDate;\n if (dateLib && typeof dateLib.format === \"function\") {\n formatDate = dateLib.format.bind(dateLib);\n }\n else {\n formatDate = (d, pattern) => format(d, pattern, { locale: dateFnsEnUS, ...options });\n }\n return formatDate(date, \"cccc\");\n },\n },\n};\n"],"names":["enUS","dateFnsEnUS","date","modifiers","options","dateLib","formatDate","d","pattern","format","label","weekNumber"],"mappings":";;AAGY,MAACA,IAAO;AAAA,EAChB,GAAGC;AAAAA,EACH,QAAQ;AAAA,IACJ,gBAAgB,CAACC,GAAMC,GAAWC,GAASC,MAAY;AACnD,UAAIC;AACJ,MAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE;AAEvF,UAAIM,IAAQJ,EAAWJ,GAAM,MAAM;AACnC,aAAIC,EAAU,UACVO,IAAQ,UAAUA,CAAK,KACvBP,EAAU,aACVO,IAAQ,GAAGA,CAAK,eACbA;AAAA,IACX;AAAA,IACA,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,iBAAiB,CAACC,MAAe,QAAQA,CAAU;AAAA,IACnD,mBAAmB;AAAA,IACnB,WAAW,CAACT,GAAME,GAASC,MAAY;AACnC,UAAIC;AACJ,aAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE,GAEhFE,EAAWJ,GAAM,WAAW;AAAA,IACvC;AAAA,IACA,eAAe,CAACA,GAAMC,GAAWC,GAASC,MAAY;AAClD,UAAIC;AACJ,MAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE;AAEvF,UAAIM,IAAQJ,EAAWJ,GAAM,MAAM;AACnC,aAAIC,GAAW,UACXO,IAAQ,UAAUA,CAAK,KAEpBA;AAAA,IACX;AAAA,IACA,UAAU;AAAA,IACV,uBAAuB;AAAA,IACvB,cAAc,CAACR,GAAME,GAASC,MAAY;AACtC,UAAIC;AACJ,aAAID,KAAW,OAAOA,EAAQ,UAAW,aACrCC,IAAaD,EAAQ,OAAO,KAAKA,CAAO,IAGxCC,IAAa,CAACC,GAAGC,MAAYC,EAAOF,GAAGC,GAAS,EAAE,QAAQP,GAAa,GAAGG,EAAO,CAAE,GAEhFE,EAAWJ,GAAM,MAAM;AAAA,IAClC;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
package/dist/index130.js CHANGED
@@ -1,8 +1,19 @@
1
- import { DayFlag as e, SelectionState as n, UI as d } from "./index141.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]]);
4
- }
1
+ import { formatCaption as t, formatMonthCaption as e } from "./index131.js";
2
+ import { formatDay as a } from "./index132.js";
3
+ import { formatMonthDropdown as p } from "./index133.js";
4
+ import { formatWeekdayName as x } from "./index134.js";
5
+ import { formatWeekNumber as i } from "./index135.js";
6
+ import { formatWeekNumberHeader as C } from "./index136.js";
7
+ import { formatYearCaption as N, formatYearDropdown as W } from "./index137.js";
5
8
  export {
6
- p as getClassNamesForModifiers
9
+ t as formatCaption,
10
+ a as formatDay,
11
+ e as formatMonthCaption,
12
+ p as formatMonthDropdown,
13
+ i as formatWeekNumber,
14
+ C as formatWeekNumberHeader,
15
+ x as formatWeekdayName,
16
+ N as formatYearCaption,
17
+ W as formatYearDropdown
7
18
  };
8
19
  //# sourceMappingURL=index130.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index130.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":"index130.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/dist/index131.js CHANGED
@@ -1,11 +1,10 @@
1
- import * as t from "./index101.js";
2
- function n(o) {
3
- return {
4
- ...t,
5
- ...o
6
- };
1
+ import { DateLib as r } from "./index106.js";
2
+ function a(t, o, n) {
3
+ return (n ?? new r(o)).formatMonthYear(t);
7
4
  }
5
+ const f = a;
8
6
  export {
9
- n as getComponents
7
+ a as formatCaption,
8
+ f as formatMonthCaption
10
9
  };
11
10
  //# sourceMappingURL=index131.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index131.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":"index131.js","sources":["../../../node_modules/react-day-picker/dist/esm/formatters/formatCaption.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the caption of the month.\n *\n * @defaultValue Locale-specific month/year order (e.g., \"November 2022\").\n * @param month The date representing the month.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted caption as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatCaption(month, options, dateLib) {\n const lib = dateLib ?? new DateLib(options);\n return lib.formatMonthYear(month);\n}\n/**\n * @private\n * @deprecated Use {@link formatCaption} instead.\n * @group Formatters\n */\nexport const formatMonthCaption = formatCaption;\n"],"names":["formatCaption","month","options","dateLib","DateLib","formatMonthCaption"],"mappings":";AAaO,SAASA,EAAcC,GAAOC,GAASC,GAAS;AAEnD,UADYA,KAAW,IAAIC,EAAQF,CAAO,GAC/B,gBAAgBD,CAAK;AACpC;AAMY,MAACI,IAAqBL;","x_google_ignoreList":[0]}
package/dist/index132.js CHANGED
@@ -1,17 +1,8 @@
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 { DateLib as a } from "./index106.js";
2
+ function f(r, t, o) {
3
+ return (o ?? new a(t)).format(r, "d");
13
4
  }
14
5
  export {
15
- n as getDataAttributes
6
+ f as formatDay
16
7
  };
17
8
  //# sourceMappingURL=index132.js.map