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