@rpcbase/ui 0.160.0 → 0.162.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 (689) hide show
  1. package/dist/components/{DayPicker → DayPickerField}/index.d.ts +2 -0
  2. package/dist/components/DayPickerField/index.d.ts.map +1 -0
  3. package/dist/components/HourPickerField/index.d.ts +36 -0
  4. package/dist/components/HourPickerField/index.d.ts.map +1 -0
  5. package/dist/components/index.d.ts +2 -2
  6. package/dist/components/index.d.ts.map +1 -1
  7. package/dist/index.js +7 -7
  8. package/dist/index10.js +1 -1
  9. package/dist/index100.js +6 -109
  10. package/dist/index100.js.map +1 -1
  11. package/dist/index101.js +4 -24
  12. package/dist/index101.js.map +1 -1
  13. package/dist/index102.js +7 -8
  14. package/dist/index102.js.map +1 -1
  15. package/dist/index103.js +5 -4
  16. package/dist/index103.js.map +1 -1
  17. package/dist/index104.js +4 -5
  18. package/dist/index104.js.map +1 -1
  19. package/dist/index105.js +5 -4
  20. package/dist/index105.js.map +1 -1
  21. package/dist/index106.js +4 -466
  22. package/dist/index106.js.map +1 -1
  23. package/dist/index107.js +8 -185
  24. package/dist/index107.js.map +1 -1
  25. package/dist/index108.js +5 -107
  26. package/dist/index108.js.map +1 -1
  27. package/dist/index109.js +4 -262
  28. package/dist/index109.js.map +1 -1
  29. package/dist/index11.js +330 -279
  30. package/dist/index11.js.map +1 -1
  31. package/dist/index110.js +4 -9
  32. package/dist/index110.js.map +1 -1
  33. package/dist/index111.js +6 -42
  34. package/dist/index111.js.map +1 -1
  35. package/dist/index112.js +145 -4
  36. package/dist/index112.js.map +1 -1
  37. package/dist/index113.js +40 -52
  38. package/dist/index113.js.map +1 -1
  39. package/dist/index114.js +4 -4
  40. package/dist/index114.js.map +1 -1
  41. package/dist/index115.js +7 -4
  42. package/dist/index115.js.map +1 -1
  43. package/dist/index116.js +13 -15
  44. package/dist/index116.js.map +1 -1
  45. package/dist/index117.js +13 -5
  46. package/dist/index117.js.map +1 -1
  47. package/dist/index118.js +7 -7
  48. package/dist/index118.js.map +1 -1
  49. package/dist/index119.js +31 -16
  50. package/dist/index119.js.map +1 -1
  51. package/dist/index12.js +1 -1
  52. package/dist/index120.js +10 -4
  53. package/dist/index120.js.map +1 -1
  54. package/dist/index121.js +10 -4
  55. package/dist/index121.js.map +1 -1
  56. package/dist/index122.js +8 -5
  57. package/dist/index122.js.map +1 -1
  58. package/dist/index123.js +13 -5
  59. package/dist/index123.js.map +1 -1
  60. package/dist/index124.js +101 -4
  61. package/dist/index124.js.map +1 -1
  62. package/dist/index125.js +20 -5
  63. package/dist/index125.js.map +1 -1
  64. package/dist/index126.js +53 -6
  65. package/dist/index126.js.map +1 -1
  66. package/dist/index127.js +71 -23
  67. package/dist/index127.js.map +1 -1
  68. package/dist/index128.js +9 -6
  69. package/dist/index128.js.map +1 -1
  70. package/dist/index129.js +20 -4
  71. package/dist/index129.js.map +1 -1
  72. package/dist/index13.js +2 -2
  73. package/dist/index130.js +16 -6
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index131.js +23 -5
  76. package/dist/index131.js.map +1 -1
  77. package/dist/index132.js +6 -4
  78. package/dist/index132.js.map +1 -1
  79. package/dist/index133.js +5 -5
  80. package/dist/index133.js.map +1 -1
  81. package/dist/index134.js +23 -4
  82. package/dist/index134.js.map +1 -1
  83. package/dist/index135.js +35 -9
  84. package/dist/index135.js.map +1 -1
  85. package/dist/index136.js +16 -6
  86. package/dist/index136.js.map +1 -1
  87. package/dist/index137.js +6 -4
  88. package/dist/index137.js.map +1 -1
  89. package/dist/index138.js +4 -4
  90. package/dist/index138.js.map +1 -1
  91. package/dist/index139.js +4 -6
  92. package/dist/index139.js.map +1 -1
  93. package/dist/index14.js +4 -4
  94. package/dist/index140.js +4 -145
  95. package/dist/index140.js.map +1 -1
  96. package/dist/index141.js +4 -39
  97. package/dist/index141.js.map +1 -1
  98. package/dist/index142.js +3 -4
  99. package/dist/index142.js.map +1 -1
  100. package/dist/index143.js +6 -7
  101. package/dist/index143.js.map +1 -1
  102. package/dist/index144.js +24 -14
  103. package/dist/index144.js.map +1 -1
  104. package/dist/index145.js +7 -13
  105. package/dist/index145.js.map +1 -1
  106. package/dist/index146.js +6 -7
  107. package/dist/index146.js.map +1 -1
  108. package/dist/index147.js +5 -31
  109. package/dist/index147.js.map +1 -1
  110. package/dist/index148.js +3 -10
  111. package/dist/index148.js.map +1 -1
  112. package/dist/index149.js +3 -10
  113. package/dist/index149.js.map +1 -1
  114. package/dist/index15.js +1 -1
  115. package/dist/index150.js +4 -8
  116. package/dist/index150.js.map +1 -1
  117. package/dist/index151.js +3 -13
  118. package/dist/index151.js.map +1 -1
  119. package/dist/index152.js +4 -101
  120. package/dist/index152.js.map +1 -1
  121. package/dist/index153.js +4 -20
  122. package/dist/index153.js.map +1 -1
  123. package/dist/index154.js +3 -53
  124. package/dist/index154.js.map +1 -1
  125. package/dist/index155.js +3 -72
  126. package/dist/index155.js.map +1 -1
  127. package/dist/index156.js +3 -9
  128. package/dist/index156.js.map +1 -1
  129. package/dist/index157.js +33 -20
  130. package/dist/index157.js.map +1 -1
  131. package/dist/index158.js +248 -15
  132. package/dist/index158.js.map +1 -1
  133. package/dist/index159.js +114 -23
  134. package/dist/index159.js.map +1 -1
  135. package/dist/index16.js +1 -1
  136. package/dist/index160.js +219 -6
  137. package/dist/index160.js.map +1 -1
  138. package/dist/index161.js +66 -5
  139. package/dist/index161.js.map +1 -1
  140. package/dist/index162.js +20 -23
  141. package/dist/index162.js.map +1 -1
  142. package/dist/index163.js +207 -32
  143. package/dist/index163.js.map +1 -1
  144. package/dist/index164.js +320 -16
  145. package/dist/index164.js.map +1 -1
  146. package/dist/index165.js +130 -6
  147. package/dist/index165.js.map +1 -1
  148. package/dist/index166.js +20 -4
  149. package/dist/index166.js.map +1 -1
  150. package/dist/index167.js +75 -4
  151. package/dist/index167.js.map +1 -1
  152. package/dist/index168.js +18 -4
  153. package/dist/index168.js.map +1 -1
  154. package/dist/index169.js +101 -4
  155. package/dist/index169.js.map +1 -1
  156. package/dist/index17.js +1 -1
  157. package/dist/index170.js +5 -4
  158. package/dist/index170.js.map +1 -1
  159. package/dist/index171.js +14 -6
  160. package/dist/index171.js.map +1 -1
  161. package/dist/index172.js +2 -24
  162. package/dist/index172.js.map +1 -1
  163. package/dist/index173.js +7 -7
  164. package/dist/index173.js.map +1 -1
  165. package/dist/index174.js +326 -6
  166. package/dist/index174.js.map +1 -1
  167. package/dist/index175.js +49 -5
  168. package/dist/index175.js.map +1 -1
  169. package/dist/index176.js +46 -3
  170. package/dist/index176.js.map +1 -1
  171. package/dist/index177.js +605 -3
  172. package/dist/index177.js.map +1 -1
  173. package/dist/index178.js +46 -4
  174. package/dist/index178.js.map +1 -1
  175. package/dist/index179.js +205 -3
  176. package/dist/index179.js.map +1 -1
  177. package/dist/index18.js +398 -369
  178. package/dist/index18.js.map +1 -1
  179. package/dist/index180.js +22 -5
  180. package/dist/index180.js.map +1 -1
  181. package/dist/index181.js +24 -3
  182. package/dist/index181.js.map +1 -1
  183. package/dist/index182.js +399 -3
  184. package/dist/index182.js.map +1 -1
  185. package/dist/index183.js +5 -3
  186. package/dist/index183.js.map +1 -1
  187. package/dist/index184.js +68 -3
  188. package/dist/index184.js.map +1 -1
  189. package/dist/index185.js +2 -34
  190. package/dist/index185.js.map +1 -1
  191. package/dist/index186.js +357 -243
  192. package/dist/index186.js.map +1 -1
  193. package/dist/index187.js +255 -108
  194. package/dist/index187.js.map +1 -1
  195. package/dist/index188.js +55 -214
  196. package/dist/index188.js.map +1 -1
  197. package/dist/index189.js +42 -62
  198. package/dist/index189.js.map +1 -1
  199. package/dist/index19.js +7 -7
  200. package/dist/index190.js +170 -21
  201. package/dist/index190.js.map +1 -1
  202. package/dist/index191.js +107 -207
  203. package/dist/index191.js.map +1 -1
  204. package/dist/index192.js +24 -319
  205. package/dist/index192.js.map +1 -1
  206. package/dist/index193.js +8 -131
  207. package/dist/index193.js.map +1 -1
  208. package/dist/index194.js +4 -20
  209. package/dist/index194.js.map +1 -1
  210. package/dist/index195.js +5 -75
  211. package/dist/index195.js.map +1 -1
  212. package/dist/index196.js +4 -18
  213. package/dist/index196.js.map +1 -1
  214. package/dist/index197.js +456 -91
  215. package/dist/index197.js.map +1 -1
  216. package/dist/index198.js +186 -5
  217. package/dist/index198.js.map +1 -1
  218. package/dist/index199.js +107 -14
  219. package/dist/index199.js.map +1 -1
  220. package/dist/index20.js +2 -2
  221. package/dist/index200.js +263 -2
  222. package/dist/index200.js.map +1 -1
  223. package/dist/index201.js +9 -7
  224. package/dist/index201.js.map +1 -1
  225. package/dist/index202.js +41 -325
  226. package/dist/index202.js.map +1 -1
  227. package/dist/index203.js +4 -49
  228. package/dist/index203.js.map +1 -1
  229. package/dist/index204.js +2 -25
  230. package/dist/index204.js.map +1 -1
  231. package/dist/index205.js +68 -29
  232. package/dist/index205.js.map +1 -1
  233. package/dist/index206.js +85 -5
  234. package/dist/index206.js.map +1 -1
  235. package/dist/index207.js +46 -3
  236. package/dist/index207.js.map +1 -1
  237. package/dist/index208.js +8 -2
  238. package/dist/index208.js.map +1 -1
  239. package/dist/index209.js +4 -67
  240. package/dist/index209.js.map +1 -1
  241. package/dist/index21.js +1 -1
  242. package/dist/index210.js +48 -81
  243. package/dist/index210.js.map +1 -1
  244. package/dist/index211.js +3 -46
  245. package/dist/index211.js.map +1 -1
  246. package/dist/index212.js +58 -7
  247. package/dist/index212.js.map +1 -1
  248. package/dist/index213.js +8 -4
  249. package/dist/index213.js.map +1 -1
  250. package/dist/index214.js +64 -49
  251. package/dist/index214.js.map +1 -1
  252. package/dist/index215.js +18 -66
  253. package/dist/index215.js.map +1 -1
  254. package/dist/index216.js +15 -179
  255. package/dist/index216.js.map +1 -1
  256. package/dist/index217.js +4 -45
  257. package/dist/index217.js.map +1 -1
  258. package/dist/index218.js +5 -13
  259. package/dist/index218.js.map +1 -1
  260. package/dist/index219.js +6 -154
  261. package/dist/index219.js.map +1 -1
  262. package/dist/index22.js +1 -1
  263. package/dist/index220.js +4 -30
  264. package/dist/index220.js.map +1 -1
  265. package/dist/index221.js +7 -9
  266. package/dist/index221.js.map +1 -1
  267. package/dist/index222.js +17 -47
  268. package/dist/index222.js.map +1 -1
  269. package/dist/index223.js +5 -11
  270. package/dist/index223.js.map +1 -1
  271. package/dist/index224.js +5 -44
  272. package/dist/index224.js.map +1 -1
  273. package/dist/index225.js +13 -95
  274. package/dist/index225.js.map +1 -1
  275. package/dist/index226.js +10 -86
  276. package/dist/index226.js.map +1 -1
  277. package/dist/index227.js +14 -105
  278. package/dist/index227.js.map +1 -1
  279. package/dist/index228.js +14 -52
  280. package/dist/index228.js.map +1 -1
  281. package/dist/index229.js +5 -11
  282. package/dist/index229.js.map +1 -1
  283. package/dist/index23.js +2 -2
  284. package/dist/index230.js +6 -37
  285. package/dist/index230.js.map +1 -1
  286. package/dist/index231.js +7 -8
  287. package/dist/index231.js.map +1 -1
  288. package/dist/index232.js +6 -116
  289. package/dist/index232.js.map +1 -1
  290. package/dist/index233.js +9 -17
  291. package/dist/index233.js.map +1 -1
  292. package/dist/index234.js +5 -15
  293. package/dist/index234.js.map +1 -1
  294. package/dist/index235.js +5 -3
  295. package/dist/index235.js.map +1 -1
  296. package/dist/index236.js +9 -36
  297. package/dist/index236.js.map +1 -1
  298. package/dist/index237.js +5 -20
  299. package/dist/index237.js.map +1 -1
  300. package/dist/index238.js +5 -9
  301. package/dist/index238.js.map +1 -1
  302. package/dist/index239.js +4 -8
  303. package/dist/index239.js.map +1 -1
  304. package/dist/index24.js +1 -1
  305. package/dist/index240.js +11 -58
  306. package/dist/index240.js.map +1 -1
  307. package/dist/index241.js +10 -8
  308. package/dist/index241.js.map +1 -1
  309. package/dist/index242.js +10 -66
  310. package/dist/index242.js.map +1 -1
  311. package/dist/index243.js +11 -19
  312. package/dist/index243.js.map +1 -1
  313. package/dist/index244.js +11 -16
  314. package/dist/index244.js.map +1 -1
  315. package/dist/index245.js +10 -5
  316. package/dist/index245.js.map +1 -1
  317. package/dist/index246.js +7 -5
  318. package/dist/index246.js.map +1 -1
  319. package/dist/index247.js +6 -6
  320. package/dist/index247.js.map +1 -1
  321. package/dist/index248.js +5 -4
  322. package/dist/index248.js.map +1 -1
  323. package/dist/index249.js +6 -7
  324. package/dist/index249.js.map +1 -1
  325. package/dist/index250.js +7 -17
  326. package/dist/index250.js.map +1 -1
  327. package/dist/index251.js +6 -5
  328. package/dist/index251.js.map +1 -1
  329. package/dist/index252.js +55 -5
  330. package/dist/index252.js.map +1 -1
  331. package/dist/index253.js +23 -13
  332. package/dist/index253.js.map +1 -1
  333. package/dist/index254.js +16 -10
  334. package/dist/index254.js.map +1 -1
  335. package/dist/index255.js +7 -14
  336. package/dist/index255.js.map +1 -1
  337. package/dist/index256.js +10 -14
  338. package/dist/index256.js.map +1 -1
  339. package/dist/index257.js +10 -5
  340. package/dist/index257.js.map +1 -1
  341. package/dist/index258.js +21 -6
  342. package/dist/index258.js.map +1 -1
  343. package/dist/index259.js +10 -7
  344. package/dist/index259.js.map +1 -1
  345. package/dist/index260.js +9 -6
  346. package/dist/index260.js.map +1 -1
  347. package/dist/index261.js +9 -9
  348. package/dist/index261.js.map +1 -1
  349. package/dist/index262.js +4 -5
  350. package/dist/index262.js.map +1 -1
  351. package/dist/index263.js +5 -5
  352. package/dist/index263.js.map +1 -1
  353. package/dist/index264.js +16 -9
  354. package/dist/index264.js.map +1 -1
  355. package/dist/index265.js +9 -5
  356. package/dist/index265.js.map +1 -1
  357. package/dist/index266.js +18 -5
  358. package/dist/index266.js.map +1 -1
  359. package/dist/index267.js +15 -4
  360. package/dist/index267.js.map +1 -1
  361. package/dist/index268.js +12 -11
  362. package/dist/index268.js.map +1 -1
  363. package/dist/index269.js +64 -10
  364. package/dist/index269.js.map +1 -1
  365. package/dist/index27.js +3 -37
  366. package/dist/index27.js.map +1 -1
  367. package/dist/index270.js +48 -10
  368. package/dist/index270.js.map +1 -1
  369. package/dist/index271.js +39 -11
  370. package/dist/index271.js.map +1 -1
  371. package/dist/index272.js +100 -11
  372. package/dist/index272.js.map +1 -1
  373. package/dist/index273.js +97 -10
  374. package/dist/index273.js.map +1 -1
  375. package/dist/index274.js +99 -7
  376. package/dist/index274.js.map +1 -1
  377. package/dist/index275.js +29 -6
  378. package/dist/index275.js.map +1 -1
  379. package/dist/index276.js +12 -5
  380. package/dist/index276.js.map +1 -1
  381. package/dist/index277.js +25 -6
  382. package/dist/index277.js.map +1 -1
  383. package/dist/index278.js +5 -7
  384. package/dist/index278.js.map +1 -1
  385. package/dist/index279.js +67 -6
  386. package/dist/index279.js.map +1 -1
  387. package/dist/index28.js +125 -3
  388. package/dist/index28.js.map +1 -1
  389. package/dist/index280.js +178 -53
  390. package/dist/index280.js.map +1 -1
  391. package/dist/index281.js +45 -18
  392. package/dist/index281.js.map +1 -1
  393. package/dist/index282.js +23 -27
  394. package/dist/index282.js.map +1 -1
  395. package/dist/index283.js +29 -17
  396. package/dist/index283.js.map +1 -1
  397. package/dist/index284.js +5 -24
  398. package/dist/index284.js.map +1 -1
  399. package/dist/index285.js +28 -14
  400. package/dist/index285.js.map +1 -1
  401. package/dist/index286.js +9 -7
  402. package/dist/index286.js.map +1 -1
  403. package/dist/index287.js +46 -9
  404. package/dist/index287.js.map +1 -1
  405. package/dist/index288.js +11 -10
  406. package/dist/index288.js.map +1 -1
  407. package/dist/index289.js +43 -20
  408. package/dist/index289.js.map +1 -1
  409. package/dist/index29.js +47 -124
  410. package/dist/index29.js.map +1 -1
  411. package/dist/index290.js +95 -10
  412. package/dist/index290.js.map +1 -1
  413. package/dist/index291.js +86 -9
  414. package/dist/index291.js.map +1 -1
  415. package/dist/index292.js +105 -9
  416. package/dist/index292.js.map +1 -1
  417. package/dist/index293.js +52 -4
  418. package/dist/index293.js.map +1 -1
  419. package/dist/index294.js +13 -5
  420. package/dist/index294.js.map +1 -1
  421. package/dist/index295.js +10 -15
  422. package/dist/index295.js.map +1 -1
  423. package/dist/index296.js +37 -9
  424. package/dist/index296.js.map +1 -1
  425. package/dist/index297.js +8 -18
  426. package/dist/index297.js.map +1 -1
  427. package/dist/index298.js +154 -15
  428. package/dist/index298.js.map +1 -1
  429. package/dist/index299.js +115 -11
  430. package/dist/index299.js.map +1 -1
  431. package/dist/index30.js +219 -47
  432. package/dist/index30.js.map +1 -1
  433. package/dist/index300.js +17 -29
  434. package/dist/index300.js.map +1 -1
  435. package/dist/index301.js +14 -11
  436. package/dist/index301.js.map +1 -1
  437. package/dist/index302.js +3 -25
  438. package/dist/index302.js.map +1 -1
  439. package/dist/index303.js +36 -5
  440. package/dist/index303.js.map +1 -1
  441. package/dist/index304.js +18 -62
  442. package/dist/index304.js.map +1 -1
  443. package/dist/index305.js +9 -48
  444. package/dist/index305.js.map +1 -1
  445. package/dist/index306.js +8 -39
  446. package/dist/index306.js.map +1 -1
  447. package/dist/index307.js +19 -100
  448. package/dist/index307.js.map +1 -1
  449. package/dist/index308.js +25 -94
  450. package/dist/index308.js.map +1 -1
  451. package/dist/index309.js +14 -97
  452. package/dist/index309.js.map +1 -1
  453. package/dist/index31.js +40 -216
  454. package/dist/index31.js.map +1 -1
  455. package/dist/index312.js +5 -5
  456. package/dist/index312.js.map +1 -1
  457. package/dist/index313.js +19 -3
  458. package/dist/index313.js.map +1 -1
  459. package/dist/index314.js +12 -23
  460. package/dist/index314.js.map +1 -1
  461. package/dist/index315.js +5 -113
  462. package/dist/index315.js.map +1 -1
  463. package/dist/index316.js +3 -16
  464. package/dist/index316.js.map +1 -1
  465. package/dist/index317.js +21 -522
  466. package/dist/index317.js.map +1 -1
  467. package/dist/index318.js +112 -127
  468. package/dist/index318.js.map +1 -1
  469. package/dist/index319.js +15 -133
  470. package/dist/index319.js.map +1 -1
  471. package/dist/index32.js +38 -41
  472. package/dist/index32.js.map +1 -1
  473. package/dist/index320.js +523 -19
  474. package/dist/index320.js.map +1 -1
  475. package/dist/index321.js +127 -4
  476. package/dist/index321.js.map +1 -1
  477. package/dist/index322.js +133 -18
  478. package/dist/index322.js.map +1 -1
  479. package/dist/index323.js +20 -12
  480. package/dist/index323.js.map +1 -1
  481. package/dist/index324.js +5 -64
  482. package/dist/index324.js.map +1 -1
  483. package/dist/index325.js +6 -69
  484. package/dist/index325.js.map +1 -1
  485. package/dist/index326.js +4 -9
  486. package/dist/index326.js.map +1 -1
  487. package/dist/index327.js +16 -14
  488. package/dist/index327.js.map +1 -1
  489. package/dist/index328.js +8 -65
  490. package/dist/index328.js.map +1 -1
  491. package/dist/index329.js +5 -5
  492. package/dist/index329.js.map +1 -1
  493. package/dist/index33.js +24 -36
  494. package/dist/index33.js.map +1 -1
  495. package/dist/index330.js +4 -5
  496. package/dist/index330.js.map +1 -1
  497. package/dist/index331.js +546 -4
  498. package/dist/index331.js.map +1 -1
  499. package/dist/index332.js +47 -16
  500. package/dist/index332.js.map +1 -1
  501. package/dist/index333.js +17 -8
  502. package/dist/index333.js.map +1 -1
  503. package/dist/index334.js +6 -5
  504. package/dist/index334.js.map +1 -1
  505. package/dist/index335.js +8 -4
  506. package/dist/index335.js.map +1 -1
  507. package/dist/index336.js +7 -545
  508. package/dist/index336.js.map +1 -1
  509. package/dist/index337.js +9 -47
  510. package/dist/index337.js.map +1 -1
  511. package/dist/index338.js +12 -17
  512. package/dist/index338.js.map +1 -1
  513. package/dist/index339.js +9 -6
  514. package/dist/index339.js.map +1 -1
  515. package/dist/index34.js +38 -21
  516. package/dist/index34.js.map +1 -1
  517. package/dist/index340.js +13 -8
  518. package/dist/index340.js.map +1 -1
  519. package/dist/index341.js +69 -8
  520. package/dist/index341.js.map +1 -1
  521. package/dist/index342.js +9 -9
  522. package/dist/index342.js.map +1 -1
  523. package/dist/index343.js +14 -13
  524. package/dist/index343.js.map +1 -1
  525. package/dist/index344.js +66 -10
  526. package/dist/index344.js.map +1 -1
  527. package/dist/index345.js +64 -13
  528. package/dist/index345.js.map +1 -1
  529. package/dist/index346.js +4 -3
  530. package/dist/index346.js.map +1 -1
  531. package/dist/index347.js +56 -23
  532. package/dist/index347.js.map +1 -1
  533. package/dist/index348.js +68 -5
  534. package/dist/index348.js.map +1 -1
  535. package/dist/index349.js +30 -55
  536. package/dist/index349.js.map +1 -1
  537. package/dist/index35.js +30 -44
  538. package/dist/index35.js.map +1 -1
  539. package/dist/index350.js +9 -68
  540. package/dist/index350.js.map +1 -1
  541. package/dist/index351.js +148 -26
  542. package/dist/index351.js.map +1 -1
  543. package/dist/index352.js +108 -9
  544. package/dist/index352.js.map +1 -1
  545. package/dist/index353.js +4 -153
  546. package/dist/index353.js.map +1 -1
  547. package/dist/index354.js +23 -108
  548. package/dist/index354.js.map +1 -1
  549. package/dist/index355.js +15 -12
  550. package/dist/index355.js.map +1 -1
  551. package/dist/index356.js +26 -25
  552. package/dist/index356.js.map +1 -1
  553. package/dist/index357.js +13 -5
  554. package/dist/index357.js.map +1 -1
  555. package/dist/index358.js +6 -22
  556. package/dist/index358.js.map +1 -1
  557. package/dist/index359.js +12 -15
  558. package/dist/index359.js.map +1 -1
  559. package/dist/index36.js +26 -30
  560. package/dist/index36.js.map +1 -1
  561. package/dist/index360.js +25 -26
  562. package/dist/index360.js.map +1 -1
  563. package/dist/index361.js +5 -13
  564. package/dist/index361.js.map +1 -1
  565. package/dist/index362.js +22 -6
  566. package/dist/index362.js.map +1 -1
  567. package/dist/index37.js +23 -28
  568. package/dist/index37.js.map +1 -1
  569. package/dist/index38.js +123 -17
  570. package/dist/index38.js.map +1 -1
  571. package/dist/index39.js +230 -127
  572. package/dist/index39.js.map +1 -1
  573. package/dist/index40.js +49 -230
  574. package/dist/index40.js.map +1 -1
  575. package/dist/index41.js +2640 -50
  576. package/dist/index41.js.map +1 -1
  577. package/dist/index42.js +351 -2598
  578. package/dist/index42.js.map +1 -1
  579. package/dist/index43.js +214 -375
  580. package/dist/index43.js.map +1 -1
  581. package/dist/index44.js +19 -230
  582. package/dist/index44.js.map +1 -1
  583. package/dist/index45.js +138 -18
  584. package/dist/index45.js.map +1 -1
  585. package/dist/index46.js +170 -125
  586. package/dist/index46.js.map +1 -1
  587. package/dist/index47.js +64 -174
  588. package/dist/index47.js.map +1 -1
  589. package/dist/index48.js +88 -74
  590. package/dist/index48.js.map +1 -1
  591. package/dist/index49.js +5 -90
  592. package/dist/index49.js.map +1 -1
  593. package/dist/index5.js +1 -1
  594. package/dist/index50.js +843 -5
  595. package/dist/index50.js.map +1 -1
  596. package/dist/index51.js +54 -832
  597. package/dist/index51.js.map +1 -1
  598. package/dist/index52.js +37 -66
  599. package/dist/index52.js.map +1 -1
  600. package/dist/index55.js +1 -1
  601. package/dist/index56.js +1 -1
  602. package/dist/index57.js +205 -4
  603. package/dist/index57.js.map +1 -1
  604. package/dist/index59.js +33 -47
  605. package/dist/index59.js.map +1 -1
  606. package/dist/index61.js +7 -50
  607. package/dist/index61.js.map +1 -1
  608. package/dist/index62.js +11 -7
  609. package/dist/index62.js.map +1 -1
  610. package/dist/index63.js +3 -14
  611. package/dist/index63.js.map +1 -1
  612. package/dist/index64.js +43 -129
  613. package/dist/index64.js.map +1 -1
  614. package/dist/index65.js +50 -10
  615. package/dist/index65.js.map +1 -1
  616. package/dist/index66.js +7 -216
  617. package/dist/index66.js.map +1 -1
  618. package/dist/index67.js +15 -13
  619. package/dist/index67.js.map +1 -1
  620. package/dist/index68.js +132 -32
  621. package/dist/index68.js.map +1 -1
  622. package/dist/index69.js +10 -46
  623. package/dist/index69.js.map +1 -1
  624. package/dist/index70.js +216 -7
  625. package/dist/index70.js.map +1 -1
  626. package/dist/index71.js +12 -49
  627. package/dist/index71.js.map +1 -1
  628. package/dist/index72.js +47 -4
  629. package/dist/index72.js.map +1 -1
  630. package/dist/index73.js +49 -5
  631. package/dist/index73.js.map +1 -1
  632. package/dist/index74.js +4 -28
  633. package/dist/index74.js.map +1 -1
  634. package/dist/index75.js +6 -50
  635. package/dist/index75.js.map +1 -1
  636. package/dist/index76.js +28 -9
  637. package/dist/index76.js.map +1 -1
  638. package/dist/index77.js +48 -203
  639. package/dist/index77.js.map +1 -1
  640. package/dist/index78.js +9 -54
  641. package/dist/index78.js.map +1 -1
  642. package/dist/index79.js +53 -5
  643. package/dist/index79.js.map +1 -1
  644. package/dist/index8.js +1 -1
  645. package/dist/index80.js +2 -8
  646. package/dist/index80.js.map +1 -1
  647. package/dist/index81.js +2 -6
  648. package/dist/index81.js.map +1 -1
  649. package/dist/index82.js +5 -11
  650. package/dist/index82.js.map +1 -1
  651. package/dist/index83.js +8 -2
  652. package/dist/index83.js.map +1 -1
  653. package/dist/index84.js +6 -2
  654. package/dist/index84.js.map +1 -1
  655. package/dist/index85.js +52 -47
  656. package/dist/index85.js.map +1 -1
  657. package/dist/index86.js +4 -205
  658. package/dist/index86.js.map +1 -1
  659. package/dist/index87.js +5 -22
  660. package/dist/index87.js.map +1 -1
  661. package/dist/index88.js +15 -24
  662. package/dist/index88.js.map +1 -1
  663. package/dist/index89.js +5 -399
  664. package/dist/index89.js.map +1 -1
  665. package/dist/index9.js +1 -1
  666. package/dist/index90.js +7 -46
  667. package/dist/index90.js.map +1 -1
  668. package/dist/index91.js +15 -604
  669. package/dist/index91.js.map +1 -1
  670. package/dist/index92.js +4 -5
  671. package/dist/index92.js.map +1 -1
  672. package/dist/index93.js +4 -68
  673. package/dist/index93.js.map +1 -1
  674. package/dist/index94.js +6 -2
  675. package/dist/index94.js.map +1 -1
  676. package/dist/index95.js +5 -363
  677. package/dist/index95.js.map +1 -1
  678. package/dist/index96.js +4 -261
  679. package/dist/index96.js.map +1 -1
  680. package/dist/index97.js +4 -60
  681. package/dist/index97.js.map +1 -1
  682. package/dist/index98.js +6 -46
  683. package/dist/index98.js.map +1 -1
  684. package/dist/index99.js +24 -169
  685. package/dist/index99.js.map +1 -1
  686. package/package.json +1 -1
  687. package/dist/components/DayPicker/index.d.ts.map +0 -1
  688. package/dist/components/HoursPicker/index.d.ts +0 -35
  689. package/dist/components/HoursPicker/index.d.ts.map +0 -1
