@rpcbase/ui 0.194.0 → 0.195.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 (445) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/index100.js +6 -5
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +24 -4
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +6 -8
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +4 -5
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +6 -4
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +5 -4
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +4 -6
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +5 -145
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +4 -39
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +8 -4
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index110.js +5 -7
  23. package/dist/index110.js.map +1 -1
  24. package/dist/index111.js +4 -13
  25. package/dist/index111.js.map +1 -1
  26. package/dist/index112.js +4 -13
  27. package/dist/index112.js.map +1 -1
  28. package/dist/index113.js +6 -7
  29. package/dist/index113.js.map +1 -1
  30. package/dist/index114.js +145 -31
  31. package/dist/index114.js.map +1 -1
  32. package/dist/index115.js +39 -10
  33. package/dist/index115.js.map +1 -1
  34. package/dist/index116.js +4 -10
  35. package/dist/index116.js.map +1 -1
  36. package/dist/index117.js +7 -8
  37. package/dist/index117.js.map +1 -1
  38. package/dist/index118.js +13 -13
  39. package/dist/index118.js.map +1 -1
  40. package/dist/index119.js +13 -101
  41. package/dist/index119.js.map +1 -1
  42. package/dist/index12.js +273 -300
  43. package/dist/index12.js.map +1 -1
  44. package/dist/index120.js +8 -20
  45. package/dist/index120.js.map +1 -1
  46. package/dist/index121.js +31 -53
  47. package/dist/index121.js.map +1 -1
  48. package/dist/index122.js +10 -72
  49. package/dist/index122.js.map +1 -1
  50. package/dist/index123.js +10 -9
  51. package/dist/index123.js.map +1 -1
  52. package/dist/index124.js +8 -20
  53. package/dist/index124.js.map +1 -1
  54. package/dist/index125.js +13 -16
  55. package/dist/index125.js.map +1 -1
  56. package/dist/index126.js +101 -23
  57. package/dist/index126.js.map +1 -1
  58. package/dist/index127.js +20 -7
  59. package/dist/index127.js.map +1 -1
  60. package/dist/index128.js +53 -5
  61. package/dist/index128.js.map +1 -1
  62. package/dist/index129.js +72 -23
  63. package/dist/index129.js.map +1 -1
  64. package/dist/index130.js +10 -35
  65. package/dist/index130.js.map +1 -1
  66. package/dist/index131.js +21 -16
  67. package/dist/index131.js.map +1 -1
  68. package/dist/index132.js +16 -6
  69. package/dist/index132.js.map +1 -1
  70. package/dist/index133.js +23 -4
  71. package/dist/index133.js.map +1 -1
  72. package/dist/index134.js +6 -4
  73. package/dist/index134.js.map +1 -1
  74. package/dist/index135.js +5 -4
  75. package/dist/index135.js.map +1 -1
  76. package/dist/index136.js +23 -4
  77. package/dist/index136.js.map +1 -1
  78. package/dist/index137.js +35 -4
  79. package/dist/index137.js.map +1 -1
  80. package/dist/index138.js +16 -7
  81. package/dist/index138.js.map +1 -1
  82. package/dist/index139.js +7 -24
  83. package/dist/index139.js.map +1 -1
  84. package/dist/index140.js +4 -7
  85. package/dist/index140.js.map +1 -1
  86. package/dist/index141.js +4 -6
  87. package/dist/index141.js.map +1 -1
  88. package/dist/index142.js +4 -5
  89. package/dist/index142.js.map +1 -1
  90. package/dist/index143.js +4 -3
  91. package/dist/index143.js.map +1 -1
  92. package/dist/index144.js +1 -1
  93. package/dist/index144.js.map +1 -1
  94. package/dist/index145.js +6 -4
  95. package/dist/index145.js.map +1 -1
  96. package/dist/index146.js +24 -4
  97. package/dist/index146.js.map +1 -1
  98. package/dist/index147.js +7 -4
  99. package/dist/index147.js.map +1 -1
  100. package/dist/index148.js +6 -3
  101. package/dist/index148.js.map +1 -1
  102. package/dist/index149.js +5 -3
  103. package/dist/index149.js.map +1 -1
  104. package/dist/index150.js +3 -3
  105. package/dist/index150.js.map +1 -1
  106. package/dist/index151.js +3 -46
  107. package/dist/index151.js.map +1 -1
  108. package/dist/index152.js +4 -605
  109. package/dist/index152.js.map +1 -1
  110. package/dist/index153.js +3 -46
  111. package/dist/index153.js.map +1 -1
  112. package/dist/index154.js +4 -205
  113. package/dist/index154.js.map +1 -1
  114. package/dist/index155.js +4 -22
  115. package/dist/index155.js.map +1 -1
  116. package/dist/index156.js +3 -24
  117. package/dist/index156.js.map +1 -1
  118. package/dist/index157.js +3 -399
  119. package/dist/index157.js.map +1 -1
  120. package/dist/index179.js +67 -58
  121. package/dist/index179.js.map +1 -1
  122. package/dist/index180.js +180 -8
  123. package/dist/index180.js.map +1 -1
  124. package/dist/index181.js +42 -62
  125. package/dist/index181.js.map +1 -1
  126. package/dist/index182.js +23 -18
  127. package/dist/index182.js.map +1 -1
  128. package/dist/index183.js +29 -17
  129. package/dist/index183.js.map +1 -1
  130. package/dist/index184.js +5 -6
  131. package/dist/index184.js.map +1 -1
  132. package/dist/index185.js +15 -4
  133. package/dist/index185.js.map +1 -1
  134. package/dist/index186.js +5 -6
  135. package/dist/index186.js.map +1 -1
  136. package/dist/index187.js +5 -4
  137. package/dist/index187.js.map +1 -1
  138. package/dist/index188.js +58 -7
  139. package/dist/index188.js.map +1 -1
  140. package/dist/index189.js +66 -17
  141. package/dist/index189.js.map +1 -1
  142. package/dist/index190.js +6 -5
  143. package/dist/index190.js.map +1 -1
  144. package/dist/index191.js +4 -5
  145. package/dist/index191.js.map +1 -1
  146. package/dist/index192.js +7 -13
  147. package/dist/index192.js.map +1 -1
  148. package/dist/index193.js +16 -9
  149. package/dist/index193.js.map +1 -1
  150. package/dist/index194.js +5 -14
  151. package/dist/index194.js.map +1 -1
  152. package/dist/index195.js +5 -14
  153. package/dist/index195.js.map +1 -1
  154. package/dist/index196.js +13 -5
  155. package/dist/index196.js.map +1 -1
  156. package/dist/index197.js +9 -5
  157. package/dist/index197.js.map +1 -1
  158. package/dist/index198.js +14 -7
  159. package/dist/index198.js.map +1 -1
  160. package/dist/index199.js +14 -6
  161. package/dist/index199.js.map +1 -1
  162. package/dist/index200.js +5 -9
  163. package/dist/index200.js.map +1 -1
  164. package/dist/index201.js +6 -5
  165. package/dist/index201.js.map +1 -1
  166. package/dist/index202.js +7 -5
  167. package/dist/index202.js.map +1 -1
  168. package/dist/index203.js +6 -9
  169. package/dist/index203.js.map +1 -1
  170. package/dist/index204.js +9 -5
  171. package/dist/index204.js.map +1 -1
  172. package/dist/index205.js +5 -5
  173. package/dist/index205.js.map +1 -1
  174. package/dist/index206.js +5 -4
  175. package/dist/index206.js.map +1 -1
  176. package/dist/index207.js +9 -11
  177. package/dist/index207.js.map +1 -1
  178. package/dist/index208.js +5 -10
  179. package/dist/index208.js.map +1 -1
  180. package/dist/index209.js +5 -10
  181. package/dist/index209.js.map +1 -1
  182. package/dist/index210.js +4 -11
  183. package/dist/index210.js.map +1 -1
  184. package/dist/index211.js +11 -11
  185. package/dist/index211.js.map +1 -1
  186. package/dist/index212.js +10 -10
  187. package/dist/index212.js.map +1 -1
  188. package/dist/index213.js +10 -7
  189. package/dist/index213.js.map +1 -1
  190. package/dist/index214.js +11 -6
  191. package/dist/index214.js.map +1 -1
  192. package/dist/index215.js +11 -5
  193. package/dist/index215.js.map +1 -1
  194. package/dist/index216.js +10 -6
  195. package/dist/index216.js.map +1 -1
  196. package/dist/index217.js +7 -7
  197. package/dist/index217.js.map +1 -1
  198. package/dist/index218.js +6 -6
  199. package/dist/index218.js.map +1 -1
  200. package/dist/index219.js +5 -55
  201. package/dist/index219.js.map +1 -1
  202. package/dist/index220.js +6 -16
  203. package/dist/index220.js.map +1 -1
  204. package/dist/index221.js +7 -7
  205. package/dist/index221.js.map +1 -1
  206. package/dist/index222.js +6 -10
  207. package/dist/index222.js.map +1 -1
  208. package/dist/index223.js +55 -10
  209. package/dist/index223.js.map +1 -1
  210. package/dist/index224.js +8 -21
  211. package/dist/index224.js.map +1 -1
  212. package/dist/index225.js +19 -10
  213. package/dist/index225.js.map +1 -1
  214. package/dist/index226.js +16 -9
  215. package/dist/index226.js.map +1 -1
  216. package/dist/index227.js +7 -9
  217. package/dist/index227.js.map +1 -1
  218. package/dist/index228.js +10 -4
  219. package/dist/index228.js.map +1 -1
  220. package/dist/index229.js +10 -5
  221. package/dist/index229.js.map +1 -1
  222. package/dist/index230.js +21 -16
  223. package/dist/index230.js.map +1 -1
  224. package/dist/index231.js +10 -9
  225. package/dist/index231.js.map +1 -1
  226. package/dist/index232.js +9 -18
  227. package/dist/index232.js.map +1 -1
  228. package/dist/index233.js +9 -15
  229. package/dist/index233.js.map +1 -1
  230. package/dist/index234.js +4 -12
  231. package/dist/index234.js.map +1 -1
  232. package/dist/index235.js +5 -29
  233. package/dist/index235.js.map +1 -1
  234. package/dist/index236.js +15 -11
  235. package/dist/index236.js.map +1 -1
  236. package/dist/index237.js +9 -25
  237. package/dist/index237.js.map +1 -1
  238. package/dist/index238.js +18 -5
  239. package/dist/index238.js.map +1 -1
  240. package/dist/index239.js +13 -65
  241. package/dist/index239.js.map +1 -1
  242. package/dist/index240.js +12 -180
  243. package/dist/index240.js.map +1 -1
  244. package/dist/index241.js +28 -45
  245. package/dist/index241.js.map +1 -1
  246. package/dist/index242.js +12 -24
  247. package/dist/index242.js.map +1 -1
  248. package/dist/index243.js +26 -29
  249. package/dist/index243.js.map +1 -1
  250. package/dist/index244.js +6 -5
  251. package/dist/index244.js.map +1 -1
  252. package/dist/index270.js +5 -5
  253. package/dist/index270.js.map +1 -1
  254. package/dist/index271.js +3 -19
  255. package/dist/index271.js.map +1 -1
  256. package/dist/index272.js +23 -12
  257. package/dist/index272.js.map +1 -1
  258. package/dist/index273.js +113 -5
  259. package/dist/index273.js.map +1 -1
  260. package/dist/index274.js +16 -3
  261. package/dist/index274.js.map +1 -1
  262. package/dist/index275.js +522 -21
  263. package/dist/index275.js.map +1 -1
  264. package/dist/index276.js +127 -112
  265. package/dist/index276.js.map +1 -1
  266. package/dist/index277.js +133 -15
  267. package/dist/index277.js.map +1 -1
  268. package/dist/index278.js +4 -524
  269. package/dist/index278.js.map +1 -1
  270. package/dist/index279.js +18 -127
  271. package/dist/index279.js.map +1 -1
  272. package/dist/index280.js +12 -133
  273. package/dist/index280.js.map +1 -1
  274. package/dist/index282.js +69 -6
  275. package/dist/index282.js.map +1 -1
  276. package/dist/index283.js +9 -6
  277. package/dist/index283.js.map +1 -1
  278. package/dist/index284.js +14 -4
  279. package/dist/index284.js.map +1 -1
  280. package/dist/index285.js +65 -15
  281. package/dist/index285.js.map +1 -1
  282. package/dist/index286.js +64 -8
  283. package/dist/index286.js.map +1 -1
  284. package/dist/index287.js +5 -5
  285. package/dist/index287.js.map +1 -1
  286. package/dist/index288.js +5 -4
  287. package/dist/index288.js.map +1 -1
  288. package/dist/index289.js +4 -546
  289. package/dist/index289.js.map +1 -1
  290. package/dist/index290.js +16 -47
  291. package/dist/index290.js.map +1 -1
  292. package/dist/index291.js +8 -17
  293. package/dist/index291.js.map +1 -1
  294. package/dist/index292.js +5 -6
  295. package/dist/index292.js.map +1 -1
  296. package/dist/index293.js +4 -8
  297. package/dist/index293.js.map +1 -1
  298. package/dist/index294.js +545 -7
  299. package/dist/index294.js.map +1 -1
  300. package/dist/index295.js +47 -9
  301. package/dist/index295.js.map +1 -1
  302. package/dist/index296.js +17 -12
  303. package/dist/index296.js.map +1 -1
  304. package/dist/index297.js +6 -9
  305. package/dist/index297.js.map +1 -1
  306. package/dist/index298.js +8 -13
  307. package/dist/index298.js.map +1 -1
  308. package/dist/index299.js +7 -64
  309. package/dist/index299.js.map +1 -1
  310. package/dist/index300.js +9 -69
  311. package/dist/index300.js.map +1 -1
  312. package/dist/index301.js +13 -9
  313. package/dist/index301.js.map +1 -1
  314. package/dist/index302.js +10 -14
  315. package/dist/index302.js.map +1 -1
  316. package/dist/index303.js +14 -66
  317. package/dist/index303.js.map +1 -1
  318. package/dist/index304.js +3 -4
  319. package/dist/index304.js.map +1 -1
  320. package/dist/index305.js +23 -56
  321. package/dist/index305.js.map +1 -1
  322. package/dist/index306.js +5 -68
  323. package/dist/index306.js.map +1 -1
  324. package/dist/index307.js +55 -30
  325. package/dist/index307.js.map +1 -1
  326. package/dist/index308.js +68 -9
  327. package/dist/index308.js.map +1 -1
  328. package/dist/index309.js +26 -148
  329. package/dist/index309.js.map +1 -1
  330. package/dist/index31.js +5 -5
  331. package/dist/index310.js +9 -108
  332. package/dist/index310.js.map +1 -1
  333. package/dist/index311.js +153 -4
  334. package/dist/index311.js.map +1 -1
  335. package/dist/index312.js +108 -23
  336. package/dist/index312.js.map +1 -1
  337. package/dist/index313.js +22 -15
  338. package/dist/index313.js.map +1 -1
  339. package/dist/index314.js +12 -28
  340. package/dist/index314.js.map +1 -1
  341. package/dist/index315.js +27 -12
  342. package/dist/index315.js.map +1 -1
  343. package/dist/index316.js +5 -7
  344. package/dist/index316.js.map +1 -1
  345. package/dist/index317.js +15 -22
  346. package/dist/index317.js.map +1 -1
  347. package/dist/index318.js +28 -12
  348. package/dist/index318.js.map +1 -1
  349. package/dist/index319.js +12 -27
  350. package/dist/index319.js.map +1 -1
  351. package/dist/index32.js +24 -24
  352. package/dist/index320.js +7 -5
  353. package/dist/index320.js.map +1 -1
  354. package/dist/index33.js +3 -3
  355. package/dist/index41.js +20 -20
  356. package/dist/index45.js +1 -1
  357. package/dist/index46.js +1 -1
  358. package/dist/index51.js +7 -7
  359. package/dist/index52.js +7 -2
  360. package/dist/index52.js.map +1 -1
  361. package/dist/index53.js +34 -2
  362. package/dist/index53.js.map +1 -1
  363. package/dist/index54.js +25 -5
  364. package/dist/index54.js.map +1 -1
  365. package/dist/index55.js +7 -33
  366. package/dist/index55.js.map +1 -1
  367. package/dist/index56.js +11 -26
  368. package/dist/index56.js.map +1 -1
  369. package/dist/index57.js +3 -7
  370. package/dist/index57.js.map +1 -1
  371. package/dist/index58.js +47 -11
  372. package/dist/index58.js.map +1 -1
  373. package/dist/index59.js +50 -3
  374. package/dist/index59.js.map +1 -1
  375. package/dist/index60.js +7 -47
  376. package/dist/index60.js.map +1 -1
  377. package/dist/index61.js +12 -48
  378. package/dist/index61.js.map +1 -1
  379. package/dist/index62.js +133 -7
  380. package/dist/index62.js.map +1 -1
  381. package/dist/index63.js +10 -14
  382. package/dist/index63.js.map +1 -1
  383. package/dist/index64.js +210 -127
  384. package/dist/index64.js.map +1 -1
  385. package/dist/index65.js +12 -10
  386. package/dist/index65.js.map +1 -1
  387. package/dist/index66.js +44 -214
  388. package/dist/index66.js.map +1 -1
  389. package/dist/index67.js +49 -12
  390. package/dist/index67.js.map +1 -1
  391. package/dist/index68.js +4 -47
  392. package/dist/index68.js.map +1 -1
  393. package/dist/index69.js +5 -49
  394. package/dist/index69.js.map +1 -1
  395. package/dist/index70.js +28 -4
  396. package/dist/index70.js.map +1 -1
  397. package/dist/index71.js +50 -6
  398. package/dist/index71.js.map +1 -1
  399. package/dist/index72.js +9 -28
  400. package/dist/index72.js.map +1 -1
  401. package/dist/index73.js +2 -50
  402. package/dist/index73.js.map +1 -1
  403. package/dist/index74.js +2 -9
  404. package/dist/index74.js.map +1 -1
  405. package/dist/index80.js +606 -52
  406. package/dist/index80.js.map +1 -1
  407. package/dist/index81.js +46 -4
  408. package/dist/index81.js.map +1 -1
  409. package/dist/index82.js +46 -4
  410. package/dist/index82.js.map +1 -1
  411. package/dist/index83.js +205 -15
  412. package/dist/index83.js.map +1 -1
  413. package/dist/index84.js +22 -6
  414. package/dist/index84.js.map +1 -1
  415. package/dist/index85.js +24 -7
  416. package/dist/index85.js.map +1 -1
  417. package/dist/index86.js +399 -16
  418. package/dist/index86.js.map +1 -1
  419. package/dist/index87.js +52 -5
  420. package/dist/index87.js.map +1 -1
  421. package/dist/index88.js +4 -4
  422. package/dist/index88.js.map +1 -1
  423. package/dist/index89.js +4 -5
  424. package/dist/index89.js.map +1 -1
  425. package/dist/index90.js +15 -5
  426. package/dist/index90.js.map +1 -1
  427. package/dist/index91.js +4 -3
  428. package/dist/index91.js.map +1 -1
  429. package/dist/index92.js +6 -3
  430. package/dist/index92.js.map +1 -1
  431. package/dist/index93.js +15 -5
  432. package/dist/index93.js.map +1 -1
  433. package/dist/index94.js +4 -24
  434. package/dist/index94.js.map +1 -1
  435. package/dist/index95.js +4 -6
  436. package/dist/index95.js.map +1 -1
  437. package/dist/index96.js +5 -4
  438. package/dist/index96.js.map +1 -1
  439. package/dist/index97.js +5 -6
  440. package/dist/index97.js.map +1 -1
  441. package/dist/index98.js +3 -4
  442. package/dist/index98.js.map +1 -1
  443. package/dist/index99.js +4 -4
  444. package/dist/index99.js.map +1 -1
  445. package/package.json +1 -1
