@rpcbase/ui 0.280.0 → 0.282.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 (519) hide show
  1. package/dist/components/AddressAutocompleteInput/index.d.ts +1 -1
  2. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
  3. package/dist/components/ApplePayButton/index.d.ts +1 -1
  4. package/dist/components/ApplePayButton/index.d.ts.map +1 -1
  5. package/dist/components/Checkbox/index.d.ts +1 -1
  6. package/dist/components/Checkbox/index.d.ts.map +1 -1
  7. package/dist/components/DayPickerField/index.d.ts +2 -2
  8. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  9. package/dist/components/Dialog/index.d.ts +9 -9
  10. package/dist/components/Dialog/index.d.ts.map +1 -1
  11. package/dist/components/FilesUploadField/index.d.ts +1 -1
  12. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  13. package/dist/components/HourPickerField/index.d.ts +2 -2
  14. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  15. package/dist/components/I18nField/index.d.ts +1 -1
  16. package/dist/components/I18nField/index.d.ts.map +1 -1
  17. package/dist/components/Image/index.d.ts +1 -1
  18. package/dist/components/Image/index.d.ts.map +1 -1
  19. package/dist/components/ImagesField/index.d.ts +1 -1
  20. package/dist/components/ImagesField/index.d.ts.map +1 -1
  21. package/dist/components/Input/index.d.ts +1 -1
  22. package/dist/components/Input/index.d.ts.map +1 -1
  23. package/dist/components/Notifications/NotificationsButton.d.ts +1 -1
  24. package/dist/components/Notifications/NotificationsButton.d.ts.map +1 -1
  25. package/dist/components/Notifications/NotificationsDrawer.d.ts +1 -1
  26. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  27. package/dist/components/Notifications/NotificationsSettings.d.ts +1 -1
  28. package/dist/components/Notifications/NotificationsSettings.d.ts.map +1 -1
  29. package/dist/components/PhoneNumberInput/suggestions.d.ts +3 -3
  30. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  31. package/dist/components/Select/index.d.ts +2 -2
  32. package/dist/components/Select/index.d.ts.map +1 -1
  33. package/dist/components/header/MenuPopover/index.d.ts +1 -1
  34. package/dist/components/header/MenuPopover/index.d.ts.map +1 -1
  35. package/dist/index.js +12 -12
  36. package/dist/index10.js +6 -4
  37. package/dist/index10.js.map +1 -1
  38. package/dist/index12.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index14.js +88 -88
  41. package/dist/index14.js.map +1 -1
  42. package/dist/index15.js.map +1 -1
  43. package/dist/index154.js +19 -7
  44. package/dist/index154.js.map +1 -1
  45. package/dist/index16.js +36 -45
  46. package/dist/index16.js.map +1 -1
  47. package/dist/index160.js +3 -3
  48. package/dist/index160.js.map +1 -1
  49. package/dist/index166.js +5 -5
  50. package/dist/index166.js.map +1 -1
  51. package/dist/index172.js +27 -25
  52. package/dist/index172.js.map +1 -1
  53. package/dist/index181.js +1 -1
  54. package/dist/index181.js.map +1 -1
  55. package/dist/index182.js +145 -162
  56. package/dist/index182.js.map +1 -1
  57. package/dist/index184.js +6 -8
  58. package/dist/index184.js.map +1 -1
  59. package/dist/index186.js +2 -8
  60. package/dist/index186.js.map +1 -1
  61. package/dist/index19.js +1 -1
  62. package/dist/index19.js.map +1 -1
  63. package/dist/index195.js +1 -1
  64. package/dist/index195.js.map +1 -1
  65. package/dist/index196.js +2 -2
  66. package/dist/index196.js.map +1 -1
  67. package/dist/index197.js +1 -1
  68. package/dist/index197.js.map +1 -1
  69. package/dist/index198.js +16 -15
  70. package/dist/index198.js.map +1 -1
  71. package/dist/index199.js +13 -17
  72. package/dist/index199.js.map +1 -1
  73. package/dist/index200.js +3 -2
  74. package/dist/index200.js.map +1 -1
  75. package/dist/index207.js +5 -90
  76. package/dist/index207.js.map +1 -1
  77. package/dist/index208.js +15 -3
  78. package/dist/index208.js.map +1 -1
  79. package/dist/index209.js +102 -22
  80. package/dist/index209.js.map +1 -1
  81. package/dist/index210.js +3 -28
  82. package/dist/index210.js.map +1 -1
  83. package/dist/index211.js +23 -19
  84. package/dist/index211.js.map +1 -1
  85. package/dist/index212.js +27 -6
  86. package/dist/index212.js.map +1 -1
  87. package/dist/index213.js +19 -14
  88. package/dist/index213.js.map +1 -1
  89. package/dist/index214.js +5 -6
  90. package/dist/index214.js.map +1 -1
  91. package/dist/index215.js +14 -26
  92. package/dist/index215.js.map +1 -1
  93. package/dist/index216.js +7 -22
  94. package/dist/index216.js.map +1 -1
  95. package/dist/index217.js +27 -6
  96. package/dist/index217.js.map +1 -1
  97. package/dist/index218.js +23 -5
  98. package/dist/index218.js.map +1 -1
  99. package/dist/index219.js +6 -4
  100. package/dist/index219.js.map +1 -1
  101. package/dist/index220.js +5 -4
  102. package/dist/index220.js.map +1 -1
  103. package/dist/index221.js +4 -24
  104. package/dist/index221.js.map +1 -1
  105. package/dist/index222.js +4 -3
  106. package/dist/index222.js.map +1 -1
  107. package/dist/index223.js +21 -21
  108. package/dist/index223.js.map +1 -1
  109. package/dist/index224.js +3 -23
  110. package/dist/index224.js.map +1 -1
  111. package/dist/index225.js +23 -6
  112. package/dist/index225.js.map +1 -1
  113. package/dist/index226.js +22 -9
  114. package/dist/index226.js.map +1 -1
  115. package/dist/index227.js +5 -17
  116. package/dist/index227.js.map +1 -1
  117. package/dist/index228.js +8 -49
  118. package/dist/index228.js.map +1 -1
  119. package/dist/index229.js +18 -5
  120. package/dist/index229.js.map +1 -1
  121. package/dist/index230.js +50 -19
  122. package/dist/index230.js.map +1 -1
  123. package/dist/index231.js +20 -28
  124. package/dist/index231.js.map +1 -1
  125. package/dist/index232.js +27 -104
  126. package/dist/index232.js.map +1 -1
  127. package/dist/index233.js +98 -33
  128. package/dist/index233.js.map +1 -1
  129. package/dist/index234.js +28 -113
  130. package/dist/index234.js.map +1 -1
  131. package/dist/index235.js +117 -11
  132. package/dist/index235.js.map +1 -1
  133. package/dist/index236.js +12 -4
  134. package/dist/index236.js.map +1 -1
  135. package/dist/index237.js +4 -15
  136. package/dist/index237.js.map +1 -1
  137. package/dist/index238.js +13 -62
  138. package/dist/index238.js.map +1 -1
  139. package/dist/index239.js +64 -9
  140. package/dist/index239.js.map +1 -1
  141. package/dist/index240.js +10 -106
  142. package/dist/index240.js.map +1 -1
  143. package/dist/index241.js +107 -13
  144. package/dist/index241.js.map +1 -1
  145. package/dist/index242.js +16 -13
  146. package/dist/index242.js.map +1 -1
  147. package/dist/index243.js +13 -5
  148. package/dist/index243.js.map +1 -1
  149. package/dist/index244.js +4 -316
  150. package/dist/index244.js.map +1 -1
  151. package/dist/index245.js +315 -58
  152. package/dist/index245.js.map +1 -1
  153. package/dist/index246.js +58 -223
  154. package/dist/index246.js.map +1 -1
  155. package/dist/index247.js +215 -318
  156. package/dist/index247.js.map +1 -1
  157. package/dist/index248.js +250 -306
  158. package/dist/index248.js.map +1 -1
  159. package/dist/index249.js +308 -173
  160. package/dist/index249.js.map +1 -1
  161. package/dist/index250.js +178 -7
  162. package/dist/index250.js.map +1 -1
  163. package/dist/index251.js +8 -15
  164. package/dist/index251.js.map +1 -1
  165. package/dist/index252.js +41 -5
  166. package/dist/index252.js.map +1 -1
  167. package/dist/index253.js +46 -38
  168. package/dist/index253.js.map +1 -1
  169. package/dist/index254.js +7 -50
  170. package/dist/index254.js.map +1 -1
  171. package/dist/index255.js +49 -6
  172. package/dist/index255.js.map +1 -1
  173. package/dist/index256.js +48 -46
  174. package/dist/index256.js.map +1 -1
  175. package/dist/index257.js +6 -51
  176. package/dist/index257.js.map +1 -1
  177. package/dist/index258.js +10 -9
  178. package/dist/index258.js.map +1 -1
  179. package/dist/index259.js +60 -8
  180. package/dist/index259.js.map +1 -1
  181. package/dist/index26.js.map +1 -1
  182. package/dist/index260.js +41 -60
  183. package/dist/index260.js.map +1 -1
  184. package/dist/index261.js +88 -34
  185. package/dist/index261.js.map +1 -1
  186. package/dist/index262.js +47 -94
  187. package/dist/index262.js.map +1 -1
  188. package/dist/index263.js +36 -49
  189. package/dist/index263.js.map +1 -1
  190. package/dist/index264.js +45 -32
  191. package/dist/index264.js.map +1 -1
  192. package/dist/index265.js +47 -46
  193. package/dist/index265.js.map +1 -1
  194. package/dist/index266.js +18 -48
  195. package/dist/index266.js.map +1 -1
  196. package/dist/index267.js +174 -15
  197. package/dist/index267.js.map +1 -1
  198. package/dist/index268.js +47 -169
  199. package/dist/index268.js.map +1 -1
  200. package/dist/index269.js +17 -34
  201. package/dist/index269.js.map +1 -1
  202. package/dist/index270.js +59 -10
  203. package/dist/index270.js.map +1 -1
  204. package/dist/index271.js +10 -66
  205. package/dist/index271.js.map +1 -1
  206. package/dist/index272.js +4 -4
  207. package/dist/index273.js +71 -69
  208. package/dist/index273.js.map +1 -1
  209. package/dist/index274.js +158 -152
  210. package/dist/index274.js.map +1 -1
  211. package/dist/index275.js +7 -13
  212. package/dist/index275.js.map +1 -1
  213. package/dist/index276.js +12 -5
  214. package/dist/index276.js.map +1 -1
  215. package/dist/index277.js +12 -6
  216. package/dist/index277.js.map +1 -1
  217. package/dist/index278.js +11 -12
  218. package/dist/index278.js.map +1 -1
  219. package/dist/index279.js +65 -9
  220. package/dist/index279.js.map +1 -1
  221. package/dist/index280.js +6 -74
  222. package/dist/index280.js.map +1 -1
  223. package/dist/index281.js +25 -6
  224. package/dist/index281.js.map +1 -1
  225. package/dist/index282.js +24 -24
  226. package/dist/index282.js.map +1 -1
  227. package/dist/index283.js +125 -24
  228. package/dist/index283.js.map +1 -1
  229. package/dist/index284.js +52 -115
  230. package/dist/index284.js.map +1 -1
  231. package/dist/index285.js +59 -55
  232. package/dist/index285.js.map +1 -1
  233. package/dist/index286.js +48 -61
  234. package/dist/index286.js.map +1 -1
  235. package/dist/index287.js +5 -48
  236. package/dist/index287.js.map +1 -1
  237. package/dist/index288.js +14 -8
  238. package/dist/index288.js.map +1 -1
  239. package/dist/index289.js +18 -14
  240. package/dist/index289.js.map +1 -1
  241. package/dist/index290.js +10 -17
  242. package/dist/index290.js.map +1 -1
  243. package/dist/index291.js +23 -11
  244. package/dist/index291.js.map +1 -1
  245. package/dist/index292.js +52 -25
  246. package/dist/index292.js.map +1 -1
  247. package/dist/index293.js +6 -52
  248. package/dist/index293.js.map +1 -1
  249. package/dist/index294.js +137 -5
  250. package/dist/index294.js.map +1 -1
  251. package/dist/index295.js +59 -149
  252. package/dist/index295.js.map +1 -1
  253. package/dist/index296.js +90 -49
  254. package/dist/index296.js.map +1 -1
  255. package/dist/index297.js +11 -117
  256. package/dist/index297.js.map +1 -1
  257. package/dist/index298.js +863 -11
  258. package/dist/index298.js.map +1 -1
  259. package/dist/index299.js +21 -865
  260. package/dist/index299.js.map +1 -1
  261. package/dist/index3.js.map +1 -1
  262. package/dist/index300.js +417 -27
  263. package/dist/index300.js.map +1 -1
  264. package/dist/index301.js +774 -483
  265. package/dist/index301.js.map +1 -1
  266. package/dist/index302.js +7436 -803
  267. package/dist/index302.js.map +1 -1
  268. package/dist/index303.js +7 -7429
  269. package/dist/index303.js.map +1 -1
  270. package/dist/index304.js +12 -6
  271. package/dist/index304.js.map +1 -1
  272. package/dist/index305.js +5 -12
  273. package/dist/index305.js.map +1 -1
  274. package/dist/index306.js +3 -3
  275. package/dist/index306.js.map +1 -1
  276. package/dist/index307.js +469 -5
  277. package/dist/index307.js.map +1 -1
  278. package/dist/index308.js +32 -464
  279. package/dist/index308.js.map +1 -1
  280. package/dist/index309.js +18 -36
  281. package/dist/index309.js.map +1 -1
  282. package/dist/index310.js +28 -17
  283. package/dist/index310.js.map +1 -1
  284. package/dist/index311.js +4 -30
  285. package/dist/index311.js.map +1 -1
  286. package/dist/index312.js +59 -4
  287. package/dist/index312.js.map +1 -1
  288. package/dist/index313.js +11 -59
  289. package/dist/index313.js.map +1 -1
  290. package/dist/index314.js +5 -9
  291. package/dist/index314.js.map +1 -1
  292. package/dist/index315.js +9 -5
  293. package/dist/index315.js.map +1 -1
  294. package/dist/index316.js +12 -9
  295. package/dist/index316.js.map +1 -1
  296. package/dist/index317.js +3 -13
  297. package/dist/index317.js.map +1 -1
  298. package/dist/index318.js +17 -3
  299. package/dist/index318.js.map +1 -1
  300. package/dist/index319.js +23 -14
  301. package/dist/index319.js.map +1 -1
  302. package/dist/index320.js +39 -23
  303. package/dist/index320.js.map +1 -1
  304. package/dist/index321.js +5 -41
  305. package/dist/index321.js.map +1 -1
  306. package/dist/index322.js +25 -5
  307. package/dist/index322.js.map +1 -1
  308. package/dist/index323.js +18 -24
  309. package/dist/index323.js.map +1 -1
  310. package/dist/index324.js +32 -17
  311. package/dist/index324.js.map +1 -1
  312. package/dist/index325.js +5 -34
  313. package/dist/index325.js.map +1 -1
  314. package/dist/index326.js +9 -5
  315. package/dist/index326.js.map +1 -1
  316. package/dist/index327.js +7 -8
  317. package/dist/index327.js.map +1 -1
  318. package/dist/index328.js +9 -8
  319. package/dist/index328.js.map +1 -1
  320. package/dist/index329.js +10 -9
  321. package/dist/index329.js.map +1 -1
  322. package/dist/index330.js +7 -10
  323. package/dist/index330.js.map +1 -1
  324. package/dist/index331.js +75 -7
  325. package/dist/index331.js.map +1 -1
  326. package/dist/index332.js +153 -66
  327. package/dist/index332.js.map +1 -1
  328. package/dist/index333.js +99 -147
  329. package/dist/index333.js.map +1 -1
  330. package/dist/index334.js +13 -113
  331. package/dist/index334.js.map +1 -1
  332. package/dist/index335.js +78 -12
  333. package/dist/index335.js.map +1 -1
  334. package/dist/index336.js +23 -57
  335. package/dist/index336.js.map +1 -1
  336. package/dist/index337.js +12 -45
  337. package/dist/index337.js.map +1 -1
  338. package/dist/index338.js +16 -13
  339. package/dist/index338.js.map +1 -1
  340. package/dist/index339.js +100 -15
  341. package/dist/index339.js.map +1 -1
  342. package/dist/index340.js +50 -95
  343. package/dist/index340.js.map +1 -1
  344. package/dist/index341.js +57 -5
  345. package/dist/index341.js.map +1 -1
  346. package/dist/index342.js +41 -78
  347. package/dist/index342.js.map +1 -1
  348. package/dist/index343.js +100 -58
  349. package/dist/index343.js.map +1 -1
  350. package/dist/index344.js +46 -104
  351. package/dist/index344.js.map +1 -1
  352. package/dist/index345.js +39 -51
  353. package/dist/index345.js.map +1 -1
  354. package/dist/index346.js +143 -42
  355. package/dist/index346.js.map +1 -1
  356. package/dist/index347.js +122 -123
  357. package/dist/index347.js.map +1 -1
  358. package/dist/index348.js +224 -108
  359. package/dist/index348.js.map +1 -1
  360. package/dist/index349.js +158 -174
  361. package/dist/index349.js.map +1 -1
  362. package/dist/index350.js +213 -144
  363. package/dist/index350.js.map +1 -1
  364. package/dist/index351.js +5 -309
  365. package/dist/index351.js.map +1 -1
  366. package/dist/index352.js +6 -5
  367. package/dist/index352.js.map +1 -1
  368. package/dist/index353.js +7 -6
  369. package/dist/index353.js.map +1 -1
  370. package/dist/index354.js +4 -5
  371. package/dist/index354.js.map +1 -1
  372. package/dist/index355.js +4 -4
  373. package/dist/index355.js.map +1 -1
  374. package/dist/index356.js +21 -6
  375. package/dist/index356.js.map +1 -1
  376. package/dist/index357.js +10 -21
  377. package/dist/index357.js.map +1 -1
  378. package/dist/index358.js +128 -10
  379. package/dist/index358.js.map +1 -1
  380. package/dist/index359.js +36 -122
  381. package/dist/index359.js.map +1 -1
  382. package/dist/index360.js +64 -38
  383. package/dist/index360.js.map +1 -1
  384. package/dist/index361.js +115 -66
  385. package/dist/index361.js.map +1 -1
  386. package/dist/index362.js +485 -112
  387. package/dist/index362.js.map +1 -1
  388. package/dist/index363.js +7 -490
  389. package/dist/index363.js.map +1 -1
  390. package/dist/index364.js +1 -1
  391. package/dist/index364.js.map +1 -1
  392. package/dist/index367.js +2 -9
  393. package/dist/index367.js.map +1 -1
  394. package/dist/index368.js +26 -5
  395. package/dist/index368.js.map +1 -1
  396. package/dist/index369.js +43 -27
  397. package/dist/index369.js.map +1 -1
  398. package/dist/index370.js +35 -46
  399. package/dist/index370.js.map +1 -1
  400. package/dist/index371.js +16 -27
  401. package/dist/index371.js.map +1 -1
  402. package/dist/index372.js +41 -16
  403. package/dist/index372.js.map +1 -1
  404. package/dist/index373.js +11 -42
  405. package/dist/index373.js.map +1 -1
  406. package/dist/index374.js +10 -14
  407. package/dist/index374.js.map +1 -1
  408. package/dist/index375.js +51 -9
  409. package/dist/index375.js.map +1 -1
  410. package/dist/index376.js +40 -53
  411. package/dist/index376.js.map +1 -1
  412. package/dist/index377.js +17 -43
  413. package/dist/index377.js.map +1 -1
  414. package/dist/index378.js +4 -15
  415. package/dist/index378.js.map +1 -1
  416. package/dist/index379.js +4 -4
  417. package/dist/index379.js.map +1 -1
  418. package/dist/index380.js +9 -4
  419. package/dist/index380.js.map +1 -1
  420. package/dist/index381.js +304 -9
  421. package/dist/index381.js.map +1 -1
  422. package/dist/index382.js +4 -339
  423. package/dist/index382.js.map +1 -1
  424. package/dist/index383.js +21 -5
  425. package/dist/index383.js.map +1 -1
  426. package/dist/index384.js +106 -16
  427. package/dist/index384.js.map +1 -1
  428. package/dist/index385.js +19 -109
  429. package/dist/index385.js.map +1 -1
  430. package/dist/index386.js +18 -18
  431. package/dist/index386.js.map +1 -1
  432. package/dist/index387.js +14 -19
  433. package/dist/index387.js.map +1 -1
  434. package/dist/index388.js +12 -4
  435. package/dist/index388.js.map +1 -1
  436. package/dist/index389.js +113 -20
  437. package/dist/index389.js.map +1 -1
  438. package/dist/index390.js +5 -11
  439. package/dist/index390.js.map +1 -1
  440. package/dist/index391.js +28 -85
  441. package/dist/index391.js.map +1 -1
  442. package/dist/index392.js +9 -9
  443. package/dist/index392.js.map +1 -1
  444. package/dist/index393.js +6 -29
  445. package/dist/index393.js.map +1 -1
  446. package/dist/index394.js +254 -10
  447. package/dist/index394.js.map +1 -1
  448. package/dist/index395.js +12 -6
  449. package/dist/index395.js.map +1 -1
  450. package/dist/index396.js +11 -252
  451. package/dist/index396.js.map +1 -1
  452. package/dist/index397.js +6 -11
  453. package/dist/index397.js.map +1 -1
  454. package/dist/index398.js +22 -10
  455. package/dist/index398.js.map +1 -1
  456. package/dist/index399.js +22 -6
  457. package/dist/index399.js.map +1 -1
  458. package/dist/index4.js.map +1 -1
  459. package/dist/index400.js +103 -21
  460. package/dist/index400.js.map +1 -1
  461. package/dist/index401.js +15 -23
  462. package/dist/index401.js.map +1 -1
  463. package/dist/index402.js +11 -108
  464. package/dist/index402.js.map +1 -1
  465. package/dist/index403.js +10 -15
  466. package/dist/index403.js.map +1 -1
  467. package/dist/index404.js +237 -10
  468. package/dist/index404.js.map +1 -1
  469. package/dist/index405.js +27 -9
  470. package/dist/index405.js.map +1 -1
  471. package/dist/index406.js +33 -238
  472. package/dist/index406.js.map +1 -1
  473. package/dist/index407.js +11 -30
  474. package/dist/index407.js.map +1 -1
  475. package/dist/index408.js +118 -48
  476. package/dist/index408.js.map +1 -1
  477. package/dist/index409.js +39 -11
  478. package/dist/index409.js.map +1 -1
  479. package/dist/index410.js +18 -121
  480. package/dist/index410.js.map +1 -1
  481. package/dist/index411.js +11 -39
  482. package/dist/index411.js.map +1 -1
  483. package/dist/index412.js +21 -24
  484. package/dist/index412.js.map +1 -1
  485. package/dist/index413.js +17 -11
  486. package/dist/index413.js.map +1 -1
  487. package/dist/index414.js +10 -20
  488. package/dist/index414.js.map +1 -1
  489. package/dist/index415.js +4 -17
  490. package/dist/index415.js.map +1 -1
  491. package/dist/index416.js +300 -14
  492. package/dist/index416.js.map +1 -1
  493. package/dist/index417.js +61 -323
  494. package/dist/index417.js.map +1 -1
  495. package/dist/index418.js +4 -63
  496. package/dist/index418.js.map +1 -1
  497. package/dist/index419.js +28 -4
  498. package/dist/index419.js.map +1 -1
  499. package/dist/index420.js +468 -25
  500. package/dist/index420.js.map +1 -1
  501. package/dist/index421.js +250 -452
  502. package/dist/index421.js.map +1 -1
  503. package/dist/index6.js.map +1 -1
  504. package/dist/index7.js +91 -133
  505. package/dist/index7.js.map +1 -1
  506. package/dist/index70.js +2 -2
  507. package/dist/index70.js.map +1 -1
  508. package/dist/index71.js +11 -4
  509. package/dist/index71.js.map +1 -1
  510. package/dist/index72.js +1 -3
  511. package/dist/index72.js.map +1 -1
  512. package/dist/index8.js.map +1 -1
  513. package/dist/index9.js +16 -19
  514. package/dist/index9.js.map +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  516. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  517. package/package.json +15 -15
  518. package/dist/index422.js +0 -272
  519. package/dist/index422.js.map +0 -1