package/dist/index154.js CHANGED
@@ -1,57 +1,7 @@
1
- import { useRef as k, useLayoutEffect as z } from "react";
2
- import { Animation as o } from "./index153.js";
3
- const l = (e) => e instanceof HTMLElement ? e : null, q = (e) => [
4
- ...e.querySelectorAll("[data-animated-month]") ?? []
5
- ], I = (e) => l(e.querySelector("[data-animated-month]")), w = (e) => l(e.querySelector("[data-animated-caption]")), h = (e) => l(e.querySelector("[data-animated-weeks]")), B = (e) => l(e.querySelector("[data-animated-nav]")), P = (e) => l(e.querySelector("[data-animated-weekdays]"));
6
- function D(e, M, { classNames: s, months: a, focused: b, dateLib: S }) {
7
- const y = k(null), A = k(a), p = k(!1);
8
- z(() => {
9
- const f = A.current;
10
- if (A.current = a, !M || !e.current || // safety check because the ref can be set to anything by consumers
11
- !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
12
- a.length === 0 || f.length === 0 || a.length !== f.length)
13
- return;
14
- const g = S.isSameMonth(a[0].date, f[0].date), u = S.isAfter(a[0].date, f[0].date), v = u ? s[o.caption_after_enter] : s[o.caption_before_enter], m = u ? s[o.weeks_after_enter] : s[o.weeks_before_enter], H = y.current, L = e.current.cloneNode(!0);
15
- if (L instanceof HTMLElement ? (q(L).forEach((t) => {
16
- if (!(t instanceof HTMLElement))
17
- return;
18
- const c = I(t);
19
- c && t.contains(c) && t.removeChild(c);
20
- const n = w(t);
21
- n && n.classList.remove(v);
22
- const r = h(t);
23
- r && r.classList.remove(m);
24
- }), y.current = L) : y.current = null, p.current || g || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
25
- b)
26
- return;
27
- const _ = H instanceof HTMLElement ? q(H) : [], x = q(e.current);
28
- if (x?.every((i) => i instanceof HTMLElement) && _ && _.every((i) => i instanceof HTMLElement)) {
29
- p.current = !0, e.current.style.isolation = "isolate";
30
- const i = B(e.current);
31
- i && (i.style.zIndex = "1"), x.forEach((t, c) => {
32
- const n = _[c];
33
- if (!n)
34
- return;
35
- t.style.position = "relative", t.style.overflow = "hidden";
36
- const r = w(t);
37
- r && r.classList.add(v);
38
- const d = h(t);
39
- d && d.classList.add(m);
40
- const W = () => {
41
- p.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(v), d && d.classList.remove(m), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
42
- };
43
- n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
44
- const C = P(n);
45
- C && (C.style.opacity = "0");
46
- const E = w(n);
47
- E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
48
- const T = h(n);
49
- T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
50
- });
51
- }
52
- });
1
+ function r(e) {
2
+ return "Week Number";
53
3
  }
54
4
  export {
55
- D as useAnimation
5
+ r as labelWeekNumberHeader
56
6
  };
57
7
  //# sourceMappingURL=index154.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index154.js","sources":["../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"names":["asHtmlElement","element","queryMonthEls","queryMonthEl","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","isSameMonth","isAfterPreviousMonth","captionAnimationClass","Animation","weeksAnimationClass","previousRootElSnapshot","rootElSnapshot","currentMonthElSnapshot","previousMonthElSnapshot","captionEl","weeksEl","previousMonthEls","currentMonthEls","el","navEl","currentMonthEl","index","previousMonthEl","cleanUp","previousWeekdaysEl","previousCaptionEl","previousWeeksEl"],"mappings":";;AAEA,MAAMA,IAAgB,CAACC,MACfA,aAAmB,cACZA,IACJ,MAELC,IAAgB,CAACD,MAAY;AAAA,EAC/B,GAAIA,EAAQ,iBAAiB,uBAAuB,KAAK,CAAA;AAC7D,GACME,IAAe,CAACF,MAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,GACxFG,IAAiB,CAACH,MAAYD,EAA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AASE,CAAe,KACvCF,EAAe,YAAYE,CAAe;AAAA,QAElD;AAGA,QAAAA,EAAgB,MAAM,gBAAgB,QACtCA,EAAgB,MAAM,WAAW,YACjCA,EAAgB,MAAM,WAAW,UACjCA,EAAgB,aAAa,eAAe,MAAM;AAElD,cAAME,IAAqBjC,EAAgB+B,CAAe;AAC1D,QAAIE,MACAA,EAAmB,MAAM,UAAU;AAEvC,cAAMC,IAAoBrC,EAAekC,CAAe;AACxD,QAAIG,MACAA,EAAkB,UAAU,IAAInB,IAC1BX,EAAWa,EAAU,mBAAmB,IACxCb,EAAWa,EAAU,kBAAkB,CAAC,GAC9CiB,EAAkB,iBAAiB,gBAAgBF,CAAO;AAE9D,cAAMG,IAAkBrC,EAAaiC,CAAe;AACpD,QAAII,KACAA,EAAgB,UAAU,IAAIpB,IACxBX,EAAWa,EAAU,iBAAiB,IACtCb,EAAWa,EAAU,gBAAgB,CAAC,GAEhDY,EAAe,aAAaE,GAAiBF,EAAe,UAAU;AAAA,MAC1E,CAAC;AAAA,IACL;AAAA,EACJ,CAAC;AACL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index154.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(_options) {\n return \"Week Number\";\n}\n"],"names":["labelWeekNumberHeader","_options"],"mappings":"AASO,SAASA,EAAsBC,GAAU;AAC5C,SAAO;AACX;","x_google_ignoreList":[0]}
package/dist/index155.js CHANGED
@@ -1,76 +1,7 @@
1
- import { useEffect as D, useMemo as S } from "react";
2
- import { getDates as N } from "./index285.js";
3
- import { getDays as w } from "./index286.js";
4
- import { getDisplayMonths as E } from "./index287.js";
5
- import { getInitialMonth as c } from "./index288.js";
6
- import { getMonths as b } from "./index289.js";
7
- import { getNavMonths as q } from "./index290.js";
8
- import { getNextMonth as F } from "./index291.js";
9
- import { getPreviousMonth as P } from "./index292.js";
10
- import { getWeeks as V } from "./index293.js";
11
- import { useControlledValue as Z } from "./index294.js";
12
- function _(e, n) {
13
- const [s, a] = q(e, n), { startOfMonth: i, endOfMonth: g } = n, h = c(e, s, a, n), [m, f] = Z(
14
- h,
15
- // initialMonth is always computed from props.month if provided
16
- e.month ? h : void 0
17
- );
18
- D(() => {
19
- const t = c(e, s, a, n);
20
- f(t);
21
- }, [e.timeZone]);
22
- const { months: l, weeks: M, days: u, previousMonth: k, nextMonth: v } = S(() => {
23
- const t = E(m, a, { numberOfMonths: e.numberOfMonths }, n), o = N(t, e.endMonth ? g(e.endMonth) : void 0, {
24
- ISOWeek: e.ISOWeek,
25
- fixedWeeks: e.fixedWeeks,
26
- broadcastCalendar: e.broadcastCalendar
27
- }, n), r = b(t, o, {
28
- broadcastCalendar: e.broadcastCalendar,
29
- fixedWeeks: e.fixedWeeks,
30
- ISOWeek: e.ISOWeek,
31
- reverseMonths: e.reverseMonths
32
- }, n), C = V(r), y = w(r), I = P(m, s, e, n), T = F(m, a, e, n);
33
- return {
34
- months: r,
35
- weeks: C,
36
- days: y,
37
- previousMonth: I,
38
- nextMonth: T
39
- };
40
- }, [
41
- n,
42
- m.getTime(),
43
- a?.getTime(),
44
- s?.getTime(),
45
- e.disableNavigation,
46
- e.broadcastCalendar,
47
- e.endMonth?.getTime(),
48
- e.fixedWeeks,
49
- e.ISOWeek,
50
- e.numberOfMonths,
51
- e.pagedNavigation,
52
- e.reverseMonths
53
- ]), { disableNavigation: W, onMonthChange: O } = e, x = (t) => M.some((o) => o.days.some((r) => r.isEqualTo(t))), d = (t) => {
54
- if (W)
55
- return;
56
- let o = i(t);
57
- s && o < i(s) && (o = i(s)), a && o > i(a) && (o = i(a)), f(o), O?.(o);
58
- };
59
- return {
60
- months: l,
61
- weeks: M,
62
- days: u,
63
- navStart: s,
64
- navEnd: a,
65
- previousMonth: k,
66
- nextMonth: v,
67
- goToMonth: d,
68
- goToDay: (t) => {
69
- x(t) || d(t.date);
70
- }
71
- };
1
+ function e(o) {
2
+ return "Choose the Year";
72
3
  }
73
4
  export {
74
- _ as useCalendar
5
+ e as labelYearDropdown
75
6
  };
76
7
  //# sourceMappingURL=index155.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index155.js","sources":["../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n // biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.\n const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {\n const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {\n ISOWeek: props.ISOWeek,\n fixedWeeks: props.fixedWeeks,\n broadcastCalendar: props.broadcastCalendar,\n }, dateLib);\n const months = getMonths(displayMonths, dates, {\n broadcastCalendar: props.broadcastCalendar,\n fixedWeeks: props.fixedWeeks,\n ISOWeek: props.ISOWeek,\n reverseMonths: props.reverseMonths,\n }, dateLib);\n const weeks = getWeeks(months);\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n return {\n months,\n weeks,\n days,\n previousMonth,\n nextMonth,\n };\n }, [\n dateLib,\n firstMonth.getTime(),\n navEnd?.getTime(),\n navStart?.getTime(),\n props.disableNavigation,\n props.broadcastCalendar,\n props.endMonth?.getTime(),\n props.fixedWeeks,\n props.ISOWeek,\n props.numberOfMonths,\n props.pagedNavigation,\n props.reverseMonths,\n ]);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay,\n };\n return calendar;\n}\n"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","useEffect","newInitialMonth","months","weeks","days","previousMonth","nextMonth","useMemo","displayMonths","getDisplayMonths","dates","getDates","getMonths","getWeeks","getDays","getPreviousMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","week","d","goToMonth","date","newMonth"],"mappings":";;;;;;;;;;;AAoBO,SAASA,EAAYC,GAAOC,GAAS;AACxC,QAAM,CAACC,GAAUC,CAAM,IAAIC,EAAaJ,GAAOC,CAAO,GAChD,EAAE,cAAAI,GAAc,YAAAC,EAAU,IAAKL,GAC/BM,IAAeC,EAAgBR,GAAOE,GAAUC,GAAQF,CAAO,GAC/D,CAACQ,GAAYC,CAAa,IAAIC;AAAA,IAAmBJ;AAAA;AAAA,IAEvDP,EAAM,QAAQO,IAAe;AAAA,EAAS;AAEtC,EAAAK,EAAU,MAAM;AACZ,UAAMC,IAAkBL,EAAgBR,GAAOE,GAAUC,GAAQF,CAAO;AACxE,IAAAS,EAAcG,CAAe;AAAA,EACjC,GAAG,CAACb,EAAM,QAAQ,CAAC;AAGnB,QAAM,EAAE,QAAAc,GAAQ,OAAAC,GAAO,MAAAC,GAAM,eAAAC,GAAe,WAAAC,EAAS,IAAKC,EAAQ,MAAM;AACpE,UAAMC,IAAgBC,EAAiBZ,GAAYN,GAAQ,EAAE,gBAAgBH,EAAM,eAAc,GAAIC,CAAO,GACtGqB,IAAQC,EAASH,GAAepB,EAAM,WAAWM,EAAWN,EAAM,QAAQ,IAAI,QAAW;AAAA,MAC3F,SAASA,EAAM;AAAA,MACf,YAAYA,EAAM;AAAA,MAClB,mBAAmBA,EAAM;AAAA,IACrC,GAAWC,CAAO,GACJa,IAASU,EAAUJ,GAAeE,GAAO;AAAA,MAC3C,mBAAmBtB,EAAM;AAAA,MACzB,YAAYA,EAAM;AAAA,MAClB,SAASA,EAAM;AAAA,MACf,eAAeA,EAAM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B,MAAID,EAAgBC,CAAG,KAGvBG,EAAUH,EAAI,IAAI;AAAA,IACtB;AAAA,EAWJ;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index155.js","sources":["../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(_options) {\n return \"Choose the Year\";\n}\n"],"names":["labelYearDropdown","_options"],"mappings":"AASO,SAASA,EAAkBC,GAAU;AACxC,SAAO;AACX;","x_google_ignoreList":[0]}
package/dist/index156.js CHANGED
@@ -1,13 +1,7 @@
1
- import { createContext as t, useContext as n } from "react";
2
- const o = t(void 0);
3
- function c() {
4
- const e = n(o);
5
- if (e === void 0)
6
- throw new Error("useDayPicker() must be used within a custom component.");
7
- return e;
1
+ function a(n, t) {
2
+ return new a.InputMask(n, t);
8
3
  }
9
4
  export {
10
- o as dayPickerContext,
11
- c as useDayPicker
5
+ a as default
12
6
  };
13
7
  //# sourceMappingURL=index156.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index156.js","sources":["../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","useDayPicker","context","useContext"],"mappings":";AAEY,MAACA,IAAmBC,EAAc,MAAS;AAahD,SAASC,IAAe;AAC3B,QAAMC,IAAUC,EAAWJ,CAAgB;AAC3C,MAAIG,MAAY;AACZ,UAAM,IAAI,MAAM,wDAAwD;AAE5E,SAAOA;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index156.js","sources":["../../../node_modules/imask/esm/core/holder.js"],"sourcesContent":["/** Applies mask on element */\nfunction IMask(el, opts) {\n // currently available only for input-like elements\n return new IMask.InputMask(el, opts);\n}\n\nexport { IMask as default };\n"],"names":["IMask","el","opts"],"mappings":"AACA,SAASA,EAAMC,GAAIC,GAAM;AAEvB,SAAO,IAAIF,EAAM,UAAUC,GAAIC,CAAI;AACrC;","x_google_ignoreList":[0]}
package/dist/index157.js CHANGED
@@ -1,24 +1,37 @@
1
- import { useState as a } from "react";
2
- import { calculateFocusTarget as T } from "./index295.js";
3
- import { getNextFocus as v } from "./index296.js";
4
- function I(e, o, r, i, f) {
5
- const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
6
- return {
7
- isFocusTarget: (n) => !!c?.isEqualTo(n),
8
- setFocused: u,
9
- focused: s,
10
- blur: () => {
11
- m(s), u(void 0);
12
- },
13
- moveFocus: (n, l) => {
14
- if (!s)
15
- return;
16
- const t = v(n, l, s, o.navStart, o.navEnd, e, f);
17
- t && (e.disableNavigation && !o.days.some((g) => g.isEqualTo(t)) || (o.goToDay(t), u(t)));
18
- }
19
- };
1
+ import i from "./index156.js";
2
+ class s {
3
+ /** Inserted symbols */
4
+ /** Additional offset if any changes occurred before tail */
5
+ /** Raw inserted is used by dynamic mask */
6
+ /** Can skip chars */
7
+ static normalize(t) {
8
+ return Array.isArray(t) ? t : [t, new s()];
9
+ }
10
+ constructor(t) {
11
+ Object.assign(this, {
12
+ inserted: "",
13
+ rawInserted: "",
14
+ tailShift: 0,
15
+ skip: !1
16
+ }, t);
17
+ }
18
+ /** Aggregate changes */
19
+ aggregate(t) {
20
+ return this.inserted += t.inserted, this.rawInserted += t.rawInserted, this.tailShift += t.tailShift, this.skip = this.skip || t.skip, this;
21
+ }
22
+ /** Total offset considering all changes */
23
+ get offset() {
24
+ return this.tailShift + this.inserted.length;
25
+ }
26
+ get consumed() {
27
+ return !!this.rawInserted || this.skip;
28
+ }
29
+ equals(t) {
30
+ return this.inserted === t.inserted && this.tailShift === t.tailShift && this.rawInserted === t.rawInserted && this.skip === t.skip;
31
+ }
20
32
  }
33
+ i.ChangeDetails = s;
21
34
  export {
22
- I as useFocus
35
+ s as default
23
36
  };
24
37
  //# sourceMappingURL=index157.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index157.js","sources":["../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n if (props.disableNavigation) {\n const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));\n if (!isNextInCalendar) {\n return;\n }\n }\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":";;;AAiBO,SAASA,EAASC,GAAOC,GAAUC,GAAcC,GAAYC,GAAS;AACzE,QAAM,EAAE,WAAAC,EAAS,IAAKL,GAChB,CAACM,GAAaC,CAAc,IAAIC,EAAQ,GACxCC,IAAcC,EAAqBT,EAAS,MAAMC,GAAcC,MAAe,MAAM,KAAQG,CAAW,GACxG,CAACK,GAAYC,CAAU,IAAIJ,EAASH,IAAYI,IAAc,MAAS;AA8B7E,SAPiB;AAAA,IACb,eAJkB,CAACI,MACZ,EAAQJ,GAAa,UAAUI,CAAG;AAAA,IAIzC,YAAAD;AAAA,IACA,SAASD;AAAA,IACT,MA1BS,MAAM;AACf,MAAAJ,EAAeI,CAAU,GACzBC,EAAW,MAAS;AAAA,IACxB;AAAA,IAwBI,WAvBc,CAACE,GAAQC,MAAY;AACnC,UAAI,CAACJ;AACD;AACJ,YAAMK,IAAYC,EAAaH,GAAQC,GAASJ,GAAYV,EAAS,UAAUA,EAAS,QAAQD,GAAOI,CAAO;AAC9G,MAAKY,MAEDhB,EAAM,qBAEF,CADqBC,EAAS,KAAK,KAAK,CAACY,MAAQA,EAAI,UAAUG,CAAS,CAAC,MAKjFf,EAAS,QAAQe,CAAS,GAC1BJ,EAAWI,CAAS;AAAA,IACxB;AAAA,EAUJ;AAEA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index157.js","sources":["../../../node_modules/imask/esm/core/change-details.js"],"sourcesContent":["import IMask from './holder.js';\n\n/** Provides details of changing model value */\nclass ChangeDetails {\n /** Inserted symbols */\n\n /** Additional offset if any changes occurred before tail */\n\n /** Raw inserted is used by dynamic mask */\n\n /** Can skip chars */\n\n static normalize(prep) {\n return Array.isArray(prep) ? prep : [prep, new ChangeDetails()];\n }\n constructor(details) {\n Object.assign(this, {\n inserted: '',\n rawInserted: '',\n tailShift: 0,\n skip: false\n }, details);\n }\n\n /** Aggregate changes */\n aggregate(details) {\n this.inserted += details.inserted;\n this.rawInserted += details.rawInserted;\n this.tailShift += details.tailShift;\n this.skip = this.skip || details.skip;\n return this;\n }\n\n /** Total offset considering all changes */\n get offset() {\n return this.tailShift + this.inserted.length;\n }\n get consumed() {\n return Boolean(this.rawInserted) || this.skip;\n }\n equals(details) {\n return this.inserted === details.inserted && this.tailShift === details.tailShift && this.rawInserted === details.rawInserted && this.skip === details.skip;\n }\n}\nIMask.ChangeDetails = ChangeDetails;\n\nexport { ChangeDetails as default };\n"],"names":["ChangeDetails","prep","details","IMask"],"mappings":";AAGA,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EASlB,OAAO,UAAUC,GAAM;AACrB,WAAO,MAAM,QAAQA,CAAI,IAAIA,IAAO,CAACA,GAAM,IAAID,GAAe;AAAA,EAChE;AAAA,EACA,YAAYE,GAAS;AACnB,WAAO,OAAO,MAAM;AAAA,MAClB,UAAU;AAAA,MACV,aAAa;AAAA,MACb,WAAW;AAAA,MACX,MAAM;AAAA,IACZ,GAAOA,CAAO;AAAA,EACZ;AAAA;AAAA,EAGA,UAAUA,GAAS;AACjB,gBAAK,YAAYA,EAAQ,UACzB,KAAK,eAAeA,EAAQ,aAC5B,KAAK,aAAaA,EAAQ,WAC1B,KAAK,OAAO,KAAK,QAAQA,EAAQ,MAC1B;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,SAAS;AACX,WAAO,KAAK,YAAY,KAAK,SAAS;AAAA,EACxC;AAAA,EACA,IAAI,WAAW;AACb,WAAO,EAAQ,KAAK,eAAgB,KAAK;AAAA,EAC3C;AAAA,EACA,OAAOA,GAAS;AACd,WAAO,KAAK,aAAaA,EAAQ,YAAY,KAAK,cAAcA,EAAQ,aAAa,KAAK,gBAAgBA,EAAQ,eAAe,KAAK,SAASA,EAAQ;AAAA,EACzJ;AACF;AACAC,EAAM,gBAAgBH;","x_google_ignoreList":[0]}
package/dist/index158.js CHANGED
@@ -1,20 +1,253 @@
1
- import { useMulti as i } from "./index297.js";
2
- import { useRange as o } from "./index298.js";
3
- import { useSingle as s } from "./index299.js";
4
- function f(e, n) {
5
- const t = s(e, n), r = i(e, n), u = o(e, n);
6
- switch (e.mode) {
7
- case "single":
8
- return t;
9
- case "multiple":
10
- return r;
11
- case "range":
12
- return u;
13
- default:
14
- return;
1
+ import h from "./index157.js";
2
+ import f from "./index271.js";
3
+ import { isString as v, DIRECTION as o, objectIncludes as V, forceDirection as I } from "./index269.js";
4
+ import _ from "./index156.js";
5
+ class p {
6
+ /** */
7
+ /** */
8
+ /** Transforms value before mask processing */
9
+ /** Transforms each char before mask processing */
10
+ /** Validates if value is acceptable */
11
+ /** Does additional processing at the end of editing */
12
+ /** Format typed value to string */
13
+ /** Parse string to get typed value */
14
+ /** Enable characters overwriting */
15
+ /** */
16
+ /** */
17
+ /** */
18
+ /** */
19
+ constructor(t) {
20
+ this._value = "", this._update({
21
+ ...p.DEFAULTS,
22
+ ...t
23
+ }), this._initialized = !0;
24
+ }
25
+ /** Sets and applies new options */
26
+ updateOptions(t) {
27
+ this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
28
+ }
29
+ /** Sets new options */
30
+ _update(t) {
31
+ Object.assign(this, t);
32
+ }
33
+ /** Mask state */
34
+ get state() {
35
+ return {
36
+ _value: this.value,
37
+ _rawInputValue: this.rawInputValue
38
+ };
39
+ }
40
+ set state(t) {
41
+ this._value = t._value;
42
+ }
43
+ /** Resets value */
44
+ reset() {
45
+ this._value = "";
46
+ }
47
+ get value() {
48
+ return this._value;
49
+ }
50
+ set value(t) {
51
+ this.resolve(t, {
52
+ input: !0
53
+ });
54
+ }
55
+ /** Resolve new value */
56
+ resolve(t, e) {
57
+ e === void 0 && (e = {
58
+ input: !0
59
+ }), this.reset(), this.append(t, e, ""), this.doCommit();
60
+ }
61
+ get unmaskedValue() {
62
+ return this.value;
63
+ }
64
+ set unmaskedValue(t) {
65
+ this.resolve(t, {});
66
+ }
67
+ get typedValue() {
68
+ return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
69
+ }
70
+ set typedValue(t) {
71
+ this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
72
+ }
73
+ /** Value that includes raw user input */
74
+ get rawInputValue() {
75
+ return this.extractInput(0, this.displayValue.length, {
76
+ raw: !0
77
+ });
78
+ }
79
+ set rawInputValue(t) {
80
+ this.resolve(t, {
81
+ raw: !0
82
+ });
83
+ }
84
+ get displayValue() {
85
+ return this.value;
86
+ }
87
+ get isComplete() {
88
+ return !0;
89
+ }
90
+ get isFilled() {
91
+ return this.isComplete;
92
+ }
93
+ /** Finds nearest input position in direction */
94
+ nearestInputPos(t, e) {
95
+ return t;
96
+ }
97
+ totalInputPositions(t, e) {
98
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
99
+ }
100
+ /** Extracts value in range considering flags */
101
+ extractInput(t, e, i) {
102
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
103
+ }
104
+ /** Extracts tail in range */
105
+ extractTail(t, e) {
106
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new f(this.extractInput(t, e), t);
107
+ }
108
+ /** Appends tail */
109
+ appendTail(t) {
110
+ return v(t) && (t = new f(String(t))), t.appendTo(this);
111
+ }
112
+ /** Appends char */
113
+ _appendCharRaw(t, e) {
114
+ return t ? (this._value += t, new h({
115
+ inserted: t,
116
+ rawInserted: t
117
+ })) : new h();
118
+ }
119
+ /** Appends char */
120
+ _appendChar(t, e, i) {
121
+ e === void 0 && (e = {});
122
+ const s = this.state;
123
+ let a;
124
+ if ([t, a] = this.doPrepareChar(t, e), t && (a = a.aggregate(this._appendCharRaw(t, e)), !a.rawInserted && this.autofix === "pad")) {
125
+ const n = this.state;
126
+ this.state = s;
127
+ let r = this.pad(e);
128
+ const l = this._appendCharRaw(t, e);
129
+ r = r.aggregate(l), l.rawInserted || r.equals(a) ? a = r : this.state = n;
130
+ }
131
+ if (a.inserted) {
132
+ let n, r = this.doValidate(e) !== !1;
133
+ if (r && i != null) {
134
+ const l = this.state;
135
+ if (this.overwrite === !0) {
136
+ n = i.state;
137
+ for (let d = 0; d < a.rawInserted.length; ++d)
138
+ i.unshift(this.displayValue.length - a.tailShift);
139
+ }
140
+ let u = this.appendTail(i);
141
+ if (r = u.rawInserted.length === i.toString().length, !(r && u.inserted) && this.overwrite === "shift") {
142
+ this.state = l, n = i.state;
143
+ for (let d = 0; d < a.rawInserted.length; ++d)
144
+ i.shift();
145
+ u = this.appendTail(i), r = u.rawInserted.length === i.toString().length;
146
+ }
147
+ r && u.inserted && (this.state = l);
148
+ }
149
+ r || (a = new h(), this.state = s, i && n && (i.state = n));
150
+ }
151
+ return a;
152
+ }
153
+ /** Appends optional placeholder at the end */
154
+ _appendPlaceholder() {
155
+ return new h();
156
+ }
157
+ /** Appends optional eager placeholder at the end */
158
+ _appendEager() {
159
+ return new h();
160
+ }
161
+ /** Appends symbols considering flags */
162
+ append(t, e, i) {
163
+ if (!v(t)) throw new Error("value should be string");
164
+ const s = v(i) ? new f(String(i)) : i;
165
+ e != null && e.tail && (e._beforeTailState = this.state);
166
+ let a;
167
+ [t, a] = this.doPrepare(t, e);
168
+ for (let n = 0; n < t.length; ++n) {
169
+ const r = this._appendChar(t[n], e, s);
170
+ if (!r.rawInserted && !this.doSkipInvalid(t[n], e, s)) break;
171
+ a.aggregate(r);
172
+ }
173
+ return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && a.aggregate(this._appendEager()), s != null && (a.tailShift += this.appendTail(s).tailShift), a;
174
+ }
175
+ remove(t, e) {
176
+ return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new h();
177
+ }
178
+ /** Calls function and reapplies current value */
179
+ withValueRefresh(t) {
180
+ if (this._refreshing || !this._initialized) return t();
181
+ this._refreshing = !0;
182
+ const e = this.rawInputValue, i = this.value, s = t();
183
+ return this.rawInputValue = e, this.value && this.value !== i && i.indexOf(this.value) === 0 && (this.append(i.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, s;
184
+ }
185
+ runIsolated(t) {
186
+ if (this._isolated || !this._initialized) return t(this);
187
+ this._isolated = !0;
188
+ const e = this.state, i = t(this);
189
+ return this.state = e, delete this._isolated, i;
190
+ }
191
+ doSkipInvalid(t, e, i) {
192
+ return !!this.skipInvalid;
193
+ }
194
+ /** Prepares string before mask processing */
195
+ doPrepare(t, e) {
196
+ return e === void 0 && (e = {}), h.normalize(this.prepare ? this.prepare(t, this, e) : t);
197
+ }
198
+ /** Prepares each char before mask processing */
199
+ doPrepareChar(t, e) {
200
+ return e === void 0 && (e = {}), h.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
201
+ }
202
+ /** Validates if value is acceptable */
203
+ doValidate(t) {
204
+ return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
205
+ }
206
+ /** Does additional processing at the end of editing */
207
+ doCommit() {
208
+ this.commit && this.commit(this.value, this);
209
+ }
210
+ splice(t, e, i, s, a) {
211
+ i === void 0 && (i = ""), s === void 0 && (s = o.NONE), a === void 0 && (a = {
212
+ input: !0
213
+ });
214
+ const n = t + e, r = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
215
+ let u;
216
+ l && (s = I(s), u = this.extractInput(0, n, {
217
+ raw: !0
218
+ }));
219
+ let d = t;
220
+ const g = new h();
221
+ if (s !== o.NONE && (d = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? o.NONE : s), g.tailShift = d - t), g.aggregate(this.remove(d)), l && s !== o.NONE && u === this.rawInputValue)
222
+ if (s === o.FORCE_LEFT) {
223
+ let w;
224
+ for (; u === this.rawInputValue && (w = this.displayValue.length); )
225
+ g.aggregate(new h({
226
+ tailShift: -1
227
+ })).aggregate(this.remove(w - 1));
228
+ } else s === o.FORCE_RIGHT && r.unshift();
229
+ return g.aggregate(this.append(i, a, r));
230
+ }
231
+ maskEquals(t) {
232
+ return this.mask === t;
233
+ }
234
+ optionsIsChanged(t) {
235
+ return !V(this, t);
236
+ }
237
+ typedValueEquals(t) {
238
+ const e = this.typedValue;
239
+ return t === e || p.EMPTY_VALUES.includes(t) && p.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
240
+ }
241
+ pad(t) {
242
+ return new h();
15
243
  }
16
244
  }
245
+ p.DEFAULTS = {
246
+ skipInvalid: !0
247
+ };
248
+ p.EMPTY_VALUES = [void 0, null, ""];
249
+ _.Masked = p;
17
250
  export {
18
- f as useSelection
251
+ p as default
19
252
  };
20
253
  //# sourceMappingURL=index158.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index158.js","sources":["../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":";;;AAaO,SAASA,EAAaC,GAAOC,GAAS;AACzC,QAAMC,IAASC,EAAUH,GAAOC,CAAO,GACjCG,IAAQC,EAASL,GAAOC,CAAO,GAC/BK,IAAQC,EAASP,GAAOC,CAAO;AACrC,UAAQD,EAAM,MAAI;AAAA,IACd,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX,KAAK;AACD,aAAOE;AAAA,IACX;AACI;AAAA,EACZ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index158.js","sources":["../../../node_modules/imask/esm/masked/base.js"],"sourcesContent":["import ChangeDetails from '../core/change-details.js';\nimport ContinuousTailDetails from '../core/continuous-tail-details.js';\nimport { isString, DIRECTION, objectIncludes, forceDirection } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n/** Append flags */\n\n/** Extract flags */\n\n// see https://github.com/microsoft/TypeScript/issues/6223\n\n/** Provides common masking stuff */\nclass Masked {\n /** */\n\n /** */\n\n /** Transforms value before mask processing */\n\n /** Transforms each char before mask processing */\n\n /** Validates if value is acceptable */\n\n /** Does additional processing at the end of editing */\n\n /** Format typed value to string */\n\n /** Parse string to get typed value */\n\n /** Enable characters overwriting */\n\n /** */\n\n /** */\n\n /** */\n\n /** */\n\n constructor(opts) {\n this._value = '';\n this._update({\n ...Masked.DEFAULTS,\n ...opts\n });\n this._initialized = true;\n }\n\n /** Sets and applies new options */\n updateOptions(opts) {\n if (!this.optionsIsChanged(opts)) return;\n this.withValueRefresh(this._update.bind(this, opts));\n }\n\n /** Sets new options */\n _update(opts) {\n Object.assign(this, opts);\n }\n\n /** Mask state */\n get state() {\n return {\n _value: this.value,\n _rawInputValue: this.rawInputValue\n };\n }\n set state(state) {\n this._value = state._value;\n }\n\n /** Resets value */\n reset() {\n this._value = '';\n }\n get value() {\n return this._value;\n }\n set value(value) {\n this.resolve(value, {\n input: true\n });\n }\n\n /** Resolve new value */\n resolve(value, flags) {\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n this.reset();\n this.append(value, flags, '');\n this.doCommit();\n }\n get unmaskedValue() {\n return this.value;\n }\n set unmaskedValue(value) {\n this.resolve(value, {});\n }\n get typedValue() {\n return this.parse ? this.parse(this.value, this) : this.unmaskedValue;\n }\n set typedValue(value) {\n if (this.format) {\n this.value = this.format(value, this);\n } else {\n this.unmaskedValue = String(value);\n }\n }\n\n /** Value that includes raw user input */\n get rawInputValue() {\n return this.extractInput(0, this.displayValue.length, {\n raw: true\n });\n }\n set rawInputValue(value) {\n this.resolve(value, {\n raw: true\n });\n }\n get displayValue() {\n return this.value;\n }\n get isComplete() {\n return true;\n }\n get isFilled() {\n return this.isComplete;\n }\n\n /** Finds nearest input position in direction */\n nearestInputPos(cursorPos, direction) {\n return cursorPos;\n }\n totalInputPositions(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return Math.min(this.displayValue.length, toPos - fromPos);\n }\n\n /** Extracts value in range considering flags */\n extractInput(fromPos, toPos, flags) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return this.displayValue.slice(fromPos, toPos);\n }\n\n /** Extracts tail in range */\n extractTail(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return new ContinuousTailDetails(this.extractInput(fromPos, toPos), fromPos);\n }\n\n /** Appends tail */\n appendTail(tail) {\n if (isString(tail)) tail = new ContinuousTailDetails(String(tail));\n return tail.appendTo(this);\n }\n\n /** Appends char */\n _appendCharRaw(ch, flags) {\n if (!ch) return new ChangeDetails();\n this._value += ch;\n return new ChangeDetails({\n inserted: ch,\n rawInserted: ch\n });\n }\n\n /** Appends char */\n _appendChar(ch, flags, checkTail) {\n if (flags === void 0) {\n flags = {};\n }\n const consistentState = this.state;\n let details;\n [ch, details] = this.doPrepareChar(ch, flags);\n if (ch) {\n details = details.aggregate(this._appendCharRaw(ch, flags));\n\n // TODO handle `skip`?\n\n // try `autofix` lookahead\n if (!details.rawInserted && this.autofix === 'pad') {\n const noFixState = this.state;\n this.state = consistentState;\n let fixDetails = this.pad(flags);\n const chDetails = this._appendCharRaw(ch, flags);\n fixDetails = fixDetails.aggregate(chDetails);\n\n // if fix was applied or\n // if details are equal use skip restoring state optimization\n if (chDetails.rawInserted || fixDetails.equals(details)) {\n details = fixDetails;\n } else {\n this.state = noFixState;\n }\n }\n }\n if (details.inserted) {\n let consistentTail;\n let appended = this.doValidate(flags) !== false;\n if (appended && checkTail != null) {\n // validation ok, check tail\n const beforeTailState = this.state;\n if (this.overwrite === true) {\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.unshift(this.displayValue.length - details.tailShift);\n }\n }\n let tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n\n // not ok, try shift\n if (!(appended && tailDetails.inserted) && this.overwrite === 'shift') {\n this.state = beforeTailState;\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.shift();\n }\n tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n }\n\n // if ok, rollback state after tail\n if (appended && tailDetails.inserted) this.state = beforeTailState;\n }\n\n // revert all if something went wrong\n if (!appended) {\n details = new ChangeDetails();\n this.state = consistentState;\n if (checkTail && consistentTail) checkTail.state = consistentTail;\n }\n }\n return details;\n }\n\n /** Appends optional placeholder at the end */\n _appendPlaceholder() {\n return new ChangeDetails();\n }\n\n /** Appends optional eager placeholder at the end */\n _appendEager() {\n return new ChangeDetails();\n }\n\n /** Appends symbols considering flags */\n append(str, flags, tail) {\n if (!isString(str)) throw new Error('value should be string');\n const checkTail = isString(tail) ? new ContinuousTailDetails(String(tail)) : tail;\n if (flags != null && flags.tail) flags._beforeTailState = this.state;\n let details;\n [str, details] = this.doPrepare(str, flags);\n for (let ci = 0; ci < str.length; ++ci) {\n const d = this._appendChar(str[ci], flags, checkTail);\n if (!d.rawInserted && !this.doSkipInvalid(str[ci], flags, checkTail)) break;\n details.aggregate(d);\n }\n if ((this.eager === true || this.eager === 'append') && flags != null && flags.input && str) {\n details.aggregate(this._appendEager());\n }\n\n // append tail but aggregate only tailShift\n if (checkTail != null) {\n details.tailShift += this.appendTail(checkTail).tailShift;\n // TODO it's a good idea to clear state after appending ends\n // but it causes bugs when one append calls another (when dynamic dispatch set rawInputValue)\n // this._resetBeforeTailState();\n }\n return details;\n }\n remove(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n this._value = this.displayValue.slice(0, fromPos) + this.displayValue.slice(toPos);\n return new ChangeDetails();\n }\n\n /** Calls function and reapplies current value */\n withValueRefresh(fn) {\n if (this._refreshing || !this._initialized) return fn();\n this._refreshing = true;\n const rawInput = this.rawInputValue;\n const value = this.value;\n const ret = fn();\n this.rawInputValue = rawInput;\n // append lost trailing chars at the end\n if (this.value && this.value !== value && value.indexOf(this.value) === 0) {\n this.append(value.slice(this.displayValue.length), {}, '');\n this.doCommit();\n }\n delete this._refreshing;\n return ret;\n }\n runIsolated(fn) {\n if (this._isolated || !this._initialized) return fn(this);\n this._isolated = true;\n const state = this.state;\n const ret = fn(this);\n this.state = state;\n delete this._isolated;\n return ret;\n }\n doSkipInvalid(ch, flags, checkTail) {\n return Boolean(this.skipInvalid);\n }\n\n /** Prepares string before mask processing */\n doPrepare(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepare ? this.prepare(str, this, flags) : str);\n }\n\n /** Prepares each char before mask processing */\n doPrepareChar(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepareChar ? this.prepareChar(str, this, flags) : str);\n }\n\n /** Validates if value is acceptable */\n doValidate(flags) {\n return (!this.validate || this.validate(this.value, this, flags)) && (!this.parent || this.parent.doValidate(flags));\n }\n\n /** Does additional processing at the end of editing */\n doCommit() {\n if (this.commit) this.commit(this.value, this);\n }\n splice(start, deleteCount, inserted, removeDirection, flags) {\n if (inserted === void 0) {\n inserted = '';\n }\n if (removeDirection === void 0) {\n removeDirection = DIRECTION.NONE;\n }\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n const tailPos = start + deleteCount;\n const tail = this.extractTail(tailPos);\n const eagerRemove = this.eager === true || this.eager === 'remove';\n let oldRawValue;\n if (eagerRemove) {\n removeDirection = forceDirection(removeDirection);\n oldRawValue = this.extractInput(0, tailPos, {\n raw: true\n });\n }\n let startChangePos = start;\n const details = new ChangeDetails();\n\n // if it is just deletion without insertion\n if (removeDirection !== DIRECTION.NONE) {\n startChangePos = this.nearestInputPos(start, deleteCount > 1 && start !== 0 && !eagerRemove ? DIRECTION.NONE : removeDirection);\n\n // adjust tailShift if start was aligned\n details.tailShift = startChangePos - start;\n }\n details.aggregate(this.remove(startChangePos));\n if (eagerRemove && removeDirection !== DIRECTION.NONE && oldRawValue === this.rawInputValue) {\n if (removeDirection === DIRECTION.FORCE_LEFT) {\n let valLength;\n while (oldRawValue === this.rawInputValue && (valLength = this.displayValue.length)) {\n details.aggregate(new ChangeDetails({\n tailShift: -1\n })).aggregate(this.remove(valLength - 1));\n }\n } else if (removeDirection === DIRECTION.FORCE_RIGHT) {\n tail.unshift();\n }\n }\n return details.aggregate(this.append(inserted, flags, tail));\n }\n maskEquals(mask) {\n return this.mask === mask;\n }\n optionsIsChanged(opts) {\n return !objectIncludes(this, opts);\n }\n typedValueEquals(value) {\n const tval = this.typedValue;\n return value === tval || Masked.EMPTY_VALUES.includes(value) && Masked.EMPTY_VALUES.includes(tval) || (this.format ? this.format(value, this) === this.format(this.typedValue, this) : false);\n }\n pad(flags) {\n return new ChangeDetails();\n }\n}\nMasked.DEFAULTS = {\n skipInvalid: true\n};\nMasked.EMPTY_VALUES = [undefined, null, ''];\nIMask.Masked = Masked;\n\nexport { Masked as default };\n"],"names":["Masked","opts","state","value","flags","cursorPos","direction","fromPos","toPos","ContinuousTailDetails","tail","isString","ch","ChangeDetails","checkTail","consistentState","details","noFixState","fixDetails","chDetails","consistentTail","appended","beforeTailState","i","tailDetails","str","ci","d","fn","rawInput","ret","start","deleteCount","inserted","removeDirection","DIRECTION","tailPos","eagerRemove","oldRawValue","forceDirection","startChangePos","valLength","mask","objectIncludes","tval","IMask"],"mappings":";;;;AAYA,MAAMA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2BX,YAAYC,GAAM;AAChB,SAAK,SAAS,IACd,KAAK,QAAQ;AAAA,MACX,GAAGD,EAAO;AAAA,MACV,GAAGC;AAAA,IACT,CAAK,GACD,KAAK,eAAe;AAAA,EACtB;AAAA;AAAA,EAGA,cAAcA,GAAM;AAClB,IAAK,KAAK,iBAAiBA,CAAI,KAC/B,KAAK,iBAAiB,KAAK,QAAQ,KAAK,MAAMA,CAAI,CAAC;AAAA,EACrD;AAAA;AAAA,EAGA,QAAQA,GAAM;AACZ,WAAO,OAAO,MAAMA,CAAI;AAAA,EAC1B;AAAA;AAAA,EAGA,IAAI,QAAQ;AACV,WAAO;AAAA,MACL,QAAQ,KAAK;AAAA,MACb,gBAAgB,KAAK;AAAA,IAC3B;AAAA,EACE;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,SAAK,SAASA,EAAM;AAAA,EACtB;AAAA;AAAA,EAGA,QAAQ;AACN,SAAK,SAAS;AAAA,EAChB;AAAA,EACA,IAAI,QAAQ;AACV,WAAO,KAAK;AAAA,EACd;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,SAAK,QAAQA,GAAO;AAAA,MAClB,OAAO;AAAA,IACb,CAAK;AAAA,EACH;AAAA;AAAA,EAGA,QAAQA,GAAOC,GAAO;AACpB,IAAIA,MAAU,WACZA,IAAQ;AAAA,MACN,OA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