@rpcbase/ui 0.172.0 → 0.174.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (573) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/index100.js +5 -9
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +4 -42
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +4 -4
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +7 -52
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +145 -4
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +39 -4
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +4 -15
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +7 -5
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +13 -7
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +13 -16
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index11.js +300 -281
  23. package/dist/index11.js.map +1 -1
  24. package/dist/index110.js +7 -4
  25. package/dist/index110.js.map +1 -1
  26. package/dist/index111.js +31 -4
  27. package/dist/index111.js.map +1 -1
  28. package/dist/index112.js +10 -5
  29. package/dist/index112.js.map +1 -1
  30. package/dist/index113.js +10 -5
  31. package/dist/index113.js.map +1 -1
  32. package/dist/index114.js +8 -4
  33. package/dist/index114.js.map +1 -1
  34. package/dist/index115.js +13 -4
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +101 -6
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +20 -25
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +53 -6
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +72 -4
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index120.js +9 -6
  45. package/dist/index120.js.map +1 -1
  46. package/dist/index121.js +20 -5
  47. package/dist/index121.js.map +1 -1
  48. package/dist/index122.js +16 -4
  49. package/dist/index122.js.map +1 -1
  50. package/dist/index123.js +23 -5
  51. package/dist/index123.js.map +1 -1
  52. package/dist/index124.js +6 -4
  53. package/dist/index124.js.map +1 -1
  54. package/dist/index125.js +5 -8
  55. package/dist/index125.js.map +1 -1
  56. package/dist/index126.js +23 -5
  57. package/dist/index126.js.map +1 -1
  58. package/dist/index127.js +35 -5
  59. package/dist/index127.js.map +1 -1
  60. package/dist/index128.js +16 -5
  61. package/dist/index128.js.map +1 -1
  62. package/dist/index129.js +6 -6
  63. package/dist/index129.js.map +1 -1
  64. package/dist/index13.js +1 -1
  65. package/dist/index130.js +4 -145
  66. package/dist/index130.js.map +1 -1
  67. package/dist/index131.js +4 -39
  68. package/dist/index131.js.map +1 -1
  69. package/dist/index132.js +4 -4
  70. package/dist/index132.js.map +1 -1
  71. package/dist/index133.js +4 -7
  72. package/dist/index133.js.map +1 -1
  73. package/dist/index134.js +3 -13
  74. package/dist/index134.js.map +1 -1
  75. package/dist/index135.js +6 -13
  76. package/dist/index135.js.map +1 -1
  77. package/dist/index136.js +24 -8
  78. package/dist/index136.js.map +1 -1
  79. package/dist/index137.js +7 -31
  80. package/dist/index137.js.map +1 -1
  81. package/dist/index138.js +6 -10
  82. package/dist/index138.js.map +1 -1
  83. package/dist/index139.js +5 -10
  84. package/dist/index139.js.map +1 -1
  85. package/dist/index14.js +3 -3
  86. package/dist/index140.js +3 -8
  87. package/dist/index140.js.map +1 -1
  88. package/dist/index141.js +3 -13
  89. package/dist/index141.js.map +1 -1
  90. package/dist/index142.js +4 -101
  91. package/dist/index142.js.map +1 -1
  92. package/dist/index143.js +4 -20
  93. package/dist/index143.js.map +1 -1
  94. package/dist/index144.js +4 -53
  95. package/dist/index144.js.map +1 -1
  96. package/dist/index145.js +3 -72
  97. package/dist/index145.js.map +1 -1
  98. package/dist/index146.js +3 -9
  99. package/dist/index146.js.map +1 -1
  100. package/dist/index147.js +3 -20
  101. package/dist/index147.js.map +1 -1
  102. package/dist/index148.js +45 -15
  103. package/dist/index148.js.map +1 -1
  104. package/dist/index149.js +44 -21
  105. package/dist/index149.js.map +1 -1
  106. package/dist/index150.js +205 -6
  107. package/dist/index150.js.map +1 -1
  108. package/dist/index151.js +22 -6
  109. package/dist/index151.js.map +1 -1
  110. package/dist/index152.js +24 -23
  111. package/dist/index152.js.map +1 -1
  112. package/dist/index153.js +397 -32
  113. package/dist/index153.js.map +1 -1
  114. package/dist/index154.js +6 -16
  115. package/dist/index154.js.map +1 -1
  116. package/dist/index155.js +68 -6
  117. package/dist/index155.js.map +1 -1
  118. package/dist/index156.js +2 -5
  119. package/dist/index156.js.map +1 -1
  120. package/dist/index157.js +363 -4
  121. package/dist/index157.js.map +1 -1
  122. package/dist/index158.js +261 -4
  123. package/dist/index158.js.map +1 -1
  124. package/dist/index159.js +60 -4
  125. package/dist/index159.js.map +1 -1
  126. package/dist/index160.js +46 -3
  127. package/dist/index160.js.map +1 -1
  128. package/dist/index161.js +169 -6
  129. package/dist/index161.js.map +1 -1
  130. package/dist/index162.js +110 -24
  131. package/dist/index162.js.map +1 -1
  132. package/dist/index163.js +24 -7
  133. package/dist/index163.js.map +1 -1
  134. package/dist/index164.js +8 -7
  135. package/dist/index164.js.map +1 -1
  136. package/dist/index165.js +4 -5
  137. package/dist/index165.js.map +1 -1
  138. package/dist/index166.js +5 -3
  139. package/dist/index166.js.map +1 -1
  140. package/dist/index167.js +4 -3
  141. package/dist/index167.js.map +1 -1
  142. package/dist/index168.js +466 -4
  143. package/dist/index168.js.map +1 -1
  144. package/dist/index169.js +185 -3
  145. package/dist/index169.js.map +1 -1
  146. package/dist/index170.js +107 -4
  147. package/dist/index170.js.map +1 -1
  148. package/dist/index171.js +262 -3
  149. package/dist/index171.js.map +1 -1
  150. package/dist/index172.js +9 -3
  151. package/dist/index172.js.map +1 -1
  152. package/dist/index173.js +42 -3
  153. package/dist/index173.js.map +1 -1
  154. package/dist/index174.js +4 -24
  155. package/dist/index174.js.map +1 -1
  156. package/dist/index175.js +67 -28
  157. package/dist/index175.js.map +1 -1
  158. package/dist/index176.js +181 -5
  159. package/dist/index176.js.map +1 -1
  160. package/dist/index177.js +41 -62
  161. package/dist/index177.js.map +1 -1
  162. package/dist/index178.js +57 -179
  163. package/dist/index178.js.map +1 -1
  164. package/dist/index179.js +8 -46
  165. package/dist/index179.js.map +1 -1
  166. package/dist/index180.js +65 -12
  167. package/dist/index180.js.map +1 -1
  168. package/dist/index181.js +17 -152
  169. package/dist/index181.js.map +1 -1
  170. package/dist/index182.js +15 -29
  171. package/dist/index182.js.map +1 -1
  172. package/dist/index183.js +5 -9
  173. package/dist/index183.js.map +1 -1
  174. package/dist/index184.js +4 -46
  175. package/dist/index184.js.map +1 -1
  176. package/dist/index185.js +6 -11
  177. package/dist/index185.js.map +1 -1
  178. package/dist/index186.js +4 -44
  179. package/dist/index186.js.map +1 -1
  180. package/dist/index187.js +7 -95
  181. package/dist/index187.js.map +1 -1
  182. package/dist/index188.js +17 -86
  183. package/dist/index188.js.map +1 -1
  184. package/dist/index189.js +5 -105
  185. package/dist/index189.js.map +1 -1
  186. package/dist/index19.js +6 -6
  187. package/dist/index190.js +5 -52
  188. package/dist/index190.js.map +1 -1
  189. package/dist/index191.js +13 -11
  190. package/dist/index191.js.map +1 -1
  191. package/dist/index192.js +10 -37
  192. package/dist/index192.js.map +1 -1
  193. package/dist/index193.js +14 -8
  194. package/dist/index193.js.map +1 -1
  195. package/dist/index194.js +14 -116
  196. package/dist/index194.js.map +1 -1
  197. package/dist/index195.js +5 -17
  198. package/dist/index195.js.map +1 -1
  199. package/dist/index196.js +6 -15
  200. package/dist/index196.js.map +1 -1
  201. package/dist/index197.js +7 -3
  202. package/dist/index197.js.map +1 -1
  203. package/dist/index198.js +6 -36
  204. package/dist/index198.js.map +1 -1
  205. package/dist/index199.js +9 -20
  206. package/dist/index199.js.map +1 -1
  207. package/dist/index20.js +1 -1
  208. package/dist/index200.js +5 -9
  209. package/dist/index200.js.map +1 -1
  210. package/dist/index201.js +5 -8
  211. package/dist/index201.js.map +1 -1
  212. package/dist/index202.js +9 -19
  213. package/dist/index202.js.map +1 -1
  214. package/dist/index203.js +5 -28
  215. package/dist/index203.js.map +1 -1
  216. package/dist/index204.js +5 -16
  217. package/dist/index204.js.map +1 -1
  218. package/dist/index205.js +4 -58
  219. package/dist/index205.js.map +1 -1
  220. package/dist/index206.js +11 -8
  221. package/dist/index206.js.map +1 -1
  222. package/dist/index207.js +10 -66
  223. package/dist/index207.js.map +1 -1
  224. package/dist/index208.js +10 -19
  225. package/dist/index208.js.map +1 -1
  226. package/dist/index209.js +11 -16
  227. package/dist/index209.js.map +1 -1
  228. package/dist/index21.js +1 -1
  229. package/dist/index210.js +11 -5
  230. package/dist/index210.js.map +1 -1
  231. package/dist/index211.js +10 -5
  232. package/dist/index211.js.map +1 -1
  233. package/dist/index212.js +7 -6
  234. package/dist/index212.js.map +1 -1
  235. package/dist/index213.js +6 -4
  236. package/dist/index213.js.map +1 -1
  237. package/dist/index214.js +5 -7
  238. package/dist/index214.js.map +1 -1
  239. package/dist/index215.js +6 -17
  240. package/dist/index215.js.map +1 -1
  241. package/dist/index216.js +7 -5
  242. package/dist/index216.js.map +1 -1
  243. package/dist/index217.js +6 -5
  244. package/dist/index217.js.map +1 -1
  245. package/dist/index218.js +55 -13
  246. package/dist/index218.js.map +1 -1
  247. package/dist/index219.js +16 -10
  248. package/dist/index219.js.map +1 -1
  249. package/dist/index220.js +7 -14
  250. package/dist/index220.js.map +1 -1
  251. package/dist/index221.js +10 -14
  252. package/dist/index221.js.map +1 -1
  253. package/dist/index222.js +10 -5
  254. package/dist/index222.js.map +1 -1
  255. package/dist/index223.js +21 -6
  256. package/dist/index223.js.map +1 -1
  257. package/dist/index224.js +10 -7
  258. package/dist/index224.js.map +1 -1
  259. package/dist/index225.js +9 -6
  260. package/dist/index225.js.map +1 -1
  261. package/dist/index226.js +9 -9
  262. package/dist/index226.js.map +1 -1
  263. package/dist/index227.js +4 -5
  264. package/dist/index227.js.map +1 -1
  265. package/dist/index228.js +5 -5
  266. package/dist/index228.js.map +1 -1
  267. package/dist/index229.js +16 -9
  268. package/dist/index229.js.map +1 -1
  269. package/dist/index23.js +1 -1
  270. package/dist/index230.js +9 -5
  271. package/dist/index230.js.map +1 -1
  272. package/dist/index231.js +18 -5
  273. package/dist/index231.js.map +1 -1
  274. package/dist/index232.js +15 -4
  275. package/dist/index232.js.map +1 -1
  276. package/dist/index233.js +12 -11
  277. package/dist/index233.js.map +1 -1
  278. package/dist/index234.js +29 -10
  279. package/dist/index234.js.map +1 -1
  280. package/dist/index235.js +12 -10
  281. package/dist/index235.js.map +1 -1
  282. package/dist/index236.js +25 -11
  283. package/dist/index236.js.map +1 -1
  284. package/dist/index237.js +5 -11
  285. package/dist/index237.js.map +1 -1
  286. package/dist/index238.js +24 -10
  287. package/dist/index238.js.map +1 -1
  288. package/dist/index239.js +29 -8
  289. package/dist/index239.js.map +1 -1
  290. package/dist/index240.js +5 -7
  291. package/dist/index240.js.map +1 -1
  292. package/dist/index241.js +13 -5
  293. package/dist/index241.js.map +1 -1
  294. package/dist/index242.js +154 -6
  295. package/dist/index242.js.map +1 -1
  296. package/dist/index243.js +30 -7
  297. package/dist/index243.js.map +1 -1
  298. package/dist/index244.js +9 -6
  299. package/dist/index244.js.map +1 -1
  300. package/dist/index245.js +45 -53
  301. package/dist/index245.js.map +1 -1
  302. package/dist/index246.js +11 -23
  303. package/dist/index246.js.map +1 -1
  304. package/dist/index247.js +42 -14
  305. package/dist/index247.js.map +1 -1
  306. package/dist/index248.js +95 -7
  307. package/dist/index248.js.map +1 -1
  308. package/dist/index249.js +85 -9
  309. package/dist/index249.js.map +1 -1
  310. package/dist/index250.js +104 -9
  311. package/dist/index250.js.map +1 -1
  312. package/dist/index251.js +52 -21
  313. package/dist/index251.js.map +1 -1
  314. package/dist/index252.js +11 -10
  315. package/dist/index252.js.map +1 -1
  316. package/dist/index253.js +37 -9
  317. package/dist/index253.js.map +1 -1
  318. package/dist/index254.js +7 -8
  319. package/dist/index254.js.map +1 -1
  320. package/dist/index255.js +116 -4
  321. package/dist/index255.js.map +1 -1
  322. package/dist/index256.js +17 -5
  323. package/dist/index256.js.map +1 -1
  324. package/dist/index257.js +14 -15
  325. package/dist/index257.js.map +1 -1
  326. package/dist/index258.js +3 -9
  327. package/dist/index258.js.map +1 -1
  328. package/dist/index259.js +34 -16
  329. package/dist/index259.js.map +1 -1
  330. package/dist/index260.js +20 -15
  331. package/dist/index260.js.map +1 -1
  332. package/dist/index261.js +9 -12
  333. package/dist/index261.js.map +1 -1
  334. package/dist/index262.js +8 -29
  335. package/dist/index262.js.map +1 -1
  336. package/dist/index263.js +18 -11
  337. package/dist/index263.js.map +1 -1
  338. package/dist/index264.js +26 -23
  339. package/dist/index264.js.map +1 -1
  340. package/dist/index265.js +16 -5
  341. package/dist/index265.js.map +1 -1
  342. package/dist/index266.js +5 -5
  343. package/dist/index266.js.map +1 -1
  344. package/dist/index267.js +19 -3
  345. package/dist/index267.js.map +1 -1
  346. package/dist/index268.js +12 -23
  347. package/dist/index268.js.map +1 -1
  348. package/dist/index269.js +5 -113
  349. package/dist/index269.js.map +1 -1
  350. package/dist/index270.js +3 -16
  351. package/dist/index270.js.map +1 -1
  352. package/dist/index271.js +21 -522
  353. package/dist/index271.js.map +1 -1
  354. package/dist/index272.js +112 -127
  355. package/dist/index272.js.map +1 -1
  356. package/dist/index273.js +15 -133
  357. package/dist/index273.js.map +1 -1
  358. package/dist/index274.js +523 -19
  359. package/dist/index274.js.map +1 -1
  360. package/dist/index275.js +127 -4
  361. package/dist/index275.js.map +1 -1
  362. package/dist/index276.js +133 -18
  363. package/dist/index276.js.map +1 -1
  364. package/dist/index277.js +20 -12
  365. package/dist/index277.js.map +1 -1
  366. package/dist/index278.js +6 -69
  367. package/dist/index278.js.map +1 -1
  368. package/dist/index279.js +6 -9
  369. package/dist/index279.js.map +1 -1
  370. package/dist/index28.js +1 -1
  371. package/dist/index280.js +4 -14
  372. package/dist/index280.js.map +1 -1
  373. package/dist/index281.js +15 -65
  374. package/dist/index281.js.map +1 -1
  375. package/dist/index282.js +8 -64
  376. package/dist/index282.js.map +1 -1
  377. package/dist/index283.js +5 -5
  378. package/dist/index283.js.map +1 -1
  379. package/dist/index284.js +4 -5
  380. package/dist/index284.js.map +1 -1
  381. package/dist/index285.js +546 -4
  382. package/dist/index285.js.map +1 -1
  383. package/dist/index286.js +47 -16
  384. package/dist/index286.js.map +1 -1
  385. package/dist/index287.js +17 -8
  386. package/dist/index287.js.map +1 -1
  387. package/dist/index288.js +6 -5
  388. package/dist/index288.js.map +1 -1
  389. package/dist/index289.js +8 -4
  390. package/dist/index289.js.map +1 -1
  391. package/dist/index29.js +3 -3
  392. package/dist/index290.js +7 -545
  393. package/dist/index290.js.map +1 -1
  394. package/dist/index291.js +9 -47
  395. package/dist/index291.js.map +1 -1
  396. package/dist/index292.js +12 -17
  397. package/dist/index292.js.map +1 -1
  398. package/dist/index293.js +9 -6
  399. package/dist/index293.js.map +1 -1
  400. package/dist/index294.js +13 -8
  401. package/dist/index294.js.map +1 -1
  402. package/dist/index295.js +64 -7
  403. package/dist/index295.js.map +1 -1
  404. package/dist/index296.js +69 -9
  405. package/dist/index296.js.map +1 -1
  406. package/dist/index297.js +9 -13
  407. package/dist/index297.js.map +1 -1
  408. package/dist/index298.js +14 -10
  409. package/dist/index298.js.map +1 -1
  410. package/dist/index299.js +66 -14
  411. package/dist/index299.js.map +1 -1
  412. package/dist/index30.js +24 -24
  413. package/dist/index300.js +4 -3
  414. package/dist/index300.js.map +1 -1
  415. package/dist/index301.js +56 -23
  416. package/dist/index301.js.map +1 -1
  417. package/dist/index303.js +1 -1
  418. package/dist/index305.js +1 -1
  419. package/dist/index306.js +2 -2
  420. package/dist/index307.js +3 -4
  421. package/dist/index307.js.map +1 -1
  422. package/dist/index308.js +23 -56
  423. package/dist/index308.js.map +1 -1
  424. package/dist/index309.js +15 -12
  425. package/dist/index309.js.map +1 -1
  426. package/dist/index31.js +23 -50
  427. package/dist/index31.js.map +1 -1
  428. package/dist/index310.js +26 -25
  429. package/dist/index310.js.map +1 -1
  430. package/dist/index311.js +13 -5
  431. package/dist/index311.js.map +1 -1
  432. package/dist/index312.js +6 -22
  433. package/dist/index312.js.map +1 -1
  434. package/dist/index313.js +22 -15
  435. package/dist/index313.js.map +1 -1
  436. package/dist/index314.js +12 -28
  437. package/dist/index314.js.map +1 -1
  438. package/dist/index315.js +27 -12
  439. package/dist/index315.js.map +1 -1
  440. package/dist/index316.js +5 -7
  441. package/dist/index316.js.map +1 -1
  442. package/dist/index32.js +50 -2640
  443. package/dist/index32.js.map +1 -1
  444. package/dist/index33.js +2598 -351
  445. package/dist/index33.js.map +1 -1
  446. package/dist/index34.js +375 -214
  447. package/dist/index34.js.map +1 -1
  448. package/dist/index35.js +230 -19
  449. package/dist/index35.js.map +1 -1
  450. package/dist/index36.js +18 -138
  451. package/dist/index36.js.map +1 -1
  452. package/dist/index37.js +125 -170
  453. package/dist/index37.js.map +1 -1
  454. package/dist/index38.js +174 -64
  455. package/dist/index38.js.map +1 -1
  456. package/dist/index39.js +74 -88
  457. package/dist/index39.js.map +1 -1
  458. package/dist/index40.js +90 -5
  459. package/dist/index40.js.map +1 -1
  460. package/dist/index41.js +5 -843
  461. package/dist/index41.js.map +1 -1
  462. package/dist/index42.js +832 -54
  463. package/dist/index42.js.map +1 -1
  464. package/dist/index43.js +66 -8
  465. package/dist/index43.js.map +1 -1
  466. package/dist/index44.js +8 -2
  467. package/dist/index44.js.map +1 -1
  468. package/dist/index45.js +2 -24
  469. package/dist/index45.js.map +1 -1
  470. package/dist/index46.js +22 -232
  471. package/dist/index46.js.map +1 -1
  472. package/dist/index47.js +229 -200
  473. package/dist/index47.js.map +1 -1
  474. package/dist/index48.js +205 -4
  475. package/dist/index48.js.map +1 -1
  476. package/dist/index50.js +33 -47
  477. package/dist/index50.js.map +1 -1
  478. package/dist/index52.js +7 -50
  479. package/dist/index52.js.map +1 -1
  480. package/dist/index53.js +11 -7
  481. package/dist/index53.js.map +1 -1
  482. package/dist/index54.js +3 -14
  483. package/dist/index54.js.map +1 -1
  484. package/dist/index55.js +43 -129
  485. package/dist/index55.js.map +1 -1
  486. package/dist/index56.js +50 -10
  487. package/dist/index56.js.map +1 -1
  488. package/dist/index57.js +7 -216
  489. package/dist/index57.js.map +1 -1
  490. package/dist/index58.js +15 -13
  491. package/dist/index58.js.map +1 -1
  492. package/dist/index59.js +132 -32
  493. package/dist/index59.js.map +1 -1
  494. package/dist/index60.js +10 -46
  495. package/dist/index60.js.map +1 -1
  496. package/dist/index61.js +216 -7
  497. package/dist/index61.js.map +1 -1
  498. package/dist/index62.js +12 -49
  499. package/dist/index62.js.map +1 -1
  500. package/dist/index63.js +47 -4
  501. package/dist/index63.js.map +1 -1
  502. package/dist/index64.js +49 -5
  503. package/dist/index64.js.map +1 -1
  504. package/dist/index65.js +4 -28
  505. package/dist/index65.js.map +1 -1
  506. package/dist/index66.js +6 -50
  507. package/dist/index66.js.map +1 -1
  508. package/dist/index67.js +28 -9
  509. package/dist/index67.js.map +1 -1
  510. package/dist/index68.js +50 -6
  511. package/dist/index68.js.map +1 -1
  512. package/dist/index69.js +9 -8
  513. package/dist/index69.js.map +1 -1
  514. package/dist/index70.js +53 -5
  515. package/dist/index70.js.map +1 -1
  516. package/dist/index71.js +2 -54
  517. package/dist/index71.js.map +1 -1
  518. package/dist/index72.js +2 -2
  519. package/dist/index73.js +6 -2
  520. package/dist/index73.js.map +1 -1
  521. package/dist/index74.js +7 -11
  522. package/dist/index74.js.map +1 -1
  523. package/dist/index75.js +5 -46
  524. package/dist/index75.js.map +1 -1
  525. package/dist/index76.js +597 -197
  526. package/dist/index76.js.map +1 -1
  527. package/dist/index77.js +52 -22
  528. package/dist/index77.js.map +1 -1
  529. package/dist/index78.js +4 -24
  530. package/dist/index78.js.map +1 -1
  531. package/dist/index79.js +4 -399
  532. package/dist/index79.js.map +1 -1
  533. package/dist/index80.js +15 -46
  534. package/dist/index80.js.map +1 -1
  535. package/dist/index81.js +5 -605
  536. package/dist/index81.js.map +1 -1
  537. package/dist/index82.js +7 -5
  538. package/dist/index82.js.map +1 -1
  539. package/dist/index83.js +16 -68
  540. package/dist/index83.js.map +1 -1
  541. package/dist/index84.js +5 -2
  542. package/dist/index84.js.map +1 -1
  543. package/dist/index85.js +4 -363
  544. package/dist/index85.js.map +1 -1
  545. package/dist/index86.js +5 -261
  546. package/dist/index86.js.map +1 -1
  547. package/dist/index87.js +5 -60
  548. package/dist/index87.js.map +1 -1
  549. package/dist/index88.js +4 -46
  550. package/dist/index88.js.map +1 -1
  551. package/dist/index89.js +4 -169
  552. package/dist/index89.js.map +1 -1
  553. package/dist/index90.js +6 -109
  554. package/dist/index90.js.map +1 -1
  555. package/dist/index91.js +24 -24
  556. package/dist/index91.js.map +1 -1
  557. package/dist/index92.js +7 -8
  558. package/dist/index92.js.map +1 -1
  559. package/dist/index93.js +4 -4
  560. package/dist/index93.js.map +1 -1
  561. package/dist/index94.js +6 -5
  562. package/dist/index94.js.map +1 -1
  563. package/dist/index95.js +4 -3
  564. package/dist/index95.js.map +1 -1
  565. package/dist/index96.js +4 -466
  566. package/dist/index96.js.map +1 -1
  567. package/dist/index97.js +5 -185
  568. package/dist/index97.js.map +1 -1
  569. package/dist/index98.js +3 -106
  570. package/dist/index98.js.map +1 -1
  571. package/dist/index99.js +8 -262
  572. package/dist/index99.js.map +1 -1
  573. package/package.json +1 -1
