@rpcbase/ui 0.183.0 → 0.185.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 (640) hide show
  1. package/dist/index10.js +25 -24
  2. package/dist/index10.js.map +1 -1
  3. package/dist/index100.js +107 -5
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +262 -4
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +9 -4
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +42 -6
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +4 -145
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +45 -38
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +52 -5
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +4 -7
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +3 -12
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +15 -13
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js +34 -66
  24. package/dist/index11.js.map +1 -1
  25. package/dist/index110.js +5 -7
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +7 -31
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +16 -10
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +4 -10
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +4 -8
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +5 -13
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +5 -101
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +5 -20
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +4 -53
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +6 -72
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index12.js +556 -525
  46. package/dist/index12.js.map +1 -1
  47. package/dist/index120.js +24 -9
  48. package/dist/index120.js.map +1 -1
  49. package/dist/index121.js +6 -20
  50. package/dist/index121.js.map +1 -1
  51. package/dist/index122.js +4 -16
  52. package/dist/index122.js.map +1 -1
  53. package/dist/index123.js +6 -23
  54. package/dist/index123.js.map +1 -1
  55. package/dist/index124.js +5 -6
  56. package/dist/index124.js.map +1 -1
  57. package/dist/index125.js +4 -5
  58. package/dist/index125.js.map +1 -1
  59. package/dist/index126.js +5 -23
  60. package/dist/index126.js.map +1 -1
  61. package/dist/index127.js +5 -35
  62. package/dist/index127.js.map +1 -1
  63. package/dist/index128.js +9 -16
  64. package/dist/index128.js.map +1 -1
  65. package/dist/index129.js +5 -6
  66. package/dist/index129.js.map +1 -1
  67. package/dist/index13.js +128 -118
  68. package/dist/index13.js.map +1 -1
  69. package/dist/index130.js +4 -4
  70. package/dist/index130.js.map +1 -1
  71. package/dist/index131.js +4 -4
  72. package/dist/index131.js.map +1 -1
  73. package/dist/index132.js +6 -4
  74. package/dist/index132.js.map +1 -1
  75. package/dist/index133.js +145 -4
  76. package/dist/index133.js.map +1 -1
  77. package/dist/index134.js +39 -3
  78. package/dist/index134.js.map +1 -1
  79. package/dist/index135.js +4 -6
  80. package/dist/index135.js.map +1 -1
  81. package/dist/index136.js +8 -24
  82. package/dist/index136.js.map +1 -1
  83. package/dist/index137.js +13 -7
  84. package/dist/index137.js.map +1 -1
  85. package/dist/index138.js +13 -6
  86. package/dist/index138.js.map +1 -1
  87. package/dist/index139.js +7 -5
  88. package/dist/index139.js.map +1 -1
  89. package/dist/index14.js +74 -74
  90. package/dist/index14.js.map +1 -1
  91. package/dist/index140.js +31 -3
  92. package/dist/index140.js.map +1 -1
  93. package/dist/index141.js +10 -3
  94. package/dist/index141.js.map +1 -1
  95. package/dist/index142.js +10 -4
  96. package/dist/index142.js.map +1 -1
  97. package/dist/index143.js +8 -3
  98. package/dist/index143.js.map +1 -1
  99. package/dist/index144.js +13 -4
  100. package/dist/index144.js.map +1 -1
  101. package/dist/index145.js +101 -3
  102. package/dist/index145.js.map +1 -1
  103. package/dist/index146.js +20 -4
  104. package/dist/index146.js.map +1 -1
  105. package/dist/index147.js +53 -3
  106. package/dist/index147.js.map +1 -1
  107. package/dist/index148.js +71 -45
  108. package/dist/index148.js.map +1 -1
  109. package/dist/index149.js +9 -205
  110. package/dist/index149.js.map +1 -1
  111. package/dist/index15.js +763 -624
  112. package/dist/index15.js.map +1 -1
  113. package/dist/index150.js +20 -21
  114. package/dist/index150.js.map +1 -1
  115. package/dist/index151.js +16 -24
  116. package/dist/index151.js.map +1 -1
  117. package/dist/index152.js +23 -399
  118. package/dist/index152.js.map +1 -1
  119. package/dist/index153.js +6 -46
  120. package/dist/index153.js.map +1 -1
  121. package/dist/index154.js +5 -605
  122. package/dist/index154.js.map +1 -1
  123. package/dist/index155.js +23 -5
  124. package/dist/index155.js.map +1 -1
  125. package/dist/index156.js +34 -68
  126. package/dist/index156.js.map +1 -1
  127. package/dist/index157.js +16 -2
  128. package/dist/index157.js.map +1 -1
  129. package/dist/index158.js +6 -363
  130. package/dist/index158.js.map +1 -1
  131. package/dist/index159.js +4 -261
  132. package/dist/index159.js.map +1 -1
  133. package/dist/index16.js +20 -22
  134. package/dist/index16.js.map +1 -1
  135. package/dist/index160.js +4 -60
  136. package/dist/index160.js.map +1 -1
  137. package/dist/index161.js +4 -46
  138. package/dist/index161.js.map +1 -1
  139. package/dist/index162.js +4 -169
  140. package/dist/index162.js.map +1 -1
  141. package/dist/index163.js +3 -109
  142. package/dist/index163.js.map +1 -1
  143. package/dist/index164.js +6 -24
  144. package/dist/index164.js.map +1 -1
  145. package/dist/index165.js +24 -8
  146. package/dist/index165.js.map +1 -1
  147. package/dist/index166.js +7 -4
  148. package/dist/index166.js.map +1 -1
  149. package/dist/index167.js +6 -5
  150. package/dist/index167.js.map +1 -1
  151. package/dist/index168.js +5 -4
  152. package/dist/index168.js.map +1 -1
  153. package/dist/index169.js +3 -466
  154. package/dist/index169.js.map +1 -1
  155. package/dist/index17.js +17 -17
  156. package/dist/index17.js.map +1 -1
  157. package/dist/index170.js +3 -185
  158. package/dist/index170.js.map +1 -1
  159. package/dist/index171.js +4 -107
  160. package/dist/index171.js.map +1 -1
  161. package/dist/index172.js +3 -262
  162. package/dist/index172.js.map +1 -1
  163. package/dist/index173.js +4 -9
  164. package/dist/index173.js.map +1 -1
  165. package/dist/index174.js +3 -42
  166. package/dist/index174.js.map +1 -1
  167. package/dist/index175.js +3 -4
  168. package/dist/index175.js.map +1 -1
  169. package/dist/index176.js +3 -58
  170. package/dist/index176.js.map +1 -1
  171. package/dist/index177.js +46 -8
  172. package/dist/index177.js.map +1 -1
  173. package/dist/index178.js +201 -62
  174. package/dist/index178.js.map +1 -1
  175. package/dist/index179.js +22 -20
  176. package/dist/index179.js.map +1 -1
  177. package/dist/index18.js +411 -341
  178. package/dist/index18.js.map +1 -1
  179. package/dist/index180.js +24 -16
  180. package/dist/index180.js.map +1 -1
  181. package/dist/index181.js +398 -4
  182. package/dist/index181.js.map +1 -1
  183. package/dist/index182.js +604 -4
  184. package/dist/index182.js.map +1 -1
  185. package/dist/index183.js +13 -6
  186. package/dist/index183.js.map +1 -1
  187. package/dist/index184.js +154 -4
  188. package/dist/index184.js.map +1 -1
  189. package/dist/index185.js +30 -7
  190. package/dist/index185.js.map +1 -1
  191. package/dist/index186.js +9 -17
  192. package/dist/index186.js.map +1 -1
  193. package/dist/index187.js +47 -5
  194. package/dist/index187.js.map +1 -1
  195. package/dist/index188.js +11 -5
  196. package/dist/index188.js.map +1 -1
  197. package/dist/index189.js +44 -13
  198. package/dist/index189.js.map +1 -1
  199. package/dist/index19.js +626 -660
  200. package/dist/index19.js.map +1 -1
  201. package/dist/index190.js +95 -10
  202. package/dist/index190.js.map +1 -1
  203. package/dist/index191.js +86 -14
  204. package/dist/index191.js.map +1 -1
  205. package/dist/index192.js +105 -14
  206. package/dist/index192.js.map +1 -1
  207. package/dist/index193.js +52 -5
  208. package/dist/index193.js.map +1 -1
  209. package/dist/index194.js +11 -6
  210. package/dist/index194.js.map +1 -1
  211. package/dist/index195.js +37 -7
  212. package/dist/index195.js.map +1 -1
  213. package/dist/index196.js +8 -6
  214. package/dist/index196.js.map +1 -1
  215. package/dist/index197.js +116 -9
  216. package/dist/index197.js.map +1 -1
  217. package/dist/index198.js +17 -5
  218. package/dist/index198.js.map +1 -1
  219. package/dist/index199.js +15 -5
  220. package/dist/index199.js.map +1 -1
  221. package/dist/index20.js +442 -634
  222. package/dist/index20.js.map +1 -1
  223. package/dist/index200.js +3 -9
  224. package/dist/index200.js.map +1 -1
  225. package/dist/index201.js +36 -5
  226. package/dist/index201.js.map +1 -1
  227. package/dist/index202.js +20 -5
  228. package/dist/index202.js.map +1 -1
  229. package/dist/index203.js +9 -4
  230. package/dist/index203.js.map +1 -1
  231. package/dist/index204.js +8 -11
  232. package/dist/index204.js.map +1 -1
  233. package/dist/index205.js +19 -10
  234. package/dist/index205.js.map +1 -1
  235. package/dist/index206.js +28 -10
  236. package/dist/index206.js.map +1 -1
  237. package/dist/index207.js +16 -11
  238. package/dist/index207.js.map +1 -1
  239. package/dist/index208.js +58 -11
  240. package/dist/index208.js.map +1 -1
  241. package/dist/index209.js +8 -10
  242. package/dist/index209.js.map +1 -1
  243. package/dist/index21.js +254 -200
  244. package/dist/index21.js.map +1 -1
  245. package/dist/index210.js +66 -7
  246. package/dist/index210.js.map +1 -1
  247. package/dist/index211.js +19 -6
  248. package/dist/index211.js.map +1 -1
  249. package/dist/index212.js +16 -5
  250. package/dist/index212.js.map +1 -1
  251. package/dist/index213.js +5 -6
  252. package/dist/index213.js.map +1 -1
  253. package/dist/index214.js +5 -7
  254. package/dist/index214.js.map +1 -1
  255. package/dist/index215.js +6 -6
  256. package/dist/index215.js.map +1 -1
  257. package/dist/index216.js +4 -55
  258. package/dist/index216.js.map +1 -1
  259. package/dist/index217.js +7 -16
  260. package/dist/index217.js.map +1 -1
  261. package/dist/index218.js +17 -7
  262. package/dist/index218.js.map +1 -1
  263. package/dist/index219.js +5 -10
  264. package/dist/index219.js.map +1 -1
  265. package/dist/index22.js +1 -1
  266. package/dist/index22.js.map +1 -1
  267. package/dist/index220.js +5 -10
  268. package/dist/index220.js.map +1 -1
  269. package/dist/index221.js +13 -21
  270. package/dist/index221.js.map +1 -1
  271. package/dist/index222.js +10 -10
  272. package/dist/index222.js.map +1 -1
  273. package/dist/index223.js +14 -9
  274. package/dist/index223.js.map +1 -1
  275. package/dist/index224.js +14 -9
  276. package/dist/index224.js.map +1 -1
  277. package/dist/index225.js +5 -4
  278. package/dist/index225.js.map +1 -1
  279. package/dist/index226.js +6 -5
  280. package/dist/index226.js.map +1 -1
  281. package/dist/index227.js +7 -16
  282. package/dist/index227.js.map +1 -1
  283. package/dist/index228.js +6 -9
  284. package/dist/index228.js.map +1 -1
  285. package/dist/index229.js +9 -18
  286. package/dist/index229.js.map +1 -1
  287. package/dist/index23.js +27 -34
  288. package/dist/index23.js.map +1 -1
  289. package/dist/index230.js +5 -15
  290. package/dist/index230.js.map +1 -1
  291. package/dist/index231.js +5 -12
  292. package/dist/index231.js.map +1 -1
  293. package/dist/index232.js +9 -29
  294. package/dist/index232.js.map +1 -1
  295. package/dist/index233.js +5 -12
  296. package/dist/index233.js.map +1 -1
  297. package/dist/index234.js +5 -25
  298. package/dist/index234.js.map +1 -1
  299. package/dist/index235.js +4 -5
  300. package/dist/index235.js.map +1 -1
  301. package/dist/index236.js +11 -24
  302. package/dist/index236.js.map +1 -1
  303. package/dist/index237.js +10 -28
  304. package/dist/index237.js.map +1 -1
  305. package/dist/index238.js +11 -5
  306. package/dist/index238.js.map +1 -1
  307. package/dist/index239.js +11 -67
  308. package/dist/index239.js.map +1 -1
  309. package/dist/index24.js +219 -222
  310. package/dist/index24.js.map +1 -1
  311. package/dist/index240.js +11 -180
  312. package/dist/index240.js.map +1 -1
  313. package/dist/index241.js +10 -46
  314. package/dist/index241.js.map +1 -1
  315. package/dist/index242.js +7 -13
  316. package/dist/index242.js.map +1 -1
  317. package/dist/index243.js +6 -154
  318. package/dist/index243.js.map +1 -1
  319. package/dist/index244.js +5 -30
  320. package/dist/index244.js.map +1 -1
  321. package/dist/index245.js +6 -9
  322. package/dist/index245.js.map +1 -1
  323. package/dist/index246.js +7 -47
  324. package/dist/index246.js.map +1 -1
  325. package/dist/index247.js +6 -11
  326. package/dist/index247.js.map +1 -1
  327. package/dist/index248.js +54 -43
  328. package/dist/index248.js.map +1 -1
  329. package/dist/index249.js +13 -92
  330. package/dist/index249.js.map +1 -1
  331. package/dist/index25.js +46 -50
  332. package/dist/index25.js.map +1 -1
  333. package/dist/index250.js +7 -86
  334. package/dist/index250.js.map +1 -1
  335. package/dist/index251.js +8 -103
  336. package/dist/index251.js.map +1 -1
  337. package/dist/index252.js +9 -51
  338. package/dist/index252.js.map +1 -1
  339. package/dist/index253.js +21 -11
  340. package/dist/index253.js.map +1 -1
  341. package/dist/index254.js +10 -37
  342. package/dist/index254.js.map +1 -1
  343. package/dist/index255.js +8 -7
  344. package/dist/index255.js.map +1 -1
  345. package/dist/index256.js +9 -116
  346. package/dist/index256.js.map +1 -1
  347. package/dist/index257.js +4 -17
  348. package/dist/index257.js.map +1 -1
  349. package/dist/index258.js +5 -15
  350. package/dist/index258.js.map +1 -1
  351. package/dist/index259.js +16 -3
  352. package/dist/index259.js.map +1 -1
  353. package/dist/index260.js +9 -36
  354. package/dist/index260.js.map +1 -1
  355. package/dist/index261.js +18 -20
  356. package/dist/index261.js.map +1 -1
  357. package/dist/index262.js +15 -9
  358. package/dist/index262.js.map +1 -1
  359. package/dist/index263.js +12 -8
  360. package/dist/index263.js.map +1 -1
  361. package/dist/index264.js +28 -18
  362. package/dist/index264.js.map +1 -1
  363. package/dist/index265.js +11 -27
  364. package/dist/index265.js.map +1 -1
  365. package/dist/index266.js +23 -14
  366. package/dist/index266.js.map +1 -1
  367. package/dist/index267.js +5 -4
  368. package/dist/index267.js.map +1 -1
  369. package/dist/index268.js +24 -18
  370. package/dist/index268.js.map +1 -1
  371. package/dist/index269.js +29 -13
  372. package/dist/index269.js.map +1 -1
  373. package/dist/index270.js +5 -5
  374. package/dist/index270.js.map +1 -1
  375. package/dist/index271.js +68 -3
  376. package/dist/index271.js.map +1 -1
  377. package/dist/index272.js +179 -22
  378. package/dist/index272.js.map +1 -1
  379. package/dist/index273.js +43 -109
  380. package/dist/index273.js.map +1 -1
  381. package/dist/index274.js +20 -15
  382. package/dist/index274.js.map +1 -1
  383. package/dist/index275.js +4 -524
  384. package/dist/index275.js.map +1 -1
  385. package/dist/index276.js +18 -127
  386. package/dist/index276.js.map +1 -1
  387. package/dist/index277.js +12 -133
  388. package/dist/index277.js.map +1 -1
  389. package/dist/index278.js +5 -21
  390. package/dist/index278.js.map +1 -1
  391. package/dist/index279.js +3 -6
  392. package/dist/index279.js.map +1 -1
  393. package/dist/index28.js +3 -37
  394. package/dist/index28.js.map +1 -1
  395. package/dist/index280.js +23 -5
  396. package/dist/index280.js.map +1 -1
  397. package/dist/index281.js +113 -4
  398. package/dist/index281.js.map +1 -1
  399. package/dist/index282.js +15 -15
  400. package/dist/index282.js.map +1 -1
  401. package/dist/index283.js +524 -8
  402. package/dist/index283.js.map +1 -1
  403. package/dist/index284.js +127 -5
  404. package/dist/index284.js.map +1 -1
  405. package/dist/index285.js +133 -4
  406. package/dist/index285.js.map +1 -1
  407. package/dist/index286.js +5 -545
  408. package/dist/index286.js.map +1 -1
  409. package/dist/index287.js +6 -47
  410. package/dist/index287.js.map +1 -1
  411. package/dist/index288.js +4 -18
  412. package/dist/index288.js.map +1 -1
  413. package/dist/index289.js +15 -6
  414. package/dist/index289.js.map +1 -1
  415. package/dist/index29.js +37 -3
  416. package/dist/index29.js.map +1 -1
  417. package/dist/index290.js +8 -8
  418. package/dist/index290.js.map +1 -1
  419. package/dist/index291.js +5 -7
  420. package/dist/index291.js.map +1 -1
  421. package/dist/index292.js +4 -8
  422. package/dist/index292.js.map +1 -1
  423. package/dist/index293.js +545 -12
  424. package/dist/index293.js.map +1 -1
  425. package/dist/index294.js +47 -10
  426. package/dist/index294.js.map +1 -1
  427. package/dist/index295.js +17 -13
  428. package/dist/index295.js.map +1 -1
  429. package/dist/index296.js +7 -69
  430. package/dist/index296.js.map +1 -1
  431. package/dist/index297.js +9 -9
  432. package/dist/index297.js.map +1 -1
  433. package/dist/index298.js +8 -14
  434. package/dist/index298.js.map +1 -1
  435. package/dist/index299.js +9 -66
  436. package/dist/index299.js.map +1 -1
  437. package/dist/index3.js.map +1 -1
  438. package/dist/index30.js +3 -125
  439. package/dist/index30.js.map +1 -1
  440. package/dist/index300.js +12 -64
  441. package/dist/index300.js.map +1 -1
  442. package/dist/index301.js +9 -4
  443. package/dist/index301.js.map +1 -1
  444. package/dist/index302.js +14 -56
  445. package/dist/index302.js.map +1 -1
  446. package/dist/index303.js +65 -68
  447. package/dist/index303.js.map +1 -1
  448. package/dist/index304.js +68 -30
  449. package/dist/index304.js.map +1 -1
  450. package/dist/index305.js +9 -9
  451. package/dist/index305.js.map +1 -1
  452. package/dist/index306.js +13 -152
  453. package/dist/index306.js.map +1 -1
  454. package/dist/index307.js +65 -107
  455. package/dist/index307.js.map +1 -1
  456. package/dist/index308.js +4 -3
  457. package/dist/index308.js.map +1 -1
  458. package/dist/index309.js +56 -23
  459. package/dist/index309.js.map +1 -1
  460. package/dist/index31.js +120 -227
  461. package/dist/index31.js.map +1 -1
  462. package/dist/index310.js +68 -16
  463. package/dist/index310.js.map +1 -1
  464. package/dist/index311.js +31 -29
  465. package/dist/index311.js.map +1 -1
  466. package/dist/index312.js +9 -13
  467. package/dist/index312.js.map +1 -1
  468. package/dist/index313.js +153 -7
  469. package/dist/index313.js.map +1 -1
  470. package/dist/index314.js +107 -22
  471. package/dist/index314.js.map +1 -1
  472. package/dist/index315.js +4 -13
  473. package/dist/index315.js.map +1 -1
  474. package/dist/index316.js +22 -27
  475. package/dist/index316.js.map +1 -1
  476. package/dist/index317.js +16 -5
  477. package/dist/index317.js.map +1 -1
  478. package/dist/index318.js +32 -0
  479. package/dist/index318.js.map +1 -0
  480. package/dist/index319.js +16 -0
  481. package/dist/index319.js.map +1 -0
  482. package/dist/index32.js +229 -21
  483. package/dist/index32.js.map +1 -1
  484. package/dist/index320.js +10 -0
  485. package/dist/index320.js.map +1 -0
  486. package/dist/index321.js +26 -0
  487. package/dist/index321.js.map +1 -0
  488. package/dist/index322.js +16 -0
  489. package/dist/index322.js.map +1 -0
  490. package/dist/index323.js +31 -0
  491. package/dist/index323.js.map +1 -0
  492. package/dist/index324.js +8 -0
  493. package/dist/index324.js.map +1 -0
  494. package/dist/index33.js +23 -50
  495. package/dist/index33.js.map +1 -1
  496. package/dist/index34.js +50 -2640
  497. package/dist/index34.js.map +1 -1
  498. package/dist/index35.js +2598 -351
  499. package/dist/index35.js.map +1 -1
  500. package/dist/index36.js +375 -214
  501. package/dist/index36.js.map +1 -1
  502. package/dist/index37.js +230 -19
  503. package/dist/index37.js.map +1 -1
  504. package/dist/index38.js +18 -138
  505. package/dist/index38.js.map +1 -1
  506. package/dist/index39.js +113 -170
  507. package/dist/index39.js.map +1 -1
  508. package/dist/index4.js +17 -15
  509. package/dist/index4.js.map +1 -1
  510. package/dist/index40.js +209 -64
  511. package/dist/index40.js.map +1 -1
  512. package/dist/index41.js +86 -94
  513. package/dist/index41.js.map +1 -1
  514. package/dist/index42.js +118 -5
  515. package/dist/index42.js.map +1 -1
  516. package/dist/index43.js +5 -843
  517. package/dist/index43.js.map +1 -1
  518. package/dist/index44.js +832 -54
  519. package/dist/index44.js.map +1 -1
  520. package/dist/index45.js +57 -8
  521. package/dist/index45.js.map +1 -1
  522. package/dist/index46.js +8 -2
  523. package/dist/index46.js.map +1 -1
  524. package/dist/index47.js +2 -24
  525. package/dist/index47.js.map +1 -1
  526. package/dist/index48.js +11 -233
  527. package/dist/index48.js.map +1 -1
  528. package/dist/index49.js +19 -205
  529. package/dist/index49.js.map +1 -1
  530. package/dist/index5.js +34 -34
  531. package/dist/index5.js.map +1 -1
  532. package/dist/index50.js +7 -3
  533. package/dist/index50.js.map +1 -1
  534. package/dist/index51.js +2 -7
  535. package/dist/index51.js.map +1 -1
  536. package/dist/index52.js +22 -46
  537. package/dist/index52.js.map +1 -1
  538. package/dist/index53.js +232 -25
  539. package/dist/index53.js.map +1 -1
  540. package/dist/index54.js +50 -47
  541. package/dist/index54.js.map +1 -1
  542. package/dist/index55.js +2 -8
  543. package/dist/index55.js.map +1 -1
  544. package/dist/index56.js +2 -15
  545. package/dist/index56.js.map +1 -1
  546. package/dist/index57.js +5 -133
  547. package/dist/index57.js.map +1 -1
  548. package/dist/index58.js +7 -10
  549. package/dist/index58.js.map +1 -1
  550. package/dist/index59.js +5 -216
  551. package/dist/index59.js.map +1 -1
  552. package/dist/index6.js +154 -120
  553. package/dist/index6.js.map +1 -1
  554. package/dist/index60.js +2 -13
  555. package/dist/index60.js.map +1 -1
  556. package/dist/index61.js +2 -34
  557. package/dist/index61.js.map +1 -1
  558. package/dist/index62.js +6 -46
  559. package/dist/index62.js.map +1 -1
  560. package/dist/index63.js +33 -7
  561. package/dist/index63.js.map +1 -1
  562. package/dist/index64.js +24 -47
  563. package/dist/index64.js.map +1 -1
  564. package/dist/index65.js +8 -4
  565. package/dist/index65.js.map +1 -1
  566. package/dist/index66.js +11 -5
  567. package/dist/index66.js.map +1 -1
  568. package/dist/index67.js +202 -25
  569. package/dist/index67.js.map +1 -1
  570. package/dist/index68.js +4 -50
  571. package/dist/index68.js.map +1 -1
  572. package/dist/index69.js +48 -9
  573. package/dist/index69.js.map +1 -1
  574. package/dist/index7.js +29 -24
  575. package/dist/index7.js.map +1 -1
  576. package/dist/index70.js +49 -10
  577. package/dist/index70.js.map +1 -1
  578. package/dist/index71.js +7 -53
  579. package/dist/index71.js.map +1 -1
  580. package/dist/index72.js +14 -5
  581. package/dist/index72.js.map +1 -1
  582. package/dist/index73.js +133 -7
  583. package/dist/index73.js.map +1 -1
  584. package/dist/index74.js +10 -5
  585. package/dist/index74.js.map +1 -1
  586. package/dist/index75.js +217 -2
  587. package/dist/index75.js.map +1 -1
  588. package/dist/index76.js +13 -2
  589. package/dist/index76.js.map +1 -1
  590. package/dist/index77.js +47 -52
  591. package/dist/index77.js.map +1 -1
  592. package/dist/index78.js +49 -4
  593. package/dist/index78.js.map +1 -1
  594. package/dist/index79.js +4 -5
  595. package/dist/index79.js.map +1 -1
  596. package/dist/index8.js +21 -24
  597. package/dist/index8.js.map +1 -1
  598. package/dist/index80.js +5 -15
  599. package/dist/index80.js.map +1 -1
  600. package/dist/index81.js +28 -6
  601. package/dist/index81.js.map +1 -1
  602. package/dist/index82.js +50 -8
  603. package/dist/index82.js.map +1 -1
  604. package/dist/index83.js +9 -17
  605. package/dist/index83.js.map +1 -1
  606. package/dist/index84.js +5 -4
  607. package/dist/index84.js.map +1 -1
  608. package/dist/index85.js +68 -4
  609. package/dist/index85.js.map +1 -1
  610. package/dist/index86.js +2 -6
  611. package/dist/index86.js.map +1 -1
  612. package/dist/index87.js +363 -5
  613. package/dist/index87.js.map +1 -1
  614. package/dist/index88.js +261 -4
  615. package/dist/index88.js.map +1 -1
  616. package/dist/index89.js +60 -4
  617. package/dist/index89.js.map +1 -1
  618. package/dist/index9.js +138 -187
  619. package/dist/index9.js.map +1 -1
  620. package/dist/index90.js +46 -6
  621. package/dist/index90.js.map +1 -1
  622. package/dist/index91.js +169 -24
  623. package/dist/index91.js.map +1 -1
  624. package/dist/index92.js +109 -6
  625. package/dist/index92.js.map +1 -1
  626. package/dist/index93.js +24 -4
  627. package/dist/index93.js.map +1 -1
  628. package/dist/index94.js +8 -7
  629. package/dist/index94.js.map +1 -1
  630. package/dist/index95.js +4 -5
  631. package/dist/index95.js.map +1 -1
  632. package/dist/index96.js +5 -4
  633. package/dist/index96.js.map +1 -1
  634. package/dist/index97.js +4 -5
  635. package/dist/index97.js.map +1 -1
  636. package/dist/index98.js +466 -4
  637. package/dist/index98.js.map +1 -1
  638. package/dist/index99.js +185 -8
  639. package/dist/index99.js.map +1 -1
  640. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index12.js","sources":["../src/components/DayPickerField/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, CalendarDays } from \"lucide-react\"\nimport * as React from \"react\"\nimport { DismissableLayerBranch } from \"@radix-ui/react-dismissable-layer\"\nimport { createPortal } from \"react-dom\"\nimport { DayPicker as ReactDayPicker, dateMatchModifiers } from \"react-day-picker\"\nimport { IMaskInput } from \"react-imask\"\nimport IMask, { InputMask } from \"imask\"\n\nimport { useIsTouchDevice } from \"@/helpers/useIsTouchDevice\"\nimport { cn } from \"@/lib/utils\"\n\n\n// WARNING: used to preserve input mask even with tree shaking\n// DO NOT REMOVE THIS CODE OR THIS COMMENT\nconst imaskAny = IMask as any\nif (typeof imaskAny.InputMask !== \"function\") {\n imaskAny.InputMask = InputMask\n}\n\n\nexport type DayPickerProps = React.ComponentProps<typeof ReactDayPicker>\n\nexport function DayPicker({\n className,\n classNames,\n components,\n showOutsideDays = true,\n ...props\n}: DayPickerProps) {\n return (\n <ReactDayPicker\n weekStartsOn={1}\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n month: \"space-y-4\",\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n month_grid: \"w-full border-collapse space-y-1\",\n caption_label: \"text-sm font-medium\",\n nav: \"flex items-center justify-between absolute inset-x-0 z-10\",\n button_previous:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n button_next:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n weeks: \"w-full border-collapse\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n day: \"h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md\",\n day_button:\n \"inline-flex h-9 w-9 items-center justify-center rounded-md p-0 text-center text-sm font-normal transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n range_start:\n \"day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_end:\n \"day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent text-accent-foreground\",\n day_outside: \"day-outside text-muted-foreground aria-selected:text-muted-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_hidden: \"invisible\",\n selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-gray-50 text-accent-foreground !rounded-md\",\n outside:\n \"day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: (chevronProps) =>\n chevronProps.orientation === \"left\" ? (\n <ChevronLeft {...chevronProps} className=\"h-4 w-4\" />\n ) : (\n <ChevronRight {...chevronProps} className=\"h-4 w-4\" />\n ),\n ...components,\n }}\n {...props}\n />\n )\n}\n\nDayPicker.displayName = \"DayPicker\"\n\nfunction pad2(value: number) {\n return String(value).padStart(2, \"0\")\n}\n\nfunction startOfDay(date: Date) {\n const next = new Date(date)\n next.setHours(0, 0, 0, 0)\n return next\n}\n\nfunction startOfMonth(date: Date) {\n return startOfDay(new Date(date.getFullYear(), date.getMonth(), 1))\n}\n\nfunction formatDayInput(date: Date) {\n return `${pad2(date.getDate())}/${pad2(date.getMonth() + 1)}/${date.getFullYear()}`\n}\n\nfunction buildDate({ day, month, year }: { day: number; month: number; year: number }): Date | null {\n if (!Number.isFinite(day) || !Number.isFinite(month) || !Number.isFinite(year)) return null\n\n const date = new Date(year, month - 1, day)\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null\n }\n\n return startOfDay(date)\n}\n\nfunction parseDayInput(value: string, now: Date): Date | null {\n const trimmed = value.trim()\n if (!trimmed) return null\n\n const full = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(trimmed)\n if (full) {\n return buildDate({ day: Number(full[1]), month: Number(full[2]), year: Number(full[3]) })\n }\n\n const shortYear = /^(\\d{2})\\/(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (shortYear) {\n const year = Number(shortYear[3])\n if (!Number.isFinite(year)) return null\n return buildDate({ day: Number(shortYear[1]), month: Number(shortYear[2]), year: 2000 + year })\n }\n\n const noYear = /^(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (noYear) {\n return buildDate({ day: Number(noYear[1]), month: Number(noYear[2]), year: now.getFullYear() })\n }\n\n return null\n}\n\nexport type DayPickerInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"value\" | \"defaultValue\" | \"onChange\" | \"type\"\n> & {\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n inputClassName?: string\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n}\n\nexport const DayPickerInput = React.forwardRef<HTMLInputElement, DayPickerInputProps>(\n function DayPickerInput(\n {\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n onFocus,\n onBlur,\n onKeyDown,\n onPointerDown,\n onMouseDown,\n ...rest\n },\n forwardedRef,\n\t\t ) {\n\t\t const rootRef = React.useRef<HTMLDivElement | null>(null)\n\t\t const popoverRef = React.useRef<HTMLDivElement | null>(null)\n\t\t\t const inputRef = React.useRef<HTMLInputElement | null>(null)\n\t\t\t const isFocusedRef = React.useRef(false)\n\t\t\t const pointerDownOnInputRef = React.useRef(false)\n\t\t\t const inputWasFocusedOnPointerDownRef = React.useRef(false)\n\t const pointerDownInPopoverRef = React.useRef(false)\n const ignoreNextMaskCompleteValueRef = React.useRef<string | null>(null)\n\n\t const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n\t const open = openProp ?? uncontrolledOpen\n\t const setOpen = onOpenChange ?? setUncontrolledOpen\n\t const [draft, setDraft] = React.useState(() => (value ? formatDayInput(value) : \"\"))\n const draftSelection = React.useMemo(() => parseDayInput(draft, new Date()), [draft])\n\t\t const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n\t\t const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n\t\t left: 0,\n\t top: 0,\n\t }))\n\n\t const updateValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n },\n [onValueUpdate],\n )\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n React.useEffect(() => {\n if (isFocusedRef.current) return\n setDraft(value ? formatDayInput(value) : \"\")\n }, [value])\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n if (!draftSelection) return\n setMonth(startOfMonth(draftSelection))\n }, [draftSelection, open])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const setRefs = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof forwardedRef === \"function\") {\n forwardedRef(node)\n } else if (forwardedRef) {\n forwardedRef.current = node\n }\n },\n [forwardedRef],\n )\n\n const closePopover = () => setOpen(false)\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t\t // React Compiler rejects hook aliasing (useIsomorphicLayoutEffect pattern), so we\n\t\t // call useLayoutEffect directly and keep the SSR guard inside the effect.\n\t\t React.useLayoutEffect(() => {\n\t\t if (!open || disabled) return\n\t\t if (typeof window === \"undefined\") return\n\n\t updatePopoverPosition()\n\t const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n\t window.addEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.addEventListener(\"resize\", updatePopoverPosition)\n\t return () => {\n\t window.cancelAnimationFrame(rafId)\n\t window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.removeEventListener(\"resize\", updatePopoverPosition)\n\t }\n\t }, [disabled, open, updatePopoverPosition])\n\n\t return (\n\t <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n\t\t <IMaskInput\n\t\t {...rest}\n\t\t data-slot=\"day-picker-input-input\"\n disabled={disabled}\n readOnly={readOnly}\n autoComplete=\"off\"\n inputRef={setRefs}\n mask={[\n { mask: \"00/00\", lazy: true },\n { mask: \"00/00/00\", lazy: true },\n { mask: \"00/00/0000\", lazy: true },\n ]}\n dispatch={(appended, dynamicMasked) => {\n const digits = (dynamicMasked.value + appended).replace(/\\D/g, \"\")\n if (digits.length <= 4) return dynamicMasked.compiledMasks[0]\n if (digits.length <= 6) return dynamicMasked.compiledMasks[1]\n return dynamicMasked.compiledMasks[2]\n }}\n\t placeholder={placeholder}\n\t value={draft}\n\t\t className={cn(\n\t\t \"flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n\t\t \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n\t\t inputClassName\n\t\t )}\n onAccept={(nextValue) => {\n const next = typeof nextValue === \"string\" ? nextValue : String(nextValue ?? \"\")\n const previousDigitsLength = draft.replace(/\\D/g, \"\").length\n setDraft(next)\n if (next.replace(/\\D/g, \"\").length === 0) {\n if (open) {\n setMonth(startOfMonth(new Date()))\n }\n if (previousDigitsLength !== 0) {\n updateValue(null)\n }\n }\n }}\n\t onComplete={(completedValue) => {\n\t const next = typeof completedValue === \"string\"\n\t ? completedValue\n\t : String(completedValue ?? \"\")\n if (ignoreNextMaskCompleteValueRef.current === next) {\n ignoreNextMaskCompleteValueRef.current = null\n return\n }\n\t const parsed = parseDayInput(next, new Date())\n\t if (!parsed) return\n\t if (value && parsed.getTime() === startOfDay(value).getTime()) {\n\t return\n\t }\n updateValue(parsed)\n }}\n\t onPointerDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onPointerDown?.(event)\n\t }}\n\t onMouseDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onMouseDown?.(event)\n\t }}\n onFocus={(event) => {\n const shouldSelectAll =\n !pointerDownOnInputRef.current || !inputWasFocusedOnPointerDownRef.current\n pointerDownOnInputRef.current = false\n inputWasFocusedOnPointerDownRef.current = false\n\t isFocusedRef.current = true\n\t onFocus?.(event)\n\t if (shouldSelectAll) {\n\t const element = event.currentTarget\n\t requestAnimationFrame(() => element.select())\n }\n if (!disabled) {\n setOpen(true)\n }\n }}\n\t onKeyDown={(event) => {\n\t const wasDefaultPrevented = event.defaultPrevented\n\t onKeyDown?.(event)\n\t if (!wasDefaultPrevented && event.defaultPrevented) {\n\t return\n\t }\n\n\t\t if (event.key === \"Enter\") {\n\t\t if (!draftSelection) {\n\t\t return\n\t\t }\n\t\t event.preventDefault()\n if (open) {\n const isoDay = `${draftSelection.getFullYear()}-${pad2(draftSelection.getMonth() + 1)}-${pad2(draftSelection.getDate())}`\n const dayButton = popoverRef.current?.querySelector(\n `[data-day='${isoDay}']:not([data-outside]) button`,\n )\n if (dayButton instanceof HTMLButtonElement) {\n if (dayButton.disabled) {\n return\n }\n dayButton.focus()\n }\n }\n\t\t\t setDraft(formatDayInput(draftSelection))\n\t\t\t commitValue(draftSelection)\n\t\t\t setOpen(false)\n\t\t return\n\t\t }\n\n if (event.key === \"ArrowUp\" || event.key === \"ArrowDown\") {\n const base = draftSelection ?? value\n if (!base) {\n return\n }\n\n const next = startOfDay(new Date(base))\n next.setDate(next.getDate() + (event.key === \"ArrowUp\" ? 1 : -1))\n\n if (dayPickerProps?.disabled && dateMatchModifiers(next, dayPickerProps.disabled)) {\n return\n }\n\n event.preventDefault()\n const formatted = formatDayInput(next)\n ignoreNextMaskCompleteValueRef.current = formatted\n setDraft(formatted)\n updateValue(next)\n return\n }\n\n if (!open) {\n const shouldReopen =\n (event.key.length === 1 || event.key === \"Backspace\" || event.key === \"Delete\") &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n\n if (shouldReopen) {\n setOpen(true)\n }\n }\n\n\t if (event.key === \"Tab\" && !event.defaultPrevented) {\n\t setOpen(false)\n\t }\n\t }}\n\t onBlur={(event) => {\n\t isFocusedRef.current = false\n\t onBlur?.(event)\n const blurFromPopoverPointerDown = pointerDownInPopoverRef.current\n pointerDownInPopoverRef.current = false\n if (blurFromPopoverPointerDown) {\n return\n }\n\n const relatedTarget = event.relatedTarget\n if (relatedTarget instanceof Node) {\n const root = rootRef.current\n if (!root) {\n return\n }\n\n if (root.contains(relatedTarget) || popoverRef.current?.contains(relatedTarget)) {\n return\n }\n }\n\n\t if (open && typeof window !== \"undefined\") {\n\t requestAnimationFrame(() => {\n const root = rootRef.current\n if (!root) {\n return\n }\n const activeElement = document.activeElement\n if (\n activeElement &&\n (root.contains(activeElement) || popoverRef.current?.contains(activeElement))\n ) {\n return\n }\n setOpen(false)\n })\n\t }\n\t const trimmed = draft.trim()\n\t if (trimmed === \"\") {\n if (value) {\n setDraft(\"\")\n commitValue(null)\n }\n\t return\n\t }\n\t const parsed = parseDayInput(trimmed, new Date())\n\t if (parsed) {\n\t setDraft(formatDayInput(parsed))\n\t if (!value || parsed.getTime() !== startOfDay(value).getTime()) {\n\t commitValue(parsed)\n }\n return\n }\n setDraft(value ? formatDayInput(value) : \"\")\n\t\t }}\n\t\t />\n\n <button\n type=\"button\"\n tabIndex={-1}\n disabled={disabled}\n aria-label=\"Open calendar\"\n data-slot=\"day-picker-input-trigger\"\n className=\"absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n onPointerDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onMouseDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onClick={() => {\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n setOpen(true)\n }}\n >\n <CalendarDays aria-hidden className=\"size-4\" />\n </button>\n\n {open && !disabled && (() => {\n const selectedDay = draft.trim() === \"\"\n ? undefined\n : draftSelection ?? value ?? undefined\n\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n onPointerDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n onMouseDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={selectedDay}\n onSelect={(date) => {\n if (!date) {\n if (value) {\n commitValue(null)\n }\n setDraft(\"\")\n closePopover()\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setDraft(formatDayInput(normalized))\n closePopover()\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n }\n)\n\nDayPickerInput.displayName = \"DayPickerInput\"\n\nexport type DayPickerFieldProps = {\n id?: string\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n className?: string\n inputClassName?: string\n placeholder?: string\n disabled?: boolean\n readOnly?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n triggerTestId?: string\n isHydrated?: boolean\n}\n\nfunction DayPickerButtonField({\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n}: DayPickerFieldProps) {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const popoverRef = React.useRef<HTMLDivElement | null>(null)\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n const open = openProp ?? uncontrolledOpen\n const setOpen = onOpenChange ?? setUncontrolledOpen\n const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n left: 0,\n top: 0,\n }))\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t // React Compiler rejects hook aliasing (useIsomorphicLayoutEffect pattern), so we\n\t // call useLayoutEffect directly and keep the SSR guard inside the effect.\n\t React.useLayoutEffect(() => {\n\t if (!open || disabled) return\n\t if (typeof window === \"undefined\") return\n\n updatePopoverPosition()\n const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n window.addEventListener(\"scroll\", updatePopoverPosition, true)\n window.addEventListener(\"resize\", updatePopoverPosition)\n return () => {\n window.cancelAnimationFrame(rafId)\n window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n window.removeEventListener(\"resize\", updatePopoverPosition)\n }\n }, [disabled, open, updatePopoverPosition])\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n return (\n <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n <button\n id={id}\n type=\"button\"\n disabled={disabled}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n data-slot=\"day-picker-input-input\"\n className={cn(\n \"flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-left text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n !value && \"text-muted-foreground\",\n open && \"ring-2 ring-primary ring-offset-2\",\n inputClassName,\n )}\n onClick={() => {\n if (disabled) return\n setOpen(!open)\n }}\n >\n <CalendarDays\n aria-hidden\n className=\"mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n />\n {value ? formatDayInput(value) : placeholder}\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n commitValue(null)\n setOpen(false)\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setOpen(false)\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n}\n\nexport function DayPickerField(props: DayPickerFieldProps) {\n const isTouchDevice = useIsTouchDevice()\n\n if (isTouchDevice) {\n return <DayPickerButtonField {...props} />\n }\n\n const {\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n open,\n onOpenChange,\n } = props\n\n return (\n <DayPickerInput\n id={id}\n value={value}\n onChange={onChange}\n onValueUpdate={onValueUpdate}\n className={className}\n inputClassName={inputClassName}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n open={open}\n onOpenChange={onOpenChange}\n dayPickerComponent={dayPickerComponent}\n dayPickerProps={dayPickerProps}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n />\n )\n}\n"],"names":["imaskAny","IMask","InputMask","DayPicker","className","classNames","components","showOutsideDays","props","jsx","ReactDayPicker","cn","chevronProps","ChevronLeft","ChevronRight","pad2","value","startOfDay","date","next","startOfMonth","formatDayInput","buildDate","day","month","year","parseDayInput","now","trimmed","full","shortYear","noYear","DayPickerInput","React","onChange","onValueUpdate","inputClassName","placeholder","disabled","readOnly","openProp","onOpenChange","dayPickerComponent","dayPickerProps","onFocus","onBlur","onKeyDown","onPointerDown","onMouseDown","rest","forwardedRef","rootRef","popoverRef","inputRef","isFocusedRef","pointerDownOnInputRef","inputWasFocusedOnPointerDownRef","pointerDownInPopoverRef","ignoreNextMaskCompleteValueRef","uncontrolledOpen","setUncontrolledOpen","open","setOpen","draft","setDraft","draftSelection","setMonth","popoverPosition","setPopoverPosition","updateValue","commitValue","handlePointerDown","event","target","handleKeyDown","root","isActive","observer","entries","entry","setRefs","node","closePopover","DayPickerComponent","updatePopoverPosition","popover","rect","popoverWidth","popoverHeight","viewportWidth","viewportHeight","padding","left","top","overflowBottom","aboveTop","rafId","jsxs","IMaskInput","appended","dynamicMasked","digits","nextValue","previousDigitsLength","completedValue","parsed","shouldSelectAll","element","wasDefaultPrevented","isoDay","dayButton","base","dateMatchModifiers","formatted","blurFromPopoverPointerDown","relatedTarget","activeElement","CalendarDays","selectedDay","DismissableLayerBranch","normalized","createPortal","DayPickerButtonField","id","triggerTestId","isHydrated","DayPickerField","useIsTouchDevice"],"mappings":";;;;;;;;;;;AAcA,MAAMA,KAAWC;AACb,OAAOD,GAAS,aAAc,eAChCA,GAAS,YAAYE;AAMhB,SAASC,GAAU;AAAA,EACxB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAmB;AACjB,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,iBAAAH;AAAA,MACA,WAAWI,EAAG,OAAOP,CAAS;AAAA,MAC9B,YAAY;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,KAAK;AAAA,QACL,iBACE;AAAA,QACF,aACE;AAAA,QACF,OAAO;AAAA,QACP,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAM;AAAA,QACN,KAAK;AAAA,QACL,YACE;AAAA,QACF,aACE;AAAA,QACF,WACE;AAAA,QACF,cAAc;AAAA,QACd,cACE;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MAAA,GAEJ;AAGF,aAAI,OAAO,WAAa,MAAoB0C,IACrCoC,GAAapC,GAAS,SAAS,IAAI;AAAA,IAC5C,GAAA;AAAA,EAAG,GACL;AAEJ;AAEO,SAASyC,GAAetH,GAA4B;AAGzD,MAFsBuH,GAAA;AAGpB,WAAOtH,gBAAAA,MAACiH,IAAA,EAAsB,GAAGlH,EAAA,CAAO;AAG1C,QAAM;AAAA,IACJ,IAAAmH;AAAA,IACA,OAAA3G;AAAA,IACA,UAAAkB;AAAA,IACA,eAAAC;AAAA,IACA,WAAA/B;AAAA,IACA,gBAAAgC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAG;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAiF;AAAA,IACA,YAAAC;AAAA,IACA,MAAAhE;AAAA,IACA,cAAApB;AAAA,EAAA,IACEjC;AAEJ,SACEC,gBAAAA,EAAAA;AAAAA,IAACuB;AAAA,IAAA;AAAA,MACC,IAAA2F;AAAA,MACA,OAAA3G;AAAA,MACA,UAAAkB;AAAA,MACA,eAAAC;AAAA,MACA,WAAA/B;AAAA,MACA,gBAAAgC;AAAA,MACA,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,MAAAsB;AAAA,MACA,cAAApB;AAAA,MACA,oBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,eAAaiF;AAAA,MACb,iBAAeC,IAAa,SAAS;AAAA,IAAA;AAAA,EAAA;AAG3C;"}
