@rpcbase/ui 0.182.0 → 0.184.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 (652) hide show
  1. package/dist/helpers/index.d.ts +1 -0
  2. package/dist/helpers/index.d.ts.map +1 -1
  3. package/dist/helpers/useScrollPagination.d.ts +23 -0
  4. package/dist/helpers/useScrollPagination.d.ts.map +1 -0
  5. package/dist/helpers/useScrollPagination.test.d.ts +2 -0
  6. package/dist/helpers/useScrollPagination.test.d.ts.map +1 -0
  7. package/dist/index.js +62 -60
  8. package/dist/index.js.map +1 -1
  9. package/dist/index10.js +24 -69
  10. package/dist/index10.js.map +1 -1
  11. package/dist/index100.js +4 -3
  12. package/dist/index100.js.map +1 -1
  13. package/dist/index101.js +5 -4
  14. package/dist/index101.js.map +1 -1
  15. package/dist/index102.js +4 -6
  16. package/dist/index102.js.map +1 -1
  17. package/dist/index103.js +4 -145
  18. package/dist/index103.js.map +1 -1
  19. package/dist/index104.js +6 -39
  20. package/dist/index104.js.map +1 -1
  21. package/dist/index105.js +24 -4
  22. package/dist/index105.js.map +1 -1
  23. package/dist/index106.js +6 -7
  24. package/dist/index106.js.map +1 -1
  25. package/dist/index107.js +4 -13
  26. package/dist/index107.js.map +1 -1
  27. package/dist/index108.js +6 -13
  28. package/dist/index108.js.map +1 -1
  29. package/dist/index109.js +5 -7
  30. package/dist/index109.js.map +1 -1
  31. package/dist/index11.js +38 -552
  32. package/dist/index11.js.map +1 -1
  33. package/dist/index110.js +4 -31
  34. package/dist/index110.js.map +1 -1
  35. package/dist/index111.js +5 -10
  36. package/dist/index111.js.map +1 -1
  37. package/dist/index112.js +4 -10
  38. package/dist/index112.js.map +1 -1
  39. package/dist/index113.js +8 -8
  40. package/dist/index113.js.map +1 -1
  41. package/dist/index114.js +5 -13
  42. package/dist/index114.js.map +1 -1
  43. package/dist/index115.js +4 -101
  44. package/dist/index115.js.map +1 -1
  45. package/dist/index116.js +5 -20
  46. package/dist/index116.js.map +1 -1
  47. package/dist/index117.js +6 -53
  48. package/dist/index117.js.map +1 -1
  49. package/dist/index118.js +145 -72
  50. package/dist/index118.js.map +1 -1
  51. package/dist/index119.js +39 -9
  52. package/dist/index119.js.map +1 -1
  53. package/dist/index12.js +571 -115
  54. package/dist/index12.js.map +1 -1
  55. package/dist/index120.js +4 -20
  56. package/dist/index120.js.map +1 -1
  57. package/dist/index121.js +7 -16
  58. package/dist/index121.js.map +1 -1
  59. package/dist/index122.js +13 -23
  60. package/dist/index122.js.map +1 -1
  61. package/dist/index123.js +13 -6
  62. package/dist/index123.js.map +1 -1
  63. package/dist/index124.js +7 -5
  64. package/dist/index124.js.map +1 -1
  65. package/dist/index125.js +31 -23
  66. package/dist/index125.js.map +1 -1
  67. package/dist/index126.js +11 -35
  68. package/dist/index126.js.map +1 -1
  69. package/dist/index127.js +11 -16
  70. package/dist/index127.js.map +1 -1
  71. package/dist/index128.js +8 -6
  72. package/dist/index128.js.map +1 -1
  73. package/dist/index129.js +13 -4
  74. package/dist/index129.js.map +1 -1
  75. package/dist/index13.js +137 -76
  76. package/dist/index13.js.map +1 -1
  77. package/dist/index130.js +101 -4
  78. package/dist/index130.js.map +1 -1
  79. package/dist/index131.js +20 -5
  80. package/dist/index131.js.map +1 -1
  81. package/dist/index132.js +53 -4
  82. package/dist/index132.js.map +1 -1
  83. package/dist/index133.js +72 -3
  84. package/dist/index133.js.map +1 -1
  85. package/dist/index134.js +9 -6
  86. package/dist/index134.js.map +1 -1
  87. package/dist/index135.js +21 -24
  88. package/dist/index135.js.map +1 -1
  89. package/dist/index136.js +16 -7
  90. package/dist/index136.js.map +1 -1
  91. package/dist/index137.js +23 -6
  92. package/dist/index137.js.map +1 -1
  93. package/dist/index138.js +6 -5
  94. package/dist/index138.js.map +1 -1
  95. package/dist/index139.js +5 -3
  96. package/dist/index139.js.map +1 -1
  97. package/dist/index14.js +74 -730
  98. package/dist/index14.js.map +1 -1
  99. package/dist/index140.js +23 -3
  100. package/dist/index140.js.map +1 -1
  101. package/dist/index141.js +35 -5
  102. package/dist/index141.js.map +1 -1
  103. package/dist/index142.js +16 -4
  104. package/dist/index142.js.map +1 -1
  105. package/dist/index143.js +6 -4
  106. package/dist/index143.js.map +1 -1
  107. package/dist/index144.js +4 -3
  108. package/dist/index144.js.map +1 -1
  109. package/dist/index145.js +4 -3
  110. package/dist/index145.js.map +1 -1
  111. package/dist/index146.js +4 -3
  112. package/dist/index146.js.map +1 -1
  113. package/dist/index147.js +4 -46
  114. package/dist/index147.js.map +1 -1
  115. package/dist/index148.js +3 -46
  116. package/dist/index148.js.map +1 -1
  117. package/dist/index149.js +6 -205
  118. package/dist/index149.js.map +1 -1
  119. package/dist/index15.js +870 -22
  120. package/dist/index15.js.map +1 -1
  121. package/dist/index150.js +24 -22
  122. package/dist/index150.js.map +1 -1
  123. package/dist/index151.js +7 -24
  124. package/dist/index151.js.map +1 -1
  125. package/dist/index152.js +6 -399
  126. package/dist/index152.js.map +1 -1
  127. package/dist/index153.js +5 -5
  128. package/dist/index153.js.map +1 -1
  129. package/dist/index154.js +3 -68
  130. package/dist/index154.js.map +1 -1
  131. package/dist/index155.js +4 -2
  132. package/dist/index155.js.map +1 -1
  133. package/dist/index156.js +4 -363
  134. package/dist/index156.js.map +1 -1
  135. package/dist/index157.js +3 -261
  136. package/dist/index157.js.map +1 -1
  137. package/dist/index158.js +4 -60
  138. package/dist/index158.js.map +1 -1
  139. package/dist/index159.js +3 -46
  140. package/dist/index159.js.map +1 -1
  141. package/dist/index16.js +20 -17
  142. package/dist/index16.js.map +1 -1
  143. package/dist/index160.js +3 -169
  144. package/dist/index160.js.map +1 -1
  145. package/dist/index161.js +3 -109
  146. package/dist/index161.js.map +1 -1
  147. package/dist/index162.js +5 -24
  148. package/dist/index162.js.map +1 -1
  149. package/dist/index163.js +69 -8
  150. package/dist/index163.js.map +1 -1
  151. package/dist/index164.js +2 -5
  152. package/dist/index164.js.map +1 -1
  153. package/dist/index165.js +363 -5
  154. package/dist/index165.js.map +1 -1
  155. package/dist/index166.js +261 -4
  156. package/dist/index166.js.map +1 -1
  157. package/dist/index167.js +52 -458
  158. package/dist/index167.js.map +1 -1
  159. package/dist/index168.js +42 -181
  160. package/dist/index168.js.map +1 -1
  161. package/dist/index169.js +156 -94
  162. package/dist/index169.js.map +1 -1
  163. package/dist/index17.js +18 -387
  164. package/dist/index17.js.map +1 -1
  165. package/dist/index170.js +102 -255
  166. package/dist/index170.js.map +1 -1
  167. package/dist/index171.js +24 -9
  168. package/dist/index171.js.map +1 -1
  169. package/dist/index172.js +8 -43
  170. package/dist/index172.js.map +1 -1
  171. package/dist/index173.js +4 -4
  172. package/dist/index173.js.map +1 -1
  173. package/dist/index174.js +5 -605
  174. package/dist/index174.js.map +1 -1
  175. package/dist/index175.js +4 -58
  176. package/dist/index175.js.map +1 -1
  177. package/dist/index176.js +466 -8
  178. package/dist/index176.js.map +1 -1
  179. package/dist/index177.js +178 -59
  180. package/dist/index177.js.map +1 -1
  181. package/dist/index178.js +105 -17
  182. package/dist/index178.js.map +1 -1
  183. package/dist/index179.js +260 -14
  184. package/dist/index179.js.map +1 -1
  185. package/dist/index18.js +431 -693
  186. package/dist/index18.js.map +1 -1
  187. package/dist/index180.js +9 -5
  188. package/dist/index180.js.map +1 -1
  189. package/dist/index181.js +41 -4
  190. package/dist/index181.js.map +1 -1
  191. package/dist/index182.js +4 -6
  192. package/dist/index182.js.map +1 -1
  193. package/dist/index183.js +24 -4
  194. package/dist/index183.js.map +1 -1
  195. package/dist/index184.js +29 -8
  196. package/dist/index184.js.map +1 -1
  197. package/dist/index185.js +5 -18
  198. package/dist/index185.js.map +1 -1
  199. package/dist/index186.js +67 -5
  200. package/dist/index186.js.map +1 -1
  201. package/dist/index187.js +180 -5
  202. package/dist/index187.js.map +1 -1
  203. package/dist/index188.js +46 -13
  204. package/dist/index188.js.map +1 -1
  205. package/dist/index189.js +58 -10
  206. package/dist/index189.js.map +1 -1
  207. package/dist/index19.js +661 -634
  208. package/dist/index19.js.map +1 -1
  209. package/dist/index190.js +8 -14
  210. package/dist/index190.js.map +1 -1
  211. package/dist/index191.js +66 -14
  212. package/dist/index191.js.map +1 -1
  213. package/dist/index192.js +19 -5
  214. package/dist/index192.js.map +1 -1
  215. package/dist/index193.js +16 -6
  216. package/dist/index193.js.map +1 -1
  217. package/dist/index194.js +5 -7
  218. package/dist/index194.js.map +1 -1
  219. package/dist/index195.js +5 -6
  220. package/dist/index195.js.map +1 -1
  221. package/dist/index196.js +6 -9
  222. package/dist/index196.js.map +1 -1
  223. package/dist/index197.js +4 -5
  224. package/dist/index197.js.map +1 -1
  225. package/dist/index198.js +7 -5
  226. package/dist/index198.js.map +1 -1
  227. package/dist/index199.js +17 -9
  228. package/dist/index199.js.map +1 -1
  229. package/dist/index2.js +2 -2
  230. package/dist/index20.js +455 -198
  231. package/dist/index20.js.map +1 -1
  232. package/dist/index200.js +5 -5
  233. package/dist/index200.js.map +1 -1
  234. package/dist/index201.js +5 -5
  235. package/dist/index201.js.map +1 -1
  236. package/dist/index202.js +13 -4
  237. package/dist/index202.js.map +1 -1
  238. package/dist/index203.js +9 -10
  239. package/dist/index203.js.map +1 -1
  240. package/dist/index204.js +14 -10
  241. package/dist/index204.js.map +1 -1
  242. package/dist/index205.js +14 -10
  243. package/dist/index205.js.map +1 -1
  244. package/dist/index206.js +5 -11
  245. package/dist/index206.js.map +1 -1
  246. package/dist/index207.js +6 -11
  247. package/dist/index207.js.map +1 -1
  248. package/dist/index208.js +6 -9
  249. package/dist/index208.js.map +1 -1
  250. package/dist/index209.js +6 -7
  251. package/dist/index209.js.map +1 -1
  252. package/dist/index21.js +263 -5
  253. package/dist/index21.js.map +1 -1
  254. package/dist/index210.js +9 -6
  255. package/dist/index210.js.map +1 -1
  256. package/dist/index211.js +5 -5
  257. package/dist/index211.js.map +1 -1
  258. package/dist/index212.js +5 -6
  259. package/dist/index212.js.map +1 -1
  260. package/dist/index213.js +9 -7
  261. package/dist/index213.js.map +1 -1
  262. package/dist/index214.js +5 -6
  263. package/dist/index214.js.map +1 -1
  264. package/dist/index215.js +5 -55
  265. package/dist/index215.js.map +1 -1
  266. package/dist/index216.js +4 -16
  267. package/dist/index216.js.map +1 -1
  268. package/dist/index217.js +11 -7
  269. package/dist/index217.js.map +1 -1
  270. package/dist/index218.js +10 -10
  271. package/dist/index218.js.map +1 -1
  272. package/dist/index219.js +10 -10
  273. package/dist/index219.js.map +1 -1
  274. package/dist/index22.js +5 -35
  275. package/dist/index22.js.map +1 -1
  276. package/dist/index220.js +11 -21
  277. package/dist/index220.js.map +1 -1
  278. package/dist/index221.js +11 -10
  279. package/dist/index221.js.map +1 -1
  280. package/dist/index222.js +10 -9
  281. package/dist/index222.js.map +1 -1
  282. package/dist/index223.js +7 -9
  283. package/dist/index223.js.map +1 -1
  284. package/dist/index224.js +6 -4
  285. package/dist/index224.js.map +1 -1
  286. package/dist/index225.js +5 -5
  287. package/dist/index225.js.map +1 -1
  288. package/dist/index226.js +6 -16
  289. package/dist/index226.js.map +1 -1
  290. package/dist/index227.js +7 -9
  291. package/dist/index227.js.map +1 -1
  292. package/dist/index228.js +6 -18
  293. package/dist/index228.js.map +1 -1
  294. package/dist/index229.js +54 -14
  295. package/dist/index229.js.map +1 -1
  296. package/dist/index23.js +27 -268
  297. package/dist/index23.js.map +1 -1
  298. package/dist/index230.js +16 -12
  299. package/dist/index230.js.map +1 -1
  300. package/dist/index231.js +7 -29
  301. package/dist/index231.js.map +1 -1
  302. package/dist/index232.js +9 -11
  303. package/dist/index232.js.map +1 -1
  304. package/dist/index233.js +9 -24
  305. package/dist/index233.js.map +1 -1
  306. package/dist/index234.js +21 -5
  307. package/dist/index234.js.map +1 -1
  308. package/dist/index235.js +10 -24
  309. package/dist/index235.js.map +1 -1
  310. package/dist/index236.js +10 -29
  311. package/dist/index236.js.map +1 -1
  312. package/dist/index237.js +10 -5
  313. package/dist/index237.js.map +1 -1
  314. package/dist/index238.js +4 -13
  315. package/dist/index238.js.map +1 -1
  316. package/dist/index239.js +5 -154
  317. package/dist/index239.js.map +1 -1
  318. package/dist/index24.js +251 -166
  319. package/dist/index24.js.map +1 -1
  320. package/dist/index240.js +15 -29
  321. package/dist/index240.js.map +1 -1
  322. package/dist/index241.js +9 -9
  323. package/dist/index241.js.map +1 -1
  324. package/dist/index242.js +18 -47
  325. package/dist/index242.js.map +1 -1
  326. package/dist/index243.js +15 -11
  327. package/dist/index243.js.map +1 -1
  328. package/dist/index244.js +12 -44
  329. package/dist/index244.js.map +1 -1
  330. package/dist/index245.js +28 -94
  331. package/dist/index245.js.map +1 -1
  332. package/dist/index246.js +11 -85
  333. package/dist/index246.js.map +1 -1
  334. package/dist/index247.js +23 -103
  335. package/dist/index247.js.map +1 -1
  336. package/dist/index248.js +5 -52
  337. package/dist/index248.js.map +1 -1
  338. package/dist/index249.js +13 -11
  339. package/dist/index249.js.map +1 -1
  340. package/dist/index25.js +176 -14
  341. package/dist/index25.js.map +1 -1
  342. package/dist/index250.js +149 -32
  343. package/dist/index250.js.map +1 -1
  344. package/dist/index251.js +30 -8
  345. package/dist/index251.js.map +1 -1
  346. package/dist/index252.js +9 -116
  347. package/dist/index252.js.map +1 -1
  348. package/dist/index253.js +46 -16
  349. package/dist/index253.js.map +1 -1
  350. package/dist/index254.js +11 -15
  351. package/dist/index254.js.map +1 -1
  352. package/dist/index255.js +44 -3
  353. package/dist/index255.js.map +1 -1
  354. package/dist/index256.js +91 -32
  355. package/dist/index256.js.map +1 -1
  356. package/dist/index257.js +85 -19
  357. package/dist/index257.js.map +1 -1
  358. package/dist/index258.js +105 -9
  359. package/dist/index258.js.map +1 -1
  360. package/dist/index259.js +52 -8
  361. package/dist/index259.js.map +1 -1
  362. package/dist/index26.js +15 -2763
  363. package/dist/index26.js.map +1 -1
  364. package/dist/index260.js +10 -18
  365. package/dist/index260.js.map +1 -1
  366. package/dist/index261.js +36 -27
  367. package/dist/index261.js.map +1 -1
  368. package/dist/index262.js +8 -16
  369. package/dist/index262.js.map +1 -1
  370. package/dist/index263.js +3 -67
  371. package/dist/index263.js.map +1 -1
  372. package/dist/index264.js +9 -180
  373. package/dist/index264.js.map +1 -1
  374. package/dist/index265.js +110 -40
  375. package/dist/index265.js.map +1 -1
  376. package/dist/index266.js +17 -4
  377. package/dist/index266.js.map +1 -1
  378. package/dist/index267.js +15 -18
  379. package/dist/index267.js.map +1 -1
  380. package/dist/index268.js +36 -12
  381. package/dist/index268.js.map +1 -1
  382. package/dist/index269.js +21 -5
  383. package/dist/index269.js.map +1 -1
  384. package/dist/index27.js +2761 -35
  385. package/dist/index27.js.map +1 -1
  386. package/dist/index270.js +9 -3
  387. package/dist/index270.js.map +1 -1
  388. package/dist/index271.js +19 -23
  389. package/dist/index271.js.map +1 -1
  390. package/dist/index272.js +26 -110
  391. package/dist/index272.js.map +1 -1
  392. package/dist/index273.js +16 -15
  393. package/dist/index273.js.map +1 -1
  394. package/dist/index274.js +5 -525
  395. package/dist/index274.js.map +1 -1
  396. package/dist/index275.js +3 -128
  397. package/dist/index275.js.map +1 -1
  398. package/dist/index276.js +22 -132
  399. package/dist/index276.js.map +1 -1
  400. package/dist/index277.js +111 -19
  401. package/dist/index277.js.map +1 -1
  402. package/dist/index278.js +15 -5
  403. package/dist/index278.js.map +1 -1
  404. package/dist/index279.js +524 -5
  405. package/dist/index279.js.map +1 -1
  406. package/dist/index28.js +2 -2
  407. package/dist/index280.js +128 -4
  408. package/dist/index280.js.map +1 -1
  409. package/dist/index281.js +132 -14
  410. package/dist/index281.js.map +1 -1
  411. package/dist/index282.js +4 -8
  412. package/dist/index282.js.map +1 -1
  413. package/dist/index283.js +19 -6
  414. package/dist/index283.js.map +1 -1
  415. package/dist/index284.js +12 -4
  416. package/dist/index284.js.map +1 -1
  417. package/dist/index285.js +19 -544
  418. package/dist/index285.js.map +1 -1
  419. package/dist/index286.js +65 -43
  420. package/dist/index286.js.map +1 -1
  421. package/dist/index287.js +9 -18
  422. package/dist/index287.js.map +1 -1
  423. package/dist/index288.js +14 -7
  424. package/dist/index288.js.map +1 -1
  425. package/dist/index289.js +66 -9
  426. package/dist/index289.js.map +1 -1
  427. package/dist/index29.js +33 -121
  428. package/dist/index29.js.map +1 -1
  429. package/dist/index290.js +64 -7
  430. package/dist/index290.js.map +1 -1
  431. package/dist/index291.js +5 -8
  432. package/dist/index291.js.map +1 -1
  433. package/dist/index292.js +5 -12
  434. package/dist/index292.js.map +1 -1
  435. package/dist/index293.js +4 -10
  436. package/dist/index293.js.map +1 -1
  437. package/dist/index294.js +15 -13
  438. package/dist/index294.js.map +1 -1
  439. package/dist/index295.js +8 -64
  440. package/dist/index295.js.map +1 -1
  441. package/dist/index296.js +6 -69
  442. package/dist/index296.js.map +1 -1
  443. package/dist/index297.js +5 -9
  444. package/dist/index297.js.map +1 -1
  445. package/dist/index298.js +545 -13
  446. package/dist/index298.js.map +1 -1
  447. package/dist/index299.js +45 -64
  448. package/dist/index299.js.map +1 -1
  449. package/dist/index3.js.map +1 -1
  450. package/dist/index30.js +3 -232
  451. package/dist/index30.js.map +1 -1
  452. package/dist/index300.js +17 -4
  453. package/dist/index300.js.map +1 -1
  454. package/dist/index301.js +7 -56
  455. package/dist/index301.js.map +1 -1
  456. package/dist/index302.js +9 -68
  457. package/dist/index302.js.map +1 -1
  458. package/dist/index303.js +8 -31
  459. package/dist/index303.js.map +1 -1
  460. package/dist/index304.js +9 -9
  461. package/dist/index304.js.map +1 -1
  462. package/dist/index305.js +13 -153
  463. package/dist/index305.js.map +1 -1
  464. package/dist/index306.js +10 -108
  465. package/dist/index306.js.map +1 -1
  466. package/dist/index307.js +13 -3
  467. package/dist/index307.js.map +1 -1
  468. package/dist/index308.js +3 -22
  469. package/dist/index308.js.map +1 -1
  470. package/dist/index309.js +22 -15
  471. package/dist/index309.js.map +1 -1
  472. package/dist/index31.js +123 -22
  473. package/dist/index31.js.map +1 -1
  474. package/dist/index310.js +4 -28
  475. package/dist/index310.js.map +1 -1
  476. package/dist/index311.js +56 -13
  477. package/dist/index311.js.map +1 -1
  478. package/dist/index312.js +68 -7
  479. package/dist/index312.js.map +1 -1
  480. package/dist/index313.js +30 -22
  481. package/dist/index313.js.map +1 -1
  482. package/dist/index314.js +9 -13
  483. package/dist/index314.js.map +1 -1
  484. package/dist/index315.js +151 -26
  485. package/dist/index315.js.map +1 -1
  486. package/dist/index316.js +107 -4
  487. package/dist/index316.js.map +1 -1
  488. package/dist/index317.js +26 -0
  489. package/dist/index317.js.map +1 -0
  490. package/dist/index318.js +16 -0
  491. package/dist/index318.js.map +1 -0
  492. package/dist/index319.js +31 -0
  493. package/dist/index319.js.map +1 -0
  494. package/dist/index32.js +230 -49
  495. package/dist/index32.js.map +1 -1
  496. package/dist/index320.js +8 -0
  497. package/dist/index320.js.map +1 -0
  498. package/dist/index321.js +19 -0
  499. package/dist/index321.js.map +1 -0
  500. package/dist/index322.js +32 -0
  501. package/dist/index322.js.map +1 -0
  502. package/dist/index323.js +16 -0
  503. package/dist/index323.js.map +1 -0
  504. package/dist/index324.js +10 -0
  505. package/dist/index324.js.map +1 -0
  506. package/dist/index33.js +20 -2637
  507. package/dist/index33.js.map +1 -1
  508. package/dist/index34.js +47 -390
  509. package/dist/index34.js.map +1 -1
  510. package/dist/index35.js +2604 -196
  511. package/dist/index35.js.map +1 -1
  512. package/dist/index36.js +390 -18
  513. package/dist/index36.js.map +1 -1
  514. package/dist/index37.js +222 -131
  515. package/dist/index37.js.map +1 -1
  516. package/dist/index38.js +18 -183
  517. package/dist/index38.js.map +1 -1
  518. package/dist/index39.js +118 -65
  519. package/dist/index39.js.map +1 -1
  520. package/dist/index4.js +17 -15
  521. package/dist/index4.js.map +1 -1
  522. package/dist/index40.js +216 -93
  523. package/dist/index40.js.map +1 -1
  524. package/dist/index41.js +90 -5
  525. package/dist/index41.js.map +1 -1
  526. package/dist/index42.js +115 -840
  527. package/dist/index42.js.map +1 -1
  528. package/dist/index43.js +6 -66
  529. package/dist/index43.js.map +1 -1
  530. package/dist/index44.js +843 -7
  531. package/dist/index44.js.map +1 -1
  532. package/dist/index45.js +57 -2
  533. package/dist/index45.js.map +1 -1
  534. package/dist/index46.js +7 -23
  535. package/dist/index46.js.map +1 -1
  536. package/dist/index47.js +2 -234
  537. package/dist/index47.js.map +1 -1
  538. package/dist/index48.js +11 -6
  539. package/dist/index48.js.map +1 -1
  540. package/dist/index49.js +18 -33
  541. package/dist/index49.js.map +1 -1
  542. package/dist/index5.js +34 -34
  543. package/dist/index5.js.map +1 -1
  544. package/dist/index50.js +7 -26
  545. package/dist/index50.js.map +1 -1
  546. package/dist/index51.js +2 -8
  547. package/dist/index51.js.map +1 -1
  548. package/dist/index52.js +22 -10
  549. package/dist/index52.js.map +1 -1
  550. package/dist/index53.js +233 -3
  551. package/dist/index53.js.map +1 -1
  552. package/dist/index54.js +201 -44
  553. package/dist/index54.js.map +1 -1
  554. package/dist/index55.js +3 -50
  555. package/dist/index55.js.map +1 -1
  556. package/dist/index56.js +6 -7
  557. package/dist/index56.js.map +1 -1
  558. package/dist/index57.js +47 -14
  559. package/dist/index57.js.map +1 -1
  560. package/dist/index58.js +22 -129
  561. package/dist/index58.js.map +1 -1
  562. package/dist/index59.js +50 -10
  563. package/dist/index59.js.map +1 -1
  564. package/dist/index6.js +172 -25
  565. package/dist/index6.js.map +1 -1
  566. package/dist/index60.js +7 -216
  567. package/dist/index60.js.map +1 -1
  568. package/dist/index61.js +15 -13
  569. package/dist/index61.js.map +1 -1
  570. package/dist/index62.js +128 -41
  571. package/dist/index62.js.map +1 -1
  572. package/dist/index63.js +9 -48
  573. package/dist/index63.js.map +1 -1
  574. package/dist/index64.js +216 -3
  575. package/dist/index64.js.map +1 -1
  576. package/dist/index65.js +13 -6
  577. package/dist/index65.js.map +1 -1
  578. package/dist/index66.js +34 -28
  579. package/dist/index66.js.map +1 -1
  580. package/dist/index67.js +46 -49
  581. package/dist/index67.js.map +1 -1
  582. package/dist/index68.js +8 -9
  583. package/dist/index68.js.map +1 -1
  584. package/dist/index69.js +50 -2
  585. package/dist/index69.js.map +1 -1
  586. package/dist/index7.js +31 -29
  587. package/dist/index7.js.map +1 -1
  588. package/dist/index70.js +4 -2
  589. package/dist/index70.js.map +1 -1
  590. package/dist/index71.js +6 -205
  591. package/dist/index71.js.map +1 -1
  592. package/dist/index72.js +28 -54
  593. package/dist/index72.js.map +1 -1
  594. package/dist/index73.js +50 -6
  595. package/dist/index73.js.map +1 -1
  596. package/dist/index74.js +9 -8
  597. package/dist/index74.js.map +1 -1
  598. package/dist/index75.js +2 -6
  599. package/dist/index75.js.map +1 -1
  600. package/dist/index76.js +2 -52
  601. package/dist/index76.js.map +1 -1
  602. package/dist/index77.js +11 -4
  603. package/dist/index77.js.map +1 -1
  604. package/dist/index78.js +5 -4
  605. package/dist/index78.js.map +1 -1
  606. package/dist/index79.js +7 -15
  607. package/dist/index79.js.map +1 -1
  608. package/dist/index8.js +25 -222
  609. package/dist/index8.js.map +1 -1
  610. package/dist/index80.js +5 -5
  611. package/dist/index80.js.map +1 -1
  612. package/dist/index81.js +2 -8
  613. package/dist/index81.js.map +1 -1
  614. package/dist/index82.js +2 -17
  615. package/dist/index82.js.map +1 -1
  616. package/dist/index83.js +53 -4
  617. package/dist/index83.js.map +1 -1
  618. package/dist/index84.js +46 -4
  619. package/dist/index84.js.map +1 -1
  620. package/dist/index85.js +205 -5
  621. package/dist/index85.js.map +1 -1
  622. package/dist/index86.js +22 -6
  623. package/dist/index86.js.map +1 -1
  624. package/dist/index87.js +24 -4
  625. package/dist/index87.js.map +1 -1
  626. package/dist/index88.js +399 -4
  627. package/dist/index88.js.map +1 -1
  628. package/dist/index89.js +46 -6
  629. package/dist/index89.js.map +1 -1
  630. package/dist/index9.js +177 -23
  631. package/dist/index9.js.map +1 -1
  632. package/dist/index90.js +604 -23
  633. package/dist/index90.js.map +1 -1
  634. package/dist/index91.js +52 -7
  635. package/dist/index91.js.map +1 -1
  636. package/dist/index92.js +3 -3
  637. package/dist/index92.js.map +1 -1
  638. package/dist/index93.js +4 -6
  639. package/dist/index93.js.map +1 -1
  640. package/dist/index94.js +15 -5
  641. package/dist/index94.js.map +1 -1
  642. package/dist/index95.js +5 -4
  643. package/dist/index95.js.map +1 -1
  644. package/dist/index96.js +7 -5
  645. package/dist/index96.js.map +1 -1
  646. package/dist/index97.js +16 -4
  647. package/dist/index97.js.map +1 -1
  648. package/dist/index98.js +4 -8
  649. package/dist/index98.js.map +1 -1
  650. package/dist/index99.js +4 -5
  651. package/dist/index99.js.map +1 -1
  652. package/package.json +1 -1