package/dist/index11.js CHANGED
@@ -1,28 +1,29 @@
1
1
  import { j as l } from "./index28.js";
2
- import { ChevronLeft as we, ChevronRight as he, CalendarDays as de } from "lucide-react";
2
+ import { ChevronLeft as he, ChevronRight as ve, CalendarDays as le } from "lucide-react";
3
3
  import * as r from "react";
4
- import { DismissableLayerBranch as le } from "./index29.js";
5
- import { createPortal as pe } from "react-dom";
6
- import { IMaskInput as ve } from "react-imask";
7
- import xe, { InputMask as De } from "imask";
8
- import { useIsTouchDevice as ke } from "./index4.js";
4
+ import { DismissableLayerBranch as pe } from "./index29.js";
5
+ import { createPortal as me } from "react-dom";
6
+ import { IMaskInput as xe } from "react-imask";
7
+ import De, { InputMask as ke } from "imask";
8
+ import { useIsTouchDevice as Ee } from "./index4.js";
9
9
  import { cn as ee } from "./index2.js";
10
- import { DayPicker as Ee } from "./index30.js";
11
- const fe = xe;
12
- typeof fe.InputMask != "function" && (fe.InputMask = De);
13
- function ue({
14
- className: s,
10
+ import { DayPicker as Ne } from "./index30.js";
11
+ import { dateMatchModifiers as Pe } from "./index31.js";
12
+ const de = De;
13
+ typeof de.InputMask != "function" && (de.InputMask = ke);
14
+ function ce({
15
+ className: u,
15
16
  classNames: t,
16
17
  components: a,
17
- showOutsideDays: u = !0,
18
- ...x
18
+ showOutsideDays: c = !0,
19
+ ...D
19
20
  }) {
20
21
  return /* @__PURE__ */ l.jsx(
21
- Ee,
22
+ Ne,
22
23
  {
23
24
  weekStartsOn: 1,
24
- showOutsideDays: u,
25
- className: ee("p-3", s),
25
+ showOutsideDays: c,
26
+ className: ee("p-3", u),
26
27
  classNames: {
27
28
  month: "space-y-4",
28
29
  months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
@@ -54,240 +55,258 @@ function ue({
54
55
  ...t
55
56
  },
56
57
  components: {
57
- Chevron: (h) => h.orientation === "left" ? /* @__PURE__ */ l.jsx(we, { ...h, className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(he, { ...h, className: "h-4 w-4" }),
58
+ Chevron: (v) => v.orientation === "left" ? /* @__PURE__ */ l.jsx(he, { ...v, className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(ve, { ...v, className: "h-4 w-4" }),
58
59
  ...a
59
60
  },
60
- ...x
61
+ ...D
61
62
  }
62
63
  );
63
64
  }
64
- ue.displayName = "DayPicker";
65
- function re(s) {
66
- return String(s).padStart(2, "0");
65
+ ce.displayName = "DayPicker";
66
+ function re(u) {
67
+ return String(u).padStart(2, "0");
67
68
  }
68
- function M(s) {
69
- const t = new Date(s);
69
+ function R(u) {
70
+ const t = new Date(u);
70
71
  return t.setHours(0, 0, 0, 0), t;
71
72
  }
72
- function H(s) {
73
- return M(new Date(s.getFullYear(), s.getMonth(), 1));
73
+ function W(u) {
74
+ return R(new Date(u.getFullYear(), u.getMonth(), 1));
74
75
  }
75
- function z(s) {
76
- return `${re(s.getDate())}/${re(s.getMonth() + 1)}/${s.getFullYear()}`;
76
+ function T(u) {
77
+ return `${re(u.getDate())}/${re(u.getMonth() + 1)}/${u.getFullYear()}`;
77
78
  }
78
- function ie({ day: s, month: t, year: a }) {
79
- if (!Number.isFinite(s) || !Number.isFinite(t) || !Number.isFinite(a)) return null;
80
- const u = new Date(a, t - 1, s);
81
- return u.getFullYear() !== a || u.getMonth() !== t - 1 || u.getDate() !== s ? null : M(u);
79
+ function se({ day: u, month: t, year: a }) {
80
+ if (!Number.isFinite(u) || !Number.isFinite(t) || !Number.isFinite(a)) return null;
81
+ const c = new Date(a, t - 1, u);
82
+ return c.getFullYear() !== a || c.getMonth() !== t - 1 || c.getDate() !== u ? null : R(c);
82
83
  }
83
- function se(s, t) {
84
- const a = s.trim();
84
+ function ue(u, t) {
85
+ const a = u.trim();
85
86
  if (!a) return null;
86
- const u = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(a);
87
- if (u)
88
- return ie({ day: Number(u[1]), month: Number(u[2]), year: Number(u[3]) });
89
- const x = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(a);
90
- if (x) {
91
- const I = Number(x[3]);
92
- return Number.isFinite(I) ? ie({ day: Number(x[1]), month: Number(x[2]), year: 2e3 + I }) : null;
87
+ const c = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(a);
88
+ if (c)
89
+ return se({ day: Number(c[1]), month: Number(c[2]), year: Number(c[3]) });
90
+ const D = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(a);
91
+ if (D) {
92
+ const j = Number(D[3]);
93
+ return Number.isFinite(j) ? se({ day: Number(D[1]), month: Number(D[2]), year: 2e3 + j }) : null;
93
94
  }
94
- const h = /^(\d{2})\/(\d{2})$/.exec(a);
95
- return h ? ie({ day: Number(h[1]), month: Number(h[2]), year: t.getFullYear() }) : null;
95
+ const v = /^(\d{2})\/(\d{2})$/.exec(a);
96
+ return v ? se({ day: Number(v[1]), month: Number(v[2]), year: t.getFullYear() }) : null;
96
97
  }
97
- const me = r.forwardRef(
98
+ const ge = r.forwardRef(
98
99
  function({
99
100
  value: t,
100
101
  onChange: a,
101
- onValueUpdate: u,
102
- className: x,
103
- inputClassName: h,
104
- placeholder: I = "DD/MM/YYYY",
102
+ onValueUpdate: c,
103
+ className: D,
104
+ inputClassName: v,
105
+ placeholder: j = "DD/MM/YYYY",
105
106
  disabled: p,
106
- readOnly: $,
107
- open: B,
108
- onOpenChange: W,
109
- dayPickerComponent: K,
110
- dayPickerProps: q,
111
- onFocus: G,
112
- onBlur: j,
113
- onKeyDown: C,
114
- onPointerDown: J,
107
+ readOnly: K,
108
+ open: q,
109
+ onOpenChange: G,
110
+ dayPickerComponent: J,
111
+ dayPickerProps: S,
112
+ onFocus: Q,
113
+ onBlur: L,
114
+ onKeyDown: Y,
115
+ onPointerDown: X,
115
116
  onMouseDown: ne,
116
- ...v
117
- }, D) {
118
- const L = r.useRef(null), P = r.useRef(null), F = r.useRef(null), Q = r.useRef(!1), _ = r.useRef(!1), A = r.useRef(!1), k = r.useRef(!1), [te, d] = r.useState(!1), i = B ?? te, c = W ?? d, [g, m] = r.useState(() => t ? z(t) : ""), b = r.useMemo(() => se(g, /* @__PURE__ */ new Date()), [g]), [X, f] = r.useState(() => H(t ?? /* @__PURE__ */ new Date())), [R, N] = r.useState(() => ({
117
+ ...x
118
+ }, k) {
119
+ const C = r.useRef(null), I = r.useRef(null), O = r.useRef(null), Z = r.useRef(!1), H = r.useRef(!1), $ = r.useRef(!1), E = r.useRef(!1), B = r.useRef(null), [d, w] = r.useState(!1), o = q ?? d, f = G ?? w, [b, N] = r.useState(() => t ? T(t) : ""), g = r.useMemo(() => ue(b, /* @__PURE__ */ new Date()), [b]), [m, P] = r.useState(() => W(t ?? /* @__PURE__ */ new Date())), [M, oe] = r.useState(() => ({
119
120
  left: 0,
120
121
  top: 0
121
- })), oe = typeof window > "u" ? r.useEffect : r.useLayoutEffect, Z = r.useCallback(
122
+ })), te = typeof window > "u" ? r.useEffect : r.useLayoutEffect, ie = r.useCallback(
122
123
  (e) => {
123
- if (u) {
124
- u(e);
124
+ if (c) {
125
+ c(e);
125
126
  return;
126
127
  }
127
128
  a(e);
128
129
  },
129
- [a, u]
130
+ [a, c]
130
131
  ), U = r.useCallback(
131
132
  (e) => {
132
- u && u(e), a(e);
133
+ c && c(e), a(e);
133
134
  },
134
- [a, u]
135
+ [a, c]
135
136
  );
136
137
  r.useEffect(() => {
137
- Q.current || m(t ? z(t) : "");
138
+ Z.current || N(t ? T(t) : "");
138
139
  }, [t]), r.useEffect(() => {
139
- i && f(H(t ?? /* @__PURE__ */ new Date()));
140
- }, [i, t]), r.useEffect(() => {
141
- i && b && f(H(b));
142
- }, [b, i]), r.useEffect(() => {
143
- if (!i) return;
140
+ o && P(W(t ?? /* @__PURE__ */ new Date()));
141
+ }, [o, t]), r.useEffect(() => {
142
+ o && g && P(W(g));
143
+ }, [g, o]), r.useEffect(() => {
144
+ if (!o) return;
144
145
  const e = (n) => {
145
- const y = n.target;
146
- y instanceof Node && (L.current?.contains(y) || P.current?.contains(y) || c(!1));
147
- }, o = (n) => {
148
- n.key === "Escape" && c(!1);
146
+ const s = n.target;
147
+ s instanceof Node && (C.current?.contains(s) || I.current?.contains(s) || f(!1));
148
+ }, i = (n) => {
149
+ n.key === "Escape" && f(!1);
149
150
  };
150
- return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", o, !0), () => {
151
- document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", o, !0);
151
+ return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", i, !0), () => {
152
+ document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", i, !0);
152
153
  };
153
- }, [i]), r.useEffect(() => {
154
- if (!i || typeof window > "u" || !("IntersectionObserver" in window))
154
+ }, [o]), r.useEffect(() => {
155
+ if (!o || typeof window > "u" || !("IntersectionObserver" in window))
155
156
  return;
156
- const e = L.current;
157
+ const e = C.current;
157
158
  if (!e)
158
159
  return;
159
- let o = !0;
160
- const n = new IntersectionObserver((y) => {
161
- if (!o)
160
+ let i = !0;
161
+ const n = new IntersectionObserver((s) => {
162
+ if (!i)
162
163
  return;
163
- const E = y[0];
164
- E && !E.isIntersecting && c(!1);
164
+ const y = s[0];
165
+ y && !y.isIntersecting && f(!1);
165
166
  });
166
167
  return n.observe(e), () => {
167
- o = !1, n.disconnect();
168
+ i = !1, n.disconnect();
168
169
  };
169
- }, [i]);
170
- const ge = r.useCallback(
170
+ }, [o]);
171
+ const ye = r.useCallback(
171
172
  (e) => {
172
- F.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
173
+ O.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
173
174
  },
174
- [D]
175
- ), ce = () => c(!1), ye = K ?? ue, S = r.useCallback(() => {
175
+ [k]
176
+ ), ae = () => f(!1), we = J ?? ce, z = r.useCallback(() => {
176
177
  if (typeof window > "u") return;
177
- const e = L.current, o = P.current;
178
- if (!e || !o) return;
179
- const n = e.getBoundingClientRect(), y = o.offsetWidth, E = o.offsetHeight, T = window.innerWidth ?? 0, Y = window.innerHeight ?? 0, w = 8;
178
+ const e = C.current, i = I.current;
179
+ if (!e || !i) return;
180
+ const n = e.getBoundingClientRect(), s = i.offsetWidth, y = i.offsetHeight, F = window.innerWidth ?? 0, A = window.innerHeight ?? 0, h = 8;
180
181
  let V = n.left;
181
- V + y > T - w && (V = Math.max(w, T - y - w)), V < w && (V = w);
182
- let O = n.bottom + w;
183
- const be = O + E > Y - w, ae = n.top - E - w;
184
- be && ae >= w && (O = ae), O < w && (O = w), O + E > Y - w && (O = Math.max(w, Y - E - w)), N({ left: V, top: O });
182
+ V + s > F - h && (V = Math.max(h, F - s - h)), V < h && (V = h);
183
+ let _ = n.bottom + h;
184
+ const be = _ + y > A - h, fe = n.top - y - h;
185
+ be && fe >= h && (_ = fe), _ < h && (_ = h), _ + y > A - h && (_ = Math.max(h, A - y - h)), oe({ left: V, top: _ });
185
186
  }, []);
186
- return oe(() => {
187
- if (!i || p || typeof window > "u") return;
188
- S();
189
- const e = window.requestAnimationFrame(S);
190
- return window.addEventListener("scroll", S, !0), window.addEventListener("resize", S), () => {
191
- window.cancelAnimationFrame(e), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S);
187
+ return te(() => {
188
+ if (!o || p || typeof window > "u") return;
189
+ z();
190
+ const e = window.requestAnimationFrame(z);
191
+ return window.addEventListener("scroll", z, !0), window.addEventListener("resize", z), () => {
192
+ window.cancelAnimationFrame(e), window.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z);
192
193
  };
193
- }, [p, i, S]), /* @__PURE__ */ l.jsxs("div", { ref: L, "data-slot": "day-picker-input", className: ee("relative group", x), children: [
194
+ }, [p, o, z]), /* @__PURE__ */ l.jsxs("div", { ref: C, "data-slot": "day-picker-input", className: ee("relative group", D), children: [
194
195
  /* @__PURE__ */ l.jsx(
195
- ve,
196
+ xe,
196
197
  {
197
- ...v,
198
+ ...x,
198
199
  "data-slot": "day-picker-input-input",
199
200
  disabled: p,
200
- readOnly: $,
201
+ readOnly: K,
201
202
  autoComplete: "off",
202
- inputRef: ge,
203
+ inputRef: ye,
203
204
  mask: [
204
205
  { mask: "00/00", lazy: !0 },
205
206
  { mask: "00/00/00", lazy: !0 },
206
207
  { mask: "00/00/0000", lazy: !0 }
207
208
  ],
208
- dispatch: (e, o) => {
209
- const n = (o.value + e).replace(/\D/g, "");
210
- return n.length <= 4 ? o.compiledMasks[0] : n.length <= 6 ? o.compiledMasks[1] : o.compiledMasks[2];
209
+ dispatch: (e, i) => {
210
+ const n = (i.value + e).replace(/\D/g, "");
211
+ return n.length <= 4 ? i.compiledMasks[0] : n.length <= 6 ? i.compiledMasks[1] : i.compiledMasks[2];
211
212
  },
212
- placeholder: I,
213
- value: g,
213
+ placeholder: j,
214
+ value: b,
214
215
  className: ee(
215
216
  "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",
216
217
  "transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
217
- h
218
+ v
218
219
  ),
219
220
  onAccept: (e) => {
220
- const o = typeof e == "string" ? e : String(e ?? ""), n = g.replace(/\D/g, "").length;
221
- m(o), o.replace(/\D/g, "").length === 0 && (i && f(H(/* @__PURE__ */ new Date())), n !== 0 && Z(null));
221
+ const i = typeof e == "string" ? e : String(e ?? ""), n = b.replace(/\D/g, "").length;
222
+ N(i), i.replace(/\D/g, "").length === 0 && (o && P(W(/* @__PURE__ */ new Date())), n !== 0 && ie(null));
222
223
  },
223
224
  onComplete: (e) => {
224
- const o = typeof e == "string" ? e : String(e ?? ""), n = se(o, /* @__PURE__ */ new Date());
225
- n && (t && n.getTime() === M(t).getTime() || Z(n));
225
+ const i = typeof e == "string" ? e : String(e ?? "");
226
+ if (B.current === i) {
227
+ B.current = null;
228
+ return;
229
+ }
230
+ const n = ue(i, /* @__PURE__ */ new Date());
231
+ n && (t && n.getTime() === R(t).getTime() || ie(n));
226
232
  },
227
233
  onPointerDown: (e) => {
228
- _.current = !0, A.current = typeof document < "u" && document.activeElement === e.currentTarget, J?.(e);
234
+ H.current = !0, $.current = typeof document < "u" && document.activeElement === e.currentTarget, X?.(e);
229
235
  },
230
236
  onMouseDown: (e) => {
231
- _.current = !0, A.current = typeof document < "u" && document.activeElement === e.currentTarget, ne?.(e);
237
+ H.current = !0, $.current = typeof document < "u" && document.activeElement === e.currentTarget, ne?.(e);
232
238
  },
233
239
  onFocus: (e) => {
234
- const o = !_.current || !A.current;
235
- if (_.current = !1, A.current = !1, Q.current = !0, G?.(e), o) {
240
+ const i = !H.current || !$.current;
241
+ if (H.current = !1, $.current = !1, Z.current = !0, Q?.(e), i) {
236
242
  const n = e.currentTarget;
237
243
  requestAnimationFrame(() => n.select());
238
244
  }
239
- p || c(!0);
245
+ p || f(!0);
240
246
  },
241
247
  onKeyDown: (e) => {
242
- if (C?.(e), !e.defaultPrevented) {
248
+ const i = e.defaultPrevented;
249
+ if (Y?.(e), !(!i && e.defaultPrevented)) {
243
250
  if (e.key === "Enter") {
244
- if (!b)
251
+ if (!g)
245
252
  return;
246
- if (e.preventDefault(), i) {
247
- const o = `${b.getFullYear()}-${re(b.getMonth() + 1)}-${re(b.getDate())}`, n = P.current?.querySelector(
248
- `[data-day='${o}']:not([data-outside]) button`
253
+ if (e.preventDefault(), o) {
254
+ const n = `${g.getFullYear()}-${re(g.getMonth() + 1)}-${re(g.getDate())}`, s = I.current?.querySelector(
255
+ `[data-day='${n}']:not([data-outside]) button`
249
256
  );
250
- if (n instanceof HTMLButtonElement) {
251
- if (n.disabled)
257
+ if (s instanceof HTMLButtonElement) {
258
+ if (s.disabled)
252
259
  return;
253
- n.focus();
260
+ s.focus();
254
261
  }
255
262
  }
256
- m(z(b)), (!t || b.getTime() !== M(t).getTime()) && U(b), c(!1);
263
+ N(T(g)), U(g), f(!1);
264
+ return;
265
+ }
266
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
267
+ const n = g ?? t;
268
+ if (!n)
269
+ return;
270
+ const s = R(new Date(n));
271
+ if (s.setDate(s.getDate() + (e.key === "ArrowUp" ? 1 : -1)), S?.disabled && Pe(s, S.disabled))
272
+ return;
273
+ e.preventDefault();
274
+ const y = T(s);
275
+ B.current = y, N(y), ie(s);
257
276
  return;
258
277
  }
259
- i || (e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && !e.ctrlKey && !e.metaKey && !e.altKey && c(!0), e.key === "Tab" && !e.defaultPrevented && c(!1);
278
+ o || (e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && !e.ctrlKey && !e.metaKey && !e.altKey && f(!0), e.key === "Tab" && !e.defaultPrevented && f(!1);
260
279
  }
261
280
  },
262
281
  onBlur: (e) => {
263
- Q.current = !1, j?.(e);
264
- const o = k.current;
265
- if (k.current = !1, o)
282
+ Z.current = !1, L?.(e);
283
+ const i = E.current;
284
+ if (E.current = !1, i)
266
285
  return;
267
286
  const n = e.relatedTarget;
268
287
  if (n instanceof Node) {
269
- const T = L.current;
270
- if (!T || T.contains(n) || P.current?.contains(n))
288
+ const F = C.current;
289
+ if (!F || F.contains(n) || I.current?.contains(n))
271
290
  return;
272
291
  }
273
- i && typeof window < "u" && requestAnimationFrame(() => {
274
- const T = L.current;
275
- if (!T)
292
+ o && typeof window < "u" && requestAnimationFrame(() => {
293
+ const F = C.current;
294
+ if (!F)
276
295
  return;
277
- const Y = document.activeElement;
278
- Y && (T.contains(Y) || P.current?.contains(Y)) || c(!1);
296
+ const A = document.activeElement;
297
+ A && (F.contains(A) || I.current?.contains(A)) || f(!1);
279
298
  });
280
- const y = g.trim();
281
- if (y === "") {
282
- t && (m(""), U(null));
299
+ const s = b.trim();
300
+ if (s === "") {
301
+ t && (N(""), U(null));
283
302
  return;
284
303
  }
285
- const E = se(y, /* @__PURE__ */ new Date());
286
- if (E) {
287
- m(z(E)), (!t || E.getTime() !== M(t).getTime()) && U(E);
304
+ const y = ue(s, /* @__PURE__ */ new Date());
305
+ if (y) {
306
+ N(T(y)), (!t || y.getTime() !== R(t).getTime()) && U(y);
288
307
  return;
289
308
  }
290
- m(t ? z(t) : "");
309
+ N(t ? T(t) : "");
291
310
  }
292
311
  }
293
312
  ),
@@ -301,240 +320,240 @@ const me = r.forwardRef(
301
320
  "data-slot": "day-picker-input-trigger",
302
321
  className: "absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground",
303
322
  onPointerDown: (e) => {
304
- e.preventDefault(), !p && F.current?.focus({ preventScroll: !0 });
323
+ e.preventDefault(), !p && O.current?.focus({ preventScroll: !0 });
305
324
  },
306
325
  onMouseDown: (e) => {
307
- e.preventDefault(), !p && F.current?.focus({ preventScroll: !0 });
326
+ e.preventDefault(), !p && O.current?.focus({ preventScroll: !0 });
308
327
  },
309
328
  onClick: () => {
310
- p || (F.current?.focus({ preventScroll: !0 }), c(!0));
329
+ p || (O.current?.focus({ preventScroll: !0 }), f(!0));
311
330
  },
312
- children: /* @__PURE__ */ l.jsx(de, { "aria-hidden": !0, className: "size-4" })
331
+ children: /* @__PURE__ */ l.jsx(le, { "aria-hidden": !0, className: "size-4" })
313
332
  }
314
333
  ),
315
- i && !p && (() => {
316
- const e = g.trim() === "" ? void 0 : b ?? t ?? void 0, o = /* @__PURE__ */ l.jsx(le, { children: /* @__PURE__ */ l.jsx(
334
+ o && !p && (() => {
335
+ const e = b.trim() === "" ? void 0 : g ?? t ?? void 0, i = /* @__PURE__ */ l.jsx(pe, { children: /* @__PURE__ */ l.jsx(
317
336
  "div",
318
337
  {
319
- ref: P,
338
+ ref: I,
320
339
  "data-slot": "day-picker-input-popover",
321
340
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
322
- style: { left: R.left, top: R.top },
341
+ style: { left: M.left, top: M.top },
323
342
  onPointerDownCapture: () => {
324
- k.current = !0;
343
+ E.current = !0;
325
344
  },
326
345
  onMouseDownCapture: () => {
327
- k.current = !0;
346
+ E.current = !0;
328
347
  },
329
348
  children: /* @__PURE__ */ l.jsx(
330
- ye,
349
+ we,
331
350
  {
332
351
  mode: "single",
333
- month: X,
334
- onMonthChange: f,
352
+ month: m,
353
+ onMonthChange: P,
335
354
  selected: e,
336
355
  onSelect: (n) => {
337
356
  if (!n) {
338
- t && U(null), m(""), ce();
357
+ t && U(null), N(""), ae();
339
358
  return;
340
359
  }
341
- const y = M(n);
342
- (!t || y.getTime() !== M(t).getTime()) && U(y), m(z(y)), ce();
360
+ const s = R(n);
361
+ (!t || s.getTime() !== R(t).getTime()) && U(s), N(T(s)), ae();
343
362
  },
344
- ...q
363
+ ...S
345
364
  }
346
365
  )
347
366
  }
348
367
  ) });
349
- return typeof document > "u" ? o : pe(o, document.body);
368
+ return typeof document > "u" ? i : me(i, document.body);
350
369
  })()
351
370
  ] });
352
371
  }
353
372
  );
354
- me.displayName = "DayPickerInput";
355
- function Pe({
356
- id: s,
373
+ ge.displayName = "DayPickerInput";
374
+ function Me({
375
+ id: u,
357
376
  value: t,
358
377
  onChange: a,
359
- onValueUpdate: u,
360
- className: x,
361
- inputClassName: h,
362
- placeholder: I = "DD/MM/YYYY",
378
+ onValueUpdate: c,
379
+ className: D,
380
+ inputClassName: v,
381
+ placeholder: j = "DD/MM/YYYY",
363
382
  disabled: p,
364
- open: $,
365
- onOpenChange: B,
366
- dayPickerComponent: W,
367
- dayPickerProps: K,
368
- triggerTestId: q,
369
- isHydrated: G
383
+ open: K,
384
+ onOpenChange: q,
385
+ dayPickerComponent: G,
386
+ dayPickerProps: J,
387
+ triggerTestId: S,
388
+ isHydrated: Q
370
389
  }) {
371
- const j = r.useRef(null), C = r.useRef(null), [J, ne] = r.useState(!1), v = $ ?? J, D = B ?? ne, [L, P] = r.useState(() => H(t ?? /* @__PURE__ */ new Date())), [F, Q] = r.useState(() => ({
390
+ const L = r.useRef(null), Y = r.useRef(null), [X, ne] = r.useState(!1), x = K ?? X, k = q ?? ne, [C, I] = r.useState(() => W(t ?? /* @__PURE__ */ new Date())), [O, Z] = r.useState(() => ({
372
391
  left: 0,
373
392
  top: 0
374
- })), _ = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
393
+ })), H = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
375
394
  r.useEffect(() => {
376
- v && P(H(t ?? /* @__PURE__ */ new Date()));
377
- }, [v, t]), r.useEffect(() => {
378
- if (!v) return;
379
- const d = (c) => {
380
- const g = c.target;
381
- g instanceof Node && (j.current?.contains(g) || C.current?.contains(g) || D(!1));
382
- }, i = (c) => {
383
- c.key === "Escape" && D(!1);
395
+ x && I(W(t ?? /* @__PURE__ */ new Date()));
396
+ }, [x, t]), r.useEffect(() => {
397
+ if (!x) return;
398
+ const d = (o) => {
399
+ const f = o.target;
400
+ f instanceof Node && (L.current?.contains(f) || Y.current?.contains(f) || k(!1));
401
+ }, w = (o) => {
402
+ o.key === "Escape" && k(!1);
384
403
  };
385
- return document.addEventListener("pointerdown", d, !0), document.addEventListener("keydown", i, !0), () => {
386
- document.removeEventListener("pointerdown", d, !0), document.removeEventListener("keydown", i, !0);
404
+ return document.addEventListener("pointerdown", d, !0), document.addEventListener("keydown", w, !0), () => {
405
+ document.removeEventListener("pointerdown", d, !0), document.removeEventListener("keydown", w, !0);
387
406
  };
388
- }, [v]), r.useEffect(() => {
389
- if (!v || typeof window > "u" || !("IntersectionObserver" in window))
407
+ }, [x]), r.useEffect(() => {
408
+ if (!x || typeof window > "u" || !("IntersectionObserver" in window))
390
409
  return;
391
- const d = j.current;
410
+ const d = L.current;
392
411
  if (!d)
393
412
  return;
394
- let i = !0;
395
- const c = new IntersectionObserver((g) => {
396
- if (!i)
413
+ let w = !0;
414
+ const o = new IntersectionObserver((f) => {
415
+ if (!w)
397
416
  return;
398
- const m = g[0];
399
- m && !m.isIntersecting && D(!1);
417
+ const b = f[0];
418
+ b && !b.isIntersecting && k(!1);
400
419
  });
401
- return c.observe(d), () => {
402
- i = !1, c.disconnect();
420
+ return o.observe(d), () => {
421
+ w = !1, o.disconnect();
403
422
  };
404
- }, [v]);
405
- const A = W ?? ue, k = r.useCallback(() => {
423
+ }, [x]);
424
+ const $ = G ?? ce, E = r.useCallback(() => {
406
425
  if (typeof window > "u") return;
407
- const d = j.current, i = C.current;
408
- if (!d || !i) return;
409
- const c = d.getBoundingClientRect(), g = i.offsetWidth, m = i.offsetHeight, b = window.innerWidth ?? 0, X = window.innerHeight ?? 0, f = 8;
410
- let R = c.left;
411
- R + g > b - f && (R = Math.max(f, b - g - f)), R < f && (R = f);
412
- let N = c.bottom + f;
413
- const oe = N + m > X - f, Z = c.top - m - f;
414
- oe && Z >= f && (N = Z), N < f && (N = f), N + m > X - f && (N = Math.max(f, X - m - f)), Q({ left: R, top: N });
426
+ const d = L.current, w = Y.current;
427
+ if (!d || !w) return;
428
+ const o = d.getBoundingClientRect(), f = w.offsetWidth, b = w.offsetHeight, N = window.innerWidth ?? 0, g = window.innerHeight ?? 0, m = 8;
429
+ let P = o.left;
430
+ P + f > N - m && (P = Math.max(m, N - f - m)), P < m && (P = m);
431
+ let M = o.bottom + m;
432
+ const oe = M + b > g - m, te = o.top - b - m;
433
+ oe && te >= m && (M = te), M < m && (M = m), M + b > g - m && (M = Math.max(m, g - b - m)), Z({ left: P, top: M });
415
434
  }, []);
416
- _(() => {
417
- if (!v || p || typeof window > "u") return;
418
- k();
419
- const d = window.requestAnimationFrame(k);
420
- return window.addEventListener("scroll", k, !0), window.addEventListener("resize", k), () => {
421
- window.cancelAnimationFrame(d), window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k);
435
+ H(() => {
436
+ if (!x || p || typeof window > "u") return;
437
+ E();
438
+ const d = window.requestAnimationFrame(E);
439
+ return window.addEventListener("scroll", E, !0), window.addEventListener("resize", E), () => {
440
+ window.cancelAnimationFrame(d), window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E);
422
441
  };
423
- }, [p, v, k]);
424
- const te = r.useCallback(
442
+ }, [p, x, E]);
443
+ const B = r.useCallback(
425
444
  (d) => {
426
- u && u(d), a(d);
445
+ c && c(d), a(d);
427
446
  },
428
- [a, u]
447
+ [a, c]
429
448
  );
430
- return /* @__PURE__ */ l.jsxs("div", { ref: j, "data-slot": "day-picker-input", className: ee("relative group", x), children: [
449
+ return /* @__PURE__ */ l.jsxs("div", { ref: L, "data-slot": "day-picker-input", className: ee("relative group", D), children: [
431
450
  /* @__PURE__ */ l.jsxs(
432
451
  "button",
433
452
  {
434
- id: s,
453
+ id: u,
435
454
  type: "button",
436
455
  disabled: p,
437
- "data-testid": q,
438
- "data-hydrated": G ? "true" : void 0,
456
+ "data-testid": S,
457
+ "data-hydrated": Q ? "true" : void 0,
439
458
  "data-slot": "day-picker-input-input",
440
459
  className: ee(
441
460
  "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",
442
461
  "transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
443
462
  !t && "text-muted-foreground",
444
- v && "ring-2 ring-primary ring-offset-2",
445
- h
463
+ x && "ring-2 ring-primary ring-offset-2",
464
+ v
446
465
  ),
447
466
  onClick: () => {
448
- p || D(!v);
467
+ p || k(!x);
449
468
  },
450
469
  children: [
451
470
  /* @__PURE__ */ l.jsx(
452
- de,
471
+ le,
453
472
  {
454
473
  "aria-hidden": !0,
455
474
  className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground"
456
475
  }
457
476
  ),
458
- t ? z(t) : I
477
+ t ? T(t) : j
459
478
  ]
460
479
  }
461
480
  ),
462
- v && !p && (() => {
463
- const d = /* @__PURE__ */ l.jsx(le, { children: /* @__PURE__ */ l.jsx(
481
+ x && !p && (() => {
482
+ const d = /* @__PURE__ */ l.jsx(pe, { children: /* @__PURE__ */ l.jsx(
464
483
  "div",
465
484
  {
466
- ref: C,
485
+ ref: Y,
467
486
  "data-slot": "day-picker-input-popover",
468
487
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
469
- style: { left: F.left, top: F.top },
488
+ style: { left: O.left, top: O.top },
470
489
  children: /* @__PURE__ */ l.jsx(
471
- A,
490
+ $,
472
491
  {
473
492
  mode: "single",
474
- month: L,
475
- onMonthChange: P,
493
+ month: C,
494
+ onMonthChange: I,
476
495
  selected: t ?? void 0,
477
- onSelect: (i) => {
478
- if (!i) {
479
- te(null), D(!1);
496
+ onSelect: (w) => {
497
+ if (!w) {
498
+ B(null), k(!1);
480
499
  return;
481
500
  }
482
- const c = M(i);
483
- (!t || c.getTime() !== M(t).getTime()) && te(c), D(!1);
501
+ const o = R(w);
502
+ (!t || o.getTime() !== R(t).getTime()) && B(o), k(!1);
484
503
  },
485
- ...K
504
+ ...J
486
505
  }
487
506
  )
488
507
  }
489
508
  ) });
490
- return typeof document > "u" ? d : pe(d, document.body);
509
+ return typeof document > "u" ? d : me(d, document.body);
491
510
  })()
492
511
  ] });
493
512
  }
494
- function Se(s) {
495
- if (ke())
496
- return /* @__PURE__ */ l.jsx(Pe, { ...s });
513
+ function ze(u) {
514
+ if (Ee())
515
+ return /* @__PURE__ */ l.jsx(Me, { ...u });
497
516
  const {
498
517
  id: a,
499
- value: u,
500
- onChange: x,
501
- onValueUpdate: h,
502
- className: I,
518
+ value: c,
519
+ onChange: D,
520
+ onValueUpdate: v,
521
+ className: j,
503
522
  inputClassName: p,
504
- placeholder: $ = "DD/MM/YYYY",
505
- disabled: B,
506
- readOnly: W,
507
- dayPickerComponent: K,
508
- dayPickerProps: q,
509
- triggerTestId: G,
510
- isHydrated: j,
511
- open: C,
512
- onOpenChange: J
513
- } = s;
523
+ placeholder: K = "DD/MM/YYYY",
524
+ disabled: q,
525
+ readOnly: G,
526
+ dayPickerComponent: J,
527
+ dayPickerProps: S,
528
+ triggerTestId: Q,
529
+ isHydrated: L,
530
+ open: Y,
531
+ onOpenChange: X
532
+ } = u;
514
533
  return /* @__PURE__ */ l.jsx(
515
- me,
534
+ ge,
516
535
  {
517
536
  id: a,
518
- value: u,
519
- onChange: x,
520
- onValueUpdate: h,
521
- className: I,
537
+ value: c,
538
+ onChange: D,
539
+ onValueUpdate: v,
540
+ className: j,
522
541
  inputClassName: p,
523
- placeholder: $,
524
- disabled: B,
525
- readOnly: W,
526
- open: C,
527
- onOpenChange: J,
528
- dayPickerComponent: K,
529
- dayPickerProps: q,
530
- "data-testid": G,
531
- "data-hydrated": j ? "true" : void 0
542
+ placeholder: K,
543
+ disabled: q,
544
+ readOnly: G,
545
+ open: Y,
546
+ onOpenChange: X,
547
+ dayPickerComponent: J,
548
+ dayPickerProps: S,
549
+ "data-testid": Q,
550
+ "data-hydrated": L ? "true" : void 0
532
551
  }
533
552
  );
534
553
  }
535
554
  export {
536
- ue as DayPicker,
537
- Se as DayPickerField,
538
- me as DayPickerInput
555
+ ce as DayPicker,
556
+ ze as DayPickerField,
557
+ ge as DayPickerInput
539
558
  };
540
559
  //# sourceMappingURL=index11.js.map