1
+ {"version":3,"file":"index12.js","sources":["../src/components/DayPickerField/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, CalendarDays } from \"lucide-react\"\nimport * as React from \"react\"\nimport { DismissableLayerBranch } from \"@radix-ui/react-dismissable-layer\"\nimport { createPortal } from \"react-dom\"\nimport { DayPicker as ReactDayPicker, dateMatchModifiers } from \"react-day-picker\"\nimport { IMaskInput } from \"react-imask\"\nimport IMask, { InputMask } from \"imask\"\n\nimport { useIsTouchDevice } from \"@/helpers/useIsTouchDevice\"\nimport { cn } from \"@/lib/utils\"\n\n\n// WARNING: used to preserve input mask even with tree shaking\n// DO NOT REMOVE THIS CODE OR THIS COMMENT\nconst imaskAny = IMask as any\nif (typeof imaskAny.InputMask !== \"function\") {\n imaskAny.InputMask = InputMask\n}\n\n\nexport type DayPickerProps = React.ComponentProps<typeof ReactDayPicker>\n\nexport function DayPicker({\n className,\n classNames,\n components,\n showOutsideDays = true,\n ...props\n}: DayPickerProps) {\n return (\n <ReactDayPicker\n weekStartsOn={1}\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n month: \"space-y-4\",\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n month_grid: \"w-full border-collapse space-y-1\",\n caption_label: \"text-sm font-medium\",\n nav: \"flex items-center justify-between absolute inset-x-0 z-10\",\n button_previous:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n button_next:\n \"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10\",\n weeks: \"w-full border-collapse\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n day: \"h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md\",\n day_button:\n \"inline-flex h-9 w-9 items-center justify-center rounded-md p-0 text-center text-sm font-normal transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n range_start:\n \"day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_end:\n \"day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent text-accent-foreground\",\n day_outside: \"day-outside text-muted-foreground aria-selected:text-muted-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_hidden: \"invisible\",\n selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-gray-50 text-accent-foreground !rounded-md\",\n outside:\n \"day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: (chevronProps) =>\n chevronProps.orientation === \"left\" ? (\n <ChevronLeft {...chevronProps} className=\"h-4 w-4\" />\n ) : (\n <ChevronRight {...chevronProps} className=\"h-4 w-4\" />\n ),\n ...components,\n }}\n {...props}\n />\n )\n}\n\nDayPicker.displayName = \"DayPicker\"\n\nfunction pad2(value: number) {\n return String(value).padStart(2, \"0\")\n}\n\nfunction startOfDay(date: Date) {\n const next = new Date(date)\n next.setHours(0, 0, 0, 0)\n return next\n}\n\nfunction startOfMonth(date: Date) {\n return startOfDay(new Date(date.getFullYear(), date.getMonth(), 1))\n}\n\nfunction formatDayInput(date: Date) {\n return `${pad2(date.getDate())}/${pad2(date.getMonth() + 1)}/${date.getFullYear()}`\n}\n\nfunction buildDate({ day, month, year }: { day: number; month: number; year: number }): Date | null {\n if (!Number.isFinite(day) || !Number.isFinite(month) || !Number.isFinite(year)) return null\n\n const date = new Date(year, month - 1, day)\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null\n }\n\n return startOfDay(date)\n}\n\nfunction parseDayInput(value: string, now: Date): Date | null {\n const trimmed = value.trim()\n if (!trimmed) return null\n\n const full = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(trimmed)\n if (full) {\n return buildDate({ day: Number(full[1]), month: Number(full[2]), year: Number(full[3]) })\n }\n\n const shortYear = /^(\\d{2})\\/(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (shortYear) {\n const year = Number(shortYear[3])\n if (!Number.isFinite(year)) return null\n return buildDate({ day: Number(shortYear[1]), month: Number(shortYear[2]), year: 2000 + year })\n }\n\n const noYear = /^(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (noYear) {\n return buildDate({ day: Number(noYear[1]), month: Number(noYear[2]), year: now.getFullYear() })\n }\n\n return null\n}\n\nexport type DayPickerInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"value\" | \"defaultValue\" | \"onChange\" | \"type\"\n> & {\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n inputClassName?: string\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n}\n\nexport const DayPickerInput = React.forwardRef<HTMLInputElement, DayPickerInputProps>(\n function DayPickerInput(\n {\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n onFocus,\n onBlur,\n onKeyDown,\n onPointerDown,\n onMouseDown,\n ...rest\n },\n forwardedRef,\n\t\t ) {\n\t\t const rootRef = React.useRef<HTMLDivElement | null>(null)\n\t\t const popoverRef = React.useRef<HTMLDivElement | null>(null)\n\t\t\t const inputRef = React.useRef<HTMLInputElement | null>(null)\n\t\t\t const isFocusedRef = React.useRef(false)\n\t\t\t const pointerDownOnInputRef = React.useRef(false)\n\t\t\t const inputWasFocusedOnPointerDownRef = React.useRef(false)\n\t const pointerDownInPopoverRef = React.useRef(false)\n const ignoreNextMaskCompleteValueRef = React.useRef<string | null>(null)\n\n\t const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n\t const open = openProp ?? uncontrolledOpen\n\t const setOpen = onOpenChange ?? setUncontrolledOpen\n\t const [draft, setDraft] = React.useState(() => (value ? formatDayInput(value) : \"\"))\n const draftSelection = React.useMemo(() => parseDayInput(draft, new Date()), [draft])\n\t\t const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n\t\t const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n\t\t left: 0,\n\t top: 0,\n\t }))\n\n\t const updateValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n },\n [onValueUpdate],\n )\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n React.useEffect(() => {\n if (isFocusedRef.current) return\n setDraft(value ? formatDayInput(value) : \"\")\n }, [value])\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n if (!draftSelection) return\n setMonth(startOfMonth(draftSelection))\n }, [draftSelection, open])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const setRefs = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof forwardedRef === \"function\") {\n forwardedRef(node)\n } else if (forwardedRef) {\n forwardedRef.current = node\n }\n },\n [forwardedRef],\n )\n\n const closePopover = () => setOpen(false)\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t\t // React Compiler rejects hook aliasing (useIsomorphicLayoutEffect pattern), so we\n\t\t // call useLayoutEffect directly and keep the SSR guard inside the effect.\n\t\t React.useLayoutEffect(() => {\n\t\t if (!open || disabled) return\n\t\t if (typeof window === \"undefined\") return\n\n\t updatePopoverPosition()\n\t const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n\t window.addEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.addEventListener(\"resize\", updatePopoverPosition)\n\t return () => {\n\t window.cancelAnimationFrame(rafId)\n\t window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.removeEventListener(\"resize\", updatePopoverPosition)\n\t }\n\t }, [disabled, open, updatePopoverPosition])\n\n\t return (\n\t <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n\t\t <IMaskInput\n\t\t {...rest}\n\t\t data-slot=\"day-picker-input-input\"\n disabled={disabled}\n readOnly={readOnly}\n autoComplete=\"off\"\n inputRef={setRefs}\n mask={[\n { mask: \"00/00\", lazy: true },\n { mask: \"00/00/00\", lazy: true },\n { mask: \"00/00/0000\", lazy: true },\n ]}\n dispatch={(appended, dynamicMasked) => {\n const digits = (dynamicMasked.value + appended).replace(/\\D/g, \"\")\n if (digits.length <= 4) return dynamicMasked.compiledMasks[0]\n if (digits.length <= 6) return dynamicMasked.compiledMasks[1]\n return dynamicMasked.compiledMasks[2]\n }}\n\t placeholder={placeholder}\n\t value={draft}\n\t\t className={cn(\n\t\t \"flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n\t\t \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n\t\t inputClassName\n\t\t )}\n onAccept={(nextValue) => {\n const next = typeof nextValue === \"string\" ? nextValue : String(nextValue ?? \"\")\n const previousDigitsLength = draft.replace(/\\D/g, \"\").length\n setDraft(next)\n if (next.replace(/\\D/g, \"\").length === 0) {\n if (open) {\n setMonth(startOfMonth(new Date()))\n }\n if (previousDigitsLength !== 0) {\n updateValue(null)\n }\n }\n }}\n\t onComplete={(completedValue) => {\n\t const next = typeof completedValue === \"string\"\n\t ? completedValue\n\t : String(completedValue ?? \"\")\n if (ignoreNextMaskCompleteValueRef.current === next) {\n ignoreNextMaskCompleteValueRef.current = null\n return\n }\n\t const parsed = parseDayInput(next, new Date())\n\t if (!parsed) return\n\t if (value && parsed.getTime() === startOfDay(value).getTime()) {\n\t return\n\t }\n updateValue(parsed)\n }}\n\t onPointerDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onPointerDown?.(event)\n\t }}\n\t onMouseDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onMouseDown?.(event)\n\t }}\n onFocus={(event) => {\n const shouldSelectAll =\n !pointerDownOnInputRef.current || !inputWasFocusedOnPointerDownRef.current\n pointerDownOnInputRef.current = false\n inputWasFocusedOnPointerDownRef.current = false\n\t isFocusedRef.current = true\n\t onFocus?.(event)\n\t if (shouldSelectAll) {\n\t const element = event.currentTarget\n\t requestAnimationFrame(() => element.select())\n }\n if (!disabled) {\n setOpen(true)\n }\n }}\n\t onKeyDown={(event) => {\n\t const wasDefaultPrevented = event.defaultPrevented\n\t onKeyDown?.(event)\n\t if (!wasDefaultPrevented && event.defaultPrevented) {\n\t return\n\t }\n\n\t\t if (event.key === \"Enter\") {\n\t\t if (!draftSelection) {\n\t\t return\n\t\t }\n\t\t event.preventDefault()\n if (open) {\n const isoDay = `${draftSelection.getFullYear()}-${pad2(draftSelection.getMonth() + 1)}-${pad2(draftSelection.getDate())}`\n const dayButton = popoverRef.current?.querySelector(\n `[data-day='${isoDay}']:not([data-outside]) button`,\n )\n if (dayButton instanceof HTMLButtonElement) {\n if (dayButton.disabled) {\n return\n }\n dayButton.focus()\n }\n }\n\t\t\t setDraft(formatDayInput(draftSelection))\n\t\t\t commitValue(draftSelection)\n\t\t\t setOpen(false)\n\t\t return\n\t\t }\n\n if (event.key === \"ArrowUp\" || event.key === \"ArrowDown\") {\n const base = draftSelection ?? value\n if (!base) {\n return\n }\n\n const next = startOfDay(new Date(base))\n next.setDate(next.getDate() + (event.key === \"ArrowUp\" ? 1 : -1))\n\n if (dayPickerProps?.disabled && dateMatchModifiers(next, dayPickerProps.disabled)) {\n return\n }\n\n event.preventDefault()\n const formatted = formatDayInput(next)\n ignoreNextMaskCompleteValueRef.current = formatted\n setDraft(formatted)\n updateValue(next)\n return\n }\n\n if (!open) {\n const shouldReopen =\n (event.key.length === 1 || event.key === \"Backspace\" || event.key === \"Delete\") &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n\n if (shouldReopen) {\n setOpen(true)\n }\n }\n\n\t if (event.key === \"Tab\" && !event.defaultPrevented) {\n\t setOpen(false)\n\t }\n\t }}\n\t onBlur={(event) => {\n\t isFocusedRef.current = false\n\t onBlur?.(event)\n const blurFromPopoverPointerDown = pointerDownInPopoverRef.current\n pointerDownInPopoverRef.current = false\n if (blurFromPopoverPointerDown) {\n return\n }\n\n const relatedTarget = event.relatedTarget\n if (relatedTarget instanceof Node) {\n const root = rootRef.current\n if (!root) {\n return\n }\n\n if (root.contains(relatedTarget) || popoverRef.current?.contains(relatedTarget)) {\n return\n }\n }\n\n\t if (open && typeof window !== \"undefined\") {\n\t requestAnimationFrame(() => {\n const root = rootRef.current\n if (!root) {\n return\n }\n const activeElement = document.activeElement\n if (\n activeElement &&\n (root.contains(activeElement) || popoverRef.current?.contains(activeElement))\n ) {\n return\n }\n setOpen(false)\n })\n\t }\n\t const trimmed = draft.trim()\n\t if (trimmed === \"\") {\n if (value) {\n setDraft(\"\")\n commitValue(null)\n }\n\t return\n\t }\n\t const parsed = parseDayInput(trimmed, new Date())\n\t if (parsed) {\n\t setDraft(formatDayInput(parsed))\n\t if (!value || parsed.getTime() !== startOfDay(value).getTime()) {\n\t commitValue(parsed)\n }\n return\n }\n setDraft(value ? formatDayInput(value) : \"\")\n\t\t }}\n\t\t />\n\n <button\n type=\"button\"\n tabIndex={-1}\n disabled={disabled}\n aria-label=\"Open calendar\"\n data-slot=\"day-picker-input-trigger\"\n className=\"absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n onPointerDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onMouseDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onClick={() => {\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n setOpen(true)\n }}\n >\n <CalendarDays aria-hidden className=\"size-4\" />\n </button>\n\n {open && !disabled && (() => {\n const selectedDay = draft.trim() === \"\"\n ? undefined\n : draftSelection ?? value ?? undefined\n\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n onPointerDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n onMouseDownCapture={() => {\n pointerDownInPopoverRef.current = true\n }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={selectedDay}\n onSelect={(date) => {\n if (!date) {\n if (value) {\n commitValue(null)\n }\n setDraft(\"\")\n closePopover()\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setDraft(formatDayInput(normalized))\n closePopover()\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n }\n)\n\nDayPickerInput.displayName = \"DayPickerInput\"\n\nexport type DayPickerFieldProps = {\n id?: string\n value: Date | null\n onChange: (value: Date | null) => void\n onValueUpdate?: (value: Date | null) => void\n className?: string\n inputClassName?: string\n placeholder?: string\n disabled?: boolean\n readOnly?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n triggerTestId?: string\n isHydrated?: boolean\n}\n\nfunction DayPickerButtonField({\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n}: DayPickerFieldProps) {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const popoverRef = React.useRef<HTMLDivElement | null>(null)\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n const open = openProp ?? uncontrolledOpen\n const setOpen = onOpenChange ?? setUncontrolledOpen\n const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n left: 0,\n top: 0,\n }))\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t // React Compiler rejects hook aliasing (useIsomorphicLayoutEffect pattern), so we\n\t // call useLayoutEffect directly and keep the SSR guard inside the effect.\n\t React.useLayoutEffect(() => {\n\t if (!open || disabled) return\n\t if (typeof window === \"undefined\") return\n\n updatePopoverPosition()\n const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n window.addEventListener(\"scroll\", updatePopoverPosition, true)\n window.addEventListener(\"resize\", updatePopoverPosition)\n return () => {\n window.cancelAnimationFrame(rafId)\n window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n window.removeEventListener(\"resize\", updatePopoverPosition)\n }\n }, [disabled, open, updatePopoverPosition])\n\n const commitValue = React.useCallback(\n (next: Date | null) => {\n if (onValueUpdate) {\n onValueUpdate(next)\n }\n onChange(next)\n },\n [onChange, onValueUpdate],\n )\n\n return (\n <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n <button\n id={id}\n type=\"button\"\n disabled={disabled}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n data-slot=\"day-picker-input-input\"\n className={cn(\n \"flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-left text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n !value && \"text-muted-foreground\",\n open && \"ring-2 ring-primary ring-offset-2\",\n inputClassName,\n )}\n onClick={() => {\n if (disabled) return\n setOpen(!open)\n }}\n >\n <CalendarDays\n aria-hidden\n className=\"mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n />\n {value ? formatDayInput(value) : placeholder}\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <DismissableLayerBranch>\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n commitValue(null)\n setOpen(false)\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n commitValue(normalized)\n }\n setOpen(false)\n }}\n {...dayPickerProps}\n />\n </div>\n </DismissableLayerBranch>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n}\n\nexport function DayPickerField(props: DayPickerFieldProps) {\n const isTouchDevice = useIsTouchDevice()\n\n if (isTouchDevice) {\n return <DayPickerButtonField {...props} />\n }\n\n const {\n id,\n value,\n onChange,\n onValueUpdate,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n open,\n onOpenChange,\n } = props\n\n return (\n <DayPickerInput\n id={id}\n value={value}\n onChange={onChange}\n onValueUpdate={onValueUpdate}\n className={className}\n inputClassName={inputClassName}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n open={open}\n onOpenChange={onOpenChange}\n dayPickerComponent={dayPickerComponent}\n dayPickerProps={dayPickerProps}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n />\n )\n}\n"],"names":["imaskAny","IMask","InputMask","DayPicker","t0","$","_c","className","classNames","components","props","t1","showOutsideDays","undefined","t2","cn","t3","month","months","month_caption","month_grid","caption_label","nav","button_previous","button_next","weeks","weekdays","weekday","week","day","day_button","range_start","range_end","range_middle","day_selected","day_today","day_outside","day_disabled","day_hidden","selected","today","outside","disabled","hidden","t4","Chevron","_temp","t5","jsx","ReactDayPicker","chevronProps","orientation","ChevronLeft","ChevronRight","displayName","pad2","value","String","padStart","startOfDay","date","next","Date","setHours","startOfMonth","getFullYear","getMonth","formatDayInput","getDate","buildDate","year","Number","isFinite","parseDayInput","now","trimmed","trim","full","exec","shortYear","noYear","DayPickerInput","React","forwardRef","forwardedRef","dayPickerComponent","dayPickerProps","inputClassName","onBlur","onChange","onFocus","onKeyDown","onMouseDown","onOpenChange","onPointerDown","onValueUpdate","openProp","readOnly","rest","placeholder","open","rootRef","useRef","popoverRef","inputRef","isFocusedRef","pointerDownOnInputRef","inputWasFocusedOnPointerDownRef","pointerDownInPopoverRef","ignoreNextMaskCompleteValueRef","uncontrolledOpen","setUncontrolledOpen","useState","setOpen","draft","setDraft","draftSelection","setMonth","popoverPosition","setPopoverPosition","_temp2","updateValue","t6","next_0","commitValue","t7","t8","current","useEffect","t10","t9","t11","t12","t13","handlePointerDown","event","target","Node","contains","handleKeyDown","event_0","key","document","addEventListener","removeEventListener","t14","t15","window","root","isActive","observer","IntersectionObserver","entries","entry","isIntersecting","observe","disconnect","t16","t17","node","setRefs","t18","closePopover","DayPickerComponent","t19","Symbol","for","root_0","popover","rect","getBoundingClientRect","popoverWidth","offsetWidth","popoverHeight","offsetHeight","viewportWidth","innerWidth","viewportHeight","innerHeight","left","Math","max","top","bottom","overflowBottom","aboveTop","updatePopoverPosition","t20","t21","rafId","requestAnimationFrame","cancelAnimationFrame","useLayoutEffect","t22","t23","mask","lazy","t24","t25","nextValue","next_1","previousDigitsLength","replace","length","t26","completedValue","next_2","parsed","getTime","t27","event_1","activeElement","currentTarget","t28","event_2","t29","event_3","shouldSelectAll","element","select","t30","event_4","wasDefaultPrevented","defaultPrevented","preventDefault","isoDay","dayButton","querySelector","HTMLButtonElement","focus","base","next_3","setDate","dateMatchModifiers","formatted","ctrlKey","metaKey","altKey","t31","event_5","blurFromPopoverPointerDown","relatedTarget","root_1","root_2","parsed_0","t32","IMaskInput","_temp3","t33","t34","event_6","preventScroll","event_7","t35","t36","CalendarDays","t37","t38","selectedDay","popover_0","DismissableLayerBranch","normalized","createPortal","body","t39","DayPickerButtonField","id","triggerTestId","isHydrated","_temp4","jsxs","DayPickerField","useIsTouchDevice","appended","dynamicMasked","digits","compiledMasks"],"mappings":";;;;;;;;;;;;AAcA,MAAMA,KAAWC;AACb,OAAOD,GAASE,aAAc,eAChCF,GAASE,YAAYA;AAMhB,SAAAC,GAAAC,GAAA;AAAA,QAAAC,IAAAC,GAAAA,EAAA,EAAA;AAAA,MAAAC,GAAAC,GAAAC,GAAAC,GAAA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Ac,CAAA,IACnDF,EAAaE,cAAc,CAAA;AAAG;"}
package/dist/index120.js CHANGED
@@ -1,13 +1,28 @@
1
- import { createContext as t, useContext as n } from "react";
2
- const o = t(void 0);
3
- function c() {
4
- const e = n(o);
5
- if (e === void 0)
6
- throw new Error("useDayPicker() must be used within a custom component.");
7
- return e;
1
+ import n, { useCallback as u } from "react";
2
+ import { UI as i } from "./index146.js";
3
+ import { useDayPicker as v } from "./index149.js";
4
+ function x(c) {
5
+ const { onPreviousClick: l, onNextClick: s, previousMonth: e, nextMonth: t, ...d } = c, { components: a, classNames: o, labels: { labelPrevious: m, labelNext: b } } = v(), f = u((r) => {
6
+ t && s?.(r);
7
+ }, [t, s]), h = u((r) => {
8
+ e && l?.(r);
9
+ }, [e, l]);
10
+ return n.createElement(
11
+ "nav",
12
+ { ...d },
13
+ n.createElement(
14
+ a.PreviousMonthButton,
15
+ { type: "button", className: o[i.PreviousMonthButton], tabIndex: e ? void 0 : -1, "aria-disabled": e ? void 0 : !0, "aria-label": m(e), onClick: h },
16
+ n.createElement(a.Chevron, { disabled: e ? void 0 : !0, className: o[i.Chevron], orientation: "left" })
17
+ ),
18
+ n.createElement(
19
+ a.NextMonthButton,
20
+ { type: "button", className: o[i.NextMonthButton], tabIndex: t ? void 0 : -1, "aria-disabled": t ? void 0 : !0, "aria-label": b(t), onClick: f },
21
+ n.createElement(a.Chevron, { disabled: t ? void 0 : !0, orientation: "right", className: o[i.Chevron] })
22
+ )
23
+ );
8
24
  }
9
25
  export {
10
- o as dayPickerContext,
11
- c as useDayPicker
26
+ x as Nav
12
27
  };
13
28
  //# sourceMappingURL=index120.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index120.js","sources":["../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","useDayPicker","context","useContext"],"mappings":";AAEY,MAACA,IAAmBC,EAAc,MAAS;AAahD,SAASC,IAAe;AAC3B,QAAMC,IAAUC,EAAWJ,CAAgB;AAC3C,MAAIG,MAAY;AACZ,UAAM,IAAI,MAAM,wDAAwD;AAE5E,SAAOA;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index120.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Nav.js"],"sourcesContent":["import React, { useCallback, } from \"react\";\nimport { UI } from \"../UI.js\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render the navigation toolbar with buttons to navigate between months.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Nav(props) {\n const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;\n const { components, classNames, labels: { labelPrevious, labelNext }, } = useDayPicker();\n const handleNextClick = useCallback((e) => {\n if (nextMonth) {\n onNextClick?.(e);\n }\n }, [nextMonth, onNextClick]);\n const handlePreviousClick = useCallback((e) => {\n if (previousMonth) {\n onPreviousClick?.(e);\n }\n }, [previousMonth, onPreviousClick]);\n return (React.createElement(\"nav\", { ...navProps },\n React.createElement(components.PreviousMonthButton, { type: \"button\", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, \"aria-disabled\": previousMonth ? undefined : true, \"aria-label\": labelPrevious(previousMonth), onClick: handlePreviousClick },\n React.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], orientation: \"left\" })),\n React.createElement(components.NextMonthButton, { type: \"button\", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, \"aria-disabled\": nextMonth ? undefined : true, \"aria-label\": labelNext(nextMonth), onClick: handleNextClick },\n React.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, orientation: \"right\", className: classNames[UI.Chevron] }))));\n}\n"],"names":["Nav","props","onPreviousClick","onNextClick","previousMonth","nextMonth","navProps","components","classNames","labelPrevious","labelNext","useDayPicker","handleNextClick","useCallback","e","handlePreviousClick","React","UI"],"mappings":";;;AASO,SAASA,EAAIC,GAAO;AACvB,QAAM,EAAE,iBAAAC,GAAiB,aAAAC,GAAa,eAAAC,GAAe,WAAAC,GAAW,GAAGC,EAAQ,IAAKL,GAC1E,EAAE,YAAAM,GAAY,YAAAC,GAAY,QAAQ,EAAE,eAAAC,GAAe,WAAAC,EAAS,EAAE,IAAMC,EAAY,GAChFC,IAAkBC,EAAY,CAACC,MAAM;AACvC,IAAIT,KACAF,IAAcW,CAAC;AAAA,EAEvB,GAAG,CAACT,GAAWF,CAAW,CAAC,GACrBY,IAAsBF,EAAY,CAACC,MAAM;AAC3C,IAAIV,KACAF,IAAkBY,CAAC;AAAA,EAE3B,GAAG,CAACV,GAAeF,CAAe,CAAC;AACnC,SAAQc,EAAM;AAAA,IAAc;AAAA,IAAO,EAAE,GAAGV,EAAQ;AAAA,IAC5CU,EAAM;AAAA,MAAcT,EAAW;AAAA,MAAqB,EAAE,MAAM,UAAU,WAAWC,EAAWS,EAAG,mBAAmB,GAAG,UAAUb,IAAgB,SAAY,IAAI,iBAAiBA,IAAgB,SAAY,IAAM,cAAcK,EAAcL,CAAa,GAAG,SAASW,EAAmB;AAAA,MACtRC,EAAM,cAAcT,EAAW,SAAS,EAAE,UAAUH,IAAgB,SAAY,IAAM,WAAWI,EAAWS,EAAG,OAAO,GAAG,aAAa,OAAM,CAAE;AAAA,IAAC;AAAA,IACnJD,EAAM;AAAA,MAAcT,EAAW;AAAA,MAAiB,EAAE,MAAM,UAAU,WAAWC,EAAWS,EAAG,eAAe,GAAG,UAAUZ,IAAY,SAAY,IAAI,iBAAiBA,IAAY,SAAY,IAAM,cAAcK,EAAUL,CAAS,GAAG,SAASO,EAAe;AAAA,MAC1PI,EAAM,cAAcT,EAAW,SAAS,EAAE,UAAUF,IAAY,SAAY,IAAM,aAAa,SAAS,WAAWG,EAAWS,EAAG,OAAO,EAAC,CAAE;AAAA,IAAC;AAAA,EAAC;AACzJ;","x_google_ignoreList":[0]}
package/dist/index121.js CHANGED
@@ -1,24 +1,10 @@
1
- import { useState as a } from "react";
2
- import { calculateFocusTarget as T } from "./index227.js";
3
- import { getNextFocus as v } from "./index228.js";
4
- function I(e, o, r, i, f) {
5
- const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
6
- return {
7
- isFocusTarget: (n) => !!c?.isEqualTo(n),
8
- setFocused: u,
9
- focused: s,
10
- blur: () => {
11
- m(s), u(void 0);
12
- },
13
- moveFocus: (n, l) => {
14
- if (!s)
15
- return;
16
- const t = v(n, l, s, o.navStart, o.navEnd, e, f);
17
- t && (e.disableNavigation && !o.days.some((g) => g.isEqualTo(t)) || (o.goToDay(t), u(t)));
18
- }
19
- };
1
+ import o from "react";
2
+ import { useDayPicker as n } from "./index149.js";
3
+ function m(t) {
4
+ const { components: e } = n();
5
+ return o.createElement(e.Button, { ...t });
20
6
  }
21
7
  export {
22
- I as useFocus
8
+ m as NextMonthButton
23
9
  };
24
10
  //# sourceMappingURL=index121.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index121.js","sources":["../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":";;;AAiBO,SAASA,EAASC,GAAOC,GAAUC,GAAcC,GAAYC,GAAS;AACzE,QAAM,EAAE,WAAAC,EAAS,IAAKL,GAChB,CAACM,GAAaC,CAAc,IAAIC,EAAQ,GACxCC,IAAcC,EAAqBT,EAAS,MAAMC,GAAcC,MAAe,MAAM,KAAQG,CAAW,GACxG,CAACK,GAAYC,CAAU,IAAIJ,EAASH,IAAYI,IAAc,MAAS;AA8B7E,SAPiB;AAAA,IACb,eAJkB,CAACI,MACZ,EAAQJ,GAAa,UAAUI,CAAG;AAAA,IAIzC,YAAAD;AAAA,IACA,SAASD;AAAA,IACT,MA1BS,MAAM;AACf,MAAAJ,EAAeI,CAAU,GACzBC,EAAW,MAAS;AAAA,IACxB;AAAA,IAwBI,WAvBc,CAACE,GAAQC,MAAY;AACnC,UAAI,CAACJ;AACD;AACJ,YAAMK,IAAYC,EAAaH,GAAQC,GAASJ,GAAYV,EAAS,UAAUA,EAAS,QAAQD,GAAOI,CAAO;AAC9G,MAAKY,MAEDhB,EAAM,qBAEF,CADqBC,EAAS,KAAK,KAAK,CAACY,MAAQA,EAAI,UAAUG,CAAS,CAAC,MAKjFf,EAAS,QAAQe,CAAS,GAC1BJ,EAAWI,CAAS;AAAA,IACxB;AAAA,EAUJ;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index121.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/NextMonthButton.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render the button to navigate to the next month in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function NextMonthButton(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Button, { ...props });\n}\n"],"names":["NextMonthButton","props","components","useDayPicker","React"],"mappings":";;AAQO,SAASA,EAAgBC,GAAO;AACnC,QAAM,EAAE,YAAAC,EAAU,IAAKC,EAAY;AACnC,SAAOC,EAAM,cAAcF,EAAW,QAAQ,EAAE,GAAGD,GAAO;AAC9D;","x_google_ignoreList":[0]}
package/dist/index122.js CHANGED
@@ -1,20 +1,8 @@
1
- import { useMulti as i } from "./index229.js";
2
- import { useRange as o } from "./index230.js";
3
- import { useSingle as s } from "./index231.js";
4
- function f(e, n) {
5
- const t = s(e, n), r = i(e, n), u = o(e, n);
6
- switch (e.mode) {
7
- case "single":
8
- return t;
9
- case "multiple":
10
- return r;
11
- case "range":
12
- return u;
13
- default:
14
- return;
15
- }
1
+ import e from "react";
2
+ function n(t) {
3
+ return e.createElement("option", { ...t });
16
4
  }
17
5
  export {
18
- f as useSelection
6
+ n as Option
19
7
  };
20
8
  //# sourceMappingURL=index122.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index122.js","sources":["../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":";;;AAaO,SAASA,EAAaC,GAAOC,GAAS;AACzC,QAAMC,IAASC,EAAUH,GAAOC,CAAO,GACjCG,IAAQC,EAASL,GAAOC,CAAO,GAC/BK,IAAQC,EAASP,GAAOC,CAAO;AACrC,UAAQD,EAAM,MAAI;AAAA,IACd,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX;AACI;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index122.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Option.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render an `option` element.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Option(props) {\n return React.createElement(\"option\", { ...props });\n}\n"],"names":["Option","props","React"],"mappings":";AAOO,SAASA,EAAOC,GAAO;AAC1B,SAAOC,EAAM,cAAc,UAAU,EAAE,GAAGD,EAAK,CAAE;AACrD;","x_google_ignoreList":[0]}
package/dist/index123.js CHANGED
@@ -1,27 +1,10 @@
1
- import "./index178.js";
2
- import { toTimeZone as i } from "./index125.js";
3
- import { isDateRange as e, isDateInterval as p, isDateAfterType as y, isDateBeforeType as D } from "./index126.js";
4
- function n(o, f, u) {
5
- return i(o, f);
6
- }
7
- function t(o, f, u) {
8
- return typeof o == "boolean" || typeof o == "function" ? o : o instanceof Date ? n(o, f) : Array.isArray(o) ? o.map((r) => r instanceof Date ? n(r, f) : r) : e(o) ? {
9
- ...o,
10
- from: o.from ? i(o.from, f) : o.from,
11
- to: o.to ? i(o.to, f) : o.to
12
- } : p(o) ? {
13
- before: n(o.before, f),
14
- after: n(o.after, f)
15
- } : y(o) ? {
16
- after: n(o.after, f)
17
- } : D(o) ? {
18
- before: n(o.before, f)
19
- } : o;
20
- }
21
- function T(o, f, u) {
22
- return o && (Array.isArray(o) ? o.map((r) => t(r, f)) : t(o, f));
1
+ import e from "react";
2
+ import { useDayPicker as n } from "./index149.js";
3
+ function c(t) {
4
+ const { components: o } = n();
5
+ return e.createElement(o.Button, { ...t });
23
6
  }
24
7
  export {
25
- T as convertMatchersToTimeZone
8
+ c as PreviousMonthButton
26
9
  };
27
10
  //# sourceMappingURL=index123.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index123.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { toTimeZone } from \"./toTimeZone.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, } from \"./typeguards.js\";\nfunction toZoneNoon(date, timeZone, noonSafe) {\n if (!noonSafe)\n return toTimeZone(date, timeZone);\n const zoned = toTimeZone(date, timeZone);\n const noonZoned = new TZDate(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 12, 0, 0, timeZone);\n return new Date(noonZoned.getTime());\n}\nfunction convertMatcher(matcher, timeZone, noonSafe) {\n if (typeof matcher === \"boolean\" || typeof matcher === \"function\") {\n return matcher;\n }\n if (matcher instanceof Date) {\n return toZoneNoon(matcher, timeZone, noonSafe);\n }\n if (Array.isArray(matcher)) {\n return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone, noonSafe) : value);\n }\n if (isDateRange(matcher)) {\n return {\n ...matcher,\n from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,\n to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to,\n };\n }\n if (isDateInterval(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateAfterType(matcher)) {\n return {\n after: toZoneNoon(matcher.after, timeZone, noonSafe),\n };\n }\n if (isDateBeforeType(matcher)) {\n return {\n before: toZoneNoon(matcher.before, timeZone, noonSafe),\n };\n }\n return matcher;\n}\n/**\n * Convert any {@link Matcher} or array of matchers to the specified time zone.\n *\n * @param matchers - The matcher or matchers to convert.\n * @param timeZone - The target IANA time zone.\n * @returns The converted matcher(s).\n * @group Utilities\n */\nexport function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {\n if (!matchers) {\n return matchers;\n }\n if (Array.isArray(matchers)) {\n return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));\n }\n return convertMatcher(matchers, timeZone, noonSafe);\n}\n"],"names":["toZoneNoon","date","timeZone","noonSafe","toTimeZone","convertMatcher","matcher","value","isDateRange","isDateInterval","isDateAfterType","isDateBeforeType","convertMatchersToTimeZone","matchers"],"mappings":";;;AAGA,SAASA,EAAWC,GAAMC,GAAUC,GAAU;AAEtC,SAAOC,EAAWH,GAAMC,CAAQ;AAIxC;AACA,SAASG,EAAeC,GAASJ,GAAUC,GAAU;AACjD,SAAI,OAAOG,KAAY,aAAa,OAAOA,KAAY,aAC5CA,IAEPA,aAAmB,OACZN,EAAWM,GAASJ,CAAkB,IAE7C,MAAM,QAAQI,CAAO,IACdA,EAAQ,IAAI,CAACC,MAAUA,aAAiB,OAAOP,EAAWO,GAAOL,CAAkB,IAAIK,CAAK,IAEnGC,EAAYF,CAAO,IACZ;AAAA,IACH,GAAGA;AAAA,IACH,MAAMA,EAAQ,OAAOF,EAAWE,EAAQ,MAAMJ,CAAQ,IAAII,EAAQ;AAAA,IAClE,IAAIA,EAAQ,KAAKF,EAAWE,EAAQ,IAAIJ,CAAQ,IAAII,EAAQ;AAAA,EACxE,IAEQG,EAAeH,CAAO,IACf;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,IACrD,OAAOF,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQQ,EAAgBJ,CAAO,IAChB;AAAA,IACH,OAAON,EAAWM,EAAQ,OAAOJ,CAAkB;AAAA,EAC/D,IAEQS,EAAiBL,CAAO,IACjB;AAAA,IACH,QAAQN,EAAWM,EAAQ,QAAQJ,CAAkB;AAAA,EACjE,IAEWI;AACX;AASO,SAASM,EAA0BC,GAAUX,GAAUC,GAAU;AACpE,SAAKU,MAGD,MAAM,QAAQA,CAAQ,IACfA,EAAS,IAAI,CAACP,MAAYD,EAAeC,GAASJ,CAAkB,CAAC,IAEzEG,EAAeQ,GAAUX,CAAkB;AACtD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index123.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render the button to navigate to the previous month in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function PreviousMonthButton(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Button, { ...props });\n}\n"],"names":["PreviousMonthButton","props","components","useDayPicker","React"],"mappings":";;AAQO,SAASA,EAAoBC,GAAO;AACvC,QAAM,EAAE,YAAAC,EAAU,IAAKC,EAAY;AACnC,SAAOC,EAAM,cAAcF,EAAW,QAAQ,EAAE,GAAGD,GAAO;AAC9D;","x_google_ignoreList":[0]}
package/dist/index124.js CHANGED
@@ -1,10 +1,9 @@
1
- import { defaultDateLib as s } from "./index104.js";
2
- function u(f, r, t = !1, o = s) {
3
- let { from: n, to: e } = f;
4
- const { differenceInCalendarDays: i, isSameDay: a } = o;
5
- return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
1
+ import r from "react";
2
+ function n(t) {
3
+ const { rootRef: e, ...o } = t;
4
+ return r.createElement("div", { ...o, ref: e });
6
5
  }
7
6
  export {
8
- u as rangeIncludesDate
7
+ n as Root
9
8
  };
10
9
  //# sourceMappingURL=index124.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index124.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n/**\n * @private\n * @deprecated Use {@link rangeIncludesDate} instead.\n */\nexport const isDateInRange = (range, date) => rangeIncludesDate(range, date, false, defaultDateLib);\n"],"names":["rangeIncludesDate","range","date","excludeEnds","dateLib","defaultDateLib","from","to","differenceInCalendarDays","isSameDay"],"mappings":";AAYO,SAASA,EAAkBC,GAAOC,GAAMC,IAAc,IAAOC,IAAUC,GAAgB;AAC1F,MAAI,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKN;AACnB,QAAM,EAAE,0BAAAO,GAA0B,WAAAC,EAAS,IAAKL;AAChD,SAAIE,KAAQC,KACgBC,EAAyBD,GAAID,CAAI,IAAI,MAEzD,CAACA,GAAMC,CAAE,IAAI,CAACA,GAAID,CAAI,IAERE,EAAyBN,GAAMI,CAAI,MAAMH,IAAc,IAAI,MACzEK,EAAyBD,GAAIL,CAAI,MAAMC,IAAc,IAAI,MAG7D,CAACA,KAAeI,IACTE,EAAUF,GAAIL,CAAI,IAEzB,CAACC,KAAeG,IACTG,EAAUH,GAAMJ,CAAI,IAExB;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index124.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Root.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render the root element of the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Root(props) {\n const { rootRef, ...rest } = props;\n return React.createElement(\"div\", { ...rest, ref: rootRef });\n}\n"],"names":["Root","props","rootRef","rest","React"],"mappings":";AAOO,SAASA,EAAKC,GAAO;AACxB,QAAM,EAAE,SAAAC,GAAS,GAAGC,EAAI,IAAKF;AAC7B,SAAOG,EAAM,cAAc,OAAO,EAAE,GAAGD,GAAM,KAAKD,GAAS;AAC/D;","x_google_ignoreList":[0]}
package/dist/index125.js CHANGED
@@ -1,9 +1,8 @@
1
- import { TZDate as r } from "./index176.js";
2
- import "./index178.js";
3
- function e(n, o) {
4
- return n instanceof r && n.timeZone === o ? n : new r(n, o);
1
+ import t from "react";
2
+ function c(e) {
3
+ return t.createElement("select", { ...e });
5
4
  }
6
5
  export {
7
- e as toTimeZone
6
+ c as Select
8
7
  };
9
8
  //# sourceMappingURL=index125.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index125.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/toTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\n/**\n * Convert a {@link Date} or {@link TZDate} instance to the given time zone.\n * Reuses the same instance when it is already a {@link TZDate} using the target\n * time zone to avoid extra allocations.\n */\nexport function toTimeZone(date, timeZone) {\n if (date instanceof TZDate && date.timeZone === timeZone) {\n return date;\n }\n return new TZDate(date, timeZone);\n}\n"],"names":["toTimeZone","date","timeZone","TZDate"],"mappings":";;AAMO,SAASA,EAAWC,GAAMC,GAAU;AACvC,SAAID,aAAgBE,KAAUF,EAAK,aAAaC,IACrCD,IAEJ,IAAIE,EAAOF,GAAMC,CAAQ;AACpC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index125.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Select.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render a `select` element.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Select(props) {\n return React.createElement(\"select\", { ...props });\n}\n"],"names":["Select","props","React"],"mappings":";AAOO,SAASA,EAAOC,GAAO;AAC1B,SAAOC,EAAM,cAAc,UAAU,EAAE,GAAGD,EAAK,CAAE;AACrD;","x_google_ignoreList":[0]}
package/dist/index126.js CHANGED
@@ -1,27 +1,9 @@
1
- function o(e) {
2
- return !!(e && typeof e == "object" && "before" in e && "after" in e);
3
- }
4
- function t(e) {
5
- return !!(e && typeof e == "object" && "from" in e);
6
- }
7
- function r(e) {
8
- return !!(e && typeof e == "object" && "after" in e);
9
- }
10
- function f(e) {
11
- return !!(e && typeof e == "object" && "before" in e);
12
- }
13
- function i(e) {
14
- return !!(e && typeof e == "object" && "dayOfWeek" in e);
15
- }
16
- function y(e, n) {
17
- return Array.isArray(e) && e.every(n.isDate);
1
+ import r from "react";
2
+ function c(e) {
3
+ const { week: o, ...t } = e;
4
+ return r.createElement("tr", { ...t });
18
5
  }
19
6
  export {
20
- r as isDateAfterType,
21
- f as isDateBeforeType,
22
- o as isDateInterval,
23
- t as isDateRange,
24
- y as isDatesArray,
25
- i as isDayOfWeekType
7
+ c as Week
26
8
  };
27
9
  //# sourceMappingURL=index126.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index126.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":["isDateInterval","matcher","isDateRange","value","isDateAfterType","isDateBeforeType","isDayOfWeekType","isDatesArray","dateLib"],"mappings":"AAOO,SAASA,EAAeC,GAAS;AACpC,SAAO,GAAQA,KACX,OAAOA,KAAY,YACnB,YAAYA,KACZ,WAAWA;AACnB;AAQO,SAASC,EAAYC,GAAO;AAC/B,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,UAAUA;AACnE;AAQO,SAASC,EAAgBD,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,WAAWA;AACpE;AAQO,SAASE,EAAiBF,GAAO;AACpC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,YAAYA;AACrE;AAQO,SAASG,EAAgBH,GAAO;AACnC,SAAO,GAAQA,KAAS,OAAOA,KAAU,YAAY,eAAeA;AACxE;AASO,SAASI,EAAaJ,GAAOK,GAAS;AACzC,SAAO,MAAM,QAAQL,CAAK,KAAKA,EAAM,MAAMK,EAAQ,MAAM;AAC7D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index126.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/Week.js"],"sourcesContent":["import React from \"react\";\n/**\n * Render a table row representing a week in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function Week(props) {\n const { week, ...trProps } = props;\n return React.createElement(\"tr\", { ...trProps });\n}\n"],"names":["Week","props","week","trProps","React"],"mappings":";AAOO,SAASA,EAAKC,GAAO;AACxB,QAAM,EAAE,MAAAC,GAAM,GAAGC,EAAO,IAAKF;AAC7B,SAAOG,EAAM,cAAc,MAAM,EAAE,GAAGD,EAAO,CAAE;AACnD;","x_google_ignoreList":[0]}