@rpcbase/ui 0.167.0 → 0.168.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 (630) hide show
  1. package/dist/index100.js +52 -320
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -130
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +4 -20
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +15 -75
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -18
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +7 -101
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +17 -5
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -14
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +5 -2
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +5 -7
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index11.js +3 -2
  22. package/dist/index11.js.map +1 -1
  23. package/dist/index110.js +5 -326
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +4 -49
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +5 -52
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +5 -3
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +24 -4
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +6 -15
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +3 -4
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +5 -6
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +5 -16
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +3 -3
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +5 -4
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +3 -4
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +8 -5
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +5 -4
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +4 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +4 -6
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +6 -24
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +145 -6
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +39 -4
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +4 -6
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index130.js +7 -5
  64. package/dist/index130.js.map +1 -1
  65. package/dist/index131.js +13 -4
  66. package/dist/index131.js.map +1 -1
  67. package/dist/index132.js +13 -5
  68. package/dist/index132.js.map +1 -1
  69. package/dist/index133.js +7 -4
  70. package/dist/index133.js.map +1 -1
  71. package/dist/index134.js +31 -8
  72. package/dist/index134.js.map +1 -1
  73. package/dist/index135.js +10 -5
  74. package/dist/index135.js.map +1 -1
  75. package/dist/index136.js +10 -4
  76. package/dist/index136.js.map +1 -1
  77. package/dist/index137.js +8 -4
  78. package/dist/index137.js.map +1 -1
  79. package/dist/index138.js +13 -6
  80. package/dist/index138.js.map +1 -1
  81. package/dist/index139.js +101 -145
  82. package/dist/index139.js.map +1 -1
  83. package/dist/index140.js +20 -40
  84. package/dist/index140.js.map +1 -1
  85. package/dist/index141.js +53 -4
  86. package/dist/index141.js.map +1 -1
  87. package/dist/index142.js +70 -5
  88. package/dist/index142.js.map +1 -1
  89. package/dist/index143.js +9 -13
  90. package/dist/index143.js.map +1 -1
  91. package/dist/index144.js +20 -13
  92. package/dist/index144.js.map +1 -1
  93. package/dist/index145.js +16 -7
  94. package/dist/index145.js.map +1 -1
  95. package/dist/index146.js +22 -30
  96. package/dist/index146.js.map +1 -1
  97. package/dist/index147.js +6 -10
  98. package/dist/index147.js.map +1 -1
  99. package/dist/index148.js +5 -10
  100. package/dist/index148.js.map +1 -1
  101. package/dist/index149.js +23 -8
  102. package/dist/index149.js.map +1 -1
  103. package/dist/index150.js +35 -14
  104. package/dist/index150.js.map +1 -1
  105. package/dist/index151.js +16 -102
  106. package/dist/index151.js.map +1 -1
  107. package/dist/index152.js +7 -20
  108. package/dist/index152.js.map +1 -1
  109. package/dist/index153.js +4 -53
  110. package/dist/index153.js.map +1 -1
  111. package/dist/index154.js +4 -72
  112. package/dist/index154.js.map +1 -1
  113. package/dist/index155.js +4 -9
  114. package/dist/index155.js.map +1 -1
  115. package/dist/index156.js +4 -20
  116. package/dist/index156.js.map +1 -1
  117. package/dist/index157.js +3 -16
  118. package/dist/index157.js.map +1 -1
  119. package/dist/index158.js +6 -23
  120. package/dist/index158.js.map +1 -1
  121. package/dist/index159.js +24 -7
  122. package/dist/index159.js.map +1 -1
  123. package/dist/index160.js +7 -5
  124. package/dist/index160.js.map +1 -1
  125. package/dist/index161.js +6 -23
  126. package/dist/index161.js.map +1 -1
  127. package/dist/index162.js +6 -35
  128. package/dist/index162.js.map +1 -1
  129. package/dist/index163.js +4 -16
  130. package/dist/index163.js.map +1 -1
  131. package/dist/index164.js +3 -6
  132. package/dist/index164.js.map +1 -1
  133. package/dist/index165.js +4 -4
  134. package/dist/index165.js.map +1 -1
  135. package/dist/index166.js +3 -4
  136. package/dist/index166.js.map +1 -1
  137. package/dist/index167.js +4 -4
  138. package/dist/index167.js.map +1 -1
  139. package/dist/index168.js +3 -4
  140. package/dist/index168.js.map +1 -1
  141. package/dist/index169.js +3 -3
  142. package/dist/index169.js.map +1 -1
  143. package/dist/index170.js +3 -6
  144. package/dist/index170.js.map +1 -1
  145. package/dist/index171.js +47 -24
  146. package/dist/index171.js.map +1 -1
  147. package/dist/index172.js +46 -7
  148. package/dist/index172.js.map +1 -1
  149. package/dist/index173.js +205 -6
  150. package/dist/index173.js.map +1 -1
  151. package/dist/index174.js +22 -6
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +24 -3
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +399 -3
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js +5 -4
  158. package/dist/index177.js.map +1 -1
  159. package/dist/index178.js +68 -3
  160. package/dist/index178.js.map +1 -1
  161. package/dist/index179.js +2 -5
  162. package/dist/index179.js.map +1 -1
  163. package/dist/index18.js +1 -0
  164. package/dist/index18.js.map +1 -1
  165. package/dist/index180.js +363 -3
  166. package/dist/index180.js.map +1 -1
  167. package/dist/index181.js +261 -3
  168. package/dist/index181.js.map +1 -1
  169. package/dist/index182.js +60 -3
  170. package/dist/index182.js.map +1 -1
  171. package/dist/index183.js +46 -3
  172. package/dist/index183.js.map +1 -1
  173. package/dist/index184.js +170 -2
  174. package/dist/index184.js.map +1 -1
  175. package/dist/index185.js +107 -65
  176. package/dist/index185.js.map +1 -1
  177. package/dist/index186.js +24 -84
  178. package/dist/index186.js.map +1 -1
  179. package/dist/index187.js +8 -47
  180. package/dist/index187.js.map +1 -1
  181. package/dist/index188.js +4 -7
  182. package/dist/index188.js.map +1 -1
  183. package/dist/index189.js +5 -4
  184. package/dist/index189.js.map +1 -1
  185. package/dist/index190.js +4 -51
  186. package/dist/index190.js.map +1 -1
  187. package/dist/index191.js +465 -23
  188. package/dist/index191.js.map +1 -1
  189. package/dist/index192.js +185 -28
  190. package/dist/index192.js.map +1 -1
  191. package/dist/index193.js +108 -5
  192. package/dist/index193.js.map +1 -1
  193. package/dist/index194.js +262 -5
  194. package/dist/index194.js.map +1 -1
  195. package/dist/index195.js +8 -67
  196. package/dist/index195.js.map +1 -1
  197. package/dist/index196.js +43 -2
  198. package/dist/index196.js.map +1 -1
  199. package/dist/index197.js +4 -363
  200. package/dist/index197.js.map +1 -1
  201. package/dist/index198.js +64 -258
  202. package/dist/index198.js.map +1 -1
  203. package/dist/index199.js +176 -56
  204. package/dist/index199.js.map +1 -1
  205. package/dist/index200.js +42 -42
  206. package/dist/index200.js.map +1 -1
  207. package/dist/index201.js +57 -162
  208. package/dist/index201.js.map +1 -1
  209. package/dist/index202.js +45 -106
  210. package/dist/index202.js.map +1 -1
  211. package/dist/index203.js +39 -24
  212. package/dist/index203.js.map +1 -1
  213. package/dist/index204.js +101 -8
  214. package/dist/index204.js.map +1 -1
  215. package/dist/index205.js +97 -4
  216. package/dist/index205.js.map +1 -1
  217. package/dist/index206.js +99 -5
  218. package/dist/index206.js.map +1 -1
  219. package/dist/index207.js +58 -4
  220. package/dist/index207.js.map +1 -1
  221. package/dist/index208.js +8 -466
  222. package/dist/index208.js.map +1 -1
  223. package/dist/index209.js +59 -178
  224. package/dist/index209.js.map +1 -1
  225. package/dist/index210.js +17 -105
  226. package/dist/index210.js.map +1 -1
  227. package/dist/index211.js +14 -260
  228. package/dist/index211.js.map +1 -1
  229. package/dist/index212.js +5 -9
  230. package/dist/index212.js.map +1 -1
  231. package/dist/index213.js +4 -41
  232. package/dist/index213.js.map +1 -1
  233. package/dist/index214.js +6 -4
  234. package/dist/index214.js.map +1 -1
  235. package/dist/index215.js +4 -64
  236. package/dist/index215.js.map +1 -1
  237. package/dist/index216.js +7 -48
  238. package/dist/index216.js.map +1 -1
  239. package/dist/index217.js +17 -67
  240. package/dist/index217.js.map +1 -1
  241. package/dist/index218.js +5 -180
  242. package/dist/index218.js.map +1 -1
  243. package/dist/index219.js +5 -46
  244. package/dist/index219.js.map +1 -1
  245. package/dist/index220.js +13 -39
  246. package/dist/index220.js.map +1 -1
  247. package/dist/index221.js +10 -100
  248. package/dist/index221.js.map +1 -1
  249. package/dist/index222.js +14 -97
  250. package/dist/index222.js.map +1 -1
  251. package/dist/index223.js +14 -99
  252. package/dist/index223.js.map +1 -1
  253. package/dist/index224.js +5 -58
  254. package/dist/index224.js.map +1 -1
  255. package/dist/index225.js +6 -8
  256. package/dist/index225.js.map +1 -1
  257. package/dist/index226.js +7 -66
  258. package/dist/index226.js.map +1 -1
  259. package/dist/index227.js +6 -19
  260. package/dist/index227.js.map +1 -1
  261. package/dist/index228.js +9 -16
  262. package/dist/index228.js.map +1 -1
  263. package/dist/index229.js +5 -5
  264. package/dist/index229.js.map +1 -1
  265. package/dist/index230.js +5 -5
  266. package/dist/index230.js.map +1 -1
  267. package/dist/index231.js +9 -6
  268. package/dist/index231.js.map +1 -1
  269. package/dist/index232.js +5 -4
  270. package/dist/index232.js.map +1 -1
  271. package/dist/index233.js +5 -7
  272. package/dist/index233.js.map +1 -1
  273. package/dist/index234.js +4 -17
  274. package/dist/index234.js.map +1 -1
  275. package/dist/index235.js +11 -5
  276. package/dist/index235.js.map +1 -1
  277. package/dist/index236.js +10 -5
  278. package/dist/index236.js.map +1 -1
  279. package/dist/index237.js +10 -13
  280. package/dist/index237.js.map +1 -1
  281. package/dist/index238.js +11 -10
  282. package/dist/index238.js.map +1 -1
  283. package/dist/index239.js +10 -13
  284. package/dist/index239.js.map +1 -1
  285. package/dist/index240.js +10 -14
  286. package/dist/index240.js.map +1 -1
  287. package/dist/index241.js +7 -5
  288. package/dist/index241.js.map +1 -1
  289. package/dist/index242.js +6 -6
  290. package/dist/index242.js.map +1 -1
  291. package/dist/index243.js +5 -7
  292. package/dist/index243.js.map +1 -1
  293. package/dist/index244.js +6 -6
  294. package/dist/index244.js.map +1 -1
  295. package/dist/index245.js +7 -9
  296. package/dist/index245.js.map +1 -1
  297. package/dist/index246.js +6 -5
  298. package/dist/index246.js.map +1 -1
  299. package/dist/index247.js +55 -5
  300. package/dist/index247.js.map +1 -1
  301. package/dist/index248.js +23 -9
  302. package/dist/index248.js.map +1 -1
  303. package/dist/index249.js +16 -5
  304. package/dist/index249.js.map +1 -1
  305. package/dist/index250.js +7 -5
  306. package/dist/index250.js.map +1 -1
  307. package/dist/index251.js +10 -4
  308. package/dist/index251.js.map +1 -1
  309. package/dist/index252.js +10 -11
  310. package/dist/index252.js.map +1 -1
  311. package/dist/index253.js +21 -10
  312. package/dist/index253.js.map +1 -1
  313. package/dist/index254.js +10 -10
  314. package/dist/index254.js.map +1 -1
  315. package/dist/index255.js +9 -11
  316. package/dist/index255.js.map +1 -1
  317. package/dist/index256.js +9 -11
  318. package/dist/index256.js.map +1 -1
  319. package/dist/index257.js +4 -10
  320. package/dist/index257.js.map +1 -1
  321. package/dist/index258.js +5 -7
  322. package/dist/index258.js.map +1 -1
  323. package/dist/index259.js +16 -6
  324. package/dist/index259.js.map +1 -1
  325. package/dist/index260.js +9 -5
  326. package/dist/index260.js.map +1 -1
  327. package/dist/index261.js +18 -6
  328. package/dist/index261.js.map +1 -1
  329. package/dist/index262.js +15 -7
  330. package/dist/index262.js.map +1 -1
  331. package/dist/index263.js +12 -6
  332. package/dist/index263.js.map +1 -1
  333. package/dist/index264.js +29 -55
  334. package/dist/index264.js.map +1 -1
  335. package/dist/index265.js +12 -23
  336. package/dist/index265.js.map +1 -1
  337. package/dist/index266.js +23 -14
  338. package/dist/index266.js.map +1 -1
  339. package/dist/index267.js +5 -7
  340. package/dist/index267.js.map +1 -1
  341. package/dist/index268.js +23 -9
  342. package/dist/index268.js.map +1 -1
  343. package/dist/index269.js +29 -11
  344. package/dist/index269.js.map +1 -1
  345. package/dist/index270.js +5 -22
  346. package/dist/index270.js.map +1 -1
  347. package/dist/index271.js +13 -10
  348. package/dist/index271.js.map +1 -1
  349. package/dist/index272.js +154 -9
  350. package/dist/index272.js.map +1 -1
  351. package/dist/index273.js +30 -9
  352. package/dist/index273.js.map +1 -1
  353. package/dist/index274.js +9 -4
  354. package/dist/index274.js.map +1 -1
  355. package/dist/index275.js +47 -5
  356. package/dist/index275.js.map +1 -1
  357. package/dist/index276.js +10 -15
  358. package/dist/index276.js.map +1 -1
  359. package/dist/index277.js +44 -9
  360. package/dist/index277.js.map +1 -1
  361. package/dist/index278.js +95 -18
  362. package/dist/index278.js.map +1 -1
  363. package/dist/index279.js +86 -15
  364. package/dist/index279.js.map +1 -1
  365. package/dist/index280.js +103 -10
  366. package/dist/index280.js.map +1 -1
  367. package/dist/index281.js +51 -28
  368. package/dist/index281.js.map +1 -1
  369. package/dist/index282.js +10 -11
  370. package/dist/index282.js.map +1 -1
  371. package/dist/index283.js +36 -24
  372. package/dist/index283.js.map +1 -1
  373. package/dist/index284.js +8 -5
  374. package/dist/index284.js.map +1 -1
  375. package/dist/index285.js +117 -2
  376. package/dist/index285.js.map +1 -1
  377. package/dist/index286.js +18 -2
  378. package/dist/index286.js.map +1 -1
  379. package/dist/index287.js +16 -5
  380. package/dist/index287.js.map +1 -1
  381. package/dist/index288.js +4 -3
  382. package/dist/index288.js.map +1 -1
  383. package/dist/index289.js +36 -23
  384. package/dist/index289.js.map +1 -1
  385. package/dist/index29.js +3 -3
  386. package/dist/index290.js +20 -112
  387. package/dist/index290.js.map +1 -1
  388. package/dist/index291.js +9 -15
  389. package/dist/index291.js.map +1 -1
  390. package/dist/index292.js +7 -523
  391. package/dist/index292.js.map +1 -1
  392. package/dist/index293.js +16 -124
  393. package/dist/index293.js.map +1 -1
  394. package/dist/index294.js +25 -130
  395. package/dist/index294.js.map +1 -1
  396. package/dist/index295.js +16 -13
  397. package/dist/index295.js.map +1 -1
  398. package/dist/index296.js +4 -154
  399. package/dist/index296.js.map +1 -1
  400. package/dist/index297.js +18 -30
  401. package/dist/index297.js.map +1 -1
  402. package/dist/index298.js +12 -9
  403. package/dist/index298.js.map +1 -1
  404. package/dist/index299.js +5 -48
  405. package/dist/index299.js.map +1 -1
  406. package/dist/index30.js +14 -14
  407. package/dist/index300.js +3 -12
  408. package/dist/index300.js.map +1 -1
  409. package/dist/index301.js +22 -43
  410. package/dist/index301.js.map +1 -1
  411. package/dist/index302.js +109 -92
  412. package/dist/index302.js.map +1 -1
  413. package/dist/index303.js +15 -86
  414. package/dist/index303.js.map +1 -1
  415. package/dist/index304.js +513 -94
  416. package/dist/index304.js.map +1 -1
  417. package/dist/index305.js +125 -50
  418. package/dist/index305.js.map +1 -1
  419. package/dist/index306.js +132 -10
  420. package/dist/index306.js.map +1 -1
  421. package/dist/index307.js +19 -36
  422. package/dist/index307.js.map +1 -1
  423. package/dist/index308.js +5 -8
  424. package/dist/index308.js.map +1 -1
  425. package/dist/index309.js +5 -3
  426. package/dist/index309.js.map +1 -1
  427. package/dist/index31.js +3 -3
  428. package/dist/index310.js +4 -10
  429. package/dist/index310.js.map +1 -1
  430. package/dist/index311.js +15 -116
  431. package/dist/index311.js.map +1 -1
  432. package/dist/index312.js +8 -17
  433. package/dist/index312.js.map +1 -1
  434. package/dist/index313.js +5 -15
  435. package/dist/index313.js.map +1 -1
  436. package/dist/index314.js +4 -36
  437. package/dist/index314.js.map +1 -1
  438. package/dist/index315.js +544 -19
  439. package/dist/index315.js.map +1 -1
  440. package/dist/index316.js +46 -8
  441. package/dist/index316.js.map +1 -1
  442. package/dist/index317.js +17 -19
  443. package/dist/index317.js.map +1 -1
  444. package/dist/index318.js +6 -28
  445. package/dist/index318.js.map +1 -1
  446. package/dist/index319.js +8 -16
  447. package/dist/index319.js.map +1 -1
  448. package/dist/index32.js +2 -2
  449. package/dist/index320.js +7 -4
  450. package/dist/index320.js.map +1 -1
  451. package/dist/index321.js +9 -19
  452. package/dist/index321.js.map +1 -1
  453. package/dist/index322.js +12 -12
  454. package/dist/index322.js.map +1 -1
  455. package/dist/index323.js +10 -69
  456. package/dist/index323.js.map +1 -1
  457. package/dist/index324.js +14 -9
  458. package/dist/index324.js.map +1 -1
  459. package/dist/index325.js +64 -13
  460. package/dist/index325.js.map +1 -1
  461. package/dist/index326.js +68 -65
  462. package/dist/index326.js.map +1 -1
  463. package/dist/index327.js +8 -64
  464. package/dist/index327.js.map +1 -1
  465. package/dist/index328.js +14 -21
  466. package/dist/index328.js.map +1 -1
  467. package/dist/index329.js +66 -6
  468. package/dist/index329.js.map +1 -1
  469. package/dist/index33.js +1 -1
  470. package/dist/index330.js +4 -5
  471. package/dist/index330.js.map +1 -1
  472. package/dist/index331.js +56 -4
  473. package/dist/index331.js.map +1 -1
  474. package/dist/index332.js +68 -16
  475. package/dist/index332.js.map +1 -1
  476. package/dist/index333.js +31 -9
  477. package/dist/index333.js.map +1 -1
  478. package/dist/index334.js +9 -6
  479. package/dist/index334.js.map +1 -1
  480. package/dist/index335.js +153 -5
  481. package/dist/index335.js.map +1 -1
  482. package/dist/index336.js +106 -544
  483. package/dist/index336.js.map +1 -1
  484. package/dist/index337.js +4 -47
  485. package/dist/index337.js.map +1 -1
  486. package/dist/index338.js +22 -17
  487. package/dist/index338.js.map +1 -1
  488. package/dist/index339.js +15 -6
  489. package/dist/index339.js.map +1 -1
  490. package/dist/index34.js +1 -1
  491. package/dist/index340.js +28 -8
  492. package/dist/index340.js.map +1 -1
  493. package/dist/index341.js +12 -7
  494. package/dist/index341.js.map +1 -1
  495. package/dist/index342.js +6 -8
  496. package/dist/index342.js.map +1 -1
  497. package/dist/index343.js +13 -13
  498. package/dist/index343.js.map +1 -1
  499. package/dist/index344.js +27 -9
  500. package/dist/index344.js.map +1 -1
  501. package/dist/index345.js +5 -14
  502. package/dist/index345.js.map +1 -1
  503. package/dist/index346.js +23 -4
  504. package/dist/index346.js.map +1 -1
  505. package/dist/index35.js +1 -1
  506. package/dist/index36.js +1 -1
  507. package/dist/index38.js +10 -9
  508. package/dist/index38.js.map +1 -1
  509. package/dist/index39.js +2 -2
  510. package/dist/index40.js +24 -24
  511. package/dist/index42.js +1 -1
  512. package/dist/index46.js +1 -1
  513. package/dist/index47.js +2 -2
  514. package/dist/index50.js +2 -2
  515. package/dist/index51.js +18 -18
  516. package/dist/index55.js +1 -1
  517. package/dist/index56.js +1 -1
  518. package/dist/index57.js +5 -5
  519. package/dist/index58.js +53 -3
  520. package/dist/index58.js.map +1 -1
  521. package/dist/index60.js +33 -47
  522. package/dist/index60.js.map +1 -1
  523. package/dist/index62.js +7 -50
  524. package/dist/index62.js.map +1 -1
  525. package/dist/index63.js +11 -7
  526. package/dist/index63.js.map +1 -1
  527. package/dist/index64.js +3 -14
  528. package/dist/index64.js.map +1 -1
  529. package/dist/index65.js +43 -129
  530. package/dist/index65.js.map +1 -1
  531. package/dist/index66.js +50 -10
  532. package/dist/index66.js.map +1 -1
  533. package/dist/index67.js +7 -216
  534. package/dist/index67.js.map +1 -1
  535. package/dist/index68.js +15 -13
  536. package/dist/index68.js.map +1 -1
  537. package/dist/index69.js +132 -32
  538. package/dist/index69.js.map +1 -1
  539. package/dist/index70.js +10 -46
  540. package/dist/index70.js.map +1 -1
  541. package/dist/index71.js +216 -7
  542. package/dist/index71.js.map +1 -1
  543. package/dist/index72.js +12 -49
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +47 -4
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +49 -5
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +4 -28
  550. package/dist/index75.js.map +1 -1
  551. package/dist/index76.js +6 -50
  552. package/dist/index76.js.map +1 -1
  553. package/dist/index77.js +28 -9
  554. package/dist/index77.js.map +1 -1
  555. package/dist/index78.js +50 -12
  556. package/dist/index78.js.map +1 -1
  557. package/dist/index79.js +9 -2
  558. package/dist/index79.js.map +1 -1
  559. package/dist/index80.js +2 -2
  560. package/dist/index81.js +2 -54
  561. package/dist/index81.js.map +1 -1
  562. package/dist/index82.js +5 -46
  563. package/dist/index82.js.map +1 -1
  564. package/dist/index83.js +7 -205
  565. package/dist/index83.js.map +1 -1
  566. package/dist/index84.js +6 -22
  567. package/dist/index84.js.map +1 -1
  568. package/dist/index85.js +605 -24
  569. package/dist/index85.js.map +1 -1
  570. package/dist/index86.js +3 -399
  571. package/dist/index86.js.map +1 -1
  572. package/dist/index87.js +32 -45
  573. package/dist/index87.js.map +1 -1
  574. package/dist/index88.js +249 -5
  575. package/dist/index88.js.map +1 -1
  576. package/dist/index89.js +114 -7
  577. package/dist/index89.js.map +1 -1
  578. package/dist/index90.js +219 -5
  579. package/dist/index90.js.map +1 -1
  580. package/dist/index91.js +60 -599
  581. package/dist/index91.js.map +1 -1
  582. package/dist/index92.js +20 -3
  583. package/dist/index92.js.map +1 -1
  584. package/dist/index93.js +208 -32
  585. package/dist/index93.js.map +1 -1
  586. package/dist/index94.js +279 -209
  587. package/dist/index94.js.map +1 -1
  588. package/dist/index95.js +115 -99
  589. package/dist/index95.js.map +1 -1
  590. package/dist/index96.js +20 -219
  591. package/dist/index96.js.map +1 -1
  592. package/dist/index97.js +60 -51
  593. package/dist/index97.js.map +1 -1
  594. package/dist/index98.js +11 -13
  595. package/dist/index98.js.map +1 -1
  596. package/dist/index99.js +89 -197
  597. package/dist/index99.js.map +1 -1
  598. package/package.json +1 -1
  599. package/dist/index347.js +0 -26
  600. package/dist/index347.js.map +0 -1
  601. package/dist/index348.js +0 -8
  602. package/dist/index348.js.map +0 -1
  603. package/dist/index349.js +0 -59
  604. package/dist/index349.js.map +0 -1
  605. package/dist/index350.js +0 -71
  606. package/dist/index350.js.map +0 -1
  607. package/dist/index351.js +0 -34
  608. package/dist/index351.js.map +0 -1
  609. package/dist/index352.js +0 -12
  610. package/dist/index352.js.map +0 -1
  611. package/dist/index353.js +0 -156
  612. package/dist/index353.js.map +0 -1
  613. package/dist/index354.js +0 -111
  614. package/dist/index354.js.map +0 -1
  615. package/dist/index355.js +0 -26
  616. package/dist/index355.js.map +0 -1
  617. package/dist/index356.js +0 -16
  618. package/dist/index356.js.map +0 -1
  619. package/dist/index357.js +0 -31
  620. package/dist/index357.js.map +0 -1
  621. package/dist/index358.js +0 -8
  622. package/dist/index358.js.map +0 -1
  623. package/dist/index359.js +0 -19
  624. package/dist/index359.js.map +0 -1
  625. package/dist/index360.js +0 -32
  626. package/dist/index360.js.map +0 -1
  627. package/dist/index361.js +0 -16
  628. package/dist/index361.js.map +0 -1
  629. package/dist/index362.js +0 -10
  630. package/dist/index362.js.map +0 -1