package/dist/index119.js CHANGED
@@ -1,105 +1,17 @@
1
- import { TZDate as c } from "./index179.js";
2
- import "./index181.js";
3
- import { differenceInCalendarMonths as h } from "./index193.js";
4
- import { differenceInCalendarDays as O } from "./index192.js";
5
- import { getISOWeek as k } from "./index200.js";
6
- import { getWeek as w } from "./index203.js";
7
- function W(o, D = {}) {
8
- const { weekStartsOn: d, locale: g } = D, l = d ?? g?.options?.weekStartsOn ?? 0, r = (t) => {
9
- const e = typeof t == "number" || typeof t == "string" ? new Date(t) : t;
10
- return new c(e.getFullYear(), e.getMonth(), e.getDate(), 12, 0, 0, o);
11
- }, u = (t) => {
12
- const e = r(t);
13
- return new Date(e.getFullYear(), e.getMonth(), e.getDate(), 0, 0, 0, 0);
14
- };
15
- return {
16
- today: () => r(c.tz(o)),
17
- newDate: (t, e, n) => new c(t, e, n, 12, 0, 0, o),
18
- startOfDay: (t) => r(t),
19
- startOfWeek: (t, e) => {
20
- const n = r(t), a = e?.weekStartsOn ?? l, s = (n.getDay() - a + 7) % 7;
21
- return n.setDate(n.getDate() - s), n;
22
- },
23
- startOfISOWeek: (t) => {
24
- const e = r(t), n = (e.getDay() - 1 + 7) % 7;
25
- return e.setDate(e.getDate() - n), e;
26
- },
27
- startOfMonth: (t) => {
28
- const e = r(t);
29
- return e.setDate(1), e;
30
- },
31
- startOfYear: (t) => {
32
- const e = r(t);
33
- return e.setMonth(0, 1), e;
34
- },
35
- endOfWeek: (t, e) => {
36
- const n = r(t), f = (((e?.weekStartsOn ?? l) + 6) % 7 - n.getDay() + 7) % 7;
37
- return n.setDate(n.getDate() + f), n;
38
- },
39
- endOfISOWeek: (t) => {
40
- const e = r(t), n = (7 - e.getDay()) % 7;
41
- return e.setDate(e.getDate() + n), e;
42
- },
43
- endOfMonth: (t) => {
44
- const e = r(t);
45
- return e.setMonth(e.getMonth() + 1, 0), e;
46
- },
47
- endOfYear: (t) => {
48
- const e = r(t);
49
- return e.setMonth(11, 31), e;
50
- },
51
- eachMonthOfInterval: (t) => {
52
- const e = r(t.start), n = r(t.end), a = [], s = new c(e.getFullYear(), e.getMonth(), 1, 12, 0, 0, o), f = n.getFullYear() * 12 + n.getMonth();
53
- for (; s.getFullYear() * 12 + s.getMonth() <= f; )
54
- a.push(new c(s, o)), s.setMonth(s.getMonth() + 1, 1);
55
- return a;
56
- },
57
- // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
58
- // mutate the same TZDate, and return it.
59
- addDays: (t, e) => {
60
- const n = r(t);
61
- return n.setDate(n.getDate() + e), n;
62
- },
63
- addWeeks: (t, e) => {
64
- const n = r(t);
65
- return n.setDate(n.getDate() + e * 7), n;
66
- },
67
- addMonths: (t, e) => {
68
- const n = r(t);
69
- return n.setMonth(n.getMonth() + e), n;
70
- },
71
- addYears: (t, e) => {
72
- const n = r(t);
73
- return n.setFullYear(n.getFullYear() + e), n;
74
- },
75
- eachYearOfInterval: (t) => {
76
- const e = r(t.start), n = r(t.end), a = [], s = new c(e.getFullYear(), 0, 1, 12, 0, 0, o);
77
- for (; s.getFullYear() <= n.getFullYear(); )
78
- a.push(new c(s, o)), s.setFullYear(s.getFullYear() + 1, 0, 1);
79
- return a;
80
- },
81
- getWeek: (t, e) => {
82
- const n = u(t);
83
- return w(n, {
84
- weekStartsOn: e?.weekStartsOn ?? l,
85
- firstWeekContainsDate: e?.firstWeekContainsDate ?? g?.options?.firstWeekContainsDate ?? 1
86
- });
87
- },
88
- getISOWeek: (t) => {
89
- const e = u(t);
90
- return k(e);
91
- },
92
- differenceInCalendarDays: (t, e) => {
93
- const n = u(t), a = u(e);
94
- return O(n, a);
95
- },
96
- differenceInCalendarMonths: (t, e) => {
97
- const n = u(t), a = u(e);
98
- return h(n, a);
99
- }
100
- };
1
+ import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "./index127.js";
2
+ function i() {
3
+ const o = {};
4
+ for (const n in t)
5
+ o[t[n]] = `rdp-${t[n]}`;
6
+ for (const n in e)
7
+ o[e[n]] = `rdp-${e[n]}`;
8
+ for (const n in r)
9
+ o[r[n]] = `rdp-${r[n]}`;
10
+ for (const n in s)
11
+ o[s[n]] = `rdp-${s[n]}`;
12
+ return o;
101
13
  }
102
14
  export {
103
- W as createNoonOverrides
15
+ i as getDefaultClassNames
104
16
  };
105
17
  //# sourceMappingURL=index119.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index119.js","sources":["../../../node_modules/react-day-picker/dist/esm/noonDateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { differenceInCalendarDays as differenceInCalendarDaysFn, differenceInCalendarMonths as differenceInCalendarMonthsFn, getISOWeek as getISOWeekFn, getWeek as getWeekFn, } from \"date-fns\";\n/**\n * Creates `dateLib` overrides that keep all calendar math at noon in the target\n * time zone. This avoids second-level offset changes (e.g., historical zones\n * with +03:41:12) from pushing dates backward across midnight.\n */\nexport function createNoonOverrides(timeZone, options = {}) {\n const { weekStartsOn, locale } = options;\n const fallbackWeekStartsOn = (weekStartsOn ??\n locale?.options?.weekStartsOn ??\n 0);\n // Keep all internal math anchored at noon in the target zone to avoid\n // historical second-level offsets from crossing midnight.\n const toNoonTZDate = (date) => {\n const normalizedDate = typeof date === \"number\" || typeof date === \"string\"\n ? new Date(date)\n : date;\n return new TZDate(normalizedDate.getFullYear(), normalizedDate.getMonth(), normalizedDate.getDate(), 12, 0, 0, timeZone);\n };\n // Convert a value into a host `Date` that represents the same calendar day\n // as the target-zone noon. This is useful for helpers (e.g., date-fns week\n // utilities) that expect local `Date` instances rather than `TZDate`s.\n const toCalendarDate = (date) => {\n const zoned = toNoonTZDate(date);\n return new Date(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 0, 0, 0, 0);\n };\n return {\n today: () => {\n return toNoonTZDate(TZDate.tz(timeZone));\n },\n newDate: (year, monthIndex, date) => {\n return new TZDate(year, monthIndex, date, 12, 0, 0, timeZone);\n },\n startOfDay: (date) => {\n return toNoonTZDate(date);\n },\n startOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const diff = (base.getDay() - weekStartsOnValue + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (base.getDay() - 1 + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setDate(1);\n return base;\n },\n startOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(0, 1);\n return base;\n },\n endOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const endDow = (weekStartsOnValue + 6) % 7;\n const diff = (endDow - base.getDay() + 7) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (7 - base.getDay()) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + 1, 0);\n return base;\n },\n endOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(11, 31);\n return base;\n },\n eachMonthOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const result = [];\n const cursor = new TZDate(start.getFullYear(), start.getMonth(), 1, 12, 0, 0, timeZone);\n const endKey = end.getFullYear() * 12 + end.getMonth();\n while (cursor.getFullYear() * 12 + cursor.getMonth() <= endKey) {\n result.push(new TZDate(cursor, timeZone));\n cursor.setMonth(cursor.getMonth() + 1, 1);\n }\n return result;\n },\n // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),\n // mutate the same TZDate, and return it.\n addDays: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount);\n return base;\n },\n addWeeks: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount * 7);\n return base;\n },\n addMonths: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + amount);\n return base;\n },\n addYears: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setFullYear(base.getFullYear() + amount);\n return base;\n },\n eachYearOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const years = [];\n const cursor = new TZDate(start.getFullYear(), 0, 1, 12, 0, 0, timeZone);\n while (cursor.getFullYear() <= end.getFullYear()) {\n years.push(new TZDate(cursor, timeZone));\n cursor.setFullYear(cursor.getFullYear() + 1, 0, 1);\n }\n return years;\n },\n getWeek: (date, options) => {\n const base = toCalendarDate(date);\n return getWeekFn(base, {\n weekStartsOn: options?.weekStartsOn ?? fallbackWeekStartsOn,\n firstWeekContainsDate: options?.firstWeekContainsDate ??\n locale?.options?.firstWeekContainsDate ??\n 1,\n });\n },\n getISOWeek: (date) => {\n const base = toCalendarDate(date);\n return getISOWeekFn(base);\n },\n differenceInCalendarDays: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarDaysFn(left, right);\n },\n differenceInCalendarMonths: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarMonthsFn(left, right);\n },\n };\n}\n"],"names":["createNoonOverrides","timeZone","options","weekStartsOn","locale","fallbackWeekStartsOn","toNoonTZDate","date","normalizedDate","TZDate","toCalendarDate","zoned","year","monthIndex","base","weekStartsOnValue","diff","interval","start","end","result","cursor","endKey","amount","years","getWeekFn","getISOWeekFn","dateLeft","dateRight","left","right","differenceInCalendarDaysFn","differenceInCalendarMonthsFn"],"mappings":";;;;;;AAOO,SAASA,EAAoBC,GAAUC,IAAU,IAAI;AACxD,QAAM,EAAE,cAAAC,GAAc,QAAAC,EAAM,IAAKF,GAC3BG,IAAwBF,KAC1BC,GAAQ,SAAS,gBACjB,GAGEE,IAAe,CAACC,MAAS;AAC3B,UAAMC,IAAiB,OAAOD,KAAS,YAAY,OAAOA,KAAS,WAC7D,IAAI,KAAKA,CAAI,IACbA;AACN,WAAO,IAAIE,EAAOD,EAAe,YAAW,GAAIA,EAAe,SAAQ,GAAIA,EAAe,QAAO,GAAI,IAAI,GAAG,GAAGP,CAAQ;AAAA,EAC3H,GAIMS,IAAiB,CAACH,MAAS;AAC7B,UAAMI,IAAQL,EAAaC,CAAI;AAC/B,WAAO,IAAI,KAAKI,EAAM,YAAW,GAAIA,EAAM,SAAQ,GAAIA,EAAM,QAAO,GAAI,GAAG,GAAG,GAAG,CAAC;AAAA,EACtF;AACA,SAAO;AAAA,IACH,OAAO,MACIL,EAAaG,EAAO,GAAGR,CAAQ,CAAC;AAAA,IAE3C,SAAS,CAACW,GAAMC,GAAYN,MACjB,IAAIE,EAAOG,GAAMC,GAAYN,GAAM,IAAI,GAAG,GAAGN,CAAQ;AAAA,IAEhE,YAAY,CAACM,MACFD,EAAaC,CAAI;AAAA,IAE5B,aAAa,CAACA,GAAML,MAAY;AAC5B,YAAMY,IAAOR,EAAaC,CAAI,GACxBQ,IAAqBb,GAAS,gBAChCG,GACEW,KAAQF,EAAK,OAAM,IAAKC,IAAoB,KAAK;AACvD,aAAAD,EAAK,QAAQA,EAAK,QAAO,IAAKE,CA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AC,GACvCoB,EAAO,YAAYA,EAAO,YAAW,IAAK,GAAG,GAAG,CAAC;AAErD,aAAOG;AAAA,IACX;AAAA,IACA,SAAS,CAACjB,GAAML,MAAY;AACxB,YAAMY,IAAOJ,EAAeH,CAAI;AAChC,aAAOkB,EAAUX,GAAM;AAAA,QACnB,cAAcZ,GAAS,gBAAgBG;AAAA,QACvC,uBAAuBH,GAAS,yBAC5BE,GAAQ,SAAS,yBACjB;AAAA,MACpB,CAAa;AAAA,IACL;AAAA,IACA,YAAY,CAACG,MAAS;AAClB,YAAMO,IAAOJ,EAAeH,CAAI;AAChC,aAAOmB,EAAaZ,CAAI;AAAA,IAC5B;AAAA,IACA,0BAA0B,CAACa,GAAUC,MAAc;AAC/C,YAAMC,IAAOnB,EAAeiB,CAAQ,GAC9BG,IAAQpB,EAAekB,CAAS;AACtC,aAAOG,EAA2BF,GAAMC,CAAK;AAAA,IACjD;AAAA,IACA,4BAA4B,CAACH,GAAUC,MAAc;AACjD,YAAMC,IAAOnB,EAAeiB,CAAQ,GAC9BG,IAAQpB,EAAekB,CAAS;AACtC,aAAOI,EAA6BH,GAAMC,CAAK;AAAA,IACnD;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index119.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { Animation, DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";AAUO,SAASA,IAAuB;AACnC,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAAOC;AACd,IAAAF,EAAWE,EAAGD,CAAG,CAAC,IACd,OAAOC,EAAGD,CAAG,CAAC;AAEtB,aAAWA,KAAOE;AACd,IAAAH,EAAWG,EAAQF,CAAG,CAAC,IACnB,OAAOE,EAAQF,CAAG,CAAC;AAE3B,aAAWA,KAAOG;AACd,IAAAJ,EAAWI,EAAeH,CAAG,CAAC,IAC1B,OAAOG,EAAeH,CAAG,CAAC;AAElC,aAAWA,KAAOI;AACd,IAAAL,EAAWK,EAAUJ,CAAG,CAAC,IACrB,OAAOI,EAAUJ,CAAG,CAAC;AAE7B,SAAOD;AACX;","x_google_ignoreList":[0]}