package/dist/index182.js CHANGED
@@ -2,95 +2,82 @@ import { useIsTouchDevice as e } from "./index4.js";
2
2
  import { cn as t } from "./index12.js";
3
3
  import { dateMatchModifiers as n } from "./index122.js";
4
4
  import { DayPicker as r } from "./index181.js";
5
- import { c as i } from "react/compiler-runtime";
6
- import * as a from "react";
7
- import { CalendarDays as o, ChevronLeft as s, ChevronRight as c } from "lucide-react";
8
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
9
- import { createPortal as f } from "react-dom";
10
- import { IMaskInput as p } from "react-imask";
11
- import m, { InputMask as h } from "imask";
5
+ import * as i from "react";
6
+ import { CalendarDays as a, ChevronLeft as o, ChevronRight as s } from "lucide-react";
7
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { createPortal as d } from "react-dom";
9
+ import { IMaskInput as f } from "react-imask";
10
+ import p, { InputMask as m } from "imask";
12
11
  //#region src/components/DayPickerField/index.tsx
13
- var g = m;
14
- typeof g.InputMask != "function" && (g.InputMask = h);
15
- function _(e) {
16
- let n = i(18), a, o, s, c, l;
17
- n[0] === e ? (a = n[1], o = n[2], s = n[3], c = n[4], l = n[5]) : ({className: a, classNames: o, components: s, showOutsideDays: l, ...c} = e, n[0] = e, n[1] = a, n[2] = o, n[3] = s, n[4] = c, n[5] = l);
18
- let d = l === void 0 || l, f;
19
- n[6] === a ? f = n[7] : (f = t("p-3", a), n[6] = a, n[7] = f);
20
- let p;
21
- n[8] === o ? p = n[9] : (p = {
22
- month: "space-y-4",
23
- months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
24
- month_caption: "flex justify-center pt-1 relative items-center",
25
- month_grid: "w-full border-collapse space-y-1",
26
- caption_label: "text-sm font-medium",
27
- nav: "flex items-center justify-between absolute inset-x-0 z-10",
28
- 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",
29
- 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",
30
- weeks: "w-full border-collapse",
31
- weekdays: "flex",
32
- weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
33
- week: "flex w-full mt-2",
34
- 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",
35
- 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",
36
- 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",
37
- 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",
38
- range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none",
39
- selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
40
- today: "bg-gray-50 text-accent-foreground !rounded-md",
41
- outside: "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30",
42
- disabled: "text-muted-foreground opacity-50",
43
- hidden: "invisible",
44
- ...o
45
- }, n[8] = o, n[9] = p);
46
- let m;
47
- n[10] === s ? m = n[11] : (m = {
48
- Chevron: v,
49
- ...s
50
- }, n[10] = s, n[11] = m);
51
- let h;
52
- return n[12] !== c || n[13] !== d || n[14] !== f || n[15] !== p || n[16] !== m ? (h = /* @__PURE__ */ u(r, {
12
+ var h = p;
13
+ typeof h.InputMask != "function" && (h.InputMask = m);
14
+ function g({ className: e, classNames: n, components: i, showOutsideDays: a = !0, ...c }) {
15
+ return /* @__PURE__ */ l(r, {
53
16
  weekStartsOn: 1,
54
- showOutsideDays: d,
55
- className: f,
56
- classNames: p,
57
- components: m,
17
+ showOutsideDays: a,
18
+ className: t("p-3", e),
19
+ classNames: {
20
+ month: "space-y-4",
21
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
22
+ month_caption: "flex justify-center pt-1 relative items-center",
23
+ month_grid: "w-full border-collapse space-y-1",
24
+ caption_label: "text-sm font-medium",
25
+ nav: "flex items-center justify-between absolute inset-x-0 z-10",
26
+ 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",
27
+ 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",
28
+ weeks: "w-full border-collapse",
29
+ weekdays: "flex",
30
+ weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
31
+ week: "flex w-full mt-2",
32
+ 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",
33
+ 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",
34
+ 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",
35
+ 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",
36
+ range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none",
37
+ selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
38
+ today: "bg-gray-50 text-accent-foreground !rounded-md",
39
+ outside: "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30",
40
+ disabled: "text-muted-foreground opacity-50",
41
+ hidden: "invisible",
42
+ ...n
43
+ },
44
+ components: {
45
+ Chevron: (e) => e.orientation === "left" ? /* @__PURE__ */ l(o, {
46
+ ...e,
47
+ className: "h-4 w-4"
48
+ }) : /* @__PURE__ */ l(s, {
49
+ ...e,
50
+ className: "h-4 w-4"
51
+ }),
52
+ ...i
53
+ },
58
54
  ...c
59
- }), n[12] = c, n[13] = d, n[14] = f, n[15] = p, n[16] = m, n[17] = h) : h = n[17], h;
60
- }
61
- function v(e) {
62
- return e.orientation === "left" ? /* @__PURE__ */ u(s, {
63
- ...e,
64
- className: "h-4 w-4"
65
- }) : /* @__PURE__ */ u(c, {
66
- ...e,
67
- className: "h-4 w-4"
68
55
  });
69
56
  }
70
- _.displayName = "DayPicker";
71
- function y(e) {
57
+ g.displayName = "DayPicker";
58
+ function _(e) {
72
59
  return String(e).padStart(2, "0");
73
60
  }
74
- function b(e) {
61
+ function v(e) {
75
62
  let t = new Date(e);
76
63
  return t.setHours(0, 0, 0, 0), t;
77
64
  }
78
- function x(e) {
79
- return b(new Date(e.getFullYear(), e.getMonth(), 1));
65
+ function y(e) {
66
+ return v(new Date(e.getFullYear(), e.getMonth(), 1));
80
67
  }
81
- function S(e) {
82
- return `${y(e.getDate())}/${y(e.getMonth() + 1)}/${e.getFullYear()}`;
68
+ function b(e) {
69
+ return `${_(e.getDate())}/${_(e.getMonth() + 1)}/${e.getFullYear()}`;
83
70
  }
84
- function C({ day: e, month: t, year: n }) {
71
+ function x({ day: e, month: t, year: n }) {
85
72
  if (!Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n)) return null;
86
73
  let r = new Date(n, t - 1, e);
87
- return r.getFullYear() !== n || r.getMonth() !== t - 1 || r.getDate() !== e ? null : b(r);
74
+ return r.getFullYear() !== n || r.getMonth() !== t - 1 || r.getDate() !== e ? null : v(r);
88
75
  }
89
- function w(e, t) {
76
+ function S(e, t) {
90
77
  let n = e.trim();
91
78
  if (!n) return null;
92
79
  let r = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(n);
93
- if (r) return C({
80
+ if (r) return x({
94
81
  day: Number(r[1]),
95
82
  month: Number(r[2]),
96
83
  year: Number(r[3])
@@ -98,37 +85,37 @@ function w(e, t) {
98
85
  let i = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(n);
99
86
  if (i) {
100
87
  let e = Number(i[3]);
101
- return Number.isFinite(e) ? C({
88
+ return Number.isFinite(e) ? x({
102
89
  day: Number(i[1]),
103
90
  month: Number(i[2]),
104
91
  year: 2e3 + e
105
92
  }) : null;
106
93
  }
107
94
  let a = /^(\d{2})\/(\d{2})$/.exec(n);
108
- return a ? C({
95
+ return a ? x({
109
96
  day: Number(a[1]),
110
97
  month: Number(a[2]),
111
98
  year: t.getFullYear()
112
99
  }) : null;
113
100
  }
114
- var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, className: s, inputClassName: c, placeholder: m = "DD/MM/YYYY", disabled: h, readOnly: g, open: v, onOpenChange: C, dayPickerComponent: T, dayPickerProps: E, onFocus: D, onBlur: O, onKeyDown: k, onPointerDown: A, onMouseDown: j, ...M }, N) {
115
- let P = a.useRef(null), F = a.useRef(null), I = a.useRef(null), L = a.useRef(!1), R = a.useRef(!1), z = a.useRef(!1), B = a.useRef(!1), V = a.useRef(!1), H = a.useRef(null), [ee, te] = a.useState(!1), U = v ?? ee, W = C ?? te;
101
+ var C = i.forwardRef(function({ value: e, onChange: r, onValueUpdate: o, className: s, inputClassName: p, placeholder: m = "DD/MM/YYYY", disabled: h, readOnly: x, open: C, onOpenChange: w, dayPickerComponent: T, dayPickerProps: E, onFocus: D, onBlur: O, onKeyDown: k, onPointerDown: A, onMouseDown: j, ...M }, N) {
102
+ let P = i.useRef(null), F = i.useRef(null), I = i.useRef(null), L = i.useRef(!1), R = i.useRef(!1), z = i.useRef(!1), B = i.useRef(!1), V = i.useRef(!1), H = i.useRef(null), [ee, te] = i.useState(!1), U = C ?? ee, W = w ?? te;
116
103
  R.current = U;
117
- let [G, K] = a.useState(() => e ? S(e) : ""), q = a.useMemo(() => w(G, /* @__PURE__ */ new Date()), [G]), [ne, J] = a.useState(() => x(e ?? /* @__PURE__ */ new Date())), [Y, re] = a.useState(() => ({
104
+ let [G, K] = i.useState(() => e ? b(e) : ""), q = i.useMemo(() => S(G, /* @__PURE__ */ new Date()), [G]), [ne, J] = i.useState(() => y(e ?? /* @__PURE__ */ new Date())), [Y, re] = i.useState(() => ({
118
105
  left: 0,
119
106
  top: 0
120
- })), X = a.useCallback((e) => {
121
- i && i(e);
122
- }, [i]), Z = a.useCallback((e) => {
123
- i && i(e), r(e);
124
- }, [r, i]);
125
- a.useEffect(() => {
126
- L.current || K(e ? S(e) : "");
127
- }, [e]), a.useEffect(() => {
128
- U && J(x(e ?? /* @__PURE__ */ new Date()));
129
- }, [U, e]), a.useEffect(() => {
130
- U && q && J(x(q));
131
- }, [q, U]), a.useEffect(() => {
107
+ })), X = i.useCallback((e) => {
108
+ o && o(e);
109
+ }, [o]), Z = i.useCallback((e) => {
110
+ o && o(e), r(e);
111
+ }, [r, o]);
112
+ i.useEffect(() => {
113
+ L.current || K(e ? b(e) : "");
114
+ }, [e]), i.useEffect(() => {
115
+ U && J(y(e ?? /* @__PURE__ */ new Date()));
116
+ }, [U, e]), i.useEffect(() => {
117
+ U && q && J(y(q));
118
+ }, [q, U]), i.useEffect(() => {
132
119
  if (!U) return;
133
120
  let e = P.current?.ownerDocument ?? document, t = e.defaultView ?? window, n = (e) => {
134
121
  let t = e.target;
@@ -141,7 +128,7 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
141
128
  return e.addEventListener("pointerdown", n, !0), t.addEventListener("keydown", r, !0), () => {
142
129
  e.removeEventListener("pointerdown", n, !0), t.removeEventListener("keydown", r, !0);
143
130
  };
144
- }, [U]), a.useEffect(() => {
131
+ }, [U]), i.useEffect(() => {
145
132
  if (!U || typeof window > "u" || !("IntersectionObserver" in window)) return;
146
133
  let e = P.current;
147
134
  if (!e) return;
@@ -154,9 +141,9 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
154
141
  t = !1, n.disconnect();
155
142
  };
156
143
  }, [U]);
157
- let ie = a.useCallback((e) => {
144
+ let ie = i.useCallback((e) => {
158
145
  I.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
159
- }, [N]), Q = () => W(!1), ae = T ?? _, $ = a.useCallback(() => {
146
+ }, [N]), Q = () => W(!1), ae = T ?? g, $ = i.useCallback(() => {
160
147
  if (typeof window > "u") return;
161
148
  let e = P.current, t = F.current;
162
149
  if (!e || !t) return;
@@ -168,7 +155,7 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
168
155
  top: c
169
156
  });
170
157
  }, []);
171
- return a.useLayoutEffect(() => {
158
+ return i.useLayoutEffect(() => {
172
159
  if (!U || h || typeof window > "u") return;
173
160
  $();
174
161
  let e = window.requestAnimationFrame($);
@@ -179,16 +166,16 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
179
166
  h,
180
167
  U,
181
168
  $
182
- ]), /* @__PURE__ */ d("div", {
169
+ ]), /* @__PURE__ */ u("div", {
183
170
  ref: P,
184
171
  "data-slot": "day-picker-input",
185
172
  className: t("relative group", s),
186
173
  children: [
187
- /* @__PURE__ */ u(p, {
174
+ /* @__PURE__ */ l(f, {
188
175
  ...M,
189
176
  "data-slot": "day-picker-input-input",
190
177
  disabled: h,
191
- readOnly: g,
178
+ readOnly: x,
192
179
  autoComplete: "off",
193
180
  inputRef: ie,
194
181
  mask: [
@@ -211,10 +198,10 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
211
198
  },
212
199
  placeholder: m,
213
200
  value: G,
214
- className: t("flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", c),
201
+ className: t("flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", p),
215
202
  onAccept: (e) => {
216
203
  let t = typeof e == "string" ? e : String(e ?? ""), n = G.replace(/\D/g, "").length;
217
- K(t), t.replace(/\D/g, "").length === 0 && (U && J(x(/* @__PURE__ */ new Date())), n !== 0 && X(null));
204
+ K(t), t.replace(/\D/g, "").length === 0 && (U && J(y(/* @__PURE__ */ new Date())), n !== 0 && X(null));
218
205
  },
219
206
  onComplete: (t) => {
220
207
  let n = typeof t == "string" ? t : String(t ?? "");
@@ -222,8 +209,8 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
222
209
  H.current = null;
223
210
  return;
224
211
  }
225
- let r = w(n, /* @__PURE__ */ new Date());
226
- r && (e && r.getTime() === b(e).getTime() || X(r));
212
+ let r = S(n, /* @__PURE__ */ new Date());
213
+ r && (e && r.getTime() === v(e).getTime() || X(r));
227
214
  },
228
215
  onPointerDown: (e) => {
229
216
  z.current = !0, B.current = typeof document < "u" && document.activeElement === e.currentTarget, A?.(e);
@@ -245,22 +232,22 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
245
232
  if (t.key === "Enter") {
246
233
  if (!q) return;
247
234
  if (t.preventDefault(), U) {
248
- let e = `${q.getFullYear()}-${y(q.getMonth() + 1)}-${y(q.getDate())}`, t = F.current?.querySelector(`[data-day='${e}']:not([data-outside]) button`);
235
+ let e = `${q.getFullYear()}-${_(q.getMonth() + 1)}-${_(q.getDate())}`, t = F.current?.querySelector(`[data-day='${e}']:not([data-outside]) button`);
249
236
  if (t instanceof HTMLButtonElement) {
250
237
  if (t.disabled) return;
251
238
  t.focus();
252
239
  }
253
240
  }
254
- K(S(q)), Z(q), W(!1);
241
+ K(b(q)), Z(q), W(!1);
255
242
  return;
256
243
  }
257
244
  if (t.key === "ArrowUp" || t.key === "ArrowDown") {
258
245
  let r = q ?? e;
259
246
  if (!r) return;
260
- let i = b(new Date(r));
247
+ let i = v(new Date(r));
261
248
  if (i.setDate(i.getDate() + (t.key === "ArrowUp" ? 1 : -1)), E?.disabled && n(i, E.disabled)) return;
262
249
  t.preventDefault();
263
- let a = S(i);
250
+ let a = b(i);
264
251
  H.current = a, K(a), X(i);
265
252
  }
266
253
  U || (t.key.length === 1 || t.key === "Backspace" || t.key === "Delete" || t.key === "ArrowUp" || t.key === "ArrowDown") && !t.ctrlKey && !t.metaKey && !t.altKey && W(!0), t.key === "Tab" && !t.defaultPrevented && W(!1);
@@ -286,15 +273,15 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
286
273
  e && (K(""), Z(null));
287
274
  return;
288
275
  }
289
- let a = w(i, /* @__PURE__ */ new Date());
276
+ let a = S(i, /* @__PURE__ */ new Date());
290
277
  if (a) {
291
- K(S(a)), (!e || a.getTime() !== b(e).getTime()) && Z(a);
278
+ K(b(a)), (!e || a.getTime() !== v(e).getTime()) && Z(a);
292
279
  return;
293
280
  }
294
- K(e ? S(e) : "");
281
+ K(e ? b(e) : "");
295
282
  }
296
283
  }),
297
- /* @__PURE__ */ u("button", {
284
+ /* @__PURE__ */ l("button", {
298
285
  type: "button",
299
286
  tabIndex: -1,
300
287
  disabled: h,
@@ -310,13 +297,13 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
310
297
  onClick: () => {
311
298
  h || (I.current?.focus({ preventScroll: !0 }), W(!0));
312
299
  },
313
- children: /* @__PURE__ */ u(o, {
300
+ children: /* @__PURE__ */ l(a, {
314
301
  "aria-hidden": !0,
315
302
  className: "size-4"
316
303
  })
317
304
  }),
318
305
  U && !h && (() => {
319
- let t = G.trim() === "" ? void 0 : q ?? e ?? void 0, n = /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
306
+ let t = G.trim() === "" ? void 0 : q ?? e ?? void 0, n = /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
320
307
  ref: F,
321
308
  "data-slot": "day-picker-input-popover",
322
309
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
@@ -330,7 +317,7 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
330
317
  onMouseDownCapture: () => {
331
318
  V.current = !0;
332
319
  },
333
- children: /* @__PURE__ */ u(ae, {
320
+ children: /* @__PURE__ */ l(ae, {
334
321
  mode: "single",
335
322
  month: ne,
336
323
  onMonthChange: J,
@@ -340,28 +327,28 @@ var T = a.forwardRef(function({ value: e, onChange: r, onValueUpdate: i, classNa
340
327
  e && Z(null), K(""), Q();
341
328
  return;
342
329
  }
343
- let n = b(t);
344
- (!e || n.getTime() !== b(e).getTime()) && Z(n), K(S(n)), Q();
330
+ let n = v(t);
331
+ (!e || n.getTime() !== v(e).getTime()) && Z(n), K(b(n)), Q();
345
332
  },
346
333
  ...E
347
334
  })
348
335
  }) });
349
- return typeof document > "u" ? n : f(n, document.body);
336
+ return typeof document > "u" ? n : d(n, document.body);
350
337
  })()
351
338
  ]
352
339
  });
353
340
  });
354
- T.displayName = "DayPickerInput";
355
- function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, inputClassName: c, placeholder: p = "DD/MM/YYYY", disabled: m, open: h, onOpenChange: g, dayPickerComponent: v, dayPickerProps: y, triggerTestId: C, isHydrated: w }) {
356
- let T = a.useRef(null), E = a.useRef(null), D = a.useRef(!1), [O, k] = a.useState(!1), A = h ?? O, j = g ?? k;
341
+ C.displayName = "DayPickerInput";
342
+ function w({ id: e, value: n, onChange: r, onValueUpdate: o, className: s, inputClassName: f, placeholder: p = "DD/MM/YYYY", disabled: m, open: h, onOpenChange: _, dayPickerComponent: x, dayPickerProps: S, triggerTestId: C, isHydrated: w }) {
343
+ let T = i.useRef(null), E = i.useRef(null), D = i.useRef(!1), [O, k] = i.useState(!1), A = h ?? O, j = _ ?? k;
357
344
  D.current = A;
358
- let [M, N] = a.useState(() => x(n ?? /* @__PURE__ */ new Date())), [P, F] = a.useState(() => ({
345
+ let [M, N] = i.useState(() => y(n ?? /* @__PURE__ */ new Date())), [P, F] = i.useState(() => ({
359
346
  left: 0,
360
347
  top: 0
361
348
  }));
362
- a.useEffect(() => {
363
- A && N(x(n ?? /* @__PURE__ */ new Date()));
364
- }, [A, n]), a.useEffect(() => {
349
+ i.useEffect(() => {
350
+ A && N(y(n ?? /* @__PURE__ */ new Date()));
351
+ }, [A, n]), i.useEffect(() => {
365
352
  if (!A) return;
366
353
  let e = T.current?.ownerDocument ?? document, t = e.defaultView ?? window, n = (e) => {
367
354
  let t = e.target;
@@ -374,7 +361,7 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
374
361
  return e.addEventListener("pointerdown", n, !0), t.addEventListener("keydown", r, !0), () => {
375
362
  e.removeEventListener("pointerdown", n, !0), t.removeEventListener("keydown", r, !0);
376
363
  };
377
- }, [A]), a.useEffect(() => {
364
+ }, [A]), i.useEffect(() => {
378
365
  if (!A || typeof window > "u" || !("IntersectionObserver" in window)) return;
379
366
  let e = T.current;
380
367
  if (!e) return;
@@ -387,7 +374,7 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
387
374
  t = !1, n.disconnect();
388
375
  };
389
376
  }, [A]);
390
- let I = v ?? _, L = a.useCallback(() => {
377
+ let I = x ?? g, L = i.useCallback(() => {
391
378
  if (typeof window > "u") return;
392
379
  let e = T.current, t = E.current;
393
380
  if (!e || !t) return;
@@ -399,7 +386,7 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
399
386
  top: c
400
387
  });
401
388
  }, []);
402
- a.useLayoutEffect(() => {
389
+ i.useLayoutEffect(() => {
403
390
  if (!A || m || typeof window > "u") return;
404
391
  L();
405
392
  let e = window.requestAnimationFrame(L);
@@ -411,30 +398,30 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
411
398
  A,
412
399
  L
413
400
  ]);
414
- let R = a.useCallback((e) => {
415
- i && i(e), r(e);
416
- }, [r, i]);
417
- return /* @__PURE__ */ d("div", {
401
+ let R = i.useCallback((e) => {
402
+ o && o(e), r(e);
403
+ }, [r, o]);
404
+ return /* @__PURE__ */ u("div", {
418
405
  ref: T,
419
406
  "data-slot": "day-picker-input",
420
407
  className: t("relative group", s),
421
- children: [/* @__PURE__ */ d("button", {
408
+ children: [/* @__PURE__ */ u("button", {
422
409
  id: e,
423
410
  type: "button",
424
411
  disabled: m,
425
412
  "data-testid": C,
426
413
  "data-hydrated": w ? "true" : void 0,
427
414
  "data-slot": "day-picker-input-input",
428
- className: t("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", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", !n && "text-muted-foreground", A && "ring-2 ring-primary ring-offset-2", c),
415
+ className: t("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", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", !n && "text-muted-foreground", A && "ring-2 ring-primary ring-offset-2", f),
429
416
  onClick: () => {
430
417
  m || j(!A);
431
418
  },
432
- children: [/* @__PURE__ */ u(o, {
419
+ children: [/* @__PURE__ */ l(a, {
433
420
  "aria-hidden": !0,
434
421
  className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground"
435
- }), n ? S(n) : p]
422
+ }), n ? b(n) : p]
436
423
  }), A && !m && (() => {
437
- let e = /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("div", {
424
+ let e = /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("div", {
438
425
  ref: E,
439
426
  "data-slot": "day-picker-input-popover",
440
427
  className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
@@ -442,7 +429,7 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
442
429
  left: P.left,
443
430
  top: P.top
444
431
  },
445
- children: /* @__PURE__ */ u(I, {
432
+ children: /* @__PURE__ */ l(I, {
446
433
  mode: "single",
447
434
  month: M,
448
435
  onMonthChange: N,
@@ -452,42 +439,38 @@ function E({ id: e, value: n, onChange: r, onValueUpdate: i, className: s, input
452
439
  R(null), j(!1);
453
440
  return;
454
441
  }
455
- let t = b(e);
456
- (!n || t.getTime() !== b(n).getTime()) && R(t), j(!1);
442
+ let t = v(e);
443
+ (!n || t.getTime() !== v(n).getTime()) && R(t), j(!1);
457
444
  },
458
- ...y
445
+ ...S
459
446
  })
460
447
  }) });
461
- return typeof document > "u" ? e : f(e, document.body);
448
+ return typeof document > "u" ? e : d(e, document.body);
462
449
  })()]
463
450
  });
464
451
  }
465
- function D(t) {
466
- let n = i(18);
467
- if (e()) {
468
- let e;
469
- return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ u(E, { ...t }), n[0] = t, n[1] = e), e;
470
- }
471
- let { id: r, value: a, onChange: o, onValueUpdate: s, className: c, inputClassName: l, placeholder: d, disabled: f, readOnly: p, dayPickerComponent: m, dayPickerProps: h, triggerTestId: g, isHydrated: _, open: v, onOpenChange: y } = t, b = d === void 0 ? "DD/MM/YYYY" : d, x = _ ? "true" : void 0, S;
472
- return n[2] !== c || n[3] !== m || n[4] !== h || n[5] !== f || n[6] !== r || n[7] !== l || n[8] !== o || n[9] !== y || n[10] !== s || n[11] !== v || n[12] !== b || n[13] !== p || n[14] !== x || n[15] !== g || n[16] !== a ? (S = /* @__PURE__ */ u(T, {
473
- id: r,
474
- value: a,
475
- onChange: o,
476
- onValueUpdate: s,
477
- className: c,
478
- inputClassName: l,
479
- placeholder: b,
480
- disabled: f,
481
- readOnly: p,
482
- open: v,
483
- onOpenChange: y,
484
- dayPickerComponent: m,
485
- dayPickerProps: h,
486
- "data-testid": g,
487
- "data-hydrated": x
488
- }), n[2] = c, n[3] = m, n[4] = h, n[5] = f, n[6] = r, n[7] = l, n[8] = o, n[9] = y, n[10] = s, n[11] = v, n[12] = b, n[13] = p, n[14] = x, n[15] = g, n[16] = a, n[17] = S) : S = n[17], S;
452
+ function T(t) {
453
+ if (e()) return /* @__PURE__ */ l(w, { ...t });
454
+ let { id: n, value: r, onChange: i, onValueUpdate: a, className: o, inputClassName: s, placeholder: c = "DD/MM/YYYY", disabled: u, readOnly: d, dayPickerComponent: f, dayPickerProps: p, triggerTestId: m, isHydrated: h, open: g, onOpenChange: _ } = t;
455
+ return /* @__PURE__ */ l(C, {
456
+ id: n,
457
+ value: r,
458
+ onChange: i,
459
+ onValueUpdate: a,
460
+ className: o,
461
+ inputClassName: s,
462
+ placeholder: c,
463
+ disabled: u,
464
+ readOnly: d,
465
+ open: g,
466
+ onOpenChange: _,
467
+ dayPickerComponent: f,
468
+ dayPickerProps: p,
469
+ "data-testid": m,
470
+ "data-hydrated": h ? "true" : void 0
471
+ });
489
472
  }
490
473
  //#endregion
491
- export { _ as DayPicker, D as DayPickerField, T as DayPickerInput };
474
+ export { g as DayPicker, T as DayPickerField, C as DayPickerInput };
492
475
 
493
476
  //# sourceMappingURL=index182.js.map