package/dist/index216.js CHANGED
@@ -1,52 +1,11 @@
1
- import { DIRECTION as t } from "./index215.js";
2
- class o {
3
- /** Current input value */
4
- /** Current cursor position */
5
- /** Old input value */
6
- /** Old selection */
7
- constructor(s) {
8
- for (Object.assign(this, s); this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos); )
9
- --this.oldSelection.start;
10
- if (this.insertedCount)
11
- for (; this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end); )
12
- this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end ? ++this.oldSelection.end : ++this.cursorPos;
13
- }
14
- /** Start changing position */
15
- get startChangePos() {
16
- return Math.min(this.cursorPos, this.oldSelection.start);
17
- }
18
- /** Inserted symbols count */
19
- get insertedCount() {
20
- return this.cursorPos - this.startChangePos;
21
- }
22
- /** Inserted symbols */
23
- get inserted() {
24
- return this.value.substr(this.startChangePos, this.insertedCount);
25
- }
26
- /** Removed symbols count */
27
- get removedCount() {
28
- return Math.max(this.oldSelection.end - this.startChangePos || // for Delete
29
- this.oldValue.length - this.value.length, 0);
30
- }
31
- /** Removed symbols */
32
- get removed() {
33
- return this.oldValue.substr(this.startChangePos, this.removedCount);
34
- }
35
- /** Unchanged head symbols */
36
- get head() {
37
- return this.value.substring(0, this.startChangePos);
38
- }
39
- /** Unchanged tail symbols */
40
- get tail() {
41
- return this.value.substring(this.startChangePos + this.insertedCount);
42
- }
43
- /** Remove direction */
44
- get removeDirection() {
45
- return !this.removedCount || this.insertedCount ? t.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
46
- this.oldSelection.end === this.oldSelection.start ? t.RIGHT : t.LEFT;
47
- }
1
+ import { constructFrom as a } from "./index308.js";
2
+ import { toDate as i } from "./index309.js";
3
+ function s(e, r, o) {
4
+ const t = i(e, o?.in);
5
+ return isNaN(r) ? a(e, NaN) : (r && t.setDate(t.getDate() + r), t);
48
6
  }
