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