package/dist/index127.js CHANGED
@@ -1,19 +1,14 @@
1
- import { formatCaption as t, formatMonthCaption as e } from "./index128.js";
2
- import { formatDay as a } from "./index129.js";
3
- import { formatMonthDropdown as p } from "./index130.js";
4
- import { formatWeekdayName as x } from "./index131.js";
5
- import { formatWeekNumber as i } from "./index132.js";
6
- import { formatWeekNumberHeader as C } from "./index133.js";
7
- import { formatYearCaption as N, formatYearDropdown as W } from "./index134.js";
1
+ import { UI as f } from "./index131.js";
2
+ function n(r, o = {}, i = {}) {
3
+ let e = { ...o?.[f.Day] };
4
+ return Object.entries(r).filter(([, t]) => t === !0).forEach(([t]) => {
5
+ e = {
6
+ ...e,
7
+ ...i?.[t]
8
+ };
9
+ }), e;
10
+ }
8
11
  export {
9
- t as formatCaption,
10
- a as formatDay,
11
- e as formatMonthCaption,
12
- p as formatMonthDropdown,
13
- i as formatWeekNumber,
14
- C as formatWeekNumberHeader,
15
- x as formatWeekdayName,
16
- N as formatYearCaption,
17
- W as formatYearDropdown
12
+ n as getStyleForModifiers
18
13
  };