49
7
  export {
50
- o as default
8
+ s as addDays,
9
+ s as default
51
10
  };
52
11
  //# sourceMappingURL=index216.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index216.js","sources":["../../../node_modules/imask/esm/core/action-details.js"],"sourcesContent":["import { DIRECTION } from './utils.js';\n\n/** Provides details of changing input */\nclass ActionDetails {\n /** Current input value */\n\n /** Current cursor position */\n\n /** Old input value */\n\n /** Old selection */\n\n constructor(opts) {\n Object.assign(this, opts);\n\n // double check if left part was changed (autofilling, other non-standard input triggers)\n while (this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos)) {\n --this.oldSelection.start;\n }\n if (this.insertedCount) {\n // double check right part\n while (this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end)) {\n if (this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end) ++this.oldSelection.end;else ++this.cursorPos;\n }\n }\n }\n\n /** Start changing position */\n get startChangePos() {\n return Math.min(this.cursorPos, this.oldSelection.start);\n }\n\n /** Inserted symbols count */\n get insertedCount() {\n return this.cursorPos - this.startChangePos;\n }\n\n /** Inserted symbols */\n get inserted() {\n return this.value.substr(this.startChangePos, this.insertedCount);\n }\n\n /** Removed symbols count */\n get removedCount() {\n // Math.max for opposite operation\n return Math.max(this.oldSelection.end - this.startChangePos ||\n // for Delete\n this.oldValue.length - this.value.length, 0);\n }\n\n /** Removed symbols */\n get removed() {\n return this.oldValue.substr(this.startChangePos, this.removedCount);\n }\n\n /** Unchanged head symbols */\n get head() {\n return this.value.substring(0, this.startChangePos);\n }\n\n /** Unchanged tail symbols */\n get tail() {\n return this.value.substring(this.startChangePos + this.insertedCount);\n }\n\n /** Remove direction */\n get removeDirection() {\n if (!this.removedCount || this.insertedCount) return DIRECTION.NONE;\n\n // align right if delete at right\n return (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) &&\n // if not range removed (event with backspace)\n this.oldSelection.end === this.oldSelection.start ? DIRECTION.RIGHT : DIRECTION.LEFT;\n }\n}\n\nexport { ActionDetails as default };\n"],"names":["ActionDetails","opts","DIRECTION"],"mappings":";AAGA,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EASlB,YAAYC,GAAM;AAIhB,SAHA,OAAO,OAAO,MAAMA,CAAI,GAGjB,KAAK,MAAM,MAAM,GAAG,KAAK,cAAc,MAAM,KAAK,SAAS,MAAM,GAAG,KAAK,cAAc;AAC5F,QAAE,KAAK,aAAa;AAEtB,QAAI,KAAK;AAE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import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"names":["addDays","date","amount","options","_date","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAQC,GAAS;AAC7C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,SAAI,MAAMD,CAAM,IAAUI,EAA6BL,GAAM,GAAG,KAG3DC,KAELE,EAAM,QAAQA,EAAM,QAAO,IAAKF,CAAM,GAC/BE;AACT;","x_google_ignoreList":[0]}
package/dist/index217.js CHANGED
@@ -1,71 +1,21 @@
1
- import * as i from "react";
2
- import { useComposedRefs as O } from "./index61.js";
3
- import { useLayoutEffect as A } from "./index73.js";
4
- function E(n, e) {
5
- return i.useReducer((t, r) => e[t][r] ?? t, n);
6
- }
7
- var T = (n) => {
8
- const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
9
- return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
10
- };
11
- T.displayName = "Presence";
12
- function R(n) {
13
- const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
14
- mounted: {
15
- UNMOUNT: "unmounted",
16
- ANIMATION_OUT: "unmountSuspended"
17
- },
18
- unmountSuspended: {
19
- MOUNT: "mounted",
20
- ANIMATION_END: "unmounted"
21
- },
22
- unmounted: {
23
- MOUNT: "mounted"
24
- }
25
- });
26
- return i.useEffect(() => {
27
- const o = l(r.current);
28
- c.current = N === "mounted" ? o : "none";
29
- }, [N]), A(() => {
30
- const o = r.current, m = a.current;
31
- if (m !== n) {
32
- const f = c.current, u = l(o);
33
- n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
34
- }
35
- }, [n, s]), A(() => {
36
- if (e) {
37
- let o;
38
- const m = e.ownerDocument.defaultView ?? window, d = (u) => {
39
- const g = l(r.current).includes(CSS.escape(u.animationName));
40
- if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
41
- const y = e.style.animationFillMode;
42
- e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
43
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
44
- });
45
- }
46
- }, f = (u) => {
47
- u.target === e && (c.current = l(r.current));
48
- };
49
- return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
- m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
- };
52
- } else
53
- s("ANIMATION_END");
54
- }, [e, s]), {
55
- isPresent: ["mounted", "unmountSuspended"].includes(N),
56
- ref: i.useCallback((o) => {
57
- r.current = o ? getComputedStyle(o) : null, t(o);
58
- }, [])
59
- };
60
- }
61
- function l(n) {
62
- return n?.animationName || "none";
63
- }
64
- function v(n) {
65
- let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
66
- return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
1
+ import { constructFrom as s } from "./index308.js";
2
+ import { toDate as f } from "./index309.js";
3
+ function u(n, o, i) {
4
+ const t = f(n, i?.in);
5
+ if (isNaN(o)) return s(n, NaN);
6
+ if (!o)
7
+ return t;
8
+ const r = t.getDate(), e = s(n, t.getTime());
9
+ e.setMonth(t.getMonth() + o + 1, 0);
10
+ const a = e.getDate();
11
+ return r >= a ? e : (t.setFullYear(
12
+ e.getFullYear(),
13
+ e.getMonth(),
14
+ r
15
+ ), t);
67
16
  }
68
17
  export {
69
- T as Presence
18
+ u as addMonths,
19
+ u as default
70
20
  };
71
21
  //# sourceMappingURL=index217.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index217.js","sources":["../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","mayWarn"],"mappings":";;;AASA,SAASA,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAQ,IAAKF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa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ASX,EAAiBE,GAAQ;AAChC,SAAOA,GAAQ,iBAAiB;AAClC;AACA,SAASV,EAAcoB,GAAS;AAC9B,MAAIC,IAAS,OAAO,yBAAyBD,EAAQ,OAAO,KAAK,GAAG,KAChEE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index217.js","sources":["../../../node_modules/date-fns/addMonths.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n"],"names":["addMonths","date","amount","options","_date","toDate","constructFrom","dayOfMonth","endOfDesiredMonth","daysInMonth"],"mappings":";;AAiCO,SAASA,EAAUC,GAAMC,GAAQC,GAAS;AAC/C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AACtC,MAAI,MAAMD,CAAM,EAAG,QAAOI,EAA6BL,GAAM,GAAG;AAChE,MAAI,CAACC;AAEH,WAAOE;AAET,QAAMG,IAAaH,EAAM,QAAO,GAU1BI,IAAoBF,EAA6BL,GAAMG,EAAM,QAAO,CAAE;AAC5E,EAAAI,EAAkB,SAASJ,EAAM,SAAQ,IAAKF,IAAS,GAAG,CAAC;AAC3D,QAAMO,IAAcD,EAAkB,QAAO;AAC7C,SAAID,KAAcE,IAGTD,KASPJ,EAAM;AAAA,IACJI,EAAkB,YAAW;AAAA,IAC7BA,EAAkB,SAAQ;AAAA,IAC1BD;AAAA,EACN,GACWH;AAEX;","x_google_ignoreList":[0]}
package/dist/index218.js CHANGED
@@ -1,184 +1,9 @@
1
- import * as s from "react";
2
- import { composeEventHandlers as p } from "./index59.js";
3
- import { createCollection as H } from "./index60.js";
4
- import { useComposedRefs as V } from "./index61.js";
5
- import { createContextScope as z } from "./index62.js";
6
- import { useId as q } from "./index66.js";
7
- import { Primitive as G } from "./index69.js";
8
- import { useCallbackRef as J } from "./index71.js";
9
- import { useControllableState as Q } from "./index72.js";
10
- import { useDirection as W } from "./index63.js";
11
- import { j as d } from "./index28.js";
12
- var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [y, N, Z] = H(I), [$, Fe] = z(
13
- I,
14
- [Z]
15
- ), [ee, oe] = $(I), O = s.forwardRef(
16
- (e, r) => /* @__PURE__ */ d.jsx(y.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(y.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
17
- );
18
- O.displayName = I;
19
- var te = s.forwardRef((e, r) => {
20
- const {
21
- __scopeRovingFocusGroup: c,
22
- orientation: o,
23
- loop: T = !1,
24
- dir: w,
25
- currentTabStopId: v,
26
- defaultCurrentTabStopId: C,
27
- onCurrentTabStopIdChange: S,
28
- onEntryFocus: m,
29
- preventScrollOnEntryFocus: u = !1,
30
- ...b
31
- } = e, F = s.useRef(null), g = V(r, F), R = W(w), [E, t] = Q({
32
- prop: v,
33
- defaultProp: C ?? null,
34
- onChange: S,
35
- caller: I
36
- }), [i, h] = s.useState(!1), a = J(m), l = N(c), x = s.useRef(!1), [k, D] = s.useState(0);
37
- return s.useEffect(() => {
38
- const n = F.current;
39
- if (n)
40
- return n.addEventListener(_, a), () => n.removeEventListener(_, a);
41
- }, [a]), /* @__PURE__ */ d.jsx(
42
- ee,
43
- {
44
- scope: c,
45
- orientation: o,
46
- dir: R,
47
- loop: T,
48
- currentTabStopId: E,
49
- onItemFocus: s.useCallback(
50
- (n) => t(n),
51
- [t]
52
- ),
53
- onItemShiftTab: s.useCallback(() => h(!0), []),
54
- onFocusableItemAdd: s.useCallback(
55
- () => D((n) => n + 1),
56
- []
57
- ),
58
- onFocusableItemRemove: s.useCallback(
59
- () => D((n) => n - 1),
60
- []
61
- ),
62
- children: /* @__PURE__ */ d.jsx(
63
- G.div,
64
- {
65
- tabIndex: i || k === 0 ? -1 : 0,
66
- "data-orientation": o,
67
- ...b,
68
- ref: g,
69
- style: { outline: "none", ...e.style },
70
- onMouseDown: p(e.onMouseDown, () => {
71
- x.current = !0;
72
- }),
73
- onFocus: p(e.onFocus, (n) => {
74
- const L = !x.current;
75
- if (n.target === n.currentTarget && L && !i) {
76
- const P = new CustomEvent(_, X);
77
- if (n.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
78
- const A = l().filter((f) => f.focusable), U = A.find((f) => f.active), B = A.find((f) => f.id === E), Y = [U, B, ...A].filter(
79
- Boolean
80
- ).map((f) => f.ref.current);
81
- M(Y, u);
82
- }
83
- }
84
- x.current = !1;
85
- }),
86
- onBlur: p(e.onBlur, () => h(!1))
87
- }
88
- )
89
- }
90
- );
91
- }), K = "RovingFocusGroupItem", j = s.forwardRef(
92
- (e, r) => {
93
- const {
94
- __scopeRovingFocusGroup: c,
95
- focusable: o = !0,
96
- active: T = !1,
97
- tabStopId: w,
98
- children: v,
99
- ...C
100
- } = e, S = q(), m = w || S, u = oe(K, c), b = u.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = u;
101
- return s.useEffect(() => {
102
- if (o)
103
- return g(), () => R();
104
- }, [o, g, R]), /* @__PURE__ */ d.jsx(
105
- y.ItemSlot,
106
- {
107
- scope: c,
108
- id: m,
109
- focusable: o,
110
- active: T,
111
- children: /* @__PURE__ */ d.jsx(
112
- G.span,
113
- {
114
- tabIndex: b ? 0 : -1,
115
- "data-orientation": u.orientation,
116
- ...C,
117
- ref: r,
118
- onMouseDown: p(e.onMouseDown, (t) => {
119
- o ? u.onItemFocus(m) : t.preventDefault();
120
- }),
121
- onFocus: p(e.onFocus, () => u.onItemFocus(m)),
122
- onKeyDown: p(e.onKeyDown, (t) => {
123
- if (t.key === "Tab" && t.shiftKey) {
124
- u.onItemShiftTab();
125
- return;
126
- }
127
- if (t.target !== t.currentTarget) return;
128
- const i = se(t, u.orientation, u.dir);
129
- if (i !== void 0) {
130
- if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
131
- t.preventDefault();
132
- let a = F().filter((l) => l.focusable).map((l) => l.ref.current);
133
- if (i === "last") a.reverse();
134
- else if (i === "prev" || i === "next") {
135
- i === "prev" && a.reverse();
136
- const l = a.indexOf(t.currentTarget);
137
- a = u.loop ? ce(a, l + 1) : a.slice(l + 1);
138
- }
139
- setTimeout(() => M(a));
140
- }
141
- }),
142
- children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
143
- }
144
- )
145
- }
146
- );
147
- }
148
- );
149
- j.displayName = K;
150
- var re = {
151
- ArrowLeft: "prev",
152
- ArrowUp: "prev",
153
- ArrowRight: "next",
154
- ArrowDown: "next",
155
- PageUp: "first",
156
- Home: "first",
157
- PageDown: "last",
158
- End: "last"
159
- };
160
- function ne(e, r) {
161
- return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
162
- }
163
- function se(e, r, c) {
164
- const o = ne(e.key, c);
165
- if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
166
- return re[o];
167
- }
168
- function M(e, r = !1) {
169
- const c = document.activeElement;
170
- for (const o of e)
171
- if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
172
- }
173
- function ce(e, r) {
174
- return e.map((c, o) => e[(r + o) % e.length]);
1
+ import { addDays as r } from "./index216.js";
2
+ function o(a, d, e) {
3
+ return r(a, d * 7, e);
175
4
  }
176
- var ge = O, Re = j;
177
5
  export {
178
- Re as Item,
179
- ge as Root,
180
- O as RovingFocusGroup,
181
- j as RovingFocusGroupItem,
182
- Fe as createRovingFocusGroupScope
6
+ o as addWeeks,
7
+ o as default
183
8
  };
184
9
  //# sourceMappingURL=index218.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index218.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","children","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":";;;;;;;;;;;AAcA,IAAIA,IAAc,iCACdC,IAAgB,EAAE,SAAS,IAAO,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218.js","sources":["../../../node_modules/date-fns/addWeeks.js"],"sourcesContent":["import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link addWeeks} function options.\n */\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of weeks to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be added.\n * @param options - An object with options\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount, options) {\n return addDays(date, amount * 7, options);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n"],"names":["addWeeks","date","amount","options","addDays"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAQH,GAAMC,IAAS,GAAGC,CAAO;AAC1C;","x_google_ignoreList":[0]}
package/dist/index219.js CHANGED
@@ -1,50 +1,9 @@
1
- import * as l from "react";
2
- import { composeRefs as m } from "./index61.js";
3
- import { j as u } from "./index28.js";
4
- // @__NO_SIDE_EFFECTS__
5
- function x(e) {
6
- const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
7
- const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(g);
8
- if (a) {
9
- const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
- return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
- }
12
- return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
13
- });
14
- return t.displayName = `${e}.Slot`, t;
15
- }
16
- // @__NO_SIDE_EFFECTS__
17
- function y(e) {
18
- const r = l.forwardRef((t, o) => {
19
- const { children: n, ...i } = t;
20
- if (l.isValidElement(n)) {
21
- const c = R(n), s = C(i, n.props);
22
- return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
23
- }
24
- return l.Children.count(n) > 1 ? l.Children.only(null) : null;
25
- });
26
- return r.displayName = `${e}.SlotClone`, r;
27
- }
28
- var E = /* @__PURE__ */ Symbol("radix.slottable");
29
- function g(e) {
30
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
31
- }
32
- function C(e, r) {
33
- const t = { ...r };
34
- for (const o in r) {
35
- const n = e[o], i = r[o];
36
- /^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
37
- const a = i(...s);
38
- return n(...s), a;
39
- } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
40
- }
41
- return { ...e, ...t };
42
- }
43
- function R(e) {
44
- let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
45
- return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
1
+ import { addMonths as d } from "./index217.js";
2
+ function e(r, t, a) {
3
+ return d(r, t * 12, a);
46
4
  }
47
5
  export {
48
- x as createSlot
6
+ e as addYears,
7
+ e as default
49
8
  };
50
9
  //# sourceMappingURL=index219.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index219.js","sources":["../../../node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","mayWarn"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,G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K,OAAOA,EAAM,QAAS,cAAc,eAAeA,EAAM,QAAQA,EAAM,KAAK,cAAcO;AAClI;AACA,SAASF,EAAWX,GAAWc,GAAY;AACzC,QAAMC,IAAgB,EAAE,GAAGD,EAAU;AACrC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBjB,EAAUgB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,YAAMC,IAASF,EAAe,GAAGC,CAAI;AACrC,aAAAF,EAAc,GAAGE,CAAI,GACdC;AAAA,IACT,IACSH,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAc,IACtDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAEtF;AACA,SAAO,EAAE,GAAGlB,GAAW,GAAGe,EAAa;AACzC;AACA,SAASN,EAAcY,GAAS;AAC9B,MAAIC,IAAS,OAAO,yBAAyBD,EAAQ,OAAO,KAAK,GAAG,KAChEE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index219.js","sources":["../../../node_modules/date-fns/addYears.js"],"sourcesContent":["import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n"],"names":["addYears","date","amount","options","addMonths"],"mappings":";AA4BO,SAASA,EAASC,GAAMC,GAAQC,GAAS;AAC9C,SAAOC,EAAUH,GAAMC,IAAS,IAAIC,CAAO;AAC7C;","x_google_ignoreList":[0]}
package/dist/index220.js CHANGED
@@ -1,43 +1,17 @@
1
- class h {
2
- /** Tail value as string */
3
- /** Tail start position */
4
- /** Start position */
5
- constructor(t, i, s) {
6
- t === void 0 && (t = ""), i === void 0 && (i = 0), this.value = t, this.from = i, this.stop = s;
7
- }
8
- toString() {
9
- return this.value;
10
- }
11
- extend(t) {
12
- this.value += String(t);
13
- }
14
- appendTo(t) {
15
- return t.append(this.toString(), {
16
- tail: !0
17
- }).aggregate(t._appendPlaceholder());
18
- }
19
- get state() {
20
- return {
21
- value: this.value,
22
- from: this.from,
23
- stop: this.stop
24
- };
25
- }
26
- set state(t) {
27
- Object.assign(this, t);
28
- }
29
- unshift(t) {
30
- if (!this.value.length || t != null && this.from >= t) return "";
31
- const i = this.value[0];
32
- return this.value = this.value.slice(1), i;
33
- }
34
- shift() {
35
- if (!this.value.length) return "";
36
- const t = this.value[this.value.length - 1];
37
- return this.value = this.value.slice(0, -1), t;
38
- }
1
+ import { getTimezoneOffsetInMilliseconds as r } from "./index311.js";
2
+ import { normalizeDates as c } from "./index312.js";
3
+ import { millisecondsInDay as D } from "./index310.js";
4
+ import { startOfDay as a } from "./index242.js";
5
+ function O(o, n, i) {
6
+ const [s, m] = c(
7
+ i?.in,
8
+ o,
9
+ n
10
+ ), t = a(s), e = a(m), f = +t - r(t), l = +e - r(e);
11
+ return Math.round((f - l) / D);
39
12
  }
40
13
  export {
41
- h as default
14
+ O as default,
15
+ O as differenceInCalendarDays
42
16
  };
43
17
  //# sourceMappingURL=index220.js.map