19
14
  //# sourceMappingURL=index127.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index127.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"index127.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier],\n };\n });\n return style;\n}\n"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","active","modifier"],"mappings":";AAYO,SAASA,EAAqBC,GAAcC,IAAS,CAAA,GAAIC,IAAkB,CAAA,GAAI;AAClF,MAAIC,IAAQ,EAAE,GAAGF,IAASG,EAAG,GAAG,EAAC;AACjC,gBAAO,QAAQJ,CAAY,EACtB,OAAO,CAAC,CAAA,EAAGK,CAAM,MAAMA,MAAW,EAAI,EACtC,QAAQ,CAAC,CAACC,CAAQ,MAAM;AACzB,IAAAH,IAAQ;AAAA,MACJ,GAAGA;AAAA,MACH,GAAGD,IAAkBI,CAAQ;AAAA,IACzC;AAAA,EACI,CAAC,GACMH;AACX;","x_google_ignoreList":[0]}
package/dist/index128.js CHANGED
@@ -1,10 +1,12 @@
1
- import { DateLib as r } from "./index103.js";
2
- function a(t, o, n) {
3
- return (n ?? new r(o)).formatMonthYear(t);
1
+ function y(t, o, a, n) {
2
+ const s = n ?? t.today(), c = a ? t.startOfBroadcastWeek(s, t) : o ? t.startOfISOWeek(s) : t.startOfWeek(s), r = [];
3
+ for (let e = 0; e < 7; e++) {
4
+ const f = t.addDays(c, e);
5
+ r.push(f);
6
+ }
7
+ return r;
4
8
  }
5
- const f = a;
6
9
  export {
7
- a as formatCaption,
8
- f as formatMonthCaption
10
+ y as getWeekdays
9
11
  };
10
12
  //# sourceMappingURL=index128.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index128.js","sources":["../../../node_modules/react-day-picker/dist/esm/formatters/formatCaption.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the caption of the month.\n *\n * @defaultValue Locale-specific month/year order (e.g., \"November 2022\").\n * @param month The date representing the month.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted caption as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatCaption(month, options, dateLib) {\n const lib = dateLib ?? new DateLib(options);\n return lib.formatMonthYear(month);\n}\n/**\n * @private\n * @deprecated Use {@link formatCaption} instead.\n * @group Formatters\n */\nexport const formatMonthCaption = formatCaption;\n"],"names":["formatCaption","month","options","dateLib","DateLib","formatMonthCaption"],"mappings":";AAaO,SAASA,EAAcC,GAAOC,GAASC,GAAS;AAEnD,UADYA,KAAW,IAAIC,EAAQF,CAAO,GAC/B,gBAAgBD,CAAK;AACpC;AAMY,MAACI,IAAqBL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index128.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {\n const referenceToday = today ?? dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(referenceToday, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(referenceToday)\n : dateLib.startOfWeek(referenceToday);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","referenceToday","start","days","i","day"],"mappings":"AAUO,SAASA,EAAYC,GAASC,GAASC,GAAmBC,GAAO;AACpE,QAAMC,IAAiBD,KAASH,EAAQ,MAAK,GACvCK,IAAQH,IACRF,EAAQ,qBAAqBI,GAAgBJ,CAAO,IACpDC,IACID,EAAQ,eAAeI,CAAc,IACrCJ,EAAQ,YAAYI,CAAc,GACtCE,IAAO,CAAA;AACb,WAASC,IAAI,GAAGA,IAAI,GAAGA,KAAK;AACxB,UAAMC,IAAMR,EAAQ,QAAQK,GAAOE,CAAC;AACpC,IAAAD,EAAK,KAAKE,CAAG;AAAA,EACjB;AACA,SAAOF;AACX;","x_google_ignoreList":[0]}
package/dist/index129.js CHANGED
@@ -1,8 +1,17 @@
1
- import { DateLib as a } from "./index103.js";
2
- function f(r, t, o) {
3
- return (o ?? new a(t)).format(r, "d");
1
+ function p(e, r, s, t, f = !1) {
2
+ if (!e || !r)
3
+ return;
4
+ const { startOfYear: o, endOfYear: i, eachYearOfInterval: l, getYear: u } = t, Y = o(e), c = i(r), a = l({ start: Y, end: c });
5
+ return f && a.reverse(), a.map((n) => {
6
+ const d = s.formatYearDropdown(n, t);
7
+ return {
8
+ value: u(n),
9
+ label: d,
10
+ disabled: !1
11
+ };
12
+ });
4
13
  }
5
14
  export {
6
- f as formatDay
15
+ p as getYearOptions
7
16
  };
8
17
  //# sourceMappingURL=index129.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index129.js","sources":["../../../node_modules/react-day-picker/dist/esm/formatters/formatDay.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the day date shown in the day cell.\n *\n * @defaultValue `d` (e.g., \"1\").\n * @param date The date to format.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted day as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatDay(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"d\");\n}\n"],"names":["formatDay","date","options","dateLib","DateLib"],"mappings":";AAaO,SAASA,EAAUC,GAAMC,GAASC,GAAS;AAC9C,UAAQA,KAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,GAAM,GAAG;AAC7D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index129.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @param reverse If true, reverses the order of the years (descending).\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, eachYearOfInterval, getYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = eachYearOfInterval({ start: firstNavYear, end: lastNavYear });\n if (reverse)\n years.reverse();\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false,\n };\n });\n}\n"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","reverse","startOfYear","endOfYear","eachYearOfInterval","getYear","firstNavYear","lastNavYear","years","year","label"],"mappings":"AAcO,SAASA,EAAeC,GAAUC,GAAQC,GAAYC,GAASC,IAAU,IAAO;AAGnF,MAFI,CAACJ,KAED,CAACC;AACD;AACJ,QAAM,EAAE,aAAAI,GAAa,WAAAC,GAAW,oBAAAC,GAAoB,SAAAC,EAAO,IAAKL,GAC1DM,IAAeJ,EAAYL,CAAQ,GACnCU,IAAcJ,EAAUL,CAAM,GAC9BU,IAAQJ,EAAmB,EAAE,OAAOE,GAAc,KAAKC,GAAa;AAC1E,SAAIN,KACAO,EAAM,QAAO,GACVA,EAAM,IAAI,CAACC,MAAS;AACvB,UAAMC,IAAQX,EAAW,mBAAmBU,GAAMT,CAAO;AACzD,WAAO;AAAA,MACH,OAAOK,EAAQI,CAAI;AAAA,MACnB,OAAAC;AAAA,MACA,UAAU;AAAA,IACtB;AAAA,EACI,CAAC;AACL;","x_google_ignoreList":[0]}
package/dist/index13.js CHANGED
@@ -1,79 +1,140 @@
1
- import { j as a } from "./index28.js";
2
- import { useState as m, useRef as w, useEffect as u } from "react";
3
- import { decode as y } from "./index32.js";
4
- const D = ({
5
- src: o,
6
- hash: n,
7
- alt: f = "",
8
- className: g
9
- }) => {
10
- const [i, l] = m(!1), [c, p] = m(null), s = w(null);
11
- u(() => {
12
- if (!n) return;
13
- const [e, r, j] = n, v = y(j, e, r), t = document.createElement("canvas"), d = t.getContext("2d");
14
- if (d) {
15
- t.width = e, t.height = r;
16
- const b = new ImageData(
17
- new Uint8ClampedArray(v),
18
- e,
19
- r
20
- );
21
- d.putImageData(b, 0, 0), p(t.toDataURL());
22
- }
23
- }, [n]), u(() => {
24
- s.current && s.current.complete && l(!0);
25
- }, [o]);
26
- const h = () => {
27
- }, x = () => {
28
- };
29
- return /* @__PURE__ */ a.jsxs(
30
- "div",
31
- {
32
- style: { position: "relative", overflow: "hidden" },
33
- className: g,
34
- onMouseEnter: h,
35
- onMouseLeave: x,
36
- children: [
37
- c && !i && /* @__PURE__ */ a.jsx(
38
- "img",
39
- {
40
- src: c,
41
- style: {
42
- position: "absolute",
43
- top: 0,
44
- left: 0,
45
- width: "100%",
46
- height: "100%",
47
- objectFit: "cover"
48
- }
49
- }
50
- ),
51
- /* @__PURE__ */ a.jsx(
52
- "img",
53
- {
54
- ref: s,
55
- src: o,
56
- alt: f,
57
- style: {
58
- width: "100%",
59
- height: "100%",
60
- objectFit: "cover",
61
- display: i ? "block" : "none",
62
- position: "absolute",
63
- top: 0,
64
- left: 0
65
- },
66
- onLoad: () => {
67
- l(!0);
68
- },
69
- onError: (e) => console.error("Image failed to load:", o, e)
70
- }
71
- )
72
- ]
73
- }
74
- );
75
- };
1
+ import { j as i } from "./index30.js";
2
+ import { c as r } from "./index28.js";
3
+ import * as j from "react";
4
+ import * as n from "@radix-ui/react-dialog";
5
+ import { XIcon as h } from "lucide-react";
6
+ import { cn as c } from "./index2.js";
7
+ function $(l) {
8
+ const e = r.c(4);
9
+ let t;
10
+ e[0] !== l ? ({
11
+ ...t
12
+ } = l, e[0] = l, e[1] = t) : t = e[1];
13
+ let o;
14
+ return e[2] !== t ? (o = /* @__PURE__ */ i.jsx(n.Root, { "data-slot": "dialog", ...t }), e[2] = t, e[3] = o) : o = e[3], o;
15
+ }
16
+ function z(l) {
17
+ const e = r.c(4);
18
+ let t;
19
+ e[0] !== l ? ({
20
+ ...t
21
+ } = l, e[0] = l, e[1] = t) : t = e[1];
22
+ let o;
23
+ return e[2] !== t ? (o = /* @__PURE__ */ i.jsx(n.Trigger, { "data-slot": "dialog-trigger", ...t }), e[2] = t, e[3] = o) : o = e[3], o;
24
+ }
25
+ function v(l) {
26
+ const e = r.c(4);
27
+ let t;
28
+ e[0] !== l ? ({
29
+ ...t
30
+ } = l, e[0] = l, e[1] = t) : t = e[1];
31
+ let o;
32
+ return e[2] !== t ? (o = /* @__PURE__ */ i.jsx(n.Portal, { "data-slot": "dialog-portal", ...t }), e[2] = t, e[3] = o) : o = e[3], o;
33
+ }
34
+ function k(l) {
35
+ const e = r.c(4);
36
+ let t;
37
+ e[0] !== l ? ({
38
+ ...t
39
+ } = l, e[0] = l, e[1] = t) : t = e[1];
40
+ let o;
41
+ return e[2] !== t ? (o = /* @__PURE__ */ i.jsx(n.Close, { "data-slot": "dialog-close", ...t }), e[2] = t, e[3] = o) : o = e[3], o;
42
+ }
43
+ function N(l) {
44
+ const e = r.c(8);
45
+ let t, o;
46
+ e[0] !== l ? ({
47
+ className: t,
48
+ ...o
49
+ } = l, e[0] = l, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
50
+ let s;
51
+ e[3] !== t ? (s = c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", t), e[3] = t, e[4] = s) : s = e[4];
52
+ let a;
53
+ return e[5] !== o || e[6] !== s ? (a = /* @__PURE__ */ i.jsx(n.Overlay, { "data-slot": "dialog-overlay", className: s, ...o }), e[5] = o, e[6] = s, e[7] = a) : a = e[7], a;
54
+ }
55
+ const b = j.forwardRef((l, e) => {
56
+ const t = r.c(17);
57
+ let o, s, a, g, p;
58
+ t[0] !== l ? ({
59
+ className: s,
60
+ children: o,
61
+ showCloseButton: g,
62
+ showCloseButtonOutside: p,
63
+ ...a
64
+ } = l, t[0] = l, t[1] = o, t[2] = s, t[3] = a, t[4] = g, t[5] = p) : (o = t[1], s = t[2], a = t[3], g = t[4], p = t[5]);
65
+ const m = g === void 0 ? !0 : g, x = p === void 0 ? !1 : p;
66
+ let d;
67
+ t[6] !== s ? (d = c("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", s), t[6] = s, t[7] = d) : d = t[7];
68
+ let f;
69
+ t[8] !== m || t[9] !== x ? (f = m && /* @__PURE__ */ i.jsxs(n.Close, { "data-slot": "dialog-close", className: c("absolute ring-offset-background focus:ring-ring transition-opacity focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", x ? "-top-3 -right-3 z-[51] rounded-full border bg-background p-1 opacity-100 hover:bg-accent [&_svg]:size-5" : "top-4 right-4 rounded-xs opacity-70 hover:opacity-100 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4"), children: [
70
+ /* @__PURE__ */ i.jsx(h, {}),
71
+ /* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Close" })
72
+ ] }), t[8] = m, t[9] = x, t[10] = f) : f = t[10];
73
+ let u;
74
+ return t[11] !== o || t[12] !== a || t[13] !== e || t[14] !== d || t[15] !== f ? (u = /* @__PURE__ */ i.jsx(v, { "data-slot": "dialog-portal", children: /* @__PURE__ */ i.jsx(N, { children: /* @__PURE__ */ i.jsxs(n.Content, { ref: e, "data-slot": "dialog-content", className: d, ...a, children: [
75
+ o,
76
+ f
77
+ ] }) }) }), t[11] = o, t[12] = a, t[13] = e, t[14] = d, t[15] = f, t[16] = u) : u = t[16], u;
78
+ });
79
+ b.displayName = n.Content.displayName;
80
+ function R(l) {
81
+ const e = r.c(8);
82
+ let t, o;
83
+ e[0] !== l ? ({
84
+ className: t,
85
+ ...o
86
+ } = l, e[0] = l, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
87
+ let s;
88
+ e[3] !== t ? (s = c("flex flex-col gap-2 text-center sm:text-left", t), e[3] = t, e[4] = s) : s = e[4];
89
+ let a;
90
+ return e[5] !== o || e[6] !== s ? (a = /* @__PURE__ */ i.jsx("div", { "data-slot": "dialog-header", className: s, ...o }), e[5] = o, e[6] = s, e[7] = a) : a = e[7], a;
91
+ }
92
+ function B(l) {
93
+ const e = r.c(8);
94
+ let t, o;
95
+ e[0] !== l ? ({
96
+ className: t,
97
+ ...o
98
+ } = l, e[0] = l, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
99
+ let s;
100
+ e[3] !== t ? (s = c("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t), e[3] = t, e[4] = s) : s = e[4];
101
+ let a;
102
+ return e[5] !== o || e[6] !== s ? (a = /* @__PURE__ */ i.jsx("div", { "data-slot": "dialog-footer", className: s, ...o }), e[5] = o, e[6] = s, e[7] = a) : a = e[7], a;
103
+ }
104
+ function O(l) {
105
+ const e = r.c(8);
106
+ let t, o;
107
+ e[0] !== l ? ({
108
+ className: t,
109
+ ...o
110
+ } = l, e[0] = l, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
111
+ let s;
112
+ e[3] !== t ? (s = c("text-lg leading-none font-semibold", t), e[3] = t, e[4] = s) : s = e[4];
113
+ let a;
114
+ return e[5] !== o || e[6] !== s ? (a = /* @__PURE__ */ i.jsx(n.Title, { "data-slot": "dialog-title", className: s, ...o }), e[5] = o, e[6] = s, e[7] = a) : a = e[7], a;
115
+ }
116
+ function T(l) {
117
+ const e = r.c(8);
118
+ let t, o;
119
+ e[0] !== l ? ({
120
+ className: t,
121
+ ...o
122
+ } = l, e[0] = l, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
123
+ let s;
124
+ e[3] !== t ? (s = c("text-muted-foreground text-sm", t), e[3] = t, e[4] = s) : s = e[4];
125
+ let a;
126
+ return e[5] !== o || e[6] !== s ? (a = /* @__PURE__ */ i.jsx(n.Description, { "data-slot": "dialog-description", className: s, ...o }), e[5] = o, e[6] = s, e[7] = a) : a = e[7], a;
127
+ }
76
128
  export {
77
- D as Image
129
+ $ as Dialog,
130
+ k as DialogClose,
131
+ b as DialogContent,
132
+ T as DialogDescription,
133
+ B as DialogFooter,
134
+ R as DialogHeader,
135
+ N as DialogOverlay,
136
+ v as DialogPortal,
137
+ O as DialogTitle,
138
+ z as DialogTrigger
78
139
  };
79
140
  //# sourceMappingURL=index13.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index13.js","sources":["../src/components/Image/index.tsx"],"sourcesContent":["import { useRef, useEffect, useState } from \"react\"\nimport { decode } from \"blurhash\"\n\n// Set to true to enable mouseover debugging (this will show the blurhash image unless hovered)\nconst DEBUG = false\n\nexport const Image = ({\n src,\n hash,\n alt = \"\",\n className,\n}: {\n src: string\n hash: [number, number, string]\n alt?: string\n className?: string\n}) => {\n const [imageLoaded, setImageLoaded] = useState(false)\n const [blurhashUrl, setBlurhashUrl] = useState<string | null>(null)\n\n const imgRef = useRef<HTMLImageElement>(null)\n\n useEffect(() => {\n if (!hash) return\n\n const [width, height, buffer] = hash\n const pixels = decode(buffer, width, height)\n\n const canvas = document.createElement(\"canvas\")\n const ctx = canvas.getContext(\"2d\")\n\n if (ctx) {\n canvas.width = width\n canvas.height = height\n\n const imageData = new ImageData(\n new Uint8ClampedArray(pixels),\n width,\n height\n )\n ctx.putImageData(imageData, 0, 0)\n\n setBlurhashUrl(canvas.toDataURL())\n }\n }, [hash])\n\n // Handle Cached Images\n useEffect(() => {\n if (imgRef.current && imgRef.current.complete) {\n setImageLoaded(true)\n }\n }, [src])\n\n const onMouseEnter = () => {\n if (DEBUG) {\n setImageLoaded(true)\n }\n }\n\n const onMouseLeave = () => {\n if (DEBUG) {\n setImageLoaded(false)\n }\n }\n\n return (\n <div\n style={{ position: \"relative\", overflow: \"hidden\" }}\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {blurhashUrl && !imageLoaded && (\n <img\n src={blurhashUrl}\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n height: \"100%\",\n objectFit: \"cover\",\n }}\n />\n )}\n <img\n ref={imgRef}\n src={src}\n alt={alt}\n style={{\n width: \"100%\",\n height: \"100%\",\n objectFit: \"cover\",\n display: imageLoaded ? \"block\" : \"none\",\n position: \"absolute\",\n top: 0,\n left: 0,\n }}\n onLoad={() => {\n setImageLoaded(true)\n }}\n onError={(e) => console.error(\"Image failed to load:\", src, e)}\n />\n </div>\n )\n}\n"],"names":["Image","src","hash","alt","className","imageLoaded","setImageLoaded","useState","blurhashUrl","setBlurhashUrl","imgRef","useRef","useEffect","width","height","buffer","pixels","decode","canvas","ctx","imageData","onMouseEnter","onMouseLeave","jsxs","jsx"],"mappings":";;;AAMO,MAAMA,IAAQ,CAAC;AAAA,EACpB,KAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,WAAAC;AACF,MAKM;AACJ,QAAM,CAACC,GAAaC,CAAc,IAA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AA,UAAA;AAAA,YACC,KAAKd;AAAA,YACL,KAAAT;AAAA,YACA,KAAAE;AAAA,YACA,OAAO;AAAA,cACL,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,WAAW;AAAA,cACX,SAASE,IAAc,UAAU;AAAA,cACjC,UAAU;AAAA,cACV,KAAK;AAAA,cACL,MAAM;AAAA,YAAA;AAAA,YAER,QAAQ,MAAM;AACZ,cAAAC,EAAe,EAAI;AAAA,YACrB;AAAA,YACA,SAAS,CAAC,MAAM,QAAQ,MAAM,yBAAyBL,GAAK,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MAC/D;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"index13.js","sources":["../src/components/Dialog/index.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n showCloseButtonOutside?: boolean\n }\n>(({ className, children, showCloseButton = true, showCloseButtonOutside = false, ...props }, ref) => (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay>\n <DialogPrimitive.Content\n ref={ref}\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className={cn(\n \"absolute ring-offset-background focus:ring-ring transition-opacity focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n showCloseButtonOutside\n ? \"-top-3 -right-3 z-[51] rounded-full border bg-background p-1 opacity-100 hover:bg-accent [&_svg]:size-5\"\n : \"top-4 right-4 rounded-xs opacity-70 hover:opacity-100 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n"],"names":["Dialog","t0","$","_c","props","t1","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","cn","t2","jsx","DialogPrimitive","DialogContent","React","forwardRef","ref","children","showCloseButton","showCloseButtonOutside","undefined","t3","t4","jsxs","XIcon","t5","displayName","Content","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":";;;;;;AAOA,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,EAAAF,SAAAD,KAAgB;AAAA,IAAA,GAAAG;AAAAA,EAAAA,IAAAH,GAEoCC,OAAAD,GAAAC,OAAAE,KAAAA,IAAAF,EAAA,CAAA;AAAA,MAAAG;AAAA,SAAAH,SAAAE,KAC3CC,oCAAgC,aAAA,UAAQ,GAAKD,GAAK,GAAIF,OAAAE,GAAAF,OAAAG,KAAAA,IAAAH,EAAA,CAAA,GAAtDG;AAAsD;AAG/D,SAAAC,EAAAL,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,EAAAF,SAAAD,KAAuB;AAAA,IAAA,GAAAG;AAAA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A,MAAAE,KAAAF,SAAAG,KAFhEO,IAAAC,gBAAAA,EAAAA,IAAAC,EAAA,OAAA,EACY,aAAA,gBACC,WAAAT,GAAmD,GAC1DD,GAAK,GACTF,OAAAE,GAAAF,OAAAG,GAAAH,OAAAU,KAAAA,IAAAV,EAAA,CAAA,GAJFU;AAIE;AAIN,SAAAqB,EAAAhC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA;AAAA,MAAAO,GAAAN;AAAA,EAAAF,SAAAD,KAA2B;AAAA,IAAAS,WAAAA;AAAAA,IAAA,GAAAN;AAAAA,EAAAA,IAAAH,GAGgCC,OAAAD,GAAAC,OAAAQ,GAAAR,OAAAE,MAAAM,IAAAR,EAAA,CAAA,GAAAE,IAAAF,EAAA,CAAA;AAAA,MAAAG;AAAA,EAAAH,SAAAQ,KAI1CL,IAAAM,EAAG,iCAAiCD,CAAS,GAACR,OAAAQ,GAAAR,OAAAG,KAAAA,IAAAH,EAAA,CAAA;AAAA,MAAAU;AAAA,SAAAV,EAAA,CAAA,MAAAE,KAAAF,SAAAG,KAF3DO,IAAAC,gBAAAA,EAAAA,IAAAC,EAAA,aAAA,EACY,aAAA,sBACC,WAAAT,GAA8C,GACrDD,GAAK,GACTF,OAAAE,GAAAF,OAAAG,GAAAH,OAAAU,KAAAA,IAAAV,EAAA,CAAA,GAJFU;AAIE;"}
package/dist/index130.js CHANGED
@@ -1,8 +1,105 @@
1
- import { defaultDateLib as r } from "./index103.js";
2
- function n(o, t = r) {
3
- return t.format(o, "LLLL");
1
+ import { TZDate as c } from "./index189.js";
2
+ import "./index191.js";
3
+ import { differenceInCalendarMonths as h } from "./index203.js";
4
+ import { differenceInCalendarDays as O } from "./index202.js";
5
+ import { getISOWeek as k } from "./index210.js";
6
+ import { getWeek as w } from "./index213.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
+ };
4
101
  }
5
102
  export {
6
- n as formatMonthDropdown
103
+ W as createNoonOverrides
7
104
  };
8
105
  //# sourceMappingURL=index130.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index130.js","sources":["../../../node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the month for the dropdown option label.\n *\n * @defaultValue The localized full month name.\n * @param month The date representing the month.\n * @param dateLib The date library to use for formatting. Defaults to\n * `defaultDateLib`.\n * @returns The formatted month name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatMonthDropdown(month, dateLib = defaultDateLib) {\n return dateLib.format(month, \"LLLL\");\n}\n"],"names":["formatMonthDropdown","month","dateLib","defaultDateLib"],"mappings":";AAYO,SAASA,EAAoBC,GAAOC,IAAUC,GAAgB;AACjE,SAAOD,EAAQ,OAAOD,GAAO,MAAM;AACvC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index130.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,gBAC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AI;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]}
package/dist/index131.js CHANGED
@@ -1,8 +1,23 @@
1
- import { DateLib as t } from "./index103.js";
2
- function a(c, e, r) {
3
- return (r ?? new t(e)).format(c, "cccccc");
4
- }
1
+ var o;
2
+ (function(e) {
3
+ e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
4
+ })(o || (o = {}));
5
+ var t;
6
+ (function(e) {
7
+ e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
8
+ })(t || (t = {}));
9
+ var r;
10
+ (function(e) {
11
+ e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
12
+ })(r || (r = {}));
13
+ var n;
14
+ (function(e) {
15
+ e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
16
+ })(n || (n = {}));
5
17
  export {
6
- a as formatWeekdayName
18
+ n as Animation,
19
+ t as DayFlag,
20
+ r as SelectionState,
21
+ o as UI
7
22
  };
8
23
  //# sourceMappingURL=index131.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index131.js","sources":["../../../node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Formats the name of a weekday to be displayed in the weekdays header.\n *\n * @defaultValue `cccccc` (e.g., \"Mo\" for Monday).\n * @param weekday The date representing the weekday.\n * @param options Configuration options for the date library.\n * @param dateLib The date library to use for formatting. If not provided, a new\n * instance is created.\n * @returns The formatted weekday name as a string.\n * @group Formatters\n * @see https://daypicker.dev/docs/translation#custom-formatters\n */\nexport function formatWeekdayName(weekday, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(weekday, \"cccccc\");\n}\n"],"names":["formatWeekdayName","weekday","options","dateLib","DateLib"],"mappings":";AAaO,SAASA,EAAkBC,GAASC,GAASC,GAAS;AACzD,UAAQA,KAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,GAAS,QAAQ;AACrE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index131.js","sources":["../../../node_modules/react-day-picker/dist/esm/UI.js"],"sourcesContent":["/**\n * Enum representing the UI elements composing DayPicker. These elements are\n * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.\n *\n * Some elements are extended by flags and modifiers.\n */\nexport var UI;\n(function (UI) {\n /** The root component displaying the months and the navigation bar. */\n UI[\"Root\"] = \"root\";\n /** The Chevron SVG element used by navigation buttons and dropdowns. */\n UI[\"Chevron\"] = \"chevron\";\n /**\n * The grid cell with the day's date. Extended by {@link DayFlag} and\n * {@link SelectionState}.\n */\n UI[\"Day\"] = \"day\";\n /** The button containing the formatted day's date, inside the grid cell. */\n UI[\"DayButton\"] = \"day_button\";\n /** The caption label of the month (when not showing the dropdown navigation). */\n UI[\"CaptionLabel\"] = \"caption_label\";\n /** The container of the dropdown navigation (when enabled). */\n UI[\"Dropdowns\"] = \"dropdowns\";\n /** The dropdown element to select for years and months. */\n UI[\"Dropdown\"] = \"dropdown\";\n /** The container element of the dropdown. */\n UI[\"DropdownRoot\"] = \"dropdown_root\";\n /** The root element of the footer. */\n UI[\"Footer\"] = \"footer\";\n /** The month grid. */\n UI[\"MonthGrid\"] = \"month_grid\";\n /** Contains the dropdown navigation or the caption label. */\n UI[\"MonthCaption\"] = \"month_caption\";\n /** The dropdown with the months. */\n UI[\"MonthsDropdown\"] = \"months_dropdown\";\n /** Wrapper of the month grid. */\n UI[\"Month\"] = \"month\";\n /** The container of the displayed months. */\n UI[\"Months\"] = \"months\";\n /** The navigation bar with the previous and next buttons. */\n UI[\"Nav\"] = \"nav\";\n /**\n * The next month button in the navigation. *\n *\n * @since 9.1.0\n */\n UI[\"NextMonthButton\"] = \"button_next\";\n /**\n * The previous month button in the navigation.\n *\n * @since 9.1.0\n */\n UI[\"PreviousMonthButton\"] = \"button_previous\";\n /** The row containing the week. */\n UI[\"Week\"] = \"week\";\n /** The group of row weeks in a month (`tbody`). */\n UI[\"Weeks\"] = \"weeks\";\n /** The column header with the weekday. */\n UI[\"Weekday\"] = \"weekday\";\n /** The row grouping the weekdays in the column headers. */\n UI[\"Weekdays\"] = \"weekdays\";\n /** The cell containing the week number. */\n UI[\"WeekNumber\"] = \"week_number\";\n /** The cell header of the week numbers column. */\n UI[\"WeekNumberHeader\"] = \"week_number_header\";\n /** The dropdown with the years. */\n UI[\"YearsDropdown\"] = \"years_dropdown\";\n})(UI || (UI = {}));\n/** Enum representing flags for the {@link UI.Day} element. */\nexport var DayFlag;\n(function (DayFlag) {\n /** The day is disabled. */\n DayFlag[\"disabled\"] = \"disabled\";\n /** The day is hidden. */\n DayFlag[\"hidden\"] = \"hidden\";\n /** The day is outside the current month. */\n DayFlag[\"outside\"] = \"outside\";\n /** The day is focused. */\n DayFlag[\"focused\"] = \"focused\";\n /** The day is today. */\n DayFlag[\"today\"] = \"today\";\n})(DayFlag || (DayFlag = {}));\n/**\n * Enum representing selection states that can be applied to the {@link UI.Day}\n * element in selection mode.\n */\nexport var SelectionState;\n(function (SelectionState) {\n /** The day is at the end of a selected range. */\n SelectionState[\"range_end\"] = \"range_end\";\n /** The day is at the middle of a selected range. */\n SelectionState[\"range_middle\"] = \"range_middle\";\n /** The day is at the start of a selected range. */\n SelectionState[\"range_start\"] = \"range_start\";\n /** The day is selected. */\n SelectionState[\"selected\"] = \"selected\";\n})(SelectionState || (SelectionState = {}));\n/**\n * Enum representing different animation states for transitioning between\n * months.\n */\nexport var Animation;\n(function (Animation) {\n /** The entering weeks when they appear before the exiting month. */\n Animation[\"weeks_before_enter\"] = \"weeks_before_enter\";\n /** The exiting weeks when they disappear before the entering month. */\n Animation[\"weeks_before_exit\"] = \"weeks_before_exit\";\n /** The entering weeks when they appear after the exiting month. */\n Animation[\"weeks_after_enter\"] = \"weeks_after_enter\";\n /** The exiting weeks when they disappear after the entering month. */\n Animation[\"weeks_after_exit\"] = \"weeks_after_exit\";\n /** The entering caption when it appears after the exiting month. */\n Animation[\"caption_after_enter\"] = \"caption_after_enter\";\n /** The exiting caption when it disappears after the entering month. */\n Animation[\"caption_after_exit\"] = \"caption_after_exit\";\n /** The entering caption when it appears before the exiting month. */\n Animation[\"caption_before_enter\"] = \"caption_before_enter\";\n /** The exiting caption when it disappears before the entering month. */\n Animation[\"caption_before_exit\"] = \"caption_before_exit\";\n})(Animation || (Animation = {}));\n"],"names":["UI","DayFlag","SelectionState","Animation"],"mappings":"AAMU,IAACA;AAAA,CACV,SAAUA,GAAI;AAEX,EAAAA,EAAG,OAAU,QAEbA,EAAG,UAAa,WAKhBA,EAAG,MAAS,OAEZA,EAAG,YAAe,cAElBA,EAAG,eAAkB,iBAErBA,EAAG,YA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